/* BLAF Arcade: Press Start 2P with full-size accented capitals (built by tools/font/build_font.py; OFL, see fonts/OFL-press-start-2p.txt) */
@font-face { font-family: 'BLAF Arcade'; src: url('/fonts/blaf-arcade.woff2') format('woff2'); font-display: block; }
/* BLAF — "LIFE OS × ARCADE".
   Vaporwave sky + neon grid floor + windowed panels with coloured title bars (Life OS),
   mixed with the arcade HUD: HI-SCORE / 1UP / 2UP, red+yellow outlined title, START menu, player-select bubbles.
   Six colour worlds change the sky; the window frames stay pink / cyan / yellow / red / lime. */
:root {
  --hot: #ff2fb9; --pink: #ff4fc3; --purple: #8a4bff; --violet: #9b6bff; --blue: #3b7bff; --cyan: #2fe3f5;
  --yellow: #ffd93b; --orange: #ff9f1c; --red: #ff3b30; --lime: #9bff6b; --mint: #52f0b0;
  --night: #1a1038;                     /* deep violet used for every outline + dark panel */
  --panel: #1b1038; --panel2: #271658;
  --px: 'BLAF Arcade', monospace;    /* titles, buttons */
  --mono: 'VT323', monospace;           /* labels, meta (VCR OSD feel) */
  --body: 'Rubik', system-ui, -apple-system, sans-serif;
  --spring: cubic-bezier(.2, 1.5, .4, 1);
}

/* ---------- colour worlds (the sky) ---------- */
#app { --s1: #ff2fb9; --s2: #8a4bff; --s3: #2fb8ff; --sun: #ffd93b; --glow: #ff2fb9; }
.world-home     { --s1: #ff2fb9; --s2: #8a4bff; --s3: #2fb8ff; --sun: #ffd93b; --glow: #ff2fb9; }
.world-party    { --s1: #ffb81a; --s2: #ff3b8a; --s3: #8a2bff; --sun: #ffe45e; --glow: #ff3b8a; }
.world-quiz     { --s1: #2fe3f5; --s2: #3b7bff; --s3: #8a4bff; --sun: #52f0b0; --glow: #3b7bff; }
.world-comp     { --s1: #ff3b30; --s2: #e11ee8; --s3: #4b2cff; --sun: #ff9f1c; --glow: #e11ee8; }
.world-creative { --s1: #9bff6b; --s2: #2fe3f5; --s3: #3b7bff; --sun: #ffd93b; --glow: #2fe3f5; }
.world-social   { --s1: #ff4fc3; --s2: #9b6bff; --s3: #3b7bff; --sun: #ffd93b; --glow: #9b6bff; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overscroll-behavior: none; background: #8a4bff; }
body { font-family: var(--body); font-weight: 600; font-size: 16px; line-height: 1.35; color: #fff; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { touch-action: manipulation; user-select: none; -webkit-user-select: none; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--px); font-weight: 400; line-height: 1.35; text-transform: uppercase; text-shadow: 3px 3px 0 var(--night); }
h1 { font-size: 20px; } h2 { font-size: 13px; }
b, strong { font-weight: 800; }

/* ---------- shell: sky + neon grid floor + scanlines ---------- */
#app {
  position: relative; height: 100dvh; width: 100%; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 50% 24%, color-mix(in srgb, var(--sun) 55%, transparent), transparent 38%), linear-gradient(180deg, var(--s1), var(--s2) 52%, var(--s3));
}
#app::before { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(26, 16, 56, .1) 0 2px, transparent 2px 4px); }
#app::after {
  content: ''; position: absolute; left: -60%; right: -60%; bottom: 0; height: 42%; z-index: 0; pointer-events: none; transform: perspective(260px) rotateX(64deg); transform-origin: bottom;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 2px, transparent 2px 56px), repeating-linear-gradient(0deg, rgba(255, 255, 255, .5) 0 2px, transparent 2px 44px);
  -webkit-mask-image: linear-gradient(transparent, #000 75%); mask-image: linear-gradient(transparent, #000 75%); opacity: .55;
}
#scroller { position: relative; z-index: 1; height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
#scroller::-webkit-scrollbar { display: none; }
.screen { min-height: 100%; display: flex; flex-direction: column; }
#top { position: sticky; top: 0; z-index: 5; padding: calc(env(safe-area-inset-top) + 12px) 16px 6px; background: linear-gradient(color-mix(in srgb, var(--s1) 70%, transparent), transparent); }
#body { flex: 1; padding: 6px 16px 26px; display: flex; flex-direction: column; gap: 18px; }
.has-tabs #body { padding-bottom: 104px; }
#dock { position: sticky; bottom: 0; z-index: 5; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px calc(env(safe-area-inset-bottom) + 14px); background: linear-gradient(transparent, color-mix(in srgb, var(--s3) 78%, transparent) 50%); }
#dock.empty { padding: 0 0 env(safe-area-inset-bottom); background: none; }
@media (min-width: 640px) {
  body { display: grid; place-items: center; min-height: 100dvh; background: radial-gradient(circle at 20% 20%, #ff2fb9, transparent 45%), radial-gradient(circle at 80% 80%, #2fe3f5, transparent 45%), #1a1038; }
  #app { width: 410px; height: min(880px, calc(100dvh - 40px)); border-radius: 36px; box-shadow: 0 0 0 5px #1a1038, 0 0 0 9px var(--yellow), 0 0 0 13px #1a1038, 0 30px 90px rgba(255, 47, 185, .5); }
}

/* ---------- motion ---------- */
.enter .pop { animation: pop .5s var(--spring) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.94); } }
@keyframes fade { from { opacity: 0; } } @keyframes slide-up { from { transform: translateY(100%); } }
@keyframes flip-in { from { transform: perspective(800px) rotateY(90deg) scale(.95); } }
@keyframes shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } } @keyframes dots { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes pulse { 50% { transform: scale(1.1); } }
@keyframes fall { to { transform: translate(var(--x), 105vh) rotate(var(--r)); } }
@keyframes floaty { 50% { transform: translateY(-10px) rotate(3deg); } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes rise { from { transform: translateY(0) scale(.6); opacity: 1; } to { transform: translateY(-260px) scale(1.5); opacity: 0; } }
@keyframes glowpulse { 50% { filter: brightness(1.25) drop-shadow(0 0 10px var(--yellow)); } }
.shake { animation: shake .4s ease; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition: none !important; } }

/* ---------- primitives ---------- */
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; gap: 8px; } .row.two > * { flex: 1; }
.grow { flex: 1; min-width: 0; } .stack { display: flex; flex-direction: column; gap: 14px; }
.center { text-align: center; } .center-col { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.muted { opacity: .75; } .small { font-family: var(--mono); font-size: 18px; line-height: 1.1; }
.hint { font-family: var(--mono); font-size: 17px; opacity: .85; margin-top: 6px; line-height: 1.1; }
.error { font-family: var(--mono); font-size: 18px; background: var(--red); border: 2px solid var(--night); border-radius: 8px; padding: 6px 10px; } .error:empty { display: none; }
label { display: block; font-family: var(--px); font-size: 9px; text-transform: uppercase; margin-bottom: 9px; text-shadow: 2px 2px 0 var(--night); }
.sect { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: -6px; }
.sect button { font-family: var(--mono); font-size: 19px; text-decoration: underline; text-underline-offset: 3px; text-shadow: 2px 2px 0 var(--night); }
.lead { font-family: var(--mono); font-size: 22px; line-height: 1.05; text-shadow: 2px 2px 0 var(--night); }

/* ---------- windows (Life OS panels) ---------- */
.win, .card, .glass {
  --fr: var(--pink); position: relative; background: var(--panel); border: 3px solid var(--fr); border-radius: 16px; color: #fff;
  box-shadow: 0 0 0 3px var(--night), 0 12px 0 -2px rgba(26, 16, 56, .45), 0 0 30px color-mix(in srgb, var(--fr) 45%, transparent);
}
.win > header, .card-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; background: var(--fr); color: var(--night); font-family: var(--px); font-size: 11px; text-transform: uppercase; }
.win > header i, .card-title span { font-style: normal; font-family: var(--mono); font-size: 18px; letter-spacing: .02em; opacity: .75; text-shadow: none; text-transform: none; }
.win > header b { font-weight: 400; }
.win-b { padding: 14px; }
.card, .glass { padding: 14px; } .card > .card-title { margin: -14px -14px 0; border-radius: 12px 12px 0 0; }
.card.stack > .card-title { margin-bottom: 0; }
.w-pink { --fr: var(--pink); } .w-cyan, .card:nth-child(3n+2) { --fr: var(--cyan); } .w-yellow, .card:nth-child(3n) { --fr: var(--yellow); } .w-purple { --fr: var(--violet); } .w-red { --fr: var(--red); } .w-lime { --fr: var(--lime); }
.paper { background: #fff; color: var(--night); border-radius: 16px; padding: 18px; border: 3px solid var(--night); }

/* ---------- buttons (arcade keys) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 18px; border-radius: 12px; background: #fff; color: var(--night); border: 3px solid var(--night);
  font-family: var(--px); font-size: 11px; line-height: 1.3; text-transform: uppercase; box-shadow: 0 5px 0 var(--night); transition: transform .08s, box-shadow .08s;
}
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--night); }
.btn:disabled { opacity: .45; } .btn.block { width: 100%; } .btn.lg { padding: 17px 20px; } .btn.xl { padding: 20px 18px; font-size: 13px; }
.btn.primary { background: var(--cyan); }
.btn.go { background: linear-gradient(180deg, #ffe97a, var(--yellow) 45%, var(--orange)); box-shadow: 0 5px 0 var(--night), 0 0 26px rgba(255, 217, 59, .75), inset 0 3px 0 rgba(255, 255, 255, .6); animation: glowpulse 2.4s ease-in-out infinite; }
.btn.go:active:not(:disabled) { box-shadow: 0 1px 0 var(--night), 0 0 26px rgba(255, 217, 59, .75); }
.btn.skip { background: var(--panel2); color: #fff; }
.row.two .btn.go { background: linear-gradient(180deg, #c9ff9e, var(--lime) 50%, #52d98a); box-shadow: 0 5px 0 var(--night), 0 0 26px rgba(155, 255, 107, .7), inset 0 3px 0 rgba(255, 255, 255, .6); animation: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 9px 11px; border-radius: 8px; background: #fff; color: var(--night); border: 2px solid var(--night); font-family: var(--px); font-size: 8px; text-transform: uppercase; box-shadow: 0 3px 0 var(--night); white-space: nowrap; transition: transform .08s, box-shadow .08s; }
.pill:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--night); } .pill.red { background: var(--red); color: #fff; } .pill.light { background: var(--cyan); color: var(--night); }
.link { font-family: var(--mono); font-size: 19px; text-decoration: underline; text-underline-offset: 3px; padding: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 10px; background: #fff; color: var(--night); border: 3px solid var(--night); box-shadow: 0 4px 0 var(--night); font-weight: 900; font-size: 18px; display: grid; place-items: center; flex: none; }
.icon-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--night); }

.input { width: 100%; border: 3px solid var(--night); border-radius: 10px; padding: 14px 14px; background: #fff; color: var(--night); outline: none; font-weight: 700; font-size: 17px; caret-color: var(--hot); box-shadow: inset 0 3px 0 rgba(26, 16, 56, .12); }
.input::placeholder { color: #8f7bc0; font-weight: 600; } .input:focus { box-shadow: 0 0 0 4px var(--yellow); }
textarea.input { min-height: 110px; resize: vertical; }
.code-input { font-family: var(--px); letter-spacing: .25em; font-size: 15px; text-align: center; text-transform: uppercase; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button, .seg label span { display: inline-block; padding: 9px 12px; border-radius: 8px; background: var(--panel2); color: #fff; border: 2px solid var(--night); box-shadow: 0 3px 0 var(--night); font-family: var(--mono); font-size: 19px; line-height: 1; transition: transform .08s, box-shadow .08s; }
.seg button:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--night); }
.seg button.on, .seg input:checked + span { background: var(--yellow); color: var(--night); }
.seg button:disabled { cursor: default; } .seg button:disabled:not(.on) { opacity: .5; }
.seg label { margin: 0; font: inherit; text-transform: none; text-shadow: none; }
.seg input, .swatches input, .emoji-pick input, .banner-pick input, .lie-pick input { position: absolute; opacity: 0; pointer-events: none; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; } .swatches label { margin: 0; }
.swatches span { display: block; width: 42px; height: 42px; border-radius: 10px; border: 3px solid var(--night); box-shadow: 0 3px 0 var(--night); } .swatches input:checked + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.setting label { margin-bottom: 8px; }
.tag { display: inline-flex; border-radius: 6px; padding: 3px 8px; background: var(--panel2); border: 2px solid var(--night); font-family: var(--mono); font-size: 17px; }

/* ---------- avatars: portrait frames ---------- */
.av {
  --c: #ff4fc3; position: relative; width: 54px; height: 54px; border-radius: 14px; flex: none; display: inline-grid; place-items: center; font-size: 28px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 50%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 70%, #3b0f8a));
  border: 3px solid #fff; box-shadow: 0 0 0 3px var(--night), 0 6px 14px color-mix(in srgb, var(--c) 55%, transparent);
}
.av.xs { width: 26px; height: 26px; font-size: 13px; border-width: 2px; border-radius: 7px; box-shadow: 0 0 0 2px var(--night); } .av.sm { width: 36px; height: 36px; font-size: 18px; border-radius: 9px; box-shadow: 0 0 0 2px var(--night); }
.av.lg { width: 70px; height: 70px; font-size: 36px; } .av.xl { width: 104px; height: 104px; font-size: 56px; border-radius: 18px; } .av.xxl { width: 124px; height: 124px; font-size: 68px; border-radius: 20px; }
.av.off { filter: grayscale(1); opacity: .5; }
.av.dashed { background: transparent; border: 3px dashed #fff; box-shadow: none; font-family: var(--px); font-size: 20px; }
.av .dot { position: absolute; right: -6px; bottom: -6px; width: 14px; height: 14px; background: var(--lime); border: 3px solid var(--night); border-radius: 3px; box-shadow: 0 0 10px var(--lime); }
.av.xs .dot, .av.sm .dot { width: 10px; height: 10px; border-width: 2px; right: -4px; bottom: -4px; }
.botmark { display: none; }
.orb3d {
  --o: #ff4fc3; position: relative; display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; font-size: 44px; flex: none;
  background: radial-gradient(circle at 30% 22%, #fff 0 5%, rgba(255, 255, 255, .45) 6% 14%, transparent 22%), radial-gradient(circle at 40% 30%, color-mix(in srgb, var(--o) 65%, #fff), var(--o) 55%, color-mix(in srgb, var(--o) 70%, #3b0f8a));
  border: 3px solid var(--night); box-shadow: 0 8px 18px color-mix(in srgb, var(--o) 55%, transparent); animation: floaty 5s ease-in-out infinite;
}
.orb3d.sm { width: 52px; height: 52px; font-size: 26px; } .orb3d.lg { width: 112px; height: 112px; font-size: 60px; }
.floaters { position: absolute; inset: 0; pointer-events: none; overflow: hidden; } .floaters .orb3d { position: absolute; }

/* ---------- HUD (arcade) + logo ---------- */
.hud { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; font-family: var(--px); font-size: 8px; line-height: 1.5; text-shadow: 2px 2px 0 var(--night); }
.hud > span:last-child { text-align: right; } .hud em { display: block; font-style: normal; color: var(--red); font-size: 9px; } .hud .hi { text-align: center; } .hud .hi em { color: #fff; } .hud .hi b { color: var(--yellow); font-weight: 400; }
.hud button { text-align: inherit; font: inherit; color: inherit; } .hud i { font-style: normal; }
.wordmark, .logo-big { font-family: var(--px); color: var(--red); -webkit-text-stroke: 3px var(--yellow); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--night), 0 0 26px rgba(255, 59, 48, .75); letter-spacing: .06em; line-height: 1; }
.wordmark { font-size: 22px; -webkit-text-stroke-width: 2px; text-shadow: 3px 3px 0 var(--night); } .wordmark i { display: none; }
.logo-big { font-size: clamp(44px, 16vw, 66px); text-align: center; margin: 4px 0 2px; }
.tagline { font-family: var(--px); font-size: 9px; text-align: center; text-shadow: 2px 2px 0 var(--night); letter-spacing: .1em; }
.menu { display: flex; flex-direction: column; gap: 16px; padding: 6px 0 6px 4px; }
.menu button { position: relative; text-align: left; padding: 4px 0 4px 30px; font-family: var(--px); font-size: 13px; text-transform: uppercase; text-shadow: 3px 3px 0 var(--night); }
.menu button::before { content: '▶'; position: absolute; left: 2px; color: var(--yellow); opacity: 0; } .menu button.cur::before { opacity: 1; animation: blink 1s steps(1) infinite; }
.menu button:active::before { opacity: 1; } .menu button:active { color: var(--yellow); }
.menu small { display: block; font-family: var(--mono); font-size: 18px; text-transform: none; opacity: .9; margin-top: 4px; }

/* ---------- top bar (in-game) ---------- */
.bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 52px; }
.bar-right { display: flex; align-items: center; gap: 8px; }
.me-chip { display: flex; align-items: center; gap: 8px; background: #fff; color: var(--night); border: 3px solid var(--night); border-radius: 10px; padding: 3px 10px 3px 3px; font-weight: 800; font-size: 13px; max-width: 190px; box-shadow: 0 3px 0 var(--night); }
.me-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-chip .lv, .lv { font-style: normal; font-family: var(--px); font-size: 7px; background: var(--yellow); color: var(--night); border: 2px solid var(--night); border-radius: 5px; padding: 3px 4px; }
.progress { font-family: var(--px); font-size: 14px; text-shadow: 2px 2px 0 var(--night); } .progress small { font-size: 8px; font-family: var(--px); opacity: .85; }
.mode-tag { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; background: var(--yellow); color: var(--night); border: 2px solid var(--night); font-family: var(--px); font-size: 8px; text-transform: uppercase; box-shadow: 0 3px 0 var(--night); }
.timer { --p: 1; width: 56px; height: 56px; border-radius: 50%; padding: 5px; flex: none; background: conic-gradient(var(--yellow) calc(var(--p) * 360deg), rgba(26, 16, 56, .55) 0); border: 3px solid var(--night); box-shadow: 0 0 18px rgba(255, 217, 59, .5); }
.timer span { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; font-family: var(--px); font-size: 12px; color: var(--cyan); background: var(--night); }
.timer.low { background: conic-gradient(var(--red) calc(var(--p) * 360deg), rgba(26, 16, 56, .55) 0); animation: pulse .5s ease-in-out infinite; } .timer.low span { color: var(--red); }

/* ---------- tab bar (Dashboard / Calendar / Tasks …) ---------- */
#tabs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; display: none; justify-content: space-around; padding: 8px 6px calc(env(safe-area-inset-bottom) + 8px); background: var(--night); border-top: 3px solid var(--cyan); box-shadow: 0 -8px 28px rgba(47, 227, 245, .35); }
.has-tabs #tabs { display: flex; }
.tab { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; color: #b9a6ff; font-family: var(--mono); font-size: 18px; line-height: 1; text-transform: uppercase; }
.tab span { font-size: 22px; filter: grayscale(.7) opacity(.7); } .tab.on { color: var(--cyan); text-shadow: 0 0 12px var(--cyan); } .tab.on span { filter: none; transform: scale(1.15); }
.tab.on::after { content: ''; position: absolute; bottom: -6px; width: 28px; height: 3px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.tab .badge { position: absolute; top: 0; right: 22%; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 4px; background: var(--red); color: #fff; font-family: var(--px); font-size: 7px; display: grid; place-items: center; border: 2px solid var(--night); }

/* ---------- welcome ---------- */
.welcome { position: relative; gap: 16px; }
.sun { width: 190px; height: 190px; margin: 4px auto -10px; border-radius: 50%; background: linear-gradient(180deg, var(--yellow), var(--orange) 45%, var(--hot)); -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 18px), linear-gradient(#000, #000); mask-image: linear-gradient(180deg, #000 55%, transparent 55% 62%, #000 62% 72%, transparent 72% 78%, #000 78% 88%, transparent 88% 92%, #000 92%); box-shadow: 0 0 60px rgba(255, 159, 28, .8); position: relative; }
.palms { text-align: center; font-size: 34px; letter-spacing: 90px; margin-top: -42px; position: relative; z-index: 1; filter: drop-shadow(3px 3px 0 var(--night)); }
.pick-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.emoji-pick { margin: 0; text-shadow: none; } .emoji-pick span { display: grid; place-items: center; width: 50px; height: 50px; font-size: 26px; border-radius: 10px; background: var(--panel2); border: 3px solid var(--night); box-shadow: 0 3px 0 var(--night); }
.emoji-pick input:checked + span { background: var(--yellow); transform: translateY(-3px); box-shadow: 0 6px 0 var(--night); }
.coin { font-family: var(--px); font-size: 9px; text-align: center; text-shadow: 2px 2px 0 var(--night); animation: blink 1.1s steps(1) infinite; }

/* ---------- goals / habits / clock (Life OS widgets) ---------- */
.goal + .goal { margin-top: 12px; } .gl { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 20px; line-height: 1; margin-bottom: 4px; } .gl i { font-style: normal; color: var(--yellow); }
.gbar { height: 22px; border: 3px solid #fff; border-radius: 6px; background: var(--night); padding: 2px; } .gbar i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--c) 0 8px, transparent 8px 10px); box-shadow: 0 0 10px var(--c); transition: width .8s var(--spring); }
.gbar.g1 { --c: var(--lime); } .gbar.g2 { --c: var(--yellow); } .gbar.g3 { --c: var(--cyan); }
.floppies { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; font-family: var(--mono); font-size: 18px; }
.floppy { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 4px 12px 4px 4px; background: var(--fc, #6a5acd); border: 2px solid var(--night); box-shadow: inset 0 -4px 0 rgba(26, 16, 56, .3); margin-bottom: 3px; }
.floppy::before { content: ''; position: absolute; left: 22%; right: 22%; top: 0; height: 30%; background: #cfc6ff; border: 2px solid var(--night); border-top: 0; }
.floppy::after { content: ''; position: absolute; left: 14%; right: 14%; bottom: 8%; height: 40%; background: #fff; border: 2px solid var(--night); background-image: repeating-linear-gradient(0deg, transparent 0 5px, #c9bdf5 5px 7px); }
.floppy.f0 { --fc: #8a4bff; } .floppy.f1 { --fc: #3b7bff; } .floppy.f2 { --fc: #ff4fc3; } .floppy.f3 { --fc: #2fe3f5; } .floppy.f4 { --fc: #52f0b0; }
.floppy.empty { background: #3a2a6b; box-shadow: none; border-style: dashed; opacity: .6; } .floppy.empty::before, .floppy.empty::after { display: none; }
.day.today .floppy { outline: 3px solid var(--yellow); outline-offset: 2px; } .day.today { color: var(--yellow); }
.streak { font-family: var(--mono); font-size: 20px; margin-top: 8px; text-align: center; }
.clock { text-align: center; } .clock-t { font-family: var(--px); font-size: 34px; color: var(--cyan); text-shadow: 0 0 6px var(--cyan), 0 0 22px var(--cyan); letter-spacing: .04em; } .clock small { font-family: var(--px); font-size: 10px; color: var(--cyan); margin-left: 6px; }
.clock-d { font-family: var(--mono); font-size: 22px; letter-spacing: .12em; margin-top: 4px; }

/* ---------- arcade cabinet tiles + polaroids + topic cards ---------- */
.tile { --fr: var(--cyan); position: relative; display: block; width: 100%; text-align: left; border: 3px solid var(--fr); border-radius: 16px; background: var(--panel); box-shadow: 0 0 0 3px var(--night), 0 12px 0 -2px rgba(26, 16, 56, .45), 0 0 30px color-mix(in srgb, var(--fr) 45%, transparent); overflow: hidden; transition: transform .12s var(--spring); }
.tile:active { transform: scale(.97); }
.tile .tbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--fr); color: var(--night); font-family: var(--px); font-size: 10px; text-transform: uppercase; } .tile .tbar i { font-style: normal; font-family: var(--mono); font-size: 18px; opacity: .75; }
.tile .tbody { display: flex; gap: 12px; align-items: center; padding: 16px 14px 8px; background: radial-gradient(80% 90% at 85% 40%, color-mix(in srgb, var(--fr) 35%, transparent), transparent 70%); }
.tile .tinfo { flex: 1; min-width: 0; } .tile .tinfo p { font-family: var(--mono); font-size: 21px; line-height: 1.05; } .tile .cat { display: inline-block; margin-top: 8px; padding: 3px 7px; border-radius: 4px; background: var(--night); border: 2px solid var(--fr); font-family: var(--px); font-size: 7px; text-transform: uppercase; color: var(--fr); }
.tile .coin { padding: 8px 14px 14px; text-align: left; color: var(--yellow); }
.t-quiz { --fr: var(--cyan); } .t-comp { --fr: var(--red); } .t-party { --fr: var(--yellow); } .t-creative { --fr: var(--lime); } .t-social { --fr: var(--pink); }
.rail { display: flex; gap: 16px; overflow-x: auto; margin: 0 -16px; padding: 12px 16px 16px; scrollbar-width: none; scroll-snap-type: x proximity; } .rail::-webkit-scrollbar { display: none; } .rail > * { scroll-snap-align: start; flex: none; }
.polaroid { position: relative; width: 156px; padding: 10px 10px 12px; background: #f6f1ff; color: var(--night); border: 2px solid var(--night); box-shadow: 4px 6px 0 rgba(26, 16, 56, .55); transform: rotate(var(--rot, -2deg)); text-align: left; transition: transform .15s var(--spring); }
.polaroid:nth-child(even) { --rot: 2.5deg; } .polaroid:nth-child(3n) { --rot: -3.5deg; } .polaroid:active { transform: scale(.95) rotate(0); }
.polaroid .tape { position: absolute; top: -12px; left: 38px; width: 64px; height: 22px; background: color-mix(in srgb, var(--tp, #ff4fc3) 80%, transparent); transform: rotate(-6deg); border: 1px solid rgba(26, 16, 56, .2); } .polaroid:nth-child(even) .tape { --tp: #2fe3f5; } .polaroid:nth-child(3n) .tape { --tp: #ffd93b; }
.polaroid .pic { display: grid; place-items: center; height: 98px; font-size: 52px; border: 2px solid var(--night); background: linear-gradient(180deg, var(--p1), var(--p2) 60%, var(--p3)); } .polaroid .pic span { filter: drop-shadow(3px 3px 0 rgba(26, 16, 56, .4)); }
.polaroid b { display: block; margin: 8px 0 6px; font-family: var(--px); font-size: 8px; line-height: 1.5; text-transform: uppercase; min-height: 24px; }
.polaroid .pbar { display: block; height: 8px; border: 2px solid var(--night); background: #fff; margin-bottom: 6px; } .polaroid .pbar i { display: block; height: 100%; background: repeating-linear-gradient(90deg, #8a4bff 0 4px, #ff4fc3 4px 8px); }
.polaroid .view { display: inline-block; padding: 2px 10px; border: 2px solid var(--night); background: #d9d2f0; font-family: var(--mono); font-size: 17px; }
.pic.t-quiz { --p1: #2fe3f5; --p2: #3b7bff; --p3: #8a4bff; } .pic.t-comp { --p1: #ff9f1c; --p2: #ff3b30; --p3: #8a1ee8; } .pic.t-party { --p1: #ffe45e; --p2: #ff9f1c; --p3: #ff2fb9; } .pic.t-creative { --p1: #9bff6b; --p2: #2fe3f5; --p3: #3b7bff; } .pic.t-social { --p1: #ff4fc3; --p2: #9b6bff; --p3: #3b7bff; }
.tcard { --fr: var(--pink); width: 128px; text-align: center; border: 3px solid var(--fr); border-radius: 12px; background: var(--panel); box-shadow: 0 0 0 2px var(--night), 0 5px 0 rgba(26, 16, 56, .5); overflow: hidden; transition: transform .1s; } .tcard:active { transform: translateY(3px); }
.tcard header { padding: 5px 4px; background: var(--fr); color: var(--night); font-family: var(--px); font-size: 7px; line-height: 1.5; text-transform: uppercase; min-height: 30px; display: grid; place-items: center; }
.tcard .e { display: block; font-size: 34px; padding: 10px 0 2px; } .tcard small { display: block; padding-bottom: 10px; font-family: var(--mono); font-size: 18px; opacity: .85; }
.tcard:nth-child(4n+1) { --fr: var(--pink); } .tcard:nth-child(4n+2) { --fr: var(--cyan); } .tcard:nth-child(4n+3) { --fr: var(--yellow); } .tcard:nth-child(4n) { --fr: var(--lime); }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 10px 14px; border-radius: 8px; background: var(--panel2); border: 2px solid var(--night); box-shadow: 0 3px 0 var(--night); font-family: var(--mono); font-size: 20px; line-height: 1; } .chip.on { background: var(--yellow); color: var(--night); }
.invite-card { display: flex; align-items: center; gap: 12px; padding: 12px; border: 3px solid var(--yellow); border-radius: 14px; background: var(--panel); box-shadow: 0 0 0 3px var(--night), 0 0 24px rgba(255, 217, 59, .45); }
.invite-card b { display: block; font-size: 15px; } .invite-card small { font-family: var(--mono); font-size: 19px; opacity: .85; } .invite-card.friend { border-color: var(--pink); box-shadow: 0 0 0 3px var(--night), 0 0 24px rgba(255, 79, 195, .45); }
.join { display: flex; gap: 10px; } .join .input { flex: 1; min-width: 0; }
.xp-pill { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; text-align: left; }
.xpbar { height: 16px; border: 3px solid #fff; border-radius: 6px; background: var(--night); padding: 2px; } .xpbar i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--lime) 0 8px, transparent 8px 10px); box-shadow: 0 0 10px var(--lime); }
.beta { text-align: center; font-family: var(--mono); font-size: 18px; opacity: .85; }

/* ---------- friends / chat / profile / leaderboard ---------- */
.code-big { text-align: center; padding: 0; } .code-big .win-b { padding: 16px; } .code-big .c { font-family: var(--px); font-size: 26px; letter-spacing: .16em; margin: 8px 0 12px; color: var(--yellow); text-shadow: 3px 3px 0 var(--night), 0 0 18px rgba(255, 217, 59, .6); }
.person { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 10px 12px; border: 3px solid var(--fr, var(--cyan)); border-radius: 14px; background: var(--panel); box-shadow: 0 0 0 3px var(--night), 0 0 18px color-mix(in srgb, var(--fr, var(--cyan)) 40%, transparent); }
.person:nth-child(3n+2) { --fr: var(--pink); } .person:nth-child(3n) { --fr: var(--yellow); }
.person b { display: block; font-size: 15px; } .person small { display: block; font-family: var(--mono); font-size: 19px; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.05; } .person.off { opacity: .65; }
.unread { min-width: 24px; height: 24px; border-radius: 6px; background: var(--yellow); color: var(--night); border: 2px solid var(--night); font-family: var(--px); font-size: 8px; display: grid; place-items: center; padding: 0 6px; }
.thread { display: flex; flex-direction: column; gap: 12px; }
.dm { align-self: flex-start; max-width: 80%; padding: 10px 14px; border-radius: 4px 14px 14px 14px; background: #fff; color: var(--night); border: 3px solid var(--night); font-weight: 600; box-shadow: 3px 3px 0 var(--night); animation: pop .3s var(--spring); }
.dm.mine { align-self: flex-end; border-radius: 14px 4px 14px 14px; background: var(--pink); }
.dm-invite { align-self: stretch; display: flex; align-items: center; gap: 12px; padding: 10px; border: 3px solid var(--yellow); border-radius: 14px; background: var(--panel); box-shadow: 0 0 0 3px var(--night), 0 0 20px rgba(255, 217, 59, .5); animation: pop .3s var(--spring); } .dm-invite b { display: block; } .dm-invite small { font-family: var(--mono); font-size: 19px; opacity: .85; }
.quick { display: flex; gap: 8px; } .quick button { flex: 1; font-size: 22px; padding: 8px 0; border-radius: 8px; background: var(--panel2); border: 2px solid var(--night); box-shadow: 0 3px 0 var(--night); } .quick button:active { transform: translateY(2px); }
.banner-hero { position: relative; margin: -6px -16px 0; padding: 20px 16px 62px; text-align: center; border-bottom: 4px solid var(--night); overflow: hidden; } .banner-hero .av { margin: 0 auto; } .banner-hero h2 { font-size: 16px; margin-top: 12px; } .banner-hero .who { font-family: var(--mono); font-size: 22px; text-shadow: 2px 2px 0 var(--night); }
.edit-fab { position: absolute; right: 12px; top: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: -46px; position: relative; z-index: 2; }
.stat { text-align: center; padding: 12px 4px; background: var(--panel); border: 3px solid var(--cyan); border-radius: 12px; box-shadow: 0 0 0 3px var(--night); } .stat:nth-child(2) { border-color: var(--yellow); } .stat:nth-child(3) { border-color: var(--pink); }
.stat b { display: block; font-family: var(--px); font-size: 20px; color: var(--yellow); text-shadow: 2px 2px 0 var(--night); font-weight: 400; } .stat small { font-family: var(--mono); font-size: 18px; text-transform: uppercase; }
.achs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .ach { text-align: center; padding: 12px 4px; background: var(--panel); border: 3px solid var(--lime); border-radius: 12px; box-shadow: 0 0 0 3px var(--night); font-family: var(--mono); font-size: 19px; line-height: 1; } .ach span { display: block; font-size: 30px; margin-bottom: 4px; } .ach.locked { opacity: .45; filter: grayscale(1); border-color: #8f7bc0; }
.fav { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--panel); border: 3px solid var(--pink); border-radius: 12px; box-shadow: 0 0 0 3px var(--night); } .fav b { display: block; } .fav small { font-family: var(--mono); font-size: 19px; opacity: .85; }
.banner-pick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; } .banner-pick label { margin: 0; } .banner-pick span { display: block; height: 44px; border-radius: 8px; border: 3px solid var(--night); box-shadow: 0 3px 0 var(--night); } .banner-pick input:checked + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.acct { padding: 14px; } .acct label { margin-bottom: 8px; }

/* ---------- bottom sheet ---------- */
.sheet-bg { position: absolute; inset: 0; background: rgba(26, 16, 56, .62); z-index: 20; animation: fade .2s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 21; max-height: 92%; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 10px 18px calc(env(safe-area-inset-bottom) + 22px); background: linear-gradient(180deg, var(--s2), var(--s3)); border-top: 4px solid var(--yellow); box-shadow: 0 -10px 0 var(--night), 0 -20px 60px rgba(255, 47, 185, .5); animation: slide-up .35s var(--spring); }
.grab { width: 46px; height: 6px; background: var(--night); margin: 2px auto 8px; border-radius: 3px; }
.sheet-head { display: flex; gap: 14px; align-items: center; } .sheet-head h2 { font-size: 15px; } .sheet-head p { font-family: var(--mono); font-size: 21px; line-height: 1.05; margin-top: 6px; }
.choice { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px; background: #fff; color: var(--night); border: 3px solid var(--night); border-radius: 12px; box-shadow: 0 5px 0 var(--night); transition: transform .08s, box-shadow .08s; } .choice:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--night); }
.choice.primary { background: linear-gradient(180deg, #ffe97a, var(--yellow) 50%, var(--orange)); }
.choice .ci { font-size: 32px; } .choice b { display: block; font-family: var(--px); font-size: 11px; line-height: 1.4; text-transform: uppercase; font-weight: 400; } .choice small { font-family: var(--mono); font-size: 20px; line-height: 1; opacity: .8; }

/* ---------- lobby (player select) ---------- */
.code-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; border: 3px solid var(--yellow); border-radius: 16px; background: var(--panel); box-shadow: 0 0 0 3px var(--night), 0 0 30px rgba(255, 217, 59, .5); }
.code-card small { font-family: var(--px); font-size: 8px; color: var(--pink); } .code-card .code { font-family: var(--px); font-size: 26px; letter-spacing: .12em; margin-top: 8px; color: var(--yellow); text-shadow: 3px 3px 0 var(--night), 0 0 16px rgba(255, 217, 59, .6); }
.ptiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 8px; padding-top: 10px; }
.ptile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.bub { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); z-index: 2; padding: 2px 5px; border-radius: 6px; background: #fff; color: var(--red); border: 2px solid var(--night); font-family: var(--px); font-size: 7px; font-style: normal; white-space: nowrap; } .bub::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 6px; height: 6px; background: #fff; border-right: 2px solid var(--night); border-bottom: 2px solid var(--night); transform: translateX(-50%) rotate(45deg); }
.pname { font-family: var(--mono); font-size: 18px; line-height: 1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crown { position: absolute; top: -26px; right: -4px; font-style: normal; font-size: 20px; z-index: 3; filter: drop-shadow(2px 2px 0 var(--night)); }
.kick { position: absolute; top: -4px; right: 2px; width: 22px; height: 22px; border-radius: 5px; background: var(--red); color: #fff; border: 2px solid var(--night); font-weight: 900; font-size: 13px; line-height: 1; display: grid; place-items: center; z-index: 2; } .kick.inline { position: static; }
.teams { display: flex; flex-direction: column; gap: 10px; } .team { padding: 10px 12px; border: 3px solid var(--night); border-radius: 12px; background: var(--panel2); } .team.side-m { background: #1e4a8a; } .team.side-f { background: #8a1e6a; }
.team-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; min-height: 34px; } .team-head b { font-family: var(--px); font-size: 10px; font-weight: 400; text-transform: uppercase; }
.member { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-weight: 700; } .member.muted { opacity: .7; }
.rules { font-size: 15px; font-weight: 500; } .rules summary { font-family: var(--px); font-size: 10px; text-transform: uppercase; list-style: none; display: flex; justify-content: space-between; } .rules summary::after { content: '+'; } .rules[open] summary::after { content: '–'; } .rules summary::-webkit-details-marker { display: none; }
.rules ol { padding-left: 20px; margin: 10px 0 0; } .rules li { margin: 5px 0; } .rules p { margin-top: 8px; }
.card .rules, details.card summary { margin: 0; } details.card { padding: 12px 14px; }
.dock-note { text-align: center; font-family: var(--mono); font-size: 19px; }
.waiting { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; border: 3px dashed #fff; border-radius: 12px; background: rgba(26, 16, 56, .55); font-family: var(--mono); font-size: 21px; text-align: center; line-height: 1.05; }
.dots { display: inline-flex; gap: 4px; } .dots i { width: 8px; height: 8px; background: var(--yellow); animation: dots 1.2s infinite; } .dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
.react-bar { display: flex; gap: 6px; justify-content: space-between; } .react-bar button { font-size: 22px; width: 44px; height: 44px; border-radius: 8px; background: var(--panel2); border: 2px solid var(--night); box-shadow: 0 3px 0 var(--night); } .react-bar button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--night); }
.float-react { position: absolute; bottom: 120px; font-size: 40px; z-index: 40; pointer-events: none; animation: rise 2.2s ease-out forwards; }

/* ---------- gameplay ---------- */
.question { position: relative; display: grid; place-items: center; text-align: center; min-height: 190px; padding: 28px 20px; background: var(--panel); color: #fff; border: 4px solid var(--yellow); border-radius: 16px; font-size: 24px; font-weight: 800; line-height: 1.2; box-shadow: 0 0 0 4px var(--night), 0 0 0 7px #9a8cc9, 0 0 34px rgba(255, 217, 59, .5); }
.question.small { min-height: 0; padding: 14px 16px; font-size: 16px; border-width: 3px; box-shadow: 0 0 0 3px var(--night); } .q-label { display: block; font-family: var(--px); font-size: 8px; color: var(--yellow); margin-bottom: 12px; }
.status { text-align: center; font-family: var(--mono); font-size: 23px; line-height: 1.05; text-shadow: 2px 2px 0 var(--night); } .status b { color: var(--yellow); }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.answer { --a: var(--pink); position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px; min-height: 118px; padding: 14px; border: 3px solid var(--night); border-radius: 14px; text-align: left; background: var(--a); color: var(--night); box-shadow: 0 6px 0 var(--night), inset 0 3px 0 rgba(255, 255, 255, .55), inset 0 -4px 0 rgba(26, 16, 56, .2); font-weight: 800; font-size: 17px; transition: transform .08s, opacity .2s, box-shadow .08s; }
.answer:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 1px 0 var(--night), inset 0 3px 0 rgba(255, 255, 255, .55); }
.a0 { --a: var(--pink); } .a1 { --a: var(--cyan); } .a2 { --a: var(--yellow); } .a3 { --a: var(--lime); }
.answer .k { font-size: 22px; line-height: 1; } .answer .txt { line-height: 1.15; word-break: break-word; } .answer .count { position: absolute; top: 10px; right: 12px; font-family: var(--px); font-size: 12px; }
.answer.dim { opacity: .3; transform: none; } .answer.picked { outline: 4px solid #fff; outline-offset: 3px; }
.answer.right { transform: scale(1.04); box-shadow: 0 6px 0 var(--night), 0 0 0 4px #fff, 0 0 34px 6px var(--a); } .answer.right::after { content: '✓'; position: absolute; bottom: 8px; right: 12px; font-size: 28px; font-weight: 900; }
.answers.compact .answer { min-height: 62px; font-size: 14px; padding: 10px 12px; border-radius: 10px; }
.banner { text-align: center; padding: 16px; border: 3px solid var(--night); border-radius: 14px; font-family: var(--px); font-size: 13px; line-height: 1.5; color: var(--night); box-shadow: 0 5px 0 var(--night); }
.banner.good { background: var(--lime); } .banner.bad { background: var(--red); color: #fff; }
.board { display: flex; flex-direction: column; gap: 10px; }
.board .line { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 3px solid var(--cyan); border-radius: 12px; background: var(--panel); box-shadow: 0 0 0 3px var(--night); font-weight: 800; }
.board .line:nth-child(2n) { border-color: var(--pink); } .board .rank { width: 24px; font-family: var(--px); font-size: 10px; color: var(--yellow); } .board .pts { font-family: var(--px); font-size: 11px; } .board .gain { color: var(--lime); font-family: var(--mono); font-size: 21px; }
.board .line.me { background: var(--yellow); color: var(--night); border-color: var(--night); } .board .line.me .rank { color: var(--red); } .board .line.me .gain { color: #0a8a4a; }

.secret { position: relative; width: 100%; min-height: 340px; padding: 26px; border: 4px solid var(--c, var(--pink)); border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; background: radial-gradient(70% 50% at 50% 0%, color-mix(in srgb, var(--c, var(--pink)) 35%, transparent), transparent 70%), var(--panel); box-shadow: 0 0 0 4px var(--night), 0 0 40px color-mix(in srgb, var(--c, var(--pink)) 60%, transparent); font-weight: 700; --c: var(--violet); }
.secret.cover b { font-family: var(--px); font-size: 14px; color: var(--yellow); text-shadow: 3px 3px 0 var(--night); font-weight: 400; } .secret.crew { --c: var(--cyan); } .secret.imp { --c: var(--red); }
.secret.flipped { animation: flip-in .5s var(--spring); } .secret .word { font-family: var(--px); font-size: 26px; line-height: 1.3; word-break: break-word; text-transform: uppercase; color: var(--c); text-shadow: 3px 3px 0 var(--night), 0 0 22px var(--c); }
.secret small { font-family: var(--mono); font-size: 22px; } .secret em { font-style: normal; font-family: var(--mono); font-size: 18px; opacity: .7; margin-top: 8px; } .big-emoji { font-size: 60px; line-height: 1; filter: drop-shadow(4px 4px 0 var(--night)); }
.discuss-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .discuss-head h2 { color: var(--yellow); }
.peek { padding: 9px 12px; border-radius: 8px; background: var(--cyan); color: var(--night); border: 2px solid var(--night); box-shadow: 0 3px 0 var(--night); font-family: var(--mono); font-size: 19px; line-height: 1; } .peek.imp { background: var(--red); color: #fff; }
.order { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; } .order::-webkit-scrollbar { display: none; }
.order .o { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border: 2px solid var(--night); border-radius: 8px; background: var(--panel); font-family: var(--mono); font-size: 19px; white-space: nowrap; } .order i { font-style: normal; color: var(--yellow); }
.feed { display: flex; flex-direction: column; gap: 10px; } .feed.empty { text-align: center; padding: 28px 12px; border: 3px dashed #fff; border-radius: 12px; font-family: var(--mono); font-size: 22px; }
.msg { display: flex; align-items: flex-end; gap: 8px; animation: pop .3s var(--spring); } .msg.mine { justify-content: flex-end; }
.bubble { max-width: 78%; padding: 9px 13px; border-radius: 4px 14px 14px 14px; background: #fff; color: var(--night); border: 3px solid var(--night); box-shadow: 3px 3px 0 var(--night); font-weight: 600; font-size: 15px; }
.bubble b { display: block; font-family: var(--mono); font-size: 18px; line-height: 1; margin-bottom: 2px; } .msg.mine .bubble { background: var(--pink); border-radius: 14px 4px 14px 14px; }
.composer { display: flex; gap: 10px; } .send { width: 56px; height: 56px; flex: none; border-radius: 12px; background: var(--yellow); color: var(--night); border: 3px solid var(--night); font-size: 24px; font-weight: 900; box-shadow: 0 5px 0 var(--night); } .send:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--night); }
.vote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vote { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 8px; background: var(--panel); border: 3px solid var(--cyan); border-radius: 14px; box-shadow: 0 0 0 3px var(--night); font-weight: 800; transition: transform .1s; } .vote:nth-child(2n) { border-color: var(--pink); }
.vote:active:not(:disabled) { transform: scale(.95); } .vote.on { background: var(--yellow); color: var(--night); transform: translateY(-3px); box-shadow: 0 0 0 3px var(--night), 0 8px 0 var(--night); }
.voted { position: absolute; top: 8px; right: 8px; font-style: normal; font-family: var(--px); font-size: 6px; background: var(--lime); color: var(--night); border: 2px solid var(--night); border-radius: 4px; padding: 3px 4px; }
.result { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 26px 18px; border: 4px solid var(--red); border-radius: 18px; background: radial-gradient(70% 50% at 50% 0%, rgba(255, 59, 48, .35), transparent 70%), var(--panel); box-shadow: 0 0 0 4px var(--night), 0 0 36px rgba(255, 59, 48, .55); }
.result.crew { border-color: var(--cyan); background: radial-gradient(70% 50% at 50% 0%, rgba(47, 227, 245, .35), transparent 70%), var(--panel); box-shadow: 0 0 0 4px var(--night), 0 0 36px rgba(47, 227, 245, .55); }
.result h2 { font-size: 15px; } .result p { font-family: var(--mono); font-size: 23px; line-height: 1.05; } .result p b { color: var(--yellow); }
.tallies { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; } .tally { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border: 2px solid var(--night); border-radius: 8px; background: var(--panel); font-family: var(--mono); font-size: 19px; } .tally b { color: var(--yellow); }
.guess-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .guess-grid .answer { min-height: 78px; justify-content: center; }
.scores { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; } .scores::-webkit-scrollbar { display: none; }
.tscore { flex: 1 0 auto; min-width: 100px; padding: 8px 12px; text-align: center; background: var(--panel); border: 3px solid var(--cyan); border-radius: 12px; box-shadow: 0 0 0 3px var(--night); } .tscore:nth-child(2n) { border-color: var(--pink); }
.tscore span { display: block; max-width: 140px; margin: 0 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 19px; line-height: 1; } .tscore b { display: block; font-family: var(--px); font-size: 18px; font-weight: 400; margin-top: 4px; }
.tscore.active { background: var(--yellow); color: var(--night); border-color: var(--night); transform: translateY(-3px); } .tscore.mine span::after { content: ' ·YOU'; }
.turn-card, .word-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 28px 18px; border: 4px solid var(--c, var(--cyan)); border-radius: 18px; background: radial-gradient(70% 50% at 50% 0%, color-mix(in srgb, var(--c, var(--cyan)) 35%, transparent), transparent 70%), var(--panel); box-shadow: 0 0 0 4px var(--night), 0 0 36px color-mix(in srgb, var(--c, var(--cyan)) 55%, transparent); font-weight: 700; --c: var(--cyan); }
.turn-card.describer, .word-card { --c: var(--yellow); } .turn-card.watcher, .word-card.watch { --c: var(--violet); } .word-card.guess { --c: var(--cyan); }
.word-card .word { font-family: var(--px); font-size: 24px; line-height: 1.3; word-break: break-word; text-transform: uppercase; color: var(--c); text-shadow: 3px 3px 0 var(--night), 0 0 22px var(--c); } .word-card small, .turn-card p { font-family: var(--mono); font-size: 22px; line-height: 1.05; opacity: .9; }
.hint-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; } .hint-tiles i { width: 38px; height: 48px; border-radius: 8px; background: var(--panel2); border: 3px solid var(--night); display: grid; place-items: center; font-style: normal; font-family: var(--px); font-size: 16px; } .hint-tiles i.on { background: var(--yellow); color: var(--night); animation: pop .3s var(--spring); } .hint-tiles i.gap { width: 12px; background: none; border: 0; }
.guesses, .log { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; } .guesses span, .log span { padding: 4px 10px; border: 2px solid var(--night); border-radius: 8px; background: var(--panel); font-family: var(--mono); font-size: 19px; } .guesses span.ok, .log span.got { background: var(--lime); color: var(--night); } .log span.skip { opacity: .5; text-decoration: line-through; }

/* two truths & most likely */
.write-row { display: flex; gap: 8px; align-items: center; } .write-row .input { flex: 1; min-width: 0; }
.lie-pick { margin: 0; text-shadow: none; flex: none; } .lie-pick span { display: block; padding: 14px 12px; border-radius: 8px; background: var(--panel2); border: 3px solid var(--night); box-shadow: 0 3px 0 var(--night); font-family: var(--px); font-size: 8px; } .lie-pick input:checked + span { background: var(--red); }
.stmts, .stmt-list { display: flex; flex-direction: column; gap: 12px; }
.stmt { padding: 12px 14px; background: var(--panel); border: 3px solid var(--cyan); border-radius: 12px; box-shadow: 0 0 0 3px var(--night); font-weight: 700; } .stmt span { display: block; font-family: var(--px); font-size: 7px; margin-bottom: 6px; color: var(--yellow); } .stmt.is-lie { border-color: var(--red); }
.hot { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--panel); border: 3px solid var(--yellow); border-radius: 14px; box-shadow: 0 0 0 3px var(--night); } .hot small { display: block; font-family: var(--px); font-size: 7px; color: var(--pink); } .hot b { font-family: var(--px); font-size: 12px; font-weight: 400; }
.stmt-btn { position: relative; display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 14px; background: #fff; color: var(--night); border: 3px solid var(--night); border-radius: 12px; box-shadow: 0 5px 0 var(--night); font-weight: 800; font-size: 16px; transition: transform .08s, box-shadow .08s, opacity .2s; }
.stmt-btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--night); } .stmt-btn .k { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--yellow); border: 2px solid var(--night); font-family: var(--px); font-size: 11px; } .stmt-btn .txt { flex: 1; line-height: 1.2; } .stmt-btn .count { font-family: var(--mono); font-size: 19px; opacity: .8; }
.stmt-btn.picked { background: var(--pink); } .stmt-btn.dim { opacity: .45; } .stmt-btn.right { background: #ffb3b0; box-shadow: 0 5px 0 var(--red), 0 0 0 3px var(--red); }
.liebadge { position: absolute; top: -10px; right: 12px; font-family: var(--px); font-size: 7px; background: var(--red); color: #fff; border: 2px solid var(--night); padding: 4px 6px; border-radius: 4px; }
.tally-bars { display: flex; flex-direction: column; gap: 10px; } .tbar { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 7px; background: var(--panel); border: 3px solid var(--cyan); border-radius: 12px; box-shadow: 0 0 0 3px var(--night); overflow: hidden; font-weight: 800; }
.tbar i { position: absolute; left: 0; bottom: 0; height: 5px; width: var(--w); background: repeating-linear-gradient(90deg, var(--yellow) 0 6px, var(--pink) 6px 12px); } .tbar.win { background: var(--yellow); color: var(--night); border-color: var(--night); } .tbar b { font-family: var(--px); font-size: 11px; font-weight: 400; }

/* ---------- game over / podium ---------- */
.final-title { text-align: center; font-size: 17px; line-height: 1.5; } .final-title .trophy { display: block; font-size: 64px; margin-bottom: 6px; animation: floaty 3s ease-in-out infinite; filter: drop-shadow(4px 4px 0 var(--night)) drop-shadow(0 0 18px var(--yellow)); }
.xp-badge { align-self: center; padding: 12px 18px; background: var(--lime); color: var(--night); border: 3px solid var(--night); border-radius: 12px; box-shadow: 0 5px 0 var(--night), 0 0 26px rgba(155, 255, 107, .7); font-family: var(--px); font-size: 14px; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; margin: 6px 0; }
.step { width: 31%; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; min-width: 0; } .step .pname { font-size: 19px; } .pscore { font-family: var(--mono); font-size: 18px; opacity: .9; }
.step .block { width: 100%; display: grid; place-items: center; border: 3px solid var(--night); border-bottom: 0; border-radius: 10px 10px 0 0; font-family: var(--px); font-size: 22px; transform-origin: bottom; color: var(--night); box-shadow: 0 0 22px rgba(255, 255, 255, .25); } .step .block i { font-style: normal; }
.enter .step .block { animation: grow .8s var(--spring) both; } .enter .p1 .block { animation-delay: .5s; } .enter .p2 .block { animation-delay: .25s; }
.p1 .block { height: 140px; background: linear-gradient(180deg, #ffe97a, var(--yellow) 40%, var(--orange)); } .p2 .block { height: 100px; background: linear-gradient(180deg, #e8fcff, var(--cyan)); } .p3 .block { height: 72px; background: linear-gradient(180deg, #ffd0e9, var(--pink)); }

/* ---------- overlays ---------- */
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 30; } .confetti i { position: absolute; top: -20px; width: 10px; height: 10px; border: 2px solid var(--night); animation: fall 2.1s cubic-bezier(.3, .6, .5, 1) forwards; }
#toast { position: absolute; left: 50%; top: calc(env(safe-area-inset-top) + 14px); transform: translate(-50%, -90px); opacity: 0; z-index: 50; max-width: calc(100% - 32px); padding: 12px 16px; text-align: center; font-family: var(--mono); font-size: 21px; line-height: 1.05; background: var(--night); color: var(--yellow); border: 3px solid var(--yellow); border-radius: 10px; box-shadow: 0 0 24px rgba(255, 217, 59, .6); transition: transform .35s var(--spring), opacity .2s; pointer-events: none; }
#toast.show { transform: translate(-50%, 0); opacity: 1; }
