/* ==========================================================
   Five Sensational Senses — design tokens
   ========================================================== */
:root {
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --surface-2: #FAFAFC;
  --ink: #1D1D1F;
  --ink-2: #6E6E73;
  --ink-3: #AEAEB2;
  --line: rgba(0,0,0,.08);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -12px rgba(0,0,0,.14);
  --shadow-lg: 0 24px 64px -20px rgba(0,0,0,.28);

  --see:   #0A84FF;
  --hear:  #BF5AF2;
  --smell: #30D158;
  --taste: #FF9F0A;
  --touch: #FF375F;
  --gold:  #FFD60A;
  --ok:    #30D158;
  --bad:   #FF453A;

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  --font: 'Nunito', -apple-system, BlinkMacSystemFont, 'SF Pro Rounded', 'Segoe UI', Roboto, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --max: 760px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1C1C1E;
    --surface-2: #2C2C2E;
    --ink: #F5F5F7;
    --ink-2: #A1A1A6;
    --ink-3: #636366;
    --line: rgba(255,255,255,.10);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 24px 64px -20px rgba(0,0,0,.9);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  min-height: 100dvh;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--see); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -0.02em; }
p { margin: 0; }
[hidden] { display: none !important; }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* ---------- Top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  display: flex;
  align-items: center; gap: 10px;
  padding: calc(var(--safe-t) + 10px) 16px 10px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.top__back { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); }
.top__brand { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 18px; letter-spacing: -0.02em; }
.brand-dots { display: inline-flex; gap: 3px; }
.brand-dots i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.brand-dots i:nth-child(1){background:var(--see)} .brand-dots i:nth-child(2){background:var(--hear)}
.brand-dots i:nth-child(3){background:var(--smell)} .brand-dots i:nth-child(4){background:var(--taste)}
.brand-dots i:nth-child(5){background:var(--touch)}
.top__xp { min-width: 0; flex: 1; }
.xp { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.xp__bar { flex: 1; max-width: 220px; height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.xp__fill { height: 100%; width: 0%; border-radius: 99px; background: linear-gradient(90deg, var(--taste), var(--gold)); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.xp__meta { font-weight: 800; font-size: 14px; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.xp__meta > span:first-child { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #1D1D1F; font-size: 13px; }
.xp__pts { color: var(--ink-2); }
.top__lang { display: inline-flex; background: var(--surface); border-radius: 99px; padding: 3px; box-shadow: var(--shadow); }
.top__lang button { padding: 5px 9px; border-radius: 99px; font-weight: 800; font-size: 12px; color: var(--ink-2); }
.top__lang button.is-on { background: var(--ink); color: var(--bg); }

@media (max-width: 480px) {
  .brand-text { display: none; }
  .xp__pts { display: none; }
  .xp__bar { max-width: 120px; }
}

/* ---------- Screens ---------- */
#app { max-width: var(--max); margin: 0 auto; padding: 0 16px calc(var(--safe-b) + 40px); }
.screen { display: none; }
.screen.is-active { display: block; animation: screenIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes screenIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 28px 0 8px; }
.orbs { display: flex; justify-content: center; gap: clamp(6px, 2vw, 14px); margin-bottom: 20px; }
.orb {
  width: clamp(52px, 14vw, 84px); height: clamp(52px, 14vw, 84px);
  border-radius: 50%; display: grid; place-items: center;
  font-size: clamp(24px, 6.5vw, 40px);
  box-shadow: 0 14px 30px -10px var(--c), inset 0 -6px 12px rgba(0,0,0,.12), inset 0 6px 12px rgba(255,255,255,.35);
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 55%, white), var(--c) 70%);
  transform: scale(0); animation: pop .6s cubic-bezier(.2,1.4,.3,1) forwards;
  transition: transform .2s;
}
.orb:active { transform: scale(.92); }
.orb--see{--c:var(--see);animation-delay:.05s} .orb--hear{--c:var(--hear);animation-delay:.15s}
.orb--smell{--c:var(--smell);animation-delay:.25s} .orb--taste{--c:var(--taste);animation-delay:.35s}
.orb--touch{--c:var(--touch);animation-delay:.45s}
@keyframes pop { to { transform: scale(1); } }
.orb span { filter: drop-shadow(0 2px 2px rgba(0,0,0,.2)); }
.hero__title { font-size: clamp(30px, 7vw, 52px); line-height: 1.02; }
.hero__sub { margin-top: 10px; color: var(--ink-2); font-weight: 700; font-size: 17px; }
.hero__hint { margin-top: 4px; color: var(--ink-3); font-weight: 700; font-size: 14px; }

/* ---------- Daily goal ---------- */
.daily {
  margin: 24px 0 8px; padding: 14px 16px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.daily__ring { position: relative; width: 52px; height: 52px; }
.daily__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.daily__ring circle { fill: none; stroke-width: 5; stroke: var(--line); }
.daily__ring circle#dailyArc { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 107; stroke-dashoffset: 107; transition: stroke-dashoffset .8s cubic-bezier(.2,.8,.2,1); }
.daily__ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 900; }
.daily__text { display: flex; flex-direction: column; line-height: 1.3; }
.daily__text strong { font-weight: 900; }
.daily__text span { color: var(--ink-2); font-size: 14px; font-weight: 700; }
.daily__trophy { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); font-size: 22px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Module grid ---------- */
.section-title { font-size: 15px; color: var(--ink-2); font-weight: 800; margin: 26px 4px 10px; }
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 600px) { .modules { grid-template-columns: repeat(3, 1fr); } }
.mod {
  --c: var(--see);
  text-align: left; padding: 16px; min-height: 128px;
  border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  position: relative; overflow: hidden; transition: transform .18s;
}
.mod:active { transform: scale(.97); }
.mod::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c); }
.mod__emoji { font-size: 30px; line-height: 1; }
.mod__name { display: block; font-weight: 900; font-size: 16px; line-height: 1.15; letter-spacing: -0.01em; }
.mod__sub { display: block; font-size: 12.5px; color: var(--ink-2); font-weight: 700; margin-top: 2px; }
.mod__stars { font-size: 12px; letter-spacing: 1px; color: var(--gold); position: absolute; top: 14px; right: 14px; }
.mod__stars .off { color: var(--line); }

.foot { margin-top: 36px; text-align: center; color: var(--ink-3); font-size: 13px; font-weight: 700; }

/* ---------- Module screen shell ---------- */
.mhead { padding: 22px 0 14px; display: flex; align-items: flex-start; gap: 14px; }
.mhead__emoji { font-size: 40px; line-height: 1; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, var(--surface)); flex-shrink: 0; }
.mhead h2 { font-size: 26px; line-height: 1.1; }
.mhead p { color: var(--ink-2); font-weight: 700; font-size: 15px; margin-top: 4px; }

.progress { display: flex; align-items: center; gap: 12px; margin: 8px 0 18px; }
.progress__bar { flex: 1; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress__fill { height: 100%; background: var(--c); border-radius: 99px; transition: width .4s cubic-bezier(.2,.8,.2,1); }
.progress__n { font-weight: 900; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.progress__streak { font-weight: 900; font-size: 14px; color: var(--taste); }

.card {
  background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow);
  padding: 22px; margin-bottom: 14px;
}
.card--flat { box-shadow: none; background: var(--surface-2); border: 1px solid var(--line); }
.prompt { font-size: clamp(22px, 5.5vw, 32px); font-weight: 900; line-height: 1.15; letter-spacing: -0.02em; text-align: center; }
.prompt--sm { font-size: clamp(18px, 4.5vw, 24px); }
.prompt__lang { display: block; text-align: center; color: var(--ink-3); font-weight: 800; font-size: 13px; margin-bottom: 8px; }
.prompt__hint { text-align: center; color: var(--ink-2); font-weight: 700; margin-top: 8px; font-size: 15px; }

/* speaker button */
.spk {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 18px; vertical-align: middle; transition: transform .15s;
}
.spk:active { transform: scale(.9); }
.spk--big { width: 64px; height: 64px; font-size: 28px; background: color-mix(in srgb, var(--c) 18%, var(--surface)); box-shadow: none; }
.spk.is-playing { animation: pulse .8s infinite; }
@keyframes pulse { 50% { transform: scale(1.12); } }
.spk-row { display: flex; justify-content: center; gap: 12px; margin: 14px 0 4px; }
.spk-row small { display: block; font-size: 11px; font-weight: 800; color: var(--ink-2); margin-top: 4px; text-align: center; }

/* options */
.opts { display: grid; gap: 10px; margin-top: 18px; }
.opt {
  padding: 16px 18px; border-radius: var(--r-md); background: var(--surface-2);
  box-shadow: inset 0 0 0 1.5px var(--line); text-align: left; font-weight: 800; font-size: 17px;
  transition: transform .15s, background .15s, box-shadow .15s; display: flex; align-items: center; gap: 12px;
}
.opt:active { transform: scale(.98); }
.opt.is-ok { background: color-mix(in srgb, var(--ok) 20%, var(--surface)); box-shadow: inset 0 0 0 2px var(--ok); }
.opt.is-bad { background: color-mix(in srgb, var(--bad) 18%, var(--surface)); box-shadow: inset 0 0 0 2px var(--bad); animation: shake .35s; }
.opt[disabled] { pointer-events: none; }
@keyframes shake { 25% { transform: translateX(-6px);} 75% { transform: translateX(6px);} }

/* text input */
.input {
  width: 100%; padding: 16px 18px; font: inherit; font-size: 22px; font-weight: 800; text-align: center;
  border-radius: var(--r-md); border: 2px solid var(--line); background: var(--surface-2); color: var(--ink);
  letter-spacing: 0.02em;
}
.input.is-ok { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, var(--surface)); }
.input.is-bad { border-color: var(--bad); animation: shake .35s; }
.diff { text-align: center; margin-top: 10px; font-weight: 800; font-size: 18px; letter-spacing: .04em; }
.diff .x { color: var(--bad); text-decoration: line-through; }
.diff .ok { color: var(--ok); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 99px; font-weight: 900; font-size: 16px; transition: transform .15s, opacity .15s;
}
.btn:active { transform: scale(.96); }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--ghost { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--c { background: var(--c); color: white; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.btn--sm { padding: 9px 14px; font-size: 14px; }

/* chips (words to tap) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  padding: 10px 14px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1.5px var(--line);
  font-weight: 800; font-size: 17px; transition: transform .15s, opacity .2s;
}
.chip:active { transform: scale(.94); }
.chip.is-used { opacity: .25; pointer-events: none; }
.chip--c { background: color-mix(in srgb, var(--c) 16%, var(--surface)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 40%, transparent); }
.answer-line {
  min-height: 64px; padding: 12px 14px; border-radius: var(--r-md); border: 2px dashed var(--line);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0; font-size: 18px; font-weight: 800;
}
.answer-line.is-ok { border-style: solid; border-color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--surface)); }
.answer-line.is-bad { border-color: var(--bad); animation: shake .35s; }
.answer-line .chip { box-shadow: none; background: color-mix(in srgb, var(--c) 16%, var(--surface)); padding: 8px 12px; }

/* sticky sentence letters */
.letters { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 12px; margin: 14px 0; font-size: clamp(19px, 5.6vw, 28px); font-weight: 800; letter-spacing: 0; line-height: 1; }
.ltr { padding: 8px 0; user-select: none; }
.gap { width: 5px; height: 1.55em; margin: 0 -1px; position: relative; cursor: pointer; align-self: center; }
.gap::after { content: ''; position: absolute; inset: 0; border-radius: 3px; background: transparent; transition: background .15s; }
.gap.is-on { width: 14px; }
.gap.is-on::after { background: var(--c); inset: 4px 3px; }
.gap:hover::after { background: color-mix(in srgb, var(--c) 30%, transparent); }
.letters.is-ok .gap.is-on::after { background: var(--ok); }
.letters.is-bad .gap.is-wrong::after { background: var(--bad); }
.letters.is-bad .gap.is-missing::after { background: var(--bad); inset: 4px 0; opacity: .6; }
.word-bubble { font-size: 14px; color: var(--ink-2); font-weight: 700; text-align: center; }

/* sorting buckets */
.buckets { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); margin-top: 14px; }
.bucket {
  padding: 14px 10px; border-radius: var(--r-md); background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line);
  font-weight: 900; font-size: 15px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: transform .15s, background .15s;
}
.bucket:active { transform: scale(.96); }
.bucket b { font-size: 26px; line-height: 1; }
.bucket small { color: var(--ink-2); font-size: 12px; font-weight: 800; }
.bucket.is-ok { background: color-mix(in srgb, var(--ok) 20%, var(--surface)); }
.bucket.is-bad { background: color-mix(in srgb, var(--bad) 18%, var(--surface)); animation: shake .35s; }
.bucket--sense { --bc: var(--c); box-shadow: inset 0 0 0 2px var(--bc); }

/* flashcards */
.flash { perspective: 1400px; height: 300px; margin-bottom: 14px; }
.flash__inner { position: relative; width: 100%; height: 100%; transition: transform .55s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; }
.flash.is-flipped .flash__inner { transform: rotateY(180deg); }
.flash__face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center;
}
.flash__face--back { transform: rotateY(180deg); background: color-mix(in srgb, var(--c) 10%, var(--surface)); }
.flash__word { font-size: clamp(26px, 7vw, 40px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.flash__lang { color: var(--ink-3); font-size: 13px; font-weight: 800; }
.flash__tr { font-size: clamp(18px, 4.5vw, 24px); font-weight: 800; }
.flash__tr small { display: block; font-size: 12px; color: var(--ink-2); font-weight: 800; margin-bottom: 2px; }
.flash__core { position: absolute; top: 14px; left: 16px; font-size: 12px; font-weight: 900; padding: 4px 10px; border-radius: 99px; background: var(--touch); color: white; }
.flash__tap { color: var(--ink-3); font-size: 13px; font-weight: 800; position: absolute; bottom: 14px; }

/* segmented filter */
.seg { display: inline-flex; background: var(--surface-2); border-radius: 99px; padding: 3px; box-shadow: inset 0 0 0 1px var(--line); margin: 0 auto 14px; }
.seg-wrap { text-align: center; }
.seg button { padding: 8px 14px; border-radius: 99px; font-weight: 800; font-size: 14px; color: var(--ink-2); }
.seg button.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* tables (grammar, school words) */
.rows { display: grid; gap: 8px; }
.row3 {
  display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 14px; border-radius: var(--r-md);
  background: var(--surface); box-shadow: var(--shadow); align-items: center;
}
@media (min-width: 560px) { .row3 { grid-template-columns: 1.1fr 1fr 1fr auto; gap: 12px; } }
.row3 .de { font-weight: 900; }
.row3 .hu { color: var(--ink-2); font-weight: 700; }
.row3 .en { color: var(--see); font-weight: 800; }
.row3 .spk { justify-self: end; }
.gram { margin-bottom: 14px; }
.gram h3 { font-size: 20px; margin-bottom: 6px; }
.gram p { color: var(--ink-2); font-weight: 700; font-size: 15.5px; }
.gram ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.gram li { display: flex; align-items: center; gap: 10px; font-weight: 800; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); }
.gram li .spk { width: 32px; height: 32px; font-size: 14px; margin-left: auto; }

/* reading */
.reading { font-size: 19px; line-height: 1.6; font-weight: 700; }
.reading .w { border-radius: 6px; padding: 0 2px; cursor: pointer; transition: background .15s; }
.reading .w:hover, .reading .w.is-hot { background: color-mix(in srgb, var(--c) 22%, transparent); }
.tip { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-md); background: color-mix(in srgb, var(--c) 12%, var(--surface)); font-weight: 800; display: flex; gap: 10px; align-items: center; min-height: 52px; }
.tip small { font-weight: 800; color: var(--ink-2); font-size: 13px; display: block; }

/* logic grid */
.lgrid { display: grid; grid-template-columns: 78px repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.lgrid > div { padding: 8px 6px; border-radius: var(--r-sm); background: var(--surface-2); font-weight: 800; font-size: 14px; text-align: center; display: grid; place-items: center; min-height: 52px; }
.lgrid .hd { background: transparent; color: var(--ink-2); font-size: 13px; }
.lgrid .face { font-size: 34px; background: transparent; }
.lgrid select { width: 100%; font: inherit; font-weight: 800; font-size: 14px; padding: 8px 4px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-align: center; -webkit-appearance: none; appearance: none; }
.lgrid select.is-ok { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, var(--surface)); }
.lgrid select.is-bad { border-color: var(--bad); }
.clues { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.clues li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); font-weight: 800; font-size: 15px; }
.clues li .spk { width: 32px; height: 32px; font-size: 14px; margin-left: auto; flex-shrink: 0; }

/* fair puzzle */
.fair-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.fair-item { padding: 12px 6px; border-radius: var(--r-md); background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; gap: 4px; font-size: 30px; transition: transform .15s; position: relative; }
.fair-item:active { transform: scale(.94); }
.fair-item small { font-size: 11px; font-weight: 800; color: var(--ink-2); text-align: center; line-height: 1.1; }
.fair-item.is-done { opacity: .35; pointer-events: none; }
.fair-item.is-bad { animation: shake .35s; box-shadow: inset 0 0 0 2px var(--bad); }
.fair-item .lt { position: absolute; top: 4px; right: 6px; font-size: 12px; font-weight: 900; color: var(--ink-3); }
.word-boxes { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.word-boxes span { width: 34px; height: 42px; border-radius: 8px; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; font-weight: 900; font-size: 20px; }
.word-boxes span.is-on { background: var(--gold); color: #1D1D1F; }

/* builder */
.builder { font-size: clamp(20px, 5.5vw, 28px); font-weight: 900; line-height: 1.6; text-align: center; }
.slot { display: inline-block; min-width: 3.2em; padding: 2px 10px; margin: 0 2px; border-radius: 10px; background: color-mix(in srgb, var(--c) 16%, var(--surface)); border-bottom: 3px solid var(--c); }
.slot.is-empty { color: var(--ink-3); }
.pick-title { font-weight: 800; color: var(--ink-2); font-size: 13px; margin: 12px 0 6px; text-align: center; }
.trans { margin-top: 14px; display: grid; gap: 6px; }
.trans div { padding: 10px 14px; border-radius: var(--r-sm); background: var(--surface-2); font-weight: 800; font-size: 15px; display: flex; gap: 10px; }
.trans div b { color: var(--ink-3); width: 24px; flex-shrink: 0; }

/* trophy room */
.trophies { display: grid; gap: 10px; }
.trophy { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow); }
.trophy__e { font-size: 32px; text-align: center; }
.trophy__t { font-weight: 900; }
.trophy__s { color: var(--ink-2); font-size: 13px; font-weight: 700; }
.trophy__stars { color: var(--gold); letter-spacing: 1px; }
.trophy__stars .off { color: var(--line); }
.rank-card { text-align: center; padding: 26px 20px; margin-bottom: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 35%, var(--surface)), var(--surface)); }
.rank-card .big { font-size: 56px; line-height: 1; }
.rank-card h3 { font-size: 24px; margin-top: 8px; }
.rank-card p { color: var(--ink-2); font-weight: 800; }
.badges { display: flex; justify-content: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.badge { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); filter: grayscale(1); opacity: .45; }
.badge.is-on { filter: none; opacity: 1; background: color-mix(in srgb, var(--bc) 25%, var(--surface)); box-shadow: 0 8px 20px -8px var(--bc); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--safe-b) + 24px); transform: translate(-50%, 20px);
  padding: 12px 20px; border-radius: 99px; background: var(--ink); color: var(--bg); font-weight: 900;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 50; white-space: nowrap; box-shadow: var(--shadow-lg);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast--xp { background: var(--gold); color: #1D1D1F; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal__card { width: min(420px, 100%); background: var(--surface); border-radius: var(--r-xl); padding: 28px 24px; text-align: center; box-shadow: var(--shadow-lg); animation: modalIn .4s cubic-bezier(.2,1.2,.3,1); }
@keyframes modalIn { from { transform: scale(.85) translateY(20px); opacity: 0; } }
.modal__emoji { font-size: 60px; line-height: 1; }
.modal__card h3 { font-size: 26px; margin-top: 10px; }
.modal__card p { color: var(--ink-2); font-weight: 700; margin-top: 6px; }
.modal__stars { font-size: 34px; margin: 12px 0; letter-spacing: 4px; color: var(--gold); }
.modal__stars .off { color: var(--line); }
.modal__actions { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }

/* misc */
.center { text-align: center; }
.muted { color: var(--ink-2); font-weight: 700; }
.emoji-big { font-size: 64px; text-align: center; line-height: 1; margin-bottom: 10px; }
.sense-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--c) 18%, var(--surface)); font-weight: 900; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .orb { transform: scale(1); }
}
