/* STREAMER RISE — UI design system */
@font-face { font-family: 'Bricolage'; src: url('../fonts/bricolage-grotesque-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url('../fonts/bricolage-grotesque-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url('../fonts/bricolage-grotesque-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('../fonts/outfit-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('../fonts/outfit-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('../fonts/outfit-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('../fonts/outfit-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('../fonts/outfit-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('../fonts/caveat-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --ink: #0b0c10;
  --ink2: #14151b;
  --text: #f3f4f7;
  --muted: #9ba0ae;
  --dim: #686d7c;
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.15);
  --panel-a: rgba(27, 28, 35, 0.9);
  --panel-b: rgba(17, 18, 23, 0.93);
  --pink: #ff4d6d;
  --pink2: #ff7d93;
  --violet: #8f7dff;
  --cyan: #3cc8ff;
  --lime: #8ee05a;
  --amber: #ffbe55;
  --red: #ff5d6c;
  --vid: #ff5a5f;
  --pulse: #9b6bff;
  --blip: #3cc8ff;
  --lumo: #ff9f43;
  --accent: #ff4f8b;
  --r-xl: 20px; --r-lg: 16px; --r-md: 12px; --r-sm: 9px;
  --shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.22);
  --hi: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --display: 'Bricolage', 'Outfit', system-ui, sans-serif;
  --body: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Caveat', 'Bricolage', cursive;
  --ui: 1;
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--text); font-family: var(--body); overflow: hidden; overscroll-behavior: none; }
body { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-font-smoothing: antialiased; touch-action: manipulation; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input { font: inherit; }
#app { position: fixed; inset: 0; overflow: hidden; }
#world { position: absolute; inset: 0; }
#world canvas { display: block; touch-action: none; outline: none; }
/* custom scrollbars everywhere (Chromium/Safari); Firefox gets themed thin bars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.04); border-radius: 99px; margin: 6px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #ff5f7c, #8f7dff); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ff7d93, #a597ff); border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: rgba(255, 95, 124, 0.7) transparent; } }

/* ---------- icons ---------- */
.i { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.22em; }
.emote { width: 1.3em; height: 1.3em; vertical-align: -0.3em; margin: 0 0.05em; }

/* ---------- generic surfaces ---------- */
.glass {
  background: linear-gradient(180deg, var(--panel-a), var(--panel-b));
  border: 1px solid var(--line);
  box-shadow: var(--shadow), var(--hi);
  backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1);
}
.display { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; }
.hand { font-family: var(--hand); font-weight: 700; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.row { display: flex; align-items: center; gap: 8px; }
.col { display: flex; flex-direction: column; gap: 8px; }
.grow { flex: 1; }
.center { display: flex; align-items: center; justify-content: center; }
.hidden { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  --b: #2b2950; --b2: #1c1b38; --bd: #121126;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px;
  font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -0.005em;
  color: #fff; background: linear-gradient(180deg, var(--b), var(--b2));
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.15s ease;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); }
.btn:active, .btn.pressed { transform: translateY(1px) scale(0.985); }
.btn.primary { --b: #ff5f7c; --b2: #ee3a5e; box-shadow: 0 10px 24px -10px rgba(238, 58, 94, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn.go { --b: #9fe86e; --b2: #72cf45; color: #0f2205; }
.btn.cyan { --b: #6fd8ff; --b2: #2cb5ee; color: #032433; }
.btn.amber { --b: #ffd27a; --b2: #ffb43e; color: #2b1700; }
.btn.violet { --b: #a597ff; --b2: #7d68ff; }
.btn.red { --b: #ff7b86; --b2: #f24a5b; }
.btn.ghost { --b: rgba(255,255,255,0.07); --b2: rgba(255,255,255,0.045); box-shadow: inset 0 0 0 1px var(--line2); }
.btn.big { min-height: 52px; font-size: 17px; padding: 0 26px; border-radius: 14px; }
.btn.small { min-height: 34px; font-size: 13.5px; padding: 0 12px; border-radius: 10px; }
.btn.icon { padding: 0; width: 46px; }
.btn.small.icon { width: 36px; }
.btn[disabled], .btn.disabled { filter: grayscale(0.8) brightness(0.7); pointer-events: none; }
.btn .price { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 7px; background: rgba(0, 0, 0, 0.2); font-size: 13px; }
.btn.shine::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.45) 45%, transparent 60%); background-size: 250% 100%; animation: shine 2.6s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0% { background-position: 130% 0; } 60%, 100% { background-position: -40% 0; } }
.xbtn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); color: var(--muted); transition: 0.15s; }
.xbtn:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---------- chips & badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px; font-weight: 600; font-size: 12.5px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line); white-space: nowrap; }
.chip.good { background: rgba(142, 224, 90, 0.12); color: var(--lime); border-color: rgba(142, 224, 90, 0.24); }
.chip.bad { background: rgba(255, 93, 108, 0.14); color: #ff8f99; border-color: rgba(255, 93, 108, 0.3); }
.chip.hot { background: rgba(255, 122, 47, 0.16); color: #ffad6b; border-color: rgba(255, 122, 47, 0.3); }
.chip.info { background: rgba(60, 200, 255, 0.1); color: var(--cyan); border-color: rgba(60, 200, 255, 0.22); }
.chip.gold { background: rgba(255, 194, 75, 0.14); color: var(--amber); border-color: rgba(255, 194, 75, 0.3); }
.chip.violet { background: rgba(143, 125, 255, 0.14); color: #c0b6ff; border-color: rgba(143, 125, 255, 0.28); }
.dot { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--ink2); }
@keyframes bob { 50% { transform: translateY(-2px) scale(1.06); } }
.tag { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); }

/* ---------- meters ---------- */
.bar { position: relative; height: 10px; border-radius: 99px; background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4); overflow: hidden; }
.bar > i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--c1, var(--pink)), var(--c2, var(--pink2))); transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.bar > i::after { content: ''; position: absolute; inset: 1px 4px auto 4px; height: 35%; border-radius: 99px; background: rgba(255, 255, 255, 0.35); }

/* ================= HUD ================= */
#hud { position: absolute; inset: 0; pointer-events: none; z-index: 10; transition: opacity 0.35s; }
#hud > * { pointer-events: auto; }
#hud.away { opacity: 0; }
#hud.away > * { pointer-events: none; }
.hud-tl { position: absolute; left: calc(12px + var(--safe-l)); top: 12px; display: flex; flex-direction: column; gap: 8px; width: 236px; }
.pcard { display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 7px; border-radius: 16px; cursor: pointer; text-align: left; }
.avatar { position: relative; width: 50px; height: 50px; border-radius: 14px; padding: 3px; background: conic-gradient(var(--amber) calc(var(--p, 0) * 1%), rgba(255, 255, 255, 0.1) 0); flex: none; }
.avatar .face { width: 100%; height: 100%; border-radius: 11px; background: radial-gradient(circle at 50% 30%, #3a3f52, #1b1d26); overflow: hidden; display: grid; place-items: center; }
.avatar .face img, .avatar .face canvas { width: 118%; height: 118%; object-fit: cover; margin-top: 6%; }
.avatar .lvl { position: absolute; right: -5px; bottom: -5px; min-width: 22px; height: 22px; border-radius: 7px; padding: 0 5px; background: var(--amber); color: #2b1700; font: 800 12px var(--display); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--ink2); }
.pc-t { min-width: 0; flex: 1; }
.pcard .nm { font: 700 15px var(--display); line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .career { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 1px; }
.xpb { height: 4px; border-radius: 4px; background: rgba(255,255,255,0.1); margin-top: 6px; overflow: hidden; }
.xpb i { display: block; height: 100%; width: 0; background: var(--amber); border-radius: inherit; transition: width 0.4s; }
.status { padding: 9px 12px 10px; border-radius: 16px; display: flex; flex-direction: column; gap: 7px; }
.clock { display: flex; align-items: baseline; gap: 7px; }
.clock .ck-i { align-self: center; color: var(--amber); display: grid; }
.clock .ck-i.night { color: #9aa8ff; }
.clock .ck-i .i { width: 17px; height: 17px; }
.clock .tm { font: 700 18px var(--display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.clock .tm small { font-size: 10px; margin-left: 3px; color: var(--muted); font-weight: 700; }
.clock .dy { margin-left: auto; font: 600 11.5px var(--body); color: var(--muted); }
.need { display: grid; grid-template-columns: 16px 50px 1fr 26px; align-items: center; gap: 7px; width: 100%; text-align: left; cursor: pointer; }
.need .ni { width: 15px; height: 15px; color: var(--nc); }
.need .nl { font: 600 11.5px var(--body); color: var(--muted); }
.need .nb { height: 6px; border-radius: 6px; background: rgba(255,255,255,0.09); overflow: hidden; }
.need .nb i { display: block; height: 100%; width: var(--v, 50%); background: var(--nc); border-radius: inherit; transition: width 0.4s; }
.need .nv { font: 700 12px var(--display); text-align: right; font-variant-numeric: tabular-nums; }
.need:hover .nl { color: #fff; }
.need.low .nb i { background: var(--red); animation: needLow 0.9s ease-in-out infinite; }
.need.low .ni, .need.low .nv { color: var(--red); }
@keyframes needLow { 50% { opacity: 0.45; } }

.hud-tc { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.subs { position: relative; display: flex; flex-direction: column; align-items: center; padding: 7px 22px 8px; border-radius: 16px; background: rgba(12, 13, 17, 0.78); border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer; min-width: 220px; }
.subs:hover { border-color: var(--line2); }
.sb-l { display: flex; align-items: center; gap: 6px; font: 700 10.5px var(--body); color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }
.sb-l .i { width: 18px; height: 18px; }
.odo { display: flex; font: 800 34px var(--display); letter-spacing: -0.02em; line-height: 1; height: 1em; overflow: hidden; margin: 4px 0 3px; font-variant-numeric: tabular-nums; }
.od-d { display: inline-block; height: 1em; overflow: hidden; width: 0.62em; text-align: center; }
.od-s { display: flex; flex-direction: column; transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.25, 1); }
.od-s i { font-style: normal; height: 1em; line-height: 1em; }
.od-sep { width: 0.26em; text-align: center; color: var(--muted); }
.sb-sub { display: flex; gap: 10px; align-items: center; font: 600 11.5px var(--body); color: var(--muted); }
.sb-sub .i { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }
.sb-sub b { color: #fff; font-weight: 700; }
.up { color: var(--lime); font-weight: 700; display: inline-flex; align-items: center; gap: 2px; }
.up .i { width: 13px; height: 13px; }
.objective { display: flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border-radius: 12px; min-height: 36px; max-width: min(460px, 52vw); transition: transform 0.3s; }
.objective .oi { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--pink); color: #fff; flex: none; }
.objective .oi .i { width: 15px; height: 15px; }
.objective.tut .oi { animation: pulseRing 1.4s ease-out infinite; }
.objective .ot { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.objective .op { font: 700 12px var(--display); color: var(--lime); }
.objective.pop { animation: objPop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes objPop { 0% { transform: scale(0.85); } 100% { transform: scale(1); } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.65); } 100% { box-shadow: 0 0 0 12px rgba(255, 77, 109, 0); } }

.hud-tr { position: absolute; right: calc(12px + var(--safe-r)); top: 12px; display: flex; gap: 6px; align-items: center; }
.cur { position: relative; display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px 0 5px; border-radius: 12px; font: 700 15px var(--display); font-variant-numeric: tabular-nums; cursor: pointer; }
.cur .ci { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; }
.cur .ci .i { width: 17px; height: 17px; }
.cur.money .ci { background: rgba(142, 224, 90, 0.16); color: var(--lime); }
.cur.sparks .ci { background: rgba(60, 200, 255, 0.15); color: var(--cyan); }
.cur.bump, .subs.bump { animation: bump 0.45s cubic-bezier(0.3, 1.8, 0.5, 1); }
@keyframes bump { 30% { transform: scale(1.08); } 100% { transform: scale(1); } }
.hud-tc .subs.bump { animation: none; }
.cur .delta { position: absolute; right: 8px; top: 100%; margin-top: 4px; font: 700 13px var(--display); color: var(--lime); text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); animation: deltaUp 1.4s ease-out forwards; white-space: nowrap; pointer-events: none; }
.subs .delta { right: auto; left: 50%; transform: translateX(-50%); }
@keyframes deltaUp { 0% { opacity: 0; margin-top: -2px; } 15% { opacity: 1; } 100% { opacity: 0; margin-top: 16px; } }
.icon-btn { position: relative; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); transition: 0.15s; }
.icon-btn:hover { color: #fff; }

.hud-r { position: absolute; right: calc(12px + var(--safe-r)); top: 60px; display: flex; flex-direction: column; gap: 6px; align-items: stretch; width: 196px; }
.tile { position: relative; display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 10px 0 6px; border-radius: 12px; font-weight: 600; font-size: 13px; text-align: left; transition: transform 0.15s, border-color 0.15s; }
.tile:hover { border-color: var(--line2); transform: translateX(-2px); }
.tile .ti2 { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,0.06); flex: none; }
.tile .ti2 .i { width: 16px; height: 16px; }
.tile .lbl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .q-n, .tile .adv-n { padding: 2px 7px; font-size: 11px; }
.advent-tile { background: linear-gradient(90deg, rgba(212, 36, 47, 0.32), rgba(31, 156, 82, 0.2)), var(--glass, rgba(14, 15, 20, 0.72)); }
.advent-tile .ti2 { background: rgba(255, 107, 107, 0.16); }
.trend-chip .ti2 { color: #ff8a4c; }
.side-btn { position: relative; }
.event-chip { width: 100%; padding: 9px 11px; border-radius: 14px; display: flex; flex-direction: column; align-items: stretch; gap: 5px; overflow: hidden; color: #fff; text-align: left; background: linear-gradient(135deg, var(--e1), var(--e2)); background: linear-gradient(135deg, color-mix(in srgb, var(--e1) 82%, #000), color-mix(in srgb, var(--e2) 70%, #000)); border: 1px solid rgba(255,255,255,0.14); box-shadow: var(--shadow); transition: transform 0.15s; }
.event-chip:hover { transform: translateX(-2px); }
.event-chip .et { font: 700 14px var(--display); line-height: 1.05; }
.event-chip .em { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; opacity: 0.9; }
.event-chip .bar { height: 5px; background: rgba(0,0,0,0.3); }
.event-chip .bar > i { --c1: #fff; --c2: #fff; }
.goal { height: auto; padding: 7px 10px 8px 6px; }
.goal .g-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.goal .gl { font-size: 10px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.goal .gn { font: 700 12.5px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goal .bar { height: 4px; margin-top: 2px; --c1: var(--cyan); --c2: var(--cyan); display: block; }
.goal .gi { color: var(--cyan); }
.goal.ready { border-color: rgba(142, 224, 90, 0.5); }
.goal.ready .gi { color: var(--lime); background: rgba(142, 224, 90, 0.14); }
.goal.ready .bar { --c1: var(--lime); --c2: var(--lime); }

.latest { position: absolute; left: calc(12px + var(--safe-l)); bottom: 12px; width: 268px; display: flex; gap: 10px; align-items: center; padding: 7px; border-radius: 14px; text-align: left; cursor: pointer; }
.latest:hover { border-color: var(--line2); }
.lt-th { position: relative; width: 96px; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: #1c1e27; flex: none; }
.lt-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lt-live { position: absolute; left: 4px; top: 4px; font: 800 9px var(--display); letter-spacing: 0.06em; padding: 2px 5px; border-radius: 4px; background: #ff3b4f; color: #fff; }
.lt-b { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.lt-h { font-size: 9.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.lt-t { font: 600 12.5px var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-s { display: flex; gap: 9px; font-size: 11.5px; color: var(--muted); font-weight: 600; align-items: center; }
.lt-s .i { width: 12px; height: 12px; vertical-align: -2px; margin-right: 2px; }
.lt-s b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }

.dock { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 20px; }
.dock-btn { position: relative; width: 66px; height: 56px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: 600 11px var(--body); color: var(--muted); transition: 0.15s; }
.dock-btn .i { width: 22px; height: 22px; color: #e9eaee; transition: transform 0.2s; }
.dock-btn:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.dock-btn:hover .i { transform: translateY(-1px); }
.dock-btn.main { width: 104px; height: 56px; margin: 0 4px; border-radius: 14px; color: #fff; font: 700 13px var(--display); letter-spacing: 0.02em; background: linear-gradient(180deg, #ff5f7c, #ee3a5e); box-shadow: 0 8px 22px -8px rgba(255, 61, 96, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.dock-btn.main .i { width: 24px; height: 24px; color: #fff; }
.dock-btn.main:hover { filter: brightness(1.06); }
.dock-btn.main:active { transform: translateY(1px); }
.dock-btn.hl, .side-btn.hl, .btn.hl, .need.hl, .card.hl, .tile.hl, .tagb.hl { animation: hl 1.1s ease-in-out infinite; z-index: 5; }
@keyframes hl { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 210, 90, 0.0), 0 0 0 2px rgba(255, 210, 90, 0.95); } 50% { box-shadow: 0 0 0 9px rgba(255, 210, 90, 0.2), 0 0 0 2px rgba(255, 210, 90, 1); } }
.pointer-hand { position: absolute; width: 44px; height: 44px; pointer-events: none; z-index: 120; color: #fff; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5)); animation: tapHint 1s ease-in-out infinite; }
@keyframes tapHint { 50% { transform: translate(6px, 8px) scale(0.92); } }

/* world labels */
#labels { position: absolute; inset: 0; pointer-events: none; z-index: 8; }
.wlabel { position: absolute; transform: translate(-50%, -100%); display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 999px; font: 800 13px var(--display); white-space: nowrap; opacity: 0; transition: opacity 0.2s, transform 0.2s; }
.wlabel.on { opacity: 1; transform: translate(-50%, -110%); }
.wlabel .li { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); }
.wbubble { position: absolute; transform: translate(-50%, -100%); padding: 6px 10px; border-radius: 14px; font: 700 13px var(--body); white-space: nowrap; animation: bubbleUp 2.4s ease-out forwards; }
@keyframes bubbleUp { 0% { opacity: 0; transform: translate(-50%, -80%) scale(0.7); } 12% { opacity: 1; transform: translate(-50%, -100%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -160%); } }
.wmarker { position: absolute; transform: translate(-50%, -100%); color: var(--amber); pointer-events: none; animation: markerBob 0.9s ease-in-out infinite; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5)); }
.wmarker .i { width: 34px; height: 34px; }
@keyframes markerBob { 50% { transform: translate(-50%, -125%); } }

/* ================= MODALS ================= */
#modals { position: absolute; inset: 0; z-index: 40; pointer-events: none; }
.modal-wrap { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: auto; background: radial-gradient(ellipse at center, rgba(8, 9, 14, 0.42), rgba(4, 5, 8, 0.72)); animation: fadeIn 0.2s ease-out; padding: 16px; }
.modal-wrap.clear { background: transparent; pointer-events: none; }
.modal-wrap.clear .modal { pointer-events: auto; }
.modal-wrap.out { animation: fadeOut 0.18s ease-in forwards; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.modal.glass, .picker.glass, .results.glass, .summary.glass, .creator.glass, .viewfinder.glass, .rec-card.glass, .premiere.glass, .shop.glass, .outing.glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(180deg, rgba(26, 27, 34, 0.97), rgba(16, 17, 22, 0.98)); }
.modal { position: relative; width: min(860px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); border-radius: var(--r-xl); display: flex; flex-direction: column; overflow: hidden; animation: modalIn 0.38s cubic-bezier(0.2, 1.3, 0.4, 1); }
.modal.sm { width: min(460px, 100%); }
.modal.md { width: min(640px, 100%); }
.modal.lg { width: min(1040px, 100%); }
.modal-wrap.out .modal { animation: modalOut 0.18s ease-in forwards; }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(0.94); } }
@keyframes modalOut { to { opacity: 0; transform: translateY(12px) scale(0.97); } }
.mh { display: flex; align-items: center; gap: 12px; padding: 18px 18px 10px 22px; }
.mh .mi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--pink); flex: none; box-shadow: inset 0 1px 0 rgba(255,255,255,0.3); }
.mh .mi .i { width: 24px; height: 24px; }
.mh h2 { margin: 0; font: 700 23px var(--display); letter-spacing: -0.02em; line-height: 1; }
.mh .sub { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 3px; }
.mb { padding: 8px 22px 22px; overflow-y: auto; overscroll-behavior: contain; }
.modal.bare .mb { padding: 0; }
.mf { padding: 12px 22px 20px; display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--line); }

.tabs { display: flex; gap: 6px; padding: 4px; border-radius: 16px; background: rgba(0, 0, 0, 0.25); margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--muted); white-space: nowrap; transition: 0.15s; }
.tab:hover { color: #fff; }
.tab.on { background: rgba(255,255,255,0.1); color: #fff; box-shadow: var(--hi); }

/* cards grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.card { position: relative; border-radius: var(--r-lg); padding: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; gap: 8px; transition: transform 0.15s, border-color 0.15s; text-align: left; }
.card.click { cursor: pointer; }
.card.click:hover { transform: translateY(-3px); border-color: var(--line2); background: rgba(255, 255, 255, 0.08); }
.card.sel { border-color: var(--pink); box-shadow: 0 0 0 2px var(--pink), 0 12px 30px -12px rgba(255, 77, 109, 0.55); }
.card.locked { opacity: 0.55; }
.card.owned .own { color: var(--lime); }
.card .thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #1a1930; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .thumb .ribbon { position: absolute; left: 8px; top: 8px; background: rgba(12, 10, 26, 0.86); box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
.card .ttl { font: 700 15px var(--display); line-height: 1.15; }
.card .meta { display: flex; flex-wrap: wrap; gap: 5px; }
.card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.card .big-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); }
.card .big-ic .i { width: 30px; height: 30px; }
.stat-pips { display: flex; gap: 3px; }
.stat-pips i { width: 14px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.12); }
.stat-pips i.on { background: var(--cyan); }
.gtag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; font-size: 11px; font-weight: 800; background: rgba(255, 255, 255, 0.1); background: color-mix(in srgb, var(--gc) 18%, transparent); color: var(--gc); }
.gtag .i { width: 13px; height: 13px; }

/* ================= FLOW SCREENS ================= */
#screens { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
#screens > * { pointer-events: auto; }
.flow { position: absolute; inset: 0; display: flex; flex-direction: column; animation: fadeIn 0.25s; }
.flow-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.step-dots { display: flex; gap: 6px; }
.step-dots i { width: 26px; height: 6px; border-radius: 99px; background: rgba(255,255,255,0.18); }
.step-dots i.on { background: var(--pink); }
.step-dots i.done { background: rgba(255, 79, 139, 0.5); }
.flow-title { font: 800 30px var(--display); letter-spacing: -0.02em; text-shadow: 0 2px 18px rgba(0,0,0,0.45); }
.picker { margin: auto; width: min(1000px, calc(100% - 28px)); max-height: calc(100% - 100px); border-radius: var(--r-xl); padding: 20px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; animation: modalIn 0.35s cubic-bezier(0.2, 1.3, 0.4, 1); }
.picker .mb { padding: 0; }
.pick-head { display: flex; align-items: center; gap: 12px; }
.pick-head h2 { margin: 0; font: 700 25px var(--display); }

/* create hub */
.hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hub-card { position: relative; border-radius: 22px; padding: 18px; min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; overflow: hidden; color: #fff; text-align: left; transition: transform 0.2s; box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.25); }
.hub-card:hover { transform: translateY(-4px) rotate(-0.4deg); }
.hub-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 15%, rgba(255,255,255,0.35), transparent 40%); }
.hub-card .hi2 { position: absolute; right: -18px; top: -14px; width: 150px; height: 150px; opacity: 0.22; }
.hub-card .hc-ic { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; background: rgba(255,255,255,0.22); margin-bottom: auto; }
.hub-card .hc-ic .i { width: 30px; height: 30px; }
.hub-card h3 { margin: 0; font: 800 26px var(--display); position: relative; }
.hub-card p { margin: 0; font-weight: 600; font-size: 14px; opacity: 0.9; position: relative; }
.hub-card .cost { display: flex; gap: 6px; position: relative; flex-wrap: wrap; }
.hub-card .cost .chip { background: rgba(0,0,0,0.22); border-color: rgba(255,255,255,0.18); color: #fff; }
.hub-card.video { background: linear-gradient(150deg, #ff7a7e, #ff4057 60%, #d42459); }
.hub-card.stream { background: linear-gradient(150deg, #b494ff, #8a5cff 60%, #6236e0); }
.hub-card.post { background: linear-gradient(150deg, #6fe0ff, #2fb2f5 60%, #1f7fe0); }
.hub-card.locked { filter: grayscale(0.7) brightness(0.7); }

/* record / minigame */
.viewfinder { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: min(56vw, 760px); border-radius: 22px; padding: 12px; display: flex; flex-direction: column; gap: 10px; animation: slideL 0.4s cubic-bezier(0.2, 1.2, 0.4, 1); }
@keyframes slideL { from { opacity: 0; transform: translate(40px, -50%); } }
.vf-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.vf-screen canvas { width: 100%; height: 100%; display: block; }
.vf-hud { position: absolute; inset: 0; pointer-events: none; }
.rec { position: absolute; left: 12px; top: 10px; display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: rgba(0,0,0,0.55); font: 800 13px var(--display); }
.rec b { width: 10px; height: 10px; border-radius: 50%; background: #ff3b4f; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.vf-timer { position: absolute; right: 12px; top: 10px; padding: 5px 10px; border-radius: 8px; background: rgba(0,0,0,0.55); font: 800 14px var(--display); }
.combo { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); font: 800 34px var(--display); color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,0.35), 0 0 20px var(--pink); }
.judge { position: absolute; left: 22%; top: 46%; transform: translate(-50%, -50%); font: 800 30px var(--display); letter-spacing: 0.02em; pointer-events: none; animation: judge 0.7s ease-out forwards; text-shadow: 0 3px 0 rgba(0,0,0,0.35); }
@keyframes judge { 0% { opacity: 0; transform: translate(-50%, -30%) scale(0.6); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -110%) scale(1); } }
.lane { position: relative; height: 92px; border-radius: 16px; background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.3)); overflow: hidden; touch-action: none; cursor: pointer; border: 1px solid var(--line); }
.lane canvas { width: 100%; height: 100%; display: block; }
.mg-help { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; color: var(--muted); font-size: 14px; }
.mg-help kbd { font: 800 12px var(--display); padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,0.12); color: #fff; }
.score-ring { display: flex; align-items: center; gap: 8px; font: 800 18px var(--display); }

/* edit */
.timeline { position: relative; height: 96px; border-radius: 16px; background: rgba(0,0,0,0.35); border: 1px solid var(--line); display: flex; align-items: center; gap: 4px; padding: 10px; overflow: hidden; }
.seg { position: relative; height: 100%; border-radius: 10px; display: grid; place-items: center; font: 800 11px var(--display); transition: transform 0.15s, opacity 0.3s; cursor: pointer; }
.seg .i { width: 22px; height: 22px; }
.seg.good { background: linear-gradient(180deg, #a6f55c, #6cc72a); color: #173000; }
.seg.meh { background: linear-gradient(180deg, #8d8fb0, #66698c); color: #fff; }
.seg.bad { background: linear-gradient(180deg, #ff7b86, #e83a4c); color: #fff; }
.seg:hover { transform: translateY(-3px); }
.seg.cut { opacity: 0.12; transform: translateY(30px) rotate(8deg); pointer-events: none; }
.seg.lost { opacity: 0.15; filter: grayscale(1); pointer-events: none; }
.playhead { position: absolute; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; background: #fff; box-shadow: 0 0 12px #fff, 0 0 4px var(--pink); left: 0; pointer-events: none; }

/* thumbnails & titles */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.thumbs canvas { width: 100%; border-radius: 12px; display: block; }
.title-opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); cursor: pointer; transition: 0.15s; text-align: left; width: 100%; }
.title-opt:hover { background: rgba(255,255,255,0.09); }
.title-opt.sel { border-color: var(--pink); box-shadow: 0 0 0 2px var(--pink); }
.title-opt .tt { font: 700 15px var(--body); flex: 1; }

/* results */
.results { margin: auto; width: min(860px, calc(100% - 28px)); max-height: calc(100% - 24px); border-radius: var(--r-xl); padding: 22px; display: grid; grid-template-columns: 320px 1fr; gap: 20px; overflow: auto; animation: modalIn 0.45s cubic-bezier(0.2, 1.3, 0.4, 1); }
.res-thumb canvas, .res-thumb img { width: 100%; border-radius: 16px; display: block; box-shadow: 0 16px 40px -14px rgba(0,0,0,0.8); }
.res-title { font: 800 17px var(--display); margin-top: 10px; line-height: 1.2; }
.res-head { font: 800 15px var(--display); color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.res-big { font: 800 64px var(--display); letter-spacing: -0.04em; line-height: 1; margin: 2px 0 8px; background: linear-gradient(180deg, #fff, #d8ccff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.res-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { padding: 12px; border-radius: 16px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); }
.stat .sl { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.stat .sv { font: 800 24px var(--display); margin-top: 2px; }
.stat.money .sv { color: var(--lime); } .stat.subs .sv { color: var(--pink2); } .stat.xp .sv { color: var(--amber); }
.collect-row { position: sticky; bottom: -1px; padding-top: 8px; }
.insights { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; min-height: 32px; }
.insights .chip { animation: chipIn 0.4s cubic-bezier(0.2, 1.6, 0.4, 1) both; font-size: 14px; padding: 7px 12px; }
@keyframes chipIn { from { opacity: 0; transform: scale(0.6) translateY(8px); } }
.viral-burst { position: absolute; inset: 0; pointer-events: none; display: grid; place-items: center; z-index: 60; }
.viral-burst .vb { font: 800 min(16vw, 140px) var(--display); letter-spacing: -0.04em; color: #fff; text-shadow: 0 6px 0 #b81d55, 0 0 60px var(--pink); animation: viral 1.8s cubic-bezier(0.2, 1.4, 0.4, 1) forwards; transform: rotate(-6deg); }
@keyframes viral { 0% { opacity: 0; transform: scale(2.4) rotate(-6deg); } 18% { opacity: 1; transform: scale(1) rotate(-6deg); } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(0.9) rotate(-6deg) translateY(-30px); } }

/* ================= STREAM ================= */
.stream-ui { position: absolute; inset: 0; pointer-events: none; }
.stream-ui > * { pointer-events: auto; }
.s-top { position: absolute; left: 16px; top: 14px; display: flex; gap: 8px; align-items: center; }
.live-badge { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; background: #ff3b4f; font: 800 15px var(--display); box-shadow: 0 6px 20px -6px rgba(255,59,79,0.7); }
.live-badge b { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: blink 1s steps(2) infinite; }
.s-stat { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; font: 800 15px var(--display); }
.s-stat .i { color: var(--pink2); }
.s-capture { position: absolute; left: 16px; top: 62px; width: min(31vw, 380px); border-radius: 16px; overflow: hidden; border: 3px solid var(--ov1, var(--pink)); box-shadow: var(--shadow); background: #000; }
.s-capture canvas { width: 100%; display: block; aspect-ratio: 16 / 9; }
.s-capture .cap-lbl { position: absolute; left: 8px; bottom: 6px; font: 800 11px var(--display); padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,0.6); }
.chat { position: absolute; right: 14px; top: 14px; bottom: 120px; width: min(30vw, 340px); border-radius: 20px; display: flex; flex-direction: column; overflow: hidden; }
.chat-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font: 800 14px var(--display); border-bottom: 1px solid var(--line); }
.chat-h .rate { margin-left: auto; font: 700 12px var(--body); color: var(--muted); }
.chat-list { flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 8px 10px; gap: 3px; -webkit-mask: linear-gradient(transparent, #000 18%); mask: linear-gradient(transparent, #000 18%); }
.msg { font-size: 14px; line-height: 1.32; padding: 3px 6px; border-radius: 8px; animation: msgIn 0.25s ease-out; word-wrap: break-word; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.msg .u { font-weight: 800; margin-right: 5px; }
.msg .bdg { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; margin-right: 4px; vertical-align: -3px; }
.msg .bdg .i { width: 11px; height: 11px; }
.msg.don { background: rgba(182,255,92,0.13); border: 1px solid rgba(182,255,92,0.35); }
.msg.sub { background: rgba(155,123,255,0.16); border: 1px solid rgba(155,123,255,0.35); }
.msg.troll { background: rgba(255,93,108,0.14); border: 1px solid rgba(255,93,108,0.4); }
.msg.troll .ban { margin-left: 6px; padding: 2px 8px; border-radius: 6px; background: var(--red); font: 800 11px var(--display); color: #fff; vertical-align: 1px; }
.msg.q { background: rgba(53,220,255,0.12); border: 1px solid rgba(53,220,255,0.35); }
.msg.me { background: rgba(255,79,139,0.16); }
.msg.sys { color: var(--muted); font-style: italic; font-size: 13px; }
.s-bottom { position: absolute; left: 16px; right: calc(min(30vw, 340px) + 30px); bottom: 14px; display: flex; flex-direction: column; gap: 10px; }
.hype { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 16px; }
.hype .bar { flex: 1; height: 14px; --c1: #ffb547; --c2: #ff4f8b; }
.hype.train .bar > i { animation: train 0.5s linear infinite; background: repeating-linear-gradient(135deg, #ffe066 0 12px, #ff4f8b 12px 24px); }
@keyframes train { to { background-position: 34px 0; } }
.hype .hl { font: 800 14px var(--display); white-space: nowrap; }
.s-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.s-act { position: relative; flex: 1; min-width: 92px; height: 66px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: 800 13px var(--display); overflow: hidden; }
.s-act .i { width: 24px; height: 24px; }
.s-act .cd { position: absolute; inset: 0; background: rgba(0,0,0,0.55); transform-origin: left; pointer-events: none; }
.s-act.ready { box-shadow: var(--shadow), 0 0 0 2px rgba(255,255,255,0.15); }
.s-act:active { transform: translateY(2px); }
.s-act.k1 .i { color: var(--cyan); } .s-act.k2 .i { color: var(--amber); } .s-act.k3 .i { color: var(--pink2); } .s-act.k4 .i { color: var(--lime); } .s-act.k5 .i { color: #c3b2ff; }
.s-act.clipready { animation: actFlash 0.6s ease-in-out infinite; }
@keyframes actFlash { 50% { box-shadow: 0 0 0 3px var(--amber), 0 0 24px var(--amber); } }
.alert-pop { position: absolute; left: calc(50% - min(15vw, 170px)); top: 70px; transform: translateX(-50%); padding: 12px 22px; border-radius: 18px; font: 800 18px var(--display); display: flex; align-items: center; gap: 10px; animation: alertIn 0.5s cubic-bezier(0.2, 1.6, 0.4, 1); white-space: nowrap; z-index: 3; }
@keyframes alertIn { from { opacity: 0; transform: translate(-50%, -20px) scale(0.7); } }
.alert-pop.don { background: linear-gradient(135deg, #b6ff5c, #4fd37b); color: #102300; box-shadow: 0 16px 40px -10px rgba(120,255,90,0.6); }
.alert-pop.raid { background: linear-gradient(135deg, #ffb547, #ff4f8b); }
.alert-pop.sub { background: linear-gradient(135deg, #b39bff, #6236e0); }
.alert-pop .btn { margin-left: 6px; }
.qte { position: absolute; left: calc(50% - min(15vw, 170px)); top: 46%; transform: translate(-50%, -50%); width: 220px; height: 220px; pointer-events: auto; cursor: pointer; z-index: 4; }
.qte canvas { width: 100%; height: 100%; }
.poll-box { position: absolute; left: calc(50% - min(15vw, 170px)); top: 120px; transform: translateX(-50%); width: 300px; padding: 14px; border-radius: 18px; z-index: 3; animation: alertIn 0.4s; }
.poll-opt { position: relative; height: 34px; border-radius: 10px; background: rgba(255,255,255,0.08); overflow: hidden; margin-top: 8px; display: flex; align-items: center; padding: 0 12px; font-weight: 800; }
.poll-opt i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--violet), var(--pink)); opacity: 0.6; transition: width 0.3s; }
.poll-opt span { position: relative; }
.qa-box { position: absolute; left: calc(50% - min(15vw, 170px)); top: 130px; transform: translateX(-50%); padding: 14px 16px; border-radius: 18px; z-index: 3; width: min(380px, 70vw); animation: alertIn 0.4s; }
.qa-box .qa-h { display: flex; align-items: center; gap: 5px; font: 600 12.5px var(--body); color: var(--muted); }
.qa-box .qa-h b { color: #fff; font-weight: 800; }
.qa-box .qa-rw { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 99px; background: rgba(255, 181, 71, 0.16); color: var(--amber); font-weight: 800; }
.qa-box .qa-q { font-size: 18px; margin: 4px 0 10px; }
.qa-box .qa-t { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); margin-top: 10px; overflow: hidden; }
.qa-box .qa-t i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--pink)); transform-origin: left; animation: qaTimer linear forwards; }
@keyframes qaTimer { to { transform: scaleX(0); } }
.qa-box .btn.picked { --b: #c8ff7a; --b2: #4fd37b; color: #102300; }
.qa-box.ok { pointer-events: none; animation: qaOut 0.62s ease-in forwards; }
.qa-box.miss { pointer-events: none; animation: fadeOut 0.3s forwards; }
@keyframes qaOut { 30% { transform: translateX(-50%) scale(1.05); } 100% { opacity: 0; transform: translate(-50%, -18px) scale(0.92); } }
.end-btn { position: absolute; right: calc(min(30vw, 340px) + 30px); top: 14px; }
.summary { margin: auto; width: min(760px, calc(100% - 28px)); border-radius: var(--r-xl); padding: 22px; animation: modalIn 0.45s cubic-bezier(0.2, 1.3, 0.4, 1); max-height: calc(100% - 24px); overflow: auto; }
.stinger { position: absolute; inset: 0; z-index: 70; pointer-events: none; display: grid; place-items: center; overflow: hidden; }
.stinger .band { position: absolute; left: -10%; right: -10%; height: 36%; background: linear-gradient(90deg, #ff3b4f, #ff4f8b, #9b6bff); transform: skewY(-8deg) translateX(-110%); animation: band 1.2s cubic-bezier(0.7, 0, 0.3, 1) forwards; }
.stinger .band.b2 { background: linear-gradient(90deg, #35dcff, #9b6bff); height: 22%; animation-delay: 0.08s; top: 52%; }
.stinger .word { position: relative; font: 800 min(18vw, 160px) var(--display); color: #fff; letter-spacing: -0.04em; opacity: 0; animation: word 1.2s ease-out forwards; display: flex; align-items: center; gap: 0.2em; }
.stinger .word b { width: 0.45em; height: 0.45em; border-radius: 50%; background: #fff; box-shadow: 0 0 30px #fff; }
@keyframes band { 0% { transform: skewY(-8deg) translateX(-110%); } 40%, 60% { transform: skewY(-8deg) translateX(0); } 100% { transform: skewY(-8deg) translateX(110%); } }
@keyframes word { 0%, 25% { opacity: 0; transform: scale(1.6); } 40% { opacity: 1; transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: scale(0.95); } }

/* ================= PHONE ================= */
.phone-wrap { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5, 4, 15, 0.55); animation: fadeIn 0.2s; pointer-events: auto; }
.phone { position: relative; width: 380px; height: min(760px, calc(100vh - 30px)); height: min(760px, calc(100dvh - 30px)); border-radius: 46px; padding: 12px; background: linear-gradient(160deg, #3a3860, #17162c); box-shadow: 0 40px 80px -20px rgba(0,0,0,0.8), inset 0 0 0 2px rgba(255,255,255,0.12), inset 0 0 0 8px #0b0b16; animation: phoneIn 0.45s cubic-bezier(0.2, 1.3, 0.4, 1); }
@keyframes phoneIn { from { transform: translateY(60px) rotate(4deg); opacity: 0; } }
.phone-wrap.out .phone { animation: phoneOut 0.2s ease-in forwards; }
@keyframes phoneOut { to { transform: translateY(60px); opacity: 0; } }
.screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: linear-gradient(180deg, #1b1838, #0f0e20); display: flex; flex-direction: column; }
.notch { position: absolute; left: 50%; top: 8px; width: 92px; height: 24px; border-radius: 14px; background: #06060c; transform: translateX(-50%); z-index: 5; }
.status { display: flex; justify-content: space-between; padding: 12px 24px 4px; font: 700 13px var(--body); }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 8px; padding: 20px 18px; }
.app { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; }
.app .ai { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; box-shadow: 0 8px 18px -8px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.3); transition: transform 0.15s; }
.app .ai .i { width: 30px; height: 30px; }
.app:hover .ai { transform: scale(1.07); }
.app.locked .ai { filter: grayscale(1) brightness(0.5); }
.app .lock { position: absolute; top: 40px; color: #fff; }
.phone-home-w { margin: 4px 18px 0; padding: 16px; border-radius: 22px; background: rgba(205,100,200,0.3); border: 1px solid var(--line2); }
.app-head { display: flex; align-items: center; gap: 10px; padding: 8px 16px 10px; }
.app-head h3 { margin: 0; font: 800 22px var(--display); flex: 1; }
.app-body { flex: 1; overflow-y: auto; padding: 0 14px 16px; scrollbar-width: none; }
.app-body::-webkit-scrollbar { display: none; }
.post-type { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,0.06); border: 1px solid var(--line); margin-bottom: 8px; width: 100%; text-align: left; transition: 0.15s; }
.post-type:hover { background: rgba(255,255,255,0.1); }
.post-type.locked { opacity: 0.5; }
.post-type .pi { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.post-type .pn { font: 800 15px var(--display); }
.post-type .pd { font-size: 12px; color: var(--muted); font-weight: 600; }
.feed-post { padding: 12px; border-radius: 18px; background: rgba(255,255,255,0.06); border: 1px solid var(--line); margin-bottom: 10px; animation: modalIn 0.4s cubic-bezier(0.2,1.3,0.4,1); }
.feed-post .fp-h { display: flex; align-items: center; gap: 8px; }
.feed-post .fp-av { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: #2a2850; }
.feed-post .fp-av canvas, .feed-post .fp-av img { width: 120%; height: 120%; margin: -10%; }
.feed-post .fp-img { margin-top: 8px; border-radius: 14px; overflow: hidden; }
.feed-post .fp-img canvas, .feed-post .fp-img img { width: 100%; display: block; }
.feed-post .fp-t { margin-top: 8px; font-size: 14px; font-weight: 500; }
.feed-post .fp-s { display: flex; gap: 14px; margin-top: 8px; font: 800 13px var(--display); color: var(--muted); }
.feed-post .fp-s span { display: flex; align-items: center; gap: 4px; }
.feed-post .fp-s .hot { color: var(--pink2); }
.reply { margin-top: 6px; padding: 6px 10px; border-radius: 12px; background: rgba(0,0,0,0.2); font-size: 13px; animation: msgIn 0.3s; }

/* ================= TOASTS ================= */
#toasts { position: absolute; right: calc(14px + var(--safe-r)); bottom: 110px; z-index: 50; display: flex; flex-direction: column-reverse; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 16px; max-width: 340px; font-weight: 700; font-size: 14px; animation: toastIn 0.4s cubic-bezier(0.2, 1.4, 0.4, 1); }
.toast.out { animation: toastOut 0.3s ease-in forwards; }
.toast .ti { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--tc, var(--pink)); color: #fff; }
.toast .ti .i { width: 18px; height: 18px; }
.toast small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px) scale(0.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

#fx { position: absolute; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.fly { position: absolute; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; will-change: transform; }
.fly.money { background: linear-gradient(180deg, #d4ff8a, #8fe83a); color: #173000; box-shadow: 0 4px 10px rgba(0,0,0,0.35); }
.fly.xp { background: linear-gradient(180deg, #ffd577, #ffb02e); color: #2b1700; }
.fly.fans { background: linear-gradient(180deg, #ff8fb5, #ff4f8b); color: #fff; }
.fly.sparks { background: linear-gradient(180deg, #8ff0ff, #2fc8f0); color: #05303d; }
.fly .i { width: 17px; height: 17px; }
.float-txt { position: absolute; font: 800 22px var(--display); transform: translate(-50%, -50%); text-shadow: 0 3px 0 rgba(0,0,0,0.35), 0 0 16px rgba(0,0,0,0.4); animation: floatTxt 1.3s ease-out forwards; white-space: nowrap; }
@keyframes floatTxt { 0% { opacity: 0; transform: translate(-50%, -30%) scale(0.6); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -160%) scale(1); } }
.flash { position: absolute; inset: 0; background: #fff; animation: flash 0.5s ease-out forwards; }
@keyframes flash { from { opacity: 0.85; } to { opacity: 0; } }

/* ================= DAILY / QUESTS / EVENTS ================= */
.cal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.day { position: relative; border-radius: 20px; padding: 14px 10px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: rgba(255,255,255,0.05); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); border: 1px solid var(--line); min-height: 150px; text-align: center; overflow: hidden; }
.day .dn { font: 800 12px var(--display); color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.day .dic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin: 4px 0; background: rgba(255,255,255,0.08); }
.day .dic .i { width: 34px; height: 34px; }
.day .dl { font: 800 14px var(--display); line-height: 1.1; }
.day .ds { font-size: 12px; color: var(--muted); font-weight: 600; }
.day.claimed { opacity: 0.5; }
.day.claimed::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b6ff5c' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17.5 19 7'/%3E%3C/svg%3E") center 40% / 60px no-repeat; }
.day.today { border-color: var(--amber); box-shadow: 0 0 0 2px var(--amber), 0 18px 40px -14px rgba(255,194,75,0.6); background: rgba(255,194,75,0.13); animation: todayGlow 1.6s ease-in-out infinite; }
@keyframes todayGlow { 50% { box-shadow: 0 0 0 2px var(--amber), 0 18px 50px -10px rgba(255,194,75,0.85); } }
.day.rare .dic { background: linear-gradient(135deg, #b39bff, #ff4f8b); box-shadow: 0 0 24px rgba(255,79,139,0.5); }
.day.mega { grid-column: span 2; background: rgba(255,140,110,0.2); border-color: rgba(255,194,75,0.5); }
.day.mega .dic { width: 84px; height: 84px; background: linear-gradient(135deg, #ffd577, #ff7a2f); box-shadow: 0 0 40px rgba(255,194,75,0.6); animation: megaSpin 4s ease-in-out infinite; }
.day.mega .dic .i { width: 46px; height: 46px; color: #2b1700; }
@keyframes megaSpin { 50% { transform: rotate(-6deg) scale(1.06); } }
.day .rays { position: absolute; inset: -40%; background: repeating-conic-gradient(rgba(255,255,255,0.07) 0 10deg, transparent 10deg 20deg); animation: rays 14s linear infinite; pointer-events: none; }
@keyframes rays { to { transform: rotate(360deg); } }
.stamp { position: absolute; inset: 0; display: grid; place-items: center; font: 800 22px var(--display); color: var(--lime); animation: stamp 0.5s cubic-bezier(0.2, 1.8, 0.4, 1); }
@keyframes stamp { from { transform: scale(2.5) rotate(-20deg); opacity: 0; } }
.quest { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); margin-bottom: 10px; }
.quest .qi { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(53,220,255,0.14); color: var(--cyan); flex: none; }
.quest.done .qi { background: rgba(182,255,92,0.18); color: var(--lime); }
.quest .qt { font: 700 15px var(--body); }
.quest .bar { height: 8px; margin-top: 6px; --c1: var(--cyan); --c2: #8af0ff; }
.quest.done .bar { --c1: var(--lime); --c2: #e0ff9e; }
.quest .qr { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.ev-hero { position: relative; border-radius: 22px; padding: 20px; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--e1), var(--e2)); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.3); }
.ev-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 10%, rgba(255,255,255,0.4), transparent 40%), repeating-linear-gradient(135deg, rgba(255,255,255,0.07) 0 10px, transparent 10px 20px); }
.ev-hero > * { position: relative; }
.ev-hero h3 { margin: 4px 0 2px; font: 800 34px var(--display); letter-spacing: -0.03em; line-height: 1; text-shadow: 0 2px 10px rgba(0,0,0,0.25); }
.ev-hero .ev-art { position: absolute; right: 14px; top: 10px; width: 120px; height: 120px; opacity: 0.35; }
.ev-hero.locked { filter: saturate(0.6); }
.ev-hero .lockline { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,0.35); font: 800 13px var(--display); letter-spacing: 0.05em; }
.track { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; padding-bottom: 6px; }
.tr-node { position: relative; flex: 1; min-width: 104px; padding: 10px 8px; border-radius: 16px; background: rgba(0,0,0,0.28); border: 1px solid rgba(255,255,255,0.18); display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.tr-node .tn-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,0.16); }
.tr-node .tn-ic .i { width: 26px; height: 26px; }
.tr-node .tn-l { font: 800 12px var(--display); line-height: 1.1; }
.tr-node .tn-p { font: 700 11px var(--body); opacity: 0.85; }
.tr-node.got { border-color: var(--lime); background: rgba(182,255,92,0.15); }
.tr-node.ready { border-color: #fff; animation: todayGlow 1.4s infinite; }
.tr-node.last .tn-ic { background: linear-gradient(135deg, #ffd577, #ff7a2f); color: #2b1700; }

/* level up */
.lvlup { text-align: center; padding: 26px 22px 22px; position: relative; overflow: hidden; }
.lvlup .burst { position: absolute; inset: -50%; background: repeating-conic-gradient(rgba(255,194,75,0.12) 0 9deg, transparent 9deg 18deg); animation: rays 16s linear infinite; }
.lvlup .ln { position: relative; width: 130px; height: 130px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 30%, #ffe39a, #ffb02e 60%, #e0820b); font: 800 64px var(--display); color: #2b1700; box-shadow: 0 0 0 8px rgba(255,194,75,0.25), 0 0 60px rgba(255,194,75,0.6); animation: lvlPop 0.7s cubic-bezier(0.2, 1.8, 0.4, 1); }
@keyframes lvlPop { from { transform: scale(0.2) rotate(-30deg); } }
.lvlup h2 { position: relative; font: 800 38px var(--display); margin: 14px 0 2px; }
.unlocks { position: relative; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 16px 0 6px; }
.unlock { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 14px; background: rgba(255,255,255,0.08); border: 1px solid var(--line2); font: 700 14px var(--body); animation: chipIn 0.4s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.unlock .ui2 { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--violet); }
.unlock .ui2 .i { width: 18px; height: 18px; }

/* creator (character customisation) */
.creator { position: absolute; left: calc(16px + var(--safe-l)); top: 50%; transform: translateY(-50%); width: min(420px, 46vw); max-height: calc(100% - 28px); border-radius: 26px; padding: 18px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; animation: slideR 0.5s cubic-bezier(0.2, 1.2, 0.4, 1); }
@keyframes slideR { from { opacity: 0; transform: translate(-40px, -50%); } }
.creator h2 { margin: 0; font: 700 26px var(--display); letter-spacing: -0.02em; }
.creator .sc { overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding-right: 4px; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0,0,0,0.28); border: 1px solid var(--line); }
.seg button { flex: 1; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 700 14px var(--body); color: var(--muted); transition: 0.15s; }
.seg button:hover { color: #fff; }
.seg button.on { background: rgba(255,255,255,0.92); color: #15151c; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.opt.brand { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.opt.brand small { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.opt-row .ol { font: 700 12px var(--body); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { padding: 8px 12px; border-radius: 12px; font-weight: 700; font-size: 14px; background: rgba(255,255,255,0.07); border: 1px solid var(--line); transition: 0.15s; }
.opt:hover { background: rgba(255,255,255,0.12); }
.opt.on { background: #fff; color: #14151b; border-color: transparent; }
.opt.lock { opacity: 0.4; pointer-events: none; }
.sw { width: 34px; height: 34px; border-radius: 50%; border: 3px solid transparent; box-shadow: inset 0 0 0 2px rgba(0,0,0,0.25); transition: transform 0.15s; }
.sw:hover { transform: scale(1.1); }
.sw.on { border-color: #fff; box-shadow: 0 0 0 2px var(--pink); }
.name-in { width: 100%; height: 46px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(0,0,0,0.3); color: #fff; padding: 0 14px; font: 800 18px var(--display); outline: none; user-select: text; -webkit-user-select: text; }
.name-in:focus { border-color: var(--pink); }

/* intro */
#intro { position: absolute; inset: 0; z-index: 200; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #2a1b5a, #0b0a18 70%); transition: opacity 0.6s; }
#intro.out { opacity: 0; pointer-events: none; }
/* winter: snow drifting over the loading screen */
body.winter #intro::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.8;
  background-image: radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 52%), radial-gradient(3px 3px at 80px 120px, #fff 50%, transparent 52%), radial-gradient(2px 2px at 150px 60px, #fff 50%, transparent 52%), radial-gradient(4px 4px at 200px 170px, rgba(255,255,255,0.8) 50%, transparent 52%), radial-gradient(2px 2px at 110px 210px, #fff 50%, transparent 52%);
  background-size: 240px 240px; animation: introSnow 9s linear infinite; }
@keyframes introSnow { from { background-position: 0 0; } to { background-position: 60px 240px; } }
.logo { text-align: center; }
.logo .l1 { font: 800 min(15vw, 128px) var(--display); letter-spacing: -0.05em; line-height: 0.85; background: linear-gradient(180deg, #fff 30%, #ffc2d8); -webkit-background-clip: text; background-clip: text; color: transparent; animation: logoIn 0.9s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.logo .l2 { font: 800 min(15vw, 128px) var(--display); letter-spacing: -0.05em; line-height: 0.85; display: inline-flex; align-items: center; gap: 0.12em; color: var(--pink); text-shadow: 0 0 40px rgba(255,79,139,0.55); animation: logoIn 0.9s 0.12s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.logo .l2 .rec { position: static; width: 0.42em; height: 0.42em; border-radius: 50%; background: #ff3b4f; padding: 0; box-shadow: 0 0 30px #ff3b4f; animation: blink 1s steps(2) infinite; }
.logo .tagl { margin-top: 18px; font: 700 18px var(--body); color: var(--muted); animation: logoIn 0.9s 0.3s both; }
@keyframes logoIn { from { opacity: 0; transform: translateY(30px) scale(0.9); } }
.loadbar { width: 220px; height: 6px; border-radius: 9px; background: rgba(255,255,255,0.1); margin: 26px auto 0; overflow: hidden; }
.loadbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--violet)); transition: width 0.3s; }
#rotate { position: absolute; inset: 0; z-index: 300; display: none; place-items: center; text-align: center; background: #0b0a18; padding: 30px; }
#rotate .i { width: 70px; height: 70px; color: var(--pink); animation: rot 1.8s ease-in-out infinite; }
@keyframes rot { 40%, 60% { transform: rotate(90deg); } }
@media (orientation: portrait) and (max-width: 700px) { #rotate { display: grid; } }

/* settings */
.set-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: 0; }
.set-row .sl { flex: 1; font-weight: 700; display: flex; align-items: center; gap: 10px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 200px; height: 8px; border-radius: 9px; background: rgba(255,255,255,0.12); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px rgba(255,79,139,0.25); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--pink); border: 0; }
.seg-ctl { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,0.3); }
.seg-ctl button { padding: 7px 12px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--muted); }
.seg-ctl button.on { background: rgba(255,255,255,0.14); color: #fff; }

/* analytics */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { padding: 12px; border-radius: 16px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); }
.kpi .kh { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.kpi .kv { font: 800 26px var(--display); margin-top: 4px; }
.kpi .kd { font: 700 12px var(--body); color: var(--lime); }
.chart { width: 100%; height: 170px; display: block; }
.vid-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: rgba(255,255,255,0.04); margin-bottom: 6px; }
.vid-row img, .vid-row canvas { width: 96px; border-radius: 9px; aspect-ratio: 16/9; object-fit: cover; }
.vid-row .vt { font: 700 14px var(--body); line-height: 1.2; }

/* studio video list */
.vstats { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; font: 600 12px var(--body); color: var(--muted); }
.vstats > span { display: inline-flex; align-items: center; gap: 3px; }
.vstats .i { width: 13px; height: 13px; }
.vstats .dl .i { transform: scaleY(-1); color: var(--red); }
.vstats .grade-pill { padding: 0; border: 0; background: none; }
.vstats .grade-pill b { min-width: 20px; height: 20px; font-size: 12px; border-radius: 6px; }
/* ================= VIDEO LOOP (record / edit / publish / premiere) ================= */
.bar.thin { height: 6px; }
.grade-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 9px; border-radius: 9px; background: rgba(255,255,255,0.06); border: 1px solid var(--line); }
.grade-pill small { font: 600 10.5px var(--body); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.grade-pill b { min-width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font: 800 14px var(--display); background: #5b6070; color: #fff; }
.grade-pill[data-g="S"] b { background: linear-gradient(135deg, #ffd86b, #ff8a3c); color: #2b1300; }
.grade-pill[data-g="A"] b { background: var(--lime); color: #0f2205; }
.grade-pill[data-g="B"] b { background: var(--cyan); color: #032433; }
.grade-pill[data-g="C"] b { background: #8a8f9e; }
.grade-pill[data-g="D"] b { background: var(--red); }
.rec-card { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: min(56vw, 760px); border-radius: 18px; padding: 10px; display: flex; flex-direction: column; gap: 9px; animation: slideL 0.4s cubic-bezier(0.2, 1.2, 0.4, 1); }
.rec-foot { display: flex; align-items: center; gap: 12px; padding: 0 4px; }
.rf-l { display: flex; justify-content: space-between; font: 600 12.5px var(--body); color: var(--muted); margin-bottom: 6px; }
.rf-l b { color: #fff; }
.rf-l .i { width: 14px; height: 14px; vertical-align: -2px; }
.rf-p { font: 700 12.5px var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.rec-foot .bar { --c1: #ff5a5f; --c2: #ff8a8d; }
.rec-foot .bar > i { transition: none; }
.rf-hint { text-align: center; font: 600 12.5px var(--body); color: var(--muted); padding-bottom: 2px; }
.rf-hint .i { width: 14px; height: 14px; vertical-align: -2px; color: var(--amber); }
.moments { position: absolute; inset: 0; }
.moment { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px; padding: 8px 12px 8px 9px; border-radius: 12px; background: rgba(10, 11, 16, 0.82); border: 2px solid var(--mc); color: #fff; font: 800 13px var(--display); letter-spacing: 0.02em; cursor: pointer; animation: momIn 0.3s cubic-bezier(0.2, 1.6, 0.4, 1); box-shadow: 0 0 24px -4px var(--mc); }
.moment .i { color: var(--mc); width: 18px; height: 18px; }
.moment .ring { position: absolute; left: -2px; right: -2px; bottom: -2px; height: 3px; background: var(--mc); border-radius: 0 0 10px 10px; transform-origin: left; animation: momT 1.7s linear forwards; }
.moment.got { animation: momGot 0.35s ease-out forwards; pointer-events: none; }
.moment.miss { animation: momMiss 0.3s ease-in forwards; pointer-events: none; }
@keyframes momIn { from { opacity: 0; transform: translate(-50%, -50%) scale(0.4); } }
@keyframes momT { to { transform: scaleX(0); } }
@keyframes momGot { to { opacity: 0; transform: translate(-50%, -90%) scale(1.35); } }
@keyframes momMiss { to { opacity: 0; transform: translate(-50%, -50%) scale(0.7); } }
.wrap-t { position: absolute; inset: 0; display: grid; place-items: center; font: 800 40px var(--display); letter-spacing: -0.02em; text-shadow: 0 4px 24px rgba(0,0,0,0.7); animation: chipIn 0.4s cubic-bezier(0.2, 1.6, 0.4, 1); background: rgba(0,0,0,0.25); }
.edit-pick { width: min(860px, calc(100% - 28px)); }
.edit-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.edit-opt { padding: 14px; gap: 6px; }
.eo-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,0.07); margin-bottom: 4px; }
.eo-ic .i { width: 22px; height: 22px; }
.eo-q { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; font: 600 11.5px var(--body); color: var(--muted); margin: 4px 0; }
.eo-q .bar { --c1: var(--cyan); --c2: var(--lime); }
.eo-q b { font: 800 13px var(--display); color: #fff; }
.edit-prog { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: min(560px, calc(100% - 24px)); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; animation: modalIn 0.35s cubic-bezier(0.2, 1.3, 0.4, 1); }
.ep-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(143, 125, 255, 0.16); color: #c0b6ff; }
.ep-pct { font-size: 20px; font-variant-numeric: tabular-nums; }
.ep-tl { position: relative; display: flex; gap: 3px; height: 34px; padding: 5px; border-radius: 10px; background: rgba(0,0,0,0.35); border: 1px solid var(--line); }
.ep-tl i { border-radius: 5px; transition: opacity 0.3s, transform 0.3s, flex 0.4s; }
.ep-tl i.good { background: linear-gradient(180deg, #a6e86f, #6cbf3a); }
.ep-tl i.meh { background: #5f6475; }
.ep-tl i.bad { background: #d9505f; }
.ep-tl i.cut { opacity: 0; flex: 0.001 !important; transform: translateY(14px); }
.ep-tl .ph { position: absolute; top: 2px; bottom: 2px; width: 2px; background: #fff; box-shadow: 0 0 10px #fff; left: 0; }
.ep-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.ep-steps span { display: inline-flex; align-items: center; gap: 4px; font: 600 11.5px var(--body); color: var(--dim); padding: 3px 8px; border-radius: 7px; background: rgba(255,255,255,0.04); }
.ep-steps span .i { width: 12px; height: 12px; opacity: 0; }
.ep-steps span.on { color: #fff; background: rgba(255,255,255,0.09); }
.ep-steps span.done { color: var(--lime); }
.ep-steps span.done .i { opacity: 1; }
.pub-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px; }
.pl { font: 700 11px var(--body); color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.pl .muted { text-transform: none; letter-spacing: 0; font-weight: 600; }
.pub .thumbs { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.thumb-card { padding: 7px !important; gap: 6px !important; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tagb { display: inline-flex; align-items: center; gap: 3px; padding: 6px 10px; border-radius: 9px; font: 600 13px var(--body); background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--muted); transition: 0.15s; }
.tagb .i { width: 13px; height: 13px; }
.tagb:hover { color: #fff; }
.tagb.on { background: rgba(60, 200, 255, 0.14); border-color: rgba(60, 200, 255, 0.45); color: #fff; }
.tagb.hot .i { color: #ff8a4c; }
.pub-foot { gap: 12px; }
.premiere { margin: auto; width: min(1000px, calc(100% - 24px)); max-height: calc(100% - 24px); border-radius: 20px; padding: 18px; display: grid; grid-template-columns: 300px 1fr; gap: 20px; overflow: auto; animation: modalIn 0.45s cubic-bezier(0.2, 1.3, 0.4, 1); }
.pm-thumb canvas { width: 100%; border-radius: 12px; display: block; box-shadow: 0 16px 40px -14px rgba(0,0,0,0.8); }
.pm-title { font: 700 16px var(--display); margin-top: 10px; line-height: 1.25; }
.pm-meta { flex-wrap: wrap; margin-top: 8px; gap: 6px; }
.pm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font: 600 12px var(--body); color: var(--cyan); }
.pm-right { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pm-head { gap: 8px; font: 700 12px var(--body); letter-spacing: 0.08em; }
.pm-head .muted { letter-spacing: 0; font-weight: 600; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b4f; box-shadow: 0 0 0 0 rgba(255,59,79,0.6); animation: liveDot 1.2s ease-out infinite; }
.live-dot.off { background: var(--lime); animation: none; }
@keyframes liveDot { 100% { box-shadow: 0 0 0 10px rgba(255,59,79,0); } }
.pm-clock { font: 700 13px var(--display); color: var(--muted); font-variant-numeric: tabular-nums; }
.pm-big { display: flex; align-items: baseline; gap: 10px; }
.pm-views { font: 800 58px var(--display); letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.pm-big small { font: 600 15px var(--body); color: var(--muted); }
.pm-chart { width: 100%; height: 110px; border-radius: 12px; background: rgba(0,0,0,0.25); border: 1px solid var(--line); }
.pm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pm-stats > div { padding: 9px 11px; border-radius: 12px; background: rgba(255,255,255,0.045); border: 1px solid var(--line); min-width: 0; }
.pm-stats small { display: flex; align-items: center; gap: 4px; font: 600 11px var(--body); color: var(--muted); white-space: nowrap; }
.pm-stats small .i { width: 13px; height: 13px; }
.pm-stats b { display: block; font: 700 20px var(--display); margin-top: 2px; font-variant-numeric: tabular-nums; }
.pm-stats [data-k=subs] { color: var(--pink2); } .pm-stats [data-k=money] { color: var(--lime); }
.ld-bar { display: flex; height: 5px; border-radius: 5px; overflow: hidden; background: rgba(255,255,255,0.08); }
.ld-bar .l { background: var(--cyan); transition: width 0.3s; } .ld-bar .d { background: var(--red); transition: width 0.3s; }
.pm-comments { display: flex; flex-direction: column; gap: 6px; min-height: 120px; }
.cm { display: flex; gap: 8px; align-items: flex-start; animation: msgIn 0.3s ease-out; }
.cm > i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 800 12px var(--display); font-style: normal; color: #14151b; flex: none; }
.cm b { display: block; font: 700 11.5px var(--body); color: var(--muted); }
.cm span { font-size: 13px; line-height: 1.3; }
.cm.neg span { color: #ffb0b8; }
.premiere .insights { margin: 12px 0 0; }
.away .aw-h { display: flex; align-items: center; gap: 12px; }
.away h2 { margin: 0; font: 700 22px var(--display); }
.aw-ic .i { width: 40px; height: 40px; }
.aw-k { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.aw-k > div { padding: 10px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); }
.aw-k small { display: flex; align-items: center; gap: 4px; font: 600 11px var(--body); color: var(--muted); }
.aw-k small .i { width: 13px; height: 13px; }
.aw-k b { font: 700 20px var(--display); }
.away { padding: 18px; }

/* ================= SHOP ================= */
.modal.full { width: min(1320px, 100%); height: calc(100vh - 28px); height: calc(100dvh - 28px); max-height: none; }
.modal.shopm { background: linear-gradient(180deg, #17181e, #101116) !important; }
.modal.shopm .mb { height: 100%; overflow: hidden; display: flex; }
.shop { flex: 1; display: flex; flex-direction: column; min-height: 0; min-width: 0; padding: 14px 16px 16px; gap: 10px; }
.sh-top, .sh-subs, .sh-main, .sh-main > * { min-width: 0; }
.sh-tabs { flex: 0 1 auto; min-width: 0; }
.sh-top { display: flex; align-items: center; gap: 10px; }
.sh-ttl { display: flex; align-items: center; gap: 8px; font: 700 20px var(--display); margin-right: 6px; }
.sh-ttl .i { color: var(--cyan); }
.sh-tabs { margin: 0; }
.sh-top .cur { height: 34px; background: rgba(255,255,255,0.05); box-shadow: none; }
.sh-subs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.sh-subs::-webkit-scrollbar { display: none; }
.subb { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; font: 600 13px var(--body); color: var(--muted); background: rgba(255,255,255,0.04); border: 1px solid var(--line); white-space: nowrap; transition: 0.15s; }
.subb .i { width: 15px; height: 15px; }
.subb:hover { color: #fff; }
.subb.on { color: #14151b; background: #fff; border-color: #fff; }
.sh-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr minmax(300px, 38%); gap: 14px; }
.sh-main.wide { grid-template-columns: 1fr; }
.sh-main.wide .sh-detail { display: none; }
.sh-grid { overflow-y: auto; min-height: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: max-content; gap: 10px; align-content: start; padding: 2px 4px 8px 2px; }
.sh-main.wide .sh-grid { display: block; }
.item { position: relative; display: flex; flex-direction: column; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); overflow: hidden; text-align: left; transition: transform 0.15s, border-color 0.15s, background 0.15s; }
.item:hover { transform: translateY(-2px); border-color: var(--line2); background: rgba(255,255,255,0.06); }
.item.sel { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan); background: rgba(60, 200, 255, 0.06); }
.item .th { position: relative; aspect-ratio: 1; background: radial-gradient(circle at 50% 40%, #2d303c, #1a1b22 70%); display: grid; place-items: center; }
.item .th img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.3s; }
.item .th img.on { opacity: 1; }
.item .th img.cov { object-fit: cover; }
.item .in { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 9px; }
.item .in small { font: 700 9.5px var(--body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .in b { font: 600 13px var(--body); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .pr { display: flex; align-items: center; justify-content: space-between; gap: 4px; font: 700 13px var(--display); color: var(--lime); min-height: 18px; }
.item .pr .i { width: 13px; height: 13px; color: var(--cyan); }
.item .pr.no { color: var(--muted); }
.tdots { display: flex; gap: 2px; }
.tdots i { width: 8px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.14); }
.tdots i.on { background: var(--cyan); }
.item .sb { position: absolute; left: 7px; top: 7px; display: inline-flex; align-items: center; gap: 3px; font: 700 10.5px var(--body); padding: 3px 7px; border-radius: 6px; background: rgba(10,11,15,0.78); color: #fff; }
.item .sb .i { width: 11px; height: 11px; }
.item .sb.ok { color: var(--lime); }
.item .sb.lock { color: var(--muted); }
.item .sb.dim { color: var(--dim); }
.item .sale { position: absolute; right: 7px; top: 7px; font: 800 11px var(--display); padding: 3px 6px; border-radius: 6px; background: var(--amber); color: #2b1700; }
.item.locked .th img { filter: grayscale(0.9) brightness(0.6); }
.item.old { opacity: 0.6; }
.sh-detail { display: flex; flex-direction: column; min-height: 0; border-radius: 16px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); overflow: hidden; }
.sh-view { position: relative; flex: 1 1 52%; min-height: 160px; background: radial-gradient(ellipse at 50% 35%, #2c2f3c, #14151b 75%); }
.sh-view canvas { position: absolute; inset: 0; cursor: grab; touch-action: none; }
.sh-view canvas:active { cursor: grabbing; }
.sh-cover { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: cover; border-radius: 12px; display: none; }
.sh-view.cover .sh-cover { display: block; }
.sh-view.cover canvas, .sh-view.cover .sh-hint { display: none; }
.sh-hint { position: absolute; right: 10px; bottom: 8px; font: 600 11px var(--body); color: var(--dim); display: flex; align-items: center; gap: 4px; pointer-events: none; }
.sh-hint .i { width: 12px; height: 12px; }
.sh-info { flex: 0 0 auto; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; overflow-y: auto; max-height: 52%; }
.si-h small { font: 700 10.5px var(--body); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.si-h h3 { margin: 2px 0 4px; font: 700 21px var(--display); letter-spacing: -0.01em; }
.si-h p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.si-b { display: flex; flex-direction: column; gap: 7px; }
.cmp { display: flex; flex-direction: column; gap: 6px; }
.cr { display: grid; grid-template-columns: 120px 1fr 34px; align-items: center; gap: 8px; font: 600 12px var(--body); color: var(--muted); }
.cb { position: relative; height: 7px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
.cb i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 4px; }
.cb .a { background: #8a8f9e; }
.cb .up { background: var(--lime); }
.cb .down { background: var(--red); }
.cr b, .kv b { font: 700 12.5px var(--display); color: #fff; text-align: right; }
.pos { color: var(--lime) !important; } .neg { color: var(--red) !important; }
.kv { display: flex; justify-content: space-between; align-items: center; font: 600 13px var(--body); color: var(--muted); padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,0.04); }
.kv span { display: inline-flex; align-items: center; gap: 6px; }
.kv .i { width: 14px; height: 14px; }
.si-a .btn { width: 100%; }
.big-chip { width: 100%; justify-content: center; padding: 12px; font-size: 14px; }
.swatch-board { position: relative; height: 70px; border-radius: 10px; overflow: hidden; background: var(--w); }
.swatch-board .wl { position: absolute; left: 0; right: 0; top: 38%; height: 18%; background: var(--w2); }
.swatch-board .fl { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: var(--f); }
.swatch-board .bd { position: absolute; left: 12%; bottom: 18%; width: 42%; height: 24%; border-radius: 6px; background: var(--fa); box-shadow: 0 -4px 0 var(--tr) inset; }
.pv-canvas { display: block; }
/* toast thumbnail */
.toast .tthumb { width: 56px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; float: left; margin: 1px 8px 0 0; }
/* ================= GO OUT ================= */
.skill-mini { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.skill-mini > div { padding: 8px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); text-align: center; }
.skill-mini small { display: block; font: 600 10.5px var(--body); color: var(--muted); }
.skill-mini b { font: 700 18px var(--display); }
.places { display: flex; flex-direction: column; gap: 10px; }
.place { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; border-radius: 16px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); overflow: hidden; }
.place::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255, 255, 255, 0.08), transparent 55%); background: linear-gradient(100deg, color-mix(in srgb, var(--c1) 22%, transparent), transparent 55%); pointer-events: none; }
.place.off { opacity: 0.6; }
.pl-art { position: relative; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--c1), var(--c2)); flex: none; box-shadow: 0 10px 20px -10px var(--c1); }
.pl-art .i { width: 28px; height: 28px; }
.pl-b { position: relative; flex: 1; min-width: 0; }
.pl-b h3 { margin: 0; font: 700 16px var(--display); }
.pl-b p { margin: 2px 0 6px; font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.pl-m { display: flex; gap: 10px; flex-wrap: wrap; font: 600 11.5px var(--body); color: var(--muted); }
.pl-m span { display: inline-flex; align-items: center; gap: 4px; }
.pl-m .i { width: 13px; height: 13px; }
.pl-s { position: relative; font: 600 12px var(--body); color: var(--muted); text-align: right; max-width: 150px; display: flex; align-items: center; gap: 4px; }
.pl-s .i { width: 13px; height: 13px; }
.place .btn { position: relative; }
.trans { position: absolute; inset: 0; z-index: 90; background: #07080c; display: grid; place-items: center; animation: fadeIn 0.6s ease-out; }
.trans.out { animation: fadeOut 0.5s ease-in forwards; }
.trans div { text-align: center; animation: chipIn 0.6s cubic-bezier(0.2, 1.4, 0.4, 1); }
.trans b { display: block; font: 800 44px var(--display); letter-spacing: -0.03em; }
.trans span { display: block; margin-top: 6px; font: 600 14px var(--body); color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.party-ui, .meet-ui { position: absolute; inset: 0; pointer-events: none; }
.party-ui > *, .meet-ui > * { pointer-events: auto; }
/* the party wrapper must let taps through to the 3D scene (walk / talk to creators) */
#screens > .flow.party { pointer-events: none; }
.pt-top { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 16px; border-radius: 16px; }
.pt-t b { display: block; font: 700 16px var(--display); }
.pt-t span { font: 600 12px var(--body); color: var(--muted); font-variant-numeric: tabular-nums; }
.pt-v { width: 180px; }
.pt-v small { display: flex; align-items: center; gap: 4px; font: 600 11px var(--body); color: var(--muted); margin-bottom: 5px; }
.pt-v small .i { width: 12px; height: 12px; }
.pt-v .bar { height: 7px; --c1: #8f7dff; --c2: #ff4d6d; }
.pt-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; background: rgba(10,11,15,0.7); font: 600 12.5px var(--body); color: var(--muted); pointer-events: none !important; }
.pt-hint .i { width: 14px; height: 14px; }
.pt-acts { position: absolute; left: calc(14px + var(--safe-l)); bottom: 14px; display: flex; gap: 8px; }
.pt-b { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 78px; height: 64px; border-radius: 14px; background: linear-gradient(180deg, rgba(27,28,35,0.92), rgba(17,18,23,0.95)); border: 1px solid var(--line); font: 600 12px var(--body); color: #fff; transition: 0.15s; }
.pt-b .i { width: 22px; height: 22px; color: var(--pink2); }
.pt-b:hover { border-color: var(--line2); transform: translateY(-2px); }
.pt-b.big { width: 96px; height: 72px; }
.pt-b.leave { background: linear-gradient(180deg, #ff7b86, #e23c50); border-color: rgba(255, 255, 255, 0.28); box-shadow: 0 8px 20px -10px #f24a5b, inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.pt-b.leave .i { color: #fff; }
.leave-card .res-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.leave-card .res-btns .btn { padding: 0 10px; }
.npc-card { position: absolute; right: calc(14px + var(--safe-r)); bottom: 14px; width: min(370px, 46vw); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 10px; animation: slideL2 0.3s cubic-bezier(0.2, 1.2, 0.4, 1); }
@keyframes slideL2 { from { opacity: 0; transform: translateX(30px); } }
.nc-h { display: flex; align-items: center; gap: 10px; }
.nc-h img { width: 52px; height: 52px; border-radius: 14px; background: radial-gradient(circle at 50% 30%, #3a3f52, #1b1d26); object-fit: cover; }
.nc-h b { display: block; font: 700 16px var(--display); }
.nc-h small { display: block; font: 600 11.5px var(--body); color: var(--muted); margin: 1px 0 3px; }
.hearts { display: inline-flex; gap: 2px; }
.hearts i { display: grid; color: rgba(255,255,255,0.15); }
.hearts i .i { width: 15px; height: 15px; }
.hearts i.f { color: var(--pink); }
.hearts i.h { color: #a3506e; color: color-mix(in srgb, var(--pink) 50%, #444); }
.nc-acts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.nca { display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; padding: 9px 10px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); transition: 0.15s; }
.nca .i { grid-row: span 2; width: 20px; height: 20px; color: var(--cyan); }
.nca span { font: 700 13px var(--body); }
.nca small { font: 600 11px var(--body); color: var(--muted); display: flex; align-items: center; gap: 3px; }
.nca small .i { width: 11px; height: 11px; grid-row: auto; color: var(--pink); }
.nca:hover { border-color: var(--line2); background: rgba(255,255,255,0.08); }
.nca.hot .i { color: var(--lime); }
.nca[disabled] { opacity: 0.4; pointer-events: none; }
.nc-l { font: 600 12.5px var(--body); color: var(--muted); }
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.topic { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 6px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); font: 700 13px var(--body); transition: 0.15s; }
.topic .i { width: 22px; height: 22px; color: var(--amber); }
.topic:hover { border-color: var(--amber); transform: translateY(-2px); }
.mt-acts { position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); display: flex; gap: 10px; }
.wbubble.want { font-size: 15px; padding: 8px 12px; border: 1px solid var(--amber); }
.wbubble .i { width: 16px; height: 16px; vertical-align: -3px; color: var(--amber); }
.skills .skill { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); margin-bottom: 8px; }
.sk-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); background: color-mix(in srgb, var(--sc) 18%, transparent); color: var(--sc); flex: none; }
.sk-ic .i { width: 22px; height: 22px; }
.skill b { font: 700 15px var(--display); }
.skill small { font: 600 11.5px var(--body); color: var(--muted); }
.sk-bar { display: flex; gap: 3px; margin: 6px 0 4px; }
.sk-bar i { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.09); }
.sk-bar i.on { background: var(--sc); }
.sk-btns { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.recap .rc-k { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.recap .rc-k > div { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); }
.recap small { display: flex; align-items: center; gap: 5px; font: 600 11.5px var(--body); color: var(--muted); }
.recap small .i { width: 14px; height: 14px; }
.recap b { font: 700 22px var(--display); }
.rc-n { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
  .hub-card { min-height: 180px; }
  .viewfinder { width: min(62vw, 700px); }
}
@media (max-height: 620px), (max-width: 860px) {
  :root { --r-xl: 20px; }
  .hud-tl { top: 8px; left: calc(8px + var(--safe-l)); width: 206px; gap: 6px; }
  .hud-tr { top: 8px; right: calc(8px + var(--safe-r)); gap: 5px; }
  .hud-tc { top: 6px; }
  .avatar { width: 42px; height: 42px; }
  .pcard { padding: 5px 10px 5px 5px; }
  .pcard .nm { font-size: 13.5px; }
  .status { padding: 7px 10px 8px; gap: 5px; }
  .clock .tm { font-size: 16px; }
  .cur { height: 34px; font-size: 14px; padding: 0 10px 0 4px; }
  .cur .ci { width: 26px; height: 26px; }
  .icon-btn { width: 34px; height: 34px; }
  .subs { padding: 5px 16px 6px; min-width: 180px; }
  .odo { font-size: 28px; }
  .objective { min-height: 32px; max-width: 40vw; }
  .objective .ot { font-size: 12.5px; }
  .hud-r { top: 52px; right: calc(8px + var(--safe-r)); gap: 5px; width: 168px; }
  .tile { height: 36px; font-size: 12.5px; }
  .event-chip { padding: 7px 9px; }
  .event-chip .et { font-size: 13px; }
  .dock { bottom: 8px; padding: 5px; gap: 2px; border-radius: 18px; }
  .dock-btn { width: 58px; height: 50px; font-size: 10.5px; border-radius: 12px; }
  .dock-btn .i { width: 20px; height: 20px; }
  .dock-btn.main { width: 88px; height: 50px; font-size: 12.5px; }
  .latest { bottom: 8px; left: calc(8px + var(--safe-l)); width: 232px; }
  .lt-th { width: 80px; }
  .mh { padding: 12px 12px 6px 16px; }
  .mh h2 { font-size: 21px; }
  .mh .mi { width: 36px; height: 36px; }
  .mb { padding: 6px 16px 16px; }
  .modal { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  .modal-wrap { padding: 8px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
  .card { padding: 9px; gap: 6px; }
  .card .ttl { font-size: 14px; }
  .card .foot .chip { padding: 3px 8px; font-size: 12px; }
  .card .big-ic { width: 44px; height: 44px; border-radius: 13px; }
  .card .big-ic .i { width: 24px; height: 24px; }
  .hub { gap: 10px; }
  .hub-card { min-height: 150px; padding: 14px; }
  .hub-card h3 { font-size: 21px; }
  .hub-card .hc-ic { width: 44px; height: 44px; }
  .picker { padding: 14px; gap: 10px; max-height: calc(100% - 16px); }
  .pick-head h2 { font-size: 22px; }
  .flow-title { font-size: 22px; }
  .flow-top { padding: 8px 12px; }
  .viewfinder { right: 10px; width: min(60vw, 640px); padding: 8px; gap: 6px; }
  .rec-card { right: 10px; width: min(60vw, 640px); padding: 8px; gap: 6px; }
  .premiere { grid-template-columns: 220px 1fr; padding: 14px; gap: 14px; }
  .pm-views { font-size: 42px; }
  .pm-stats b { font-size: 16px; }
  .pub-grid { gap: 12px; }
  .lane { height: 70px; }
  .timeline { height: 76px; }
  .results { grid-template-columns: 230px 1fr; padding: 16px; gap: 14px; }
  .res-big { font-size: 46px; }
  .stat .sv { font-size: 19px; }
  .chat { width: 32vw; bottom: 104px; top: 8px; right: 8px; }
  .msg { font-size: 12.5px; }
  .s-bottom { left: 8px; bottom: 8px; right: calc(32vw + 16px); gap: 6px; }
  .s-act { height: 54px; min-width: 70px; font-size: 11.5px; border-radius: 14px; }
  .s-capture { width: 26vw; top: 52px; left: 8px; }
  .s-top { left: 8px; top: 8px; }
  .end-btn { right: calc(32vw + 16px); top: 8px; }
  .phone { height: calc(100vh - 16px); height: calc(100dvh - 16px); width: min(360px, 60vw); border-radius: 36px; padding: 9px; }
  .screen { border-radius: 28px; }
  .apps { gap: 10px 6px; padding: 12px; }
  .app .ai { width: 48px; height: 48px; border-radius: 15px; }
  .cal { grid-template-columns: repeat(7, 1fr); gap: 6px; }
  .day { min-height: 120px; padding: 8px 4px; border-radius: 14px; }
  .day.mega { grid-column: span 1; }
  .day .dic { width: 44px; height: 44px; border-radius: 14px; }
  .day .dic .i { width: 24px; height: 24px; }
  .day.mega .dic { width: 50px; height: 50px; }
  .day .dl { font-size: 12px; }
  .creator { width: min(380px, 52vw); padding: 14px; gap: 8px; }
  .creator h2 { font-size: 22px; }
  .opt { padding: 6px 10px; font-size: 13px; }
  .sw { width: 28px; height: 28px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .ev-hero h3 { font-size: 26px; }
  .btn.big { min-height: 50px; font-size: 18px; }
  #toasts { bottom: 90px; }
}
@media (max-height: 430px) {
  .stat.minor { display: none; }
  .pt-top { top: 6px; gap: 10px; padding: 5px 6px 5px 12px; }
  .pt-v { width: 120px; }
  .pt-b { width: 64px; height: 54px; font-size: 11px; }
  .pt-b.big { width: 80px; height: 58px; }
  .pt-acts { bottom: 8px; }
  .pt-hint { display: none; }
  .npc-card { bottom: 8px; padding: 9px; gap: 7px; width: min(340px, 48vw); }
  .nca { padding: 6px 8px; }
  .topic { padding: 8px 4px; }
  .mt-acts { bottom: 10px; }
  .place { padding: 8px 10px; }
  .pl-art { width: 42px; height: 42px; }
  .pl-b p { display: none; }
  .modal.full { height: calc(100vh - 12px); height: calc(100dvh - 12px); }
  .creator .seg button { height: 30px; font-size: 13px; }
  .creator .seg { padding: 3px; }
  .creator .cr-sub { display: none; }
  .creator h2 { font-size: 19px; }
  .creator .row:first-child .btn.icon { width: 32px; min-height: 32px; }
  .creator .btn.big { min-height: 42px; font-size: 16px; }
  .shop { padding: 8px 10px 10px; gap: 6px; }
  .sh-ttl span { display: none; }
  .sh-tabs .tab { padding: 6px 9px; }
  .sh-tabs .tab span { display: none; }
  .sh-top .cur.sparks { display: none; }
  .sh-main { grid-template-columns: 1fr 42%; gap: 8px; }
  .sh-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
  .item .in { padding: 5px 7px 6px; }
  .item .in b { font-size: 11.5px; }
  .sh-info { padding: 8px 10px 10px; gap: 6px; max-height: 58%; }
  .si-h h3 { font-size: 16px; }
  .si-h p { display: none; }
  .cr { grid-template-columns: 96px 1fr 28px; font-size: 11px; }
  .kv { padding: 5px 8px; font-size: 12px; }
  .si-a .btn.big { min-height: 40px; font-size: 14px; }
  .subb { padding: 5px 9px; font-size: 12px; }
  .premiere { grid-template-columns: 180px 1fr; padding: 10px; gap: 10px; }
  .pm-views { font-size: 32px; }
  .pm-chart { height: 64px; }
  .pm-comments { min-height: 0; max-height: 60px; overflow: hidden; }
  .pm-stats > div { padding: 6px 8px; }
  .pm-title { font-size: 13px; }
  .rf-hint { display: none; }
  .edit-opts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
  .edit-opt { padding: 9px; }
  .eo-ic { width: 32px; height: 32px; }
  .pub .thumbs { gap: 6px; }
  .results { grid-template-columns: 200px 1fr; padding: 12px; gap: 12px; }
  .res-big { font-size: 38px; margin: 0 0 4px; }
  .insights { margin: 6px 0; gap: 5px; }
  .insights .chip { font-size: 12px; padding: 4px 9px; }
  .stat { padding: 8px 10px; }
  .thumbs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .thumbs .card { padding: 5px !important; }
  .thumbs canvas { max-height: 21vh; object-fit: cover; }
  .title-opt { padding: 8px 10px; }
  .title-opt .tt { font-size: 13px; }
  .picker .mb.col { gap: 8px !important; }
  .hud-tl { width: 178px; }
  .pcard .career { display: none; }
  .avatar { width: 36px; height: 36px; border-radius: 11px; }
  .avatar .face { border-radius: 9px; }
  .need { grid-template-columns: 14px 1fr 24px; }
  .need .nl { display: none; }
  .odo { font-size: 24px; }
  .sb-sub { display: none; }
  .hud-r { width: 150px; }
  .tile { height: 32px; }
  .tile .ti2 { width: 24px; height: 24px; }
  .goal { display: none; }
  .latest { width: auto; padding: 5px; }
  .latest .lt-b { display: none; }
  .lt-th { width: 92px; }
}
@media (pointer: coarse) {
  .btn { min-height: 48px; }
}

/* ================= CAFÉ JOB ================= */
/* ================= PART-TIME JOB: CAFE SHIFT (flows/job.js) ================= */
.flow.job { padding: 14px; background: radial-gradient(120% 100% at 50% 40%, rgba(8, 9, 12, 0.6), rgba(6, 7, 10, 0.88)); }
.jb-card { --slot: 104px; position: relative; margin: auto; width: min(1100px, 100%); height: min(660px, 100%); border-radius: var(--r-xl); padding: 14px; display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 12px; overflow: hidden; animation: modalIn 0.4s cubic-bezier(0.2, 1.3, 0.4, 1); }
.jb-card.glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(180deg, rgba(26, 27, 34, 0.98), rgba(16, 17, 22, 0.99)); }

/* header */
.jb-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.jb-badge { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff4e6; background: linear-gradient(160deg, #c98a4b, #6d3f25); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 18px -10px rgba(201, 138, 75, 0.8); }
.jb-badge .i { width: 22px; height: 22px; }
.jb-ttl { min-width: 0; }
.jb-ttl b { display: block; font: 800 20px var(--display); letter-spacing: -0.02em; line-height: 1.1; }
.jb-ttl small { display: block; font: 600 12px var(--body); color: var(--muted); white-space: nowrap; }
.jb-streak { height: 36px; padding: 0 11px; border-radius: 10px; font-size: 13px; color: var(--muted); transition: color 0.2s, background 0.2s, border-color 0.2s; }
.jb-streak b { font: 800 15px var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.jb-streak .i { width: 16px; height: 16px; }
.jb-streak.on { background: rgba(255, 122, 47, 0.16); color: #ffad6b; border-color: rgba(255, 122, 47, 0.32); }
.jb-streak.on b { color: #ffc28f; }
.jb-streak.pop, .jb-earn.pop { animation: bump 0.4s; }
.jb-earn { display: flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px 0 9px; border-radius: 10px; background: rgba(142, 224, 90, 0.1); border: 1px solid rgba(142, 224, 90, 0.24); color: var(--lime); font: 800 17px var(--display); font-variant-numeric: tabular-nums; }
.jb-earn .i { width: 17px; height: 17px; }
.jb-time { position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; }
.jb-time svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.jb-time circle { fill: none; stroke-width: 3.2; }
.jb-time .bg { stroke: rgba(255, 255, 255, 0.1); }
.jb-time .fg { stroke: var(--cyan); stroke-linecap: round; transition: stroke 0.3s; }
.jb-time b { position: relative; font: 800 15px var(--display); font-variant-numeric: tabular-nums; }
.jb-time.low .fg { stroke: var(--red); }
.jb-time.low b { color: #ff8f99; animation: jbBeat 1s ease-in-out infinite; }
@keyframes jbBeat { 15% { transform: scale(1.22); } 40% { transform: scale(1); } }

/* queue strip */
.jb-queue { position: relative; height: 122px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 46px), linear-gradient(180deg, rgba(201, 138, 75, 0.09), rgba(201, 138, 75, 0.02) 70%), #15161b; }
.jb-queue::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: linear-gradient(180deg, #3a2c22, #241b15); border-top: 1px solid rgba(255, 214, 170, 0.2); z-index: 2; }
.jb-c { position: absolute; top: 12px; left: calc(12px + var(--i) * var(--slot) + min(var(--i), 1) * 10px); width: calc(var(--slot) - 10px); padding: 7px 7px 8px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: rgba(10, 11, 15, 0.55); border: 1px solid rgba(255, 255, 255, 0.07); z-index: 1; transition: left 0.45s cubic-bezier(0.3, 1.25, 0.4, 1), border-color 0.25s, background 0.25s; animation: jbIn 0.5s cubic-bezier(0.2, 1.2, 0.4, 1); }
.jb-c.front { background: rgba(255, 77, 109, 0.08); border-color: rgba(255, 77, 109, 0.55); box-shadow: 0 10px 24px -14px rgba(255, 77, 109, 0.8); }
.jb-c.front::before { content: 'Serving'; position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); padding: 1px 7px; border-radius: 6px; background: var(--pink); color: #fff; font: 800 9.5px var(--body); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.jb-av { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 30%, #3a3b46, #1b1c22 80%); background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--tc) 32%, #30313a), #1b1c22 80%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08); }
.jb-av svg { display: block; width: 100%; height: 100%; }
.jb-nm { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 12px var(--body); color: #e6e7ec; }
.jb-pat { --p: 1; width: 100%; height: 5px; border-radius: 9px; background: rgba(0, 0, 0, 0.5); overflow: hidden; }
.jb-pat i { display: block; height: 100%; border-radius: inherit; background: var(--lime); transform: scaleX(var(--p)); transform-origin: left; transition: background 0.3s; }
.jb-pat.mid i { background: var(--amber); }
.jb-pat.low i { background: var(--red); }
.jb-c.out { pointer-events: none; z-index: 3; animation: jbOut 0.9s ease-in forwards; }
.jb-c.out.mad { animation: jbMad 0.9s ease-in forwards; }
.jb-say { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); padding: 4px 8px; border-radius: 8px; background: #fff; color: #1d1b22; font: 800 11.5px var(--display); white-space: nowrap; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.7); animation: chipIn 0.25s cubic-bezier(0.2, 1.6, 0.4, 1); }
.jb-say.mad { background: var(--red); color: #fff; }
@keyframes jbIn { from { opacity: 0; transform: translateX(70px); } }
@keyframes jbOut { 0% { transform: none; } 25% { transform: translateY(-5px); } 60% { opacity: 1; } 100% { opacity: 0; transform: translateY(-16px); } }
@keyframes jbMad { 0%, 30% { transform: none; } 8%, 22% { transform: translateX(-4px); } 15% { transform: translateX(4px); } 60% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
.jb-jar { position: absolute; right: 12px; top: 12px; bottom: 22px; display: flex; align-items: center; gap: 12px; padding: 0 16px 0 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line); }
.jb-jar small { display: block; font: 700 10.5px var(--body); color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.jb-jar b { font: 800 22px var(--display); color: var(--amber); font-variant-numeric: tabular-nums; }
.jb-jar .jar { position: relative; width: 34px; height: 46px; border-radius: 7px 7px 11px 11px; border: 2px solid rgba(255, 255, 255, 0.32); border-top-width: 4px; overflow: hidden; background: rgba(255, 255, 255, 0.04); }
.jb-jar .jf { position: absolute; left: 0; right: 0; bottom: 0; height: 0; transition: height 0.6s cubic-bezier(0.2, 1.2, 0.4, 1);
  background: radial-gradient(circle at 30% 40%, #ffe29a 0 3px, transparent 3.5px) 0 0 / 11px 9px, linear-gradient(180deg, #ffcf6e, #e09a2c); }

/* main area */
.jb-main { display: grid; grid-template-columns: minmax(190px, 0.85fr) minmax(210px, 1fr) minmax(290px, 1.3fr); gap: 12px; min-height: 0; }

/* order ticket */
.jb-ticket { position: relative; align-self: start; max-height: calc(100% - 6px); padding: 12px 14px 14px; border-radius: 12px 12px 3px 3px; color: #2b241e; background: linear-gradient(180deg, #f8f2e8, #efe5d4); box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.9); }
.jb-ticket::after { content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 6px; background: radial-gradient(circle at 5px 0, #efe5d4 4.6px, transparent 5px) 0 0 / 10px 6px repeat-x; }
.jb-ticket.in { animation: jbTk 0.35s cubic-bezier(0.2, 1.3, 0.4, 1); }
@keyframes jbTk { from { opacity: 0; transform: translateY(-14px) rotate(-1.5deg); } }
.jb-ticket.empty { align-self: stretch; display: grid; place-items: center; color: var(--muted); background: rgba(255, 255, 255, 0.025); border: 1.5px dashed var(--line2); box-shadow: none; border-radius: 12px; }
.jb-ticket.empty::after { display: none; }
.jb-wait { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 600 13px var(--body); text-align: center; }
.jb-wait .i { width: 24px; height: 24px; opacity: 0.7; }
.tk-top { display: flex; justify-content: space-between; gap: 8px; font: 700 10.5px var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: #8d7c69; }
.tk-name { margin: 3px 0 9px; font: 800 20px var(--display); letter-spacing: -0.02em; line-height: 1.1; }
.tk-steps { list-style: none; margin: 0; padding: 8px 0 0; border-top: 1.5px dashed rgba(70, 45, 20, 0.22); display: flex; flex-direction: column; gap: 3px; }
.tk-steps li { display: grid; grid-template-columns: 14px 14px 1fr 18px; align-items: center; gap: 8px; padding: 5px 7px; border-radius: 8px; font: 700 14px var(--body); transition: background 0.2s, color 0.2s; }
.tk-steps em { font: 800 11px var(--display); font-style: normal; color: #a08e78; text-align: center; }
.tk-steps .sw { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(160deg, var(--c), var(--c2)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.tk-steps .st { display: grid; place-items: center; }
.tk-steps .st .i { width: 16px; height: 16px; stroke-width: 2.6; }
.tk-steps li.next { background: rgba(255, 77, 109, 0.13); box-shadow: inset 3px 0 0 var(--pink); }
.tk-steps li.done { color: #9a8a76; }
.tk-steps li.done b { text-decoration: line-through; text-decoration-color: rgba(60, 40, 20, 0.3); }
.tk-steps li.done .st { color: #3f9a2a; }
.tk-steps li.bad { background: rgba(230, 60, 70, 0.16); color: #b3261e; }
.tk-steps li.bad .st { color: #d23a3a; }
.tk-foot { display: flex; align-items: center; gap: 5px; margin-top: 9px; font: 700 12px var(--body); color: #8d7c69; }
.tk-foot .i { width: 14px; height: 14px; }

/* cup stage */
.jb-mid { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.jb-stage { --h: clamp(92px, 27vh, 178px); position: relative; flex: 1; min-height: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(70% 55% at 50% 88%, rgba(255, 190, 120, 0.1), transparent 70%), rgba(255, 255, 255, 0.025); }
.jb-stage::after { content: ''; position: absolute; left: 50%; bottom: calc(12% - 9px); width: calc(var(--h) * 0.95); height: 18px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), transparent); }
.jb-msg { position: absolute; top: 9px; left: 8px; right: 8px; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 5px; text-align: center; font: 700 12.5px var(--body); color: #ff8f99; }
.jb-msg .i { width: 15px; height: 15px; }
.jb-cup { position: absolute; left: 50%; bottom: 12%; z-index: 1; width: calc(var(--h) * 0.78); height: var(--h); transform: translateX(-50%); }
.jb-cup.shake { animation: jbShake 0.35s; }
@keyframes jbShake { 20% { transform: translateX(calc(-50% - 6px)); } 45% { transform: translateX(calc(-50% + 5px)); } 70% { transform: translateX(calc(-50% - 3px)); } }
.jb-fill { position: absolute; left: 5%; right: 5%; top: 6%; bottom: 3%; display: flex; flex-direction: column-reverse; clip-path: polygon(1% 0, 99% 0, 87% 100%, 13% 100%); }
.jb-glass { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.jb-glass .gl { fill: rgba(255, 255, 255, 0.05); stroke: rgba(255, 255, 255, 0.55); stroke-width: 2.5; vector-effect: non-scaling-stroke; transition: stroke 0.2s; }
.jb-glass .hl { stroke: rgba(255, 255, 255, 0.22); stroke-width: 4; stroke-linecap: round; fill: none; vector-effect: non-scaling-stroke; }
.jb-cup.wrong .gl { stroke: var(--red); fill: rgba(255, 93, 108, 0.08); }
.jb-l { position: relative; flex: none; height: 23%; background: linear-gradient(90deg, var(--c2), var(--c) 35%, var(--c) 62%, var(--c2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28); transform-origin: bottom; }
.jb-l.new { animation: jbLayer 0.42s cubic-bezier(0.2, 1.3, 0.4, 1) 0.1s both; }
@keyframes jbLayer { from { transform: scaleY(0); } }
.jb-l.ice::before, .jb-l.ice::after { content: ''; position: absolute; top: 18%; width: 26%; height: 56%; border-radius: 5px; border: 2px solid rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.3); transform: rotate(12deg); }
.jb-l.ice::before { left: 22%; }
.jb-l.ice::after { right: 20%; top: 26%; transform: rotate(-16deg); }
.jb-l.foam { background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.95) 0 2.5px, transparent 3px) 0 0 / 13px 10px, linear-gradient(90deg, var(--c2), var(--c) 35%, var(--c) 62%, var(--c2)); }
.jb-l.car { background: repeating-linear-gradient(105deg, transparent 0 9px, rgba(130, 60, 0, 0.22) 9px 12px), linear-gradient(90deg, var(--c2), var(--c) 35%, var(--c) 62%, var(--c2)); }
.jb-l.esp::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 18%; background: rgba(214, 150, 92, 0.55); }
.jb-pour { position: absolute; left: 50%; top: 0; bottom: calc(12% + var(--h) * 0.35); width: 10px; margin-left: -5px; border-radius: 0 0 6px 6px; background: linear-gradient(90deg, var(--c2, #fff), var(--c, #fff), var(--c2, #fff)); transform-origin: top; opacity: 0; }
.jb-pour.go { animation: jbPour 0.42s ease-in; }
@keyframes jbPour { 0% { opacity: 1; transform: scaleY(0); } 45% { opacity: 1; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(1) scaleX(0.4); } }
.jb-ghost { pointer-events: none; z-index: 3; }
.jb-ghost.up { animation: jbUp 0.55s cubic-bezier(0.5, 0, 0.75, 0.3) forwards; }
.jb-ghost.dump { animation: jbDump 0.5s ease-in forwards; }
@keyframes jbUp { 0% { transform: translateX(-50%); } 25% { transform: translate(-50%, 6%) scale(1.04); } 100% { opacity: 0; transform: translate(-50%, -130%) scale(0.7); } }
@keyframes jbDump { to { opacity: 0; transform: translate(-120%, 25%) rotate(-28deg) scale(0.85); } }
.jb-acts { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; }
.jb-acts .btn { min-height: 48px; padding: 0 12px; }
.jb-acts .btn.go.ready { animation: jbReady 1.1s ease-in-out infinite; }
@keyframes jbReady { 50% { box-shadow: 0 0 0 4px rgba(142, 224, 90, 0.28), 0 0 26px rgba(142, 224, 90, 0.45); } }

/* ingredient pad */
.jb-ings { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; min-height: 0; }
.jb-ing { position: relative; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)); box-shadow: var(--hi), 0 10px 20px -14px rgba(0, 0, 0, 0.9); transition: transform 0.1s, background 0.15s, border-color 0.15s; touch-action: manipulation; }
.jb-ing:hover { background: rgba(255, 255, 255, 0.09); border-color: var(--line2); }
.jb-ing:active { transform: scale(0.95); }
.jb-ing.hit .sw { animation: jbHit 0.28s; }
@keyframes jbHit { 40% { transform: scale(0.86); } }
.jb-ing .sw { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: radial-gradient(circle at 35% 28%, var(--c), var(--c2)); background: radial-gradient(circle at 35% 28%, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 52%, var(--c2)); box-shadow: 0 8px 16px -8px var(--c2), inset 0 -2px 0 rgba(0, 0, 0, 0.14); }
.jb-ing .sw .i { width: 26px; height: 26px; }
.jb-ing b { font: 700 14px var(--display); letter-spacing: -0.01em; }
.jb-ing kbd { position: absolute; top: 7px; left: 8px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--line2); font: 700 10.5px var(--body); color: var(--dim); }
.jb-ing.hint { border-color: rgba(255, 77, 109, 0.7); animation: pulseRing 1.2s infinite; }
.jb-card.closed .jb-main { opacity: 0.45; pointer-events: none; transition: opacity 0.3s; }

/* banner, intro, summary */
.jb-banner { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; pointer-events: none; }
.jb-banner b { display: flex; align-items: center; gap: 10px; padding: 12px 26px; border-radius: 16px; font: 800 34px var(--display); letter-spacing: -0.02em; background: rgba(12, 13, 17, 0.92); border: 1px solid var(--line2); box-shadow: var(--shadow); animation: chipIn 0.45s cubic-bezier(0.2, 1.5, 0.4, 1); }
.jb-banner .i { color: var(--amber); }
.jb-intro, .jb-end { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 14px; overflow: auto; background: rgba(10, 11, 14, 0.74); animation: fadeIn 0.25s; }
.jb-intro { cursor: pointer; }
.jb-intro.out { animation: fadeOut 0.25s forwards; pointer-events: none; }
.ji-card, .jb-sum { width: min(580px, 100%); padding: 22px; border-radius: 18px; text-align: center; background: linear-gradient(180deg, #23242c, #17181e); border: 1px solid var(--line2); box-shadow: var(--shadow); animation: modalIn 0.4s cubic-bezier(0.2, 1.3, 0.4, 1); }
.ji-k { font: 800 11px var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--pink2); }
.ji-card h2 { margin: 2px 0 4px; font-size: 32px; }
.ji-card p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; }
.ji-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.ji-steps > div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.ji-steps span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 2px; color: var(--pink2); background: rgba(255, 77, 109, 0.12); }
.ji-steps b { font: 700 14px var(--display); }
.ji-steps small { font-size: 12px; color: var(--muted); }
.ji-card .btn { min-width: 220px; }
.ji-auto { width: 140px; height: 3px; margin: 12px auto 0; border-radius: 9px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.ji-auto i { display: block; height: 100%; background: var(--pink); animation: jbAuto 3s linear forwards; }
@keyframes jbAuto { from { width: 0; } to { width: 100%; } }
.ji-keys { margin-top: 12px; font-size: 12px; color: var(--dim); }
.ji-keys kbd { padding: 1px 5px; border-radius: 5px; border: 1px solid var(--line2); font: 700 11px var(--body); color: var(--muted); }
.jb-sum { text-align: left; }
.js-top { display: flex; align-items: center; gap: 14px; }
.jb-badge.big { width: 58px; height: 58px; border-radius: 16px; }
.jb-badge.big .i { width: 30px; height: 30px; }
.js-top small { font: 700 11px var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.js-top h2 { margin: 0; font-size: 28px; line-height: 1.1; }
.js-rate { display: flex; align-items: center; gap: 2px; margin-top: 4px; }
.js-rate span { color: rgba(255, 255, 255, 0.14); }
.js-rate span.on { color: var(--amber); animation: stamp 0.4s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
.js-rate .i { width: 20px; height: 20px; }
.js-rate em { margin-left: 8px; font: 600 13px var(--body); font-style: normal; color: var(--muted); }
.js-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 10px; }
.js-grid > div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.js-grid span { display: flex; align-items: center; gap: 5px; font: 700 11.5px var(--body); color: var(--muted); white-space: nowrap; }
.js-grid span .i { width: 14px; height: 14px; }
.js-grid b { display: block; margin-top: 2px; font: 800 24px var(--display); font-variant-numeric: tabular-nums; }
.js-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border-radius: 12px; background: rgba(142, 224, 90, 0.08); border: 1px solid rgba(142, 224, 90, 0.22); }
.js-total span { font: 700 14px var(--display); }
.js-total small { display: block; font: 500 12px var(--body); color: var(--muted); margin-top: 2px; }
.js-total b { font: 800 38px var(--display); letter-spacing: -0.03em; color: var(--lime); font-variant-numeric: tabular-nums; }
.jb-sum .btn { width: 100%; }

@media (max-width: 1000px) {
  .jb-ttl small { display: none; }
  .jb-main { grid-template-columns: minmax(170px, 0.85fr) minmax(170px, 1fr) minmax(250px, 1.25fr); }
}
@media (max-height: 560px), (max-width: 760px) {
  .flow.job { padding: 6px calc(6px + var(--safe-r)) 6px calc(6px + var(--safe-l)); }
  .jb-card { --slot: 80px; padding: 8px; gap: 7px; border-radius: 14px; }
  .jb-badge { width: 32px; height: 32px; border-radius: 10px; }
  .jb-badge .i { width: 18px; height: 18px; }
  .jb-ttl b { font-size: 16px; }
  .jb-ttl small { display: none; }
  .jb-streak, .jb-earn { height: 30px; }
  .jb-earn { font-size: 15px; }
  .jb-time { width: 36px; height: 36px; }
  .jb-time b { font-size: 13px; }
  .jb-head .xbtn { width: 32px; height: 32px; }
  .jb-queue { height: 86px; border-radius: 12px; }
  .jb-queue::after { height: 8px; }
  .jb-c { top: 9px; padding: 5px 5px 6px; gap: 3px; border-radius: 11px; }
  .jb-c.front::before { font-size: 8.5px; padding: 0 5px; }
  .jb-av { width: 40px; height: 40px; }
  .jb-nm { font-size: 10.5px; }
  .jb-pat { height: 4px; }
  .jb-say { top: 22px; font-size: 10.5px; padding: 3px 6px; }
  .jb-jar { top: 9px; bottom: 16px; right: 9px; gap: 9px; padding: 0 11px 0 10px; }
  .jb-jar .jar { width: 24px; height: 34px; border-radius: 5px 5px 8px 8px; border-top-width: 3px; }
  .jb-jar b { font-size: 18px; }
  .jb-main { gap: 8px; grid-template-columns: minmax(160px, 0.8fr) minmax(170px, 1fr) minmax(250px, 1.3fr); }
  .jb-ticket { padding: 8px 10px 10px; }
  .tk-top { font-size: 9.5px; }
  .tk-name { font-size: 15px; margin: 1px 0 6px; }
  .tk-steps { padding-top: 5px; gap: 1px; }
  .tk-steps li { padding: 3px 5px; font-size: 12.5px; gap: 6px; grid-template-columns: 12px 12px 1fr 16px; }
  .tk-steps .sw { width: 12px; height: 12px; }
  .tk-foot { margin-top: 5px; font-size: 11px; }
  .jb-mid { gap: 6px; }
  .jb-stage { --h: clamp(76px, 30vh, 130px); border-radius: 12px; }
  .jb-msg { top: 5px; font-size: 11px; }
  .jb-acts { gap: 6px; }
  .jb-acts .btn { min-height: 42px; font-size: 14px; }
  .jb-ings { gap: 6px; }
  .jb-ing { gap: 4px; border-radius: 12px; }
  .jb-ing .sw { width: 40px; height: 40px; }
  .jb-ing .sw .i { width: 21px; height: 21px; }
  .jb-ing b { font-size: 12.5px; }
  .jb-banner b { font-size: 24px; padding: 9px 18px; }
  .jb-intro, .jb-end { padding: 8px; }
  .ji-card, .jb-sum { padding: 14px 16px; border-radius: 14px; }
  .ji-card h2 { font-size: 24px; margin: 0 0 2px; }
  .ji-card p { margin-bottom: 10px; font-size: 13px; }
  .ji-steps { gap: 6px; margin-bottom: 10px; }
  .ji-steps > div { padding: 7px 6px; flex-direction: row; justify-content: center; text-align: left; gap: 7px; }
  .ji-steps span { width: 28px; height: 28px; margin: 0; flex: none; }
  .ji-steps span .i { width: 16px; height: 16px; }
  .ji-steps b { font-size: 12.5px; }
  .ji-steps small { display: none; }
  .ji-card .btn.big { min-height: 44px; font-size: 15px; }
  .ji-auto { margin-top: 8px; }
  .ji-keys { margin-top: 6px; }
  .jb-badge.big { width: 44px; height: 44px; border-radius: 12px; }
  .jb-badge.big .i { width: 24px; height: 24px; }
  .js-top h2 { font-size: 22px; }
  .js-grid { margin: 10px 0 8px; gap: 6px; }
  .js-grid > div { padding: 6px 9px; }
  .js-grid b { font-size: 19px; }
  .js-total { padding: 7px 12px; margin-bottom: 8px; }
  .js-total b { font-size: 28px; }
  .jb-sum .btn.big { min-height: 44px; font-size: 15px; }
}
@media (pointer: coarse) {
  .jb-ing kbd { display: none; }
}

/* narrow windows (tablets, portrait): keep the latest-upload card above the dock instead of under it */
@media (max-width: 1040px) and (min-height: 431px) { .latest { bottom: 86px; } }
@media (max-width: 860px) and (min-height: 431px) { .latest { bottom: 70px; } }
/* recording viewfinder: REC + timer sit at the bottom so they never cover the game's own score / speed readouts */
.rec-card .vf-hud .rec, .rec-card .vf-hud .vf-timer { top: auto; bottom: 10px; }
/* tall windows: the recording card spans the bottom instead of squeezing in beside the desk */
@media (max-aspect-ratio: 4/5) {
  .rec-card { left: 4vw; right: 4vw; width: auto; top: auto; bottom: 4vh; transform: none; animation: modalIn 0.35s ease-out; }
}

/* W spam: celebratory W's in chat + running W counter */
.msg.w { color: #ffd54a; font: 800 15px var(--display); letter-spacing: 0.02em; text-shadow: 0 0 12px rgba(255, 190, 70, 0.35); }
.w-combo { position: absolute; right: 12px; top: 46px; z-index: 3; display: flex; align-items: baseline; gap: 3px; padding: 5px 13px 6px; border-radius: 14px;
  background: linear-gradient(135deg, #ffe066, #ff8a3d); color: #2a1300; font: 800 18px var(--display); box-shadow: 0 10px 26px -6px rgba(255, 160, 50, 0.75);
  opacity: 0; transform: scale(0.6) rotate(-4deg); transition: opacity 0.2s, transform 0.25s cubic-bezier(0.2, 1.4, 0.4, 1); pointer-events: none; }
.w-combo b { display: inline-block; font-size: 28px; line-height: 1; }
.w-combo.on { opacity: 1; transform: scale(1) rotate(-4deg); }
.w-combo.bump b { animation: wBump 0.22s ease-out; }
@keyframes wBump { 45% { transform: scale(1.45); } }

/* in-game phone: the home screen scrolls inside the phone so every app and Close stay reachable */
.home-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.home-scroll::-webkit-scrollbar { display: none; }
/* short landscape screens (phones): a wider phone with 6 apps per row, everything visible without scrolling */
@media (max-height: 430px) {
  .phone { width: min(600px, 68vw); }
  .apps { grid-template-columns: repeat(6, 1fr); gap: 8px 4px; padding: 10px 12px; }
  .phone-home-w { padding: 10px 14px; }
  .status { padding-top: 8px; }
}

/* ================= ADS (banners, video ad veil, ad buttons) ================= */
.ad-tag { font: 700 9.5px var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.38); }
/* in-scene banner (character creator / wardrobe): bottom center of the free scene area beside the panel */
.ad-scene { position: absolute; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: center; gap: 3px; z-index: 2; pointer-events: auto; }
.ad-scene .ad-tag { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); color: rgba(255, 255, 255, 0.6); }
/* shop banner slot: part of the item-list pane */
.sh-left { display: flex; flex-direction: column; gap: 10px; min-height: 0; min-width: 0; }
.sh-left > .sh-grid { flex: 1; }
.sh-ad { position: relative; flex: none; display: flex; align-items: center; justify-content: center; padding: 16px 8px 6px; border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)); border: 1px solid var(--line); }
.sh-ad .ad-tag { position: absolute; left: 10px; top: 3px; }
.ad-slot { position: relative; flex: none; overflow: hidden; border-radius: 4px; }
/* until an ad is really in the slot nothing of the container shows (no frame, no label); no ad → it is removed */
.ad-pending .ad-tag { visibility: hidden; }
.sh-ad.ad-pending { background: none; border-color: transparent; }
.ad-fake { width: 100%; height: 100%; display: grid; place-items: center; font: 800 13px var(--display); letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.55); background: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 10px, rgba(255,255,255,0.09) 10px 20px); border: 1px dashed rgba(255, 255, 255, 0.3); border-radius: 4px; }
.ad-veil { position: absolute; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(6, 7, 10, 0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn 0.2s; pointer-events: auto; }
.ad-veil.out { animation: fadeOut 0.25s forwards; }
.ad-veil.fake { background: #000; }
.ad-veil-c { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; color: #fff; font: 700 16px var(--display); padding: 20px; }
.ad-veil-c small { font: 600 12px var(--body); color: var(--muted); }
.ad-spin { width: 46px; height: 46px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, 0.12); border-top-color: var(--pink); animation: adSpin 0.8s linear infinite; }
@keyframes adSpin { to { transform: rotate(360deg); } }
/* rewarded buttons always carry the video badge */
.adb { position: relative; }
.adb .adv { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px 2px 5px; border-radius: 7px; background: rgba(0, 0, 0, 0.42); color: #fff; font: 800 11px var(--body); letter-spacing: 0.04em; }
.adb .adv .i { width: 15px; height: 15px; }
.adb .adv em { font-style: normal; min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }
/* 15 s rest between rewarded ads: the buttons stay put but can't be pressed */
.adb.cool { filter: grayscale(0.75) brightness(0.72); pointer-events: none; }
.adb.cool.shine::after { display: none; }
/* no ad can play (ad blocker, ads disabled): rewarded buttons are not shown at all */
body.no-rewarded .adb { display: none !important; }
.qreroll .adv { background: transparent; padding: 0; color: inherit; }

/* ================= REWARD LABELS / BURST ================= */
.bp { position: absolute; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; z-index: 3; }
.rw { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 10px; font: 800 14px var(--display); background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line2); white-space: nowrap; }
.rw .i { width: 17px; height: 17px; }
.rw.money { color: var(--lime); border-color: rgba(142, 224, 90, 0.35); background: rgba(142, 224, 90, 0.1); }
.rw.sparks { color: var(--cyan); border-color: rgba(60, 200, 255, 0.35); background: rgba(60, 200, 255, 0.1); }
.rw.xp { color: var(--amber); border-color: rgba(255, 194, 75, 0.35); background: rgba(255, 194, 75, 0.1); }
.rw.boost { color: #ffd0dc; border-color: rgba(255, 125, 147, 0.4); background: rgba(255, 77, 109, 0.14); }
.res-btns { display: flex; gap: 10px; }
.res-btns > .btn { flex: 1; }

/* ================= BOOSTS (HUD chips + activation splash) ================= */
.boosts { display: flex; flex-wrap: wrap; gap: 5px; }
.boosts:empty { display: none; }
.boost-chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px 0 3px; border-radius: 99px; font: 700 12px var(--display); font-variant-numeric: tabular-nums; color: #fff; background: linear-gradient(135deg, var(--b1), var(--b2)); box-shadow: 0 6px 16px -8px var(--b1), inset 0 1px 0 rgba(255, 255, 255, 0.35); animation: chipIn 0.4s cubic-bezier(0.2, 1.6, 0.4, 1); }
.boost-chip b { display: grid; place-items: center; height: 20px; padding: 0 6px; border-radius: 99px; background: rgba(0, 0, 0, 0.28); font: 800 11px var(--display); }
.boost-chip .i { width: 14px; height: 14px; }
.boost-chip.ending { animation: bob 0.6s ease-in-out infinite; }
.boost-splash { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; animation: bsLife 1.9s ease-in forwards; }
.boost-splash .bs-rays { position: absolute; width: 900px; height: 900px; background: repeating-conic-gradient(color-mix(in srgb, var(--b1) 30%, transparent) 0 8deg, transparent 8deg 18deg); mask: radial-gradient(circle, #000 15%, transparent 62%); -webkit-mask: radial-gradient(circle, #000 15%, transparent 62%); animation: rays 6s linear infinite; }
.boost-splash .bs-c { position: relative; text-align: center; animation: bsPop 0.6s cubic-bezier(0.2, 1.8, 0.4, 1); }
.bs-x { font: 800 120px/0.9 var(--display); letter-spacing: -0.06em; background: linear-gradient(180deg, #fff, var(--b1) 60%, var(--b2)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 8px 30px var(--b1)); }
.bs-n { font: 800 34px var(--display); letter-spacing: -0.02em; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6); }
.bs-t { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 14px; border-radius: 99px; background: rgba(0, 0, 0, 0.45); font: 700 14px var(--body); }
@keyframes bsPop { from { transform: scale(0.3); opacity: 0; } }
@keyframes bsLife { 0%, 75% { opacity: 1; } 100% { opacity: 0; transform: scale(1.06); } }

/* ================= OFFER POP-UP ================= */
.modal.offer-m { width: min(380px, 100%); border: 1px solid rgba(255, 255, 255, 0.16); }
.offer { position: relative; padding: 22px 20px 18px; text-align: center; overflow: hidden; }
.offer::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--b1) 35%, transparent), transparent 60%); pointer-events: none; }
.offer > * { position: relative; }
.of-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; background: rgba(255, 122, 47, 0.18); color: #ffad6b; font: 800 11px var(--body); letter-spacing: 0.1em; text-transform: uppercase; }
.of-tag .i { width: 14px; height: 14px; }
.of-badge { position: relative; width: 96px; height: 96px; margin: 14px auto 8px; display: grid; place-items: center; }
.of-badge > span { position: relative; width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; font: 800 40px var(--display); color: #fff; background: linear-gradient(135deg, var(--b1), var(--b2)); box-shadow: 0 14px 40px -10px var(--b1), inset 0 2px 0 rgba(255, 255, 255, 0.4); animation: megaSpin 2.4s ease-in-out infinite; }
.of-badge > span .i { width: 44px; height: 44px; }
.of-rays { position: absolute; inset: -40px; background: repeating-conic-gradient(color-mix(in srgb, var(--b1) 28%, transparent) 0 10deg, transparent 10deg 20deg); mask: radial-gradient(circle, #000 30%, transparent 70%); -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); animation: rays 8s linear infinite; }
.offer h3 { margin: 4px 0 4px; font: 800 26px var(--display); letter-spacing: -0.02em; }
.offer p { margin: 0 0 12px; color: var(--muted); font-weight: 600; font-size: 14px; }
.of-t { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin-bottom: 14px; }
.of-t i { display: block; height: 100%; background: linear-gradient(90deg, var(--b1), var(--b2)); transform-origin: left; animation: qaTimer linear forwards; }
.of-rw { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 12px; }
/* advent calendar: 24 gift doors */
.adv-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.adv-lock { background: rgba(255, 107, 107, 0.16); border-color: rgba(255, 107, 107, 0.4); color: #ffb3b3; }
.adv-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 7px; perspective: 700px; }
.door { position: relative; height: 62px; border-radius: 12px; display: grid; place-items: center; align-content: center; gap: 1px; color: #fff; overflow: hidden; transform-origin: left center;
  background: linear-gradient(90deg, transparent 45%, rgba(255, 207, 74, 0.85) 45% 55%, transparent 55%), linear-gradient(160deg, #c8323b, #7d1a22);
  border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); transition: transform 0.15s; }
.door.alt { background: linear-gradient(90deg, transparent 45%, rgba(255, 207, 74, 0.85) 45% 55%, transparent 55%), linear-gradient(160deg, #2a8a57, #134c30); }
.door > b { position: relative; padding: 0 6px; border-radius: 8px; background: rgba(0, 0, 0, 0.35); font: 800 19px var(--display); }
.door:hover { transform: translateY(-2px); }
.door.big { border: 2px solid #ffe066; box-shadow: 0 0 16px -4px #ffe066, inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.door .dr-big { position: absolute; right: 4px; top: 3px; color: #ffe066; }
.door .dr-big .i, .door .dr-lock .i { width: 12px; height: 12px; }
.door .dr-lock { position: absolute; left: 5px; top: 4px; color: rgba(255, 255, 255, 0.75); }
.door.locked { filter: saturate(0.45) brightness(0.62); }
.door.today { outline: 2px solid #ffe066; outline-offset: 1px; animation: doorPulse 1.1s ease-in-out infinite; }
@keyframes doorPulse { 50% { transform: scale(1.06); } }
.door.missed { filter: grayscale(0.85) brightness(0.5); }
.adv-bottom { margin-top: 10px; }
.adv-gift { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: linear-gradient(90deg, rgba(212, 36, 47, 0.22), rgba(31, 156, 82, 0.16)); border: 1px solid rgba(255, 224, 102, 0.35); }
.adv-gift .ag-i { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ff6b6b, #c8323b); }
.adv-gift .ag-i .i { width: 20px; height: 20px; }
.adv-gift b { display: block; font: 800 15px var(--display); }
.adv-gift span { display: block; font: 600 12px var(--body); color: var(--muted); }
.door.open { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); filter: none; padding: 4px; }
.door.open.big { border-color: rgba(255, 224, 102, 0.6); }
.door.open .dr-i .i { width: 20px; height: 20px; color: #ffe066; }
.door.open small { font: 700 9.5px var(--body); color: var(--muted); text-align: center; line-height: 1.15; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.door.opening { animation: doorOpen 0.42s ease-in forwards; }
@keyframes doorOpen { to { transform: rotateY(-100deg); opacity: 0.2; } }
.adv-foot { display: flex; align-items: center; gap: 6px; font: 600 12px var(--body); color: var(--muted); }
.adv-foot .i { width: 14px; height: 14px; color: #ffe066; flex: none; }
@media (max-width: 620px) { .adv-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-height: 520px) { .door { height: 44px; } .door > b { font-size: 16px; } .door.open small { display: none; } .adv-top { margin-bottom: 6px; } .adv-bottom { margin-top: 6px; } .adv-gift { padding: 5px 8px; } .adv-gift .ag-i { width: 28px; height: 28px; } }
@media (max-height: 380px) { .adv-grid { gap: 4px; } .door { height: 30px; border-radius: 9px; } .door > b { font-size: 13px; padding: 0 4px; } .door .dr-big, .door .dr-lock { display: none; } .adv-foot, .adv-gift span { display: none; } .adv-top { margin-bottom: 4px; } .adv-top .chip:last-child { display: none; } .adv-bottom { margin-top: 4px; } .adv-gift b { font-size: 13px; } }
.wn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wn-i { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.wn-i .wi { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.wn-i .wi .i { width: 18px; height: 18px; }
.wn-i b { display: block; font: 700 14px var(--display); }
.wn-i small { display: block; margin-top: 2px; font: 600 11.5px var(--body); line-height: 1.3; color: var(--muted); }
.wn-go { grid-column: 1 / -1; margin-top: 4px; }
@media (max-height: 380px) { .wn { gap: 5px; } .wn-i { padding: 6px 8px; align-items: center; } .wn-i .wi { width: 26px; height: 26px; } .wn-i small { display: none; } .wn-go { margin-top: 0; } }
.of-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.of-btns > :only-child { grid-column: 1 / -1; }
.of-btns .btn { padding: 0 10px; }

/* ================= LUCKY WHEEL ================= */
.wheel-box { display: flex; align-items: center; gap: 22px; padding-top: 14px; }
.wh-stage { position: relative; width: 290px; height: 290px; flex: none; }
.wh-glow { position: absolute; inset: -14px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 213, 119, 0.35), transparent 70%); }
.wheel { position: absolute; inset: 0; border-radius: 50%; border: 6px solid #ffd577; box-shadow: 0 0 0 4px #2a1a00, 0 20px 50px -14px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(0, 0, 0, 0.35); }
.wh-l { position: absolute; inset: 0; pointer-events: none; }
.wh-l span { position: absolute; left: 50%; top: 7%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; width: 70px; text-align: center; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.wh-l span .i { width: 24px; height: 24px; }
.wh-l span b { font: 800 11px/1.05 var(--display); }
.wh-l.jp span { color: #fff6cf; }
.wh-l.jp span .i { width: 28px; height: 28px; filter: drop-shadow(0 0 6px #ffd577); }
.wh-hub { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; color: #2b1700; background: radial-gradient(circle at 35% 30%, #fff6cf, #ffc23f 60%, #d98a12); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5); }
.wh-hub .i { width: 28px; height: 28px; }
.wh-ptr { position: absolute; left: 50%; top: -14px; z-index: 2; width: 34px; height: 42px; transform: translateX(-50%); background: linear-gradient(180deg, #fff, #ffd577); clip-path: polygon(50% 100%, 0 0, 100% 0); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)); }
.wh-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.wh-btns { display: flex; flex-direction: column; gap: 8px; }
.wh-btns.busy { pointer-events: none; opacity: 0.55; }
.wh-res { min-height: 74px; display: flex; align-items: center; }
.wh-win { animation: lvlPop 0.6s cubic-bezier(0.2, 1.8, 0.4, 1); }
.wh-win small { display: block; font: 800 13px var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.wh-win.jp small { font-size: 22px; color: #ffd577; text-shadow: 0 0 20px rgba(255, 213, 119, 0.8); }
.wh-rw { display: flex; flex-wrap: wrap; gap: 6px; }

/* ================= SHOP: tabs, rarity, deals ================= */
.sh-tabs .tab.on { background: linear-gradient(135deg, rgba(255, 79, 139, 0.9), rgba(143, 125, 255, 0.9)); color: #fff; box-shadow: 0 8px 20px -10px rgba(255, 79, 139, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.sh-tabs .tab.hot:not(.on) .i { color: #ff8a3d; }
.sh-tabs .tab.hot.ready::after { content: ''; position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 2px #17181e; animation: bob 1s ease-in-out infinite; }
.item { --rc: rgba(255, 255, 255, 0.12); }
.item.rar1 { --rc: #3c9dff; } .item.rar2 { --rc: #a66bff; } .item.rar3 { --rc: #ffb534; }
.item.rar1, .item.rar2, .item.rar3 { border-color: color-mix(in srgb, var(--rc) 45%, transparent); }
.item.rar1 .th, .item.rar2 .th, .item.rar3 .th { background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--rc) 28%, #2d303c), #1a1b22 72%); }
.item.rar3 { box-shadow: 0 0 22px -10px var(--rc); }
.item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.14) 48%, transparent 60%); background-size: 260% 100%; background-position: 130% 0; transition: background-position 0.6s; pointer-events: none; }
.item:hover::after { background-position: -30% 0; }
.item:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -16px var(--rc); }
.rar-l { position: absolute; left: 7px; bottom: 6px; font: 800 9px var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--rc, #9ba0ae); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.item .sale.new { background: linear-gradient(135deg, #ff4f8b, #ff8a3d); color: #fff; }
.buy-pop { position: absolute; left: 50%; top: 50%; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 14px; transform: translate(-50%, -50%); background: linear-gradient(135deg, #b6ff5c, #4fd37b); color: #102300; font: 800 18px var(--display); box-shadow: 0 16px 40px -10px rgba(120, 255, 90, 0.7); animation: buyPop 1.3s cubic-bezier(0.2, 1.4, 0.4, 1) forwards; pointer-events: none; white-space: nowrap; }
@keyframes buyPop { 0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; } 20% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; } 75% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -80%) scale(0.95); opacity: 0; } }
.deals { display: flex; flex-direction: column; gap: 14px; padding: 2px 4px 10px 2px; }
.dl-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.dh { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, var(--d1), var(--d2)); box-shadow: 0 16px 30px -18px var(--d1), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.dh.wheel { --d1: #ff4f8b; --d2: #ff9f1c; }
.dh.crate { --d1: #2fae5a; --d2: #1c7a8c; }
.dh.cash { --d1: #1f8fd0; --d2: #6236e0; }
.dh > * { position: relative; }
.dh > .dh-rays { position: absolute; left: -40px; top: 50%; width: 180px; height: 180px; margin-top: -90px; background: repeating-conic-gradient(rgba(255, 255, 255, 0.12) 0 10deg, transparent 10deg 20deg); mask: radial-gradient(circle, #000 20%, transparent 68%); -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%); animation: rays 12s linear infinite; opacity: 0.5; }
.dh.ready > .dh-rays { opacity: 1; animation-duration: 5s; }
.dh-ic { width: 54px; height: 54px; flex: none; border-radius: 16px; display: grid; place-items: center; background: rgba(0, 0, 0, 0.22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.dh-ic .i { width: 32px; height: 32px; }
.dh.ready .dh-ic { animation: megaSpin 1.6s ease-in-out infinite; }
.dh-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dh-t b { font: 800 18px var(--display); letter-spacing: -0.01em; }
.dh-t span { font: 600 12.5px var(--body); opacity: 0.9; }
.dh-t i { font-style: normal; font-variant-numeric: tabular-nums; font-weight: 800; }
.dh .btn { flex: none; }
.dl-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font: 800 15px var(--display); text-transform: uppercase; letter-spacing: 0.06em; }
.dl-h > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.dl-h > span:first-child .i { color: #ff8a3d; }
.dl-h .chip { text-transform: none; letter-spacing: 0; }
.dl-h .chip i { font-style: normal; font-variant-numeric: tabular-nums; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.dcard { --rc: rgba(255, 255, 255, 0.14); position: relative; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, 0.04); border: 1px solid color-mix(in srgb, var(--rc) 50%, transparent); box-shadow: 0 12px 26px -18px var(--rc); }
.dcard.rar1 { --rc: #3c9dff; } .dcard.rar2 { --rc: #a66bff; } .dcard.rar3 { --rc: #ffb534; }
.dcard.sold { opacity: 0.6; }
.dc-th { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--rc) 26%, #2d303c), #1a1b22 72%); }
.dc-th img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.3s; }
.dc-th img.on { opacity: 1; }
.dc-th img.cov { object-fit: cover; }
.dc-off { position: absolute; right: 8px; top: 8px; padding: 4px 9px; border-radius: 8px; font: 800 15px var(--display); color: #fff; background: linear-gradient(135deg, #ff4f8b, #ff7a2f); box-shadow: 0 6px 16px -6px rgba(255, 79, 139, 0.8); transform: rotate(4deg); }
.dc-off.ad { background: linear-gradient(135deg, #ffd577, #ff9f1c); color: #2b1700; }
.dc-b { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; flex: 1; min-width: 0; }
.dc-b small { font: 700 10px var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-b b { font: 700 15px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-p { display: flex; align-items: baseline; gap: 8px; font: 800 18px var(--display); color: var(--lime); }
.dc-p s { font: 600 13px var(--body); color: var(--dim); }
.dc-a { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; }
.dc-a .btn { flex: 1; padding: 0 8px; }
.dl-boosts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.bcard { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.bcard.on { border-color: var(--b1); background: color-mix(in srgb, var(--b1) 12%, transparent); }
.bc-x { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; font: 800 20px var(--display); background: linear-gradient(135deg, var(--b1), var(--b2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.bc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bc-t b { font: 700 15px var(--display); }
.bc-t span { font: 600 12px var(--body); color: var(--muted); display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.bc-t span .i { width: 13px; height: 13px; }
.bc-t i { font-style: normal; font-variant-numeric: tabular-nums; color: #fff; }
.bc-a { display: flex; flex-direction: column; gap: 5px; flex: none; }
.dl-goals { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(60, 200, 255, 0.07); border: 1px solid rgba(60, 200, 255, 0.22); text-align: left; transition: 0.15s; }
.dl-goals:hover { background: rgba(60, 200, 255, 0.12); }
.dl-goals b { display: block; font: 700 14px var(--display); }
.dl-goals span { font: 600 12px var(--body); color: var(--muted); }
.dg-i { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(60, 200, 255, 0.16); color: var(--cyan); }
.dg-i.st { background: rgba(255, 178, 107, 0.16); color: #ffb26b; }

/* ================= LEVEL UP / MILESTONE CELEBRATION ================= */
.modal-wrap.lu-wrap { background: radial-gradient(circle at 50% 42%, rgba(70, 36, 130, 0.62), rgba(5, 5, 12, 0.94) 72%); }
.modal.lu-modal { background: none !important; border: 0; box-shadow: none; }
.modal.lu-modal .mb { padding: 0; overflow-x: hidden; }
.lu { position: relative; text-align: center; padding: 10px 16px 18px; overflow: hidden; }
.lu-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lu-rays { position: absolute; left: 50%; top: 120px; width: 1100px; height: 1100px; margin: -550px 0 0 -550px; background: repeating-conic-gradient(rgba(255, 207, 74, 0.14) 0 7deg, transparent 7deg 16deg); mask: radial-gradient(circle, #000 8%, transparent 55%); -webkit-mask: radial-gradient(circle, #000 8%, transparent 55%); animation: rays 18s linear infinite; }
.lu-ring { position: absolute; left: 50%; top: 120px; width: 160px; height: 160px; margin: -80px 0 0 -80px; border-radius: 50%; border: 3px solid rgba(255, 213, 119, 0.8); opacity: 0; animation: luRing 1.6s 0.35s ease-out forwards; }
.lu-ring.r2 { animation-delay: 0.6s; border-color: rgba(255, 79, 139, 0.7); }
@keyframes luRing { 0% { transform: scale(0.4); opacity: 1; } 100% { transform: scale(5); opacity: 0; } }
.lu-spark { position: absolute; left: var(--x); bottom: -10px; width: 6px; height: 6px; border-radius: 50%; background: #ffd577; box-shadow: 0 0 10px #ffd577; animation: luFloat 3.4s var(--d) linear infinite; opacity: 0; }
@keyframes luFloat { 0% { transform: translateY(0) scale(var(--s)); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-520px) scale(var(--s)); opacity: 0; } }
.lu-c { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lu-k { font: 800 12px var(--display); letter-spacing: 0.32em; text-transform: uppercase; color: #ffd577; animation: fadeIn 0.6s 0.1s both; }
.lu-badge { --h1: #fff3c4; --h2: #ffb02e; position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.lu-hex { position: relative; width: 132px; height: 148px; display: grid; place-items: center; overflow: hidden; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(160deg, var(--h1), var(--h2) 55%, #b35f00); animation: luHex 0.8s cubic-bezier(0.2, 1.7, 0.4, 1) both; }
.lu-hex::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.7) 50%, transparent 65%); background-size: 250% 100%; animation: shine 2.4s 0.9s ease-in-out infinite; }
@keyframes luHex { from { transform: scale(0.1) rotate(-200deg); opacity: 0; } }
.lu-hex span { grid-area: 1 / 1; font: 800 70px/1 var(--display); color: #3a1d00; letter-spacing: -0.04em; }
.lu-hex .i { width: 66px; height: 66px; }
.lu-old { animation: luOld 0.5s 0.45s ease-in forwards; }
.lu-new { animation: luNew 0.6s 0.55s cubic-bezier(0.2, 1.8, 0.4, 1) both; }
.lu-new.lu-ic { animation-delay: 0.3s; }
@keyframes luOld { to { transform: translateY(-110%); opacity: 0; } }
@keyframes luNew { from { transform: scale(2.6); opacity: 0; } }
.lu-shock { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 60px 10px rgba(255, 194, 75, 0.55); animation: luGlow 1.6s ease-in-out infinite; pointer-events: none; z-index: -1; }
@keyframes luGlow { 50% { box-shadow: 0 0 90px 26px rgba(255, 194, 75, 0.8); } }
.lu-t { margin: 2px 0 0; font: 800 54px/1 var(--display); letter-spacing: 0.02em; display: flex; justify-content: center; flex-wrap: wrap; }
.lu-t span { display: inline-block; background: linear-gradient(180deg, #fff 20%, #ffd577 55%, #ff9f1c); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 18px rgba(255, 159, 28, 0.45)); animation: luLetter 0.5s calc(0.5s + var(--i) * 0.05s) cubic-bezier(0.2, 1.8, 0.4, 1) both; }
@keyframes luLetter { from { transform: translateY(-40px) scale(0.6); opacity: 0; } }
.lu-rank { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 99px; font: 800 16px var(--display); color: #2b1700; background: linear-gradient(135deg, #fff3c4, #ffc23f); box-shadow: 0 10px 30px -10px rgba(255, 194, 75, 0.9); animation: chipIn 0.5s 0.8s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.lu-car { font: 700 16px var(--body); color: var(--muted); animation: fadeIn 0.5s 0.8s both; }
.lu-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 720px; perspective: 800px; }
.lu-card { display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border-radius: 14px; text-align: left; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); animation: luCard 0.55s var(--d) cubic-bezier(0.2, 1.4, 0.4, 1) both; }
@keyframes luCard { from { transform: rotateX(-90deg) translateY(20px); opacity: 0; } }
.lc-i { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; }
.lc-i .i { width: 18px; height: 18px; }
.lc-t small { display: block; font: 800 9px var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); }
.lc-t b { font: 700 13.5px var(--body); }
.lu-rw { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; animation: fadeIn 0.5s 1s both; }
.lu-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; animation: fadeIn 0.4s 1.1s both; }
.lu-btns .btn { min-width: 180px; }

/* ================= DAILY: jackpot days + slot machine ================= */
.cal-wrap { position: relative; }
.day.jp { border-color: rgba(255, 213, 119, 0.55); background: linear-gradient(180deg, rgba(255, 194, 75, 0.16), rgba(255, 79, 139, 0.1)); }
.day.jp .dic { background: linear-gradient(135deg, #ffd577, #ff4f8b); color: #fff !important; box-shadow: 0 0 26px rgba(255, 194, 75, 0.55); }
.day.jp { padding-top: 22px; }
.jp-tag { position: absolute; left: 50%; top: 0; transform: translateX(-50%); padding: 2px 10px 3px; border-radius: 0 0 9px 9px; font: 800 9.5px var(--display); letter-spacing: 0.14em; color: #2b1700; background: linear-gradient(90deg, #ffd577, #ffb02e); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35); z-index: 1; white-space: nowrap; }
.dl-foot { display: flex; justify-content: center; margin-top: 16px; }
.dl-bx:empty { display: none; }
.dl-bonus { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px; border-radius: 16px; background: linear-gradient(135deg, rgba(255, 194, 75, 0.16), rgba(255, 79, 139, 0.12)); border: 1px solid rgba(255, 194, 75, 0.4); animation: chipIn 0.5s cubic-bezier(0.2, 1.4, 0.4, 1); }
.dl-bonus b { display: block; font: 800 16px var(--display); }
.dl-bonus span { font: 600 12.5px var(--body); color: var(--muted); }
.db-i { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #ffd577, #ff7a2f); color: #2b1700; }
.slot { --cell: 76px; position: absolute; inset: -6px; z-index: 5; display: grid; place-items: center; border-radius: 20px; background: radial-gradient(circle at 50% 45%, rgba(60, 28, 100, 0.95), rgba(10, 10, 18, 0.97)); animation: fadeIn 0.25s; }
.slot.out { animation: fadeOut 0.4s forwards; }
.sl-box { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sl-t { font: 800 34px var(--display); letter-spacing: 0.08em; background: linear-gradient(180deg, #fff, #ffd577 50%, #ff9f1c); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 16px rgba(255, 159, 28, 0.6)); }
.sl-reels { position: relative; display: flex; gap: 10px; padding: 12px; border-radius: 20px; background: linear-gradient(180deg, #ffd577, #c97a00); box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.8), inset 0 2px 0 rgba(255, 255, 255, 0.6); }
.reel { width: 86px; height: var(--cell); overflow: hidden; border-radius: 12px; background: linear-gradient(180deg, #e9e4ff, #fff 50%, #e9e4ff); box-shadow: inset 0 8px 12px -6px rgba(0, 0, 0, 0.35), inset 0 -8px 12px -6px rgba(0, 0, 0, 0.35); }
.reel.stop { animation: reelStop 0.3s ease-out; }
@keyframes reelStop { 40% { transform: translateY(5px); } }
.strip { will-change: transform; }
.cell { height: var(--cell); display: grid; place-items: center; color: #6236e0; }
.cell .i { width: 42px; height: 42px; }
.slot.win .cell.w { color: #e0820b; filter: drop-shadow(0 0 10px rgba(255, 159, 28, 0.9)); }
.sl-line { position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; background: rgba(255, 79, 139, 0.6); box-shadow: 0 0 10px #ff4f8b; pointer-events: none; }
.sl-res { min-height: 34px; font: 700 18px var(--display); color: var(--muted); }
.slot.win .sl-res { color: #fff; animation: lvlPop 0.5s cubic-bezier(0.2, 1.8, 0.4, 1); }
.sl-res b { font-size: 30px; color: #ffd577; }

/* ================= QUESTS: reroll + side-quest story ================= */
.qreroll { display: inline-flex; align-items: center; gap: 2px; height: 32px; padding: 0 8px; border-radius: 10px; flex: none; font: 800 12px var(--display); color: var(--cyan); background: rgba(60, 200, 255, 0.1); border: 1px solid rgba(60, 200, 255, 0.3); transition: 0.15s; }
.qreroll .i { width: 15px; height: 15px; }
.qreroll.ad { color: #2b1700; background: linear-gradient(180deg, #ffd27a, #ffb43e); border-color: transparent; }
.qreroll:hover { filter: brightness(1.12); }
.q-sub { margin: 4px 0 10px; font-weight: 800; letter-spacing: 0.04em; }
.story { --sc: #ffb26b; position: relative; margin-bottom: 16px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--sc) 18%, transparent), rgba(255, 255, 255, 0.03)); border: 1px solid color-mix(in srgb, var(--sc) 45%, transparent); }
.st-h { display: flex; align-items: center; gap: 10px; }
.st-av { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--sc); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12); }
.st-av .i { width: 24px; height: 24px; }
.st-h small { display: block; font: 800 10px var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sc); }
.st-h b { font: 800 18px var(--display); }
.st-say { margin: 10px 0; font: 500 13.5px/1.4 var(--body); color: #d8dbe4; font-style: italic; }
.st-say b { font-style: normal; color: var(--sc); }
.st-steps { display: flex; flex-direction: column; gap: 6px; }
.st-s { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.2); font: 600 13.5px var(--body); }
.st-s i { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.st-s i .i { width: 13px; height: 13px; }
.st-s span { flex: 1; min-width: 0; }
.st-s em { font: 700 12px var(--display); font-style: normal; color: var(--muted); }
.st-s.ok i { background: var(--lime); color: #102300; }
.st-s.ok span { color: var(--muted); text-decoration: line-through; }
.st-s.ok em { color: var(--lime); }
.st-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.st-f .qr { display: flex; gap: 5px; flex-wrap: wrap; }

/* ================= compact screens ================= */
@media (max-width: 640px) {
  .wheel-box { flex-direction: column; gap: 14px; }
  .wh-side { width: 100%; }
}
@media (max-height: 520px) {
  .wheel-box { flex-direction: row; gap: 14px; padding-top: 10px; }
  .wh-stage { width: 200px; height: 200px; }
  .wh-l span { width: 56px; top: 6%; }
  .wh-l span .i { width: 18px; height: 18px; }
  .wh-l span b { font-size: 9px; }
  .wh-hub { width: 42px; height: 42px; }
  .lu { padding: 4px 10px 10px; }
  .lu-c { gap: 6px; }
  .lu-badge { width: 92px; height: 92px; }
  .lu-hex { width: 80px; height: 90px; }
  .lu-hex span { font-size: 42px; }
  .lu-hex .i { width: 40px; height: 40px; }
  .lu-rays, .lu-ring { top: 70px; }
  .lu-t { font-size: 34px; }
  .lu-rank { padding: 5px 12px; font-size: 13px; }
  .lu-card { padding: 4px 9px 4px 4px; }
  .lc-i { width: 24px; height: 24px; }
  .lc-t b { font-size: 12px; }
  .lu-card:nth-child(n + 5) { display: none; }
  .rw { padding: 4px 8px; font-size: 12.5px; }
  .lu-btns .btn { min-width: 150px; }
  .slot { --cell: 58px; }
  .reel { width: 66px; }
  .cell .i { width: 32px; height: 32px; }
  .sl-t { font-size: 24px; }
  .bs-x { font-size: 80px; }
  .bs-n { font-size: 24px; }
  .of-badge { width: 70px; height: 70px; margin: 8px auto 4px; }
  .of-badge > span { width: 62px; height: 62px; font-size: 28px; border-radius: 20px; }
  .offer { padding: 14px 16px 14px; }
  .offer h3 { font-size: 21px; }
  .dh { padding: 10px; }
  .dh-ic { width: 42px; height: 42px; }
  .story { padding: 10px; margin-bottom: 10px; }
  .st-say { display: none; }
  .st-steps { margin-top: 8px; gap: 4px; }
  .st-s { padding: 4px 8px; font-size: 12.5px; }
  .st-av { width: 36px; height: 36px; }
  .st-h b { font-size: 16px; }
}

/* ================= FIT ON ONE SCREEN (pop-ups never scroll; short phone frames like iPhone Safari) ================= */
.wheel-box { padding-bottom: 16px; } /* the glow around the wheel stays inside the pop-up */
.dl-body { position: relative; }
.slot { inset: 0; }
/* the recording card never grows taller than the screen allows */
.rec-card, .viewfinder { max-width: calc((100vh - 120px) * 1.72); max-width: calc((100dvh - 120px) * 1.72); }
/* wide-ish phones and laptops: quests side by side with the story card, lists in columns */
@media (min-width: 620px) and (max-height: 900px) {
  .modal.qmodal { width: min(980px, 100%); }
  .qs-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 14px; align-items: start; }
  .qs-l .story { margin-bottom: 0; }
}
@media (min-width: 620px) and (max-height: 620px) {
  .modal.wide-short { width: min(880px, 100%); }
  .places { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .food-list { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px !important; }
  .food-list .post-type, .rest-list .post-type { margin: 0 !important; }
}
@media (max-height: 520px) {
  /* daily */
  .dl-top { margin-bottom: 8px !important; }
  .day { min-height: 0; padding: 7px 3px 6px; gap: 3px; border-radius: 12px; }
  .day.jp { padding-top: 17px; }
  .day .dic { width: 34px; height: 34px; border-radius: 11px; margin: 2px 0; }
  .day .dic .i { width: 19px; height: 19px; }
  .day.mega .dic { width: 38px; height: 38px; }
  .day.mega .dic .i { width: 22px; height: 22px; }
  .day .dl { font-size: 11px; }
  .day .ds { font-size: 10px; }
  .day .dn { font-size: 9.5px; }
  .jp-tag { font-size: 8px; padding: 1px 7px 2px; }
  .day.claimed::after { background-size: 34px; }
  .dl-foot { margin-top: 10px; }
  .dl-bonus { margin-top: 8px; padding: 8px 10px; gap: 10px; }
  .db-i { width: 34px; height: 34px; border-radius: 11px; }
  .dl-bonus b { font-size: 14px; }
  .slot { --cell: 52px; }
  .sl-box { gap: 6px; }
  .sl-reels { padding: 8px; gap: 8px; border-radius: 14px; }
  .reel { width: 60px; }
  .cell .i { width: 30px; height: 30px; }
  .sl-t { font-size: 22px; }
  .sl-res { min-height: 24px; font-size: 15px; }
  .sl-res b { font-size: 22px; }
  /* quests */
  .quest { padding: 7px 9px; gap: 9px; margin-bottom: 6px; border-radius: 13px; }
  .quest .qi { width: 32px; height: 32px; border-radius: 10px; }
  .quest .qi .i { width: 18px; height: 18px; }
  .quest .qt { font-size: 13px; }
  .quest .bar { margin-top: 4px; height: 6px; }
  .quest .qr { margin-top: 4px; }
  .quest .qr .chip { padding: 1px 6px; font-size: 11px; }
  .q-sub { margin: 0 0 6px; }
  .story { padding: 9px 10px; }
  .st-steps { margin-top: 6px; }
  .st-f { margin-top: 7px; }
  .st-f .qr .chip { padding: 1px 6px; font-size: 11px; }
  /* first upload / creator now */
  .lvlup { padding: 16px 16px 14px; }
  .lvlup .ln { width: 84px; height: 84px; font-size: 38px !important; box-shadow: 0 0 0 6px rgba(255,194,75,0.25), 0 0 40px rgba(255,194,75,0.5); }
  .lvlup h2 { font-size: 27px; margin: 10px 0 2px; }
  .lvlup .row { margin: 10px 0 !important; }
  /* go out / kitchen / rest / settings */
  .place { padding: 8px 10px; gap: 10px; }
  .pl-art { width: 40px; height: 40px; border-radius: 12px; }
  .pl-art .i { width: 22px; height: 22px; }
  .pl-b h3 { font-size: 14.5px; }
  .post-type { padding: 8px 10px; gap: 10px; border-radius: 13px; }
  .post-type .pi { width: 34px; height: 34px; border-radius: 11px; }
  .post-type .pn { font-size: 13.5px; }
  .post-type .pd { font-size: 11px; }
  .set-row { padding: 7px 0; gap: 10px; }
  .set-row + .tiny { display: none; }
  /* shop: the preview shrinks before the buy button ever does */
  .sh-view { flex: 1 1 auto; min-height: 64px; }
  .sh-info { max-height: none; flex: 0 1 auto; min-height: 0; }
  .sh-ad { padding: 4px 6px 4px 24px; }
  .sh-ad .ad-tag { left: 3px; top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; font-size: 7.5px; letter-spacing: 0.1em; }
  /* recaps */
  .recap .rc-k > div { padding: 7px 10px; }
  .recap b { font-size: 18px; }
  .res-btns, .recap .btn.big { margin-top: 10px !important; }
}
@media (max-height: 380px) {
  /* every pop-up header gets slim */
  .modal-wrap { padding: 6px; }
  .modal { max-height: calc(100vh - 12px); max-height: calc(100dvh - 12px); }
  .mh { padding: 7px 8px 3px 12px; gap: 8px; }
  .mh .mi { width: 28px; height: 28px; border-radius: 9px; }
  .mh .mi .i { width: 17px; height: 17px; }
  .mh h2 { font-size: 17px; }
  .mh .sub { display: none; }
  .mh .xbtn { width: 30px; height: 30px; }
  .mb { padding: 4px 12px 10px; }
  .btn.big { min-height: 42px; font-size: 15px; padding: 0 18px; }
  /* daily */
  .dl-top { display: none !important; }
  .day { padding: 6px 2px 5px; gap: 2px; }
  .day.jp { padding-top: 15px; }
  .day .dic { width: 28px; height: 28px; border-radius: 9px; }
  .day .dic .i { width: 16px; height: 16px; }
  .day.mega .dic { width: 30px; height: 30px; }
  .day.mega .dic .i { width: 18px; height: 18px; }
  .day .dl { font-size: 10px; line-height: 1.05; }
  .day .ds { display: none; }
  .day .rays { display: none; }
  .dl-foot { margin-top: 8px; }
  .dl-bonus { margin-top: 6px; padding: 6px 8px; }
  .dl-bonus span { display: none; }
  .slot { --cell: 44px; }
  .reel { width: 52px; }
  .cell .i { width: 26px; height: 26px; }
  .sl-t { font-size: 18px; }
  /* quests */
  .quest { padding: 5px 8px; gap: 8px; margin-bottom: 5px; }
  .quest .qi { width: 26px; height: 26px; border-radius: 8px; }
  .quest .qi .i { width: 15px; height: 15px; }
  .quest .qt { font-size: 12px; }
  .quest .qr { display: none; }
  .quest .bar { height: 5px; margin-top: 3px; }
  .quest .chip, .quest .btn.small { min-height: 26px; padding: 0 8px; font-size: 11.5px; }
  .qreroll { height: 26px; }
  .q-sub { margin: 0 0 4px; font-size: 11px; }
  .story { padding: 7px 9px; }
  .st-h b { font-size: 14px; }
  .st-av { width: 30px; height: 30px; }
  .st-av .i { width: 17px; height: 17px; }
  .st-h small { font-size: 8.5px; }
  .st-s { padding: 3px 7px; font-size: 11.5px; }
  .st-s i { width: 18px; height: 18px; }
  .st-f .btn.small { min-height: 28px; }
  /* first upload / creator now */
  .lvlup { padding: 10px 12px 10px; }
  .lvlup .ln { width: 56px; height: 56px; font-size: 26px !important; box-shadow: 0 0 0 4px rgba(255,194,75,0.25), 0 0 26px rgba(255,194,75,0.5); }
  .lvlup h2 { font-size: 21px; margin: 6px 0 2px; }
  .lvlup .muted { font-size: 12.5px; }
  .lvlup .row { margin: 6px 0 !important; }
  .lvlup .row .chip { font-size: 12.5px !important; padding: 4px 9px !important; }
  /* level-up / milestone */
  .lu { padding: 2px 8px 6px; }
  .lu-k { display: none; }
  .lu-c { gap: 5px; }
  .lu-badge { width: 66px; height: 66px; }
  .lu-hex { width: 56px; height: 62px; }
  .lu-hex span { font-size: 30px; }
  .lu-hex .i { width: 30px; height: 30px; }
  .lu-rays, .lu-ring { top: 40px; }
  .lu-t { font-size: 26px; }
  .lu-rank { padding: 3px 10px; font-size: 12px; }
  .lu-car { font-size: 12.5px; }
  .lu-card { padding: 3px 8px 3px 3px; gap: 6px; border-radius: 10px; }
  .lc-i { width: 22px; height: 22px; border-radius: 7px; }
  .lc-i .i { width: 13px; height: 13px; }
  .lc-t small { font-size: 7.5px; }
  .lc-t b { font-size: 11px; }
  .lu-btns .btn { min-width: 130px; }
  /* wheel / offer */
  .wheel-box { padding-top: 6px; padding-bottom: 12px; gap: 12px; }
  .wh-stage { width: 168px; height: 168px; }
  .wh-l span { width: 48px; top: 5%; }
  .wh-l span .i { width: 15px; height: 15px; }
  .wh-l span b { font-size: 8px; }
  .wh-hub { width: 36px; height: 36px; }
  .wh-hub .i { width: 18px; height: 18px; }
  .wh-ptr { width: 26px; height: 32px; top: -10px; }
  .wh-res { min-height: 40px; }
  .of-badge { width: 54px; height: 54px; margin: 4px auto 2px; }
  .of-badge > span { width: 50px; height: 50px; font-size: 22px; border-radius: 16px; }
  .offer { padding: 10px 14px 12px; }
  .offer h3 { font-size: 18px; margin: 2px 0; }
  .offer p { margin: 0 0 8px; font-size: 12.5px; }
  .of-t { margin-bottom: 10px; }
  /* go out / kitchen / rest / settings */
  .places { gap: 6px; }
  .place { padding: 6px 8px; }
  .pl-art { width: 34px; height: 34px; }
  .pl-m { font-size: 10.5px; gap: 6px; }
  .post-type { padding: 6px 9px; }
  .post-type .pi { width: 30px; height: 30px; }
  .set-row { padding: 5px 0; }
  /* recaps */
  .recap .rc-k { gap: 6px; }
  .recap .rc-k > div { padding: 5px 9px; }
  .recap b { font-size: 16px; }
  .rc-n { margin-top: 6px; }
  /* shop: compact header, comparison rows give way first */
  .sh-detail .si-b { display: none; }
  .sh-info { padding: 6px 9px 8px; gap: 5px; }
  .si-h h3 { font-size: 14px; margin: 0 0 2px; }
}
@media (pointer: coarse) and (max-height: 380px) {
  .btn { min-height: 38px; }
  .btn.small { min-height: 32px; }
  .btn.big { min-height: 42px; }
}

/* ================= HUD on short phone frames: fewer, smaller panels so the room stays visible ================= */
@media (max-height: 430px) {
  .trend-chip { display: none !important; }
}
@media (max-height: 380px) {
  .hud-tl { top: 6px; width: 160px; gap: 4px; }
  .pcard { padding: 3px 8px 3px 3px; gap: 7px; border-radius: 12px; }
  .avatar { width: 28px; height: 28px; border-radius: 9px; padding: 2px; }
  .avatar .face { border-radius: 7px; }
  .avatar .lvl { min-width: 16px; height: 16px; font-size: 9.5px; right: -4px; bottom: -4px; border-radius: 5px; padding: 0 3px; }
  .pcard .nm { font-size: 11.5px; }
  .xpb { margin-top: 3px; height: 3px; }
  .status { padding: 4px 8px 5px; gap: 2px; border-radius: 12px; }
  .clock .tm { font-size: 13px; }
  .clock .dy { font-size: 9.5px; }
  .clock .ck-i .i { width: 13px; height: 13px; }
  .need { grid-template-columns: 12px 1fr 20px; gap: 5px; }
  .need .ni { width: 12px; height: 12px; }
  .need .nb { height: 4px; }
  .need .nv { font-size: 10px; }
  .boost-chip { height: 22px; font-size: 10.5px; }
  .boost-chip b { height: 17px; font-size: 9.5px; }
  .hud-tc { top: 5px; gap: 4px; }
  .subs { padding: 2px 12px 3px; min-width: 128px; border-radius: 12px; }
  .sb-l { font-size: 8.5px; letter-spacing: 0.1em; }
  .sb-l .i { width: 13px; height: 13px; }
  .odo { font-size: 19px; margin: 2px 0 1px; }
  .objective { min-height: 24px; padding: 3px 10px 3px 3px; gap: 6px; border-radius: 9px; max-width: 34vw; }
  .objective .oi { width: 19px; height: 19px; border-radius: 6px; }
  .objective .oi .i { width: 12px; height: 12px; }
  .objective .ot { font-size: 11px; }
  .objective .op { font-size: 10.5px; }
  .hud-tr { top: 6px; gap: 4px; }
  .cur { height: 28px; font-size: 12px; padding: 0 8px 0 3px; gap: 5px; border-radius: 9px; }
  .cur .ci { width: 21px; height: 21px; border-radius: 7px; }
  .cur .ci .i { width: 13px; height: 13px; }
  .icon-btn { width: 28px; height: 28px; border-radius: 9px; }
  .hud-r { top: 40px; gap: 4px; width: 130px; }
  .event-chip { padding: 4px 8px; gap: 2px; border-radius: 10px; }
  .event-chip .et { font-size: 11.5px; }
  .event-chip .em { font-size: 9.5px; }
  .event-chip .bar { height: 3px; }
  .tile { height: 26px; font-size: 11px; gap: 6px; padding: 0 8px 0 3px; border-radius: 9px; }
  .tile .ti2 { width: 20px; height: 20px; border-radius: 6px; }
  .tile .ti2 .i { width: 13px; height: 13px; }
  .tile .q-n, .tile .adv-n { padding: 1px 5px; font-size: 9.5px; }
  .dot { min-width: 14px; height: 14px; font-size: 9px; top: -3px; right: -3px; }
  .dock { bottom: 5px; padding: 3px; gap: 1px; border-radius: 14px; }
  .dock-btn { width: 48px; height: 40px; font-size: 9px; gap: 1px; border-radius: 10px; }
  .dock-btn .i { width: 17px; height: 17px; }
  .dock-btn.main { width: 72px; height: 40px; font-size: 11px; margin: 0 2px; border-radius: 10px; }
  .dock-btn.main .i { width: 19px; height: 19px; }
  .latest { bottom: 5px; padding: 3px; }
  .lt-th { width: 70px; }
  #toasts { bottom: 56px; }
  .toast { padding: 5px 10px 5px 5px; font-size: 12px; }
}
/* the recording card on short frames: the footer stays on screen, the hint goes */
@media (max-height: 380px) {
  .rec-card { padding: 6px; gap: 5px; }
  .rec-foot { gap: 8px; }
  .rec-foot .btn.small { min-height: 30px; }
}
/* the creator's name is fixed: CrazyGames username or a random guest name */
.name-fixed { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); min-width: 0; }
.name-fixed .i { width: 16px; height: 16px; color: var(--amber); flex: none; }
.name-fixed b { font: 700 15px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.name-fixed small { margin-left: auto; padding-left: 8px; font: 600 11px var(--body); color: var(--muted); white-space: nowrap; }
@media (max-height: 430px) { .name-fixed { padding: 6px 10px; } .name-fixed b { font-size: 13.5px; } }
/* the rotated label boxes on the wheel are clipped to the wheel, so they never make the pop-up scroll */
.wheel { overflow: hidden; }
/* shop detail: the buy button is pinned — the stat comparison gives way (scrolls) first */
.sh-info { min-height: 0; }
.si-h, .si-a { flex: none; }
.si-b { flex: 0 1 auto; min-height: 0; overflow-y: auto; }
@media (max-height: 520px) {
  .si-h p { display: none; }
  .si-h h3 { font-size: 17px; margin: 1px 0 2px; }
  .sh-info { padding: 9px 11px 11px; gap: 7px; }
  .si-b .tiny { display: none; }
}
/* event cards (Live Events, "Coming soon" teaser) and the away summary on short frames */
@media (max-height: 520px) {
  .ev-hero { padding: 12px 14px; border-radius: 18px; }
  .ev-hero h3 { font-size: 24px; margin: 3px 0 1px; }
  .ev-hero .ev-art { width: 74px; height: 74px; }
  .ev-hero .lockline { padding: 4px 10px; font-size: 11px; }
  .ev-hero .row { margin-top: 6px !important; }
  .ev-hero .row .chip { padding: 2px 8px; font-size: 11.5px; }
  .track { margin-top: 8px; gap: 6px; padding-bottom: 2px; }
  .tr-node { min-width: 86px; padding: 6px 5px; gap: 3px; border-radius: 12px; }
  .tr-node .tn-ic { width: 32px; height: 32px; border-radius: 10px; }
  .tr-node .tn-ic .i { width: 18px; height: 18px; }
  .tr-node .tn-l { font-size: 10.5px; }
  .tr-node .tn-p { font-size: 10px; }
}
@media (max-height: 380px) {
  .ev-hero { padding: 8px 12px; }
  .ev-hero > div[style*="font-weight:700"] { display: none; }
  .ev-hero h3 { font-size: 20px; }
  .ev-hero .ev-art { width: 54px; height: 54px; }
  .tr-node { min-width: 74px; padding: 4px; }
  .tr-node .tn-ic { width: 24px; height: 24px; border-radius: 8px; }
  .tr-node .tn-ic .i { width: 14px; height: 14px; }
  .tr-node .tn-l { font-size: 9.5px; }
  .ev-hero + .row > .muted { display: none; }
  .away { padding: 10px 12px; }
  .away .aw-h { gap: 8px; }
  .aw-ic .i { width: 28px; height: 28px; }
  .away h2 { font-size: 17px; }
  .aw-k { margin-top: 8px; gap: 6px; }
  .aw-k > div { padding: 6px 8px; }
  .aw-k b { font-size: 16px; }
  .away .vid-row { margin-top: 6px !important; padding: 4px 8px; }
  .away .btn.big { margin-top: 8px !important; }
}
