:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, .72);
  --surface-strong: rgba(255, 255, 255, .94);
  --surface-muted: rgba(245, 245, 247, .78);
  --text: #17171a;
  --muted: #72727a;
  --line: rgba(20, 20, 25, .08);
  --line-strong: rgba(20, 20, 25, .14);
  --accent: #5b5ce2;
  --accent-2: #8d67ff;
  --success: #30d158;
  --danger: #ff453a;
  --game-bg: #0d111c;
  --game-grid: rgba(255, 255, 255, .055);
  --game-snake: #79e879;
  --game-snake-head: #b2ff9e;
  --game-food: #ff5e57;
  --shadow: 0 24px 70px rgba(28, 28, 35, .12);
  --shadow-soft: 0 10px 32px rgba(28, 28, 35, .075);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --sidebar-width: 234px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
}

html[data-theme="dark"] {
  --bg: #09090b;
  --surface: rgba(27, 27, 31, .72);
  --surface-strong: rgba(31, 31, 36, .94);
  --surface-muted: rgba(24, 24, 28, .82);
  --text: #f7f7f8;
  --muted: #98989f;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --shadow: 0 26px 80px rgba(0, 0, 0, .4);
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, .25);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    --bg: #09090b;
    --surface: rgba(27, 27, 31, .72);
    --surface-strong: rgba(31, 31, 36, .94);
    --surface-muted: rgba(24, 24, 28, .82);
    --text: #f7f7f8;
    --muted: #98989f;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .14);
    --shadow: 0 26px 80px rgba(0, 0, 0, .4);
    --shadow-soft: 0 12px 34px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; font-family: var(--font); color: var(--text); background: var(--bg); overflow-x: hidden; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent); outline-offset: 3px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ambient { position: fixed; z-index: 0; width: 580px; height: 580px; border-radius: 50%; filter: blur(110px); opacity: .15; pointer-events: none; }
.ambient-one { background: #7869ff; top: -340px; right: -100px; }
.ambient-two { background: #61c9ff; bottom: -410px; left: 10%; opacity: .09; }

.app-shell { position: relative; z-index: 1; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; padding: 14px; gap: 14px; }
.glass { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); backdrop-filter: blur(28px) saturate(145%); -webkit-backdrop-filter: blur(28px) saturate(145%); }
.sidebar { position: sticky; top: 14px; height: calc(100vh - 28px); padding: 17px 13px; border-radius: var(--radius-xl); display: flex; flex-direction: column; }
.brand { appearance: none; border: 0; background: none; display: flex; align-items: center; gap: 12px; text-align: left; padding: 6px; cursor: pointer; }
.brand-mark { display: grid; place-items: center; width: 39px; aspect-ratio: 1; border-radius: 12px; background: linear-gradient(145deg, var(--accent), var(--accent-2)); color: white; font-size: 19px; font-weight: 800; box-shadow: 0 9px 23px rgba(91, 92, 226, .25); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.04; }
.brand-copy strong { font-size: 17px; letter-spacing: -.02em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-weight: 700; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.nav-list { display: flex; flex-direction: column; gap: 5px; margin-top: 32px; }
.nav-item { appearance: none; border: 0; background: transparent; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 13px; border-radius: 14px; color: var(--muted); font-weight: 650; cursor: pointer; transition: transform .2s ease, color .2s ease, background .2s ease; }
.nav-item svg { width: 20px; height: 20px; }
.nav-item:hover { background: var(--surface-muted); color: var(--text); transform: translateX(2px); }
.nav-item.is-active { color: var(--text); background: var(--surface-strong); box-shadow: 0 5px 16px rgba(40, 40, 50, .06); }
.sidebar-footer { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.icon-button { appearance: none; border: 1px solid var(--line); background: var(--surface-muted); width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.icon-button:hover { transform: translateY(-1px); background: var(--surface-strong); }
.icon-button svg { width: 19px; height: 19px; }
.profile-chip { border: 0; background: var(--surface-muted); border-radius: 17px; padding: 9px; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; }
.profile-chip > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.profile-chip strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 118px; }
.profile-chip small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.avatar, .profile-round { display: grid; place-items: center; flex: 0 0 auto; width: 35px; height: 35px; border-radius: 50%; background: linear-gradient(145deg, #202128, #555b6c); color: white; font-size: 11px; font-weight: 800; letter-spacing: .02em; }

.main-content { min-width: 0; padding: 28px clamp(12px, 2.6vw, 42px) 74px; }
.mobile-header, .mobile-nav { display: none; }
.view { display: none; animation: viewIn .28s ease both; }
.view.is-visible { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.hero-row, .page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 10px; line-height: 1; font-weight: 850; text-transform: uppercase; letter-spacing: .14em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 11px; font-size: clamp(36px, 4.6vw, 58px); line-height: .99; letter-spacing: -.058em; }
h2 { margin-bottom: 0; font-size: 27px; letter-spacing: -.038em; }
h3 { margin-bottom: 0; font-size: 19px; letter-spacing: -.025em; }
.hero-copy, .page-header > div > p:last-child { margin-bottom: 0; max-width: 620px; color: var(--muted); line-height: 1.6; }
.streak-pill { padding: 11px 15px; border-radius: 17px; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.streak-pill > span { font-size: 21px; }
.streak-pill div { display: flex; flex-direction: column; }
.streak-pill strong { font-size: 13px; }
.streak-pill small { color: var(--muted); font-size: 10px; margin-top: 2px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.section-heading .eyebrow { margin-bottom: 6px; }
.library-count { color: var(--muted); font-size: 12px; font-weight: 650; }
.games-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) repeat(2, minmax(210px, .72fr)); gap: 18px; }
.game-tile { position: relative; min-height: 330px; border-radius: 28px; border: 1px solid rgba(255, 255, 255, .12); padding: 22px; overflow: hidden; text-align: left; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-soft); }
button.game-tile { appearance: none; cursor: pointer; transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease; }
button.game-tile:hover { transform: translateY(-5px); box-shadow: 0 28px 70px rgba(28, 30, 50, .2); }
.game-tile-featured { color: #fff; background: linear-gradient(145deg, #18281f 0%, #102016 45%, #0d1510 100%); }
.tile-glow { position: absolute; width: 360px; height: 360px; right: -115px; top: -130px; border-radius: 50%; background: rgba(115, 237, 115, .27); filter: blur(60px); }
.tile-topline, .tile-copy { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.live-badge, .soon-badge { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 7px 10px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.live-badge { color: #d8ffd8; background: rgba(105, 230, 105, .13); border: 1px solid rgba(137, 255, 137, .15); }
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: #72eb72; box-shadow: 0 0 0 4px rgba(114, 235, 114, .12); }
.soon-badge { color: rgba(255,255,255,.66); background: rgba(255,255,255,.08); }
.tile-arrow { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: rgba(255,255,255,.1); font-size: 18px; }
.snake-art { position: absolute; z-index: 1; left: 50%; top: 44%; transform: translate(-50%, -50%); width: 68%; height: 46%; }
.snake-art i, .snake-art b { position: absolute; width: 50px; height: 50px; border-radius: 16px; background: linear-gradient(145deg, #b7ff9e, #63d86c); box-shadow: 0 13px 24px rgba(55, 173, 74, .18); }
.snake-art i:nth-child(1) { left: 2%; bottom: 4%; }
.snake-art i:nth-child(2) { left: 22%; bottom: 4%; }
.snake-art i:nth-child(3) { left: 42%; bottom: 4%; }
.snake-art i:nth-child(4) { left: 62%; bottom: 4%; }
.snake-art i:nth-child(5) { left: 62%; bottom: 39%; }
.snake-art b { left: 62%; bottom: 72%; width: 58px; height: 58px; border-radius: 19px 19px 19px 7px; }
.snake-art b::before, .snake-art b::after { content: ""; position: absolute; top: 15px; width: 6px; height: 8px; border-radius: 50%; background: #18331b; }
.snake-art b::before { left: 16px; }
.snake-art b::after { right: 16px; }
.tile-copy { align-items: flex-end; }
.tile-copy > span:first-child { display: flex; flex-direction: column; }
.tile-copy small { color: rgba(255,255,255,.55); font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.tile-copy strong { margin-top: 5px; font-size: 32px; letter-spacing: -.045em; }
.tile-stats { display: flex; gap: 20px; }
.tile-stats > span { display: flex; flex-direction: column; align-items: flex-end; }
.tile-stats b { margin-top: 3px; font-size: 17px; font-variant-numeric: tabular-nums; }
.game-tile-coming { color: #fff; background: linear-gradient(145deg, #23242d, #17181e); opacity: .83; }
.pong-tile { background: linear-gradient(145deg, #2a2547, #171627); }
.reaction-tile { background: linear-gradient(145deg, #342414, #1c1711); }
.game-tile-coming .tile-copy strong { font-size: 25px; }
.pong-art { position: absolute; inset: 30% 19% 28%; }
.pong-art i { position: absolute; width: 6px; height: 74px; border-radius: 5px; background: rgba(255,255,255,.83); }
.pong-art i:first-child { left: 0; top: 12%; }
.pong-art i:nth-child(2) { right: 0; bottom: 8%; }
.pong-art b { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; left: 47%; top: 38%; box-shadow: 0 0 24px rgba(255,255,255,.25); }
.reaction-art { position: absolute; inset: 0; display: grid; place-items: center; font-size: 68px; filter: saturate(.7); }
.hub-lower-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; margin-top: 18px; }
.mini-card, .content-card, .profile-card, .stats-card, .achievements-card, .friend-card, .control-card, .snake-board-card { border-radius: var(--radius-xl); }
.mini-card, .control-card { padding: 22px; }
.daily-card { display: flex; align-items: center; gap: 18px; }
.daily-card p:last-child { color: var(--muted); line-height: 1.5; margin: 8px 0 0; font-size: 13px; }
.daily-icon { flex: 0 0 auto; display: grid; place-items: center; width: 66px; height: 66px; border-radius: 21px; background: linear-gradient(145deg, rgba(91,92,226,.16), rgba(141,103,255,.09)); color: var(--accent); font-size: 30px; }

.game-page-header { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; margin-bottom: 18px; }
.game-page-toolbar { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.board-size-control { display: flex; align-items: center; gap: 9px; padding: 6px 7px 6px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--muted); box-shadow: var(--shadow-soft); }
.board-size-control > span { font-size: 11px; font-weight: 750; }
.board-size-control select { min-width: 124px; padding: 8px 30px 8px 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-strong); color: var(--text); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.board-size-control small { min-width: 48px; color: var(--muted); font-size: 10px; text-align: right; font-variant-numeric: tabular-nums; }
.back-button { appearance: none; border: 0; background: transparent; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; padding: 0; cursor: pointer; font-size: 13px; font-weight: 650; }
.back-button:hover { color: var(--text); }
.back-button svg { width: 19px; height: 19px; }
.game-page-title { display: flex; align-items: center; gap: 13px; }
.game-page-title h1 { margin: 0; font-size: clamp(34px, 4vw, 48px); }
.game-page-title .eyebrow { margin-bottom: 5px; }
.mini-game-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: #122515; background: linear-gradient(145deg, #b6ff9f, #68dd71); font-size: 17px; font-weight: 900; }
.snake-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.snake-board-card { --snake-board-size: 400px; width: min(100%, calc(var(--snake-board-size) + 28px)); padding: 14px; justify-self: center; }
.snake-hud { width: min(100%, var(--snake-board-size)); height: 66px; margin: 0 auto; padding: 0 11px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.hud-score { display: flex; flex-direction: column; }
.hud-score small { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.hud-score strong { margin-top: 2px; font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.align-right { align-items: flex-end; }
.hud-center { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.hud-center span { width: 7px; height: 7px; border-radius: 50%; background: #8e8e93; transition: .2s; }
.hud-center span.is-running { background: var(--success); box-shadow: 0 0 0 5px color-mix(in srgb, var(--success) 13%, transparent); }
.hud-center span.is-paused { background: #ff9f0a; }
.hud-center small { font-size: 11px; font-weight: 700; }
.game-stage { position: relative; width: min(100%, var(--snake-board-size)); margin: 0 auto; aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: var(--game-bg); border: 1px solid rgba(255,255,255,.06); isolation: isolate; box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 48px rgba(3, 5, 10, .18); }
#snakeCanvas { width: 100%; height: 100%; display: block; touch-action: none; }
.game-overlay { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; color: #fff; background: rgba(10, 14, 23, .77); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: opacity .25s ease, transform .25s ease; }
.game-overlay.is-hidden { opacity: 0; pointer-events: none; transform: scale(1.012); }
.game-overlay h3 { font-size: clamp(36px, 5vw, 54px); letter-spacing: -.055em; margin-bottom: 10px; }
.game-overlay p:not(.eyebrow) { max-width: 380px; color: rgba(255,255,255,.6); line-height: 1.55; }
.game-overlay .eyebrow { color: #9ef58e; }
.overlay-mark { display: grid; grid-template-columns: repeat(2, 18px); grid-template-rows: repeat(2, 18px); gap: 5px; margin-bottom: 23px; transform: rotate(-8deg); }
.overlay-mark span { border-radius: 6px; background: linear-gradient(145deg, #b4ff9d, #68dc70); }
.overlay-mark span:nth-child(4) { transform: translateX(23px); }
.overlay-shortcut { margin-top: 13px; color: rgba(255,255,255,.35); font-size: 10px; }
.game-status { position: absolute; z-index: 3; top: 15px; left: 50%; transform: translateX(-50%); padding: 7px 11px; border-radius: 999px; background: rgba(0,0,0,.48); color: #fff; font-size: 11px; font-weight: 750; opacity: 0; transition: .2s; pointer-events: none; }
.game-status.is-visible { opacity: 1; }
.snake-side-panel { display: flex; flex-direction: column; gap: 18px; }
.control-card > p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 18px 0; }
.key-layout { width: 136px; display: grid; grid-template-columns: repeat(3, 38px); gap: 6px; margin: 24px auto 0; }
kbd { min-width: 38px; height: 38px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); border-bottom-width: 3px; border-radius: 10px; background: var(--surface-strong); font-size: 11px; font-family: inherit; font-weight: 750; box-shadow: 0 4px 10px rgba(0,0,0,.04); }
.game-actions { display: flex; align-items: center; gap: 8px; }
.clean-actions { border-top: 1px solid var(--line); padding-top: 16px; }
.grow { flex: 1; }
.touch-pad { display: none; margin-top: 18px; text-align: center; }
.touch-pad > button, .touch-pad div button { width: 54px; height: 48px; border: 1px solid var(--line); background: var(--surface); border-radius: 15px; font-size: 19px; }
.touch-pad div { margin-top: 6px; display: flex; justify-content: center; gap: 6px; }

.primary-button, .secondary-button, .text-button { appearance: none; border: 0; cursor: pointer; font-weight: 720; transition: transform .18s ease, opacity .18s ease, background .18s ease; }
.primary-button { padding: 12px 18px; border-radius: 14px; color: #fff; background: var(--accent); box-shadow: 0 9px 22px color-mix(in srgb, var(--accent) 25%, transparent); }
.primary-button.large { min-width: 155px; padding: 13px 22px; border-radius: 15px; }
.primary-button.small { padding: 10px 15px; }
.primary-button:hover, .secondary-button:hover { transform: translateY(-1px); }
.secondary-button { padding: 11px 15px; border-radius: 13px; color: var(--text); background: var(--surface-muted); border: 1px solid var(--line); }
.secondary-button:disabled { opacity: .42; cursor: default; transform: none; }
.text-button { padding: 4px; color: var(--accent); background: transparent; font-size: 12px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.card-heading .eyebrow { margin-bottom: 5px; }

.leaderboard-list { display: flex; flex-direction: column; }
.leader-row { display: grid; grid-template-columns: 28px 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 54px; padding: 7px 5px; border-bottom: 1px solid var(--line); }
.leader-row:last-child { border-bottom: 0; }
.leader-row.is-user { background: color-mix(in srgb, var(--accent) 7%, transparent); border-radius: 13px; padding-inline: 9px; border-bottom-color: transparent; }
.rank { color: var(--muted); text-align: center; font-size: 11px; font-weight: 800; }
.leader-avatar { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: var(--surface-muted); border: 1px solid var(--line); font-size: 10px; font-weight: 800; }
.leader-copy { min-width: 0; display: flex; flex-direction: column; }
.leader-copy strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leader-copy small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.leader-row > strong { font-size: 12px; font-variant-numeric: tabular-nums; }

.content-card { padding: clamp(18px, 3vw, 32px); }
.segmented-control { width: fit-content; display: flex; padding: 4px; border-radius: 13px; background: var(--surface-muted); margin-bottom: 32px; }
.segmented-control button { appearance: none; border: 0; background: transparent; color: var(--muted); border-radius: 10px; padding: 9px 14px; cursor: pointer; font-size: 12px; font-weight: 700; }
.segmented-control button.is-active { background: var(--surface-strong); color: var(--text); box-shadow: 0 3px 12px rgba(0,0,0,.06); }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; margin: 0 auto 28px; max-width: 720px; }
.podium-place { min-height: 150px; border: 1px solid var(--line); background: var(--surface-muted); border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px; }
.podium-place[data-position="1"] { min-height: 185px; order: 2; background: color-mix(in srgb, var(--accent) 8%, var(--surface-muted)); }
.podium-place[data-position="2"] { order: 1; }
.podium-place[data-position="3"] { order: 3; }
.podium-avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface-strong); border: 1px solid var(--line); font-size: 12px; font-weight: 800; margin-bottom: 11px; }
.podium-place strong { font-size: 13px; }
.podium-place small { color: var(--muted); margin-top: 5px; font-size: 10px; }
.full-list { max-width: 820px; margin: auto; }
.full-list .leader-row { min-height: 62px; }

.friends-grid { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 16px; }
.friend-card { padding: 20px; }
.friend-card-head { display: flex; align-items: center; gap: 11px; }
.friend-card-head > div { display: flex; flex-direction: column; }
.friend-card-head strong { font-size: 14px; }
.friend-card-head small { color: var(--muted); margin-top: 3px; font-size: 10px; }
.online-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--success); }
.friend-score { display: flex; align-items: end; justify-content: space-between; margin: 25px 0 18px; padding: 16px 0; border-block: 1px solid var(--line); }
.friend-score span { color: var(--muted); font-size: 11px; }
.friend-score strong { font-size: 25px; letter-spacing: -.04em; }
.friend-card-actions { display: flex; }
.friend-card-actions button { width: 100%; }

.profile-grid { display: grid; grid-template-columns: minmax(250px, .75fr) 1.25fr; gap: 17px; }
.profile-card { padding: 30px; text-align: center; }
.large-avatar { display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 50%; background: linear-gradient(145deg, #202128, #5b6275); color: #fff; font-size: 25px; font-weight: 850; }
.profile-card > p { color: var(--muted); font-size: 12px; }
.level-track { margin-top: 28px; text-align: left; }
.level-track > div { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 8px; }
.level-track progress { width: 100%; height: 7px; appearance: none; border: 0; }
.level-track progress::-webkit-progress-bar { border-radius: 99px; background: var(--surface-muted); }
.level-track progress::-webkit-progress-value { border-radius: 99px; background: var(--accent); }
.stats-card { display: grid; grid-template-columns: repeat(2, 1fr); overflow: hidden; }
.stat { min-height: 150px; padding: 24px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat:nth-child(2n) { border-right: 0; }
.stat:nth-child(n+3) { border-bottom: 0; }
.stat small, .stat span { color: var(--muted); font-size: 10px; }
.stat strong { margin: 8px 0 4px; font-size: 34px; letter-spacing: -.05em; }
.achievements-card { grid-column: 1 / -1; padding: 24px; }
.achievement-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.achievement { position: relative; min-height: 120px; padding: 17px; border-radius: 18px; background: var(--surface-muted); border: 1px solid var(--line); display: flex; flex-direction: column; opacity: .48; filter: grayscale(1); }
.achievement.is-unlocked { opacity: 1; filter: none; }
.achievement-icon { font-size: 24px; margin-bottom: auto; }
.achievement strong { font-size: 12px; margin-top: 14px; }
.achievement small { color: var(--muted); font-size: 10px; margin-top: 4px; line-height: 1.35; }

.modal { border: 0; padding: 0; background: transparent; color: var(--text); }
.modal::backdrop { background: rgba(0,0,0,.36); backdrop-filter: blur(5px); }
.modal-card { width: min(92vw, 460px); padding: 24px; border-radius: 26px; }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal-heading h2 { font-size: 23px; }
.modal-heading .icon-button { font-size: 22px; }
.modal label { display: flex; flex-direction: column; gap: 8px; margin-top: 25px; font-size: 11px; font-weight: 750; }
.modal input { width: 100%; border: 1px solid var(--line-strong); border-radius: 13px; background: var(--surface-strong); color: var(--text); padding: 12px 13px; }
.field-hint { color: var(--muted); font-size: 10px; line-height: 1.5; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 28px; transform: translate(-50%, 20px); padding: 11px 16px; border-radius: 13px; color: #fff; background: rgba(20,20,24,.9); box-shadow: var(--shadow); font-size: 12px; font-weight: 650; opacity: 0; pointer-events: none; transition: .22s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-tile-featured { grid-column: 1 / -1; }
  .game-tile { min-height: 280px; }
  .snake-layout { grid-template-columns: minmax(0, 1fr) 270px; }
  .friends-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}

@media (max-width: 860px) {
  .app-shell { display: block; padding: 0; }
  .sidebar { display: none; }
  .main-content { padding: 82px 16px 100px; }
  .mobile-header { position: fixed; z-index: 10; display: flex; align-items: center; justify-content: space-between; top: 10px; left: 10px; right: 10px; height: 58px; padding: 8px 10px; border-radius: 20px; }
  .mobile-header .brand-mark { width: 36px; border-radius: 11px; }
  .mobile-header .brand-copy strong { font-size: 14px; }
  .mobile-nav { position: fixed; z-index: 10; display: grid; grid-template-columns: repeat(4, 1fr); left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 6px; border-radius: 20px; }
  .mobile-nav button { appearance: none; border: 0; background: transparent; color: var(--muted); min-height: 48px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 9px; cursor: pointer; }
  .mobile-nav button svg { width: 18px; height: 18px; }
  .mobile-nav button.is-active { color: var(--text); background: var(--surface-strong); }
  .game-page-toolbar { align-items: flex-start; }
  .snake-layout { grid-template-columns: 1fr; }
  .snake-side-panel { display: grid; grid-template-columns: 1fr 1fr; }
  .touch-pad { display: block; }
  .hub-lower-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .main-content { padding-inline: 12px; }
  .game-page-toolbar { flex-direction: column; }
  .board-size-control { width: 100%; justify-content: space-between; }
  .board-size-control select { flex: 1; min-width: 0; }
  .hero-row, .page-header { align-items: flex-start; flex-direction: column; margin-bottom: 26px; }
  .hub-hero .streak-pill { display: none; }
  h1 { font-size: 38px; }
  .games-grid { grid-template-columns: 1fr; gap: 13px; }
  .game-tile-featured { grid-column: auto; min-height: 340px; }
  .game-tile-coming { min-height: 210px; }
  .snake-art { width: 84%; }
  .snake-art i, .snake-art b { width: 42px; height: 42px; border-radius: 13px; }
  .snake-art b { width: 49px; height: 49px; }
  .tile-stats { gap: 13px; }
  .tile-copy strong { font-size: 28px; }
  .daily-card { align-items: flex-start; }
  .snake-side-panel { display: flex; }
  .snake-board-card { padding: 9px; border-radius: 24px; }
  .snake-hud { height: 59px; }
  .hud-score strong { font-size: 21px; }
  .game-stage { border-radius: 19px; }
  .overlay-shortcut { display: none; }
  .control-card { display: none; }
  .friends-grid, .profile-grid { grid-template-columns: 1fr; }
  .stats-card { grid-template-columns: 1fr 1fr; }
  .achievement-list { grid-template-columns: repeat(2, 1fr); }
  .podium { gap: 7px; }
  .podium-place { min-height: 130px; padding: 10px 5px; }
  .podium-place[data-position="1"] { min-height: 160px; }
  .podium-avatar { width: 41px; height: 41px; }
  .segmented-control { width: 100%; }
  .segmented-control button { flex: 1; padding-inline: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* V6: größere Snake-Fläche und Pong */
:root {
  --pong-bg: #0b1020;
  --pong-line: rgba(255,255,255,.12);
  --pong-player: #f4f5ff;
  --pong-ai: #9b8cff;
  --pong-ball: #ffffff;
  --pong-glow: rgba(139,124,255,.35);
}

.pong-tile {
  color: #fff;
  background: linear-gradient(145deg, #31295d 0%, #1b1833 52%, #11121d 100%);
}
.pong-tile::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  right: -90px;
  top: -90px;
  border-radius: 50%;
  background: rgba(141,103,255,.24);
  filter: blur(48px);
}
.pong-live { color: #eeeaff; background: rgba(174,155,255,.14); border-color: rgba(196,184,255,.18); }
.pong-live i { background: #b2a4ff; box-shadow: 0 0 0 4px rgba(178,164,255,.12); }
.pong-tile .pong-art, .pong-tile .tile-copy, .pong-tile .tile-topline { z-index: 2; }

.snake-board-card { --snake-board-size: 560px; }

.pong-icon { color: #f4f1ff; background: linear-gradient(145deg, #9f8cff, #6754d8); }
.pong-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.pong-board-card { width: min(100%, 930px); padding: 14px; border-radius: var(--radius-xl); justify-self: center; }
.pong-hud { height: 70px; padding: 0 14px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.pong-player-label { display: flex; flex-direction: column; }
.pong-player-label small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.pong-player-label strong { margin-top: 2px; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.pong-match-state { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.pong-match-state > span { width: 7px; height: 7px; border-radius: 50%; background: #8e8e93; transition: .2s; }
.pong-match-state > span.is-running { background: #9b8cff; box-shadow: 0 0 0 5px rgba(155,140,255,.14); }
.pong-match-state > span.is-paused { background: #ff9f0a; }
.pong-match-state small { font-size: 11px; font-weight: 750; }
.pong-match-state b { margin-left: 4px; padding: 5px 8px; border-radius: 999px; background: var(--surface-muted); color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.pong-stage { position: relative; width: 100%; aspect-ratio: 5 / 3; overflow: hidden; border-radius: 24px; background: var(--pong-bg); border: 1px solid rgba(255,255,255,.07); isolation: isolate; box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 48px rgba(3,5,10,.2); }
#pongCanvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: ns-resize; }
.pong-overlay .eyebrow { color: #b8adff; }
.robot-mark { position: relative; width: 66px; height: 54px; margin-bottom: 20px; border: 2px solid rgba(203,194,255,.8); border-radius: 18px; display: flex; align-items: center; justify-content: center; gap: 16px; color: #c8beff; box-shadow: inset 0 0 28px rgba(143,123,255,.15), 0 0 30px rgba(143,123,255,.16); }
.robot-mark::before { content: ""; position: absolute; width: 2px; height: 10px; left: 50%; top: -11px; background: #a997ff; }
.robot-mark::after { content: ""; position: absolute; width: 8px; height: 8px; left: calc(50% - 4px); top: -17px; border-radius: 50%; background: #b6a9ff; }
.robot-mark span { font-size: 28px; line-height: 0; }
.robot-mark i { position: absolute; left: 20px; right: 20px; bottom: 10px; height: 2px; border-radius: 2px; background: rgba(203,194,255,.7); }
.pong-side-panel { display: flex; flex-direction: column; gap: 18px; }
.pong-control-visual { margin: 24px 0 0; display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 10px; }
.pong-control-visual span { color: var(--muted); font-size: 11px; font-weight: 700; text-align: center; }
.bot-card-head { display: flex; align-items: center; gap: 12px; }
.bot-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff; background: linear-gradient(145deg, #9f8cff, #5f4cc5); font-size: 12px; font-weight: 900; letter-spacing: .05em; box-shadow: 0 10px 24px rgba(103,84,216,.22); }
.bot-card-head .eyebrow { margin-bottom: 5px; }
.bot-status { margin-top: 20px; padding: 13px; display: flex; align-items: center; gap: 11px; border-radius: 16px; background: var(--surface-muted); border: 1px solid var(--line); }
.bot-status > span { width: 9px; height: 9px; border-radius: 50%; background: #9b8cff; box-shadow: 0 0 0 5px rgba(155,140,255,.12); }
.bot-status div { display: flex; flex-direction: column; min-width: 0; }
.bot-status small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .09em; font-weight: 800; }
.bot-status strong { margin-top: 3px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bot-card ul { margin: 17px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.8; }

@media (max-width: 1180px) {
  .pong-layout { grid-template-columns: 1fr; }
  .pong-side-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .pong-side-panel { grid-template-columns: 1fr; }
  .pong-board-card { padding: 10px; }
  .pong-hud { height: 62px; }
}

@media (max-width: 620px) {
  .pong-stage { border-radius: 19px; }
  .pong-match-state b { display: none; }
  .pong-hud { padding: 0 8px; }
  .pong-player-label strong { font-size: 24px; }
  .pong-overlay { padding: 18px; }
  .pong-overlay h3 { font-size: 38px; }
  .pong-overlay p:not(.eyebrow) { font-size: 12px; }
  .robot-mark { transform: scale(.85); margin-bottom: 10px; }
}

/* V10: Plyvio Login und Registrierung */
body.auth-locked { overflow: hidden; }
body.auth-locked .app-shell { pointer-events: none; user-select: none; filter: blur(18px) saturate(.72); opacity: .2; transform: scale(.99); }
.auth-gate { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; background: radial-gradient(circle at 18% 18%, rgba(91,92,226,.18), transparent 34%), radial-gradient(circle at 84% 82%, rgba(97,201,255,.14), transparent 32%), rgba(239,241,247,.72); backdrop-filter: blur(28px) saturate(125%); -webkit-backdrop-filter: blur(28px) saturate(125%); }
body.auth-locked .auth-gate { display: flex; }
[data-theme="dark"] .auth-gate { background: radial-gradient(circle at 18% 18%, rgba(91,92,226,.2), transparent 34%), radial-gradient(circle at 84% 82%, rgba(97,201,255,.09), transparent 32%), rgba(5,6,10,.76); }
.auth-shell { width: min(1080px, 100%); min-height: min(720px, calc(100vh - 48px)); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr); overflow: hidden; border: 1px solid rgba(255,255,255,.24); border-radius: 36px; background: var(--surface-strong); box-shadow: 0 42px 130px rgba(18,20,38,.22); }
.auth-showcase { position: relative; overflow: hidden; padding: 38px; display: flex; flex-direction: column; color: #f9f9ff; background: radial-gradient(circle at 80% 12%, rgba(144,125,255,.42), transparent 31%), radial-gradient(circle at 14% 88%, rgba(81,205,255,.2), transparent 35%), linear-gradient(145deg, #17182b 0%, #111221 48%, #090a12 100%); }
.auth-showcase::before { content: ""; position: absolute; inset: 0; opacity: .35; background-image: radial-gradient(rgba(255,255,255,.16) .7px, transparent .7px); background-size: 24px 24px; mask-image: linear-gradient(to bottom, black, transparent 70%); }
.auth-showcase::after { content: ""; position: absolute; width: 360px; height: 360px; right: -190px; bottom: -190px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.025), 0 0 0 110px rgba(255,255,255,.018); }
.auth-showcase > * { position: relative; z-index: 1; }
.auth-showcase-brand { display: flex; align-items: center; gap: 13px; }
.auth-showcase-brand .brand-mark { width: 44px; border-radius: 14px; }
.auth-showcase-brand > span:last-child { display: flex; flex-direction: column; }
.auth-showcase-brand strong { font-size: 18px; letter-spacing: -.025em; }
.auth-showcase-brand small { margin-top: 4px; color: rgba(255,255,255,.5); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.auth-showcase-copy { margin-top: clamp(54px, 9vh, 98px); max-width: 520px; }
.auth-kicker { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.62); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.auth-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #65e67d; box-shadow: 0 0 0 5px rgba(101,230,125,.11); }
.auth-showcase-copy h2 { margin: 22px 0 17px; font-size: clamp(42px, 5vw, 66px); line-height: .98; letter-spacing: -.065em; }
.auth-showcase-copy p { margin: 0; max-width: 470px; color: rgba(255,255,255,.56); font-size: 14px; line-height: 1.7; }
.auth-game-preview { margin-top: auto; display: grid; grid-template-columns: 1.22fr .78fr; gap: 12px; }
.auth-preview-card { position: relative; min-height: 142px; overflow: hidden; padding: 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; background: rgba(255,255,255,.065); backdrop-filter: blur(14px); }
.auth-preview-card::after { content: ""; position: absolute; inset: auto -30px -50px auto; width: 130px; height: 130px; border-radius: 50%; filter: blur(25px); opacity: .3; }
.auth-preview-snake::after { background: #68e777; } .auth-preview-pong::after { background: #9b8cff; }
.auth-preview-label { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; }
.auth-preview-label i { width: 6px; height: 6px; border-radius: 50%; background: #75ea83; } .auth-preview-pong .auth-preview-label i { background: #a798ff; }
.auth-preview-card > small { position: absolute; left: 16px; bottom: 14px; color: rgba(255,255,255,.45); font-size: 9px; font-weight: 700; }
.auth-mini-snake { position: absolute; right: 18px; top: 45px; width: 150px; height: 60px; }
.auth-mini-snake i, .auth-mini-snake b { position: absolute; width: 25px; height: 25px; border-radius: 8px; background: linear-gradient(145deg, #b7ff9e, #63d86c); }
.auth-mini-snake i:nth-child(1) { left: 0; bottom: 0; } .auth-mini-snake i:nth-child(2) { left: 29px; bottom: 0; } .auth-mini-snake i:nth-child(3) { left: 58px; bottom: 0; } .auth-mini-snake i:nth-child(4) { left: 87px; bottom: 0; }
.auth-mini-snake b { left: 87px; bottom: 29px; width: 29px; height: 29px; border-radius: 10px 10px 10px 5px; }
.auth-mini-pong { position: absolute; inset: 46px 18px 28px; border-block: 1px dashed rgba(255,255,255,.09); }
.auth-mini-pong i { position: absolute; width: 5px; height: 43px; top: 7px; border-radius: 9px; background: rgba(255,255,255,.9); }
.auth-mini-pong i:first-child { left: 2px; } .auth-mini-pong i:nth-child(2) { right: 2px; top: 18px; background: #aa9cff; }
.auth-mini-pong b { position: absolute; width: 11px; height: 11px; left: 48%; top: 15px; border-radius: 50%; background: #fff; box-shadow: 0 0 15px rgba(255,255,255,.5); }
.auth-showcase-footer { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.auth-orbit { position: relative; flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.auth-orbit i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.auth-orbit i:first-child { left: 4px; top: 7px; } .auth-orbit i:nth-child(2) { right: 5px; top: 15px; background: #a697ff; } .auth-orbit i:nth-child(3) { left: 18px; bottom: 5px; background: #74dfff; }
.auth-showcase-footer p { margin: 0; display: flex; flex-direction: column; } .auth-showcase-footer strong { font-size: 11px; } .auth-showcase-footer small { margin-top: 3px; color: rgba(255,255,255,.42); font-size: 9px; }
.auth-card { align-self: stretch; padding: clamp(34px, 5vw, 62px); display: flex; flex-direction: column; justify-content: center; background: var(--surface-strong); }
.auth-mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 42px; } .auth-mobile-brand .brand-mark { width: 38px; border-radius: 12px; } .auth-mobile-brand strong { font-size: 17px; letter-spacing: -.025em; }
.auth-card > .eyebrow { margin-bottom: 13px; } .auth-card h1 { max-width: 390px; margin-bottom: 15px; font-size: clamp(37px, 4vw, 51px); line-height: 1; letter-spacing: -.06em; }
.auth-intro { margin: 0 0 27px; max-width: 390px; color: var(--muted); font-size: 13px; line-height: 1.62; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; border-radius: 16px; background: var(--surface-muted); border: 1px solid var(--line); }
.auth-tabs button { appearance: none; border: 0; border-radius: 12px; padding: 10px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 750; cursor: pointer; transition: color .2s ease, background .2s ease, box-shadow .2s ease; }
.auth-tabs button.is-active { color: var(--text); background: var(--surface-strong); box-shadow: 0 5px 18px rgba(20,20,30,.08); }
.auth-form { display: grid; gap: 8px; margin-top: 19px; } .auth-form.is-hidden { display: none; }
.auth-form label { margin-top: 7px; font-size: 10px; font-weight: 850; color: var(--text); letter-spacing: .02em; }
.auth-form input { width: 100%; min-height: 48px; border: 1px solid var(--line-strong); border-radius: 15px; padding: 12px 14px; color: var(--text); background: var(--surface-muted); outline: none; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.auth-form input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); } .auth-form input:hover { background: var(--surface-strong); }
.auth-form input:focus { border-color: rgba(89,92,255,.72); background: var(--surface-strong); box-shadow: 0 0 0 4px rgba(89,92,255,.11); }
.auth-form small { color: var(--muted); font-size: 9px; } .auth-form .primary-button { width: 100%; min-height: 49px; margin-top: 13px; border-radius: 15px; }
.auth-security { min-height: 35px; margin-top: 15px; padding: 9px 11px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-muted); }
.auth-security > span { display: grid; place-items: center; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; color: #fff; background: #35ad56; font-size: 10px; font-weight: 900; }
.auth-message { min-height: 0; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; text-align: left; } .auth-message.is-error { color: #d64045; } .auth-message.is-success { color: #248a3d; }
@media (max-width: 900px) { .auth-shell { width: min(520px, 100%); min-height: auto; grid-template-columns: 1fr; } .auth-showcase { display: none; } .auth-card { min-height: min(690px, calc(100vh - 48px)); } .auth-mobile-brand { display: flex; } }
@media (max-width: 520px) { .auth-gate { padding: 10px; align-items: flex-start; } .auth-shell { margin-block: auto; border-radius: 27px; } .auth-card { min-height: calc(100vh - 20px); padding: 27px 22px; justify-content: center; } .auth-mobile-brand { margin-bottom: 33px; } .auth-card h1 { font-size: 39px; } .auth-intro { margin-bottom: 22px; } }

/* V11: echte serverbasierte Freundschaften */
.request-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.request-panel { padding: 20px; border-radius: var(--radius-xl); }
.request-count { display: grid; place-items: center; min-width: 28px; height: 28px; padding-inline: 8px; border-radius: 999px; color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, transparent); font-size: 11px; font-weight: 850; }
.request-list { display: flex; flex-direction: column; }
.request-row, .user-search-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 62px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.request-row:last-child, .user-search-row:last-child { border-bottom: 0; }
.request-copy { min-width: 0; display: flex; flex-direction: column; }
.request-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.request-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.request-actions { display: flex; align-items: center; gap: 7px; }
.request-actions .secondary-button { padding: 9px 11px; }
.friends-heading { margin: 0 0 14px; }
.friend-meta { display: flex; justify-content: space-between; gap: 10px; margin: -8px 0 18px; color: var(--muted); font-size: 10px; }
.friend-card-actions { align-items: center; gap: 8px; }
.friend-card-actions .challenge-button { flex: 1; }
.friend-card-actions .remove-friend-button { width: auto; padding-inline: 7px; color: var(--muted); }
.social-empty { grid-column: 1 / -1; min-height: 180px; padding: 28px; border-radius: var(--radius-xl); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.social-empty strong { font-size: 17px; }
.social-empty small { max-width: 430px; margin-top: 8px; color: var(--muted); line-height: 1.55; }
.friend-search-modal { width: min(94vw, 580px); }
.friend-search-modal > label { margin-top: 24px; }
.friend-search-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 8px; }
.friend-search-bar input { min-height: 46px; }
.friend-search-results { max-height: min(360px, 42vh); margin-top: 12px; overflow-y: auto; border-top: 1px solid var(--line); }
.user-search-row button { min-width: 116px; }
.search-empty { min-height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.search-empty strong { font-size: 13px; }
.search-empty small { max-width: 330px; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.5; }
button:disabled { cursor: default; opacity: .52; transform: none !important; }

@media (max-width: 860px) {
  .request-panels { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .request-row, .user-search-row { grid-template-columns: 36px minmax(0, 1fr); }
  .request-actions, .user-search-row > button { grid-column: 1 / -1; }
  .request-actions { justify-content: flex-end; }
  .user-search-row > button { width: 100%; }
  .friend-search-bar { grid-template-columns: 1fr; }
  .friend-card-actions { flex-wrap: wrap; }
}

/* V12: Pong Live-Multiplayer */
.pong-toolbar-options { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pong-toolbar-options .board-size-control { min-height: 48px; }
.pong-toolbar-options [hidden] { display: none !important; }
.multiplayer-card[hidden], .bot-card[hidden] { display: none !important; }
.multiplayer-card { display: flex; flex-direction: column; gap: 15px; }
.multiplayer-avatar { letter-spacing: -.04em; }
.multiplayer-help { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.multiplayer-friend-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.multiplayer-friend-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 58px; border-bottom: 1px solid var(--line); }
.multiplayer-friend-row:last-child { border-bottom: 0; }
.multiplayer-friend-row .leader-avatar { width: 32px; height: 32px; font-size: 10px; }
.multiplayer-friend-copy { min-width: 0; display: flex; flex-direction: column; }
.multiplayer-friend-copy strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.multiplayer-friend-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.multiplayer-empty { padding: 18px 5px 5px; text-align: center; color: var(--muted); font-size: 10px; line-height: 1.55; }
#pongConnectionDot { background: #e0a120; }
#pongConnectionDot.is-online { background: #35ad56; box-shadow: 0 0 0 5px rgba(53,173,86,.12); }
#pongConnectionDot.is-offline { background: #d64045; }
.challenge-modal { max-width: 430px; text-align: center; }
.challenge-symbol { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 19px; color: #fff; background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 65%, #111)); font-size: 24px; font-weight: 900; box-shadow: 0 18px 40px color-mix(in srgb, var(--accent) 24%, transparent); }
.challenge-modal h2 { margin: 7px 0 10px; font-size: 25px; letter-spacing: -.035em; }
.challenge-modal > p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }
.challenge-actions { justify-content: center; margin-top: 24px; }
.pong-overlay .primary-button.is-hidden { display: none; }
.pong-match-state b.multiplayer-badge { color: var(--accent); }
.friend-card-actions .challenge-button.is-live { border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.friend-card-actions .challenge-button.is-live::before { content: ''; width: 6px; height: 6px; margin-right: 7px; display: inline-block; border-radius: 50%; background: #35ad56; }

@media (max-width: 860px) {
  .pong-toolbar-options { width: 100%; }
  .pong-toolbar-options .board-size-control { flex: 1 1 250px; }
}

@media (max-width: 560px) {
  .pong-toolbar-options { display: grid; grid-template-columns: 1fr; }
  .multiplayer-friend-row { grid-template-columns: 32px minmax(0, 1fr); padding-block: 8px; }
  .multiplayer-friend-row button { grid-column: 1 / -1; width: 100%; }
  .challenge-actions { display: grid; grid-template-columns: 1fr; }
}

/* V13: Reaction – vier Runden und serverbasierte Millisekunden-Rangliste */
.reaction-tile { color: #fff; background: radial-gradient(circle at 50% 42%, rgba(255,186,72,.22), transparent 34%), linear-gradient(145deg, #3a2815, #1b1712 58%, #111114); }
.reaction-live { color: #ffe8bd; background: rgba(255,177,54,.12); border-color: rgba(255,190,82,.16); }
.reaction-live i { background: #ffb33f; box-shadow: 0 0 0 4px rgba(255,179,63,.12); }
.reaction-art { position: absolute; inset: 25% 15% 27%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; filter: none; }
.reaction-art i { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,218,155,.54)); }
.reaction-art i:last-child { background: linear-gradient(90deg, rgba(255,218,155,.54), transparent); }
.reaction-art b { display: grid; place-items: center; width: 86px; height: 86px; border-radius: 28px; color: #1c160c; background: linear-gradient(145deg, #fff1b8, #ffb33f); font-size: 42px; box-shadow: 0 0 0 12px rgba(255,181,63,.07), 0 25px 60px rgba(255,159,20,.2); }
.reaction-test-chip { display: flex; align-items: center; gap: 10px; padding: 7px 13px 7px 8px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-soft); }
.reaction-test-chip span { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 11px; color: #251805; background: linear-gradient(145deg, #ffe69a, #ffae36); font-size: 14px; font-weight: 900; }
.reaction-test-chip small { color: var(--muted); font-size: 10px; font-weight: 750; }
.reaction-icon { color: #261a08; background: linear-gradient(145deg, #ffeaa7, #ffad36); }
.reaction-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.reaction-board-card { min-width: 0; padding: 14px; border-radius: var(--radius-xl); }
.reaction-hud { height: 68px; padding: 0 13px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.reaction-hud-center { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.reaction-hud-center span { width: 8px; height: 8px; border-radius: 50%; background: #8e8e93; transition: background .2s ease, box-shadow .2s ease; }
.reaction-hud-center span.is-waiting { background: #ff9f0a; box-shadow: 0 0 0 5px rgba(255,159,10,.12); }
.reaction-hud-center span.is-ready { background: #30d158; box-shadow: 0 0 0 6px rgba(48,209,88,.14); }
.reaction-hud-center span.is-result { background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 14%, transparent); }
.reaction-hud-center small { font-size: 11px; font-weight: 750; }
.reaction-stage { position: relative; min-height: clamp(420px, 58vh, 620px); overflow: hidden; border: 1px solid rgba(255,255,255,.065); border-radius: 25px; background: #0c1019; isolation: isolate; box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 20px 52px rgba(3,5,10,.18); }
.reaction-stage::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.055) .7px, transparent .7px); background-size: 25px 25px; mask-image: radial-gradient(circle at center, black, transparent 82%); pointer-events: none; }
.reaction-pad { position: absolute; inset: 0; z-index: 1; width: 100%; border: 0; padding: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(255,255,255,.88); background: radial-gradient(circle at 50% 40%, rgba(101,93,226,.12), transparent 38%), transparent; cursor: pointer; touch-action: manipulation; transition: background .12s linear, color .12s linear, transform .12s ease; }
.reaction-pad small { position: relative; z-index: 2; margin-bottom: 10px; color: rgba(255,255,255,.45); font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.reaction-pad strong { position: relative; z-index: 2; max-width: 620px; font-size: clamp(36px, 5vw, 68px); line-height: .97; letter-spacing: -.06em; text-align: center; }
.reaction-pad > span:not(.reaction-pulse) { position: relative; z-index: 2; max-width: 430px; margin-top: 15px; color: rgba(255,255,255,.48); font-size: 13px; line-height: 1.55; text-align: center; }
.reaction-pulse { position: absolute; width: min(42vw, 330px); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.018), 0 0 0 110px rgba(255,255,255,.01); opacity: .75; }
.reaction-pad[data-state="waiting"] .reaction-pulse { animation: reactionBreathe 1.75s ease-in-out infinite; }
.reaction-pad[data-state="ready"] { color: #07140b; background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.34), transparent 35%), linear-gradient(145deg, #b7ff8f, #43df74 58%, #21ba72); transform: scale(1.002); }
.reaction-pad[data-state="ready"] small, .reaction-pad[data-state="ready"] > span:not(.reaction-pulse) { color: rgba(4,42,17,.58); }
.reaction-pad[data-state="ready"] .reaction-pulse { border-color: rgba(0,66,25,.12); box-shadow: 0 0 0 55px rgba(255,255,255,.13), 0 0 0 110px rgba(255,255,255,.07); animation: reactionSignal .6s ease-out infinite; }
.reaction-pad[data-state="result"] { background: radial-gradient(circle at 50% 40%, rgba(137,121,255,.24), transparent 40%), transparent; }
.reaction-pad[data-state="false-start"] { background: radial-gradient(circle at 50% 40%, rgba(255,69,58,.32), transparent 42%), linear-gradient(145deg, #2a1114, #120d12); }
.reaction-pad[data-state="false-start"] small { color: #ff9b94; }
@keyframes reactionBreathe { 0%,100% { transform: scale(.92); opacity: .35; } 50% { transform: scale(1.06); opacity: .9; } }
@keyframes reactionSignal { from { transform: scale(.62); opacity: .9; } to { transform: scale(1.2); opacity: .12; } }
.reaction-overlay { z-index: 3; background: rgba(9,12,19,.84); }
.reaction-overlay .eyebrow { color: #ffc568; }
.reaction-overlay-mark { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.reaction-overlay-mark i { width: 42px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,199,102,.58)); }
.reaction-overlay-mark i:last-child { background: linear-gradient(90deg, rgba(255,199,102,.58), transparent); }
.reaction-overlay-mark b { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; color: #211505; background: linear-gradient(145deg, #ffecaa, #ffad36); font-size: 27px; }
.reaction-side-panel { display: flex; flex-direction: column; gap: 18px; }
.reaction-best-chip { min-width: 72px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--accent); background: var(--surface-muted); font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.reaction-round-list { display: grid; gap: 7px; margin: 16px 0; }
.reaction-round-row { min-height: 44px; padding: 8px 10px; display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-muted); }
.reaction-round-row > span:first-child { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; color: var(--muted); background: var(--surface-strong); font-size: 10px; font-weight: 850; }
.reaction-round-row div { display: flex; flex-direction: column; min-width: 0; }
.reaction-round-row strong { font-size: 11px; }
.reaction-round-row small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.reaction-round-row > b { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.reaction-round-row.is-complete > span:first-child { color: #fff; background: var(--accent); }
.reaction-round-row.is-false > span:first-child { background: var(--danger); }
.reaction-round-row.is-false > b { color: var(--danger); }
.reaction-filter { margin-bottom: 8px; }
.reaction-filter button { padding-block: 8px; }
.reaction-leaderboard .leader-row > strong { color: var(--accent); }
.reaction-empty { min-height: 110px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; text-align: center; line-height: 1.5; }

@media (max-width: 1180px) {
  .reaction-layout { grid-template-columns: 1fr; }
  .reaction-side-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .reaction-side-panel { grid-template-columns: 1fr; }
  .reaction-board-card { padding: 10px; }
  .reaction-stage { min-height: min(58vh, 500px); border-radius: 20px; }
  .reaction-pad { padding: 22px; }
  .reaction-test-chip small { display: none; }
}

@media (max-width: 520px) {
  .reaction-hud { height: 62px; padding-inline: 7px; }
  .reaction-hud .hud-score strong { font-size: 19px; }
  .reaction-hud-center small { font-size: 10px; }
  .reaction-stage { min-height: 430px; }
  .reaction-pad strong { font-size: 39px; }
  .reaction-overlay { padding: 20px; }
  .reaction-overlay h3 { font-size: 38px; }
  .reaction-art b { width: 70px; height: 70px; border-radius: 23px; font-size: 34px; }
}

/* V14: gemeinsame Bestenlisten, Freundesprofile und Easter Egg */
.leaderboard-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.leaderboard-toolbar > div { display: grid; gap: 7px; }
.toolbar-label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.leaderboard-context { color: var(--muted); font-size: 12px; margin: 4px 0 18px; }
.leaderboard-empty { padding: 34px 18px; border: 1px dashed var(--line-strong); border-radius: 18px; text-align: center; display: grid; gap: 6px; }
.leaderboard-empty strong { font-size: 14px; }
.leaderboard-empty small { color: var(--muted); }
.profile-header-actions { display: flex; gap: 9px; align-items: center; }
.achievement-count { min-width: 62px; padding: 7px 10px; border-radius: 999px; background: var(--surface-muted); border: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 750; text-align: center; }
.achievement.is-secret.is-unlocked { background: color-mix(in srgb, var(--accent) 12%, var(--surface-muted)); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.friend-card-actions .profile-friend-button,
.friend-card-actions .challenge-button { flex: 1; }
.friend-card-actions .profile-friend-button { min-width: 108px; }

.easter-egg-active .brand-mark { animation: plyvio-secret-logo .65s ease-in-out infinite alternate; }
.easter-egg-active .ambient-one { animation: plyvio-secret-ambient 1.6s ease-in-out infinite alternate; }
.easter-egg-burst { position: fixed; z-index: 100; inset: 0; pointer-events: none; overflow: hidden; }
.easter-egg-burst::before { content: 'P'; position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; display: grid; place-items: center; transform: translate(-50%, -50%); border-radius: 28px; background: var(--accent); color: white; font-size: 40px; font-weight: 850; box-shadow: 0 0 0 18px color-mix(in srgb, var(--accent) 12%, transparent), 0 20px 60px color-mix(in srgb, var(--accent) 45%, transparent); animation: plyvio-secret-core 1.05s ease both; }
.easter-egg-burst i { --angle: calc(var(--i) * 15deg); position: absolute; left: 50%; top: 50%; width: 10px; height: 24px; border-radius: 999px; background: var(--accent); transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-30px); animation: plyvio-secret-ray 1.45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 12ms); }
@keyframes plyvio-secret-logo { to { transform: rotate(-7deg) scale(1.08); filter: saturate(1.4) brightness(1.12); } }
@keyframes plyvio-secret-ambient { to { transform: translate(24px, -18px) scale(1.18); opacity: .8; } }
@keyframes plyvio-secret-core { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.2) rotate(-18deg); } 45% { opacity: 1; transform: translate(-50%, -50%) scale(1.12) rotate(5deg); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(.88); } }
@keyframes plyvio-secret-ray { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-20px) scale(.3); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-310px) scale(.8); } }

@media (max-width: 760px) {
  .leaderboard-toolbar { align-items: stretch; flex-direction: column; }
  .leaderboard-toolbar .segmented-control { width: 100%; }
  .profile-header-actions { width: 100%; }
  .profile-header-actions button { flex: 1; }
}

/* V15: offizielles Plyvio Branding und überarbeiteter Auth-Bereich */
.brand-icon {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 9px 16px rgba(28, 132, 245, .16));
  transition: transform .25s cubic-bezier(.2,.8,.2,1), filter .25s ease;
}
.brand-mark-only { padding: 2px; border-radius: 16px; }
.brand-mark-only:hover .brand-icon { transform: translateY(-1px) scale(1.035); filter: drop-shadow(0 12px 22px rgba(28, 132, 245, .24)); }
.mobile-header .brand-icon { width: 42px; height: 42px; }

.theme-wordmark { display: block; line-height: 0; }
.theme-wordmark img { display: block; width: 100%; height: auto; }
.theme-wordmark .logo-for-dark { display: none; }
html[data-theme="dark"] .theme-wordmark .logo-for-light { display: none; }
html[data-theme="dark"] .theme-wordmark .logo-for-dark { display: block; }
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] .theme-wordmark .logo-for-light { display: none; }
  html[data-theme="auto"] .theme-wordmark .logo-for-dark { display: block; }
}
.brand-wordmark { display: block; width: min(210px, 47%); height: auto; object-fit: contain; }
.hub-wordmark { width: clamp(118px, 11vw, 158px); margin: 0 0 20px; }
.hub-hero h1 { max-width: 820px; }

body.auth-locked .app-shell { filter: blur(14px) saturate(.78); opacity: .16; }
.auth-gate {
  --auth-grid-x: 0px;
  --auth-grid-y: 0px;
  --auth-one-x: 0px;
  --auth-one-y: 0px;
  --auth-two-x: 0px;
  --auth-two-y: 0px;
  --auth-three-x: 0px;
  --auth-three-y: 0px;
  isolation: isolate;
  background: linear-gradient(145deg, rgba(242,245,251,.92), rgba(234,239,248,.82));
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
}
[data-theme="dark"] .auth-gate { background: linear-gradient(145deg, rgba(5,7,13,.94), rgba(10,12,21,.9)); }
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] .auth-gate { background: linear-gradient(145deg, rgba(5,7,13,.94), rgba(10,12,21,.9)); }
}
.auth-motion-layer { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.auth-grid {
  position: absolute;
  inset: -8%;
  opacity: .34;
  background-image:
    linear-gradient(rgba(78,92,135,.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78,92,135,.075) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 50% 46%, black 0%, rgba(0,0,0,.62) 43%, transparent 79%);
  transform: translate3d(var(--auth-grid-x), var(--auth-grid-y), 0);
  transition: transform .9s cubic-bezier(.2,.8,.2,1);
}
[data-theme="dark"] .auth-grid { opacity: .22; }
.auth-orb { position: absolute; border-radius: 50%; will-change: transform; transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.auth-orb i { position: absolute; inset: 0; border-radius: inherit; animation: authPulse 9s ease-in-out infinite alternate; }
.auth-orb-one { width: min(48vw, 680px); aspect-ratio: 1; left: -15vw; top: -23vw; transform: translate3d(var(--auth-one-x), var(--auth-one-y), 0); }
.auth-orb-one i { background: radial-gradient(circle at 58% 62%, rgba(55,155,255,.25), rgba(87,87,230,.13) 43%, transparent 72%); }
.auth-orb-two { width: min(42vw, 590px); aspect-ratio: 1; right: -14vw; bottom: -23vw; transform: translate3d(var(--auth-two-x), var(--auth-two-y), 0); }
.auth-orb-two i { animation-delay: -3.5s; background: radial-gradient(circle at 35% 32%, rgba(94,224,210,.18), rgba(72,110,255,.13) 42%, transparent 72%); }
.auth-orb-three { width: 380px; height: 380px; left: 57%; top: 7%; opacity: .42; transform: translate3d(var(--auth-three-x), var(--auth-three-y), 0); }
.auth-orb-three i { animation-delay: -6s; background: radial-gradient(circle, rgba(125,103,255,.17), transparent 69%); }
@keyframes authPulse { from { opacity: .68; transform: scale(.94); } to { opacity: 1; transform: scale(1.06); } }

.auth-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  min-height: min(704px, calc(100vh - 48px));
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, .92fr);
  border-color: rgba(255,255,255,.38);
  border-radius: 34px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 38px 110px rgba(23,32,56,.2), 0 1px 0 rgba(255,255,255,.7) inset;
  backdrop-filter: blur(30px) saturate(125%);
  -webkit-backdrop-filter: blur(30px) saturate(125%);
}
[data-theme="dark"] .auth-shell { background: rgba(20,22,30,.9); border-color: rgba(255,255,255,.1); box-shadow: 0 42px 120px rgba(0,0,0,.52); }
.auth-showcase {
  padding: 42px;
  background:
    radial-gradient(circle at 82% 15%, rgba(51,151,255,.23), transparent 31%),
    radial-gradient(circle at 16% 88%, rgba(78,226,203,.12), transparent 33%),
    linear-gradient(150deg, #111725 0%, #0c111c 48%, #070a11 100%);
}
.auth-showcase::before { opacity: .22; background-size: 30px 30px; }
.auth-showcase::after { opacity: .75; }
.auth-showcase-brand { min-height: 55px; }
.auth-showcase-copy { margin-top: clamp(46px, 7vh, 78px); }
.auth-showcase-copy h2 { margin-top: 20px; font-size: clamp(45px, 5.2vw, 69px); line-height: .94; }
.auth-showcase-copy p { max-width: 490px; color: rgba(246,248,255,.62); font-size: 14px; }
.auth-kicker { color: rgba(246,248,255,.58); }
.auth-game-preview { gap: 13px; }
.auth-preview-card { min-height: 148px; background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.085); }
.auth-showcase-footer strong { font-size: 11px; font-weight: 700; }
.auth-showcase-footer small { font-size: 9px; }

.auth-card { padding: clamp(38px, 5vw, 64px); background: color-mix(in srgb, var(--surface-strong) 95%, transparent); }
.auth-mobile-brand { width: 166px; margin-bottom: 36px; }
.auth-heading-stage { min-height: 154px; }
.auth-card > .auth-heading-stage .eyebrow { margin-bottom: 14px; }
.auth-card h1 { max-width: 420px; margin-bottom: 14px; font-size: clamp(38px, 4vw, 50px); }
.auth-intro { max-width: 410px; margin-bottom: 0; font-size: 13px; }
.auth-tabs { margin-top: 5px; }
.auth-form-stage { position: relative; min-height: 343px; }
.auth-form-stage .auth-form {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 19px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .18s ease, transform .22s ease, visibility 0s linear;
}
.auth-form-stage .auth-form.is-hidden {
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .14s ease, transform .18s ease, visibility 0s linear .18s;
}
.auth-form-stage .auth-form .primary-button { margin-top: auto; }
.auth-security { margin-top: 14px; }

.challenge-symbol { overflow: hidden; padding: 0; background: transparent; }
.challenge-symbol img { width: 100%; height: 100%; object-fit: contain; }
.easter-egg-active .brand-icon { animation: plyvio-secret-logo .65s ease-in-out infinite alternate; }
.easter-egg-burst::before {
  content: '';
  background: var(--surface-strong) url('./brand/plyvio-mark.png') center / 82% no-repeat;
  box-shadow: 0 0 0 18px color-mix(in srgb, var(--accent) 12%, transparent), 0 20px 60px color-mix(in srgb, var(--accent) 45%, transparent);
}

@media (max-width: 900px) {
  .auth-shell { width: min(540px, 100%); min-height: auto; }
  .auth-card { min-height: min(724px, calc(100vh - 48px)); }
  .auth-mobile-brand { display: block; }
}
@media (max-width: 520px) {
  .auth-card { min-height: calc(100vh - 20px); padding: 25px 21px; }
  .auth-mobile-brand { width: 145px; margin-bottom: 26px; }
  .auth-heading-stage { min-height: 142px; }
  .auth-card h1 { font-size: 38px; }
  .auth-form-stage { min-height: 338px; }
  .auth-orb-three { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-grid, .auth-orb, .auth-orb i { transform: none !important; animation: none !important; transition: none !important; }
}

/* V16: Orblynt – Plyvio Original */
:root {
  --orblynt-bg: #07121b;
  --orblynt-grid: rgba(255,255,255,.055);
  --orblynt-player: #f5f8ff;
  --orblynt-opponent: #71d7ff;
  --orblynt-core: #ffffff;
  --orblynt-gate: #6ee7c6;
  --orblynt-accent: #5d88ff;
}

.orblynt-tile {
  grid-column: 1 / -1;
  min-height: 270px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 120%, rgba(93,136,255,.32), transparent 52%),
    radial-gradient(circle at 84% 8%, rgba(110,231,198,.14), transparent 32%),
    linear-gradient(145deg, #0b1822, #071017 72%);
}
.orblynt-live { background: rgba(109,232,198,.12); color: #b9ffec; border-color: rgba(109,232,198,.24); }
.orblynt-live i { background: #6ee7c6; box-shadow: 0 0 0 5px rgba(110,231,198,.12); }
.orblynt-art { position: absolute; inset: 52px 15% 76px; display: flex; align-items: center; justify-content: center; gap: 22%; pointer-events: none; }
.orblynt-art::before, .orblynt-art::after { content: ''; position: absolute; left: 50%; top: 50%; width: 38%; height: 1px; background: linear-gradient(90deg, transparent, rgba(113,215,255,.45), transparent); transform: translate(-50%, -50%); }
.orblynt-art::after { width: 24%; transform: translate(-50%, -50%) rotate(12deg); opacity: .55; }
.orblynt-art .rift { width: 16px; height: 108px; border: 3px solid rgba(110,231,198,.82); border-radius: 999px; box-shadow: 0 0 26px rgba(110,231,198,.33), inset 0 0 18px rgba(110,231,198,.12); }
.orblynt-art .rift-left { transform: rotate(-7deg); }
.orblynt-art .rift-right { transform: rotate(7deg); }
.orblynt-art .drift-core { width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: 0 0 18px rgba(255,255,255,.82), 0 0 46px rgba(113,215,255,.48); z-index: 2; animation: orblyntCoreFloat 3.8s ease-in-out infinite; }
.orblynt-art b { position: absolute; width: 210px; height: 210px; border: 1px solid rgba(113,215,255,.13); border-radius: 50%; box-shadow: 0 0 0 42px rgba(113,215,255,.025), 0 0 0 84px rgba(110,231,198,.018); }
@keyframes orblyntCoreFloat { 0%,100% { transform: translate(-18px, 7px); } 50% { transform: translate(20px, -9px); } }

.orblynt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.orblynt-board-card { border-radius: var(--radius-xl); overflow: hidden; min-width: 0; }
.orblynt-hud { min-height: 82px; padding: 15px 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--border); }
.orblynt-match-state { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px 9px; max-width: 380px; }
.orblynt-match-state > span:first-child { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.orblynt-match-state > span:first-child.is-running { background: #36d399; box-shadow: 0 0 0 5px rgba(54,211,153,.11); }
.orblynt-match-state > span:first-child.is-paused { background: #f3b64a; }
.orblynt-match-state small { color: var(--muted); font-size: 12px; }
.orblynt-match-state b { padding: 5px 8px; border-radius: 999px; background: var(--chip); color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .01em; }
.orblynt-stage { position: relative; aspect-ratio: 1000 / 620; background: var(--orblynt-bg); overflow: hidden; }
.orblynt-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.orblynt-overlay { background: linear-gradient(180deg, rgba(6,14,22,.32), rgba(6,14,22,.78)); color: #fff; }
.orblynt-overlay-mark { width: 112px; height: 56px; position: relative; display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.orblynt-overlay-mark i { width: 8px; height: 48px; border: 2px solid #6ee7c6; border-radius: 99px; box-shadow: 0 0 18px rgba(110,231,198,.38); }
.orblynt-overlay-mark b { width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 0 24px rgba(113,215,255,.75); }
.orblynt-side-panel { display: grid; gap: 18px; }
.orblynt-control-visual { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; margin: 18px 0 12px; }
.orblynt-control-visual kbd { min-width: 38px; text-align: center; }
.orblynt-control-visual kbd:nth-of-type(3) { grid-column: 1 / 2; min-width: 76px; }
.orblynt-control-visual span:last-child { grid-column: 2 / 4; }
.orblynt-pulse-button { background: linear-gradient(135deg, #547dff, #48b7d5); }
.orblynt-bot-avatar { background: linear-gradient(145deg, #122738, #204b61); color: #9deaff; }
.orblynt-rules-card ol { margin: 14px 0 0; padding-left: 20px; color: var(--muted); display: grid; gap: 9px; }
.orblynt-icon { background: linear-gradient(145deg, #102331, #224e62); color: #a5edff; }
.orblynt-challenge-symbol span { display: grid; place-items: center; width: 100%; height: 100%; font-size: 27px; color: #7de8ce; }

@media (max-width: 1180px) {
  .orblynt-layout { grid-template-columns: 1fr; }
  .orblynt-side-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .orblynt-rules-card { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .orblynt-hud { padding: 11px 13px; min-height: 72px; }
  .orblynt-match-state b:nth-of-type(2), .orblynt-match-state b:nth-of-type(3) { display: none; }
  .orblynt-side-panel { grid-template-columns: 1fr; }
  .orblynt-rules-card { grid-column: auto; }
  .orblynt-tile { min-height: 300px; }
}
@media (max-width: 520px) {
  .orblynt-art { inset-inline: 6%; gap: 24%; }
  .orblynt-stage { aspect-ratio: 1 / .74; }
  .orblynt-hud .pong-player-label strong { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .orblynt-art .drift-core { animation: none; } }
