:root {
  --ink: #080e19;
  --navy: #0E1626;
  --navy-2: #141F35;
  --navy-3: #1B2942;
  --line: #20384e;
  --line-soft: rgba(105, 157, 195, .18);
  --red: #C0242C;
  --red-dark: #8E181F;
  --gold: #D9A441;
  --gold-light: #F2E7CE;
  --blue: #49bdf5;
  --cream: #F2E7CE;
  --muted: #91a4b6;
  --green: #4be0a0;
  --danger: #ff6b75;
  --radius: 14px;
  --surface-card: linear-gradient(135deg, #142338, #0b1422);
  --shadow-card: 0 12px 32px rgba(0, 0, 0, .14);
  --font-display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; background: var(--ink); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--ink); color: var(--cream); font-family: var(--font-ui); font-size: 16px; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.hidden { display: none !important; }
.auth-footer a { color:var(--muted); text-decoration:none; }
.auth-footer a:hover { color:var(--gold); }
.muted { color: var(--muted); line-height: 1.55; }
.noise { position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .03; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }

.auth-shell { min-height: 100vh; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 20%, rgba(34,96,141,.2), transparent 30%), linear-gradient(145deg, #03080e, #081727 55%, #050b12); }
.auth-shell::before { content: ""; position: absolute; inset: 0; opacity: .34; background-image: linear-gradient(rgba(63,145,199,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(63,145,199,.08) 1px, transparent 1px); background-size: 42px 42px; mask-image: radial-gradient(circle at center, black 25%, transparent 80%); }
.auth-shell::after { content: ""; position: absolute; left: 0; right: 0; top: 41%; height: 1px; background: linear-gradient(90deg, transparent, rgba(73,189,245,.75), transparent); box-shadow: 0 0 24px rgba(73,189,245,.45); }
.auth-stage { min-height: 100vh; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 22px; padding: clamp(28px, 5vh, 54px) 20px 40px; }
.brand-lockup { text-align: center; }
.logo-halo { position: relative; width: 172px; height: 172px; display: grid; place-items: center; margin-inline: auto; }
.logo-halo::before, .logo-halo::after { content: ""; position: absolute; inset: 2px; border: 1px solid rgba(214,170,112,.3); border-radius: 50%; }
.logo-halo::after { inset: -13px; border-style: dashed; border-color: rgba(73,189,245,.18); animation: spin 30s linear infinite; }
.auth-logo { position: relative; z-index: 1; width: 158px; height: 158px; object-fit: contain; filter: drop-shadow(0 18px 28px rgba(0,0,0,.55)); }
#authView .logo-halo, #aboutView .logo-halo, #activationView .logo-halo { width: 210px; height: 210px; }
#authView .auth-logo, #aboutView .auth-logo, #activationView .auth-logo { width: 196px; height: 196px; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 7px 0 0; color: var(--gold-light); font-family: var(--font-display); letter-spacing: .25em; font-size: .86rem; }
.eyebrow span { width: 38px; height: 1px; background: var(--gold); }
.signal { position: absolute; width: 260px; height: 260px; border: 1px solid rgba(73,189,245,.1); transform: rotate(45deg); }
.signal-a { left: -140px; top: 12%; }
.signal-b { right: -160px; bottom: 5%; border-color: rgba(238,25,53,.12); }

.login-panel { width: min(100%, 460px); position: relative; padding: 30px; border: 1px solid rgba(214,170,112,.32); border-radius: 18px; background: linear-gradient(145deg, rgba(12,29,47,.97), rgba(5,13,22,.98)); box-shadow: 0 28px 70px rgba(0,0,0,.45), inset 0 1px rgba(255,255,255,.03); }
.login-panel::before { content: ""; position: absolute; left: 30px; right: 30px; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--red), transparent); }
.panel-corners { position: absolute; inset: 8px; pointer-events: none; border-top: 1px solid rgba(73,189,245,.12); border-bottom: 1px solid rgba(73,189,245,.12); }
.panel-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; margin-bottom: 26px; }
.panel-heading .kicker { margin: 0; }
.panel-heading .live-dot { justify-self: end; padding-top: 0; white-space: nowrap; }
.panel-heading h1 { grid-column: 1 / -1; min-width: 0; }
.kicker { margin: 0 0 5px; color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .17em; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.login-panel h1 { margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(1.8rem, 6vw, 2.45rem); font-weight: 400; letter-spacing: .025em; text-transform: uppercase; }
#loginTitle { white-space: nowrap; font-size: clamp(1.65rem, 5vw, 2.15rem); }
.live-dot { flex: 0 0 auto; color: var(--green); font-size: .65rem; font-weight: 800; letter-spacing: .12em; padding-top: 7px; }
.live-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
label { display: block; margin: 16px 0 7px; color: #bdcbd7; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.login-panel label small { margin-left: 5px; color: var(--muted); font-size: .68rem; letter-spacing: .07em; }
.activation-cs2-prompt { margin:18px 0; padding:17px; border:1px solid rgba(73,189,245,.42); border-radius:12px; background:linear-gradient(135deg,rgba(73,189,245,.11),rgba(73,189,245,.035)); box-shadow:inset 3px 0 var(--blue); }
.activation-cs2-prompt .kicker { margin:0 0 13px; color:var(--blue); font-size:.68rem; }
.activation-cs2-prompt label { margin-top:0; color:var(--cream); font-size:.8rem; }
.activation-cs2-prompt .input-shell { margin-bottom:10px; background:rgba(2,10,18,.55); }
.activation-cs2-prompt > p:last-child { margin:0; color:var(--muted); font-size:.76rem; line-height:1.55; }
.input-shell { min-height: 50px; display: flex; align-items: center; gap: 11px; padding: 0 14px; border: 1px solid var(--line); background: rgba(4,12,20,.7); transition: border-color .2s, box-shadow .2s; }
.input-shell:focus-within { border-color: var(--blue); box-shadow: inset 3px 0 var(--blue), 0 0 18px rgba(73,189,245,.08); }
.input-shell > span { width: 20px; flex: 0 0 20px; color: var(--blue); font-size: .75rem; font-weight: 800; text-align: center; }
.input-shell input { align-self:stretch; flex:1; min-width:0; min-height:44px; border:0; outline:0; background:transparent; color:var(--cream); font-size:1rem; }
.input-shell input::placeholder { color: #53697c; }
.reveal { width: 56px; flex: 0 0 56px; border: 0; padding: 0; background: transparent; color: var(--gold); cursor: pointer; font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-align: center; }
.form-message { min-height: 21px; margin: 10px 0 4px; font-size: .82rem; }
.error { color: var(--danger); }
.login-help { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: .77rem; line-height: 1.45; }
.auth-alternative { display: grid; gap: 9px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-soft); text-align: center; color: var(--muted); font-size: .8rem; }
.auth-link { width: 100%; margin-top: 14px; }
.back-login { margin-top: 10px; }
.identity-card { margin: 18px 0; padding: 13px 15px; border-left: 3px solid var(--gold); background: rgba(217,164,65,.1); color: var(--gold-light); font-weight: 800; }
.completion-panel { text-align: center; }
.completion-panel .kicker { margin-top: 12px; }
.auth-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; color: #50697b; font-size: .65rem; font-weight: 800; letter-spacing: .16em; }
.auth-footer button { border: 0; padding: 0; background: none; color: var(--gold); cursor: pointer; font: inherit; letter-spacing: inherit; }
.about-stage { padding-bottom: 54px; }
.about-panel { width: min(100%, 760px); }
.about-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.about-title h1 { margin-bottom: 0; }
.about-panel h2, .portal-about h2 { margin: 26px 0 8px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }
.about-panel p, .portal-about p, .about-list { color: #bdcbd7; line-height: 1.7; }
.about-lead { margin-top: 4px; color: var(--cream) !important; font-size: 1.04rem; }
.about-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px 0; }
.about-facts div { display: grid; gap: 6px; padding: 15px; border: 1px solid var(--line-soft); background: rgba(5,15,25,.55); }
.about-facts small, .about-facts strong { display: block; }
.about-facts small { color: var(--gold); font-size: .66rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.about-facts strong { font-size: .9rem; }
.about-panel .about-title { padding-bottom:20px; border-bottom:1px solid var(--line-soft); flex-wrap:wrap; }
.about-panel .about-lead, .portal-about .about-lead { line-height:1.8; color:var(--cream); }
.about-panel > h2, .portal-about > h2 { margin-top:30px; color:var(--gold); }
.about-list { margin: 8px 0 22px; padding-left: 20px; }
.about-list li { margin: 7px 0; }
.portal-about { max-width: 950px; }

.button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid var(--line); padding: 10px 17px; border-radius: 3px; background: var(--navy-3); color: var(--cream); cursor: pointer; font-size: .77rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; transition: transform .15s, border-color .15s, background .15s; }
.button:hover { transform: translateY(-1px); border-color: var(--gold); }
.button.primary { background: linear-gradient(120deg, var(--red), #c91229); border-color: #ff3750; color: white; box-shadow: 0 9px 30px rgba(238,25,53,.18); }
.button.ghost { background: transparent; }
.button.danger { color: #ff9ca4; border-color: rgba(255,107,117,.45); background: rgba(238,25,53,.08); }
.button.wide { width: 100%; justify-content: space-between; margin-top: 8px; padding-inline: 20px; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.login-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:8px; }
.login-actions .button { min-width:0; min-height:52px; padding:10px 8px; font-size:.7rem; }
.login-actions .recovery-button { background:#efb844; border-color:#ffd477; color:#102031; }
.login-actions .recovery-button:hover { background:#ffd477; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 246px minmax(0, 1fr); background: var(--navy); }
.app-shell.player-mode { grid-template-columns: 220px minmax(0, 1fr); }
.player-mode .side-status { display: none; }
.player-mode .sidebar nav { padding-top: 16px; }
.sidebar { min-height: 100vh; position: sticky; top: 0; z-index: 20; display: flex; flex-direction: column; overflow-y:auto; border-right: 1px solid var(--line-soft); background: linear-gradient(180deg, #071422, #050c15); }
.side-brand { min-height: 118px; display: flex; align-items: center; gap: 12px; padding: 12px 21px; border-bottom: 1px solid var(--line-soft); }
.side-brand img { width: 94px; height: 94px; object-fit: contain; flex-shrink:0; }
.side-brand { padding-inline:16px; gap:10px; }
.side-brand strong { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; letter-spacing: .08em; }
.side-brand small { display: block; margin-top: 3px; color: var(--gold); font-size: .59rem; font-weight: 800; letter-spacing: .13em; }
.sidebar nav { display: grid; gap: 5px; padding: 24px 12px; }
.sidebar nav button { position: relative; min-height: 49px; display: flex; align-items: center; gap: 13px; border: 0; border-left: 2px solid transparent; padding: 0 15px; background: transparent; color: #8fa4b6; cursor: pointer; text-align: left; font-size: .84rem; font-weight: 700; }
.sidebar nav button span { width: 22px; color: #5f7c92; font-size: 1.2rem; text-align: center; }
.sidebar nav button:hover { color: var(--cream); background: rgba(73,189,245,.05); }
.sidebar nav .nav-cs2 { font-size:.62rem; font-weight:950; letter-spacing:-.03em; }
.sidebar nav button.active { border-left-color: var(--red); background: linear-gradient(90deg, rgba(238,25,53,.16), transparent); color: white; }
.sidebar nav button.active span { color: var(--red); }
.side-status { margin: 0 18px 22px; display: flex; gap: 11px; align-items: center; padding: 14px; border: 1px solid var(--line-soft); background: rgba(7,22,36,.7); }
.side-status strong, .side-status small { display: block; }
.side-status strong { color: var(--green); font-size: .66rem; letter-spacing: .12em; }
.side-status small { margin-top: 4px; color: #617a8d; font-size: .64rem; }
.status-light { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }

.workspace { min-width: 0; min-height: 100vh; display: flex; flex-direction: column; background-image: radial-gradient(circle at 100% 0, rgba(21,87,130,.13), transparent 27%), linear-gradient(rgba(85,147,187,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(85,147,187,.025) 1px, transparent 1px); background-size: auto, 38px 38px, 38px 38px; }
.topbar { min-height: 102px; display: flex; align-items: center; gap: 18px; padding: 19px clamp(18px, 4vw, 42px); border-bottom: 1px solid var(--line-soft); background: rgba(5,13,22,.7); backdrop-filter: blur(12px); }
.topbar h1 { margin: 0; font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 400; letter-spacing: .035em; text-transform: uppercase; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 11px; }
.role-badge, .badge { display: inline-flex; align-items: center; min-height: 25px; border: 1px solid rgba(214,170,112,.38); padding: 4px 9px; color: var(--gold-light); background: rgba(214,170,112,.08); font-size: .65rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.account-button { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; cursor: pointer; text-align: left; }
.account-button > span:first-child { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); background: var(--navy-3); font-family: var(--font-display); }
.account-button strong, .account-button small { display: block; }
.account-button strong { font-size: .8rem; }
.account-button small { margin-top: 2px; color: var(--muted); font-size: .65rem; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--navy-2); cursor: pointer; }
.menu-button { display: none; }

.content { width: 100%; max-width: 1500px; margin: 0 auto; flex: 1; padding: clamp(24px, 4vw, 42px); }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.page-intro h2 { margin: 0 0 5px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.45rem, 2.5vw, 2rem); letter-spacing: .035em; text-transform: uppercase; }
.page-intro p { margin: 0; color: var(--muted); line-height: 1.5; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card, .panel { position: relative; border: 1px solid var(--line-soft); background: linear-gradient(145deg, rgba(14,34,54,.9), rgba(7,18,30,.92)); box-shadow: 0 18px 40px rgba(0,0,0,.13); }
.stat-card { min-height: 132px; padding: 22px; overflow: hidden; }
.stat-card::before { content: ""; position: absolute; top: 0; left: 0; width: 46px; height: 2px; background: var(--red); }
.stat-card small { color: var(--muted); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.stat-card strong { display: block; margin-top: 12px; font-family: var(--font-display); font-size: 2.25rem; font-weight: 400; letter-spacing: .04em; }
.stat-card em { position: absolute; right: 18px; bottom: 12px; color: rgba(73,189,245,.1); font-style: normal; font-size: 3.7rem; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .75fr); gap: 18px; }
.dashboard-grid.dashboard-single { grid-template-columns:1fr; }
.player-dashboard > .dashboard-grid { margin:0; }
.dashboard-preview-empty { text-align:center; padding:38px; }
.dashboard-preview-empty h2 { margin:6px 0 8px; }
.dashboard-preview-empty p:last-child { margin:0; color:var(--muted); }
.player-welcome { align-items: center; }
.player-score { min-width: 120px; padding: 14px 18px; border: 1px solid rgba(217,164,65,.35); background: rgba(217,164,65,.08); text-align: center; }
.player-score small, .player-score strong { display: block; }
.player-score small { color: var(--gold); font-size: .64rem; font-weight: 900; letter-spacing: .1em; }
.player-score strong { margin-top: 4px; font-family: var(--font-display); font-size: 1.8rem; font-weight: 400; }
.player-dashboard { align-items: start; }
.panel { padding: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.panel-head h2, .panel-head h3 { margin: 0; font-family: var(--font-display); font-weight: 400; letter-spacing: .045em; text-transform: uppercase; }
.panel-head h2 { font-size: 1.35rem; }
.panel-head h3 { font-size: 1.1rem; }
.text-button { border: 0; background: none; color: var(--gold); cursor: pointer; font-size: .73rem; font-weight: 900; letter-spacing: .08em; }
.event-list, .team-list, .tournament-list { display: grid; gap: 10px; }
.event-row, .team-card, .tournament-card { display: grid; gap: 13px; align-items: center; padding: 15px; border: 1px solid var(--line-soft); background: rgba(5,15,25,.55); }
.event-row { grid-template-columns: 45px minmax(0, 1fr) auto; }
.event-index { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(214,170,112,.4); color: var(--gold); font-family: var(--font-display); font-size: 1.15rem; }
.event-row strong, .team-card strong, .tournament-card strong { display: block; }
.event-row p, .team-card p, .tournament-card p { margin: 4px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: .67rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.en_cours { color: var(--green); }
.status.inscriptions, .status.pret { color: var(--gold); }
.status.terminee { color: var(--muted); }
.ranking-mini { display: grid; gap: 2px; }
.rank-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 51px; border-bottom: 1px solid var(--line-soft); }
.rank-row:last-child { border: 0; }
.rank-pos { color: var(--muted); font-family: var(--font-display); font-size: 1.05rem; }
.rank-row:first-child .rank-pos { color: var(--gold); }
.rank-row strong { overflow: hidden; text-overflow: ellipsis; }
.points { color: var(--gold-light); font-family: var(--font-display); letter-spacing: .05em; }

.data-table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); background: rgba(6,17,28,.75); }
.data-table { width: 100%; border-collapse: collapse; min-width: 650px; }
.data-table th { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--muted); background: rgba(10,29,46,.9); text-align: left; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); font-size: .86rem; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: rgba(73,189,245,.025); }
.players-table-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:20px 0 10px; }
.players-table-search { width:min(100%,430px); min-height:46px; display:flex; align-items:center; gap:10px; margin:0; padding:0 14px; border:1px solid var(--line); border-radius:11px; background:rgba(5,15,25,.72); color:var(--blue); text-transform:none; box-shadow:0 10px 28px rgba(0,0,0,.14); }
.players-table-search:focus-within { border-color:var(--blue); box-shadow:0 0 0 3px rgba(73,189,245,.1); }
.players-table-search > span { font-size:21px; line-height:1; }
.players-table-search input { width:100%; min-width:0; padding:12px 0; border:0; outline:0; background:transparent; color:var(--cream); font:inherit; }
.players-table-search input::placeholder { color:#71879a; }
.players-table-count { flex:0 0 auto; color:var(--muted); font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.players-table { min-width:1680px; }
.players-table th:nth-child(1),.players-table td:nth-child(1) { min-width:120px; }
.players-table th:nth-child(2),.players-table td:nth-child(2) { min-width:100px; }
.players-table th:nth-child(3),.players-table td:nth-child(3) { min-width:130px; }
.players-table th:nth-child(4),.players-table td:nth-child(4) { min-width:220px; }
.players-table th:nth-child(7),.players-table td:nth-child(7) { min-width:120px; }
.players-table th:nth-child(8),.players-table td:nth-child(8) { min-width:145px; }
.players-table th:nth-child(9),.players-table td:nth-child(9) { min-width:220px; }
.players-table th:nth-child(10),.players-table td:nth-child(10) { min-width:255px; }
.table-sort-button { width:100%; display:flex; align-items:center; justify-content:space-between; gap:9px; padding:0; border:0; background:transparent; color:inherit; cursor:pointer; font:inherit; letter-spacing:inherit; text-align:left; text-transform:inherit; }
.table-sort-button span { color:#688197; font-size:13px; }
.table-sort-button:hover,.table-sort-button:focus-visible,.table-sort-button.active { color:var(--blue); outline:none; }
.table-sort-button.active span { color:var(--gold-light); }
.players-table .activation-code-column { position:sticky; right:0; z-index:2; min-width:150px; width:150px; background:#0a1c2d; box-shadow:-12px 0 22px rgba(1,7,12,.38); }
.players-table thead .activation-code-column { z-index:3; background:#0c2438; }
.players-table tbody tr:hover .activation-code-column { background:#0c2032; }
@media(max-width:650px) { .players-table-toolbar { align-items:stretch; flex-direction:column; } .players-table-search { width:100%; } .players-table-count { align-self:flex-start; } }
.activation-progress { height: 9px; margin: -12px 0 22px; overflow: hidden; border: 1px solid var(--line); background: var(--navy); }
.activation-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); transition: width .3s ease; }
.table-date { display: block; margin-top: 5px; color: var(--muted); }
.points-input { width: 82px; min-height: 34px; border: 1px solid var(--line); padding: 5px 8px; background: var(--navy); color: var(--gold-light); }
.table-rank { color: var(--gold); font-family: var(--font-display); font-size: 1.25rem; }
.inline-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.small-button { border: 1px solid var(--line); padding: 6px 9px; background: var(--navy-3); color: var(--cream); cursor: pointer; font-size: .68rem; font-weight: 800; }
.empty-state { padding: 48px 22px; border: 1px dashed var(--line); text-align: center; color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 7px; color: var(--cream); font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; letter-spacing: .04em; }

.mode-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.mode-option input { position: absolute; opacity: 0; }
.mode-option span { min-height: 68px; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(5,15,25,.7); cursor: pointer; font-family: var(--font-display); font-size: 1.2rem; }
.mode-option input:checked + span { border-color: var(--red); color: white; background: rgba(238,25,53,.15); box-shadow: inset 0 -2px var(--red); }
.team-card, .tournament-card { grid-template-columns: minmax(0, 1fr) auto; }
.tournament-game { margin-top: 7px !important; color: var(--cream) !important; font-size: 1rem !important; font-weight: 800; }
.tournament-actions { display: grid; justify-items: end; gap: 12px; }
.missing-skills { margin-top: 13px; padding: 10px 12px; border-left: 3px solid var(--gold); background: rgba(217,164,65,.08); color: var(--muted); font-size: .78rem; line-height: 1.5; }
.missing-skills strong { display: inline; color: var(--gold); font-size: .7rem; letter-spacing: .08em; }
.skill-form { margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line-soft); }
.skill-form > label { margin-top: 0; }
.skill-form > .button { display:block; margin:18px auto 0; }
.skill-choice { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin: 9px 0 12px; }
.skill-choice label { margin: 0; }
.skill-choice input { position: absolute; opacity: 0; }
.skill-choice span { min-height: 58px; display: grid; place-items: center; gap: 2px; border: 1px solid var(--line); padding: 7px 3px; background: var(--navy); color: var(--cream); cursor: pointer; font-family: var(--font-display); font-size: 1.15rem; }
.skill-choice span small { color: var(--muted); font-family: var(--font-ui); font-size: .55rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.skill-choice input:checked + span { border-color: var(--gold); background: rgba(217,164,65,.14); box-shadow: inset 0 -2px var(--gold); }
.small-button:disabled { opacity: .4; cursor: not-allowed; }
.member-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.chip { display: inline-flex; border: 1px solid var(--line); padding: 5px 8px; color: #b9c8d4; background: var(--navy-2); font-size: .69rem; }
.bracket-preview { overflow-x: auto; display: flex; gap: 30px; padding: 22px 3px 8px; }
.modal.bracket-modal { width: min(96vw, 1180px); }
.bracket-button { margin-top: 13px; }
.bracket-round { min-width: 190px; display: grid; gap: 10px; align-content: center; }
.bracket-round h4 { margin: 0 0 5px; color: var(--gold); font-size: .68rem; letter-spacing: .1em; text-align: center; }
.match { border: 1px solid var(--line); background: var(--navy); }
.match small { display: block; padding: 6px 11px; color: var(--gold); background: var(--navy-2); font-size: .58rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.match span { display: block; padding: 9px 11px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: .76rem; }
.match span:last-child { border: 0; }
.bracket-note { margin-top: 18px; }
.bracket-section { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 14px; }
.bracket-section h3 { color: var(--gold); font-size: .9rem; letter-spacing: .08em; }
.bracket-section .bracket-round { align-content: stretch; grid-template-rows: auto; }
.bracket-section .match { align-self: center; }
.match.ready { border-color: var(--gold); }
.draw-teams { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 12px; }
.draw-teams small { color: var(--muted); }
.room-teams { margin: 20px 0; }
.room-teams summary { color: var(--gold); cursor: pointer; padding: 12px 0; }
.skill-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.skill-choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.winner-choice { display: block; width: 100%; padding: 10px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.winner-choice:hover, .winner-choice:focus-visible { background: var(--navy-3); outline: 2px solid var(--gold); }
.match .winner-choice small { padding: 4px 0 0; background: transparent; }
.match .match-winner { color: var(--gold); font-weight: 800; }
.champion-card { padding: 20px; margin: 20px 0; border: 1px solid var(--gold); text-align: center; background: rgba(217,164,65,.1); }
.champion-card small, .champion-card strong { display: block; }
.champion-card strong { margin-top: 8px; font-size: 1.4rem; color: var(--gold); }
.match.bye { opacity: .6; }

.modal { width: min(94vw, 590px); max-height: 90vh; overflow-y: auto; border: 1px solid rgba(214,170,112,.5); padding: 0; color: var(--cream); background: linear-gradient(145deg, #0d2033, #07111d); box-shadow: 0 30px 100px #000; }
.modal::backdrop { background: rgba(1,5,9,.82); backdrop-filter: blur(5px); }
.modal > form { position: sticky; top: 0; z-index: 3; height: 0; }
.modal-close { position: absolute; right: 13px; top: 13px; width: 37px; height: 37px; border: 1px solid var(--line); background: var(--navy); color: white; cursor: pointer; font-size: 1.4rem; }
#modalContent { padding: 31px; }
.modal h2 { margin: 0 42px 6px 0; font-family: var(--font-display); font-weight: 400; font-size: 1.65rem; letter-spacing: .04em; text-transform: uppercase; }
.modal .lead { margin: 0 0 22px; color: var(--muted); line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; min-height: 45px; border: 1px solid var(--line); border-radius: 0; padding: 10px 12px; background: #06111c; color: var(--cream); }
.field textarea { min-height: 90px; resize: vertical; }
.check-list { max-height: 220px; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 9px; border: 1px solid var(--line); background: #06111c; }
.check-item { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px; background: rgba(255,255,255,.02); color: var(--cream); font-size: .78rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.check-item input { accent-color: var(--red); }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.credential-box { margin: 18px 0; padding: 18px; border: 1px solid var(--gold); background: rgba(214,170,112,.08); }
.credential-box code { display: block; margin-top: 8px; color: var(--gold-light); font-size: 1.2rem; word-break: break-all; }
.toast-region { position: fixed; z-index: 200; right: 18px; bottom: 18px; display: grid; gap: 9px; }
#appView:not(.hidden) ~ .toast-region { bottom:88px; }
.orga-chat-button { width:calc(100% - 28px); margin:auto 14px 12px; display:flex; align-items:center; justify-content:center; gap:9px; min-height:48px; padding:10px 13px; border:1px solid rgba(73,189,245,.55); border-radius:12px; background:linear-gradient(135deg,#16334d,#0b1d2e); color:#eef7fc; box-shadow:0 12px 34px rgba(0,0,0,.25); cursor:pointer; font-family:inherit; }
.orga-chat-button:hover { border-color:var(--blue); transform:translateY(-1px); }
.orga-chat-button > span { color:var(--blue); font-size:18px; }
.orga-chat-button > strong { font-size:11px; letter-spacing:.04em; }
.orga-chat-button > b { min-width:21px; height:21px; display:grid; place-items:center; border-radius:50%; background:var(--red); color:#fff; font-size:10px; }
.modal.orga-chat-modal { width:min(94vw,900px); }
.orga-chat-heading { margin-bottom:18px; }
.orga-chat-heading p { margin:5px 0 0; color:var(--muted); }
.orga-chat-heading { position:relative; }
.orga-sound-toggle { position:absolute; right:0; top:0; }
.orga-chat-layout.admin { display:grid; grid-template-columns:240px minmax(0,1fr); min-height:480px; border:1px solid var(--line-soft); border-radius:13px; overflow:hidden; }
.orga-conversations { padding:10px; border-right:1px solid var(--line-soft); background:rgba(4,12,20,.34); }
.orga-conversations > p { padding:15px 8px; color:var(--muted); font-size:12px; }
.orga-conversation { width:100%; display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:center; gap:8px; margin-bottom:5px; padding:9px; border:1px solid transparent; border-radius:9px; background:transparent; color:var(--cream); cursor:pointer; text-align:left; }
.orga-conversation:hover,.orga-conversation.active { border-color:var(--line); background:rgba(73,189,245,.08); }
.orga-conversation-copy { min-width:0; display:grid; gap:3px; }
.orga-conversation-copy strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.orga-conversation-copy small { overflow:hidden; color:var(--muted); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.orga-conversation > b { min-width:21px; height:21px; display:grid; place-items:center; border-radius:50%; background:var(--red); font-size:10px; }
.orga-chat-avatar { position:relative; overflow:hidden; width:38px; height:38px; display:grid; place-items:center; flex:0 0 38px; border:1px solid rgba(73,189,245,.48); border-radius:50%; background:linear-gradient(145deg,#18344c,#0b1928); color:var(--blue); font-family:var(--font-display); font-size:16px; }
.orga-chat-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.orga-chat-avatar.small { width:24px; height:24px; flex-basis:24px; font-size:11px; }
.orga-chat-avatar.recipient { width:34px; height:34px; flex-basis:34px; }
.orga-chat-main { min-width:0; display:flex; flex-direction:column; }
.orga-chat-recipient { min-height:58px; display:flex; align-items:center; gap:10px; padding:11px 16px; border-bottom:1px solid var(--line-soft); color:var(--cream); font-size:13px; }
.orga-chat-stream { min-height:310px; max-height:52vh; display:flex; flex-direction:column; gap:9px; overflow-y:auto; padding:18px; }
.orga-chat-empty { margin:auto; max-width:340px; color:var(--muted); line-height:1.6; text-align:center; }
.orga-message { max-width:min(78%,520px); align-self:flex-start; padding:10px 12px; border:1px solid var(--line); border-radius:5px 13px 13px; background:#13263a; }
.orga-message.mine { align-self:flex-end; border-color:rgba(73,189,245,.36); border-radius:13px 5px 13px 13px; background:rgba(31,108,147,.27); }
.orga-message header { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:7px; color:var(--muted); font-size:9px; }
.orga-message-author { min-width:0; display:flex; align-items:center; gap:7px; }
.orga-message.mine header strong { color:var(--blue); }
.orga-message header .orga-responder { color:rgba(171,189,203,.62); font-weight:700; }
.orga-message p { margin:0; color:#e4edf3; font-size:13px; line-height:1.55; white-space:pre-wrap; overflow-wrap:anywhere; }
.orga-chat-form { display:grid; grid-template-columns:1fr auto; gap:9px; padding:13px; border-top:1px solid var(--line-soft); }
.orga-chat-form textarea { min-height:48px; max-height:130px; resize:vertical; border:1px solid var(--line); border-radius:9px; padding:12px; background:#071422; color:#fff; font:inherit; }
.orga-chat-form .button { align-self:end; }
.orga-chat-privacy { margin:13px 2px 0; color:var(--muted); font-size:10px; text-align:center; }
.privacy-notice { margin-top:22px; padding:0; border:1px solid var(--line-soft); border-radius:12px; background:rgba(4,12,20,.3); }
.privacy-notice summary { padding:15px 17px; color:var(--blue); cursor:pointer; font-size:12px; font-weight:900; letter-spacing:.04em; }
.privacy-notice > div { padding:0 17px 15px; }
.privacy-notice p { margin:8px 0; color:#aebfcd; font-size:12px; line-height:1.65; }
.player-cs2-summary { display:grid; grid-template-columns:repeat(2,minmax(0,220px)); gap:10px; margin:16px 0; }
.player-cs2-summary > div { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:14px 16px; border:1px solid rgba(75,224,160,.35); border-radius:11px; background:rgba(75,224,160,.07); }
.player-cs2-summary > div.missing { border-color:rgba(239,76,94,.38); background:rgba(239,76,94,.07); }
.player-cs2-summary small { color:var(--muted); font-size:9px; font-weight:900; letter-spacing:.08em; }
.player-cs2-summary strong { color:var(--green); font-size:24px; }
.player-cs2-summary .missing strong { color:#ff7180; }
.player-cs2-hours { display:inline-flex; min-width:92px; justify-content:center; padding:7px 9px; border:1px solid rgba(75,224,160,.35); border-radius:999px; background:rgba(75,224,160,.08); color:var(--green); font:950 10px/1 var(--font-body); white-space:nowrap; }
.player-cs2-hours.missing { border-color:rgba(239,76,94,.38); background:rgba(239,76,94,.08); color:#ff7180; }
button.player-cs2-hours { cursor:pointer; transition:border-color .18s ease,background .18s ease,transform .18s ease; }
button.player-cs2-hours:hover,button.player-cs2-hours:focus-visible { border-color:var(--blue); background:rgba(73,189,245,.12); color:var(--blue); transform:translateY(-1px); outline:none; }
.privacy-notice a { color:var(--gold-light); }
.logs-toolbar { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.logs-toolbar .active { border-color:var(--blue); color:var(--blue); background:rgba(73,189,245,.1); }
.logs-security { margin:0 0 18px; padding:11px 13px; border-left:3px solid var(--green); background:rgba(49,183,133,.06); color:#aebfcd; font-size:11px; line-height:1.55; }
.logs-list { display:grid; gap:7px; }
.tester-access-panel,.administrators-panel { margin-top:18px; }
.tester-access-panel > p { color:var(--muted); line-height:1.6; }
.tester-access-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(245px,1fr)); gap:8px; margin-top:18px; }
.tester-access-list article,.administrator-list article { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:62px; padding:11px 13px; border:1px solid var(--line-soft); border-radius:10px; background:rgba(4,12,20,.35); }
.tester-access-list article > div,.administrator-list article > div { min-width:0; display:grid; gap:4px; }
.tester-access-list small,.administrator-list small { color:var(--muted); overflow-wrap:anywhere; }
.administrator-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:8px; }
.avatar-mini { width:38px; height:38px; display:grid; place-items:center; flex:0 0 auto; border:1px solid var(--gold); border-radius:50%; color:var(--gold); font-family:var(--font-display); }
.administrator-list article > div { flex:1; }
.log-entry { display:grid; grid-template-columns:78px minmax(0,1fr) auto; align-items:center; gap:14px; padding:12px 14px; border:1px solid var(--line-soft); border-radius:9px; background:rgba(4,12,20,.35); }
.log-entry.error { border-left:3px solid var(--red); }
.log-entry.warning { border-left:3px solid var(--gold); }
.log-entry.info { border-left:3px solid var(--blue); }
.log-level { font-size:8px; font-weight:950; letter-spacing:.1em; }
.log-entry.error .log-level { color:#ff7b85; }
.log-entry.warning .log-level { color:var(--gold); }
.log-entry.info .log-level { color:var(--blue); }
.log-entry strong { color:var(--cream); font-size:13px; }
.log-entry p { margin:3px 0 0; color:var(--muted); font-size:11px; }
.log-entry time { color:var(--muted); font-size:10px; white-space:nowrap; }
.toast { max-width: 360px; padding: 13px 16px; border: 1px solid var(--line); border-left: 3px solid var(--green); background: #0c2031; color: white; box-shadow: 0 15px 40px #0008; font-size: .83rem; animation: toast-in .2s ease-out; }
.toast.error-toast { border-left-color: var(--danger); }
.app-footer { display: flex; justify-content: space-between; padding: 16px 42px; border-top: 1px solid var(--line-soft); color: #4f687b; font-size: .62rem; font-weight: 800; letter-spacing: .12em; }
#hiddenSignature { border:0; padding:0; background:none; color:inherit; font:inherit; letter-spacing:inherit; cursor:pointer; }
#hiddenSignature:focus-visible { outline:2px solid var(--gold); outline-offset:5px; }
.secret-discovery { text-align:center; }
.secret-discovery .secret-symbol { font-size:3rem; color:var(--gold); }
.secret-winner-message,.secret-too-late-message { min-height:0; margin:16px 0; padding:13px 15px; border-radius:10px; font-weight:750; line-height:1.55; text-align:center; }
.secret-winner-message { border:1px solid rgba(75,224,160,.45); background:rgba(75,224,160,.09); color:var(--green); }
.secret-too-late-message { border:1px solid rgba(217,164,65,.45); background:rgba(217,164,65,.09); color:var(--gold-light); }
.activation-code { min-width:88px; display:inline-flex; align-items:center; justify-content:center; padding:8px 10px; border:1px solid rgba(239,184,68,.35); border-radius:8px; background:rgba(239,184,68,.08); color:var(--gold-light); white-space:nowrap; user-select:all; letter-spacing:.08em; font-weight:900; }
.activation-digits { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) 12px repeat(3,minmax(0,1fr)); align-items:center; gap:7px; margin-top:12px; }
.activation-digits input { width:100%; min-width:0; height:54px; padding:0; border:1px solid var(--line); border-radius:13px; background:rgba(5,15,25,.7); color:var(--gold-light); font-size:1.5rem; font-weight:800; text-align:center; caret-color:var(--gold); }
.activation-digits input:focus { outline:2px solid var(--gold); outline-offset:2px; background:var(--navy-3); }
.activation-digits > span { color:var(--gold); text-align:center; font-size:1.4rem; }
#activationCodeHelp { font-size:.8rem; line-height:1.5; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; } }

@media (max-width: 900px) {
  .app-shell, .app-shell.player-mode { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-102%); transition: transform .2s; box-shadow: 20px 0 50px #000a; }
  .app-shell.menu-open .sidebar { transform: translateX(0); }
  .menu-button { display: grid; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .auth-stage { padding: 22px 14px 32px; gap: 16px; }
  .logo-halo { width: 132px; height: 132px; }
  .auth-logo { width: 122px; height: 122px; }
  #authView .logo-halo, #aboutView .logo-halo, #activationView .logo-halo { width: 160px; height: 160px; }
  #authView .auth-logo, #aboutView .auth-logo, #activationView .auth-logo { width: 150px; height: 150px; }
  .login-panel { padding: 25px 20px; }
  .activation-cs2-prompt { margin:16px 0; padding:15px 13px; }
  #loginTitle { font-size: clamp(1.25rem, 6.25vw, 1.85rem); letter-spacing: 0; }
  .panel-heading { column-gap: 8px; }
  .panel-heading .kicker { font-size: .65rem; letter-spacing: .1em; }
  .panel-heading .live-dot { font-size: .6rem; letter-spacing: .08em; }
  .topbar { min-height: 82px; padding: 14px; }
  .topbar .kicker, .role-badge, .account-button span:last-child { display: none; }
  .topbar h1 { font-size: 1.42rem; }
  .content { padding: 22px 14px; }
  .page-intro { align-items: flex-start; flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 105px; }
  .event-row { grid-template-columns: 40px minmax(0, 1fr); }
  .event-row .status { grid-column: 2; }
  .mode-grid { grid-template-columns: repeat(3, 1fr); }
  .tournament-card { grid-template-columns: 1fr; }
  .tournament-actions { justify-items: start; }
  .skill-choice { grid-template-columns: repeat(5, minmax(52px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
  .form-grid { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: 1; }
  .check-list { grid-template-columns: 1fr; }
  #modalContent { padding: 26px 20px; }
  .app-footer { padding: 14px; }
}
.photo-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:18px; margin:24px 0; }
.photo-card { padding:12px; border:1px solid var(--border, #294454); min-width:0; }
.photo-card img { width:100%; height:200px; object-fit:cover; display:block; }
.photo-card p { overflow-wrap:anywhere; }
.photo-upload { padding:20px; }
.photo-upload form { display:flex; flex-wrap:wrap; align-items:end; gap:16px; margin:20px 0; }
.photo-upload input { max-width:100%; }
#avatar { overflow:hidden; }
#avatar img { width:100%; height:100%; object-fit:cover; }
.profile-grid .photo-card img { object-fit:contain; }
.planning-group { padding:16px 20px; }
.planning-group h3 { color:var(--cyan, #35c5ff); margin:0 0 14px; }
.planning-slot { display:grid; grid-template-columns:125px minmax(0,1fr) auto; align-items:center; gap:14px; padding:14px 0; border-top:1px solid #243b49; }
.planning-slot time { font-size:13px; color:#c4d4df; white-space:nowrap; }
.planning-slot p { margin:5px 0 0; color:#90a9ba; font-size:13px; }
.featured-slot strong { color:#f1d08a; }
.planning-slot .inline-actions:empty { display:none; }
@media (max-width:650px) { .planning-slot { grid-template-columns:1fr; gap:7px; } .planning-group { padding:14px; } }
.planning-group { margin:20px; padding:0; border:1px solid var(--line); border-radius:16px; overflow:hidden; background:linear-gradient(130deg,#142338,#0b1422); }
.planning-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:22px; border-bottom:1px solid var(--line); background:rgba(73,189,245,.045); }
.planning-heading small { color:var(--blue); font-size:10px; font-weight:800; letter-spacing:2px; }
.planning-heading h3 { margin:7px 0 0; color:var(--cream); font-size:20px; }
.planning-heading > span { color:var(--muted); font-size:11px; white-space:nowrap; border:1px solid var(--line); border-radius:20px; padding:6px 10px; }
.planning-slots { padding:8px 18px; }
.planning-slot { grid-template-columns:130px minmax(0,1fr) auto; padding:18px 4px; gap:18px; }
.planning-slot:first-child { border-top:0; }
.planning-slot time { font-variant-numeric:tabular-nums; font-size:12px; font-weight:700; color:var(--muted); }
.planning-activity { border-left:2px solid var(--line); padding-left:16px; }
.planning-activity strong { font-size:14px; line-height:1.6; }
.planning-slot.featured-slot .planning-activity { border-color:var(--gold); }
.planning-slot.featured-slot time { color:var(--gold-light); }
.planning-slot.featured-slot p { display:inline-block; background:rgba(217,164,65,.09); border-radius:5px; padding:3px 8px; color:var(--gold); font-size:11px; }
.planning-slot.custom-color .planning-activity { border-color:var(--event-color); }
.planning-slot.custom-color time,.planning-slot.custom-color .planning-activity strong { color:var(--event-color); }
.planning-slot.custom-color .planning-activity p { color:var(--event-color); background:transparent; }
.dashboard-grid .planning-group { margin:12px; }
.dashboard-grid .planning-heading { padding:16px; }
.dashboard-grid .planning-heading h3 { font-size:17px; }
.dashboard-grid .planning-slot { grid-template-columns:1fr; gap:8px; padding:15px 0; }
.podium-section { position:relative; isolation:isolate; overflow:hidden; padding:24px; background:radial-gradient(circle at 50% 20%,rgba(217,164,65,.11),transparent 36%),linear-gradient(145deg,#17283b,#0b1422); border:1px solid var(--line); border-radius:16px; margin:20px 0; text-align:center; }
.podium-section > :not(.podium-fireworks) { position:relative; z-index:2; }
.podium-fireworks { position:absolute; z-index:3; inset:0; overflow:hidden; pointer-events:none; mix-blend-mode:screen; }
.firework-burst { position:absolute; left:var(--fx); top:var(--fy); width:6px; height:6px; filter:drop-shadow(0 0 5px var(--tone)); }
.firework-burst::before,.firework-burst::after { content:""; position:absolute; border-radius:50%; opacity:0; }
.firework-burst::before { inset:-5px; border:2px solid var(--tone); box-shadow:0 0 22px var(--tone),inset 0 0 12px var(--tone); }
.firework-burst::after { inset:-2px; background:white; box-shadow:0 0 18px 7px var(--tone); }
.firework-burst i { position:absolute; left:1px; top:-4px; width:4px; height:14px; border-radius:999px; background:linear-gradient(to top,transparent,var(--tone) 55%,white); opacity:0; box-shadow:0 0 9px var(--tone); transform:rotate(var(--ray)) translateY(0) scale(1); transform-origin:2px 7px; }
.podium-section .firework-burst::before { animation:firework-flash 3.15s var(--delay) ease-out infinite both; }
.podium-section .firework-burst::after { animation:firework-core 3.15s var(--delay) ease-out infinite both; }
.podium-section .firework-burst i { animation:firework-ray 3.15s var(--delay) cubic-bezier(.12,.65,.2,1) infinite both; }
.podium { display:flex; align-items:flex-end; justify-content:center; gap:12px; min-height:240px; margin:24px 0; }
.podium-step { display:flex; flex:1; max-width:250px; flex-direction:column; justify-content:center; gap:12px; padding:18px 10px; border:1px solid var(--line); border-radius:12px 12px 0 0; background:#1b2a3a; overflow-wrap:anywhere; }
.podium-1 { min-height:220px; border-color:var(--gold); background:linear-gradient(#483b22,#202431); }
.podium-2 { min-height:175px; border-color:#9db3c4; }
.podium-3 { min-height:145px; border-color:#b47750; }
.podium-medal { font-size:32px; }
.podium-step small { color:var(--muted); }
.podium-animate .podium-step { animation:podium-rise .7s ease-out both; }
.podium-animate .podium-1 { animation-delay:.25s; }
@keyframes podium-rise { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes firework-flash { 0% { opacity:0; transform:scale(.15); } 4% { opacity:.9; } 22%,100% { opacity:0; transform:scale(4.5); } }
@keyframes firework-core { 0% { opacity:0; transform:scale(.2); } 3% { opacity:1; } 14%,100% { opacity:0; transform:scale(2.2); } }
@keyframes firework-ray { 0% { opacity:0; transform:rotate(var(--ray)) translateY(0) scale(1.2); } 4% { opacity:1; } 28% { opacity:1; } 45%,100% { opacity:0; transform:rotate(var(--ray)) translateY(var(--distance)) scale(.12); } }
.final-standings { padding:0; list-style:none; text-align:left; }
.final-standings li { display:flex; gap:20px; padding:12px; border-bottom:1px solid var(--line); }
.final-standings span { color:var(--gold); min-width:30px; }
.modal.tournament-results-modal { width:min(96vw,1040px); }
.tournament-results-hero { position:relative; isolation:isolate; overflow:hidden; margin:-31px -31px 24px; padding:58px 72px 44px 31px; border-bottom:1px solid rgba(217,164,65,.38); background:radial-gradient(circle at 50% -15%,rgba(217,164,65,.34),transparent 42%),radial-gradient(circle at 90% 20%,rgba(73,189,245,.2),transparent 35%),linear-gradient(120deg,#182b42,#091421 72%); }
.tournament-results-hero h2 { margin:8px 0; max-width:780px; color:var(--gold-light); font-family:var(--font-display); font-size:clamp(34px,6vw,70px); font-weight:400; letter-spacing:.04em; line-height:1; text-shadow:0 0 30px rgba(217,164,65,.2); }
.tournament-results-hero > p:last-child { margin:14px 0 0; color:#c6d5df; font-weight:750; }
.results-reveal h2 { animation:result-title .85s cubic-bezier(.2,.75,.25,1) both; }
.result-confetti { position:absolute; z-index:-1; inset:0; pointer-events:none; }
.result-confetti i { --tone:var(--gold); position:absolute; left:var(--x); top:-14px; width:7px; height:14px; border-radius:2px; background:var(--tone); opacity:0; transform:rotate(calc(var(--i) * 23deg)); }
.result-confetti i:nth-child(3n) { --tone:var(--blue); }
.result-confetti i:nth-child(3n+1) { --tone:var(--danger); }
.results-reveal .result-confetti i { animation:confetti-fall 1.8s calc(var(--i) * 35ms) ease-out both; }
.remaining-standings { max-width:720px; margin:30px auto 0; padding-top:22px; border-top:1px solid var(--line); }
.remaining-standings h4 { margin:0 0 10px; color:var(--muted); font-size:11px; letter-spacing:.14em; text-align:left; text-transform:uppercase; }
.remaining-standings .final-standings li { align-items:center; padding:14px 16px; border:1px solid var(--line-soft); border-bottom:0; background:rgba(255,255,255,.018); }
.remaining-standings .final-standings li:last-child { border-bottom:1px solid var(--line-soft); }
.results-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-top:24px; }
@keyframes result-title { from { opacity:0; transform:scale(.9) translateY(15px); } to { opacity:1; transform:none; } }
@keyframes confetti-fall { 0% { opacity:0; transform:translateY(-10px) rotate(0); } 12% { opacity:1; } 100% { opacity:0; transform:translateY(230px) rotate(520deg); } }
@media(max-width:650px) { .planning-group { margin:12px 0; } .planning-heading { padding:16px; } .planning-heading h3 { font-size:17px; } .planning-slot { grid-template-columns:1fr; gap:8px; } .planning-slot .inline-actions { justify-content:flex-start; } .podium-section { padding:12px; } .podium { gap:6px; } .podium-step { font-size:12px; } }
@media(prefers-reduced-motion:reduce) {
  .podium-animate .podium-step { animation:none; }
  .podium-fireworks { display:block; opacity:1; }
  .podium-section .firework-burst::before { animation:firework-flash 3.15s var(--delay) ease-out infinite both !important; }
  .podium-section .firework-burst::after { animation:firework-core 3.15s var(--delay) ease-out infinite both !important; }
  .podium-section .firework-burst i { animation:firework-ray 3.15s var(--delay) cubic-bezier(.12,.65,.2,1) infinite both !important; }
}
.planning-banner { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:32px; margin:0 0 24px; border:1px solid var(--line); border-radius:18px; background:radial-gradient(ellipse at 100% 0,rgba(73,189,245,.16),transparent 65%),linear-gradient(120deg,#14243a,#0d1523); }
.planning-banner h2 { font-family:var(--font-ui); font-size:clamp(22px,3vw,32px); letter-spacing:-.7px; margin:10px 0; }
.planning-banner p { color:var(--muted); margin-bottom:0; }
.planning-summary { display:flex; align-items:center; gap:15px; flex-shrink:0; }
.planning-summary strong { font-size:56px; font-weight:800; color:var(--gold); }
.planning-summary span { font-size:12px; color:var(--muted); line-height:1.6; }
.planning-tabs { display:flex; gap:8px; padding:6px; background:#080f1b; border:1px solid var(--line); border-radius:12px; margin-bottom:20px; }
.planning-tabs button { flex:1; border:0; border-radius:8px; background:transparent; color:var(--muted); padding:15px 8px; font-size:12px; font-weight:800; cursor:pointer; }
.planning-tabs button[aria-selected="true"] { background:#21344b; color:var(--cream); box-shadow:0 2px 8px #0004; }
.planning-day .planning-group { margin:0; }
.planning-day .planning-slots { padding:8px 26px; }
.planning-day .planning-slot { padding:22px 0; grid-template-columns:145px minmax(0,1fr) auto; }
.planning-day .planning-activity strong { font-size:16px; }
.planning-day .planning-activity p { white-space:pre-line; line-height:1.6; }
.cs2-planning-overview { overflow:hidden; margin:0 0 24px; border:1px solid rgba(73,189,245,.3); border-radius:20px; background:radial-gradient(circle at 8% 0,rgba(73,189,245,.12),transparent 28%),linear-gradient(145deg,#102238,#07121f); box-shadow:0 22px 60px rgba(0,0,0,.28); }
.cs2-planning-overview > header { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:27px 30px 24px; border-bottom:1px solid rgba(73,189,245,.14); }
.cs2-planning-overview h2 { margin:6px 0 5px; font-family:var(--font-ui); font-size:clamp(24px,3vw,36px); letter-spacing:-.04em; }
.cs2-planning-overview > header p:last-child { margin:0; color:var(--muted); font-size:13px; }
.cs2-planning-overview > header > span { flex:none; padding:10px 15px; border:1px solid rgba(73,189,245,.4); border-radius:999px; background:rgba(73,189,245,.07); color:var(--blue); font-size:10px; font-weight:900; letter-spacing:.1em; }
.cs2-planning-overview > header > span b { margin:0 4px; color:var(--gold); }
.cs2-planning-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; padding:22px 24px; }
.cs2-planning-cards article { position:relative; overflow:hidden; min-height:220px; border:1px solid rgba(124,165,197,.2); border-radius:15px; background:linear-gradient(160deg,rgba(24,47,72,.9),rgba(10,25,40,.92)); box-shadow:0 10px 24px rgba(0,0,0,.18); }
.cs2-planning-cards article::before { content:""; position:absolute; inset:0 auto 0 0; width:4px; background:var(--green); }
.cs2-planning-cards article.session-two::before { background:var(--red); }
.cs2-planning-cards article.final { border-color:rgba(217,164,65,.48); background:radial-gradient(circle at 100% 0,rgba(217,164,65,.22),transparent 42%),linear-gradient(150deg,rgba(45,39,31,.95),rgba(16,25,35,.96)); box-shadow:0 12px 32px rgba(217,164,65,.08); }
.cs2-planning-cards article.final::before { background:var(--gold); }
.cs2-phase-head { display:flex; align-items:center; gap:13px; padding:18px 20px 15px; border-bottom:1px solid rgba(124,165,197,.14); }
.cs2-phase-head > span { display:grid; width:42px; height:42px; flex:none; place-items:center; border:1px solid rgba(75,224,160,.42); border-radius:11px; background:rgba(75,224,160,.08); color:var(--green); font-size:17px; font-weight:950; }
.session-two .cs2-phase-head > span { border-color:rgba(224,47,64,.48); background:rgba(224,47,64,.1); color:#ff6675; }
.final .cs2-phase-head > span { border-color:rgba(217,164,65,.5); background:rgba(217,164,65,.1); color:var(--gold-light); }
.cs2-phase-head small,.cs2-phase-head time { display:block; }
.cs2-phase-head small { margin-bottom:4px; color:var(--muted); font-size:9px; font-weight:900; letter-spacing:.14em; }
.cs2-phase-head time { color:var(--cream); font-size:13px; font-weight:900; letter-spacing:.04em; }
.cs2-phase-body { padding:19px 21px 22px; }
.cs2-phase-body em { display:inline-flex; padding:5px 8px; border-radius:5px; background:rgba(75,224,160,.1); color:var(--green); font-size:9px; font-style:normal; font-weight:950; letter-spacing:.12em; }
.session-two .cs2-phase-body em { background:rgba(224,47,64,.12); color:#ff7481; }
.final .cs2-phase-body em { background:rgba(217,164,65,.13); color:var(--gold-light); }
.cs2-phase-body h3 { margin:12px 0 8px; color:var(--cream); font-family:var(--font-ui); font-size:18px; letter-spacing:-.02em; }
.cs2-phase-body p { margin:0; color:var(--muted); font-size:12px; line-height:1.65; }
.cs2-final-mark { position:absolute; top:12px; right:15px; color:rgba(217,164,65,.18); font-size:56px; line-height:1; transform:rotate(8deg); }
.planning-slot.cs2-playoffs-slot { margin:9px -12px; padding:24px 16px; border:1px solid rgba(217,164,65,.55); border-radius:13px; background:radial-gradient(circle at 85% 20%,rgba(217,164,65,.14),transparent 44%),rgba(217,164,65,.05); box-shadow:0 0 28px rgba(217,164,65,.1); }
.planning-slot.cs2-playoffs-slot .planning-activity strong { color:var(--gold-light); font-size:19px; }
.planning-highlights { padding:8px 24px 24px; }
.planning-highlights article { display:flex; gap:16px; padding:17px 0; border-bottom:1px solid var(--line-soft); }
.planning-highlights article:last-child { border:0; }
.highlight-dot { width:8px; height:8px; flex-shrink:0; margin-top:7px; border-radius:50%; background:var(--gold); box-shadow:0 0 0 5px #d9a44110; }
.planning-highlights article.custom-color .highlight-dot { background:var(--event-color); box-shadow:0 0 0 5px color-mix(in srgb,var(--event-color) 12%,transparent); }
.planning-highlights article.custom-color strong { color:var(--event-color); }
.planning-highlights small { display:block; color:var(--muted); font-size:11px; margin-bottom:7px; }
.planning-highlights strong { display:block; font-size:15px; }
.planning-highlights p { margin:5px 0 0; color:var(--muted); font-size:12px; }
@media(max-width:900px) { .cs2-planning-cards { grid-template-columns:1fr; } .cs2-planning-cards article { min-height:0; } }
@media(max-width:650px) { .planning-banner { padding:22px; } .planning-summary { display:none; } .planning-tabs button { font-size:10px; padding:14px 4px; } .planning-day .planning-slot { grid-template-columns:1fr; gap:10px; } .planning-day .planning-slots { padding:8px 16px; } .cs2-planning-overview > header { align-items:flex-start; flex-direction:column; padding:21px; } .cs2-planning-overview > header > span { align-self:flex-start; } .cs2-planning-cards { gap:11px; padding:15px; } }
.event-color-picker { min-width:0; margin:0; padding:16px; border:1px solid var(--line); border-radius:12px; }
.event-color-picker legend { padding:0 8px; color:var(--cream); font-size:13px; font-weight:700; }
.event-color-options { display:grid; grid-template-columns:repeat(4,minmax(100px,1fr)); gap:10px; }
.event-color-options label { display:grid; min-width:0; min-height:82px; place-items:center; align-content:center; gap:7px; padding:10px 7px; border:1px solid var(--line); border-radius:10px; background:rgba(7,17,29,.5); cursor:pointer; }
.event-color-options label:has(input[type="radio"]:checked) { border-color:var(--gold); background:rgba(217,164,65,.08); box-shadow:0 0 0 1px rgba(217,164,65,.16); }
.event-color-options input[type="radio"] { position:absolute; opacity:0; pointer-events:none; }
.event-color-options span:not(.event-color-auto) { width:28px; height:28px; border:2px solid #ffffff55; border-radius:50%; background:var(--swatch); box-shadow:0 4px 12px #0006; }
.event-color-options .event-color-auto { display:grid; min-width:43px; height:28px; place-items:center; border:1px dashed var(--muted); border-radius:7px; color:var(--muted); font-size:8px; font-weight:900; }
.event-color-options small { color:var(--muted); font-size:9px; text-align:center; }
@media(max-width:650px) { .event-color-options { grid-template-columns:repeat(2,1fr); } }
.download-hero { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:16px; padding:22px 24px; border:1px solid rgba(73,189,245,.28); border-radius:16px; background:radial-gradient(circle at 0 50%,rgba(73,189,245,.13),transparent 35%),linear-gradient(135deg,#13263a,#0a1523); }
.download-hero > div { display:flex; align-items:center; gap:18px; }
.download-signal { width:58px; height:58px; flex:0 0 58px; display:grid; place-items:center; border:1px solid var(--blue); border-radius:50%; color:var(--blue); background:rgba(73,189,245,.08); font-size:30px; box-shadow:0 0 24px rgba(73,189,245,.12); }
.download-hero small,.download-hero strong { display:block; }
.download-hero small { color:var(--blue); font-size:10px; font-weight:900; letter-spacing:.15em; }
.download-hero strong { margin-top:4px; color:var(--cream); font-size:20px; }
.download-hero p { margin:5px 0 0; color:var(--muted); font-size:13px; line-height:1.5; }
.download-category-nav { display:flex; gap:8px; margin-bottom:22px; overflow-x:auto; padding:4px 0; }
.download-category-nav a { flex:0 0 auto; padding:9px 13px; border:1px solid var(--line); border-radius:20px; color:var(--muted); text-decoration:none; font-size:11px; font-weight:800; }
.download-category-nav a:hover { border-color:var(--gold); color:var(--cream); }
.download-sections { display:grid; gap:28px; }
.download-category { scroll-margin-top:20px; }
.download-category > header { display:flex; align-items:end; justify-content:space-between; gap:16px; margin-bottom:13px; padding-bottom:12px; border-bottom:1px solid var(--line); }
.download-category h2 { margin:0; font-family:var(--font-display); font-size:24px; font-weight:400; letter-spacing:.04em; text-transform:uppercase; }
.download-category > header > span { color:var(--muted); font-size:11px; }
.download-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(215px,1fr)); gap:14px; }
.download-card { min-width:0; overflow:hidden; border:1px solid var(--line-soft); border-radius:14px; background:linear-gradient(145deg,rgba(15,35,55,.96),rgba(7,17,29,.98)); box-shadow:var(--shadow-card); transition:transform .18s,border-color .18s; }
.download-card:hover { transform:translateY(-3px); border-color:rgba(73,189,245,.42); }
.download-cover { position:relative; height:210px; display:grid; place-items:center; overflow:hidden; background:radial-gradient(circle,#17334c,#08121f); color:#49647a; font-family:var(--font-display); letter-spacing:.12em; }
.download-cover img { width:100%; height:100%; object-fit:cover; }
.download-cover.image-missing img { display:none; }
.download-cover b { position:absolute; left:10px; bottom:10px; max-width:calc(100% - 20px); padding:5px 8px; border:1px solid rgba(255,255,255,.18); border-radius:5px; background:rgba(3,10,16,.82); color:#fff; font-size:9px; letter-spacing:.08em; text-transform:uppercase; }
.download-card-body { padding:16px; }
.download-card h3 { min-height:44px; margin:5px 0 14px; font-size:16px; line-height:1.35; }
.download-card-actions { display:grid; gap:10px; }
.download-card-actions .button { width:100%; }
.download-store-link { color:var(--muted); text-align:center; text-decoration:none; font-size:11px; }
.download-store-link:hover { color:var(--gold); }
.download-notes { margin-top:14px; border-top:1px solid var(--line-soft); padding-top:12px; }
.download-notes summary { color:var(--gold); cursor:pointer; font-size:11px; font-weight:800; }
.download-notes pre { overflow:auto; white-space:pre-wrap; color:var(--muted); font:12px/1.55 var(--font-ui); }
.download-fallback { margin-top:18px; }
.cs2-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.cs2-stat-grid article { position:relative; overflow:hidden; padding:20px; border:1px solid var(--line-soft); border-radius:12px; background:linear-gradient(145deg,#14283c,#091522); }
.cs2-stat-grid article::after { content:""; position:absolute; right:-20px; bottom:-35px; width:100px; height:100px; border:1px solid rgba(73,189,245,.12); border-radius:50%; }
.cs2-stat-grid small,.cs2-stat-grid strong { display:block; }
.cs2-stat-grid small { color:var(--muted); font-size:10px; font-weight:900; letter-spacing:.12em; }
.cs2-stat-grid strong { margin-top:8px; color:var(--blue); font-family:var(--font-display); font-size:35px; font-weight:400; }
.cs2-main-tabs { display:flex; flex-wrap:wrap; gap:9px; margin:0 0 18px; padding:10px; border:1px solid var(--line-soft); border-radius:12px; background:rgba(5,15,25,.62); }
.cs2-main-tabs button,.cs2-player-tabs button { flex:1 1 145px; padding:13px 15px; border:1px solid var(--line); border-radius:8px; background:#101d2e; color:var(--muted); font-size:11px; font-weight:900; cursor:pointer; }
.cs2-main-tabs button:hover,.cs2-main-tabs button.active,.cs2-player-tabs button:hover,.cs2-player-tabs button.active { border-color:var(--blue); background:linear-gradient(135deg,rgba(73,189,245,.2),rgba(73,189,245,.08)); color:var(--cream); box-shadow:inset 0 -2px 0 var(--blue); }
.cs2-leaders { margin-bottom:18px; }
.cs2-podium { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.cs2-podium article { min-width:0; display:flex; align-items:center; gap:13px; padding:16px; border:1px solid var(--line); border-radius:10px; background:rgba(5,15,25,.55); }
.cs2-podium article > span { color:var(--muted); font-family:var(--font-display); font-size:24px; }
.cs2-podium .place-1 { border-color:rgba(217,164,65,.55); background:rgba(217,164,65,.08); }
.cs2-podium .place-1 > span { color:var(--gold); }
.cs2-podium strong,.cs2-podium small { display:block; overflow:hidden; text-overflow:ellipsis; }
.cs2-podium small { margin-top:4px; color:var(--muted); white-space:nowrap; font-size:10px; }
.cs2-table { min-width:1120px; }
.cs2-controls { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:18px 0; }
.cs2-search { min-width:260px; flex:1; display:flex; align-items:center; gap:10px; padding:0 14px; border:1px solid var(--line); border-radius:9px; background:rgba(5,15,25,.65); color:var(--blue); }
.cs2-search input { width:100%; padding:12px 0; border:0; outline:0; background:transparent; color:var(--cream); }
.cs2-filters { display:flex; flex-wrap:wrap; gap:8px; }
.cs2-filters button { padding:10px 14px; border:1px solid var(--line); border-radius:8px; background:#101d2e; color:var(--muted); font:800 10px var(--font-body); letter-spacing:.04em; cursor:pointer; }
.cs2-filters button:hover,.cs2-filters button.active { border-color:var(--blue); background:rgba(73,189,245,.13); color:var(--blue); }
.cs2-leaders .cs2-filters { justify-content:center; margin-top:18px; padding-top:16px; border-top:1px solid var(--line-soft); }
.cs2-ranking-table { margin-top:18px; }
.cs2-player-link { border:0; padding:0; background:none; color:var(--cream); font-weight:900; cursor:pointer; text-decoration:underline; text-decoration-color:rgba(73,189,245,.35); text-underline-offset:3px; }
.cs2-player-link:hover { color:var(--blue); }
.cs2-badges { min-width:108px; white-space:nowrap; }
.cs2-badge { display:inline-flex; align-items:center; min-height:25px; margin:1px 3px 1px 0; padding:2px 6px; border:1px solid rgba(217,164,65,.28); border-radius:999px; background:rgba(217,164,65,.09); font-size:14px; }
.cs2-badge.hs { border-color:rgba(224,73,81,.35); background:rgba(224,73,81,.09); }
.cs2-badge.knife { border-color:rgba(73,189,245,.35); background:rgba(73,189,245,.09); }
.cs2-explorer > label { display:grid; gap:8px; max-width:520px; margin:20px 0; color:var(--muted); font-size:11px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.cs2-explorer select { width:100%; padding:13px; border:1px solid var(--line); border-radius:8px; background:#091522; color:var(--cream); }
.cs2-breakdown { min-width:760px; }
.cs2-demo-grid { display:grid; gap:10px; margin-top:20px; }
.cs2-demo-grid article { display:flex; align-items:center; gap:14px; padding:14px; border:1px solid var(--line); border-radius:9px; background:rgba(5,15,25,.55); }
.cs2-demo-grid article > span { color:var(--blue); font-size:22px; }
.cs2-demo-grid article > div { min-width:0; flex:1; }
.cs2-demo-grid strong,.cs2-demo-grid small { display:block; overflow:hidden; text-overflow:ellipsis; }
.cs2-demo-grid small { margin-top:4px; color:var(--muted); }
.cs2-match-cards { display:none; gap:10px; margin-top:18px; }
.cs2-match-cards article { padding:15px; border:1px solid var(--line); border-radius:10px; background:rgba(5,15,25,.55); }
.cs2-match-cards header { display:flex; justify-content:space-between; gap:12px; color:var(--muted); font-size:11px; }
.cs2-match-cards header strong { color:var(--gold-light); }
.cs2-match-cards h3 { margin:12px 0 7px; color:var(--cream); font-size:15px; }
.cs2-match-cards h3 b { color:var(--blue); }
.cs2-match-cards p { margin:0 0 12px; color:var(--muted); font-size:12px; }
.cs2-match-scoreboard { margin-top:16px; }
.cs2-badge-legend { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:20px; }
.cs2-badge-legend article { padding:18px; border:1px solid var(--line); border-radius:10px; background:linear-gradient(145deg,#14283c,#091522); }
.cs2-badge-legend article > span { display:block; min-height:32px; font-size:21px; }
.cs2-badge-legend strong { display:block; margin:10px 0 5px; color:var(--cream); }
.cs2-badge-legend p { margin:0; color:var(--muted); font-size:11px; }
.cs2-player-modal { min-width:min(900px,80vw); }
.cs2-player-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:18px 0; }
.cs2-player-summary article { padding:14px; border:1px solid var(--line); border-radius:9px; background:#091522; }
.cs2-player-summary small,.cs2-player-summary strong { display:block; }
.cs2-player-summary small { color:var(--muted); font-size:9px; font-weight:900; }
.cs2-player-summary strong { margin-top:6px; color:var(--blue); font-family:var(--font-display); font-size:21px; }
.cs2-player-tabs { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:16px; }
.cs2-detail-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.cs2-detail-grid div { display:flex; justify-content:space-between; gap:10px; padding:11px; border-bottom:1px solid var(--line-soft); }
.cs2-detail-grid span { color:var(--muted); }
.cs2-positive { color:var(--green); }
.cs2-negative { color:#ff8d95; }
.cs2-updated { margin:12px 0 0; color:var(--muted); text-align:right; font-size:10px; }
.cs2-source-warning { display:flex; align-items:center; gap:10px; margin:0 0 16px; padding:11px 14px; border:1px solid rgba(217,164,65,.38); border-radius:9px; background:rgba(217,164,65,.09); color:var(--muted); font-size:11px; }
.cs2-source-warning strong { color:var(--gold); }
.cs2-mobile-cards { display:none; }
@media(max-width:850px) { .cs2-stat-grid { grid-template-columns:repeat(2,1fr); } .cs2-podium { grid-template-columns:1fr; } .cs2-controls { align-items:stretch; flex-direction:column; } .cs2-search { min-width:0; } .cs2-badge-legend { grid-template-columns:1fr; } .cs2-player-summary,.cs2-detail-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .cs2-player-modal { min-width:0; } }
@media(max-width:650px) {
  .download-hero { align-items:stretch; flex-direction:column; }
  .download-hero > div { align-items:flex-start; }
  .download-grid { grid-template-columns:repeat(auto-fill,minmax(165px,1fr)); }
  .download-cover { height:175px; }
  .cs2-stat-grid { grid-template-columns:1fr 1fr; }
  .cs2-stat-grid article { padding:14px; }
  .cs2-stat-grid strong { font-size:27px; }
  .cs2-main-tabs { display:grid; grid-template-columns:1fr 1fr; padding:7px; }
  .cs2-main-tabs button { min-width:0; padding:11px 7px; font-size:9px; }
  .cs2-desktop-table { display:none; }
  .cs2-mobile-cards { display:grid; gap:10px; margin-top:16px; }
  .cs2-mobile-cards article { overflow:hidden; border:1px solid var(--line); border-radius:11px; background:linear-gradient(145deg,#14283c,#091522); }
  .cs2-mobile-cards header { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; padding:13px; border-bottom:1px solid var(--line-soft); }
  .cs2-mobile-cards header > span { color:var(--blue); font:400 20px var(--font-display); }
  .cs2-mobile-cards .cs2-player-link { overflow:hidden; text-align:left; text-overflow:ellipsis; white-space:nowrap; font-size:14px; }
  .cs2-mobile-cards .cs2-badges { min-width:0; text-align:right; }
  .cs2-mobile-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; background:var(--line-soft); }
  .cs2-mobile-metrics div { min-width:0; padding:11px 8px; background:#0b1929; text-align:center; }
  .cs2-mobile-metrics small,.cs2-mobile-metrics strong { display:block; }
  .cs2-mobile-metrics small { color:var(--muted); font-size:8px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
  .cs2-mobile-metrics strong { margin-top:4px; color:var(--cream); font-size:13px; }
  .cs2-mobile-cards footer { display:grid; gap:5px; padding:11px 13px; color:var(--muted); font-size:10px; }
  .cs2-source-warning { align-items:flex-start; flex-direction:column; gap:3px; }
  .cs2-demo-grid article { align-items:flex-start; flex-wrap:wrap; }
  .cs2-demo-grid .button { width:100%; }
  .cs2-matches .cs2-desktop-table { display:none; }
  .cs2-match-cards { display:grid; }
}
.profile-preview { width:96px; height:96px; margin:20px auto; display:grid; place-items:center; border:2px solid var(--gold); border-radius:50%; overflow:hidden; background:var(--navy-3); color:var(--gold); font-size:32px; }
.profile-preview img { width:100%; height:100%; object-fit:cover; }
#pseudoNotice { font-size:12px; line-height:1.6; margin:8px 0 20px; }
.photo-warning { width:fit-content; max-width:100%; margin:20px auto; padding:14px 22px; border:1px solid rgba(255,107,117,.3); border-radius:24px; background:rgba(255,107,117,.09); color:var(--danger); text-align:center; font-size:14px; line-height:1.6; }
.photo-open { display:block; width:100%; padding:0; border:0; background:transparent; cursor:zoom-in; }
.slideshow-modal { width:min(1100px,96vw); max-width:96vw; }
.slide-stage { height:min(62vh,700px); display:flex; align-items:center; justify-content:center; background:#050a12; border-radius:12px; overflow:hidden; }
.slide-stage img { width:100%; height:100%; object-fit:contain; }
.slide-caption { text-align:center; overflow-wrap:anywhere; }
.slide-controls { display:flex; justify-content:center; gap:12px; }
@media(max-width:650px) { .slide-stage { height:50vh; } .slide-controls .button { padding:12px; } }
/* Shared finish: same surfaces, spacing and controls across the portal. */
.panel, .stat-card, .team-card, .tournament-card, .photo-card {
  border-radius:16px;
  border-color:var(--line);
  background:var(--surface-card);
  box-shadow:var(--shadow-card);
}
.page-intro { align-items:center; gap:20px; margin-bottom:28px; }
.page-intro > div, .panel-head > div, .tournament-card > div { min-width:0; }
.page-intro h2 { font-family:var(--font-ui); font-weight:750; letter-spacing:-.5px; text-transform:none; font-size:clamp(22px,2.4vw,30px); margin-bottom:9px; }
.page-intro p { max-width:720px; font-size:14px; line-height:1.7; }
.page-intro > .button { flex-shrink:0; }
.panel-head { padding-bottom:16px; border-bottom:1px solid var(--line-soft); }
.panel-head h2, .panel-head h3 { font-family:var(--font-ui); font-weight:700; text-transform:none; letter-spacing:-.2px; }
.panel-head h2 { font-size:18px; }
.topbar h1 { font-family:var(--font-ui); font-weight:750; font-size:clamp(21px,2.5vw,29px); text-transform:none; letter-spacing:-.6px; }
.sidebar nav button { border-radius:10px; }
.sidebar nav button.active { background:linear-gradient(90deg,rgba(73,189,245,.13),rgba(73,189,245,.03)); border-left-color:var(--blue); }
.sidebar nav button.active span { color:var(--blue); }
.side-status { border-radius:12px; }
.account-button { padding:6px; border-radius:12px; }
.account-button:hover { background:rgba(73,189,245,.07); }
.account-button > span:first-child { flex-shrink:0; }
.account-button strong { max-width:160px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.button, .small-button, .icon-button, .modal-close { border-radius:9px; }
.button { min-height:44px; letter-spacing:.045em; transition:background .15s,border-color .15s; }
.button:hover { transform:none; }
.button.primary { background:linear-gradient(120deg,#ac202c,#c52639); border-color:#de4051; box-shadow:0 5px 16px rgba(192,36,44,.12); }
.button.ghost { background:rgba(17,34,52,.45); }
.small-button { min-height:34px; padding:8px 11px; }
.small-button:hover:not(:disabled) { border-color:var(--blue); background:#253b53; }
.badge, .role-badge, .chip { border-radius:20px; }
.badge, .role-badge { line-height:1.5; }
.chip { padding:6px 10px; background:rgba(73,189,245,.045); }
.team-list, .tournament-list { gap:16px; }
.team-card, .tournament-card { padding:24px; gap:24px; }
.tournament-card > div > strong, .team-card > div > strong { font-size:18px; line-height:1.5; }
.tournament-actions { min-width:140px; align-content:center; }
.tournament-actions .button { width:100%; }
.missing-skills { border-radius:0 10px 10px 0; padding:13px 15px; }
.draw-teams .panel { padding:20px; }
.draw-teams .badge { margin-top:10px; }
.draw-teams ul { list-style:none; padding:0; margin:14px 0 0; }
.draw-teams li { padding:9px 0; border-top:1px solid var(--line-soft); overflow-wrap:anywhere; font-size:14px; }
.draw-teams li small { display:block; line-height:1.6; }
.room-teams { padding:0 16px 12px; border:1px solid var(--line); border-radius:12px; background:rgba(6,17,28,.4); }
.room-teams:not([open]) { padding-bottom:0; }
.match { border-radius:10px; overflow:hidden; }
.bracket-preview { scrollbar-width:thin; scrollbar-color:var(--line) transparent; }
.data-table-wrap { border-radius:16px; box-shadow:var(--shadow-card); }
.data-table th { padding-block:17px; }
.data-table td { padding-block:18px; line-height:1.5; }
.activation-progress { border-radius:20px; }
.empty-state { border-radius:16px; background:rgba(14,28,44,.4); line-height:1.7; }
.empty-state strong { font-family:var(--font-ui); font-weight:700; letter-spacing:0; font-size:18px; }
.rank-row { padding:10px 8px; border-radius:8px; }
.rank-row:first-child { background:rgba(217,164,65,.05); }
.rank-row strong { font-size:14px; }
.player-score { border-radius:14px; }
.modal { border-radius:18px; border-color:var(--line); }
.modal h2 { font-family:var(--font-ui); font-weight:750; letter-spacing:-.4px; text-transform:none; font-size:25px; line-height:1.3; }
.modal .lead { font-size:14px; line-height:1.7; }
.modal-actions { flex-wrap:wrap; }
.field input, .field select, .field textarea, .input-shell { border-radius:9px; }
.field input, .field select, .field textarea { min-width:0; line-height:1.5; }
.field input[readonly] { color:var(--muted); background:#101d2c; }
.check-list, .mode-option span, .skill-choice span { border-radius:10px; }
.check-item { border-radius:7px; line-height:1.5; }
.mode-option input:focus-visible + span { outline:2px solid var(--blue); outline-offset:2px; }
.photo-card { padding:10px; overflow:hidden; }
.photo-card img { border-radius:10px; }
.photo-card p { font-size:12px; color:var(--muted); padding:0 5px; line-height:1.6; }
.photo-upload > p:first-child { color:var(--muted); font-size:14px; line-height:1.7; }
input[type="file"] { font-size:13px; line-height:1.6; }
input[type="file"]::file-selector-button { border:1px solid var(--line); border-radius:8px; padding:9px 12px; margin-right:10px; background:var(--navy-3); color:var(--cream); cursor:pointer; }
.about-facts div { border-radius:12px; padding:20px; background:var(--surface-card); }
.portal-about h2, .about-panel h2 { font-family:var(--font-ui); font-weight:700; text-transform:none; letter-spacing:-.3px; }
.about-list li { padding:5px 0; }
.identity-card, .credential-box, .toast { border-radius:10px; }
@media(max-width:650px) {
  .page-intro { align-items:flex-start; flex-direction:column; }
  .page-intro > .button { width:100%; }
  .panel, .team-card, .tournament-card { padding:18px; }
  .tournament-actions { width:100%; justify-items:start; }
  .team-card { grid-template-columns:1fr; }
  .topbar { gap:10px; }
  .topbar h1 { font-size:20px; }
  .top-actions { gap:5px; }
  .account-button { padding:2px; }
  .topbar > div:not(.top-actions) { min-width:0; }
  .icon-button { flex-shrink:0; }
  .modal-actions .button { flex:1 1 140px; }
  .draw-teams { grid-template-columns:minmax(0,1fr); }
  .skill-choice { grid-template-columns:repeat(2,minmax(0,1fr)); overflow:visible; }
  .skill-choice span small { font-size:11px; }
  .photo-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); }
  .photo-upload form > label { min-width:0; width:100%; }
  .photo-upload form > .button { width:100%; }
  .planning-highlights { padding-inline:6px; }
}
.portal-about { max-width:none; padding:clamp(20px,3vw,36px); }
.portal-about > .about-lead { max-width:760px; font-size:clamp(17px,2vw,21px); line-height:1.7; }
.portal-about > .about-facts { grid-template-columns:repeat(3,minmax(0,1fr)); margin:28px 0; }
.about-access-grid { display:grid; grid-template-columns:1fr 1.2fr; gap:18px; margin:30px 0 18px; }
.about-info-card { padding:24px; border:1px solid var(--line); border-radius:16px; background:var(--surface-card); min-width:0; }
.about-info-card h2 { margin:8px 0 20px; font-size:21px; }
.about-address { background:radial-gradient(ellipse at top left,rgba(73,189,245,.12),transparent 75%),var(--surface-card); }
.about-address address { font-style:normal; font-size:20px; font-weight:700; line-height:1.7; overflow-wrap:anywhere; }
.about-address address span { color:var(--muted); font-size:15px; font-weight:400; }
.arrival-steps { list-style:none; counter-reset:arrival; margin:0; padding:0; }
.arrival-steps li { position:relative; padding:0 0 22px 42px; counter-increment:arrival; }
.arrival-steps li:last-child { padding-bottom:0; }
.arrival-steps li::before { content:counter(arrival); position:absolute; left:0; top:0; display:grid; place-items:center; width:28px; height:28px; border:1px solid var(--line); border-radius:50%; color:var(--gold); font-size:12px; }
.arrival-steps strong, .arrival-steps span { display:block; }
.arrival-steps strong { font-size:14px; margin-bottom:7px; }
.arrival-steps span { color:var(--muted); font-size:14px; line-height:1.7; }
.about-caution { padding:22px 24px; border:1px solid rgba(217,164,65,.25); border-radius:14px; background:rgba(217,164,65,.055); }
.about-caution > strong { color:var(--gold-light); font-size:15px; }
.about-caution p { font-size:13px; line-height:1.7; margin:10px 0 0; }
.about-contact { display:flex; align-items:center; gap:24px; justify-content:space-between; padding-top:24px; margin-top:28px; border-top:1px solid var(--line); }
.about-contact h2 { margin:8px 0; }
.about-contact p { font-size:14px; }
.about-contact .button { flex-shrink:0; text-decoration:none; }
.about-panel .about-access-grid { grid-template-columns:1fr; }
@media(max-width:650px) { .about-access-grid,.portal-about > .about-facts { grid-template-columns:1fr; } .about-info-card { padding:20px; } .about-contact { flex-direction:column; align-items:stretch; } }
.edition-banner { position:relative; isolation:isolate; display:flex; align-items:center; justify-content:space-between; min-height:240px; overflow:hidden; margin-bottom:28px; padding:32px 40px; border:1px solid #33516a; border-radius:20px; background:radial-gradient(ellipse at 85% 40%,rgba(73,189,245,.17),transparent 55%),linear-gradient(115deg,#14283e,#0a1422 70%); box-shadow:var(--shadow-card); }
.edition-banner::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,transparent 49%,rgba(73,189,245,.04) 50%,transparent 51%),linear-gradient(transparent 49%,rgba(73,189,245,.04) 50%,transparent 51%); background-size:32px 32px; mask-image:linear-gradient(90deg,transparent,#000); }
.edition-copy { position:relative; z-index:1; }
.edition-copy h2 { margin:10px 0; color:var(--cream); font-family:var(--font-display); font-size:clamp(34px,5vw,58px); font-weight:400; letter-spacing:.035em; }
.edition-copy > p:not(.kicker) { margin:0 0 18px; color:#c4d5e4; font-size:17px; }
.edition-copy > span { display:inline-block; padding:7px 12px; border:1px solid rgba(217,164,65,.3); border-radius:20px; background:rgba(217,164,65,.07); color:var(--gold-light); font-size:12px; }
.edition-art { position:relative; width:290px; height:205px; flex-shrink:0; display:grid; place-items:center; }
.edition-number { position:relative; color:transparent; -webkit-text-stroke:1px var(--gold); font-family:var(--font-display); font-size:190px; line-height:1; text-shadow:12px 8px 0 rgba(73,189,245,.12); transform:skew(-8deg); }
.edition-orbit { position:absolute; width:210px; height:150px; border:1px solid rgba(73,189,245,.4); border-radius:50%; transform:rotate(-30deg); }
.edition-orbit::after { content:""; position:absolute; top:20px; left:22px; width:7px; height:7px; background:var(--blue); border-radius:50%; box-shadow:0 0 18px var(--blue); }
.edition-orbit.orbit-two { width:260px; height:175px; transform:rotate(28deg); border-color:rgba(217,164,65,.25); }
.edition-art-label { position:absolute; bottom:-3px; color:var(--muted); font-size:8px; letter-spacing:2px; }
@media(max-width:650px) { .edition-banner { min-height:210px; padding:24px; } .edition-art { position:absolute; right:-75px; opacity:.3; transform:scale(.8); } .edition-copy h2 { font-size:38px; } .edition-copy .kicker { font-size:10px; } .edition-art-label { display:none; } }
.tournament-waiting { display:flex; gap:16px; padding:22px; margin:22px 0; border:1px solid rgba(73,189,245,.35); border-radius:16px; background:linear-gradient(120deg,rgba(73,189,245,.1),rgba(14,28,44,.7)); }
.tournament-waiting > div { flex:1; min-width:0; }
.tournament-waiting > div > strong { display:block; color:var(--cream); font-size:17px; }
.tournament-waiting p { color:#bccddc; font-size:14px; line-height:1.7; }
.waiting-indicator { width:10px; height:10px; border-radius:50%; flex-shrink:0; margin-top:6px; background:var(--blue); box-shadow:0 0 0 5px rgba(73,189,245,.1); }
.waiting-stay-badge { display:inline-flex; margin:0 0 12px; padding:7px 11px; border:1px solid rgba(255,79,94,.5); border-radius:999px; background:rgba(201,35,54,.16); color:#ff8994; font-size:11px; font-weight:900; letter-spacing:.09em; box-shadow:inset 0 0 18px rgba(201,35,54,.06); }
.waiting-count { display:flex; justify-content:flex-start; gap:8px; align-items:baseline; margin-top:18px; padding-top:15px; border-top:1px solid rgba(73,189,245,.22); color:var(--cream); font-size:15px; font-weight:700; }
.waiting-count strong { color:var(--gold); font-family:inherit; font-size:15px; font-weight:900; line-height:inherit; font-variant-numeric:tabular-nums; }
.tournament-waiting progress { display:block; width:100%; height:9px; margin:12px 0; accent-color:var(--blue); }
.tournament-waiting small { display:block; color:var(--muted); font-size:11px; line-height:1.6; }
.tournament-card .tournament-game-title { font-size:23px; color:var(--cream); }
.tournament-card .tournament-format-note { margin-top:14px; max-width:640px; line-height:1.7; }
.edition-topbar { position:relative; isolation:isolate; overflow:hidden; min-height:200px; background:radial-gradient(ellipse at 65% 40%,rgba(73,189,245,.16),transparent 55%),linear-gradient(115deg,#14283e,#0a1422 70%); }
.edition-topbar .edition-copy { flex-shrink:0; }
.edition-topbar .edition-copy h1 { margin:8px 0; font-family:var(--font-display); font-size:42px; font-weight:400; letter-spacing:.035em; }
.edition-topbar .edition-copy > p:not(.kicker) { font-size:14px; margin-bottom:12px; }
.edition-topbar .edition-art { width:240px; height:170px; margin:auto; transform:scale(.8); }
.edition-topbar .top-actions { position:relative; z-index:2; align-self:flex-start; margin-top:6px; flex-shrink:0; }
@media(max-width:1150px) { .edition-topbar .edition-art { position:absolute; left:43%; opacity:.35; pointer-events:none; } }
@media(max-width:650px) {
  .edition-topbar { min-height:175px; align-items:flex-start; gap:10px; padding:18px 14px; }
  .edition-topbar .edition-copy { flex:1; min-width:0; }
  .edition-topbar .edition-copy h1 { font-size:28px; margin:4px 0 8px; }
  .edition-topbar .edition-copy > span { font-size:10px; padding:5px 8px; }
  .edition-topbar .edition-copy > p:not(.kicker) { font-size:12px; }
  .edition-topbar .edition-art { left:auto; right:-60px; top:28px; opacity:.18; }
  .edition-topbar .top-actions { margin-top:0; }
  .edition-topbar .menu-button { margin-top:0; }
}
.dashboard-open-rooms { margin-bottom:24px; }
.dashboard-room { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:18px 0; border-top:1px solid var(--line-soft); }
.dashboard-room:first-child { border-top:0; padding-top:0; }
.dashboard-room h3 { margin:10px 0 6px; font-size:20px; }
.dashboard-room p { color:var(--muted); font-size:13px; line-height:1.6; margin:5px 0; }
.dashboard-room .button { flex-shrink:0; }
@media(max-width:650px) { .dashboard-room { flex-direction:column; align-items:stretch; } }
.dashboard-ranking-column { display:grid; gap:18px; align-content:start; min-width:0; }
.dashboard-ranking-column .dashboard-open-rooms { margin-bottom:0; }
.dashboard-ranking-column .dashboard-room { flex-direction:column; align-items:stretch; }
.naming-timer { width:fit-content; margin:20px auto; padding:16px 32px; font-size:42px; font-weight:800; font-variant-numeric:tabular-nums; color:var(--gold); border:1px solid var(--line); border-radius:16px; background:var(--navy); }
.name-proposal { display:flex; align-items:center; gap:16px; padding:16px; margin:12px 0; border:1px solid var(--line); border-radius:12px; flex-wrap:wrap; }
.name-proposal strong { flex:1; overflow-wrap:anywhere; }
.name-proposal [aria-pressed="true"] { border-color:var(--gold); color:var(--gold); }
.naming-countdown-header { position:sticky; top:0; z-index:2; margin:-10px 0 24px; padding:14px 40px 14px 14px; text-align:center; border-bottom:1px solid var(--line); background:#0d2033; }
.naming-countdown-header > span { display:block; color:var(--muted); font-size:10px; font-weight:800; letter-spacing:1px; }
.naming-countdown-header .naming-timer { margin:8px auto 0; padding:5px 24px; font-size:36px; }
.admin-team-launch { margin-top:22px; padding:20px; border:1px solid rgba(73,189,245,.35); border-radius:14px; background:rgba(73,189,245,.06); }
.admin-team-launch > p:first-child { color:var(--cream); font-weight:700; margin-top:0; }
.naming-members { padding:18px 22px; margin-bottom:24px; border:1px solid var(--line); border-radius:14px; background:var(--surface-card); }
.naming-members h3 { margin:0 0 14px; font-size:16px; }
.naming-members ul { display:flex; flex-wrap:wrap; gap:10px; list-style:none; padding:0; margin:0; }
.naming-members li { padding:8px 12px; border:1px solid var(--line); border-radius:9px; font-size:14px; overflow-wrap:anywhere; }
.match-command-center { margin:24px 0; overflow:hidden; border:1px solid rgba(73,189,245,.42); border-radius:18px; background:radial-gradient(circle at 90% 0,rgba(73,189,245,.13),transparent 38%),linear-gradient(145deg,#13283d,#091522 72%); box-shadow:0 18px 45px rgba(0,0,0,.2); }
.match-command-center > header { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:22px 24px 18px; }
.match-command-center > header h3 { margin:5px 0 0; color:var(--cream); font-family:var(--font-display); font-size:25px; font-weight:400; letter-spacing:.035em; text-transform:uppercase; }
.live-admin-badge { display:inline-flex; align-items:center; gap:8px; padding:8px 11px; border:1px solid rgba(63,211,151,.3); border-radius:999px; color:#83e5ba; background:rgba(63,211,151,.07); font-size:9px; font-weight:900; letter-spacing:.09em; white-space:nowrap; }
.live-admin-badge i { width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 12px var(--green); }
.match-admin-stats { display:grid; grid-template-columns:repeat(4,1fr); margin:0 24px; border:1px solid rgba(73,189,245,.16); border-radius:13px; background:rgba(5,15,25,.46); }
.match-admin-stats > div { display:flex; align-items:baseline; gap:8px; padding:14px 16px; border-right:1px solid rgba(73,189,245,.13); }
.match-admin-stats > div:last-child { border-right:0; }
.match-admin-stats strong { color:var(--gold); font-family:var(--font-display); font-size:25px; font-weight:400; line-height:1; }
.match-admin-stats span { color:var(--muted); font-size:10px; font-weight:800; text-transform:uppercase; }
.match-admin-progress { height:4px; margin:16px 24px 0; overflow:hidden; border-radius:99px; background:#07111d; }
.match-admin-progress span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--blue),var(--green)); transition:width .35s ease; }
.ready-match-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(310px,1fr)); gap:14px; padding:20px 24px 24px; }
.quick-match-card { min-width:0; overflow:hidden; border:1px solid #315270; border-radius:14px; background:rgba(6,17,29,.78); }
.quick-match-card > header { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 13px; border-bottom:1px solid #263e54; color:var(--blue); font-size:9px; font-weight:900; letter-spacing:.07em; text-transform:uppercase; }
.quick-winner-choices { display:grid; grid-template-columns:1fr 1fr; }
.quick-winner-choices button { min-width:0; min-height:104px; padding:14px; border:0; border-right:1px solid #263e54; background:transparent; color:var(--cream); cursor:pointer; text-align:left; transition:background .18s ease,color .18s ease; }
.quick-winner-choices button:last-child { border-right:0; }
.quick-winner-choices button:hover,.quick-winner-choices button:focus-visible { outline:0; background:linear-gradient(145deg,rgba(217,164,65,.18),rgba(73,189,245,.09)); color:var(--gold-light); }
.quick-winner-choices button:disabled { opacity:.5; cursor:wait; }
.quick-winner-choices span,.quick-winner-choices strong,.quick-winner-choices small { display:block; }
.quick-winner-choices span { color:var(--muted); font-size:9px; font-weight:900; letter-spacing:.08em; }
.quick-winner-choices strong { margin:9px 0; overflow-wrap:anywhere; font-size:16px; line-height:1.35; }
.quick-winner-choices small { color:var(--gold); font-size:8px; font-weight:900; letter-spacing:.06em; }
.match-admin-empty { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:22px; border:1px dashed #34536c; border-radius:12px; color:var(--muted); }
.match-admin-empty strong { color:var(--cream); }
.championship-dashboard { display:grid; gap:22px; margin-top:24px; }
.championship-hero { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:25px 28px 20px; border:1px solid rgba(217,164,65,.34); border-bottom:0; border-radius:18px 18px 0 0; background:radial-gradient(circle at 88% 15%,rgba(217,164,65,.18),transparent 32%),linear-gradient(135deg,#172b40,#0a1725 72%); }
.championship-hero h3 { margin:5px 0 7px; color:var(--cream); font-family:var(--font-display); font-size:clamp(22px,3vw,32px); font-weight:400; letter-spacing:.035em; text-transform:uppercase; }
.championship-hero p:last-child { margin:0; color:var(--muted); }
.championship-progress { display:grid; flex:0 0 auto; width:120px; height:120px; place-content:center; border:1px solid rgba(217,164,65,.5); border-radius:50%; background:#091522cc; text-align:center; box-shadow:inset 0 0 25px rgba(217,164,65,.1),0 0 28px rgba(217,164,65,.08); }
.championship-progress strong { color:var(--gold-light); font-family:var(--font-display); font-size:34px; font-weight:400; line-height:1; }
.championship-progress span { margin-top:8px; color:var(--muted); font-size:9px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.championship-progress-bar { height:5px; margin-top:-22px; overflow:hidden; border-radius:0 0 99px 99px; background:#07111d; }
.championship-progress-bar span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--gold),var(--green)); transition:width .4s ease; }
.championship-ranking,.championship-calendar { overflow:hidden; border:1px solid var(--line); border-radius:17px; background:rgba(8,20,33,.78); }
.championship-ranking .section-heading,.championship-calendar .section-heading { padding:20px 23px; border-bottom:1px solid var(--line); background:linear-gradient(100deg,rgba(25,45,65,.88),rgba(12,27,43,.75)); }
.championship-ranking .section-heading h3,.championship-calendar .section-heading h3 { margin:4px 0 0; color:var(--cream); font-size:19px; }
.championship-ranking .section-heading small { color:var(--gold); font-weight:800; }
.championship-table-wrap { overflow-x:auto; }
.championship-table-wrap table { width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums; }
.championship-table-wrap th { padding:11px 15px; color:var(--muted); background:rgba(4,13,23,.56); font-size:9px; letter-spacing:.1em; text-align:center; text-transform:uppercase; }
.championship-table-wrap th:nth-child(2),.championship-table-wrap td:nth-child(2) { text-align:left; }
.championship-table-wrap td { padding:14px 15px; border-top:1px solid rgba(75,111,139,.18); color:#b8c8d7; text-align:center; }
.championship-table-wrap tbody tr:first-child td { color:var(--cream); background:linear-gradient(90deg,rgba(217,164,65,.1),transparent); }
.championship-table-wrap td:first-child strong,.championship-table-wrap td:last-child b { color:var(--gold-light); font-size:16px; }
.championship-form { display:inline-flex; gap:4px; min-width:84px; }
.championship-form i { display:grid; width:20px; height:20px; place-items:center; border-radius:50%; color:#07131f; font-size:9px; font-style:normal; font-weight:900; }
.championship-form .win { background:var(--green); }
.championship-form .loss { background:#e06470; }
.championship-score-note { margin:0; padding:13px 22px; border-top:1px solid var(--line); color:var(--muted); font-size:11px; line-height:1.6; }
.championship-calendar { display:grid; gap:0; }
.championship-round { border-top:1px solid var(--line); background:rgba(8,19,31,.6); }
.championship-round:first-of-type { border-top:0; }
.championship-round > summary { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:16px 22px; cursor:pointer; list-style:none; }
.championship-round > summary::-webkit-details-marker { display:none; }
.championship-round > summary > span { display:flex; align-items:center; gap:13px; }
.championship-round > summary > span small { color:var(--muted); font-size:9px; font-weight:900; letter-spacing:.1em; }
.championship-round > summary > span strong { color:var(--cream); font-family:var(--font-display); font-size:27px; font-weight:400; }
.championship-round > summary > div { display:grid; justify-items:end; gap:3px; }
.championship-round > summary > div b { color:var(--muted); font-size:9px; letter-spacing:.09em; }
.championship-round > summary > div small { color:#718ca3; }
.championship-round.current > summary { background:linear-gradient(90deg,rgba(73,189,245,.12),transparent); box-shadow:inset 3px 0 var(--blue); }
.championship-round.current > summary > div b { color:var(--blue); }
.championship-match-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(270px,1fr)); gap:13px; padding:3px 22px 22px; }
.championship-match { overflow:hidden; border:1px solid #2c4860; border-radius:13px; background:#0b1929; }
.championship-match > header { display:flex; justify-content:space-between; padding:9px 12px; border-bottom:1px solid #263d52; color:var(--muted); font-size:8px; font-weight:900; letter-spacing:.08em; }
.championship-match.ready { border-color:rgba(73,189,245,.58); }
.championship-match.completed > header b { color:var(--green); }
.championship-match > div { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:stretch; }
.championship-match button,.championship-match > div > div { display:flex; min-width:0; min-height:76px; align-items:center; justify-content:center; flex-direction:column; gap:5px; padding:12px; border:0; background:transparent; color:#c9d5df; text-align:center; overflow-wrap:anywhere; }
.championship-match button { cursor:pointer; transition:background .18s ease,color .18s ease; }
.championship-match button:hover,.championship-match button:focus-visible { outline:0; color:var(--gold-light); background:rgba(217,164,65,.1); }
.championship-match button:disabled { cursor:wait; opacity:.6; }
.championship-match .winner { color:var(--gold-light); background:linear-gradient(145deg,rgba(217,164,65,.16),rgba(63,211,151,.06)); }
.championship-match .winner b { color:var(--green); font-size:8px; letter-spacing:.09em; }
.championship-versus { align-self:center; color:#58728a; font-size:9px; font-style:normal; font-weight:900; }
.full-bracket-details { margin-top:24px; border:1px solid var(--line); border-radius:15px; background:#091321; }
.full-bracket-details > summary { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:18px 21px; color:var(--gold); cursor:pointer; font-size:12px; font-weight:900; letter-spacing:.07em; list-style:none; }
.full-bracket-details > summary::-webkit-details-marker { display:none; }
.full-bracket-details > summary::after { content:"+"; flex:0 0 auto; font-size:22px; line-height:1; }
.full-bracket-details[open] > summary::after { content:"−"; }
.full-bracket-details > summary small { color:var(--muted); font-size:10px; font-weight:600; letter-spacing:0; text-align:right; }
.full-bracket-body { padding:0 18px 18px; border-top:1px solid var(--line); }
.bracket-tree-section { margin-top:24px; border:1px solid var(--line); border-radius:16px; overflow:hidden; background:#091321; }
.bracket-tree-section > header { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; padding:20px 24px; border-bottom:1px solid var(--line); background:linear-gradient(100deg,#152a40,#101c2d); }
.bracket-tree-section h3 { margin:7px 0 0; font-size:16px; font-weight:600; color:var(--cream); }
.tree-loser > header .kicker { color:#c8a4ff; }
.tree-final > header .kicker { color:var(--gold); }
.tree-scroll { display:block; padding:18px 24px 26px; scrollbar-width:thin; }
.bracket-tree { position:relative; }
.bracket-connections { position:absolute; inset:0; pointer-events:none; overflow:visible; }
.bracket-connections path { stroke:#43647e; stroke-width:2; fill:none; }
.bracket-connections .loss-path { stroke:#9375b2; stroke-dasharray:5 4; }
.tree-round-label { position:absolute; top:0; margin:0; padding:10px; border-radius:8px; background:#142237; color:var(--muted); font-size:11px; letter-spacing:1.5px; text-align:center; }
.tree-match { position:absolute; border:1px solid #304860; border-radius:12px; background:#101e30; box-shadow:0 8px 18px #0003; overflow:hidden; }
.tree-match > header { height:34px; display:flex; align-items:center; justify-content:space-between; padding:0 12px; background:#172a3f; font-size:9px; font-weight:800; color:var(--muted); letter-spacing:.6px; }
.tree-match.ready { border-color:var(--blue); box-shadow:0 0 0 1px #49bdf515; }
.tree-match.ready > header { color:var(--blue); }
.tree-match.completed > header { color:var(--green); }
.tree-match.cancelled,.tree-match.bye { opacity:.55; }
.tree-participant { display:flex; align-items:center; gap:9px; width:100%; height:53px; padding:7px 10px; border:0; border-top:1px solid #25394e; background:transparent; text-align:left; color:#c4d1de; font-size:12px; }
button.tree-participant { cursor:pointer; }
button.tree-participant:hover { background:#203a51; }
.tree-seed { color:#6d89a0; font-size:10px; flex-shrink:0; }
.tree-team-name { min-width:0; flex:1; overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; line-height:1.5; }
.tree-result { width:14px; flex-shrink:0; }
.tree-participant.is-winner { color:var(--gold-light); background:rgba(217,164,65,.1); font-weight:700; }
.tree-participant.is-winner .tree-result { color:var(--gold); }
.tree-help { padding:12px 16px; border-radius:10px; background:rgba(73,189,245,.05); color:var(--muted); font-size:12px; line-height:1.7; }
@media(max-width:650px) { .bracket-tree-section > header { padding:16px; } .tree-scroll { padding:14px 12px 22px; } }
@media(max-width:720px) {
  .match-command-center > header { align-items:flex-start; flex-direction:column; }
  .match-admin-stats { grid-template-columns:1fr 1fr; }
  .match-admin-stats > div:nth-child(2) { border-right:0; }
  .match-admin-stats > div:nth-child(-n+2) { border-bottom:1px solid rgba(73,189,245,.13); }
  .ready-match-grid { grid-template-columns:1fr; padding:16px; }
  .match-admin-stats,.match-admin-progress { margin-left:16px; margin-right:16px; }
  .full-bracket-details > summary { align-items:flex-start; flex-direction:column; }
  .full-bracket-details > summary small { text-align:left; }
  .championship-hero { align-items:flex-start; padding:20px; }
  .championship-progress { width:86px; height:86px; }
  .championship-progress strong { font-size:26px; }
  .championship-table-wrap th,.championship-table-wrap td { padding:11px 10px; }
  .championship-form { min-width:0; }
  .championship-match-grid { grid-template-columns:1fr; padding:3px 14px 16px; }
}
@media(max-width:500px) { .championship-hero { flex-direction:column; } .championship-progress { width:100%; height:auto; padding:14px; border-radius:12px; } .championship-table-wrap th:nth-child(6),.championship-table-wrap td:nth-child(6) { display:none; } }
#profileInfoForm { margin-top:28px; padding-top:20px; border-top:1px solid var(--line); }
.competition-points { min-width:0; margin:20px 0 0; padding:16px; border:1px solid rgba(217,164,65,.3); border-radius:12px; background:rgba(217,164,65,.04); }
.competition-points legend { padding:0 8px; color:var(--gold); font-size:13px; font-weight:700; }
.competition-points > p { font-size:12px; line-height:1.7; }
.history-heading { margin-top:32px; padding-top:24px; border-top:1px solid var(--line); }

/* Keep administrative controls readable without squeezing page titles. */
.page-intro { flex-wrap:wrap; }
.page-intro > div:first-child { flex:1 1 320px; }
.page-actions { display:flex; flex:0 1 520px; flex-wrap:wrap; justify-content:flex-end; gap:10px; }
.page-actions .button { flex:1 1 180px; }
.page-actions .button.primary { flex-basis:100%; order:-1; }
.rehearsal-banner { display:flex; align-items:center; flex-wrap:wrap; gap:20px; border-color:#665431; background:linear-gradient(120deg,#28251d,#101d2c 75%); }
.rehearsal-banner > div { flex:1 1 360px; min-width:0; }
.rehearsal-banner .kicker { color:var(--gold); line-height:1.6; }
.rehearsal-banner strong { font-size:20px; }
.rehearsal-banner p:last-child { color:#b9c7d3; line-height:1.7; margin-bottom:0; }
.rehearsal-config { padding:18px; border:1px solid rgba(217,164,65,.34); border-radius:14px; background:linear-gradient(120deg,rgba(217,164,65,.08),rgba(73,189,245,.05)); }
.rehearsal-config > strong { color:var(--gold); letter-spacing:.08em; }
.test-player-summary { display:block; margin-top:12px; padding:12px 14px; border-left:3px solid var(--blue); background:rgba(73,189,245,.08); color:var(--cream); font-size:13px; font-weight:800; line-height:1.6; }
.shared-rehearsal-card { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:22px; border-color:rgba(217,164,65,.58); background:radial-gradient(circle at 85% 20%,rgba(73,189,245,.12),transparent 38%),linear-gradient(120deg,#29251c,#102034 76%); }
.shared-rehearsal-card h2 { margin:5px 0 8px; font-family:var(--font-display); font-size:clamp(24px,3vw,36px); font-weight:400; text-transform:uppercase; }
.shared-rehearsal-card p:last-child { margin-bottom:0; color:#b9c7d3; }
.naming-admin-controls { border-color:#2d6787; background:linear-gradient(120deg,#163047,#0c1928); }
.naming-admin-controls > p { margin-top:0; line-height:1.7; color:#c4d5e1; }
.naming-admin-controls .inline-actions { flex-wrap:wrap; gap:12px; }
.naming-admin-controls .button { flex:1 1 220px; }
.draw-teams .panel > strong { display:block; font-size:18px; line-height:1.5; overflow-wrap:anywhere; }
.tree-match.completed { border-color:#366754; }
.tree-match.ready > header { background:#163347; }
button.tree-participant:focus-visible { outline-offset:-3px; }
button.tree-participant:disabled { cursor:default; }
button.tree-participant:hover:not(:disabled) .tree-result { color:var(--gold); }
.button:disabled, .small-button:disabled { cursor:not-allowed; }
@media(max-width:650px) {
  .page-intro > div:first-child { flex-basis:auto; }
  .page-actions { flex-basis:auto; width:100%; }
  .rehearsal-banner > .button { width:100%; }
  .shared-rehearsal-card { align-items:stretch; flex-direction:column; }
  .shared-rehearsal-card .button { width:100%; }
  .tournament-results-hero { margin:-26px -20px 20px; padding:46px 52px 34px 20px; }
}
@media(pointer:coarse) {
  .small-button, .icon-button, .modal-close { min-height:44px; min-width:44px; }
}

/* Team reveal: a clear step between naming and the match bracket. */
.modal.team-presentation-modal { width:min(96vw,1280px); }
.team-presentation-modal .modal-close { z-index:3; }
.team-presentation-hero { display:flex; align-items:center; justify-content:space-between; gap:28px; margin:-31px -31px 0; padding:38px 72px 34px 31px; border-bottom:1px solid rgba(73,189,245,.24); background:radial-gradient(circle at 80% 15%,rgba(73,189,245,.2),transparent 34%),linear-gradient(120deg,#172e46,#0b1727 72%); }
.team-presentation-hero h2 { margin:7px 0 8px; font-family:var(--font-display); font-size:clamp(30px,4vw,48px); font-weight:400; letter-spacing:.035em; text-transform:uppercase; }
.team-presentation-hero > div:first-child > p:last-child { margin:0; color:#b9cbd9; font-weight:700; }
.team-presentation-summary { display:flex; align-items:center; gap:13px; flex:0 0 auto; padding:14px 18px; border:1px solid rgba(217,164,65,.45); border-radius:14px; background:rgba(7,18,30,.62); }
.team-presentation-summary strong { color:var(--gold); font-family:var(--font-display); font-size:46px; font-weight:400; line-height:1; }
.team-presentation-summary span { color:#b9cbd9; font-size:11px; font-weight:800; line-height:1.45; letter-spacing:.08em; text-transform:uppercase; }
.team-presentation-intro { max-width:760px; margin:26px 0 8px; color:var(--muted); line-height:1.7; }
.team-draw-heading { display:flex; align-items:end; justify-content:space-between; gap:22px; margin:26px 0 16px; }
.team-draw-heading h3 { margin:5px 0 0; font-family:var(--font-display); font-size:24px; font-weight:400; letter-spacing:.035em; text-transform:uppercase; }
.team-draw-heading > p { max-width:470px; margin:0; color:var(--muted); font-size:13px; line-height:1.6; text-align:right; }
.team-reveal-grid { grid-template-columns:repeat(auto-fit,minmax(330px,1fr)); gap:16px; }
.team-reveal-card { position:relative; min-width:0; overflow:hidden; border:1px solid #29435a; border-radius:16px; background:linear-gradient(150deg,#13263a,#091522 78%); box-shadow:0 14px 34px rgba(0,0,0,.2); }
.team-reveal-card::before { content:""; position:absolute; inset:0 auto 0 0; width:3px; background:#375873; }
.team-reveal-card.is-own-team { border-color:rgba(217,164,65,.72); box-shadow:0 0 0 1px rgba(217,164,65,.1),0 18px 40px rgba(0,0,0,.25); }
.team-reveal-card.is-own-team::before { background:var(--gold); box-shadow:0 0 18px rgba(217,164,65,.55); }
.team-reveal-card-head { min-height:42px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 16px 8px 18px; border-bottom:1px solid var(--line-soft); background:rgba(3,11,18,.26); }
.team-order { color:#6f8ca3; font-size:10px; font-weight:900; letter-spacing:.16em; }
.team-identity { display:flex; align-items:center; gap:15px; padding:18px; }
.team-emblem { width:48px; height:48px; display:grid; place-items:center; flex:0 0 48px; border:1px solid rgba(73,189,245,.42); border-radius:13px; color:var(--blue); background:rgba(73,189,245,.08); font-family:var(--font-display); font-size:20px; letter-spacing:.04em; }
.is-own-team .team-emblem { border-color:rgba(217,164,65,.58); color:var(--gold); background:rgba(217,164,65,.09); }
.team-identity > div { min-width:0; }
.team-identity h4 { margin:0 0 5px; color:var(--cream); font-size:19px; line-height:1.35; overflow-wrap:anywhere; }
.team-identity p { margin:0; color:var(--muted); font-size:11px; }
.team-roster { margin:0; padding:0 18px 16px; list-style:none; }
.team-roster li { min-height:48px; display:grid; grid-template-columns:26px minmax(0,1fr) auto; align-items:center; gap:10px; padding:8px 0; border-top:1px solid var(--line-soft); }
.team-roster li.is-current-player { margin-inline:-8px; padding-inline:8px; border-radius:8px; background:rgba(217,164,65,.07); }
.member-number { color:#627f95; font-size:10px; font-weight:800; font-variant-numeric:tabular-nums; }
.member-name { min-width:0; color:#dce6ed; font-size:13px; font-weight:750; overflow-wrap:anywhere; }
.member-name small { display:inline-block; margin-left:5px; color:var(--gold); font-size:8px; letter-spacing:.1em; }
.member-level { display:grid; justify-items:end; gap:5px; color:#8fa6b8; font-size:9px; font-weight:800; text-transform:uppercase; }
.member-level i { display:flex; gap:3px; }
.member-level b { width:14px; height:3px; border-radius:2px; background:#2a4053; }
.member-level b.filled { background:var(--blue); box-shadow:0 0 7px rgba(73,189,245,.35); }
.is-own-team .member-level b.filled { background:var(--gold); box-shadow:0 0 7px rgba(217,164,65,.35); }
.team-next-step { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:24px; padding:22px 24px; border:1px solid rgba(73,189,245,.3); border-radius:16px; background:linear-gradient(110deg,rgba(73,189,245,.09),rgba(11,23,39,.74)); }
.team-next-step > div { min-width:0; }
.team-next-step strong { display:block; margin:5px 0; color:var(--cream); font-size:18px; }
.team-next-step p:last-child { margin:0; color:var(--muted); font-size:12px; line-height:1.6; }
.team-next-step .button { min-width:220px; flex:0 0 auto; }
.room-teams .team-reveal-card { box-shadow:none; }
@media(max-width:700px) {
  .orga-chat-button { margin-top:auto; }
  .orga-chat-layout.admin { grid-template-columns:1fr; }
  .orga-conversations { max-height:145px; overflow-y:auto; border-right:0; border-bottom:1px solid var(--line-soft); }
  .orga-chat-stream { min-height:260px; }
  .orga-chat-form { grid-template-columns:1fr; }
  .log-entry { grid-template-columns:70px 1fr; }
  .log-entry time { grid-column:2; }
  .team-presentation-hero { margin:-26px -20px 0; padding:30px 55px 26px 20px; }
  .team-presentation-summary { display:none; }
  .team-draw-heading { align-items:start; flex-direction:column; }
  .team-draw-heading > p { text-align:left; }
  .team-reveal-grid { grid-template-columns:1fr; }
  .team-next-step { align-items:stretch; flex-direction:column; }
  .team-next-step .button { width:100%; min-width:0; }
  .player-cs2-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:470px) {
  .team-roster li { grid-template-columns:22px minmax(0,1fr); }
  .member-level { grid-column:2; justify-items:start; padding-bottom:4px; }
}

.photo-consent-panel { position:relative; z-index:1; width:min(100%, 720px); margin:32px auto; padding:clamp(20px, 4vw, 36px); }
.photo-consent-fields { margin:24px 0; text-transform:none; letter-spacing:normal; }
.photo-consent-fields h2 { font-size:1.5rem; }
.photo-consent-fields p { font-family:var(--font-body, sans-serif); font-size:.95rem; line-height:1.6; }
.photo-consent-fields fieldset { min-width:0; margin:20px 0; padding:16px; border:1px solid var(--line, #284458); border-radius:12px; }
.photo-consent-fields legend { padding:0 6px; color:var(--gold); font-weight:700; }
.photo-consent-options { display:flex; flex-wrap:wrap; gap:10px; }
.photo-consent-options label { display:flex; align-items:center; gap:10px; flex:1 1 140px; min-height:46px; padding:10px; margin:0; border:1px solid var(--line, #284458); border-radius:8px; cursor:pointer; font:inherit; letter-spacing:normal; text-transform:none; }
.photo-consent-options label:has(input:checked) { border-color:var(--gold); background:rgba(239,184,68,.1); }
.photo-consent-options input[type="radio"] { width:20px; height:20px; min-height:0; margin:0; flex:none; accent-color:var(--gold); }
.photo-consent-summary { display:grid; gap:6px; min-width:180px; }
.photo-consent-summary .status { white-space:normal; }
#consentLogout { margin-top:12px; }

/* ArcoMots — an original, lightweight word challenge for waiting times. */
[data-route="arcomots"] > span { font-size:.55rem !important; font-weight:950; letter-spacing:-.04em; }
.arcomots-welcome { display:grid; grid-template-columns:minmax(250px,.7fr) minmax(340px,1.3fr); align-items:center; gap:clamp(28px,6vw,80px); min-height:430px; overflow:hidden; background:radial-gradient(circle at 15% 50%,rgba(73,189,245,.17),transparent 34%),linear-gradient(135deg,#10263b,#080f1b 70%); }
.arcomots-welcome > div:last-child { max-width:700px; }
.arcomots-welcome h2 { margin:5px 0 14px; font-family:var(--font-display); font-size:clamp(34px,5vw,62px); font-weight:400; letter-spacing:.035em; text-transform:uppercase; }
.arcomots-welcome > div:last-child > p { color:#b8c9d6; line-height:1.75; }
.arcomots-mark { display:grid; grid-template-columns:repeat(2,clamp(80px,11vw,130px)); justify-content:center; gap:10px; transform:rotate(-3deg); }
.arcomots-mark span { aspect-ratio:1; display:grid; place-items:center; border:2px solid rgba(73,189,245,.56); border-radius:15px; background:linear-gradient(145deg,#1a3d57,#0b1b2b); color:#fff; font-family:var(--font-display); font-size:clamp(48px,7vw,78px); box-shadow:0 12px 30px rgba(0,0,0,.25),inset 0 1px rgba(255,255,255,.08); }
.arcomots-mark span:nth-child(2) { border-color:rgba(217,164,65,.7); background:linear-gradient(145deg,#5d4820,#1b1a19); }
.arcomots-mark span:nth-child(3) { border-color:rgba(192,36,44,.72); background:linear-gradient(145deg,#67202a,#23131b); }
.arcomots-legend { display:flex; flex-wrap:wrap; gap:14px 20px; margin:22px 0; color:#b8c9d6; font-size:12px; font-weight:750; }
.arcomots-legend span { display:flex; align-items:center; gap:8px; }
.arcomots-legend i { width:29px; height:29px; display:grid; place-items:center; border:1px solid var(--line); border-radius:6px; color:#fff; font-style:normal; font-weight:900; }
.arcomots-legend .exact,.arcomot-cell.exact,.arcomots-keyboard button.exact { border-color:#31b785; background:#177153; }
.arcomots-legend .present,.arcomot-cell.present,.arcomots-keyboard button.present { border-color:#d9a441; background:#87631d; }
.arcomots-legend .absent,.arcomot-cell.absent,.arcomots-keyboard button.absent { border-color:#425366; background:#2a3543; color:#a6b2bd; }
.arcomots-ranking-note { margin:17px 0 0; font-size:12px; }
.arcomots-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:16px; }
.arcomots-stats article { padding:18px 20px; border:1px solid var(--line); border-radius:14px; background:rgba(10,25,40,.82); }
.arcomots-stats small,.arcomots-stats strong { display:block; }
.arcomots-stats small { color:var(--muted); font-size:10px; font-weight:850; letter-spacing:.11em; }
.arcomots-stats strong { margin-top:8px; color:var(--gold-light); font-family:var(--font-display); font-size:30px; font-weight:400; }
.arcomots-game-head { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:22px; }
.arcomots-game-head h2 { margin:4px 0 0; font-size:clamp(25px,4vw,38px); }
.arcomots-game-data { display:flex; align-items:center; gap:12px; }
.arcomots-game-data > span,.arcomots-game-data time { min-width:105px; display:grid; place-items:center; padding:11px 15px; border:1px solid var(--line); border-radius:12px; background:#0d1c2d; color:var(--gold-light); font-family:var(--font-display); font-size:26px; font-weight:400; font-variant-numeric:tabular-nums; }
.arcomots-game-data > span small { color:var(--muted); font-family:var(--font-ui); font-size:8px; font-weight:900; letter-spacing:.14em; }
.arcomots-game-data time.urgent { border-color:rgba(255,107,117,.75); color:#ff8d95; animation:arcomots-pulse 1s ease-in-out infinite; }
.arcomots-game { max-width:920px; margin-inline:auto; text-align:center; }
.arcomots-hint { display:grid; gap:7px; margin:-22px -22px 24px; padding:18px 24px; border-bottom:1px solid var(--line); background:rgba(73,189,245,.055); text-align:left; }
.arcomots-hint small { color:var(--blue); font-size:10px; font-weight:900; letter-spacing:.14em; }
.arcomots-hint strong { font-size:17px; }
.arcomots-hint span { color:var(--muted); font-size:12px; }
.arcomot-board { display:grid; justify-content:center; gap:7px; margin:0 auto 22px; }
.arcomot-row { display:flex; justify-content:center; gap:7px; }
.arcomot-cell { width:clamp(34px,6vw,56px); height:clamp(34px,6vw,56px); display:grid; place-items:center; border:1px solid #29445c; border-radius:9px; background:#0a1726; color:#eef4f8; font-family:var(--font-display); font-size:clamp(20px,3.4vw,32px); font-weight:400; box-shadow:inset 0 1px rgba(255,255,255,.025); }
.arcomot-cell.given { border-color:rgba(73,189,245,.75); background:rgba(73,189,245,.11); color:var(--blue); }
#arcoMotsForm { max-width:620px; margin-inline:auto; }
#arcoMotsForm label { text-align:left; }
.arcomots-entry { display:grid; grid-template-columns:1fr auto; gap:10px; }
.arcomots-entry input { min-width:0; height:48px; border:1px solid var(--line); border-radius:9px; padding:0 16px; background:#071422; color:#fff; font-size:21px; font-weight:850; letter-spacing:.12em; text-transform:uppercase; }
.arcomots-keyboard { display:grid; gap:6px; margin:18px auto 4px; }
.arcomots-keyboard > div { display:flex; justify-content:center; gap:5px; }
.arcomots-keyboard button { min-width:34px; height:42px; border:1px solid #32495d; border-radius:7px; padding:0 7px; background:#182a3d; color:#e8f0f5; cursor:pointer; font-size:12px; font-weight:850; }
.arcomots-keyboard button:hover { border-color:var(--blue); }
.arcomots-keyboard button.wide-key { min-width:82px; }
.arcomots-skip { margin-top:16px; color:var(--muted); }
.arcomots-final-score { min-width:150px; display:grid; place-items:center; padding:15px; border:1px solid rgba(217,164,65,.55); border-radius:14px; background:rgba(217,164,65,.08); color:var(--gold); font-family:var(--font-display); font-size:38px; }
.arcomots-final-score small { font-family:var(--font-ui); font-size:8px; letter-spacing:.13em; }
.arcomots-results { max-width:800px; margin-inline:auto; text-align:center; }
.arcomots-result-list { display:grid; gap:9px; margin-bottom:24px; text-align:left; }
.arcomots-result-list article { display:grid; grid-template-columns:40px 1fr auto; align-items:center; gap:14px; padding:13px 16px; border:1px solid var(--line); border-radius:10px; background:rgba(4,13,22,.55); }
.arcomots-result-list article > span { width:31px; height:31px; display:grid; place-items:center; border-radius:50%; background:#24364a; font-size:11px; font-weight:900; }
.arcomots-result-list .solved { border-color:rgba(49,183,133,.42); }
.arcomots-result-list .solved > span { background:#177153; }
.arcomots-result-list .missed { opacity:.72; }
.arcomots-result-list small { color:var(--muted); }
@keyframes arcomots-pulse { 50% { box-shadow:0 0 22px rgba(255,107,117,.24); } }
.arcomots-mode-badge { min-width:190px; display:inline-flex; align-items:center; justify-content:center; padding:13px 19px; border:1px solid currentColor; border-radius:12px; font-size:14px; font-weight:950; letter-spacing:.11em; line-height:1; text-align:center; box-shadow:0 10px 28px rgba(0,0,0,.18); }
.arcomots-mode-badge:is(button) { flex-direction:column; gap:6px; cursor:pointer; font-family:inherit; }
.arcomots-mode-badge small { font-size:7px; letter-spacing:.12em; opacity:.72; }
.arcomots-mode-badge.relax { color:#66e8ad; background:rgba(49,183,133,.13); }
.arcomots-mode-badge.competitive { color:#ff7b85; background:rgba(224,47,64,.15); animation:arcomots-mode-live 1.8s ease-in-out infinite; }
.arcomots-finish-badges { display:flex; align-items:stretch; gap:10px; }
@keyframes arcomots-mode-live { 50% { box-shadow:0 0 24px rgba(224,47,64,.25); } }
.competitive-arcomots { margin-bottom:22px; border-color:rgba(217,164,65,.4); background:radial-gradient(circle at 90% 15%,rgba(217,164,65,.12),transparent 32%),linear-gradient(135deg,#17283a,#0a1522 72%); }
.competitive-arcomots.idle { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.arcomots-points-form { display:flex; align-items:flex-end; gap:12px; }
.arcomots-points-form fieldset { display:flex; gap:12px; margin:0; padding:14px 16px 16px; border:1px solid rgba(217,164,65,.38); border-radius:12px; }
.arcomots-points-form legend { padding:0 8px; color:var(--gold); font-size:12px; font-weight:950; letter-spacing:.1em; }
.arcomots-points-form label { margin:0; color:#b9cada; font-size:11px; font-weight:850; text-align:center; }
.arcomots-points-form input { width:72px; height:46px; margin-top:7px; padding:0 7px; border:1px solid #31506a; border-radius:8px; background:#071422; color:#fff2d2; font-size:16px; font-weight:950; text-align:center; }
.arcomots-points-form .button { white-space:nowrap; }
.arcomots-points-actions { display:flex; align-items:stretch; gap:8px; }
.competitive-arcomots h2 { margin:5px 0 8px; font-size:clamp(21px,3vw,30px); }
.competitive-arcomots p { margin:0; color:#b7c7d4; line-height:1.65; }
.competitive-arcomots > header { display:flex; align-items:flex-start; justify-content:space-between; gap:22px; padding-bottom:18px; border-bottom:1px solid var(--line-soft); }
.competition-clock,.competitive-game-head time { min-width:128px; padding:13px 17px; border:1px solid rgba(217,164,65,.55); border-radius:12px; background:rgba(4,12,20,.62); color:var(--gold-light); font-family:var(--font-display); font-size:31px; font-variant-numeric:tabular-nums; text-align:center; }
.competition-clock.urgent,.competitive-game-head time.urgent { border-color:rgba(255,107,117,.7); color:#ff8d95; animation:arcomots-pulse 1s infinite; }
.competition-rules { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0; }
.competition-rules span { display:flex; align-items:center; gap:7px; padding:8px 11px; border:1px solid rgba(217,164,65,.25); border-radius:20px; background:rgba(217,164,65,.06); color:#c9d4dd; font-size:11px; }
.competition-rules b { color:var(--gold); }
.competitive-summary { display:flex; flex-wrap:wrap; gap:10px 28px; margin-bottom:18px; color:var(--muted); font-size:13px; }
.competitive-summary strong { margin-right:5px; color:var(--cream); font-size:18px; }
.competitive-arcomots > .button,.competitive-own-result { margin:4px 0 18px; }
.competitive-own-result { width:fit-content; display:flex; align-items:center; gap:13px; padding:12px 16px; border-left:3px solid var(--green); background:rgba(75,224,160,.07); }
.competitive-own-result strong,.competitive-own-result span { display:block; }
.competitive-own-result strong { color:var(--green); font-size:20px; }
.competitive-own-result span { color:#b7c7d4; font-size:12px; }
.competitive-arcomots details { margin-top:16px; border-top:1px solid var(--line-soft); padding-top:15px; }
.competitive-arcomots summary { color:var(--gold-light); cursor:pointer; font-size:12px; font-weight:850; letter-spacing:.06em; text-transform:uppercase; }
.competitive-leaderboard { display:grid; gap:7px; margin-top:14px; }
.competitive-leaderboard > div { display:grid; grid-template-columns:42px minmax(0,1fr) auto auto; align-items:center; gap:12px; padding:10px 12px; border-radius:9px; background:rgba(4,12,20,.5); }
.competitive-leaderboard span { color:var(--gold); font-family:var(--font-display); }
.competitive-leaderboard small { color:var(--muted); }
.competitive-leaderboard b { min-width:50px; color:var(--gold-light); text-align:right; }
.competitive-admin-actions { display:flex; justify-content:flex-end; margin-top:18px; }
.competitive-game-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:18px; }
.competitive-game-head h2 { margin:5px 0 0; }
.competitive-finish { padding:10px 0 24px; text-align:center; }
.competitive-finish h2 { margin:7px 0 12px; }
.competitive-finish > strong { display:block; color:var(--gold); font-family:var(--font-display); font-size:48px; font-weight:400; }
.competitive-finish > p:last-child { color:var(--muted); line-height:1.65; }
.arcomots-history { margin-top:22px; }
.arcomots-history .section-heading { margin-bottom:10px; }
.arcomots-history > details { border-top:1px solid var(--line-soft); }
.arcomots-history > details > summary { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:15px 4px; color:var(--cream); cursor:pointer; }
.arcomots-history summary > span { display:grid; gap:3px; }
.arcomots-history summary small { color:var(--muted); font-size:10px; font-weight:500; }
.arcomots-history summary > b { color:var(--blue); font-size:11px; }
.arcomots-history .competitive-leaderboard { margin-bottom:17px; }

/* Fall Guys — one shared lobby, with admin-recorded eliminations by round. */
.modal.fall-guys-modal { width:min(96vw,1120px); }
.fall-guys-hero { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; padding:8px 0 22px; border-bottom:1px solid var(--line-soft); }
.fall-guys-hero h2 { margin:5px 0 8px; font-size:clamp(28px,4vw,48px); }
.fall-guys-hero p:last-child { margin:0; color:var(--muted); }
.fall-guys-round-number { min-width:130px; display:grid; place-items:center; padding:14px; border:1px solid rgba(73,189,245,.45); border-radius:14px; background:radial-gradient(circle,rgba(73,189,245,.16),transparent 68%); }
.fall-guys-round-number small { color:var(--blue); font-size:9px; font-weight:950; letter-spacing:.1em; }
.fall-guys-round-number strong { color:var(--cream); font-family:var(--font-display); font-size:44px; font-weight:400; }
.fall-guys-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:20px 0; }
.fall-guys-stats article { display:grid; gap:3px; padding:15px; border:1px solid var(--line-soft); border-radius:11px; background:rgba(4,12,20,.42); text-align:center; }
.fall-guys-stats strong { color:var(--gold-light); font-family:var(--font-display); font-size:31px; font-weight:400; }
.fall-guys-stats span { color:var(--muted); font-size:10px; font-weight:850; text-transform:uppercase; }
.fall-guys-admin-note,.fall-guys-live-note { display:grid; gap:4px; margin:18px 0; padding:13px 15px; border-left:3px solid var(--gold); background:rgba(217,164,65,.08); color:var(--cream); }
.fall-guys-admin-note span,.fall-guys-live-note { color:var(--muted); font-size:12px; }
.fall-guys-survivors > header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:20px 0 12px; }
.fall-guys-survivors h3 { margin:0; }
#fallGuysSelectionCount { color:var(--red); font-size:11px; font-weight:900; text-transform:uppercase; }
.fall-guys-player-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(155px,1fr)); gap:8px; }
.fall-guys-player-grid button,.fall-guys-player-grid article { min-height:82px; display:grid; grid-template-columns:34px minmax(0,1fr); align-items:center; gap:2px 9px; padding:10px; border:1px solid var(--line); border-radius:10px; background:#0b1a2a; color:var(--cream); text-align:left; }
.fall-guys-player-grid button { cursor:pointer; }
.fall-guys-player-grid button:hover { border-color:var(--gold); }
.fall-guys-player-grid button.selected { border-color:var(--red); background:rgba(224,47,64,.14); box-shadow:inset 0 0 0 1px rgba(224,47,64,.35); }
.fall-guys-player-grid button > span,.fall-guys-player-grid article > span { grid-row:1 / 3; width:34px; height:34px; display:grid; place-items:center; border-radius:50%; background:rgba(73,189,245,.14); color:var(--blue); font-weight:950; }
.fall-guys-player-grid strong { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.fall-guys-player-grid small { color:var(--green); font-size:8px; font-weight:950; letter-spacing:.08em; }
.fall-guys-player-grid .selected small { color:#ff8a94; font-size:0; }
.fall-guys-player-grid .selected small::before { content:"SERA ÉLIMINÉ"; font-size:8px; }
.fall-guys-actions { position:sticky; z-index:2; bottom:-31px; display:flex; justify-content:flex-end; gap:9px; margin:22px -31px -31px; padding:16px 31px; border-top:1px solid var(--line); background:rgba(8,19,31,.96); backdrop-filter:blur(8px); }
.fall-guys-history { margin-top:22px; border-top:1px solid var(--line-soft); padding-top:16px; }
.fall-guys-history summary { color:var(--gold-light); cursor:pointer; font-size:12px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
.fall-guys-rounds { display:grid; gap:8px; margin-top:12px; }
.fall-guys-rounds article { display:grid; grid-template-columns:90px 1fr; gap:12px; padding:11px 13px; border:1px solid var(--line-soft); border-radius:9px; background:rgba(4,12,20,.4); }
.fall-guys-rounds article > span { color:var(--blue); font-size:9px; font-weight:950; letter-spacing:.08em; }
.fall-guys-rounds article > div { display:flex; flex-wrap:wrap; gap:6px; }
.fall-guys-rounds strong { padding:4px 7px; border-radius:5px; background:rgba(224,47,64,.1); color:#e7bac0; font-size:10px; }

/* Admin preview controls. */
.visibility-list { display:grid; gap:9px; }
.visibility-list article { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:15px 17px; border:1px solid var(--line-soft); border-radius:11px; background:rgba(4,12,20,.35); }
.visibility-list article.dragging { opacity:.45; border-color:var(--blue); }
.visibility-drag { width:36px; height:42px; flex:0 0 36px; border:1px dashed var(--line); border-radius:8px; background:rgba(73,189,245,.04); color:var(--muted); cursor:grab; font-size:20px; }
.visibility-drag:active { cursor:grabbing; }
.visibility-copy { min-width:0; flex:1; }
.visibility-position { display:inline-grid; width:28px; margin-right:9px; color:var(--blue); font-family:var(--font-display); font-weight:400; }
.visibility-order-actions { display:flex; gap:5px; }
.visibility-order-actions .small-button { min-width:34px; min-height:34px; padding:5px; font-size:15px; }
.visibility-list strong { color:var(--cream); font-size:15px; }
.visibility-list p { margin:4px 0 0; color:var(--muted); font-size:11px; }
.visibility-toggle { min-width:126px; display:flex; align-items:center; justify-content:flex-start; gap:9px; padding:8px 10px; border:1px solid rgba(224,47,64,.4); border-radius:20px; background:rgba(224,47,64,.08); color:#ff949d; cursor:pointer; }
.visibility-toggle > span { width:27px; height:15px; position:relative; border-radius:12px; background:#5c2931; }
.visibility-toggle > span::after { content:""; position:absolute; left:2px; top:2px; width:11px; height:11px; border-radius:50%; background:#ff7883; transition:transform .18s; }
.visibility-toggle b { font-size:9px; letter-spacing:.08em; }
.visibility-toggle.active { border-color:rgba(75,224,160,.45); background:rgba(75,224,160,.07); color:var(--green); }
.visibility-toggle.active > span { background:#246a52; }
.visibility-toggle.active > span::after { background:var(--green); transform:translateX(12px); }
.visibility-note { margin:18px 0 0; color:var(--muted); font-size:11px; line-height:1.6; }
.preview-locked { max-width:680px; margin:8vh auto; padding:50px; text-align:center; }
.preview-locked h2 { font-size:clamp(30px,5vw,54px); }

/* First-login guided tour. */
.tour-backdrop { position:fixed; inset:0; z-index:190; background:rgba(2,7,12,.72); backdrop-filter:blur(2px); }
.tour-bubble { position:fixed; z-index:205; width:min(360px,calc(100vw - 28px)); padding:22px; border:1px solid rgba(217,164,65,.62); border-radius:16px; background:linear-gradient(145deg,#172a3e,#0a1624); box-shadow:0 24px 70px #000b; }
.tour-bubble h2 { margin:6px 0 10px; color:var(--cream); font-size:21px; }
.tour-bubble > p:not(.kicker) { margin:0; color:#bdcbd7; font-size:14px; line-height:1.65; }
.tour-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:20px; }
.tour-actions > div { display:flex; gap:8px; }
.tour-actions .button { min-height:39px; padding:8px 12px; font-size:10px; }
.tour-progress { display:flex; gap:5px; margin-top:18px; }
.tour-progress i { height:3px; flex:1; border-radius:2px; background:#263c50; }
.tour-progress i.active { background:var(--gold); }
.tour-active .sidebar,.tour-active .topbar { z-index:202; }
.tour-highlight { position:relative !important; z-index:204 !important; border-radius:12px !important; box-shadow:0 0 0 3px var(--gold),0 0 30px rgba(217,164,65,.7) !important; }

@media(max-width:700px) {
  .fall-guys-hero { flex-direction:column; }
  .fall-guys-round-number { width:100%; }
  .fall-guys-stats { grid-template-columns:1fr; }
  .fall-guys-player-grid { grid-template-columns:1fr 1fr; }
  .fall-guys-actions { align-items:stretch; flex-direction:column; }
  .visibility-list article { align-items:flex-start; flex-direction:column; }
  .visibility-list .visibility-drag { display:none; }
  .visibility-list .visibility-order-actions { align-self:flex-end; }
  .visibility-list .visibility-toggle { width:100%; justify-content:center; }
  .competitive-arcomots.idle,.competitive-arcomots > header,.competitive-game-head { align-items:stretch; flex-direction:column; }
  .competitive-arcomots.idle .button { width:100%; }
  .arcomots-points-form { align-items:stretch; flex-direction:column; }
  .arcomots-points-form fieldset { display:grid; grid-template-columns:repeat(5,1fr); }
  .arcomots-points-form input { width:100%; }
  .arcomots-points-actions { flex-direction:column; }
  .competition-clock,.competitive-game-head time { width:100%; }
  .arcomots-mode-badge { width:100%; }
  .arcomots-finish-badges { width:100%; flex-direction:column; }
  .competitive-leaderboard > div { grid-template-columns:34px minmax(0,1fr) auto; }
  .competitive-leaderboard small { grid-column:2; }
  .competitive-leaderboard b { grid-column:3; grid-row:1 / 3; }
  .arcomots-welcome { grid-template-columns:1fr; min-height:0; padding:24px 18px; }
  .arcomots-mark { grid-template-columns:repeat(4,minmax(48px,74px)); gap:5px; transform:none; }
  .arcomots-welcome h2 { font-size:34px; }
  .arcomots-stats { grid-template-columns:1fr; }
  .arcomots-game-head { align-items:flex-start; flex-direction:column; }
  .arcomots-game-data { width:100%; }
  .arcomots-game-data > span,.arcomots-game-data time { flex:1; }
  .arcomots-game { padding:18px 10px; }
  .arcomots-hint { margin:-18px -10px 20px; padding:16px; }
  .arcomot-row { gap:4px; }
  .arcomot-cell { width:min(10.5vw,45px); height:min(10.5vw,45px); border-radius:6px; font-size:22px; }
  .arcomots-entry { grid-template-columns:1fr; }
  .arcomots-keyboard button { min-width:0; flex:1; height:39px; padding:0 2px; font-size:11px; }
  .arcomots-keyboard button.wide-key { flex:0 1 110px; }
  .arcomots-result-list article { grid-template-columns:34px 1fr; }
  .arcomots-result-list small { grid-column:2; }
  .tour-active.tour-nav-open .sidebar { z-index:202; transform:translateX(0); }
  .tour-bubble { top:auto !important; bottom:14px !important; left:14px !important; right:14px !important; width:auto !important; }
}
