:root {
    color-scheme: dark;
    --bg: #101116;
    --surface: #191a22;
    --surface-2: #21232d;
    --surface-3: #2b2d39;
    --text: #f7f7fb;
    --muted: #a8abba;
    --line: #343643;
    --brand: #e06a75;
    --brand-deep: #c95662;
    --lime: #e06a75;
    --lime-text: #ffffff;
    --red: #ff5570;
    --green: #63d59c;
    --shadow: 0 20px 60px rgba(0, 0, 0, .28);
    --radius: 20px;
    --radius-sm: 12px;
    --shell: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.13; letter-spacing: -.035em; }
h1 { font-size: clamp(2rem, 5vw, 4.3rem); margin-bottom: 18px; }
h2 { font-size: clamp(1.45rem, 3vw, 2.25rem); }
h3 { font-size: 1.15rem; }

.shell { width: min(calc(100% - 36px), var(--shell)); margin-inline: auto; }
.shell.narrow { max-width: 520px; }
.shell.medium { max-width: 900px; }
.site-header { position: sticky; z-index: 50; top: 0; background: color-mix(in srgb, var(--surface) 90%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-logo { width: auto; height: 38px; object-fit: contain; flex: 0 0 auto; }
.main-nav { display: flex; gap: 4px; margin-right: auto; }
.main-nav a { padding: 9px 11px; border-radius: 10px; color: var(--muted); font-size: .9rem; font-weight: 650; }
.main-nav a:hover, .main-nav a.active { color: var(--text); background: var(--surface-2); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nav-dropdown { position: relative; color: var(--muted); }
.nav-dropdown summary { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 9px 11px; border-radius: 10px; cursor: pointer; font-size: .9rem; font-weight: 650; list-style: none; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary:hover, .nav-dropdown.active > summary, .nav-dropdown[open] > summary { color: var(--text); background: var(--surface-2); }
.nav-dropdown summary span { transition: transform .16s ease; }
.nav-dropdown[open] summary span { transform: rotate(180deg); }
.nav-dropdown-menu { position: absolute; z-index: 70; top: calc(100% + 9px); left: 0; min-width: 190px; display: grid; gap: 3px; padding: 8px; border: 1px solid var(--line); border-radius: 8px 16px 8px 16px; background: var(--surface); box-shadow: var(--shadow); }
.nav-dropdown-menu a { white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.header-player-search { position: relative; width: 205px; }
.header-player-search label { display: block; }
.header-player-search input, .app-body .header-player-search input { width: 100%; min-height: 39px; padding: 8px 12px 8px 34px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: var(--surface-2); color: var(--text); font-size: .78rem; }
.header-player-search label::before { content: "⌕"; position: absolute; left: 11px; top: 7px; z-index: 1; color: var(--muted); font-size: 1rem; }
.header-player-search input:focus { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 10%, transparent); }
.player-search-results { position: absolute; z-index: 80; top: calc(100% + 8px); right: 0; width: min(340px, calc(100vw - 36px)); overflow: hidden; padding: 6px; border: 1px solid var(--line); border-radius: 8px 16px 8px 16px; background: var(--surface); box-shadow: var(--shadow); }
.player-search-result { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 10px; padding: 9px; border-radius: 8px; }
.player-search-result:hover { background: var(--surface-2); }
.player-search-result .avatar { width: 38px; height: 38px; }
.player-search-result strong, .player-search-result small { display: block; }
.player-search-result strong { font-size: .82rem; }
.player-search-result small { color: var(--muted); font-size: .68rem; }
.player-search-empty { margin: 0; padding: 12px; color: var(--muted); font-size: .75rem; }
.mobile-player-search { display: none; }
.language-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.language-switch a { min-height: 28px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 7px; color: var(--muted); font-size: .7rem; font-weight: 800; }
.language-flag { width: 18px; height: 12px; display: inline-block; flex: 0 0 auto; overflow: hidden; border: 1px solid rgba(23, 24, 33, .42); border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.flag-de { background: linear-gradient(to bottom, #161616 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66% 100%); }
.flag-gb { background: linear-gradient(33deg, transparent 43%, #fff 43% 47%, #c8102e 47% 53%, #fff 53% 57%, transparent 57%), linear-gradient(-33deg, transparent 43%, #fff 43% 47%, #c8102e 47% 53%, #fff 53% 57%, transparent 57%), linear-gradient(90deg, transparent 38%, #fff 38% 44%, #c8102e 44% 56%, #fff 56% 62%, transparent 62%), linear-gradient(0deg, transparent 33%, #fff 33% 40%, #c8102e 40% 60%, #fff 60% 67%, transparent 67%), #012169; }
html[data-theme="dark"] .language-flag, .landing-body .language-flag { border-color: rgba(255, 255, 255, .72); box-shadow: 0 0 0 1px rgba(0,0,0,.32), 0 1px 3px rgba(0,0,0,.3); }
.language-switch a.selected { color: white; background: var(--brand); }
.icon-button, .notification-button { border: 1px solid var(--line); background: var(--surface); color: var(--text); width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; position: relative; cursor: pointer; }
.notification-count { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; background: var(--red); color: white; font-size: .7rem; font-weight: 800; border: 2px solid var(--surface); }
.user-chip { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 750; }
.user-chip span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); }
.inline-form { display: inline; }
.mobile-menu-button { display: none; margin-left: auto; }

.button, button.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 19px;
    border: 1px solid color-mix(in srgb, var(--brand) 72%, var(--line)); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--brand) 10%, var(--surface)); color: var(--text); box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 10%, transparent); font-weight: 750; cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.button:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 17%, var(--surface)); box-shadow: 0 10px 26px color-mix(in srgb, var(--brand) 16%, transparent); transform: translateY(-1px); }
.button.secondary { border-color: color-mix(in srgb, var(--brand) 48%, var(--line)); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); color: var(--text); box-shadow: 0 7px 18px color-mix(in srgb, var(--brand) 7%, transparent); }
.button.secondary:hover { border-color: color-mix(in srgb, var(--brand) 76%, var(--line)); background: color-mix(in srgb, var(--brand) 12%, var(--surface)); box-shadow: 0 9px 22px color-mix(in srgb, var(--brand) 11%, transparent); }
.button.large { min-height: 54px; padding-inline: 25px; }
.button.small { min-height: 38px; padding: 7px 12px; border-radius: 10px; font-size: .82rem; }
.button.full { width: 100%; }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.text-button { border: 0; padding: 7px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 650; }
.text-button:hover { color: var(--text); }
.text-button.danger { color: var(--red); }
.header-login, .header-logout { min-height: 39px; display: inline-flex; align-items: center; padding: 7px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); white-space: nowrap; }
.header-login:hover, .header-logout:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); background: var(--surface-2); color: var(--text); }

.eyebrow { display: block; margin-bottom: 8px; color: var(--brand); font-size: .72rem; line-height: 1.2; letter-spacing: .16em; font-weight: 850; }
.hero { position: relative; overflow: hidden; background: #11151a; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.hero::before { content: ""; position: absolute; inset: -20% -15% auto auto; width: 760px; height: 760px; border-radius: 50%; background: radial-gradient(circle, rgba(220, 102, 113, .2), transparent 66%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto auto -230px -170px; width: 520px; height: 520px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255, 255, 255, .018), 0 0 0 140px rgba(255, 255, 255, .018); pointer-events: none; }
.hero-field-lines { position: absolute; inset: 0; pointer-events: none; opacity: .5; background: linear-gradient(115deg, transparent 0 47%, rgba(255,255,255,.035) 47.1% 47.25%, transparent 47.35%), repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 94px); }
.hero-grid { position: relative; z-index: 1; min-height: 710px; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(450px, .97fr); align-items: center; gap: clamp(45px, 7vw, 90px); padding-block: 82px 96px; }
.hero-copy { max-width: 680px; }
.hero-copy h1 { margin-bottom: 24px; max-width: 720px; font-size: clamp(3.15rem, 6.3vw, 5.45rem); font-weight: 900; letter-spacing: -.065em; text-wrap: balance; }
.hero-copy > p { max-width: 620px; margin-bottom: 28px; color: #bdc5cc; font-size: 1.1rem; line-height: 1.7; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 17px; color: #e27680; }
.hero-kicker::before { content: ""; width: 34px; height: 3px; background: #e27680; transform: skewX(-25deg); }
.hero-actions, .action-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.hero .button { border-color: rgba(220, 102, 113, .82); background: rgba(220, 102, 113, .12); color: #fff; border-radius: 4px 13px 4px 13px; box-shadow: 7px 7px 0 rgba(220, 102, 113, .1); }
.hero .button:hover { border-color: #e47f88; background: rgba(220, 102, 113, .2); box-shadow: 9px 9px 0 rgba(220, 102, 113, .15); }
.hero .button.secondary { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .05); color: #fff; box-shadow: none; }
.hero .button.secondary:hover { background: rgba(255, 255, 255, .11); }
.trust-line { display: flex; flex-wrap: wrap; gap: 0; margin-top: 42px; border-top: 1px solid rgba(255,255,255,.13); color: #929da6; font-size: .73rem; text-transform: uppercase; letter-spacing: .04em; }
.trust-line span { min-width: 30%; padding: 18px 22px 0 0; }
.trust-line b { display: block; margin-bottom: 2px; color: #fff; font-size: .93rem; letter-spacing: -.01em; }
.hero-visual { position: relative; min-height: 500px; display: grid; place-items: center; isolation: isolate; }
.hero-visual::before { content: ""; position: absolute; inset: 35px 18px 45px 50px; z-index: -1; border: 1px solid rgba(220, 102, 113, .38); transform: skew(-6deg) rotate(-3deg); }
.hero-visual::after { content: ""; position: absolute; width: 245px; height: 245px; z-index: -2; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.match-console { width: min(100%, 480px); overflow: hidden; border: 1px solid rgba(255, 255, 255, .16); border-radius: 6px 28px 6px 28px; background: rgba(26, 31, 37, .92); box-shadow: 0 30px 80px rgba(0, 0, 0, .42); backdrop-filter: blur(18px); transform: rotate(1.5deg); }
.match-console-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 25px 20px; border-bottom: 1px solid rgba(255,255,255,.1); background: linear-gradient(110deg, rgba(220,102,113,.12), transparent 55%); }
.match-console-top strong { display: block; margin-top: 4px; font-size: 1.35rem; letter-spacing: -.035em; }
.console-label { color: #99a3ab; font-size: .67rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.live-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid rgba(220,102,113,.3); border-radius: 999px; color: #e27680; background: rgba(220,102,113,.1); font-size: .65rem; font-weight: 900; letter-spacing: .08em; }
.live-badge i, .match-console-foot i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #e27680; box-shadow: 0 0 0 4px rgba(220,102,113,.14); }
.squad-list { padding: 8px 12px; }
.squad-player { display: grid; grid-template-columns: 24px 46px 1fr auto; align-items: center; gap: 11px; padding: 13px; border-bottom: 1px solid rgba(255,255,255,.08); }
.squad-player:last-child { border-bottom: 0; }
.squad-player.captain { background: rgba(255,255,255,.025); }
.squad-player strong, .squad-player small { display: block; }
.squad-player strong { font-size: .88rem; }
.squad-player small { margin-top: 2px; color: #8d98a1; font-size: .72rem; }
.squad-number { color: #59636b; font-size: .63rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.player-state { padding: 5px 7px; border-radius: 5px; background: #d85f6b; color: #fff; font-size: .62rem; font-weight: 900; }
.status-check { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid rgba(220,102,113,.36); border-radius: 50%; color: #e27680; font-size: .75rem; }
.match-console-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 25px; border-top: 1px solid rgba(255,255,255,.1); background: #0b0e11; }
.match-console-foot span { display: flex; align-items: center; gap: 9px; color: #909aa2; font-size: .65rem; }
.match-console-foot strong { color: #e27680; font-size: .69rem; letter-spacing: .08em; }
.rating-float { position: absolute; right: -15px; bottom: 18px; z-index: 2; padding: 13px 18px; border-radius: 4px 13px 4px 13px; background: #fff; color: #15191e; box-shadow: 0 18px 40px rgba(0,0,0,.28); transform: rotate(-2deg); }
.rating-float span, .rating-float small { display: block; }
.rating-float span { color: #d45b67; font-size: .92rem; letter-spacing: .08em; }
.rating-float small { margin-top: 3px; font-weight: 750; }
.player-card small, .request-row small, .connection-head small { display: block; color: var(--muted); }
.avatar { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; font-weight: 850; }
.avatar.purple { background: color-mix(in srgb, var(--brand) 17%, var(--surface)); color: var(--brand); }
.avatar.lime { background: var(--lime); color: var(--lime-text); }
.avatar.orange { background: #ff9e45; color: #321600; }
.live-dot { justify-self: end; color: var(--green); font-size: .66rem; font-weight: 900; letter-spacing: .08em; }
.live-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; background: currentColor; border-radius: 50%; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 13%, transparent); }
.live-dot.standalone { display: inline-block; margin-bottom: 8px; }

.section { padding-block: 96px; }
.section-heading { margin-bottom: 34px; }
.process-section { background: var(--bg); }
.process-heading { display: grid; grid-template-columns: 1fr minmax(320px, .7fr); align-items: end; gap: 50px; }
.process-heading h2 { max-width: 650px; margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900; }
.process-heading > p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step-card { position: relative; min-height: 270px; overflow: hidden; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: 4px 22px 4px 22px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.step-card::after { content: ""; position: absolute; right: -38px; bottom: -48px; width: 110px; height: 110px; border: 18px solid color-mix(in srgb, var(--brand) 6%, transparent); border-radius: 50%; }
.step-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: var(--shadow); }
.step-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.step-number { color: var(--muted); font-size: .72rem; font-weight: 900; letter-spacing: .1em; }
.step-icon { position: relative; width: 46px; height: 46px; display: block; border-radius: 4px 13px 4px 13px; background: color-mix(in srgb, var(--brand) 10%, var(--surface)); color: var(--brand); }
.step-icon::before, .step-icon::after { content: ""; position: absolute; }
.step-icon-profile::before { width: 11px; height: 11px; left: 18px; top: 10px; border: 2px solid currentColor; border-radius: 50%; }
.step-icon-profile::after { width: 22px; height: 10px; left: 12px; bottom: 9px; border: 2px solid currentColor; border-radius: 14px 14px 3px 3px; }
.step-icon-search::before { width: 18px; height: 18px; left: 10px; top: 9px; border: 2px solid currentColor; border-radius: 50%; }
.step-icon-search::after { width: 12px; height: 2px; right: 8px; bottom: 11px; background: currentColor; transform: rotate(45deg); transform-origin: right center; }
.step-icon-connect::before { width: 17px; height: 12px; left: 8px; top: 13px; border: 2px solid currentColor; border-radius: 3px; box-shadow: 12px 8px 0 -1px color-mix(in srgb, var(--brand) 10%, var(--surface)), 12px 8px 0 1px currentColor; }
.step-icon-connect::after { width: 8px; height: 2px; left: 19px; top: 23px; background: currentColor; transform: rotate(-35deg); }
.step-icon-rate::before { content: "★"; inset: 0; display: grid; place-items: center; font-size: 22px; }
.step-card h3 { margin: 0 0 10px; font-size: 1.18rem; }
.step-card p { position: relative; z-index: 1; margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.65; }
.game-modes-section { padding-top: 0; }
.mode-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mode-card { position: relative; min-height: 250px; display: flex; flex-direction: column; padding: 25px; overflow: hidden; border: 1px solid var(--line); border-radius: 5px 22px 5px 22px; background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 8%, var(--surface)), var(--surface)); }
.mode-card > span { color: var(--brand); font-size: .7rem; font-weight: 900; letter-spacing: .12em; }
.mode-card h3 { margin: 34px 0 12px; font-size: 1.7rem; }
.mode-card p { color: var(--muted); line-height: 1.65; }
.mode-card a { margin-top: auto; color: var(--brand); font-weight: 800; }
.benefit-section { background: var(--surface); border-block: 1px solid var(--line); }
.benefit-layout { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); gap: clamp(45px, 8vw, 100px); align-items: center; }
.benefit-copy h2 { max-width: 520px; margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.45rem); font-weight: 900; }
.benefit-copy p { max-width: 510px; color: var(--muted); line-height: 1.75; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--brand); font-weight: 850; }
.text-link:hover { gap: 13px; }
.benefit-grid { display: grid; gap: 10px; }
.benefit-grid article { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 4px 18px 4px 18px; background: var(--surface-2); }
.benefit-grid h3 { margin-bottom: 5px; }
.benefit-grid p { margin: 0; color: var(--muted); font-size: .86rem; }
.benefit-symbol { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 4px 14px 4px 14px; background: var(--text); color: var(--surface); font-size: 1.3rem; }
.landing-cta { padding-block: 74px; background: #cf5965; color: #fff; }
.landing-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.landing-cta .eyebrow { color: #ffd9dc; }
.landing-cta h2 { max-width: 760px; margin: 0; font-size: clamp(1.8rem, 4vw, 3.15rem); font-weight: 900; }
.landing-cta .button { flex: 0 0 auto; border-color: rgba(53, 20, 25, .72); border-radius: 4px 13px 4px 13px; background: rgba(53, 20, 25, .16); color: #fff; box-shadow: 0 8px 22px rgba(53, 20, 25, .13); }
.landing-cta .button:hover { border-color: #351419; background: rgba(53, 20, 25, .26); }
.landing-body .site-header { background: rgba(17, 21, 26, .94); color: #fff; border-bottom-color: rgba(255,255,255,.1); }
.landing-body .text-button { color: #aab2b9; }
.landing-body .header-login, .landing-body .header-logout { border-color: rgba(255,255,255,.2); color: #fff; }
.landing-body .header-login:hover, .landing-body .header-logout:hover { border-color: rgba(220,102,113,.68); background: rgba(255,255,255,.06); color: #fff; }
.landing-body .language-switch { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.06); }
.landing-body .language-switch a { color: #9ca5ad; }
.landing-body .language-switch a.selected { background: #d85f6b; color: #fff; }
.landing-body .icon-button { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff; }
.landing-body .header-actions > .button { border-color: rgba(220,102,113,.78); background: rgba(220,102,113,.11); color: #fff; }
.landing-body .site-footer { background: #11151a; color: #9ca5ad; border-top: 0; }

.page-section { padding-block: 48px 80px; min-height: 72vh; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.page-heading h1 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 9px; }
.page-heading p { margin: 0; color: var(--muted); max-width: 720px; }
.panel { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(30, 31, 64, .035); }
.section-bar { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin: 36px 0 16px; }
.panel .section-bar:first-child { margin-top: 0; }
.section-bar h2 { margin: 0; }
.count-badge { min-width: 32px; padding: 4px 9px; text-align: center; border-radius: 999px; background: var(--surface-3); color: var(--muted); font-size: .8rem; font-weight: 800; }

.auth-section { padding-block: 65px 90px; min-height: 76vh; }
.auth-card { padding: clamp(25px, 5vw, 42px); background: var(--surface); border: 1px solid var(--line); border-radius: 25px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 2.25rem; }
.auth-foot { margin: 20px 0 0; text-align: center; color: var(--muted); }
.auth-foot a { color: var(--brand); font-weight: 700; }
.center-card { text-align: center; }
.mail-icon { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 22px; background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand); font-size: 1.8rem; }
.error-code { display: block; color: var(--brand); font-size: 4rem; font-weight: 900; }
.form-stack { display: grid; gap: 17px; }
.form-stack label, .form-grid label, .search-form label, .rating-form > label { display: grid; gap: 7px; color: var(--muted); font-size: .8rem; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); color: var(--text); outline: none; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 13%, transparent); }
.check-row { grid-template-columns: auto 1fr !important; align-items: start; }
.check-row input { width: 18px; min-height: 18px; margin-top: 2px; }
.error-list { padding: 13px 15px; margin-bottom: 18px; border-radius: 12px; background: color-mix(in srgb, var(--red) 10%, var(--surface)); color: var(--red); }
.error-list p { margin: 0; }
.flash-stack { position: relative; z-index: 40; }
.flash { margin-top: 15px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.flash.success { border-color: color-mix(in srgb, var(--green) 30%, var(--line)); color: var(--green); }
.flash.error { border-color: color-mix(in srgb, var(--red) 30%, var(--line)); color: var(--red); }

.active-search-card { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; padding: 23px; margin-bottom: 20px; border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); border-radius: var(--radius); background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 9%, var(--surface)), var(--surface)); }
.active-search-card h2 { margin-bottom: 5px; }
.active-search-card p { margin: 0; color: var(--muted); }
.repeat-search-card { display: grid; grid-template-columns: minmax(200px, 1fr) auto auto; align-items: center; gap: 18px; margin-bottom: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.repeat-search-card small { display: block; margin-top: 3px; color: var(--muted); }
.repeat-search-summary { display: flex; flex-wrap: wrap; gap: 7px; }
.repeat-search-summary span { padding: 6px 9px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: .78rem; font-weight: 700; }
.search-clock { text-align: center; }
.search-clock strong { display: block; color: var(--brand); font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.search-clock small { color: var(--muted); }
.search-builder { margin-bottom: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.search-builder summary { list-style: none; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.search-builder summary::-webkit-details-marker { display: none; }
.search-builder summary small { display: block; color: var(--muted); font-weight: 400; }
.search-builder[open] summary { border-bottom: 1px solid var(--line); }
.search-form { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; align-items: end; padding: 22px; }
.search-form .wide-field { grid-column: span 4; }
.requests-panel { margin: 20px 0 34px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.requests-panel .section-bar { margin: 0 0 13px; }
.requests-panel.is-empty { background: transparent; box-shadow: none; }
.request-list { display: grid; gap: 9px; }
.request-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 13px; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.request-timer { color: var(--red); font-weight: 800; font-variant-numeric: tabular-nums; }
.empty-copy { color: var(--muted); margin: 0; }
.player-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.player-card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.player-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.player-card-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; }
.player-name { font-weight: 820; }
.player-name:hover { color: var(--brand); }
.goal-line { margin: 17px 0 8px; font-weight: 780; }
.player-note { min-height: 48px; margin: 0 0 12px; color: var(--muted); font-size: .88rem; }
.mini-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.player-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 17px 0; padding-block: 14px; border-block: 1px solid var(--line); }
.player-stats span:last-child { text-align: right; }
.player-stats strong, .player-stats small { display: block; }
.player-stats small { color: var(--muted); font-size: .72rem; }
.empty-state { padding: 55px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty-state > div { font-size: 2.2rem; }
.empty-state h3 { margin: 12px auto 20px; max-width: 500px; }

.profile-form { max-width: 850px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin-bottom: 20px; }
.form-grid .wide-field { grid-column: 1 / -1; }
.form-grid label > small { color: var(--muted); font-weight: 400; }
.profile-hero { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 22px; margin-bottom: 18px; }
.profile-avatar { width: 92px; height: 92px; display: grid; place-items: center; border-radius: 28px; background: linear-gradient(135deg, var(--brand), #9a7fff); color: white; font-size: 2rem; font-weight: 900; }
.profile-main h1 { margin-bottom: 7px; font-size: clamp(2rem, 4vw, 3.2rem); }
.profile-main p { color: var(--muted); margin-bottom: 12px; }
.profile-rating { min-width: 145px; text-align: right; }
.profile-rating strong, .profile-rating span, .profile-rating b, .profile-rating small { display: block; }
.profile-rating strong { font-size: 1.7rem; }
.profile-rating span, .profile-rating small { color: var(--muted); font-size: .74rem; }
.profile-rating b { margin-top: 7px; color: var(--green); }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, .8fr); gap: 18px; }
.profile-side { display: grid; align-content: start; gap: 18px; }
.team-image { width: 100%; max-height: 620px; object-fit: contain; border-radius: 15px; background: #0d0f14; }
.like-total { color: var(--red); font-weight: 850; }
.team-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.team-community-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.moderation-status { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; font-size: .82rem; }
.moderation-status.pending { background: color-mix(in srgb, #f5b82e 10%, var(--surface)); color: #8a6100; }
.moderation-status.rejected { background: color-mix(in srgb, var(--red) 9%, var(--surface)); color: var(--red); }
.moderation-status span { color: var(--muted); text-align: right; }
.team-placeholder { min-height: 330px; display: grid; place-content: center; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 15px; }
.team-placeholder span { font-size: 2.5rem; }
.upload-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; margin-top: 16px; }
.file-drop { display: grid; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; color: var(--text); font-weight: 700; cursor: pointer; }
.file-drop small { color: var(--muted); font-weight: 400; }
.file-drop input { min-height: auto; margin-top: 8px; padding: 0; border: 0; background: transparent; }
.detail-list { margin: 15px 0 0; }
.detail-list div { padding: 11px 0; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--muted); font-size: .72rem; }
.detail-list dd { margin: 3px 0 0; font-weight: 700; }
.community-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.community-tags span { padding: 6px 9px; border-radius: 999px; font-size: .76rem; }
.community-tags .positive { background: color-mix(in srgb, var(--green) 12%, var(--surface)); color: var(--green); }
.community-tags .negative { background: color-mix(in srgb, var(--red) 12%, var(--surface)); color: var(--red); }
.community-tags b { margin-left: 3px; }
.profile-safety { display: flex; align-items: flex-start; gap: 8px; }
.report-box { position: relative; }
.report-box > summary { list-style: none; cursor: pointer; }
.report-box > summary::-webkit-details-marker { display: none; }
.report-box > form { position: absolute; z-index: 12; right: 0; top: calc(100% + 8px); display: grid; gap: 12px; width: min(330px, calc(100vw - 40px)); padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.report-box label { display: grid; gap: 6px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.danger-button { border-color: color-mix(in srgb, var(--red) 72%, var(--line)); background: color-mix(in srgb, var(--red) 9%, var(--surface)); color: var(--red); box-shadow: 0 8px 22px color-mix(in srgb, var(--red) 8%, transparent); }
.danger-button:hover { border-color: var(--red); background: color-mix(in srgb, var(--red) 15%, var(--surface)); color: #ff8396; }

.connection-list { display: grid; gap: 14px; }
.connection-card { padding: 20px; }
.connection-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.connection-ea-id { display: grid; gap: 1px; min-width: 180px; padding: 9px 12px; text-align: left; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); color: var(--text); }
.connection-ea-id strong { font-weight: 800; }
.connection-ea-id small { color: var(--brand); font-size: .68rem; font-weight: 700; }
.rating-box { margin-top: 16px; border-top: 1px solid var(--line); }
.rating-box summary { list-style: none; display: flex; justify-content: space-between; padding-top: 15px; color: var(--brand); font-weight: 780; cursor: pointer; }
.rating-box summary::-webkit-details-marker { display: none; }
.rating-form { display: grid; gap: 16px; margin-top: 16px; padding: 18px; background: var(--surface-2); border-radius: 14px; }
.rating-form fieldset { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; border: 0; }
.rating-form legend { width: 100%; margin-bottom: 7px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.star-picker { display: inline-flex; flex-direction: row-reverse; }
.star-picker input { position: absolute; opacity: 0; pointer-events: none; }
.star-picker label { color: var(--surface-3); font-size: 2rem; cursor: pointer; }
.star-picker label:hover, .star-picker label:hover ~ label, .star-picker input:checked ~ label { color: #f5b82e; }
.choice-card { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.choice-card input { width: auto; min-height: auto; }
.locked-note { margin: 0; color: var(--muted); font-size: .77rem; }
.rated-badge { margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--green); font-weight: 700; }
.rated-badge.muted { color: var(--muted); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat-card { padding: 19px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }
.stat-card span, .stat-card strong { display: block; }
.stat-card span { color: var(--muted); text-transform: uppercase; font-size: .68rem; letter-spacing: .08em; }
.stat-card strong { margin-top: 6px; font-size: 2rem; }
.admin-page-heading { margin-bottom: 20px !important; }
.admin-section-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.admin-section-nav a { position: relative; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; min-height: 76px; padding: 15px 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.admin-section-nav a::after { content: ''; position: absolute; inset: auto 0 0; height: 3px; background: var(--brand); opacity: 0; }
.admin-section-nav a:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--brand) 48%, var(--line)); }
.admin-section-nav a.active { border-color: color-mix(in srgb, var(--brand) 68%, var(--line)); background: color-mix(in srgb, var(--brand) 8%, var(--surface)); }
.admin-section-nav a.active::after { opacity: 1; }
.admin-section-nav a > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--surface-2)); font-size: 1rem; }
.admin-section-nav strong { font-size: .93rem; }
.admin-section-nav small { justify-self: end; padding: 4px 7px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; font-size: .68rem; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.admin-section-stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 22px; }
.admin-section-stats .stat-card { padding: 16px 18px; background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--brand) 3%, var(--surface))); }
.admin-section-stats .stat-card strong { font-size: 1.55rem; }
.admin-status-value { color: var(--muted); font-size: 1.15rem !important; letter-spacing: .08em; }
.admin-status-value.live { color: var(--green); }
.admin-event-note { display: flex; align-items: center; gap: 13px; margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.admin-event-note > span { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--surface)); font-weight: 900; }
.admin-event-note p { flex: 1; margin: 0; color: var(--muted); }
.admin-nav-dropdown .nav-dropdown-menu { right: 0; left: auto; min-width: 225px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.admin-table small { display: block; color: var(--muted); }
.admin-table form { display: flex; gap: 7px; }
.admin-table select { min-width: 115px; min-height: 38px; }
.moderation-panel { margin-bottom: 18px; }
.moderation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.moderation-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); }
.moderation-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px; }
.moderation-card-head strong, .moderation-card-head small { display: block; }
.moderation-card-head small { color: var(--muted); }
.moderation-card > img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #0d0f14; }
.moderation-card > form { display: grid; gap: 10px; padding: 13px; }
.moderation-card > form > label { display: grid; gap: 6px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.moderation-reason { margin: 0; padding: 10px 13px 0; color: var(--red); font-size: .82rem; font-weight: 700; }
.onboarding-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 22px; }
.onboarding-step { display: flex; align-items: center; gap: 9px; padding: 11px 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.onboarding-step > span { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 auto; border-radius: 50%; background: var(--surface-3); font-weight: 800; }
.onboarding-step small { font-weight: 750; }
.onboarding-step.active { color: var(--purple); border-color: var(--purple); }
.onboarding-step.active > span { color: white; background: var(--purple); }
.onboarding-step.complete { color: var(--green); }
.onboarding-step.complete > span { color: white; background: var(--green); }
.field-error { display: block; margin-top: 5px; color: var(--red) !important; font-size: .76rem; font-weight: 700; }
[aria-invalid="true"] { border-color: var(--red) !important; }
.is-submitting { pointer-events: none; opacity: .72; }
.is-submitting button[aria-busy="true"]::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 7px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .65s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.upload-preview { display: grid; gap: 7px; grid-column: 1 / -1; }
.upload-preview img { width: 100%; max-height: 350px; object-fit: contain; border: 1px solid var(--line); border-radius: 13px; background: #0d0f14; }
.upload-preview small { color: var(--muted); }
.request-row.expired { opacity: .62; }
.expiry-note { color: var(--red) !important; font-weight: 700; }
.settings-section { margin-bottom: 18px; }
.password-settings { position: relative; overflow: hidden; }
.password-settings::after { content: ''; position: absolute; top: -90px; right: -70px; width: 210px; height: 210px; border: 28px solid color-mix(in srgb, var(--brand) 7%, transparent); border-radius: 50%; pointer-events: none; }
.password-settings > p { position: relative; max-width: 720px; margin: 0 0 20px; color: var(--muted); line-height: 1.65; }
.password-change-form { position: relative; max-width: 720px; }
.password-change-form .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.password-form-actions { display: flex; align-items: center; gap: 18px; }
.password-form-actions a { color: var(--muted); font-size: .83rem; font-weight: 750; }
.password-form-actions a:hover { color: var(--brand); }
.blocked-list { display: grid; }
.blocked-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.blocked-row:last-child { border-bottom: 0; }
.danger-zone { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); }
.danger-zone > p { max-width: 700px; color: var(--muted); }
.danger-zone .form-stack { max-width: 520px; }
.notice { margin: 0 0 18px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.notice.success { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); }
.notice.warning { border-color: color-mix(in srgb, #f5b82e 55%, var(--line)); }
.empty-state.compact { padding: 25px 16px; }
.empty-state.compact h3 { margin: 0; font-size: 1rem; }
.status-pill { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: var(--surface-3); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.status-pill.active { color: var(--green); }
.status-pill.suspended { color: var(--red); }
.admin-account-form { min-width: 300px; }

.site-footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.footer-inner small { display: block; margin-top: 5px; }
.footer-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px 16px; }
.footer-links a:hover, .legal-content a { color: var(--brand); text-decoration: underline; }
.legal-content { max-width: 900px; }
.legal-content .panel { padding: clamp(24px, 5vw, 48px); }
.legal-sections h2 { margin-top: 32px; font-size: 1.35rem; }
.legal-sections h2:first-child { margin-top: 0; }
.legal-content p { color: var(--muted); }
.notice-explanation { min-width: 240px; max-width: 430px; white-space: normal; }
.cf-turnstile { min-height: 65px; }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; width: min(410px, calc(100vw - 36px)); min-height: 68px; display: flex; align-items: center; gap: 13px; padding: 17px 20px; background: var(--text); color: var(--surface); border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent); border-radius: 8px 18px 8px 18px; box-shadow: 0 22px 55px rgba(0, 0, 0, .4); font-size: .98rem; font-weight: 800; line-height: 1.35; animation: toast-in .22s ease-out; }
.toast::before { content: '!'; width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: var(--brand); color: #fff; font-size: 1rem; font-weight: 900; }
@keyframes toast-in { from { transform: translateY(15px); opacity: 0; } }

@media (max-width: 1180px) {
    .main-nav { position: absolute; display: none; top: 76px; left: 18px; right: 18px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
    .main-nav.open { display: grid; }
    .main-nav .mobile-player-search { display: block; width: 100%; margin-bottom: 4px; }
    .desktop-player-search { display: none; }
    .nav-dropdown summary { width: 100%; justify-content: space-between; }
    .nav-dropdown-menu { position: static; width: 100%; margin-top: 4px; box-shadow: none; }
    .mobile-menu-button { display: grid; }
    .header-actions { margin-left: 0; }
    .user-chip { font-size: 0; }
    .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(410px, .9fr); gap: 25px; }
    .hero-copy h1 { font-size: clamp(3rem, 6vw, 4.2rem); }
    .rating-float { right: 0; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .search-form { grid-template-columns: repeat(2, 1fr); }
    .search-form .wide-field { grid-column: 1 / -1; }
    .player-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .repeat-search-card { grid-template-columns: 1fr; }
    .shell { width: min(calc(100% - 24px), var(--shell)); }
    .header-inner { min-height: 68px; gap: 8px; }
    .brand-logo { height: 30px; }
    .header-actions .text-button, .header-actions > .button, .user-chip { display: none; }
    .main-nav { top: 68px; }
    .mode-card-grid { grid-template-columns: 1fr; }
    .hero-grid { min-height: auto; grid-template-columns: 1fr; padding-block: 62px 72px; }
    .hero-copy h1 { font-size: clamp(3rem, 10vw, 4.4rem); }
    .hero-visual { min-height: 470px; }
    .process-heading, .benefit-layout { grid-template-columns: 1fr; gap: 26px; }
    .step-card { min-height: 240px; }
    .landing-cta-inner { align-items: flex-start; flex-direction: column; }
    .page-section { padding-block: 30px 60px; }
    .active-search-card { grid-template-columns: 1fr auto; }
    .active-search-card .action-row { grid-column: 1 / -1; }
    .request-row { grid-template-columns: auto 1fr auto; }
    .request-row .action-row { grid-column: 2 / -1; }
    .player-grid, .profile-layout { grid-template-columns: 1fr; }
    .profile-hero { grid-template-columns: auto 1fr; align-items: start; }
    .profile-rating { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 6px; align-items: baseline; text-align: left; }
    .profile-hero > .button { position: absolute; right: 28px; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
    .onboarding-progress { grid-template-columns: 1fr; }
    .language-switch a { padding-inline: 6px; }
    .section { padding-block: 68px; }
    .hero-copy h1 { font-size: 2.75rem; }
    .hero-copy > p { font-size: 1rem; }
    .hero-actions .button { width: 100%; }
    .trust-line { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
    .trust-line span { padding-top: 14px; }
    .hero-visual { min-height: 410px; }
    .hero-visual::before { inset: 28px 5px 35px 22px; }
    .match-console { transform: none; }
    .match-console-top { padding: 20px 17px 17px; }
    .match-console-top strong { font-size: 1.12rem; }
    .squad-list { padding-inline: 6px; }
    .squad-player { grid-template-columns: 19px 39px 1fr auto; gap: 8px; padding: 11px 8px; }
    .squad-player .avatar { width: 39px; height: 39px; border-radius: 11px; }
    .squad-player strong { font-size: .78rem; }
    .squad-player small { font-size: .63rem; }
    .match-console-foot { align-items: flex-start; flex-direction: column; padding: 14px 17px; }
    .rating-float { right: -4px; bottom: 5px; padding: 10px 13px; }
    .rating-float small { font-size: .65rem; }
    .steps-grid, .search-form, .form-grid { grid-template-columns: 1fr; }
    .step-card { min-height: 220px; }
    .benefit-grid article { align-items: flex-start; padding: 18px; }
    .form-grid .wide-field { grid-column: auto; }
    .active-search-card { grid-template-columns: 1fr; }
    .search-clock { text-align: left; }
    .player-grid { grid-template-columns: 1fr; }
    .profile-avatar { width: 65px; height: 65px; border-radius: 20px; }
    .profile-hero { padding: 18px; }
    .profile-hero > .button { position: static; grid-column: 1 / -1; }
    .profile-rating { grid-template-columns: auto 1fr; }
    .upload-form { grid-template-columns: 1fr; }
    .connection-head { grid-template-columns: auto 1fr; }
    .connection-ea-id { grid-column: 1 / -1; min-width: 0; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { display: grid; }
    .footer-links { justify-content: flex-start; }
}

/* Friendlier player interface, visually aligned with the public landing page. */
html[data-theme="dark"] .app-body {
    --bg: #11161c;
    --surface: #1a2129;
    --surface-2: #222b35;
    --surface-3: #2b3641;
    --text: #f7fafb;
    --muted: #b7c0c9;
    --line: #3b4752;
    --brand: #e06a75;
    --brand-deep: #c95662;
    --lime: #e06a75;
    --lime-text: #ffffff;
    --green: #77dda4;
    --shadow: 0 18px 46px rgba(0, 0, 0, .25);
}

.app-body {
    font-synthesis: none;
    background:
        radial-gradient(circle at 8% 4%, color-mix(in srgb, var(--brand) 7%, transparent), transparent 25rem),
        radial-gradient(circle at 92% 38%, color-mix(in srgb, var(--brand) 4%, transparent), transparent 28rem),
        var(--bg);
}
.app-body .site-header { background: var(--surface); box-shadow: 0 8px 28px rgba(15, 18, 29, .04); backdrop-filter: none; }
.app-body .site-header::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: linear-gradient(90deg, var(--brand), transparent 34%); opacity: .55; }
.app-body .main-nav a { padding: 10px 13px; border: 1px solid transparent; }
.app-body .main-nav a:hover { border-color: var(--line); }
.app-body .main-nav a.active { border-color: color-mix(in srgb, var(--brand) 28%, var(--line)); background: color-mix(in srgb, var(--brand) 10%, var(--surface)); color: var(--text); }

.app-body .page-section { padding-block: 58px 88px; }
.app-body .page-heading { position: relative; margin-bottom: 34px; padding-bottom: 20px; }
.app-body .page-heading::after { content: ""; position: absolute; bottom: 0; left: 0; width: min(165px, 35vw); height: 3px; border-radius: 999px; background: linear-gradient(90deg, var(--brand), transparent); }
.app-body .page-heading h1 { margin-bottom: 11px; font-weight: 900; letter-spacing: -.025em; }
.app-body .page-heading p { line-height: 1.7; }
.app-body .eyebrow { margin-bottom: 9px; font-size: 12px; font-weight: 800; letter-spacing: .14em; }

.app-body .interface-heading-card {
    min-height: 156px;
    display: grid;
    align-items: center;
    margin-bottom: 22px;
    padding: 27px 30px 28px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--line) 82%, var(--brand));
    border-radius: 8px 22px 8px 22px;
    background:
        linear-gradient(115deg, color-mix(in srgb, var(--brand) 9%, var(--surface)), var(--surface) 58%),
        var(--surface);
    box-shadow: 0 13px 34px rgba(0, 0, 0, .14);
}
.app-body .interface-heading-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--brand);
}
.app-body .interface-heading-card::after { display: none; }
.app-body .interface-heading-card h1 { max-width: 820px; margin-bottom: 9px; font-size: clamp(2rem, 3.6vw, 3rem); }
.app-body .interface-heading-card p { max-width: 760px; color: color-mix(in srgb, var(--text) 74%, var(--muted)); }

.app-body .interface-content-card {
    padding: 24px;
    border: 1px solid color-mix(in srgb, var(--line) 88%, var(--brand));
    border-radius: 8px 22px 8px 22px;
    background: var(--surface);
    box-shadow: 0 13px 34px rgba(0, 0, 0, .14);
}
.app-body .interface-content-card > .section-bar { margin-top: 0; }
.app-body .player-feed-card .player-card { background: var(--surface-2); box-shadow: none; }
.app-body .player-feed-card .player-card .mini-tags span { background: var(--surface-3); }
.player-filter-bar { display: grid; grid-template-columns: repeat(3, minmax(145px, 1fr)) auto auto; align-items: end; gap: 12px; margin: 0 0 14px; padding: 16px; border: 1px solid var(--line); border-radius: 7px 16px 7px 16px; background: var(--surface-2); }
.player-filter-bar label { display: grid; gap: 6px; min-width: 0; }
.player-filter-bar label > span { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.player-filter-bar select { width: 100%; }
.player-filter-bar .button { min-height: 49px; }
.filter-reset { min-height: 49px; display: inline-flex; align-items: center; justify-content: center; padding: 0 7px; color: var(--muted); font-size: .78rem; font-weight: 800; }
.filter-reset:hover { color: var(--text); }
.filter-result-copy { margin: 0 0 15px; color: var(--muted); font-size: .78rem; }
.filter-result-copy strong { color: var(--text); }
.feed-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 22px; }
.feed-pagination > span { color: var(--muted); text-align: center; font-size: .78rem; font-weight: 750; }
.feed-pagination > a:first-child { justify-self: start; }
.feed-pagination > a:last-child { justify-self: end; }

.app-body .panel,
.app-body .search-builder,
.app-body .requests-panel,
.app-body .player-card,
.app-body .connection-card,
.app-body .repeat-search-card {
    border-color: color-mix(in srgb, var(--line) 88%, var(--brand));
    border-radius: 8px 20px 8px 20px;
    box-shadow: 0 10px 32px rgba(18, 21, 35, .045);
}
html[data-theme="dark"] .app-body .panel,
html[data-theme="dark"] .app-body .search-builder,
html[data-theme="dark"] .app-body .requests-panel,
html[data-theme="dark"] .app-body .player-card,
html[data-theme="dark"] .app-body .connection-card,
html[data-theme="dark"] .app-body .repeat-search-card { box-shadow: 0 13px 34px rgba(0, 0, 0, .16); }

.app-body .button,
.app-body button.button { border-radius: 6px 13px 6px 13px; font-weight: 820; }
.app-body .button:hover,
.app-body button.button:hover { transform: none; }
.app-body .clip-card:hover { transform: none; }
html[data-theme="dark"] .app-body .button:not(.secondary):not(.danger-button) { color: var(--lime-text); }
.app-body .button.secondary { border-color: color-mix(in srgb, var(--brand) 48%, var(--line)); background: color-mix(in srgb, var(--brand) 6%, var(--surface-2)); }
.app-body .button.secondary:hover { border-color: color-mix(in srgb, var(--brand) 76%, var(--line)); background: color-mix(in srgb, var(--brand) 12%, var(--surface-2)); }
.app-body .text-button:not(.danger) { color: var(--muted); }
.app-body .text-button:not(.danger):hover { color: var(--brand); }

.app-body input,
.app-body select,
.app-body textarea { min-height: 49px; border-color: var(--line); border-radius: 8px 14px 8px 14px; background: var(--surface-2); transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.app-body select { cursor: pointer; }
.app-body input:hover,
.app-body select:hover,
.app-body textarea:hover { border-color: color-mix(in srgb, var(--brand) 32%, var(--line)); }
.app-body input:focus,
.app-body select:focus,
.app-body textarea:focus { background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 11%, transparent); }
.app-body .form-stack label,
.app-body .form-grid label,
.app-body .search-form label,
.app-body .rating-form > label { color: color-mix(in srgb, var(--text) 72%, var(--muted)); }

.app-body .active-search-card { position: relative; overflow: hidden; padding: 26px; border: 1px solid color-mix(in srgb, var(--brand) 48%, var(--line)); border-radius: 8px 22px 8px 22px; background: linear-gradient(115deg, color-mix(in srgb, var(--brand) 13%, var(--surface)), var(--surface) 58%); box-shadow: var(--shadow); }
.app-body .active-search-card::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 5px; background: var(--brand); }
.app-body .search-clock { min-width: 105px; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line)); border-radius: 6px 14px 6px 14px; background: color-mix(in srgb, var(--brand) 8%, var(--surface-2)); }
.app-body .search-builder { overflow: clip; }
.app-body .search-builder summary { padding: 23px 25px; }
.app-body .search-builder summary > span:last-child { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--brand) 11%, var(--surface-2)); color: var(--brand); }
.app-body .search-builder[open] summary > span:last-child { transform: rotate(45deg); }
.app-body .search-form { gap: 15px; padding: 25px; }
.app-body .search-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.app-body .requests-panel.is-empty { padding: 22px 24px; border-style: dashed; border-color: var(--line); background: color-mix(in srgb, var(--surface) 72%, transparent); }
.app-body .request-row { border: 1px solid color-mix(in srgb, var(--line) 75%, transparent); border-radius: 7px 15px 7px 15px; background: var(--surface-2); }
.app-body .request-timer { min-width: 62px; padding: 6px 9px; text-align: center; border-radius: 8px; background: color-mix(in srgb, var(--red) 9%, var(--surface)); }

.app-body .player-grid { gap: 18px; }
.app-body .player-card { position: relative; overflow: hidden; padding: 22px; }
.app-body .player-card::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--brand), transparent 70%); opacity: .75; }
.app-body .player-card:hover { transform: none; border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow); }
.app-body .player-name { font-weight: 800; }
.app-body .avatar { border-radius: 7px 14px 7px 14px; }
html[data-theme="dark"] .app-body .avatar.purple { background: color-mix(in srgb, var(--brand) 15%, var(--surface-2)); color: var(--brand); }
.app-body .goal-line { margin-top: 20px; }
.app-body .mini-tags span { padding: 5px 8px; border: 1px solid color-mix(in srgb, var(--line) 78%, transparent); border-radius: 7px; background: var(--surface-2); color: var(--muted); font-size: 12px; line-height: 1.25; }
.app-body .player-stats { margin-block: 19px; }
.app-body .count-badge { border: 1px solid color-mix(in srgb, var(--brand) 17%, var(--line)); background: color-mix(in srgb, var(--brand) 8%, var(--surface-3)); }

.app-body .onboarding-step { border-radius: 7px 14px 7px 14px; }
.app-body .onboarding-step.active { border-color: var(--brand); color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); }
.app-body .onboarding-step.active > span { background: var(--brand); }
html[data-theme="dark"] .app-body .onboarding-step.active > span { color: var(--lime-text); }
.app-body .notice { border-radius: 7px 15px 7px 15px; }

.app-body .profile-hero { position: relative; overflow: hidden; padding: 28px; }
.app-body .profile-hero::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 5px; background: var(--brand); }
.app-body .profile-avatar { border-radius: 8px 24px 8px 24px; box-shadow: 7px 7px 0 color-mix(in srgb, var(--brand) 13%, transparent); }
html[data-theme="dark"] .app-body .profile-avatar { background: linear-gradient(135deg, var(--brand), #7edc78); color: var(--lime-text); }
.app-body .profile-rating { padding: 12px 15px; border: 1px solid var(--line); border-radius: 7px 15px 7px 15px; background: var(--surface-2); }
.app-body .team-placeholder { border-radius: 7px 18px 7px 18px; background: color-mix(in srgb, var(--surface-2) 75%, transparent); }
.app-body .file-drop { border-radius: 7px 14px 7px 14px; background: var(--surface-2); }
.app-body .file-drop:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--surface-2)); }

.app-body .connection-card { padding: 23px; }
.app-body .connection-ea-id { border-radius: 6px 13px 6px 13px; }
.app-body .rating-box summary { padding: 17px 2px 2px; }
.app-body .rating-form { border: 1px solid var(--line); border-radius: 7px 17px 7px 17px; }
.app-body .choice-card { border-radius: 7px 12px 7px 12px; background: var(--surface); }
.app-body .empty-state { border-radius: 8px 20px 8px 20px; background: color-mix(in srgb, var(--surface) 70%, transparent); }

.connections-interface-page .connection-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
.connections-interface-page .connection-card { height: 100%; background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--brand) 3%, var(--surface))); }
.connections-interface-page .connection-ea-id { min-width: 165px; }

.profile-interface-page .detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.profile-interface-page .detail-list div { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px 14px 8px 14px; background: var(--surface-2); }
.profile-interface-page .detail-list dt { font-size: 12px; }
.profile-interface-page .detail-list dd { overflow-wrap: anywhere; }

.app-body .settings-section,
.app-body .danger-zone { padding: 28px; }
.app-body .danger-zone { background: linear-gradient(135deg, color-mix(in srgb, var(--red) 5%, var(--surface)), var(--surface)); }
.app-body .stat-card { border-radius: 7px 16px 7px 16px; }
.app-body .status-pill { border: 1px solid var(--line); }

@media (max-width: 760px) {
    .app-body .page-section { padding-block: 38px 66px; }
    .app-body .page-heading { margin-bottom: 26px; }
    .app-body .interface-heading-card { min-height: 0; padding: 22px 21px 23px; }
    .app-body .interface-content-card { padding: 20px; }
    .app-body .search-form { grid-template-columns: 1fr; }
    .player-filter-bar { grid-template-columns: 1fr; }
    .player-filter-bar .button, .filter-reset { width: 100%; }
    .app-body .panel, .app-body .player-card, .app-body .connection-card { padding: 20px; }
    .app-body .profile-rating { padding: 10px 12px; }
    .connections-interface-page .connection-list { grid-template-columns: 1fr; }
    .profile-interface-page .detail-list { grid-template-columns: 1fr; }
}

/* Clubs search */
.clubs-page { display: grid; gap: 30px; }
.active-club-listing { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 25px; border-color: color-mix(in srgb, var(--brand) 42%, var(--line)); }
.active-club-listing h2 { margin-bottom: 7px; }
.active-club-listing p { margin: 0; color: var(--muted); }
.active-club-listing .notice { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.club-listing-builder summary { padding: 23px 25px; }
.club-listing-form { display: grid; gap: 18px; padding: 25px; border-top: 1px solid var(--line); }
.club-listing-form > label, .club-form-group label, .club-common-fields label { display: grid; gap: 7px; color: color-mix(in srgb, var(--text) 72%, var(--muted)); font-size: .8rem; font-weight: 750; }
.club-type-field { max-width: 520px; }
.club-form-group, .club-common-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.club-form-group[hidden] { display: none; }
.club-position-choices { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 9px; padding: 15px; border: 1px solid var(--line); border-radius: 8px 16px 8px 16px; }
.club-position-choices legend { padding: 0 7px; color: var(--muted); font-size: .75rem; font-weight: 800; }
.club-position-choices label { display: inline-flex; grid-template-columns: auto 1fr; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 8px; background: var(--surface-2); cursor: pointer; }
.club-position-choices input { width: 17px; height: 17px; min-height: 0; margin: 0; accent-color: var(--brand); }
.club-listing-feed { display: grid; gap: 18px; }
.club-feed-heading { align-items: flex-end; }
.club-listing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.club-listing-card { min-width: 0; display: grid; gap: 17px; padding: 22px; border: 1px solid color-mix(in srgb, var(--line) 86%, var(--brand)); border-radius: 8px 22px 8px 22px; background: var(--surface); box-shadow: 0 12px 30px rgba(0,0,0,.13); }
.club-listing-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.club-listing-head h3 { margin: 0 0 3px; overflow-wrap: anywhere; }
.club-listing-head a { color: var(--muted); font-size: .76rem; }
.rating-chip { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--brand); background: var(--surface-2); font-size: .76rem; font-weight: 850; }
.club-listing-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.club-listing-details div { min-width: 0; padding: 11px; border-radius: 8px; background: var(--surface-2); }
.club-listing-details dt { color: var(--muted); font-size: .64rem; text-transform: uppercase; letter-spacing: .07em; }
.club-listing-details dd { margin: 5px 0 0; font-size: .78rem; font-weight: 750; overflow-wrap: anywhere; }
.club-listing-details dd span + span::before { content: " · "; color: var(--muted); }
.club-description { margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.65; overflow-wrap: anywhere; }
.club-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: auto; }
.club-card-actions form, .club-card-actions .button { width: 100%; }
.profile-plays { display: grid; gap: 15px; margin-top: 36px; }

@media (max-width: 760px) {
    .active-club-listing { grid-template-columns: 1fr; }
    .active-club-listing .notice { align-items: stretch; flex-direction: column; }
    .club-form-group, .club-common-fields, .club-listing-grid { grid-template-columns: 1fr; }
    .club-feed-heading { align-items: flex-start; flex-direction: column; }
    .club-listing-details { grid-template-columns: 1fr; }
    .club-card-actions { grid-template-columns: 1fr; }
}

/* Play of the Month */
.play-nav-link { display: inline-flex !important; align-items: center; gap: 7px; }
.play-nav-link small { padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: .52rem; letter-spacing: .1em; }
.play-nav-link.feature-coming-soon { color: color-mix(in srgb, var(--muted) 78%, transparent); filter: grayscale(1); }
.play-launch-card { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 50px; padding: clamp(30px, 6vw, 58px); border: 1px solid color-mix(in srgb, var(--brand) 38%, var(--line)); border-radius: 10px 30px 10px 30px; background: linear-gradient(125deg, color-mix(in srgb, var(--brand) 13%, var(--surface)), var(--surface) 62%); box-shadow: var(--shadow); }
.play-launch-card.is-tba { border-color: var(--line); filter: grayscale(.85); }
.play-launch-copy { max-width: 760px; }
.play-launch-copy h2 { margin-bottom: 16px; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -.055em; }
.play-launch-copy p { margin-bottom: 24px; color: var(--muted); line-height: 1.75; }
.play-launch-mark { width: 170px; aspect-ratio: 1; display: grid; place-content: center; border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--line)); border-radius: 50%; text-align: center; background: color-mix(in srgb, var(--brand) 8%, var(--surface-2)); transform: rotate(4deg); }
.play-launch-mark span { color: var(--brand); font-size: 1.4rem; }
.play-launch-mark strong { margin-top: 7px; font-size: 1.6rem; line-height: .9; }
.play-launch-ribbon { position: absolute; z-index: 3; top: 28px; right: -58px; width: 230px; padding: 9px 0; background: #70757c; color: #fff; box-shadow: 0 7px 18px rgba(0,0,0,.24); text-align: center; font-size: .8rem; font-weight: 950; letter-spacing: .24em; transform: rotate(34deg); }
.challenge-page { display: grid; gap: 42px; }
.feature-tba-page { position: relative; isolation: isolate; min-height: 620px; }
.feature-tba-page .challenge-gated-content { opacity: .28; filter: grayscale(1); pointer-events: none; user-select: none; }
.challenge-tba-lock { position: absolute; z-index: 20; top: clamp(190px, 26vw, 330px); left: 50%; width: min(115vw, 1300px); padding: 17px 30px; display: flex; align-items: center; justify-content: center; gap: 22px; border-block: 1px solid rgba(255,255,255,.28); background: #696e75; color: #fff; box-shadow: 0 16px 38px rgba(0,0,0,.42); text-align: center; transform: translateX(-50%) rotate(-8deg); }
.challenge-tba-lock span { font-size: clamp(2rem, 7vw, 5rem); font-weight: 1000; letter-spacing: .15em; line-height: .9; }
.challenge-tba-lock strong { font-size: clamp(.8rem, 2vw, 1.15rem); text-transform: uppercase; letter-spacing: .1em; }
.feature-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin: 18px 0; padding: 18px; border: 1px solid var(--line); border-radius: 8px 18px 8px 18px; background: var(--surface-2); }
.feature-toggle-row p { max-width: 720px; margin: 5px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.challenge-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.challenge-settings-card { gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 8px 18px 8px 18px; background: var(--surface-2); }
.challenge-settings-card h3 { margin: 5px 0 0; }
.challenge-settings-price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.finalist-counter { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.finalist-counter strong { color: var(--brand); }
.finalist-counter span { color: var(--muted); font-size: .78rem; font-weight: 700; }
.challenge-admin-badges { display: flex; align-items: center; gap: 6px; }
.challenge-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 370px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 50px; padding: clamp(30px, 6vw, 65px); border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--line)); border-radius: 10px 34px 10px 34px; background: linear-gradient(125deg, color-mix(in srgb, var(--brand) 17%, var(--surface)), var(--surface) 57%, #12161c); box-shadow: var(--shadow); }
.challenge-hero::before { content: ""; position: absolute; z-index: -1; width: 470px; height: 470px; right: -170px; top: -220px; border: 1px solid color-mix(in srgb, var(--brand) 34%, transparent); border-radius: 50%; box-shadow: 0 0 0 60px color-mix(in srgb, var(--brand) 4%, transparent), 0 0 0 120px color-mix(in srgb, var(--brand) 3%, transparent); }
.challenge-hero h1 { max-width: 780px; margin-bottom: 18px; font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 950; letter-spacing: -.07em; }
.challenge-hero > div:first-child > p { max-width: 720px; color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.challenge-hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 30px; }
.challenge-hero-meta span { min-width: 150px; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; }
.challenge-hero-meta b { display: block; margin-bottom: 4px; color: var(--text); font-size: .92rem; text-transform: none; letter-spacing: 0; }
.challenge-prize { width: 205px; aspect-ratio: 1; display: grid; place-content: center; text-align: center; border: 1px solid color-mix(in srgb, var(--brand) 62%, var(--line)); border-radius: 50%; background: color-mix(in srgb, var(--brand) 11%, var(--surface)); box-shadow: inset 0 0 0 12px color-mix(in srgb, var(--brand) 4%, transparent), 12px 12px 0 color-mix(in srgb, var(--brand) 10%, transparent); transform: rotate(3deg); }
.challenge-prize span { color: var(--brand); font-size: .72rem; font-weight: 900; letter-spacing: .15em; }
.challenge-prize strong { font-size: 3.15rem; line-height: 1; letter-spacing: -.06em; }
.challenge-prize small { margin-top: 7px; color: var(--muted); font-weight: 800; }
.challenge-disclaimer { display: flex; align-items: flex-start; gap: 12px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 8px 16px 8px 16px; background: var(--surface-2); color: var(--muted); }
.challenge-disclaimer > span { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--surface-3); color: var(--text); font-weight: 900; }
.challenge-disclaimer p { margin: 1px 0 0; font-size: .82rem; }
.challenge-submit { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); gap: clamp(30px, 7vw, 85px); padding: clamp(26px, 5vw, 48px); }
.challenge-submit-copy > p { color: var(--muted); line-height: 1.75; }
.challenge-rules { display: grid; gap: 10px; padding: 0; margin: 26px 0 0; list-style: none; }
.challenge-rules li { position: relative; padding-left: 25px; color: var(--muted); font-size: .87rem; }
.challenge-rules li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 900; }
.challenge-submit-form { min-width: 0; }
.clip-upload-form textarea { resize: vertical; }
.clip-upload-form label > small { justify-self: end; color: var(--muted); font-size: .68rem; font-weight: 650; }
.clip-file-drop { min-height: 116px; display: grid !important; place-items: center; padding: 20px; border: 1px dashed color-mix(in srgb, var(--brand) 52%, var(--line)); border-radius: 8px 18px 8px 18px; background: color-mix(in srgb, var(--brand) 5%, var(--surface-2)); text-align: center; cursor: pointer; }
.clip-file-drop > span strong, .clip-file-drop > span small { display: block; }
.clip-file-drop > span small { margin-top: 5px; color: var(--muted); }
.clip-file-drop input { width: 100%; min-height: auto !important; margin-top: 12px; padding: 8px; }
.clip-preview { overflow: hidden; border: 1px solid var(--line); border-radius: 8px 18px 8px 18px; background: #0c0f13; }
.clip-preview video, .own-clip-status video { width: 100%; max-height: 420px; background: #080a0d; }
.clip-preview small { display: block; padding: 10px 13px; color: var(--muted); }
.consent-card { display: grid !important; grid-template-columns: auto 1fr; align-items: start; gap: 12px !important; padding: 16px; border: 1px solid var(--line); border-radius: 8px 16px 8px 16px; background: var(--surface-2); cursor: pointer; }
.consent-card input { width: 19px; height: 19px; min-height: 0 !important; margin: 2px 0 0; accent-color: var(--brand); }
.consent-card span { color: var(--text); font-size: .8rem; line-height: 1.55; }
.music-warning { display: flex; align-items: center; gap: 10px; margin: 0; color: #efbd6a; font-size: .8rem; }
.music-warning span { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: color-mix(in srgb, #efbd6a 12%, var(--surface)); }
.own-clip-status { display: grid; gap: 16px; }
.own-clip-status .status-pill.pending { color: #efbd6a; }
.own-clip-status .status-pill.approved { color: var(--green); }
.own-clip-status .status-pill.rejected, .own-clip-status .status-pill.deleted { color: var(--red); }
.small-note { margin: 0; color: var(--muted); font-size: .75rem; }
.challenge-feed-head { align-items: flex-end; }
.challenge-feed-head p { margin: 7px 0 0; color: var(--muted); font-size: .82rem; }
.sort-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.sort-tabs a { padding: 7px 11px; border-radius: 7px; color: var(--muted); font-size: .76rem; font-weight: 800; }
.sort-tabs a:hover { color: var(--text); }
.sort-tabs a.active { background: var(--brand); color: #fff; }
.clip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.clip-card { min-width: 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--line) 86%, var(--brand)); border-radius: 8px 22px 8px 22px; background: var(--surface); box-shadow: 0 13px 34px rgba(0, 0, 0, .16); transition: transform .18s ease, border-color .18s ease; }
.clip-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 42%, var(--line)); }
.clip-card > video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #080a0d; }
.clip-card-body { display: grid; gap: 16px; padding: 18px; }
.clip-card-title { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.clip-card-title h3 { margin: 0 0 5px; overflow-wrap: anywhere; }
.clip-card-title a { color: var(--muted); font-size: .77rem; }
.clip-card-title a:hover { color: var(--brand); }
.clip-card-body > p { min-height: 42px; margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.55; overflow-wrap: anywhere; }
.vote-count { min-width: 58px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px 13px 7px 13px; background: var(--surface-2); color: var(--muted); text-align: center; font-size: .62rem; text-transform: uppercase; }
.vote-count b { display: block; color: var(--brand); font-size: 1.18rem; line-height: 1.1; }
.button.voted { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); color: var(--brand); }
.own-clip-note { display: block; padding: 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); text-align: center; font-size: .78rem; font-weight: 750; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 28px; }
.pagination a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); font-weight: 800; }
.pagination a.active { border-color: var(--brand); background: var(--brand); color: #fff; }
.challenge-winners { display: grid; gap: 6px; }
.winner-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.winner-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 8px 18px 8px 18px; background: var(--surface); }
.winner-card.rank-1 { grid-column: span 2; border-color: color-mix(in srgb, #efbd6a 58%, var(--line)); }
.winner-card video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #080a0d; }
.winner-card > div:last-child { padding: 14px; }
.winner-card h3 { margin: 0 0 4px; font-size: .95rem; }
.winner-card p { margin: 0; color: var(--muted); font-size: .72rem; }
.winner-rank { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; background: var(--surface-2); }
.winner-rank span { color: var(--brand); font-size: 1.05rem; font-weight: 950; }
.winner-rank b { color: #efbd6a; font-size: .68rem; }
.challenge-admin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.challenge-admin-card video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #080a0d; }
.challenge-admin-actions { display: grid; gap: 10px; }
.challenge-admin-actions form { display: grid; gap: 8px; }

@media (max-width: 1020px) {
    .clip-grid, .challenge-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .winner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .play-launch-card { grid-template-columns: 1fr; gap: 25px; }
    .play-launch-mark { width: 125px; }
    .challenge-tba-lock { top: 190px; gap: 10px; padding: 13px 20px; }
    .feature-toggle-row { align-items: stretch; flex-direction: column; }
    .feature-toggle-row .button { width: 100%; }
    .challenge-settings-grid, .challenge-settings-price { grid-template-columns: 1fr; }
    .challenge-page { gap: 30px; }
    .challenge-hero { min-height: 0; grid-template-columns: 1fr; gap: 28px; padding: 30px 24px; }
    .challenge-prize { width: 150px; justify-self: start; }
    .challenge-prize strong { font-size: 2.5rem; }
    .challenge-submit { grid-template-columns: 1fr; }
    .challenge-feed-head { align-items: flex-start; flex-direction: column; }
    .winner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .winner-card.rank-1 { grid-column: span 2; }
}

@media (max-width: 520px) {
    .clip-grid, .challenge-admin-grid, .winner-grid { grid-template-columns: 1fr; }
    .winner-card.rank-1 { grid-column: auto; }
    .challenge-hero h1 { font-size: 2.9rem; }
    .challenge-hero-meta { display: grid; }
    .sort-tabs { width: 100%; }
    .sort-tabs a { flex: 1 1 auto; text-align: center; }
}

/* Keep the feature-rich desktop header calm and readable. */
.header-inner { width: min(calc(100% - 36px), 1560px); gap: 18px; }
.brand-logo { height: 34px; }
.main-nav { flex: 0 1 auto; }
.main-nav > a, .nav-dropdown > summary { white-space: nowrap; }
.app-body .main-nav a { padding-inline: 10px; }
.header-actions { margin-left: auto; gap: 7px; }
.header-player-search { width: 190px; }

@media (max-width: 1450px) and (min-width: 1181px) {
    .main-nav { position: absolute; display: none; top: 76px; left: 18px; right: 18px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
    .main-nav.open { display: grid; }
    .main-nav .mobile-player-search { display: block; width: 100%; margin-bottom: 4px; }
    .desktop-player-search { display: none; }
    .nav-dropdown summary { width: 100%; justify-content: space-between; }
    .nav-dropdown-menu { position: static; width: 100%; margin-top: 4px; box-shadow: none; }
    .mobile-menu-button { display: grid; }
    .user-chip { font-size: 0; }
}

@media (max-width: 1450px) {
    .header-actions { margin-left: 0; }
}

@media (max-width: 760px) {
    .header-inner { width: min(calc(100% - 24px), 1560px); gap: 8px; }
    .brand-logo { height: 30px; }
    .admin-section-nav { grid-template-columns: 1fr; }
    .admin-section-nav a { min-height: 66px; }
    .admin-event-note { align-items: flex-start; flex-wrap: wrap; }
    .admin-event-note .button { width: 100%; }
    .password-change-form .form-grid { grid-template-columns: 1fr; }
    .password-form-actions { align-items: stretch; flex-direction: column; }
    .password-form-actions .button { width: 100%; }
}

/* Sidebar refresh — packaged as an optional UI update. */
:root {
    --app-sidebar-width: 276px;
    --app-header-height: 76px;
}

.has-app-sidebar .site-header {
    min-height: var(--app-header-height);
    border-bottom-color: color-mix(in srgb, var(--line) 78%, transparent);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
    backdrop-filter: blur(18px);
}
.has-app-sidebar .site-header::after {
    left: var(--app-sidebar-width);
    height: 1px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 72%, transparent), transparent 45%);
}
.has-app-sidebar .header-inner {
    position: relative;
    width: 100%;
    min-height: var(--app-header-height);
    padding-inline: 20px 24px;
}
.has-app-sidebar .brand {
    width: calc(var(--app-sidebar-width) - 20px);
    padding-left: 7px;
}
.has-app-sidebar .brand-logo { height: 36px; }
.has-app-sidebar .header-actions { margin-left: auto; }
.header-context {
    position: absolute;
    top: 50%;
    left: calc((100% + var(--app-sidebar-width)) / 2);
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 2px;
    width: min(34vw, 440px);
    margin: 0;
    padding-inline: 12px;
    transform: translate(-50%, -50%);
    text-align: center;
}
.header-context span {
    color: var(--brand);
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .16em;
}
.header-context strong {
    max-width: 100%;
    overflow: hidden;
    color: var(--text);
    font-size: 1.04rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.notification-button svg,
.sidebar-icon svg,
.sidebar-player-search svg,
.sidebar-account button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.has-app-sidebar .notification-button {
    border-color: color-mix(in srgb, var(--line) 84%, var(--brand));
    background: var(--surface-2);
}
.has-app-sidebar .notification-button:hover {
    border-color: color-mix(in srgb, var(--brand) 52%, var(--line));
    color: var(--brand);
}
.menu-lines,
.menu-lines::before,
.menu-lines::after {
    width: 17px;
    height: 1.5px;
    display: block;
    border-radius: 999px;
    background: currentColor;
}
.menu-lines { position: relative; }
.menu-lines::before,
.menu-lines::after { content: ''; position: absolute; left: 0; }
.menu-lines::before { top: -5px; }
.menu-lines::after { top: 5px; }

.app-sidebar {
    position: fixed;
    z-index: 45;
    inset: var(--app-header-height) auto 0 0;
    width: var(--app-sidebar-width);
    overflow: hidden;
    border-right: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    background:
        radial-gradient(circle at 0 0, color-mix(in srgb, var(--brand) 9%, transparent), transparent 230px),
        color-mix(in srgb, var(--surface) 97%, var(--bg));
    box-shadow: 18px 0 50px rgba(0, 0, 0, .08);
}
.sidebar-inner {
    min-height: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 24px 18px 18px;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}
.sidebar-intro {
    display: grid;
    gap: 3px;
    margin-bottom: 19px;
    padding: 0 8px;
}
.sidebar-intro span,
.sidebar-label {
    color: color-mix(in srgb, var(--muted) 82%, transparent);
    font-size: .59rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.sidebar-intro strong { font-size: .92rem; letter-spacing: -.02em; }
.sidebar-player-search { position: relative; margin-bottom: 24px; }
.sidebar-player-search label { position: relative; display: block; }
.sidebar-player-search label > svg {
    position: absolute;
    z-index: 1;
    top: 11px;
    left: 12px;
    width: 18px;
    height: 18px;
    color: var(--muted);
}
.sidebar-player-search input,
.app-body .sidebar-player-search input {
    width: 100%;
    min-height: 42px;
    padding: 9px 52px 9px 39px;
    border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
    border-radius: 12px;
    outline: none;
    background: color-mix(in srgb, var(--surface-2) 86%, transparent);
    color: var(--text);
    font-size: .76rem;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.sidebar-player-search input:focus {
    border-color: color-mix(in srgb, var(--brand) 62%, var(--line));
    background: var(--surface-2);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 11%, transparent);
}
.sidebar-player-search kbd {
    position: absolute;
    top: 10px;
    right: 9px;
    padding: 2px 5px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--muted);
    background: var(--surface);
    font: 650 .58rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.sidebar-player-search .player-search-results {
    top: calc(100% + 7px);
    right: auto;
    left: 0;
    width: 100%;
    border-radius: 12px;
}
.sidebar-nav {
    min-height: 0;
    display: grid;
    align-content: start;
    flex: 1 1 auto;
    gap: 4px;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}
.sidebar-label { margin: 0 10px 7px; }
.sidebar-label-spaced { margin-top: 19px; }
.sidebar-link {
    position: relative;
    min-width: 0;
    min-height: 45px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 5px 10px 5px 7px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 720;
    transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}
.sidebar-link::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: -1px;
    width: 3px;
    border-radius: 999px;
    background: var(--brand);
    opacity: 0;
    transform: scaleY(.45);
    transition: opacity .16s ease, transform .16s ease;
}
.sidebar-link:hover {
    border-color: color-mix(in srgb, var(--line) 82%, transparent);
    background: color-mix(in srgb, var(--surface-2) 72%, transparent);
    color: var(--text);
    transform: translateX(2px);
}
.sidebar-link.active {
    border-color: color-mix(in srgb, var(--brand) 26%, var(--line));
    background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 13%, var(--surface-2)), color-mix(in srgb, var(--brand) 4%, var(--surface-2)));
    color: var(--text);
}
.sidebar-link.active::before { opacity: 1; transform: scaleY(1); }
.sidebar-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    border-radius: 9px;
    background: color-mix(in srgb, var(--surface-3) 72%, transparent);
    color: color-mix(in srgb, var(--muted) 88%, var(--text));
}
.sidebar-icon svg { width: 17px; height: 17px; }
.sidebar-link:hover .sidebar-icon,
.sidebar-link.active .sidebar-icon {
    border-color: color-mix(in srgb, var(--brand) 38%, var(--line));
    background: color-mix(in srgb, var(--brand) 13%, var(--surface-3));
    color: var(--brand);
}
.sidebar-link > small {
    padding: 2px 6px;
    border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line));
    border-radius: 999px;
    color: var(--brand);
    font-size: .52rem;
    font-weight: 900;
    letter-spacing: .08em;
}
.sidebar-link.feature-coming-soon { filter: none; }
.sidebar-account {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 24px;
}
.sidebar-user {
    min-width: 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: color-mix(in srgb, var(--surface-2) 76%, transparent);
}
.sidebar-avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(145deg, var(--brand), var(--brand-deep));
    color: white;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 24%, transparent);
    font-size: .84rem;
    font-weight: 900;
}
.sidebar-user strong,
.sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { font-size: .76rem; }
.sidebar-user small { color: var(--muted); font-size: .61rem; }
.sidebar-account form { margin: 0; }
.sidebar-account button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.sidebar-account button:hover { border-color: color-mix(in srgb, var(--red) 42%, var(--line)); color: var(--red); background: color-mix(in srgb, var(--red) 7%, transparent); }
.sidebar-account button svg { width: 17px; height: 17px; }
.sidebar-logout-label { display: none; }

.has-app-sidebar > main,
.has-app-sidebar > .site-footer { padding-left: var(--app-sidebar-width); }
.has-app-sidebar > main { min-height: calc(100vh - var(--app-header-height)); }
.has-app-sidebar > main::before {
    content: '';
    position: fixed;
    z-index: -1;
    inset: var(--app-header-height) 0 0 var(--app-sidebar-width);
    pointer-events: none;
    background-image: linear-gradient(color-mix(in srgb, var(--line) 12%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--line) 10%, transparent) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.28), transparent 50%);
}
.has-app-sidebar > .flash-stack {
    width: auto;
    max-width: var(--shell);
    margin-right: 18px;
    margin-left: max(calc(var(--app-sidebar-width) + 18px), calc((100vw + var(--app-sidebar-width) - var(--shell)) / 2));
}
.has-app-sidebar .page-section { padding-block: 42px 72px; }
.has-app-sidebar .shell { --shell: 1240px; }
.has-app-sidebar .interface-heading-card {
    min-height: 168px;
    padding: 30px 34px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 88% 15%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 240px),
        linear-gradient(125deg, color-mix(in srgb, var(--brand) 8%, var(--surface)), var(--surface) 62%);
}
.has-app-sidebar .interface-heading-card::before { width: 4px; border-radius: 0 999px 999px 0; }
.has-app-sidebar .interface-content-card,
.has-app-sidebar .panel,
.has-app-sidebar .active-search-card,
.has-app-sidebar .repeat-search-card,
.has-app-sidebar .requests-panel { border-radius: 18px; }
.has-app-sidebar .button,
.has-app-sidebar button.button { border-radius: 11px; }
.has-app-sidebar .footer-inner { max-width: 1240px; }
.sidebar-scrim { display: none; }

.connection-notice {
    position: fixed;
    z-index: 130;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}
.connection-notice-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 12, .76);
    backdrop-filter: blur(8px);
    animation: connection-backdrop-in .2s ease-out;
}
.connection-notice-dialog {
    position: relative;
    width: min(100%, 520px);
    overflow: hidden;
    padding: 34px;
    border: 1px solid color-mix(in srgb, var(--brand) 48%, var(--line));
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0, color-mix(in srgb, var(--brand) 17%, transparent), transparent 240px),
        var(--surface);
    box-shadow: 0 34px 100px rgba(0, 0, 0, .56);
    animation: connection-dialog-in .24s cubic-bezier(.2, .8, .2, 1);
}
.connection-notice-dialog::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 18%, transparent), transparent);
}
.connection-notice-close {
    position: absolute;
    top: 17px;
    right: 17px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: color-mix(in srgb, var(--surface-2) 84%, transparent);
    color: var(--muted);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}
.connection-notice-close:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); color: var(--text); }
.connection-notice-status {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border: 1px solid color-mix(in srgb, var(--green) 50%, var(--line));
    border-radius: 16px;
    background: color-mix(in srgb, var(--green) 12%, var(--surface-2));
    color: var(--green);
    box-shadow: 0 12px 30px color-mix(in srgb, var(--green) 9%, transparent);
}
.connection-notice-status svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.connection-notice-dialog h2 { margin-bottom: 10px; font-size: clamp(1.7rem, 5vw, 2.35rem); }
.connection-notice-dialog > p { margin-bottom: 24px; color: var(--muted); line-height: 1.65; }
.connection-notice-player {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface-2) 76%, transparent);
}
.connection-notice-avatar {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--brand), var(--brand-deep));
    color: white;
    font-weight: 900;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 18%, transparent);
}
.connection-notice-player strong,
.connection-notice-player small { display: block; }
.connection-notice-player strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connection-notice-player small { margin-top: 2px; color: var(--muted); font-size: .74rem; }
.connection-notice-id {
    padding: 16px 17px;
    border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--line));
    border-radius: 14px;
    background: color-mix(in srgb, var(--brand) 8%, var(--surface-2));
}
.connection-notice-id small,
.connection-notice-id strong { display: block; }
.connection-notice-id small { margin-bottom: 3px; color: var(--brand); font-size: .58rem; font-weight: 900; letter-spacing: .14em; }
.connection-notice-id strong {
    overflow: hidden;
    font: 800 1.12rem/1.35 ui-monospace, SFMono-Regular, Consolas, monospace;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.connection-notice-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
body.connection-notice-open { overflow: hidden; }
@keyframes connection-backdrop-in { from { opacity: 0; } }
@keyframes connection-dialog-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }

@media (min-width: 1101px) {
    .has-app-sidebar .mobile-menu-button { display: none; }
}

@media (max-width: 1100px) {
    :root { --app-header-height: 68px; }
    .has-app-sidebar .site-header::after { left: 0; }
    .has-app-sidebar .header-inner { min-height: var(--app-header-height); padding-inline: 12px; }
    .has-app-sidebar .brand { width: auto; padding-left: 0; }
    .has-app-sidebar .brand-logo { height: 30px; }
    .has-app-sidebar .mobile-menu-button { display: grid; order: -1; margin: 0; }
    .has-app-sidebar .header-context { left: 50%; width: min(38vw, 360px); padding-inline: 10px; }
    .app-sidebar {
        z-index: 90;
        top: 0;
        height: 100dvh;
        transform: translateX(-102%);
        transition: transform .24s cubic-bezier(.22, .7, .24, 1);
        box-shadow: 24px 0 70px rgba(0, 0, 0, .42);
    }
    .app-sidebar.open { transform: translateX(0); }
    .sidebar-inner { padding-top: 28px; }
    .sidebar-account { grid-template-columns: 1fr; margin-top: 10px; padding-top: 12px; }
    .sidebar-account button {
        width: 100%;
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: color-mix(in srgb, var(--red) 84%, var(--text));
    }
    .sidebar-logout-label { display: inline; font-size: .74rem; font-weight: 800; }
    .sidebar-scrim {
        position: fixed;
        z-index: 85;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(4, 7, 10, .66);
        backdrop-filter: blur(4px);
        cursor: default;
    }
    .has-app-sidebar > main,
    .has-app-sidebar > .site-footer { padding-left: 0; }
    .has-app-sidebar > main::before { left: 0; }
    .has-app-sidebar > .flash-stack {
        width: min(calc(100% - 36px), var(--shell));
        margin-inline: auto;
    }
    body.sidebar-open { overflow: hidden; }
}

@media (max-width: 620px) {
    .header-context { display: none; }
    .has-app-sidebar .header-actions { margin-left: auto; }
    .has-app-sidebar .language-switch a { min-width: 34px; justify-content: center; font-size: 0; }
    .has-app-sidebar .language-switch .language-flag { margin: 0; }
    .has-app-sidebar .page-section { padding-block: 24px 48px; }
    .has-app-sidebar .interface-heading-card { min-height: 0; padding: 24px 21px; border-radius: 17px; }
    .has-app-sidebar .interface-content-card,
    .has-app-sidebar .panel,
    .has-app-sidebar .active-search-card,
    .has-app-sidebar .repeat-search-card,
    .has-app-sidebar .requests-panel { border-radius: 15px; }
    .connection-notice { align-items: end; padding: 10px; }
    .connection-notice-dialog { padding: 28px 20px 21px; border-radius: 21px; }
    .connection-notice-status { width: 48px; height: 48px; margin-bottom: 18px; }
    .connection-notice-actions { grid-template-columns: 1fr; }
}
