/* Guild Hub — night-sky look shared with Săn Boss / Phòng Tranh: deep navy, cyan + yellow accents. Mobile-first. */
:root {
  color-scheme: dark;
  --night: #0c1033; --night-2: #161c4e; --panel: #1b2160; --panel-2: #222a72; --line: #2f377d;
  --ink: #f3f4ff; --muted: #a9b0e6; --cyan: #5ed0ff; --yellow: #ffd83a; --pink: #ff8fc0; --pink-deep: #f06aa6;
  --paper: #ffffff; --navy: #13206b; --blue: #3b8de0; --sky: #5cb8ea; --red: #e8384f; --green: #3ccf8e;
  --display: "Baloo 2", system-ui, sans-serif; --body: "Nunito", system-ui, sans-serif; --hand: "Itim", "Nunito", cursive; --navy: #13206b;
  --r: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: radial-gradient(1200px 700px at 85% -10%, #2b1f7a 0%, transparent 60%), radial-gradient(900px 600px at -10% 40%, #14205e 0%, transparent 60%), var(--night); color: var(--ink); font: 600 15px/1.5 var(--body); min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; }
a { color: var(--cyan); }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.15; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: clamp(26px, 5vw, 38px); }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
p { margin: 0 0 .6em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 16px; padding-block: 18px 48px; flex: 1; display: grid; gap: 22px; align-content: start; }
.wrap > *, section { min-width: 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.err { color: #ffb3bd; }
.pre { white-space: pre-line; overflow-wrap: anywhere; }
.hint { color: var(--muted); font-size: 13px; margin: 0; }
.warn { color: #ffb3bd; font-size: 13px; font-weight: 700; margin: 0; }
:focus-visible { outline: 2.5px solid var(--cyan); outline-offset: 2px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: calc(env(safe-area-inset-top, 0px) + 8px) 16px 8px;
  background: rgba(12, 16, 51, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--yellow); font: 800 19px/1 var(--display); letter-spacing: .02em; flex: none; }
.logo img { border-radius: 50%; }
#nav { display: flex; align-items: center; gap: 4px 6px; flex: 1; flex-wrap: wrap; min-width: 0; }
#nav .grow { flex: 1; }
.navl { color: var(--muted); text-decoration: none; font-weight: 800; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.navl.on, .navl:hover { color: var(--ink); background: var(--panel); }
.me { display: flex; align-items: center; gap: 6px; }
/* "My profile": the main action for signed-in players, so it stands out from the plain nav links */
.navl.me-cta, .navl.me-cta.on, .navl.me-cta:hover { position: relative; overflow: hidden; color: #2a1a00; background: linear-gradient(180deg, #ffe46a, #ffc81f);
  box-shadow: 0 3px 0 #c48a00, 0 0 16px rgba(255, 200, 31, .45); padding-inline: 16px; }
.navl.me-cta:hover { filter: brightness(1.06); }
.navl.me-cta::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); pointer-events: none; }
/* deliberately outside prefers-reduced-motion: small and slow, and many Windows PCs have animations switched off */
.navl.me-cta { animation: me-glow 2s ease-in-out infinite; }
.navl.me-cta::after { animation: me-shine 3s ease-in-out infinite; }
@keyframes me-glow { 50% { transform: scale(1.05); box-shadow: 0 3px 0 #c48a00, 0 0 30px rgba(255, 216, 58, .95); } }
@keyframes me-shine { 0%, 50% { left: -60%; } 100% { left: 130%; } }
.lang, .tabs { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.lang button, .tabs button { font: 800 13px var(--body); color: var(--muted); background: none; border: 0; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"], .tabs button[aria-pressed="true"] { background: var(--cyan); color: var(--night); }
.tabs { border-radius: 14px; }
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; }
  #nav { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  #nav .grow { display: none; }
}
.site-foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 18px 16px calc(env(safe-area-inset-bottom, 0px) + 22px); border-top: 1px solid var(--line); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 800 14.5px/1.2 var(--body); color: var(--night); background: var(--cyan);
  border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled, .btn.busy { opacity: .55; pointer-events: none; }
.btn.alt { background: var(--yellow); }
.btn.big { padding: 13px 22px; font-size: 16px; }
.btn.sm { padding: 7px 13px; font-size: 13px; }
.btn.full { width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--panel); }
.btn.on { background: var(--yellow); color: var(--night); }
.btn.danger { background: var(--red); color: #fff; }
.btn.ghost.danger { background: transparent; color: #ffb3bd; box-shadow: inset 0 0 0 1.5px rgba(232, 56, 79, .5); }
.btn.google { background: #fff; color: #1f2a44; }
.linkbtn { background: none; border: 0; color: var(--cyan); font: inherit; font-weight: 800; cursor: pointer; padding: 0; text-decoration: underline; }
.icon { width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--night-2); color: var(--ink); font: 800 17px/1 var(--body); cursor: pointer; flex: none; }
.icon:disabled { opacity: .35; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.center { justify-content: center; }
.two, .three { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

/* tooltip ⓘ */
.tip-wrap { position: relative; display: inline-flex; vertical-align: middle; margin-left: 4px; }
.tip { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--cyan); background: transparent; color: var(--cyan);
  font: 800 12px/1 Georgia, serif; font-style: italic; cursor: help; padding: 0; }
.tip-pop { position: absolute; z-index: 30; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: max-content; max-width: min(320px, 80vw);
  background: #0a0e2b; color: var(--ink); border: 1px solid var(--cyan); border-radius: 10px; padding: 9px 11px; font: 600 13px/1.45 var(--body);
  text-transform: none; letter-spacing: 0; white-space: normal; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transition: opacity .15s; pointer-events: none; }
.tip-wrap:hover .tip-pop, .tip-wrap.open .tip-pop, .tip:focus-visible + .tip-pop { opacity: 1; visibility: visible; }
@media (max-width: 600px) { .tip-pop { position: fixed; left: 16px; right: 16px; bottom: auto; top: 30%; transform: none; max-width: none; width: auto; } }

/* forms */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 16px; min-width: 0; }
.f { display: grid; gap: 7px; min-width: 0; }
.lb { font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lb small, .f > span small { color: var(--muted); font-weight: 600; margin-left: auto; }
input[type=text], input[type=number], input[type=url], input[type=email], input[type=search], input[type=datetime-local], textarea, select {
  width: 100%; font: 700 15px var(--body); color: var(--ink); background: var(--night-2); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
textarea { resize: vertical; line-height: 1.45; }
input.bad, textarea.bad { border-color: var(--red); }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--cyan); }
.contacts { display: grid; gap: 8px; }
.cf { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 10px; font-weight: 800; font-size: 13px; color: var(--muted); }
.cf > span { display: flex; align-items: center; }
.cookies { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; max-height: 300px; overflow-y: auto; padding: 8px 4px 2px 2px; }
.ck { position: relative; display: grid; justify-items: center; gap: 3px; background: var(--night-2); border: 2px solid var(--line); border-radius: 14px;
  padding: 6px 4px 5px; cursor: pointer; color: var(--muted); font: 700 10.5px/1.15 var(--body); text-align: center; }
.ck img { width: 46px; height: 46px; object-fit: cover; border-radius: 10px; }
.ck[aria-pressed="true"] { border-color: var(--yellow); color: var(--ink); background: #262c70; }
.ck .n { position: absolute; top: -7px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); color: var(--night); font: 800 12px/22px var(--body); display: none; }
.ck[aria-pressed="true"] .n { display: block; }
.ck .new { position: absolute; left: -5px; top: -7px; background: var(--cyan); color: var(--night); font: 800 9px/1 var(--body); padding: 3px 5px; border-radius: 6px; }
.av-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.av-prev { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; border: 2px solid var(--sky); background: var(--night-2); }
.av-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.av-actions label.btn { cursor: pointer; }
canvas.crop { width: min(280px, 100%); aspect-ratio: 1; justify-self: center; border-radius: 12px; touch-action: none; cursor: grab; border: 2px solid var(--cyan); }
canvas.crop:active { cursor: grabbing; }
.ranks { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.rk { display: grid; justify-items: center; gap: 2px; background: var(--night-2); border: 2px solid var(--line); border-radius: 14px; padding: 7px 4px; cursor: pointer; color: var(--muted); font: 800 11.5px var(--body); }
.rk img { width: 38px; height: 38px; object-fit: contain; }
.rk .unranked { width: 38px; height: 38px; display: grid; place-items: center; background: #c9cede; color: #5d6481; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); font: 800 16px var(--display); }
.rk[aria-pressed="true"] { border-color: var(--cyan); color: var(--ink); background: #262c70; }

/* pages */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.back { color: var(--muted); text-decoration: none; font-weight: 800; justify-self: start; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.empty { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 40px 0; }
.notice { background: rgba(255, 216, 58, .1); border: 1.5px dashed var(--yellow); border-radius: var(--r); padding: 16px; display: grid; gap: 6px; justify-items: start; }
.notice-sm { background: rgba(94, 208, 255, .08); border: 1px solid rgba(94, 208, 255, .35); border-radius: 12px; padding: 10px 12px; margin: 0; font-size: 13.5px; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 10px; }
.filters label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 800; color: var(--muted); }

/* profile tiles */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }

/* editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px; align-items: start; }
.preview { position: sticky; top: 80px; display: grid; gap: 10px; }
.cap { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.status-row { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 860px) { .editor { grid-template-columns: minmax(0, 1fr); } .preview { position: static; order: -1; } }
.card-wrap { width: 100%; max-width: 560px; justify-self: center; }

/* ═════════════ shared card shell ═════════════ */
.card { container-type: inline-size; position: relative; width: 100%; max-width: 560px; justify-self: center; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 16px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .5); isolation: isolate; }

/* ═════════════ STYLE A — trading card, frame tinted by rank ═════════════ */
.A { --c1: #6a2bd6; --c2: #e3a6ff; --glow: #c07bff;
  background: radial-gradient(70% 45% at 50% 30%, color-mix(in srgb, var(--glow) 38%, transparent), transparent 70%),
              radial-gradient(90% 60% at 100% 100%, #2a1a6e, transparent 70%), #090c2a; }
.A .rays { position: absolute; left: 50%; top: 31%; width: 150cqw; aspect-ratio: 1; translate: -50% -50%; z-index: -1; opacity: .5;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--glow) 55%, transparent) 0 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0 18%, transparent 58%); mask: radial-gradient(circle, #000 0 18%, transparent 58%); }
.A .sparkle { position: absolute; width: 2.2cqw; aspect-ratio: 1; z-index: -1; background: #fff; opacity: .85;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); filter: drop-shadow(0 0 1cqw var(--glow)); }
.A .frame { position: absolute; inset: 3.4cqw 3.4cqw 6.4cqw; border-radius: 4.4cqw; padding: .95cqw;
  background: linear-gradient(140deg, var(--c2), var(--c1) 28%, var(--c2) 50%, var(--c1) 72%, var(--c2)) 0 0 / 220% 220%; box-shadow: 0 0 4cqw color-mix(in srgb, var(--glow) 55%, transparent); }
.A .inner { position: relative; height: 100%; border-radius: 3.6cqw; overflow: hidden; display: grid; justify-items: center; align-content: start;
  padding: 3.2cqw 4.2cqw 2.6cqw;
  background: radial-gradient(80% 40% at 50% 26%, color-mix(in srgb, var(--glow) 26%, transparent), transparent 70%),
              linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.25)),
              radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0) 0 0 / 3cqw 3cqw, #11164a; }
.A .kicker { font: 800 1.9cqw/1 var(--body); letter-spacing: .28em; color: var(--cyan); text-transform: uppercase; }
.A .title { margin: 1cqw 0 0; font: 800 5cqw/1 var(--display); color: var(--yellow); letter-spacing: .01em; text-align: center; white-space: nowrap;
  text-shadow: 0 .45cqw 0 #5a1fae, 0 0 3cqw rgba(255, 216, 58, .35); }
.A .hero { position: relative; margin-top: 3.6cqw; width: 26cqw; aspect-ratio: 1; }
.A .hero .halo { position: absolute; inset: -3.2cqw; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--glow) 70%, transparent), transparent 68%); }
.A .hero .pic { position: absolute; inset: 0; border-radius: 5cqw; padding: .8cqw; background: linear-gradient(140deg, var(--c2), var(--c1), var(--c2)); rotate: -2deg;
  box-shadow: 0 1.6cqw 3cqw rgba(0, 0, 0, .5); }
.A .hero .pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 4.3cqw; display: block; background: #222a72; }
/* rank emblem: small round plate tucked into the photo's bottom-right corner */
.A .hero .medal { position: absolute; right: -2.4cqw; bottom: -2.4cqw; width: 10cqw; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #2a3290, #0c1033 75%); box-shadow: 0 0 0 .5cqw var(--c2), 0 .8cqw 1.6cqw rgba(0, 0, 0, .55); }
.A .hero .medal img { width: 8cqw; height: 8cqw; object-fit: contain; }
.A .hero .medal .q { width: 5.6cqw; height: 5.6cqw; display: grid; place-items: center; background: #c9cede; color: #5d6481;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); font: 800 3cqw var(--display); }
/* status: pill sitting on the photo's top edge */
.A .hero .status { position: absolute; left: 50%; top: -1.9cqw; translate: -50% 0; z-index: 2; display: flex; align-items: center; gap: .9cqw; white-space: nowrap;
  padding: .85cqw 1.9cqw .75cqw 1.5cqw; border-radius: 99px; background: linear-gradient(180deg, #ff6b95, #e0306b); color: #fff;
  font: 800 1.8cqw/1 var(--display); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 0 0 .45cqw #11164a, 0 .6cqw 1.2cqw rgba(0, 0, 0, .4); }
.A .hero .status::before { content: ""; width: 1.1cqw; aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 0 1cqw #fff; }
.A .hero .status.found { background: linear-gradient(180deg, #4bd99a, #18a26a); }
.A .name { position: relative; margin-top: 3.2cqw; padding: 1.3cqw 7cqw 1cqw; max-width: 84cqw; text-align: center;
  background: linear-gradient(180deg, #ff8fc0, #ff5c9e); clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%);
  font: 800 5.4cqw/1.05 var(--display); color: #fff; overflow-wrap: anywhere; text-shadow: 0 .35cqw 0 #c2276e; }
.A .name.long { font-size: 4cqw; }
.A .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2cqw; width: 100%; margin-top: 2.4cqw; }
.A .plate { display: flex; align-items: center; gap: 2cqw; padding: 1.4cqw 2.2cqw; border-radius: 2.6cqw; background: rgba(255,255,255,.07);
  border: .3cqw solid color-mix(in srgb, var(--c2) 55%, transparent); min-width: 0; }
.A .plate img { width: 8cqw; height: 8cqw; object-fit: contain; flex: none; }
.A .plate .q { width: 7cqw; height: 7cqw; flex: none; display: grid; place-items: center; background: #c9cede; color: #5d6481; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); font: 800 3.4cqw var(--display); }
.A .plate .k { font: 800 1.9cqw/1 var(--body); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.A .plate .v { font: 800 3.6cqw/1.1 var(--display); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.A .plate .v.crown { color: var(--yellow); font-variant-numeric: tabular-nums; }
.A .sect { justify-self: start; margin-top: 2.4cqw; font: 800 2.2cqw/1 var(--body); letter-spacing: .2em; color: var(--yellow); text-transform: uppercase; display: flex; align-items: center; gap: 1.4cqw; width: 100%; }
.A .sect::after { content: ""; flex: 1; height: .3cqw; background: linear-gradient(90deg, color-mix(in srgb, var(--yellow) 60%, transparent), transparent); }
.A .trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; width: 100%; margin-top: 1.6cqw; }
.A .ck3 { position: relative; display: grid; justify-items: center; gap: .8cqw; padding: 1.4cqw 1cqw 1.2cqw; border-radius: 2.6cqw;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03)); border: .3cqw solid rgba(255,255,255,.14); }
.A .ck3:first-child { border-color: var(--yellow); box-shadow: 0 0 2.4cqw rgba(255, 216, 58, .35); }
.A .ck3 img { width: 11.5cqw; aspect-ratio: 1; object-fit: cover; border-radius: 2.2cqw; }
.A .ck3 span { font: 800 1.95cqw/1.15 var(--body); text-align: center; color: #fff; }
.A .ck3 i { position: absolute; top: -1.4cqw; left: -1cqw; font: 800 1.7cqw/1 var(--body); font-style: normal; background: var(--yellow); color: var(--navy); padding: .6cqw 1.1cqw; border-radius: 99px; }
.A .bubble { position: relative; width: 100%; margin-top: 3cqw; padding: 1.9cqw 3cqw 1.9cqw 7.4cqw; border-radius: 3cqw; background: #fff; color: var(--navy);
  font: 700 2.4cqw/1.38 var(--body); min-height: 10cqw; max-height: 13.8cqw; overflow: hidden; overflow-wrap: anywhere; white-space: pre-line; }
.A .bubble::before { content: "“"; position: absolute; left: 2cqw; top: -.6cqw; font: 800 9cqw/1 Georgia, serif; color: var(--pink); }
.A .bubble::after { content: ""; position: absolute; top: -1.8cqw; left: 12cqw; border: 1.9cqw solid transparent; border-bottom-color: #fff; border-top: 0; }
.A .bubble.empty { color: #8a90b8; }
.A .contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2cqw 1.6cqw; width: 100%; margin-top: 2.2cqw; }
.A .chip { display: inline-flex; align-items: center; gap: 1.2cqw; padding: .8cqw 1.8cqw .8cqw .8cqw; border-radius: 99px; background: rgba(255,255,255,.08); border: .25cqw solid rgba(255,255,255,.14);
  font: 800 2.35cqw/1 var(--body); color: #fff; max-width: 100%; min-width: 0; }
.A .chip b { flex: none; font: 900 1.65cqw/1 var(--body); letter-spacing: .06em; padding: .8cqw 1.2cqw; border-radius: 99px; color: #fff; }
.A .chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.A .chip.roleid b { background: #e7a400; color: #1b1300; } .A .chip.zalo b { background: #0068ff; } .A .chip.fb b { background: #1877f2; } .A .chip.line b { background: #06c755; }
.A .foot { position: absolute; left: 0; right: 0; bottom: 2.2cqw; text-align: center; font: 700 1.75cqw/1 var(--body); color: rgba(255,255,255,.55); letter-spacing: .08em; }
.A .foot b { color: var(--cyan); }
/* rank themes */
.A.r0 { --c1: #707894; --c2: #dfe4f5; --glow: #9aa3c7; }
.A.r1 { --c1: #8a4b22; --c2: #f2b98a; --glow: #ff9a52; }
.A.r2 { --c1: #6f7d98; --c2: #f4f7ff; --glow: #cfe0ff; }
.A.r3 { --c1: #b07d06; --c2: #ffe68a; --glow: #ffd83a; }
.A.r4 { --c1: #2563c9; --c2: #b4ecff; --glow: #5ed0ff; }
.A.r5 { --c1: #6a2bd6; --c2: #e8b3ff; --glow: #c07bff; }
.A.r6 { --c1: #a3101f; --c2: #ffd166; --glow: #ff5a3c; }
/* colour themes picked by the viewer; they override the rank tint */
.A.t-pink { --c1: #e0307b; --c2: #ffd3e8; --glow: #ff7ab8;
  background: radial-gradient(70% 45% at 50% 30%, color-mix(in srgb, var(--glow) 40%, transparent), transparent 70%),
              radial-gradient(90% 60% at 100% 100%, #8a1f5c, transparent 70%), #3a0c2c; }
.A.t-pink .inner { background: radial-gradient(80% 40% at 50% 26%, color-mix(in srgb, var(--glow) 30%, transparent), transparent 70%),
  linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.2)),
  radial-gradient(circle at 1px 1px, rgba(255,255,255,.08) 1px, transparent 0) 0 0 / 3cqw 3cqw, #5e1747; }
.A.t-pink .kicker, .A.t-pink .foot b { color: #ffd3e8; }
.A.t-mint { --c1: #0f8f7a; --c2: #c8fff0; --glow: #4fe3c1;
  background: radial-gradient(70% 45% at 50% 30%, color-mix(in srgb, var(--glow) 36%, transparent), transparent 70%),
              radial-gradient(90% 60% at 100% 100%, #0d5a55, transparent 70%), #04201f; }
.A.t-mint .inner { background: radial-gradient(80% 40% at 50% 26%, color-mix(in srgb, var(--glow) 24%, transparent), transparent 70%),
  linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.25)),
  radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0) 0 0 / 3cqw 3cqw, #0a3634; }
@media (prefers-reduced-motion: no-preference) {
  .A .rays { animation: spin 40s linear infinite; }
  .A .frame { animation: sheen 6s ease-in-out infinite alternate; }
  .A .sparkle { animation: twinkle 2.6s ease-in-out infinite; }
  .A .sparkle:nth-of-type(2n) { animation-delay: -1.3s; }
  @keyframes spin { to { rotate: 360deg; } }
  @keyframes sheen { to { background-position: 100% 100%; } }
  @keyframes twinkle { 50% { opacity: .2; scale: .6; } }
}

/* ═════════════ STYLE B — scrapbook page ═════════════ */
.B { background: #f7f0ff; color: #2a2560;
  background-image: linear-gradient(rgba(120, 110, 220, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 110, 220, .13) 1px, transparent 1px);
  background-size: 4cqw 4cqw; }
.B::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7cqw; background: #2a2560; z-index: 0;
  -webkit-mask: radial-gradient(circle at 3.5cqw 3cqw, transparent 1.3cqw, #000 1.4cqw) 0 0 / 7cqw 6cqw; mask: radial-gradient(circle at 3.5cqw 3cqw, transparent 1.3cqw, #000 1.4cqw) 0 0 / 7cqw 6cqw; }
.B .page { position: absolute; inset: 0 0 0 7cqw; padding: 4.4cqw 5cqw 4cqw 6cqw; }
.B .hd { display: flex; justify-content: space-between; align-items: start; }
.B .title { margin: 0; white-space: nowrap; text-wrap: nowrap; font: 800 6.4cqw/1 var(--display); color: #2a2560; position: relative; z-index: 1; }
.B .title mark { background: linear-gradient(transparent 55%, #ffe066 55%, #ffe066 92%, transparent 92%); color: inherit; padding: 0 .6cqw; }
.B .sub { margin-top: 1cqw; font: 400 2.6cqw/1 var(--hand); color: #6b5fd6; }
.B .logo { display: block; text-shadow: none; font: 800 2.3cqw/1.1 var(--display); color: #6b5fd6; text-align: right; letter-spacing: .06em; }
.B .logo small { display: block; font: 400 2cqw var(--hand); letter-spacing: 0; color: #9a90e0; }
.B .top { display: grid; grid-template-columns: 37cqw 1fr; gap: 4cqw; margin-top: 4cqw; align-items: start; }
.B .polaroid { position: relative; background: #fff; padding: 2cqw 2cqw 6.6cqw; rotate: -4deg; box-shadow: 0 1.4cqw 3cqw rgba(42, 37, 96, .25); }
.B .polaroid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #e8e4ff; }
.B .polaroid .cap { position: absolute; left: 0; right: 0; bottom: 1.4cqw; text-align: center; font: 400 3.6cqw/1.1 var(--hand); color: #2a2560; padding: 0 2cqw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.B .tape { position: absolute; width: 15cqw; height: 4.4cqw; background: repeating-linear-gradient(45deg, rgba(255, 143, 192, .75) 0 1.4cqw, rgba(255, 196, 222, .75) 1.4cqw 2.8cqw); }
.B .polaroid .tape { top: -2cqw; left: 50%; translate: -50% 0; rotate: 3deg; }
.B .info { display: grid; gap: 2.6cqw; padding-top: 1.4cqw; }
.B .stk { display: flex; align-items: center; gap: 2.2cqw; }
.B .stk img, .B .stk .q { width: 11cqw; height: 11cqw; object-fit: contain; flex: none; filter: drop-shadow(0 0 0 #fff) drop-shadow(.5cqw .5cqw 0 rgba(42,37,96,.18)); }
.B .stk .q { display: grid; place-items: center; background: #c9cede; color: #5d6481; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); font: 800 5cqw var(--display); }
.B .stk .k { font: 400 2.5cqw/1 var(--hand); color: #8a80d8; }
.B .stk .v { font: 800 4.4cqw/1.05 var(--display); color: #2a2560; }
.B .stk .v.crown { color: #e08a00; }
.B .lbl { display: inline-block; margin-top: 3.6cqw; font: 400 3.2cqw/1 var(--hand); color: #2a2560; padding: 1cqw 2.6cqw; background: #c9f2ff; rotate: -2deg; box-shadow: .4cqw .4cqw 0 rgba(42,37,96,.15); }
.B .stickers { display: flex; gap: 4cqw; margin-top: 2.4cqw; padding-left: 2cqw; }
.B .st { display: grid; justify-items: center; gap: 1cqw; width: 19cqw; }
.B .st img { width: 14cqw; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 1cqw solid #fff; box-shadow: 0 .8cqw 1.6cqw rgba(42,37,96,.25); }
.B .st:nth-child(1) { rotate: -6deg; } .B .st:nth-child(2) { rotate: 4deg; translate: 0 1cqw; } .B .st:nth-child(3) { rotate: -2deg; }
.B .st span { font: 400 2.3cqw/1.15 var(--hand); text-align: center; color: #2a2560; }
.B .note { position: absolute; left: 12cqw; right: 33cqw; top: 93cqw; min-height: 19cqw; padding: 3.6cqw 3.4cqw 2.6cqw; background: #fff6a8; rotate: 1.8deg;
  box-shadow: 0 1.4cqw 2.4cqw rgba(42, 37, 96, .22); font: 400 2.7cqw/1.35 var(--hand); color: #3b3470; overflow-wrap: anywhere; white-space: pre-line; max-height: 22cqw; overflow: hidden; }
.B .note::before { content: ""; position: absolute; top: -1.8cqw; left: 50%; width: 4cqw; height: 4cqw; border-radius: 50%; translate: -50% 0;
  background: radial-gradient(circle at 35% 35%, #ff9ab9, #e0306b 70%); box-shadow: 0 .6cqw .8cqw rgba(0,0,0,.25); }
.B .note.empty { color: #a39c6a; }
.B .ticket { position: absolute; right: 4cqw; top: 91cqw; width: 27cqw; padding: 2.6cqw 2.4cqw; background: #fff; rotate: -3deg; box-shadow: 0 1.2cqw 2.2cqw rgba(42,37,96,.2);
  display: grid; gap: 1.3cqw; font: 700 2.15cqw/1.2 var(--body);
  -webkit-mask: radial-gradient(circle at 0 50%, transparent 1.6cqw, #000 1.7cqw) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 1.6cqw, #000 1.7cqw) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 50%, transparent 1.6cqw, #000 1.7cqw) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 1.6cqw, #000 1.7cqw) right / 51% 100% no-repeat; }
.B .ticket .th { font: 400 2.8cqw/1 var(--hand); color: #6b5fd6; text-align: center; border-bottom: .3cqw dashed #c9c2f5; padding-bottom: 1cqw; }
.B .ticket div { display: grid; min-width: 0; }
.B .ticket b { font: 900 1.6cqw/1 var(--body); letter-spacing: .08em; color: #9a90e0; text-transform: uppercase; }
.B .ticket span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #2a2560; }
.B .ticket .none { color: #a8a2d6; text-align: center; font-weight: 600; }
.B .stamp { position: absolute; right: 6cqw; top: 49cqw; rotate: 14deg; border: .7cqw solid #e0306b; color: #e0306b; border-radius: 50%; width: 17cqw; aspect-ratio: 1;
  display: grid; place-items: center; text-align: center; font: 800 2.2cqw/1.1 var(--display); text-transform: uppercase; padding: 2cqw; opacity: .85;
  box-shadow: inset 0 0 0 .5cqw #f7f0ff, inset 0 0 0 .9cqw #e0306b; }
.B .stamp.found { color: #18a26a; border-color: #18a26a; box-shadow: inset 0 0 0 .5cqw #f7f0ff, inset 0 0 0 .9cqw #18a26a; }
.B .doodle { position: absolute; color: #ff8fc0; width: 5cqw; }
.B .foot { position: absolute; left: 13cqw; right: 4cqw; bottom: 2.4cqw; font: 400 2.3cqw/1 var(--hand); color: #8a80d8; }
.B .foot b { font-family: var(--display); color: #6b5fd6; letter-spacing: .06em; }
.B.t-pink { background-color: #fff0f7;
  background-image: linear-gradient(rgba(230, 90, 150, .15) 1px, transparent 1px), linear-gradient(90deg, rgba(230, 90, 150, .15) 1px, transparent 1px); }
.B.t-pink::before { background: #b8336a; }
.B.t-pink .stamp.found { box-shadow: inset 0 0 0 .5cqw #fff0f7, inset 0 0 0 .9cqw #18a26a; }
.B.t-mint { background-color: #ecfff8;
  background-image: linear-gradient(rgba(40, 170, 140, .15) 1px, transparent 1px), linear-gradient(90deg, rgba(40, 170, 140, .15) 1px, transparent 1px); }
.B.t-mint::before { background: #0f6b5c; }
.B.t-mint .stamp.found { box-shadow: inset 0 0 0 .5cqw #ecfff8, inset 0 0 0 .9cqw #18a26a; }
.card.export { width: 1080px; max-width: none; border-radius: 0; box-shadow: none; }
.card.export, .card.export * { animation: none !important; }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; justify-self: center; }
.seg button { font: 800 13px var(--body); color: var(--muted); background: none; border: 0; padding: 6px 13px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--cyan); color: var(--night); }
.card-opts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; }
.swatches { display: inline-flex; gap: 8px; }
.swatches .sw { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.swatches .sw.auto { background: conic-gradient(#f2b98a, #ffe68a, #5ed0ff, #c07bff, #ff5a3c, #f2b98a); }
.swatches .sw[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px var(--cyan); }
.export-holder { position: fixed; left: -12000px; top: 0; overflow: hidden; background: var(--night); }
.preview-img { display: block; width: 100%; border-radius: 10px; }

/* tournaments */
.list { display: grid; gap: 8px; }
.trow { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; color: var(--ink); text-decoration: none; flex-wrap: wrap; }
.trow:hover { border-color: var(--cyan); }
.tr-main { display: grid; min-width: 0; }
.tr-main b { font: 800 17px/1.25 var(--display); overflow-wrap: anywhere; }
.tr-main .muted, .tr-side .muted { font-size: 13px; }
.tr-side { display: flex; align-items: center; gap: 8px; }
.pill { display: inline-block; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 2px 10px; font: 800 12px/1.5 var(--body); }
.pill.live { background: rgba(60, 207, 142, .15); border-color: var(--green); color: var(--green); }
.thead { display: grid; gap: 6px; }
.thead h1 { margin: 0; overflow-wrap: anywhere; }
.seeds { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; max-height: 320px; overflow-y: auto; }
.seeds li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 6px; align-items: center; background: var(--night-2); border-radius: 10px; padding: 4px 6px; }
.seeds .seed { color: var(--yellow); font-weight: 800; text-align: center; }
.seeds .sn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manage { border-color: rgba(255, 216, 58, .45); }

/* bracket */
.bracket-scroll { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.bwrap { display: grid; gap: 14px; min-width: min-content; }
.bracket { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); column-gap: 32px; min-width: min-content; }
.bcol { display: grid; scroll-snap-align: start; }
.bhead { font: 800 13px var(--display); color: var(--yellow); text-transform: uppercase; letter-spacing: .06em; padding: 4px 2px; }
.bslot { position: relative; display: flex; align-items: center; min-height: 84px; padding-block: 5px; }
/* branch lines: each pair of matches joins, then one line runs into the next round */
.bslot:not(.last)::after { content: ""; position: absolute; left: 100%; width: 16px; border: 0 solid #5763c4; border-right-width: 2px; }
.bslot.down:not(.last)::after { top: 50%; bottom: 0; border-top-width: 2px; border-top-right-radius: 10px; }
.bslot.up:not(.last)::after { top: 0; bottom: 50%; border-bottom-width: 2px; border-bottom-right-radius: 10px; }
.bslot:not(.first)::before { content: ""; position: absolute; right: 100%; top: 50%; width: 16px; border-top: 2px solid #5763c4; }
.bslot.straight:not(.last)::after { top: 50%; bottom: auto; border-right-width: 0; border-top-width: 2px; }
.bslot.won:not(.last)::after { border-color: var(--yellow); }
.bslot.fed:not(.first)::before { border-top-color: var(--yellow); }
.match { position: relative; width: 100%; display: grid; gap: 2px; background: var(--panel); border: 1.5px solid var(--line); border-radius: 12px; padding: 6px; text-align: left; color: var(--ink); font: inherit; }
button.match { cursor: pointer; }
button.match:hover { border-color: var(--cyan); }
.match.live { border-color: var(--green); box-shadow: 0 0 0 2px rgba(60, 207, 142, .25); }
.match.bye { opacity: .6; }
.livebadge { position: absolute; top: -9px; right: 8px; background: var(--green); color: var(--night); font: 800 10px/1 var(--body); padding: 3px 6px; border-radius: 6px; }
.mt { display: grid; grid-template-columns: 22px minmax(0, 1fr) 26px; gap: 6px; align-items: center; padding: 4px 6px; border-radius: 8px; background: var(--night-2); }
.mt .seed { color: var(--muted); font-size: 11px; text-align: center; }
.mt .mn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.mt .ms { text-align: center; font: 800 15px var(--display); }
.mt.win { background: rgba(255, 216, 58, .14); }
.mt.win .mn, .mt.win .ms { color: var(--yellow); font-weight: 800; }
.mt.lose { opacity: .55; }
.mnote { color: var(--muted); font-size: 11.5px; padding: 0 4px; overflow-wrap: anywhere; }
.bthird { display: grid; gap: 8px; width: min(100%, 300px); justify-self: end; }
@media (max-width: 720px) { .bracket { grid-auto-columns: 82vw; } }

/* podium */
.podium { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 10px; align-items: end; max-width: 620px; margin: 0 auto; width: 100%; }
.pd { display: grid; justify-items: center; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px 14px 6px 6px; padding: 14px 8px; text-align: center; min-width: 0; }
.pd b { font: 800 16px/1.2 var(--display); overflow-wrap: anywhere; }
.pd small { color: var(--muted); font-weight: 800; }
.pd .medal { font-size: 30px; line-height: 1; }
.pd.p1 { padding-block: 26px; border-color: var(--yellow); background: linear-gradient(180deg, rgba(255, 216, 58, .2), var(--panel)); }
.pd.p1 b { color: var(--yellow); font-size: 20px; }
.pd.p1 .medal { font-size: 42px; }

/* album */
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 10px; }
.album figure { position: relative; margin: 0; display: grid; gap: 4px; }
.album img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.album figcaption { font-size: 12.5px; color: var(--muted); }
.album .del { position: absolute; top: 6px; right: 6px; background: rgba(12, 16, 51, .85); }
.videos { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.videos li { display: flex; align-items: center; gap: 6px; background: var(--panel); border-radius: 10px; padding: 8px 10px; flex-wrap: wrap; overflow-wrap: anywhere; }
.videos a { font-weight: 800; text-decoration: none; }
.videos .del { margin-left: auto; width: 28px; height: 28px; }
.addimg { cursor: pointer; justify-self: start; }
.addimg.busy { opacity: .5; pointer-events: none; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; }

/* match dialog */
.score-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; text-align: center; }
.score-grid .side { display: grid; gap: 8px; justify-items: center; min-width: 0; }
.score-grid .side b { overflow-wrap: anywhere; }
.score-grid .vs { color: var(--muted); font-weight: 800; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper .icon { width: 44px; height: 44px; font-size: 22px; border-radius: 12px; }
.big-score { font: 800 34px/1 var(--display); min-width: 34px; color: var(--yellow); }

/* admin */
.acc { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 1.3fr) minmax(0, 1.3fr) auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.acc-name { display: flex; align-items: center; }
.acc small { grid-column: 1 / -1; }
@media (max-width: 720px) { .acc { grid-template-columns: minmax(0, 1fr); } }
.setup { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.setup li { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.sql { background: var(--night-2); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; overflow-x: auto; white-space: nowrap; max-width: 100%; display: block; flex: 1; min-width: 0; }
.reports { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.reports li { background: var(--night-2); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; overflow-wrap: anywhere; }

/* modal + toast */
.modal-back { position: fixed; inset: 0; z-index: 50; background: rgba(5, 7, 25, .72); display: grid; place-items: center; padding: 16px; }
.modal { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.modal.wide { width: min(720px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px 6px; position: sticky; top: 0; background: var(--panel); }
.modal-head h3 { margin: 0; }
.modal .x { background: none; border: 0; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
.modal-body { padding: 6px 16px 16px; display: grid; gap: 14px; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); transform: translate(-50%, 20px); opacity: 0;
  background: #0a0e2b; border: 1.5px solid var(--cyan); color: var(--ink); padding: 10px 16px; border-radius: 12px; font-weight: 800; transition: .25s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: var(--red); color: #ffd0d6; }

/* ───────── export images (rendered off-screen at fixed pixel size) ───────── */
.exp { width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 24px; padding: 48px 56px 36px; color: var(--ink);
  background: radial-gradient(70% 60% at 85% 0%, #3a2a8f 0%, transparent 60%), radial-gradient(60% 50% at 0% 100%, #1d2a74 0%, transparent 65%), var(--night); }
.exp-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; border-bottom: 3px solid rgba(94, 208, 255, .35); padding-bottom: 18px; }
.exp-kicker { color: var(--cyan); font: 800 22px var(--display); letter-spacing: .08em; }
.exp-title { font: 800 54px/1.05 var(--display); color: var(--yellow); text-shadow: 0 4px 0 #4a1f9a; }
.exp-meta { color: var(--muted); font-size: 20px; text-align: right; max-width: 40%; }
.exp-foot { color: var(--muted); font-size: 18px; letter-spacing: .06em; }
.exp-foot b { color: var(--cyan); }
.exp .bwrap { height: 100%; min-height: 0; grid-template-rows: minmax(0, 1fr) auto; }
.exp .bracket { grid-auto-columns: 1fr; height: 100%; min-height: 0; }
.exp .bcol { height: 100%; }
.exp .bslot { min-height: 0; }
.exp .match { padding: 4px; }
.exp .mt { padding: 3px 8px; font-size: 18px; }
.exp .mt .ms { font-size: 20px; }
.exp .bhead { font-size: 18px; }
.exp.port { padding: 64px 60px 44px; }
.exp.port .exp-head { flex-direction: column; align-items: start; }
.exp.port .exp-meta { text-align: left; max-width: none; }
.exp-podium { display: grid; align-content: center; justify-items: center; gap: 28px; }
.exp-trophy { font-size: 150px; line-height: 1; filter: drop-shadow(0 0 40px rgba(255, 216, 58, .5)); }
.exp-label { font: 800 40px var(--display); color: var(--cyan); letter-spacing: .1em; text-transform: uppercase; }
.exp .podium { max-width: none; gap: 20px; }
.exp .pd { padding: 26px 14px; border-width: 2px; }
.exp .pd b { font-size: 30px; }
.exp .pd small { font-size: 22px; }
.exp .pd .medal { font-size: 56px; }
.exp .pd.p1 { padding-block: 46px; }
.exp .pd.p1 b { font-size: 38px; }
.exp .pd.p1 .medal { font-size: 80px; }

/* ───────── mini profile card (home + list) ───────── */
/* mini profile card (shared by hero + list) */
.mc { --c1: #6a2bd6; --c2: #e8b3ff; --glow: #c07bff; position: relative; padding: 3px; border-radius: 20px;
  background: linear-gradient(140deg, var(--c2), var(--c1) 35%, var(--c2) 60%, var(--c1)); box-shadow: 0 16px 40px rgba(0, 0, 0, .45), 0 0 24px color-mix(in srgb, var(--glow) 35%, transparent); }
.mc .in { border-radius: 17px; padding: 14px 14px 12px; display: grid; gap: 10px;
  background: radial-gradient(90% 50% at 50% 0%, color-mix(in srgb, var(--glow) 30%, transparent), transparent 70%), #121750; }
.mc .hd { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; align-items: center; }
.mc .av { position: relative; width: 58px; height: 58px; }
.mc .av img.face { width: 58px; height: 58px; border-radius: 14px; object-fit: cover; box-shadow: 0 0 0 2.5px var(--c2); }
.mc .av .medal { position: absolute; right: -7px; bottom: -7px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #0c1033; box-shadow: 0 0 0 2px var(--c2); }
.mc .av .medal img { width: 22px; height: 22px; object-fit: contain; }
.mc .nm { font: 800 17px/1.15 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc .meta { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); font-weight: 800; flex-wrap: wrap; }
.mc .meta .cr { display: inline-flex; align-items: center; gap: 4px; color: var(--yellow); }
.mc .meta .cr img { width: 16px; height: 16px; }
.mc .meta .lg { font-size: 11px; padding: 2px 7px; border-radius: 99px; background: rgba(255,255,255,.08); color: var(--ink); }
.mc .trio { display: flex; gap: 6px; }
.mc .trio img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; box-shadow: 0 0 0 1.5px rgba(255,255,255,.18); }
.mc .trio img:first-child { box-shadow: 0 0 0 2px var(--yellow); }
.mc .note { margin: 0; font-size: 13px; color: #d3d7ff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.mc .ft { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mc .st { display: inline-flex; align-items: center; gap: 6px; font: 800 11px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, #ff6b95, #e0306b); padding: 5px 9px 4px; border-radius: 99px; }
.mc .st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.mc .go { font: 800 12.5px/1 var(--body); color: var(--cyan); }
.mc.r1 { --c1: #8a4b22; --c2: #f2b98a; --glow: #ff9a52; } .mc.r2 { --c1: #6f7d98; --c2: #f4f7ff; --glow: #cfe0ff; }
.mc.r3 { --c1: #b07d06; --c2: #ffe68a; --glow: #ffd83a; } .mc.r4 { --c1: #2563c9; --c2: #b4ecff; --glow: #5ed0ff; }
.mc.r5 { --c1: #6a2bd6; --c2: #e8b3ff; --glow: #c07bff; } .mc.r6 { --c1: #a3101f; --c2: #ffd166; --glow: #ff5a3c; }
.float .mc .note, .float .mc .ft { display: none; }

.mc { display: block; color: var(--ink); text-decoration: none; transition: transform .2s; }
a.mc:hover { transform: translateY(-4px) rotate(-.6deg); }
.mc.r0 { --c1: #707894; --c2: #dfe4f5; --glow: #9aa3c7; }
.mc .av .medal .q { font: 800 13px var(--display); color: #5d6481; }
.grid-cards { gap: 18px; }

/* ───────── home ───────── */
.eyebrow { font: 800 12px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); }
.home { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.home .btn { transition: transform .15s; }
.home .btn:hover { transform: translateY(-2px); }
.home .btn.y { background: linear-gradient(180deg, #ffe46a, #ffc81f); color: #2a1a00; box-shadow: 0 6px 0 #c48a00, 0 12px 30px rgba(255, 200, 31, .3); padding: 14px 22px; font-size: 15px; }
.home .btn.c { background: linear-gradient(180deg, #8be0ff, #3ec2ff); color: #062039; box-shadow: 0 6px 0 #1b86c4, 0 12px 30px rgba(62, 194, 255, .25); padding: 14px 22px; font-size: 15px; }
.home .tc { color: var(--ink); text-decoration: none; }
.home .tours.solo { grid-template-columns: minmax(0, 1fr); }
.home .hero { background: none; border: 0; border-radius: 0; }
.home .hero h1 .l3 { text-shadow: none; }
/* hero */
.home .hero { padding-block: 48px 40px; }
.home .hero .hw { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
.home .hero h1 { margin: 14px 0 16px; font: 800 clamp(38px, 5.6vw, 66px)/.98 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.home .hero h1 .l2 { color: var(--yellow); text-shadow: 0 4px 0 #5a1fae, 0 0 40px rgba(255, 216, 58, .35); }
.home .hero h1 .l3 { background: linear-gradient(90deg, #8be0ff, #ff8fc0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home .hero p.lead { color: #d3d7ff; font-size: 17px; max-width: 46ch; margin: 0 0 26px; }
.home .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.home .stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 30px; align-items: end; }
.home .stat b { display: block; font: 800 30px/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.home .stat span { font-size: 13px; color: var(--muted); font-weight: 700; }
.home .stat.live b { color: var(--green); display: flex; align-items: center; gap: 8px; }
.home .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(60, 207, 142, .6); }
.home .stage { position: relative; aspect-ratio: 1.08; max-width: 560px; justify-self: end; width: 100%; }
.home .stage .scene { position: absolute; inset: 6% 4% 10% 14%; border-radius: 30px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 2px rgba(94, 208, 255, .35); }
.home .stage .scene img { width: 100%; height: 100%; object-fit: cover; }
.home .stage .scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 13, 46, 0) 30%, rgba(10, 13, 46, .75)), radial-gradient(80% 60% at 70% 30%, rgba(94, 208, 255, .25), transparent 70%); }
.home .stage .archer { position: absolute; right: -2%; bottom: 0; width: 56%; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .55)) drop-shadow(0 0 30px rgba(140, 255, 160, .25)); z-index: 3; }
.home .stage .rays { position: absolute; right: 2%; bottom: 8%; width: 60%; aspect-ratio: 1; z-index: 2; border-radius: 50%;
  background: repeating-conic-gradient(rgba(140, 255, 170, .22) 0 7deg, transparent 7deg 20deg); -webkit-mask: radial-gradient(circle, #000 0 20%, transparent 65%); mask: radial-gradient(circle, #000 0 20%, transparent 65%); }
.home .float { position: absolute; z-index: 4; }
.home .float.f1 { left: 0; top: 18%; rotate: -8deg; width: 210px; }
.home .float.f2 { left: 22%; top: 58%; rotate: 5deg; width: 190px; }
.home .chip-live { position: absolute; z-index: 5; right: 8%; top: 2%; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px;
  background: rgba(18, 23, 74, .92); border: 1.5px solid rgba(60, 207, 142, .6); box-shadow: 0 14px 30px rgba(0, 0, 0, .4); font-weight: 800; font-size: 13px; }
.home .chip-live small { display: block; color: var(--muted); font-weight: 700; font-size: 11.5px; }
.home .chip-new { position: absolute; z-index: 5; left: 6%; bottom: 4%; padding: 9px 14px; border-radius: 14px; background: linear-gradient(180deg, #ff8fc0, #ff5c9e); color: #fff;
  font: 800 13px/1.2 var(--body); box-shadow: 0 10px 24px rgba(255, 92, 158, .35); rotate: -3deg; }
/* sections */
.home section.blk { padding-block: 34px; }
.home .sh { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.home .sh h2 { margin: 6px 0 0; font: 800 clamp(26px, 3.4vw, 36px)/1.05 var(--display); text-wrap: balance; }
.home .sh h2 em { font-style: normal; color: var(--yellow); }
.home .sh a.more { color: var(--cyan); font-weight: 800; }
/* tournaments */
.home .tours { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; }
.home .tc { position: relative; border-radius: 22px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); display: grid; }
.home .tc .ban { position: relative; height: 150px; overflow: hidden; }
.home .tc .ban img { width: 100%; height: 100%; object-fit: cover; }
.home .tc .ban::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 13, 46, .1), rgba(24, 30, 92, 1)); }
.home .tc.big .ban { height: 210px; }
.home .tc .ban .bossimg { position: absolute; right: 18px; bottom: -10px; width: 150px; height: auto; z-index: 1; filter: drop-shadow(0 10px 20px rgba(0,0,0,.5)); }
.home .tc .tags { position: absolute; left: 16px; top: 14px; z-index: 2; display: flex; gap: 6px; }
.home .tag { font: 800 11.5px/1 var(--body); padding: 6px 10px; border-radius: 99px; background: rgba(10, 13, 46, .75); color: var(--ink); backdrop-filter: blur(4px); }
.home .tag.live { background: var(--green); color: #052a1b; display: inline-flex; gap: 6px; align-items: center; }
.home .tag.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #052a1b; }
.home .tag.done { background: var(--yellow); color: #2a1a00; }
.home .tc .bd { padding: 4px 18px 18px; display: grid; gap: 12px; position: relative; z-index: 1; margin-top: -26px; }
.home .tc h3 { margin: 0; font: 800 22px/1.1 var(--display); }
.home .tc.big h3 { font-size: 28px; }
.home .tc .by { color: var(--muted); font-size: 13.5px; font-weight: 700; }
.home .tc .by b { color: var(--ink); }
.home .prog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.home .prog div { display: grid; gap: 6px; font: 800 11px/1 var(--body); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.home .prog i { height: 6px; border-radius: 99px; background: var(--line); }
.home .prog .done i { background: var(--cyan); }
.home .prog .now i { background: linear-gradient(90deg, var(--cyan), var(--green)); box-shadow: 0 0 12px rgba(60, 207, 142, .6); }
.home .prog .now { color: var(--green); }
.home .mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.home .mm { background: var(--night-2); border-radius: 12px; padding: 6px; display: grid; gap: 3px; border: 1.5px solid var(--line); }
.home .mm.live { border-color: var(--green); box-shadow: 0 0 0 3px rgba(60, 207, 142, .15); }
.home .mm div { display: grid; grid-template-columns: minmax(0, 1fr) 22px; gap: 6px; padding: 4px 8px; border-radius: 8px; font-weight: 800; font-size: 13px; }
.home .mm div span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home .mm div span:last-child { text-align: center; font-family: var(--display); }
.home .mm .w { background: rgba(255, 216, 58, .14); color: var(--yellow); }
.home .tc .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.home .tc .meta { display: flex; gap: 14px; color: var(--muted); font-size: 13px; font-weight: 800; }
.home .side { display: grid; gap: 18px; }
.home .podium { display: flex; align-items: end; gap: 8px; }
.home .podium div { flex: 1; text-align: center; border-radius: 12px 12px 4px 4px; padding: 8px 4px; background: var(--night-2); font: 800 12.5px/1.2 var(--display); }
.home .podium .p1 { padding-block: 16px; background: linear-gradient(180deg, rgba(255, 216, 58, .25), var(--night-2)); color: var(--yellow); box-shadow: inset 0 0 0 1.5px rgba(255, 216, 58, .5); }
.home .podium small { display: block; font-size: 18px; }
/* how it works */
.home .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.home .step { position: relative; padding: 22px 20px 20px; border-radius: 22px; background: linear-gradient(180deg, var(--panel), var(--night-2)); border: 1px solid var(--line); overflow: hidden; }
.home .step::before { counter-increment: s; content: counter(s); position: absolute; right: 14px; top: -6px; font: 800 96px/1 var(--display); color: rgba(255,255,255,.05); }
.home .step .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: rgba(94, 208, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(94, 208, 255, .35); }
.home .step h3 { margin: 14px 0 6px; font: 800 20px/1.15 var(--display); }
.home .step p { margin: 0; color: var(--muted); font-size: 14px; }
.home .step:nth-child(2) .ic { background: rgba(255, 216, 58, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 216, 58, .4); }
.home .step:nth-child(3) .ic { background: rgba(255, 111, 174, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 111, 174, .4); }
/* champions ticker */
.home .ticker { position: relative; overflow: hidden; border-block: 1px solid rgba(255, 216, 58, .25); background: linear-gradient(90deg, rgba(255, 216, 58, .08), rgba(255, 111, 174, .08)); padding-block: 14px; }
.home .ticker .track { display: flex; gap: 40px; width: max-content; }
.home .ticker span { display: inline-flex; align-items: center; gap: 10px; font: 800 15px/1 var(--display); white-space: nowrap; }
.home .ticker span b { color: var(--yellow); }
.home .ticker span i { font-style: normal; color: var(--muted); font-family: var(--body); font-size: 13px; }
/* final CTA */
.home .final { margin-block: 36px 30px; position: relative; overflow: hidden; border-radius: 28px; padding: 34px 30px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center;
  background: radial-gradient(60% 120% at 100% 50%, rgba(255, 216, 58, .25), transparent 60%), linear-gradient(120deg, #3a1f9a, #1c2a8a); border: 2px solid rgba(255, 216, 58, .35); }
.home .final h2 { margin: 0 0 6px; font: 800 clamp(26px, 3.4vw, 38px)/1.05 var(--display); }
.home .final p { margin: 0; color: #d3d7ff; }
.home .final .crown { width: 120px; filter: drop-shadow(0 0 30px rgba(255, 216, 58, .6)); }
@media (prefers-reduced-motion: no-preference) {
.home .stage .rays { animation: spin 50s linear infinite; }
.home .float.f1 { animation: bob 6s ease-in-out infinite; }
.home .float.f2 { animation: bob 7s ease-in-out -3s infinite; }
.home .dot, .home .tag.live::before { animation: ping 1.6s ease-out infinite; }
.home .ticker .track { animation: slide 38s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
@keyframes bob { 50% { translate: 0 -10px; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(60, 207, 142, .6); } 100% { box-shadow: 0 0 0 10px rgba(60, 207, 142, 0); } }
@keyframes slide { to { transform: translateX(-50%); } }

}
.home .cards .mc { transition: transform .2s; }
.home .cards .mc:hover { transform: translateY(-4px) rotate(-.6deg); }
.home .empty-note { color: var(--muted); }
/* tournaments */
.home .tours { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; }
.home .tc { position: relative; border-radius: 22px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); display: grid; }
.home .tc .ban { position: relative; height: 150px; overflow: hidden; }
.home .tc .ban img { width: 100%; height: 100%; object-fit: cover; }
.home .tc .ban::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 13, 46, .1), rgba(24, 30, 92, 1)); }
.home .tc.big .ban { height: 210px; }
.home .tc .ban .bossimg { position: absolute; right: 18px; bottom: -10px; width: 150px; height: auto; z-index: 1; filter: drop-shadow(0 10px 20px rgba(0,0,0,.5)); }
.home .tc .tags { position: absolute; left: 16px; top: 14px; z-index: 2; display: flex; gap: 6px; }
.home .tag { font: 800 11.5px/1 var(--body); padding: 6px 10px; border-radius: 99px; background: rgba(10, 13, 46, .75); color: var(--ink); backdrop-filter: blur(4px); }
.home .tag.live { background: var(--green); color: #052a1b; display: inline-flex; gap: 6px; align-items: center; }
.home .tag.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #052a1b; }
.home .tag.done { background: var(--yellow); color: #2a1a00; }
.home .tc .bd { padding: 4px 18px 18px; display: grid; gap: 12px; position: relative; z-index: 1; margin-top: -26px; }
.home .tc h3 { margin: 0; font: 800 22px/1.1 var(--display); }
.home .tc.big h3 { font-size: 28px; }
.home .tc .by { color: var(--muted); font-size: 13.5px; font-weight: 700; }
.home .tc .by b { color: var(--ink); }
.home .prog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.home .prog div { display: grid; gap: 6px; font: 800 11px/1 var(--body); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.home .prog i { height: 6px; border-radius: 99px; background: var(--line); }
.home .prog .done i { background: var(--cyan); }
.home .prog .now i { background: linear-gradient(90deg, var(--cyan), var(--green)); box-shadow: 0 0 12px rgba(60, 207, 142, .6); }
.home .prog .now { color: var(--green); }
.home .mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.home .mm { background: var(--night-2); border-radius: 12px; padding: 6px; display: grid; gap: 3px; border: 1.5px solid var(--line); }
.home .mm.live { border-color: var(--green); box-shadow: 0 0 0 3px rgba(60, 207, 142, .15); }
.home .mm div { display: grid; grid-template-columns: minmax(0, 1fr) 22px; gap: 6px; padding: 4px 8px; border-radius: 8px; font-weight: 800; font-size: 13px; }
.home .mm div span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home .mm div span:last-child { text-align: center; font-family: var(--display); }
.home .mm .w { background: rgba(255, 216, 58, .14); color: var(--yellow); }
.home .tc .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.home .tc .meta { display: flex; gap: 14px; color: var(--muted); font-size: 13px; font-weight: 800; }
.home .side { display: grid; gap: 18px; }
.home .podium { display: flex; align-items: end; gap: 8px; }
.home .podium div { flex: 1; text-align: center; border-radius: 12px 12px 4px 4px; padding: 8px 4px; background: var(--night-2); font: 800 12.5px/1.2 var(--display); }
.home .podium .p1 { padding-block: 16px; background: linear-gradient(180deg, rgba(255, 216, 58, .25), var(--night-2)); color: var(--yellow); box-shadow: inset 0 0 0 1.5px rgba(255, 216, 58, .5); }
.home .podium small { display: block; font-size: 18px; }
/* how it works */
.home .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.home .step { position: relative; padding: 22px 20px 20px; border-radius: 22px; background: linear-gradient(180deg, var(--panel), var(--night-2)); border: 1px solid var(--line); overflow: hidden; }
.home .step::before { counter-increment: s; content: counter(s); position: absolute; right: 14px; top: -6px; font: 800 96px/1 var(--display); color: rgba(255,255,255,.05); }
.home .step .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: rgba(94, 208, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(94, 208, 255, .35); }
.home .step h3 { margin: 14px 0 6px; font: 800 20px/1.15 var(--display); }
.home .step p { margin: 0; color: var(--muted); font-size: 14px; }
.home .step:nth-child(2) .ic { background: rgba(255, 216, 58, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 216, 58, .4); }
.home .step:nth-child(3) .ic { background: rgba(255, 111, 174, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 111, 174, .4); }
/* champions ticker */
.home .ticker { position: relative; overflow: hidden; border-block: 1px solid rgba(255, 216, 58, .25); background: linear-gradient(90deg, rgba(255, 216, 58, .08), rgba(255, 111, 174, .08)); padding-block: 14px; }
.home .ticker .track { display: flex; gap: 40px; width: max-content; }
.home .ticker span { display: inline-flex; align-items: center; gap: 10px; font: 800 15px/1 var(--display); white-space: nowrap; }
.home .ticker span b { color: var(--yellow); }
.home .ticker span i { font-style: normal; color: var(--muted); font-family: var(--body); font-size: 13px; }
/* final CTA */
.home .final { margin-block: 36px 30px; position: relative; overflow: hidden; border-radius: 28px; padding: 34px 30px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center;
  background: radial-gradient(60% 120% at 100% 50%, rgba(255, 216, 58, .25), transparent 60%), linear-gradient(120deg, #3a1f9a, #1c2a8a); border: 2px solid rgba(255, 216, 58, .35); }
.home .final h2 { margin: 0 0 6px; font: 800 clamp(26px, 3.4vw, 38px)/1.05 var(--display); }
.home .final p { margin: 0; color: #d3d7ff; }
.home .final .crown { width: 120px; filter: drop-shadow(0 0 30px rgba(255, 216, 58, .6)); }
@media (max-width: 920px) {
.home .hero .hw { grid-template-columns: minmax(0, 1fr); }
.home .stage { justify-self: center; max-width: 460px; }
.home .tours { grid-template-columns: minmax(0, 1fr); }

}
@media (max-width: 720px) {
.home .hero { padding-block: 24px 20px; }
.home .hero h1 { font-size: 40px; }
.home .float.f2, .home .chip-new { display: none; }
.home .float.f1 { width: 200px; left: -2%; top: 34%; }
.home .stage .scene { inset: 8% 2% 6% 10%; }
.home .chip-live { right: 2%; }
.home .steps { grid-template-columns: minmax(0, 1fr); }
.home .final { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
.home .final .crown { width: 84px; order: -1; }

}


/* phones: bottom tab bar replaces the text menu */
.tabbar { display: none; }
@media (max-width: 720px) {
  #nav .navl:not(.me-cta) { display: none; }
  #nav { justify-content: flex-end; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); background: rgba(10, 13, 46, .94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; font: 800 11px/1 var(--body); color: var(--muted); border-radius: 12px; text-decoration: none; }
  .tabbar a b { font-size: 20px; line-height: 1; }
  .tabbar a.on { color: var(--yellow); background: rgba(255, 216, 58, .08); }
  .tabbar a.make b { display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: linear-gradient(180deg, #ffe46a, #ffc81f); color: #2a1a00; box-shadow: 0 4px 0 #c48a00, 0 0 0 4px var(--night); }
  .site-foot { padding-bottom: 96px; }
}

/* tournament form */
.pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 8px; }
.pair { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; background: var(--night-2); border-radius: 12px; padding: 7px 10px; }
.pair-n { color: var(--muted); font-size: 12px; font-weight: 800; }
.pair-vs { color: var(--yellow); font: 800 12px var(--display); }
.pair-team { border: 2px solid var(--line); background: var(--panel); color: var(--ink); font: 800 13.5px var(--body); padding: 8px 6px; border-radius: 10px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pair-team[aria-pressed="true"] { border-color: var(--yellow); background: rgba(255, 216, 58, .16); }
.pair-bye { text-align: center; color: var(--muted); font-size: 13px; }
.btn.alt { color: #2a1a00; }
.adv { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.adv summary { cursor: pointer; font-weight: 800; }
.adv-body { display: grid; gap: 14px; margin-top: 14px; }

/* guilds */
.guilds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.gc { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px; border-radius: 18px; color: var(--ink); text-decoration: none; background: linear-gradient(140deg, var(--panel), var(--night-2)); border: 1px solid var(--line); transition: transform .2s; }
.gc:hover { transform: translateY(-3px); border-color: var(--cyan); }
.gc-logo { width: 76px; height: 76px; border-radius: 18px; object-fit: cover; box-shadow: 0 0 0 2.5px var(--yellow); }
.gc-main { display: grid; gap: 6px; min-width: 0; }
.gc-main p { margin: 0; color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.gc-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.gc-name b { font: 800 18px/1.15 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; }
.gc-meta .cr { display: inline-flex; align-items: center; gap: 4px; color: var(--yellow); }
.gc-meta .cr img { width: 16px; height: 16px; }
.gc-meta .lg { font-size: 11px; padding: 2px 7px; border-radius: 99px; background: rgba(255, 255, 255, .08); }
.tick { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--cyan); color: var(--night); font: 900 11px/1 var(--body); }
.tick.big { width: 26px; height: 26px; font-size: 15px; margin-left: 10px; vertical-align: middle; }
.pill.ok { background: rgba(94, 208, 255, .15); border-color: var(--cyan); color: var(--cyan); }
.ghead { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 22px; padding: 22px; border-radius: 24px; border: 2px solid rgba(94, 208, 255, .35);
  background: radial-gradient(70% 120% at 100% 0%, #3a2a8f, transparent 65%), linear-gradient(135deg, #221a6e, #161c4e); }
.ghead-logo { width: 132px; height: 132px; border-radius: 28px; object-fit: cover; box-shadow: 0 0 0 3px var(--yellow), 0 12px 30px rgba(0, 0, 0, .4); }
.ghead-main { display: grid; gap: 10px; min-width: 0; }
.ghead-main h1 { margin: 0; overflow-wrap: anywhere; }
.ghead-main p { margin: 0; }
.gstats { display: flex; flex-wrap: wrap; gap: 22px; }
.gstat b { display: block; font: 800 22px/1.1 var(--display); color: var(--yellow); }
.gstat span { font-size: 12.5px; color: var(--muted); font-weight: 700; }
@media (max-width: 600px) { .ghead { grid-template-columns: minmax(0, 1fr); justify-items: center; } .ghead-main { justify-items: center; text-align: center; } .ghead .row, .gstats, .ghead .gc-meta { justify-content: center; } }
.posts { display: grid; gap: 14px; }
.post { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 8px; overflow-wrap: anywhere; }
.post h3 { margin: 0; }
.post p { margin: 0; }
.post-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.post-head .grow { flex: 1; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { position: relative; width: 84px; height: 84px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.thumb .del { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; }
.vreq { display: grid; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.vreq p { margin: 0; }
.tabbar { grid-template-columns: repeat(5, 1fr) !important; }

/* double elimination */
.bwrap.dbl { gap: 22px; }
.bsec { display: grid; gap: 10px; min-width: min-content; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.bsec h3 { margin: 0; }
.bsec.up-sec { border-color: rgba(94, 208, 255, .4); }
.bsec.low-sec { border-color: rgba(255, 111, 174, .4); }
.bsec.gf-sec { border-color: rgba(255, 216, 58, .6); background: linear-gradient(120deg, rgba(255, 216, 58, .1), transparent); }
.gfbox { max-width: 340px; }
.exp .bwrap.dbl { grid-template-rows: none; align-content: start; height: auto; }
.exp .bsec .bracket { height: auto; }
.vrow { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; }

/* ═════════════ guild members ═════════════ */
.gc-meta .mem { font-size: 12px; font-weight: 800; color: var(--muted); }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.member { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.member-pic { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: var(--panel-2); }
.member-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.member-name b { font: 800 15px/1.2 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-name .owner { flex: none; font-size: 14px; }
.member-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.member-meta > img { width: 20px; height: 20px; object-fit: contain; }
.member-meta .cr { display: inline-flex; align-items: center; gap: 4px; color: var(--yellow); }
.member-meta .cr img { width: 15px; height: 15px; }
.manage h3 { margin: 18px 0 8px; font-size: 16px; }
.invite .lb { font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.reqs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.req { display: grid; gap: 8px; align-content: start; min-width: 0; }
.req-msg { margin: 0; font-size: 13.5px; color: #d3d7ff; overflow-wrap: anywhere; }
.join-cta { background: linear-gradient(180deg, #ffe066, #ffc21a); color: #2a1b00; box-shadow: 0 4px 0 #c98f00; }
.member-badge { display: inline-flex; align-items: center; gap: 6px; justify-self: center; align-self: center; margin: 4px auto 10px; padding: 7px 14px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; width: fit-content; }
.member-badge b { color: var(--yellow); }
.member-badge .tick { color: var(--cyan); font-weight: 900; }
.owner-card { display: inline-grid; grid-template-columns: 52px auto; gap: 12px; align-items: center; width: fit-content; max-width: 100%; padding: 8px 16px 8px 8px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 216, 58, .14), rgba(255, 143, 192, .1)); border: 1px solid rgba(255, 216, 58, .4); }
.owner-pic { width: 52px; height: 52px; border-radius: 13px; object-fit: cover; box-shadow: 0 0 0 2px var(--yellow); background: var(--panel-2); }
.owner-main { display: grid; gap: 1px; min-width: 0; text-align: left; }
.owner-k { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; color: var(--yellow); text-transform: uppercase; }
.owner-name { font: 800 16px/1.2 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owner-main .member-meta { margin-top: 2px; }
.owner-ck { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }
.zalo-warn { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 196, 0, .1); border: 1px solid rgba(255, 196, 0, .45); color: #ffe39a; font-size: 13px; font-weight: 600; line-height: 1.45; }
.member-acts { display: flex; align-items: center; gap: 6px; }
.member-card-btn { width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(94, 208, 255, .45); background: rgba(94, 208, 255, .12); font-size: 19px; cursor: pointer; display: grid; place-items: center; padding: 0; }
.member-card-btn:hover { background: rgba(94, 208, 255, .25); }
.member-card-btn.none { opacity: .45; border-color: var(--line); background: none; filter: grayscale(1); }
button.owner-card { font: inherit; color: inherit; cursor: pointer; text-align: left; }
button.owner-card:hover { border-color: var(--yellow); }
.invite { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.invite-link { width: 100%; font: 600 14px var(--body); }

/* ═════════════ team players + honour picture (1080×1350) ═════════════ */
.pd .pd-mem { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); line-height: 1.35; }
.score-grid .side-mem { display: block; font-size: 12px; color: var(--muted); margin: -2px 0 6px; }
.mem-edit { display: grid; gap: 8px; }
.mem-row { display: grid; grid-template-columns: minmax(80px, 140px) minmax(0, 1fr); gap: 10px; align-items: center; }
.mem-row span { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) { .mem-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

.honor { width: 100%; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; padding: 64px 64px 52px; color: var(--ink); font-family: var(--body);
  background: radial-gradient(70% 38% at 50% 34%, rgba(255, 216, 58, .30), transparent 70%), radial-gradient(60% 40% at 0% 100%, rgba(255, 111, 174, .22), transparent 70%),
              radial-gradient(60% 40% at 100% 100%, rgba(94, 208, 255, .20), transparent 70%), #0c1033; }
.hn-kicker { font: 800 22px/1 var(--body); letter-spacing: .32em; color: var(--cyan); text-transform: uppercase; }
.hn-title { margin: 14px 0 0; font: 800 72px/1.02 var(--display); color: var(--yellow); text-align: center; text-shadow: 0 6px 0 #b9790a, 0 14px 30px rgba(0, 0, 0, .45); max-width: 100%; overflow-wrap: anywhere; }
.hn-meta { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; font: 700 22px/1.2 var(--body); color: var(--muted); }
.hn-dot { width: 6px; height: 6px; border-radius: 50%; background: #5d66b8; }
.hn-body { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 84px 0 28px; }
.hn-champ { position: relative; width: 780px; padding: 6px; border-radius: 40px; box-shadow: 0 0 80px rgba(255, 196, 0, .45);
  background: linear-gradient(140deg, #fff3b0, #ffb800 30%, #fff3b0 52%, #e08a00 76%, #fff3b0); }
.hn-champ-in { border-radius: 34px; padding: 76px 44px 40px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: radial-gradient(80% 60% at 50% 0%, rgba(255, 216, 58, .25), transparent 70%), #161c4e; }
.hn-crown { position: absolute; top: -58px; left: 50%; translate: -50% 0; width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #2a3290, #0c1033 75%); box-shadow: 0 0 0 6px var(--yellow), 0 12px 30px rgba(0, 0, 0, .5); }
.hn-crown img { width: 84px; height: 84px; object-fit: contain; }
.hn-label { font: 800 26px/1 var(--body); letter-spacing: .4em; color: var(--yellow); text-transform: uppercase; }
.hn-champ .hn-name { font: 800 96px/1 var(--display); color: #fff; text-align: center; max-width: 100%; overflow-wrap: anywhere; }
.hn-champ .hn-name.long { font-size: 68px; }
.hn-mems { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.hn-mems.big { gap: 14px; margin-top: 18px; }
.hn-mem { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(223, 228, 245, .35); font: 800 24px/1.1 var(--body); }
.hn-mems.big .hn-mem { padding: 12px 22px 12px 12px; background: rgba(255, 216, 58, .12); border: 2px solid rgba(255, 216, 58, .55); font-size: 30px; color: #fff7d1; }
.hn-mem i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: #2a1b00; font: 800 24px/1 var(--display); font-style: normal; }
.hn-score { margin-top: 20px; font: 700 22px/1.2 var(--body); color: var(--muted); }
.hn-row { margin-top: 40px; width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.hn-row.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hn-row.c1 { grid-template-columns: minmax(0, 520px); justify-content: center; }
.hn-card { padding: 4px; border-radius: 30px; }
.hn-card.silver { background: linear-gradient(140deg, #f4f7ff, #8d99b8 40%, #f4f7ff 60%, #6f7d98); }
.hn-card.bronze { background: linear-gradient(140deg, #ffd9b3, #b8652a 40%, #ffd9b3 60%, #8a4b22); }
.hn-card-in { height: 100%; box-sizing: border-box; border-radius: 26px; background: #161c4e; padding: 28px 24px 30px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hn-place { display: flex; align-items: center; gap: 10px; font: 800 22px/1 var(--body); letter-spacing: .24em; text-transform: uppercase; color: #dfe4f5; }
.bronze .hn-place { color: #f2b98a; }
.hn-rank { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 800 24px/1 var(--display); letter-spacing: 0; color: #1b2160; background: linear-gradient(180deg, #f4f7ff, #9aa3c7); }
.bronze .hn-rank { color: #3a1c06; background: linear-gradient(180deg, #ffd9b3, #c27a43); }
.hn-card .hn-name { font: 800 54px/1.05 var(--display); color: #fff; text-align: center; max-width: 100%; overflow-wrap: anywhere; }
.hn-card .hn-name.long { font-size: 40px; }
.hn-row.c3 .hn-name { font-size: 42px; } .hn-row.c3 .hn-name.long { font-size: 32px; } .hn-row.c3 .hn-mem { font-size: 20px; padding: 6px 12px; }
.hn-foot { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; font: 700 20px/1.3 var(--body); color: #7f88c9; }
.hn-foot b { color: var(--cyan); letter-spacing: .06em; }
/* html-to-image freezes each box at its measured width; full-width rows leave slack so text never re-wraps in the picture */
.hn-champ-in, .hn-card-in { align-items: stretch; text-align: center; }
.hn-place { justify-content: center; }
.hn-mems { width: 100%; }
