:root {
  --bg: #04121f;
  --ink: #e9f4f7;
  --muted: #8fb0bd;
  --line: rgba(190, 230, 240, .14);
  --card: rgba(6, 26, 41, .72);
  --card-solid: #08202f;
  --accent: #ff8a6b;      /* krill */
  --accent-ink: #2a0d05;
  --cyan: #7fe3e0;
  --t0: #9db8c4; --t1: #e9c86a; --t2: #77d69a; --t3: #5aa8ff; --t4: #b98bff; --t5: #ff8a6b;
  --radius: 18px;
  --sans: 'DM Sans', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5;
  background: var(--bg);
  overflow-x: hidden;
}
html { background: var(--bg); }
#ocean { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; pointer-events: none; z-index: 0; display: block; }
header, main, article, .toast { position: relative; z-index: 1; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; color: var(--ink); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h2 { font-family: var(--serif); font-size: 2rem; line-height: 1.1; }
h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 18px 0 8px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; max-width: 1100px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.brand small { color: var(--muted); font-weight: 400; font-size: .8rem; margin-left: 4px; }
.brand-mark { width: 34px; color: var(--accent); display: inline-flex; }
.top-actions { display: flex; gap: 8px; }
.chip { border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 999px; padding: 6px 14px; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.chip:hover { border-color: rgba(255,255,255,.35); }
.chip.ghost { background: none; }
.tok-ico { color: var(--cyan); }
@media (max-width: 560px) { .brand small, .chip.ghost { display: none; } }

/* screens */
main { max-width: 1100px; margin: 0 auto; padding: 0 16px 40px; min-height: calc(100vh - 70px); }
.screen { display: none; animation: rise .45s ease both; }
.screen.active { display: block; }
#screen-play { animation: none; transform: none; }
#screen-play.active .dive { animation: divein .6s ease both; }
@keyframes divein { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.card { background: rgba(6, 26, 41, .9); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;  }
.row { display: flex; align-items: center; }
.row.gap { gap: 10px; }
.row.between { justify-content: space-between; gap: 12px; }
.row.center { justify-content: center; }
.row.wrap { flex-wrap: wrap; }
.stack { display: grid; gap: 10px; }

.btn { border: 1px solid var(--line); background: rgba(255,255,255,.06); border-radius: 12px; padding: 12px 18px; font-weight: 500; transition: transform .12s ease, background .2s, border-color .2s; }
.btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 700; }
.btn.primary:hover { background: #ffa185; }
.btn.big { padding: 16px 28px; font-size: 1.1rem; }
.btn.ghost { background: none; }
.btn:disabled { opacity: .5; cursor: default; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: 6px; }
.link:hover { color: var(--ink); }
input:not([type=checkbox]) { width: 100%; background: rgba(0,0,0,.28); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none; }
input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(127,227,224,.15); }

/* home */
.hero { text-align: center; padding: 6vh 0 4vh; display: grid; justify-items: center; gap: 18px; }
.eyebrow { margin: 0; font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--cyan); }
.title { font-family: var(--serif); font-size: clamp(4rem, 15vw, 9rem); line-height: .85; letter-spacing: .02em; text-shadow: 0 0 60px rgba(127,227,224,.25); }
.mode-switch { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(0,0,0,.2); }
.mode { border: 0; background: none; padding: 8px 22px; border-radius: 999px; color: var(--muted); font-weight: 500; }
.mode.active { background: var(--ink); color: var(--bg); }
.mode-desc { max-width: 440px; margin: 0; color: var(--muted); min-height: 3em; }
.best { margin: 0; color: var(--muted); font-size: .9rem; }
.meta { margin: 0; color: rgba(143,176,189,.6); font-size: .78rem; }

/* results */
.results { max-width: 680px; margin: 3vh auto 0; text-align: center; }
.res-depth { font-size: clamp(3rem, 12vw, 5.5rem); font-weight: 700; margin: 6px 0; letter-spacing: -.02em; }
.res-zone { font-family: var(--serif); font-size: 1.5rem; margin: 0; }
.res-tokens { color: var(--cyan); margin: 6px 0 18px; }
.res-list { list-style: none; padding: 0; margin: 0 0 20px; text-align: left; display: grid; gap: 8px; }
.res-list li { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; }
.res-list .q { color: var(--muted); font-size: .85rem; }
.res-list .a { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.res-list .crowd { font-size: .8rem; color: var(--muted); }
.board { margin-top: 18px; text-align: left; }
.board ol { padding-left: 22px; margin: 6px 0; }
.board li { font-family: var(--mono); font-size: .9rem; }

/* lobby + room */
.lobby, .shop { max-width: 640px; margin: 3vh auto 0; display: grid; gap: 14px; }
.name-field { display: grid; gap: 6px; color: var(--muted); font-size: .85rem; }
.room-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.room-list li button { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 12px; padding: 14px 16px; }
.room-list li button:hover { border-color: var(--cyan); }
.room-list .rn { font-weight: 700; }
.room-list .rs { color: var(--muted); font-size: .85rem; font-family: var(--mono); }
.create summary { cursor: pointer; color: var(--cyan); padding: 4px 0; }
.create form { margin-top: 10px; }
.check { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.room { display: grid; grid-template-columns: 1fr 260px; gap: 16px; margin-top: 2vh; }
@media (max-width: 760px) { .room { grid-template-columns: 1fr; } }
.room-main { min-height: 360px; position: relative; }
.players { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.players li { display: grid; grid-template-columns: 14px 1fr auto; gap: 8px; align-items: center; font-size: .92rem; }
.players .pd { font-family: var(--mono); color: var(--muted); font-size: .85rem; }
.players .me { color: var(--cyan); }
.players .ok::after { content: ' ✓'; color: var(--t2); }
.swatch { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.stage-center { text-align: center; padding: 40px 0; display: grid; gap: 10px; justify-items: center; }
.big-count { font-family: var(--mono); font-size: 3.2rem; font-weight: 700; }
.reveal-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.reveal-table td { padding: 8px 6px; border-top: 1px solid var(--line); }
.reveal-table td:last-child { text-align: right; font-family: var(--mono); }
.dupe { color: var(--muted); font-size: .8rem; }

/* content */
.content { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; display: grid; gap: 40px; }
.content section { background: rgba(2, 10, 18, .55); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.content h2 { margin-bottom: 14px; }
.steps { padding-left: 22px; display: grid; gap: 10px; margin: 0; }
.tips { padding-left: 20px; display: grid; gap: 10px; margin: 0; }
.tiers { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.tiers th { text-align: left; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 6px 4px; }
.tiers td { padding: 9px 4px; border-top: 1px solid var(--line); }
.tiers td:not(:first-child) { font-family: var(--mono); }
details { border-top: 1px solid var(--line); padding: 12px 0; }
details summary { cursor: pointer; font-weight: 500; }
details p { color: var(--muted); margin: 8px 0 0; }
.foot { text-align: center; color: var(--muted); font-size: .85rem; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--card-solid); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; opacity: 0; pointer-events: none; transition: .25s; z-index: 10; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 560px) {
  .card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- full-screen dive ---------- */
body[data-screen="play"] .top, body[data-screen="play"] .content, body[data-screen="play"] .toast-hide { display: none; }
body[data-screen="play"] { overflow: hidden; }
.dive { position: fixed; inset: 0; z-index: 5; display: grid; grid-template-rows: auto 1fr; padding: 0 0 0 112px; }
@media (max-width: 640px) { .dive { padding-left: 58px; } }
.dive-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px 16px 6px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(0,0,0,.28); display: grid; place-items: center; font-size: 1rem;  }
.icon-btn:hover { border-color: rgba(255,255,255,.4); }
.dive-right { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.hist { display: flex; gap: 6px; justify-content: center; flex-wrap: nowrap; overflow: hidden; min-height: 18px; align-items: center; }
.hdot { width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.22); flex: none; position: relative; transition: transform .3s; }
.hdot.cur { border-color: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.12); animation: pulse 1.6s ease-in-out infinite; }
.hdot.miss { background: rgba(0,0,0,.45); border-color: rgba(255,255,255,.18); }
.hdot.miss::after { content: ''; position: absolute; inset: 6px 2px; background: rgba(255,255,255,.35); border-radius: 2px; }
.hdot.tier-0, .hdot.tier-1, .hdot.tier-2, .hdot.tier-3, .hdot.tier-4, .hdot.tier-5 { border-color: transparent; }
.hdot.tier-4 { box-shadow: 0 0 10px var(--t4); }
.hdot.tier-5 { box-shadow: 0 0 14px var(--t5), 0 0 4px #fff inset; }
.hdot.pop { animation: pop .5s cubic-bezier(.3,1.8,.5,1); }
@keyframes pop { 0% { transform: scale(.2); } 100% { transform: scale(1); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255,255,255,.06); } }
.depth-read { position: fixed; left: 0; width: 112px; top: 50%; transform: translateY(-50%); background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,0)); padding-top: 4px; padding-bottom: 4px; z-index: 6; padding-left: 34px; display: grid; gap: 2px; pointer-events: none; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.dr-num { font-size: 1.05rem; font-weight: 700; color: #fff; white-space: nowrap; margin-top: -42px; }
.dr-zone { font-size: .72rem; color: var(--muted); line-height: 1.2; max-width: 80px; }
@media (max-width: 640px) { .depth-read { width: 58px; padding-left: 24px; } .dr-num { font-size: .72rem; } .dr-zone { display: none; } }
.zone-banner { position: fixed; left: calc(50% + 56px); top: 21%; transform: translate(-50%, 0); text-align: center; z-index: 7; pointer-events: none; opacity: 0; width: min(90vw, 640px); }
.zone-banner.show { animation: zone 4.2s ease forwards; }
@keyframes zone { 0% { opacity: 0; transform: translate(-50%, 18px); letter-spacing: .3em; } 12% { opacity: 1; transform: translate(-50%, 0); letter-spacing: .02em; } 78% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -12px); } }
.zb-label { display: block; font-size: .72rem; letter-spacing: .4em; text-transform: uppercase; color: var(--cyan); }
.zb-name { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 7vw, 4.2rem); line-height: 1; margin: 6px 0; text-shadow: 0 0 40px rgba(127,227,224,.35), 0 4px 30px rgba(0,0,0,.7); }
.zb-blurb { display: block; color: rgba(233,244,247,.85); font-size: 1rem; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.avatar { position: fixed; left: calc(50% + 56px); top: 12%; width: 130px; height: 87px; transform: translate(-50%, -50%); z-index: 4; pointer-events: none; animation: bob 3.2s ease-in-out infinite; transition: top .6s ease; will-change: transform; }
.avatar svg { width: 100%; height: 100%; overflow: visible; }
.avatar.dash { animation: dash 1.4s cubic-bezier(.3,.8,.3,1), bob 3.2s ease-in-out 1.4s infinite; }
@keyframes bob { 50% { transform: translate(-50%, calc(-50% + 8px)) rotate(2deg); } }
@keyframes dash { 0% { transform: translate(-50%, -50%) rotate(0); } 25% { transform: translate(-50%, calc(-50% + 30px)) rotate(18deg); } 100% { transform: translate(-50%, -50%) rotate(0); } }
@media (max-width: 640px) { .avatar { width: 84px; height: 56px; top: 13%; left: calc(50% + 29px); } .zone-banner { top: 21%; left: calc(50% + 29px); width: calc(100vw - 80px); } .zb-name { font-size: 2rem; } .zb-blurb { font-size: .85rem; } }
.qcard { align-self: end; justify-self: center; width: min(640px, calc(100vw - 132px)); margin: 0 auto 6vh; background: rgba(4, 18, 30, .86); border: 1px solid rgba(190,230,240,.18); border-radius: 22px; padding: 22px 24px 20px;  box-shadow: 0 30px 80px rgba(0,0,0,.35); position: relative; z-index: 6; transition: box-shadow .4s, border-color .4s; }
@media (max-width: 640px) { .qcard { width: calc(100vw - 70px); margin: 0 6px 12px 0; padding: 16px; border-radius: 18px; } }
.q-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.prompt-meta { margin: 0; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.prompt { font-family: var(--serif); font-size: clamp(1.7rem, 4.6vw, 2.6rem); line-height: 1.08; margin: 0 0 16px; }
.timer { position: relative; width: 48px; height: 48px; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; flex: none; }
.timer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.t-bg { fill: none; stroke: var(--line); stroke-width: 3; }
.t-fg { fill: none; stroke: var(--cyan); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 0; transition: stroke .3s; }
.timer.low .t-fg { stroke: var(--accent); }
.timer.low { color: var(--accent); }
.timer.done { opacity: .35; animation: none; }
@keyframes tickpulse { 50% { transform: scale(1.08); } }
.answer { display: flex; gap: 10px; }
.answer[hidden] { display: none; }
.answer input { font-size: 1.15rem; }
.answer.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.tries { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; min-height: 0; }
.try { font-size: .78rem; padding: 2px 9px; border-radius: 999px; background: rgba(255,120,100,.12); color: #ffb4a3; text-decoration: line-through; text-decoration-color: rgba(255,180,163,.5); }
.feedback { min-height: 26px; margin-top: 10px; }
.fb { display: flex; align-items: center; gap: 10px; animation: rise .3s ease both; }
.fb.refused { color: #ffb4a3; }
.checking { color: var(--muted); }
.checking::after { content: '…'; animation: dots 1s steps(3) infinite; }
@keyframes dots { 0% { content: '.'; } 33% { content: '..'; } 66% { content: '...'; } }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: #06121b; white-space: nowrap; }
.tier-0 { background: var(--t0); } .tier-1 { background: var(--t1); } .tier-2 { background: var(--t2); } .tier-3 { background: var(--t3); } .tier-4 { background: var(--t4); } .tier-5 { background: var(--t5); }
.badge.miss { background: rgba(255,255,255,.12); color: var(--muted); }
.result { margin-top: 4px; display: grid; gap: 10px; animation: rise .35s ease both; }
.result[hidden] { display: none; }
.res-main { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.res-ans { font-weight: 700; font-size: 1.2rem; }
.res-pts { color: var(--cyan); margin-left: auto; font-size: 1.1rem; }
.res-note { margin: 0; color: var(--muted); font-size: .9rem; min-height: 1em; }
.next { justify-self: stretch; font-size: 1.1rem; padding: 14px; }
.kbd-hint { margin: -4px 0 0; text-align: center; font-size: .72rem; color: rgba(143,176,189,.6); }
@media (pointer: coarse) { .kbd-hint { display: none; } }
.qcard.glow-3 { border-color: rgba(90,168,255,.6); box-shadow: 0 0 40px rgba(90,168,255,.35), 0 30px 80px rgba(0,0,0,.35); }
.qcard.glow-4 { border-color: rgba(185,139,255,.8); box-shadow: 0 0 60px rgba(185,139,255,.55), 0 30px 80px rgba(0,0,0,.35); }
.qcard.glow-5 { border-color: rgba(255,170,120,.95); box-shadow: 0 0 80px rgba(255,138,107,.7), 0 0 20px rgba(255,220,150,.5) inset; }
@keyframes deepglow { 50% { box-shadow: 0 0 90px rgba(185,139,255,.75), 0 30px 80px rgba(0,0,0,.35); } }
@keyframes krillglow { 50% { box-shadow: 0 0 120px rgba(255,170,90,.9), 0 0 30px rgba(255,230,160,.6) inset; } }
.tanks { display: inline-flex; gap: 5px; }
.tank { width: 14px; height: 26px; border-radius: 6px; border: 1.5px solid var(--cyan); position: relative; transition: .3s; }
.tank.full::after { content: ''; position: absolute; inset: 2px; border-radius: 3px; background: linear-gradient(var(--cyan), #3ab5b0); }
.tank.lost { animation: lost .7s ease; border-color: var(--accent); }
.tank.gain { animation: gain .9s ease; }
@keyframes lost { 30% { transform: scale(1.4) rotate(-10deg); } }
@keyframes gain { 40% { transform: scale(1.6); box-shadow: 0 0 20px var(--cyan); } }
.qcount { font-family: var(--mono); font-size: .85rem; color: var(--muted); }

/* rare-tier takeovers */
.fx-stage { position: fixed; inset: 0; z-index: 20; pointer-events: none; display: grid; place-items: center; }
.fx-stage.active { pointer-events: auto; cursor: pointer; }
.fx-title { text-align: center; font-family: var(--serif); line-height: .9; padding: 0 16px; }
.fx-title .l { display: inline-block; opacity: 0; transform: translateY(40px) scale(.6) rotate(-6deg); animation: letter .7s cubic-bezier(.2,1.6,.4,1) forwards; }
@keyframes letter { to { opacity: 1; transform: none; } }
.fx-deep .fx-title { font-size: clamp(3.4rem, 13vw, 8rem); color: #efe2ff; text-shadow: -3px 0 rgba(255,60,120,.7), 3px 0 rgba(60,200,255,.7), 0 0 30px rgba(165,110,255,.9); letter-spacing: .02em; }
.fx-deep .fx-sub, .fx-krill .fx-sub { display: block; font-family: var(--sans); font-size: clamp(.8rem, 2.4vw, 1.1rem); letter-spacing: .5em; text-transform: uppercase; margin-top: 14px; opacity: 0; animation: rise .6s .6s ease forwards; }
.fx-deep .fx-sub { color: #d7c2ff; }
.fx-krill { background: radial-gradient(circle at 50% 50%, rgba(40,10,0,.0), rgba(10,4,0,.55)); }
.fx-krill .fx-title { font-size: clamp(2.8rem, 11vw, 8rem); color: #fff1d6; text-shadow: 0 0 16px rgba(255,170,90,.95), 0 4px 30px rgba(255,110,50,.8); animation: krillpulse 1.4s ease-in-out infinite 1s; will-change: transform; }
@keyframes krillpulse { 50% { transform: scale(1.04); } }
.fx-krill .fx-title .l { animation: letter .7s cubic-bezier(.2,1.6,.4,1) forwards; }
@keyframes shimmer { 50% { color: #ffc27a; text-shadow: 0 0 30px rgba(255,220,150,1), 0 0 80px rgba(255,150,70,.9); } }
.fx-krill .fx-sub { color: #ffd9b0; }
@keyframes sheen { to { background-position: -220% 0; } }
.fx-stage.out { animation: fadeout .6s ease forwards; }
@keyframes fadeout { to { opacity: 0; } }
.qcard.screen-shake { animation: sshake .6s; }
@keyframes sshake { 10%, 50%, 90% { transform: translate(-6px, 3px); } 30%, 70% { transform: translate(6px, -3px); } }

/* home */
.home-avatar { width: 150px; height: 100px; cursor: pointer; animation: bob2 3.4s ease-in-out infinite; }
.home-avatar svg { width: 100%; height: 100%; overflow: visible; }
@keyframes bob2 { 50% { transform: translateY(8px) rotate(2deg); } }
.stats { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
.stats b { display: block; color: var(--ink); font-family: var(--mono); font-size: 1.05rem; }
.chip.icon { padding: 6px 10px; }

/* shop */
.shop { max-width: 760px; }
.shop-stage { display: grid; place-items: center; height: 150px; border-radius: 16px; background: radial-gradient(circle at 50% 60%, rgba(127,227,224,.14), transparent 70%); }
.shop-stage svg { width: 210px; height: 140px; animation: bob2 3s ease-in-out infinite; overflow: visible; }
.featured { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; border: 1px solid rgba(242,167,177,.45); border-radius: 16px; padding: 14px 18px; background: linear-gradient(110deg, rgba(242,167,177,.14), rgba(242,167,177,.02)); }
.featured svg { width: 150px; height: 100px; overflow: visible; animation: bob2 2.6s ease-in-out infinite; }
.featured .ft-k { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: #f2a7b1; }
.featured h4 { margin: 2px 0 4px; font-family: var(--serif); font-size: 1.7rem; font-weight: 400; }
.featured p { margin: 0 0 10px; color: var(--muted); font-size: .9rem; }
@media (max-width: 520px) { .featured { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.small-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.item { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.03); padding: 12px; display: grid; gap: 8px; justify-items: center; text-align: center; position: relative; transition: transform .15s, border-color .2s; }
.item:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.3); }
.item.equipped { border-color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }
.item.locked svg { filter: saturate(.55) brightness(.8); }
.item svg { width: 110px; height: 74px; overflow: visible; }
.item .nm { font-weight: 500; font-size: .9rem; }
.item .btn { padding: 7px 12px; font-size: .85rem; width: 100%; }
.item .new { position: absolute; top: 8px; right: 8px; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; background: #f2a7b1; color: #3a0d15; padding: 2px 6px; border-radius: 6px; font-weight: 700; }
.swatchbig { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; }
.players .pskin { width: 26px; height: 18px; display: inline-block; }
.players .pskin svg { width: 100%; height: 100%; overflow: visible; }
.players li { grid-template-columns: 28px 1fr auto; }

.pass { flex: none; color: var(--muted); }
.pass:hover { color: var(--ink); }
@media (max-width: 640px) { .answer { flex-wrap: wrap; } .answer input { flex: 1 1 100%; } .answer .btn { flex: 1; } }
.res-deeper { margin: -4px 0 0; font-size: .86rem; color: rgba(233,244,247,.75); min-height: 0; }
.res-deeper:empty { display: none; }
.res-deeper b { color: var(--t4); font-weight: 600; }
.res-deeper .k { color: var(--t5); }
.res-deeper .common { color: var(--t0); }

.gif-btn { background: linear-gradient(100deg, #ffb35c, #ff8a6b); color: #2a0d05; border: 0; font-weight: 700; }
.gif-btn[disabled] { background: rgba(255,170,100,.25); color: #ffd9b0; }
.gif-modal { position: fixed; inset: 0; z-index: 40; background: rgba(1,6,12,.82); display: grid; place-items: center; padding: 16px; }
.gif-modal[hidden] { display: none; }
.gif-box { display: grid; gap: 14px; justify-items: center; max-width: min(92vw, 560px); }
.gif-box img { max-width: 100%; max-height: 70vh; border-radius: 14px; box-shadow: 0 0 60px rgba(255,140,80,.45); }
.gif-chip { font-size: .75rem; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(255,170,100,.6); color: #ffd9b0; background: none; margin-left: 6px; }
