/* ============================================================
   Campus Arcade — screens & game surfaces
   ============================================================ */

/* ---------------- hub hero ---------------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 22px; align-items: stretch;
}
.hero-copy {
  position: relative; overflow: hidden;
  padding: clamp(24px, 3.2vw, 40px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(139,125,255,.2), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(255,181,71,.12), transparent 55%),
    var(--grad-panel), var(--panel);
  box-shadow: var(--shadow);
}
.hero-copy h1 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -.04em; margin: 12px 0 12px; }
.hero-copy h1 .shine {
  background: linear-gradient(100deg, #c9c0ff, #ffffff 40%, #ffd28a 78%, #ffb547);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy .lead { max-width: 46ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero-metrics { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.hero-metric strong { display: block; font-size: 21px; letter-spacing: -.02em; }
.hero-metric span { font-size: 11.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }

.level-card { display: flex; flex-direction: column; gap: 16px; padding: 22px; }
.level-top { display: flex; align-items: center; gap: 16px; }
.level-ring { position: relative; width: 96px; height: 96px; flex-shrink: 0; }
.level-ring svg { transform: rotate(-90deg); }
.level-ring .ring-bg { stroke: rgba(255,255,255,.09); }
.level-ring .ring-fg { stroke: url(#levelGrad); stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.level-ring-num {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1;
}
.level-ring-num em { font-style: normal; font-size: 9px; letter-spacing: .18em; color: var(--dim); text-transform: uppercase; margin-bottom: 3px; }
.level-ring-num strong { font-size: 28px; letter-spacing: -.03em; }
.level-meta strong { display: block; font-size: 16px; }
.level-meta span { font-size: 12.5px; color: var(--muted); }
.level-xp { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--dim); margin-bottom: 7px; font-weight: 600; }
.level-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-stat { padding: 11px 12px; border-radius: 14px; background: rgba(255,255,255,.045); border: 1px solid var(--line); }
.mini-stat strong { display: block; font-size: 16px; letter-spacing: -.01em; }
.mini-stat span { font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.next-badge {
  display: flex; gap: 11px; align-items: flex-start; margin-top: auto; padding: 12px;
  border-radius: 14px; background: rgba(255,255,255,.04); border: 1px dashed var(--line-strong);
}
.next-badge .b-ico { font-size: 22px; line-height: 1; filter: grayscale(.3); }
.next-badge strong { display: block; font-size: 12.5px; }
.next-badge span { font-size: 11px; color: var(--dim); line-height: 1.4; }

/* ---------------- daily quest ---------------- */
.daily {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 20px; border-radius: var(--r-lg);
  border: 1px solid rgba(255,181,71,.28);
  background:
    radial-gradient(120% 200% at 0% 0%, rgba(255,181,71,.18), transparent 55%),
    linear-gradient(120deg, rgba(255,181,71,.07), rgba(139,125,255,.06));
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.daily::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.08) 48%, transparent 62%);
  transform: translateX(-100%);
  animation: sweep 5.5s ease-in-out infinite;
}
@keyframes sweep { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
.daily-ico {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 15px; display: grid; place-items: center;
  font-size: 25px; background: rgba(255,181,71,.16); border: 1px solid rgba(255,181,71,.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.daily-body { min-width: 0; }
.daily-body h3 { font-size: 16.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.daily-body p { color: var(--muted); font-size: 13px; margin-top: 3px; }
.daily .btn { margin-left: auto; flex-shrink: 0; }
.daily-done { border-color: rgba(61,220,151,.28); background: radial-gradient(120% 200% at 0% 0%, rgba(61,220,151,.14), transparent 55%), var(--panel); }
.daily-done .daily-ico { background: rgba(61,220,151,.16); border-color: rgba(61,220,151,.3); }
.daily-done::after { display: none; }

/* ---------------- game grid ---------------- */
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.game-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--grad-panel), var(--panel);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  color: inherit;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.game-art { position: relative; height: 128px; overflow: hidden; background: radial-gradient(120% 140% at 20% 0%, var(--art-a, rgba(139,125,255,.35)), transparent 60%), #0e1330; }
.game-art::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.35) .8px, transparent .8px);
  background-size: 16px 16px;
  mask-image: linear-gradient(180deg, transparent, #000 55%, transparent);
}
.game-body { padding: 17px 18px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.game-body h3 { font-size: 19px; }
.game-body p { font-size: 13px; color: var(--muted); flex: 1; }
.game-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.game-best { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.game-best b { color: var(--ink); font-size: 13px; }
.game-play {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--amber);
}
.game-card:hover .game-play .arrow { transform: translateX(3px); }
.game-play .arrow { transition: transform .25s var(--ease); }

/* game art scenes */
.art-sprint { --art-a: rgba(255,181,71,.3); }
.art-uniguess { --art-a: rgba(86,204,242,.26); }
.art-pathfinder { --art-a: rgba(61,220,151,.24); }
.scene { position: absolute; inset: 0; display: grid; place-items: center; }
.scene-stopwatch {
  width: 68px; height: 68px; border-radius: 50%; border: 3px solid rgba(255,181,71,.85);
  box-shadow: 0 0 0 8px rgba(255,181,71,.09), 0 0 36px rgba(255,181,71,.35), inset 0 0 22px rgba(255,181,71,.18);
  position: relative; display: grid; place-items: center;
}
.scene-stopwatch::before {
  content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--amber);
}
.scene-stopwatch::after {
  content: ""; position: absolute; width: 3px; height: 22px; border-radius: 3px; background: var(--amber);
  transform-origin: bottom center; bottom: 50%; transform: rotate(48deg);
  animation: sweep-hand 3.2s cubic-bezier(.5,0,.5,1) infinite;
}
@keyframes sweep-hand { 0%, 100% { transform: rotate(35deg); } 50% { transform: rotate(315deg); } }
.scene-globe {
  width: 74px; height: 74px; border-radius: 50%;
  border: 2px solid rgba(86,204,242,.7);
  box-shadow: 0 0 34px rgba(86,204,242,.3), inset 0 0 26px rgba(86,204,242,.16);
  position: relative; overflow: visible;
}
.scene-globe::before, .scene-globe::after {
  content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(86,204,242,.38);
}
.scene-globe::before { inset: 18px -1px; border-left: 0; border-right: 0; }
.scene-globe::after { inset: -1px 18px; border-top: 0; border-bottom: 0; }
.scene-pin {
  position: absolute; width: 13px; height: 13px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); background: var(--coral); right: 12px; top: 10px;
  box-shadow: 0 0 18px rgba(255,107,129,.85);
}
.scene-path { width: 130px; height: 78px; position: relative; }
.scene-path .node {
  position: absolute; width: 13px; height: 13px; border-radius: 50%;
  background: #0e1330; border: 2.5px solid var(--mint);
  box-shadow: 0 0 14px rgba(61,220,151,.6);
}
.scene-path .node.on { background: var(--mint); }
.scene-path .line {
  position: absolute; height: 2px; background: linear-gradient(90deg, rgba(61,220,151,.8), rgba(139,125,255,.6));
  transform-origin: left center;
}
.scene-path .n1 { left: 8px; bottom: 8px; }
.scene-path .n2 { left: 52px; top: 20px; }
.scene-path .n3 { right: 8px; top: 6px; }
.scene-path .l1 { left: 16px; bottom: 14px; width: 48px; transform: rotate(-35deg); }
.scene-path .l2 { left: 61px; top: 25px; width: 56px; transform: rotate(-23deg); }

/* ---------------- leaderboard preview ---------------- */
.lb-preview { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 16px; }
.lb-panel { padding: 20px; }
.lb-list { display: flex; flex-direction: column; }
.lb-row {
  display: grid; grid-template-columns: 30px 36px 1fr auto; align-items: center; gap: 11px;
  padding: 9px 6px; border-radius: 12px; font-size: 13.5px;
  transition: background .2s;
}
.lb-row:hover { background: rgba(255,255,255,.035); }
.lb-rank { font-size: 12px; font-weight: 800; color: var(--dim); text-align: center; font-variant-numeric: tabular-nums; }
.lb-rank.top { color: var(--amber); }
.lb-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-name small { display: block; font-size: 10.5px; color: var(--dim); font-weight: 600; letter-spacing: .02em; }
.lb-score { font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.lb-row.you { background: rgba(139,125,255,.12); box-shadow: inset 0 0 0 1px rgba(139,125,255,.24); }
.lb-row.you .lb-name { color: #d9d3ff; }

.badge-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-mini {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-radius: 12px; background: rgba(255,255,255,.045); border: 1px solid var(--line);
  font-size: 11.5px; font-weight: 600; color: var(--muted);
}
.badge-mini.locked { opacity: .45; filter: grayscale(1); }
.badge-mini .b-ico { font-size: 16px; }

/* ---------------- hub loop explainer ---------------- */
.loop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.loop-grid h3 { font-size: 16px; }

/* ---------------- generic game chrome ---------------- */
.game-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.game-head .back { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 700; }
.game-head .back:hover { color: var(--ink); }
.game-title { display: flex; align-items: center; gap: 10px; }
.game-title h1 { font-size: 18px; }
.game-title .pill { font-size: 10px; }
.game-tools { display: flex; gap: 8px; }

.start-card { padding: clamp(22px, 4vw, 38px); }
.start-card, .q-card, .ug-card, .pf-card { animation: fade-up .35s var(--ease) both; }
.start-hero { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.start-ico {
  width: 74px; height: 74px; border-radius: 20px; display: grid; place-items: center; font-size: 34px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}
.start-card h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 6px; }
.start-card .lead { font-size: 14.5px; }
.start-options { display: grid; gap: 18px; margin-top: 26px; }
.opt-label { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 9px; }
.start-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.start-foot .hint { font-size: 12px; color: var(--dim); }

/* ---------------- game HUD ---------------- */
.hud {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 12px 16px; border-radius: var(--r-md); margin-bottom: 14px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
}
.hud-block { display: flex; flex-direction: column; gap: 1px; }
.hud-block span { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 800; }
.hud-block strong { font-size: 20px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hud-block.score strong { background: linear-gradient(100deg, #fff, #ffd28a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hud-center { display: flex; align-items: center; justify-content: center; gap: 14px; }
.timer-ring { position: relative; width: 58px; height: 58px; }
.timer-ring svg { transform: rotate(-90deg); }
.timer-ring .t-bg { stroke: rgba(255,255,255,.09); }
.timer-ring .t-fg { stroke: var(--mint); stroke-linecap: round; transition: stroke-dashoffset .25s linear, stroke .3s; }
.timer-ring.low .t-fg { stroke: var(--coral); }
.timer-ring .t-num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.combo {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255,181,71,.25); background: rgba(255,181,71,.09);
  color: #ffce7a; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.combo.hot { background: rgba(255,181,71,.18); box-shadow: 0 0 24px -4px rgba(255,181,71,.55); transform: scale(1.04); }
.combo.pop { animation: combo-pop .4s var(--ease); }
@keyframes combo-pop { 0% { transform: scale(1); } 45% { transform: scale(1.22); } 100% { transform: scale(1.04); } }
.combo .flame { font-size: 14px; }

/* ---------------- quiz ---------------- */
.q-card { padding: clamp(18px, 3vw, 28px); }
.q-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.q-text { font-size: clamp(19px, 2.4vw, 25px); line-height: 1.32; letter-spacing: -.02em; font-weight: 650; min-height: 2.4em; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.answer {
  position: relative; display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 14px 15px; border-radius: 14px; cursor: pointer;
  background: rgba(255,255,255,.045); border: 1px solid var(--line);
  color: var(--ink); font-size: 14.5px; font-weight: 600; line-height: 1.35;
  transition: background .16s, border-color .16s, transform .16s var(--ease), opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.answer:hover:not(:disabled) { background: rgba(255,255,255,.075); border-color: var(--line-strong); transform: translateY(-1px); }
.answer:disabled { cursor: default; }
.answer .key {
  width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 8px; background: rgba(255,255,255,.07); border: 1px solid var(--line);
  font-size: 11.5px; font-weight: 800; color: var(--muted); font-family: var(--mono);
}
.answer .mark { margin-left: auto; font-size: 16px; font-weight: 800; opacity: 0; }
.answer.correct { background: rgba(61,220,151,.14); border-color: rgba(61,220,151,.55); }
.answer.correct .key { background: rgba(61,220,151,.2); color: #9dffd4; border-color: rgba(61,220,151,.4); }
.answer.correct .mark { opacity: 1; color: var(--mint); }
.answer.wrong { background: rgba(255,107,129,.13); border-color: rgba(255,107,129,.55); }
.answer.wrong .key { background: rgba(255,107,129,.18); color: #ffb3bd; border-color: rgba(255,107,129,.4); }
.answer.wrong .mark { opacity: 1; color: var(--coral); }
.answer.dimmed { opacity: .35; }
.answer.pop { animation: answer-pop .28s var(--ease); }
@keyframes answer-pop { 0% { transform: scale(1); } 50% { transform: scale(.975); } 100% { transform: scale(1); } }

.feedback {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 14px;
  padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.45;
  background: rgba(255,255,255,.045); border: 1px solid var(--line);
  color: var(--muted); min-height: 46px;
}
.feedback strong { color: var(--ink); }
.feedback.good { border-color: rgba(61,220,151,.28); background: rgba(61,220,151,.07); }
.feedback.bad { border-color: rgba(255,107,129,.26); background: rgba(255,107,129,.06); }
.feedback .f-ico { flex-shrink: 0; }

.powerups { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.powerup {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px;
  border-radius: 12px; background: rgba(255,255,255,.045); border: 1px solid var(--line);
  color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; transition: .2s;
}
.powerup:hover:not(:disabled) { color: var(--ink); border-color: rgba(139,125,255,.4); background: rgba(139,125,255,.1); }
.powerup:disabled { opacity: .32; cursor: not-allowed; }
.powerup b { color: var(--amber); font-variant-numeric: tabular-nums; }
.powerup .kbd { display: none; }

/* countdown overlay */
.countdown {
  position: fixed; inset: 0; z-index: 110; display: grid; place-items: center;
  background: rgba(5, 7, 16, .82); backdrop-filter: blur(6px);
}
.countdown-num {
  font-size: clamp(90px, 20vw, 180px); font-weight: 800; letter-spacing: -.06em; line-height: 1;
  background: linear-gradient(120deg, #fff, #b9aaff 45%, #ffb547);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: count-pop .7s var(--ease) both;
}
@keyframes count-pop { 0% { transform: scale(.5); opacity: 0; } 55% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.countdown small { display: block; text-align: center; color: var(--muted); letter-spacing: .2em; text-transform: uppercase; font-size: 11px; font-weight: 800; margin-top: 10px; }

/* ---------------- results ---------------- */
.result-wrap { display: flex; flex-direction: column; gap: 16px; }
.result-hero {
  position: relative; overflow: hidden; padding: clamp(24px, 4vw, 38px);
  border-radius: var(--r-xl); text-align: center;
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 140% at 50% -20%, rgba(139,125,255,.3), transparent 60%),
    radial-gradient(70% 100% at 50% 120%, rgba(255,181,71,.12), transparent 60%),
    var(--grad-panel), var(--panel);
  box-shadow: var(--shadow);
}
.result-hero .eyebrow { margin-bottom: 10px; }
.result-score {
  font-size: clamp(56px, 11vw, 96px); font-weight: 800; letter-spacing: -.055em; line-height: .95;
  background: linear-gradient(115deg, #ffffff, #c9c0ff 45%, #ffce7a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.result-sub { color: var(--muted); font-size: 14px; margin-top: 8px; }
.result-badges { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; }
.stat-box { padding: 13px 10px; border-radius: 14px; background: rgba(255,255,255,.045); border: 1px solid var(--line); }
.stat-box strong { display: block; font-size: 19px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-box span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 800; }
.result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.result-panel { padding: 20px; }
.result-panel h3 { font-size: 15px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.result-panel h3 span { font-size: 11px; color: var(--dim); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.topic-list { display: grid; gap: 11px; }
.focus-note {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px;
  border-radius: 14px; background: rgba(255,181,71,.08); border: 1px solid rgba(255,181,71,.22);
  font-size: 13px; color: #ffdca6; line-height: 1.45;
}
.focus-note .f-ico { font-size: 18px; }
.focus-note strong { color: #fff1d6; }

/* ---------------- uniguess ---------------- */
.round-dots { display: flex; gap: 6px; align-items: center; }
.round-dot { width: 22px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.12); transition: .3s; }
.round-dot.done { background: var(--mint); }
.round-dot.now { background: var(--amber); box-shadow: 0 0 12px rgba(255,181,71,.5); }

.ug-card { padding: clamp(18px, 3vw, 28px); }
.ug-country { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.ug-flag { font-size: 26px; line-height: 1; }
.ug-clues { display: flex; flex-direction: column; gap: 8px; }
.clue {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
  animation: clue-in .45s var(--ease) both;
}
.clue .c-num {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 7px; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 800; background: rgba(86,204,242,.14); color: #9fe8ff;
  border: 1px solid rgba(86,204,242,.25);
}
.clue.locked { opacity: .4; border-style: dashed; }
.clue.locked .c-body { filter: blur(4px); user-select: none; }
@keyframes clue-in { from { opacity: 0; transform: translateY(6px); } }
.ug-points { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 12px; flex-wrap: wrap; }
.ug-potential { font-size: 12px; color: var(--dim); }
.ug-potential b { color: var(--amber); font-size: 15px; font-variant-numeric: tabular-nums; }
.ug-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ug-fact {
  margin-top: 16px; padding: 16px; border-radius: 14px;
  background: linear-gradient(120deg, rgba(86,204,242,.09), rgba(139,125,255,.07));
  border: 1px solid rgba(86,204,242,.22); font-size: 13.5px; color: var(--muted);
  animation: fade-up .35s var(--ease) both;
}
.ug-fact strong { color: var(--ink); display: block; font-size: 15px; margin-bottom: 3px; }
.ug-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }

/* ---------------- pathfinder ---------------- */
.pf-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pf-progress .bar { flex: 1; }
.pf-progress span { font-size: 11.5px; color: var(--dim); font-weight: 700; font-variant-numeric: tabular-nums; }
.pf-card { padding: clamp(20px, 3.4vw, 32px); }
.pf-num { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); font-weight: 800; }
.pf-scenario { font-size: clamp(20px, 2.6vw, 27px); line-height: 1.3; letter-spacing: -.02em; font-weight: 650; margin: 10px 0 6px; }
.pf-options { display: grid; gap: 9px; margin-top: 20px; }
.pf-option {
  display: flex; align-items: center; gap: 13px; text-align: left; width: 100%;
  padding: 14px 16px; border-radius: 14px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  color: var(--ink); font-size: 14.5px; font-weight: 600; line-height: 1.4;
  transition: .18s var(--ease);
}
.pf-option:hover { border-color: rgba(61,220,151,.4); background: rgba(61,220,151,.07); transform: translateX(3px); }
.pf-option .key {
  width: 27px; height: 27px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; font-weight: 800; color: var(--muted);
}
.pf-option .o-ico { font-size: 17px; }
.pf-hint { text-align: center; font-size: 12px; color: var(--dim); margin-top: 18px; }

.pf-result-hero { position: relative; overflow: hidden; padding: clamp(24px, 4vw, 42px); border-radius: var(--r-xl); text-align: center; border: 1px solid var(--line);
  background: radial-gradient(100% 140% at 50% 0%, rgba(61,220,151,.18), transparent 60%), radial-gradient(80% 120% at 50% 110%, rgba(139,125,255,.2), transparent 60%), var(--grad-panel), var(--panel);
  box-shadow: var(--shadow);
}
.pf-emoji { font-size: 58px; line-height: 1; filter: drop-shadow(0 10px 24px rgba(0,0,0,.5)); }
.pf-archetype { font-size: clamp(30px, 5vw, 46px); letter-spacing: -.04em; margin: 10px 0 8px; }
.pf-tagline { color: var(--amber); font-size: 14px; font-weight: 700; letter-spacing: .01em; }
.pf-desc { color: var(--muted); font-size: 14.5px; max-width: 58ch; margin: 14px auto 0; }
.pf-traits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; margin-top: 20px; }
.trait-meter { display: flex; flex-direction: column; gap: 6px; }
.trait-meter .t-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--muted); }
.trait-meter .t-head b { color: var(--ink); font-variant-numeric: tabular-nums; }
.pf-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pf-list-card { padding: 20px; }
.pf-list-card h3 { font-size: 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.pf-list-card .chip-row .pill { font-size: 12px; }
.pf-steps { display: grid; gap: 11px; }
.pf-step { display: flex; gap: 11px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.pf-step .s-num {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; background: rgba(61,220,151,.14); color: #8dffcf; border: 1px solid rgba(61,220,151,.25);
}
.pf-step strong { color: var(--ink); font-weight: 650; }
.disclaimer { font-size: 11.5px; color: var(--dim); line-height: 1.5; text-align: center; max-width: 66ch; margin: 6px auto 0; }

/* ---------------- leaderboard screen ---------------- */
.lb-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; margin: 6px 0 18px; }
.podium-card {
  padding: 16px 12px; border-radius: var(--r-md); text-align: center;
  border: 1px solid var(--line); background: var(--grad-panel), var(--panel);
  position: relative;
}
.podium-card.first { border-color: rgba(255,181,71,.36); background: radial-gradient(120% 120% at 50% 0%, rgba(255,181,71,.16), transparent 65%), var(--panel); padding-top: 28px; }
.podium-card .p-crown { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 24px; }
.podium-card .avatar { margin: 0 auto 9px; }
.podium-card .p-name { font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-card .p-score { font-size: 18px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 3px; }
.podium-card .p-rank { position: absolute; top: 10px; left: 12px; font-size: 11px; font-weight: 800; color: var(--dim); }
.podium-card.you { box-shadow: 0 0 0 1px rgba(139,125,255,.5), 0 16px 40px -22px rgba(139,125,255,.8); }

.lb-table { overflow: hidden; }
.lb-table-head { display: grid; grid-template-columns: 46px 44px 1fr 110px 54px; gap: 10px; align-items: center; padding: 11px 16px; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--line); }
.lb-table .lb-row { grid-template-columns: 46px 44px 1fr 110px 54px; padding: 11px 16px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.lb-table .lb-row:last-child { border-bottom: 0; }
.lb-table .lb-row.you { border-radius: 0; }
.lb-move { font-size: 11px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.lb-move.up { color: var(--mint); }
.lb-move.down { color: var(--coral); }
.lb-move.flat { color: var(--dim); }
.lb-you-row { background: rgba(139,125,255,.1); }
.demo-note { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--dim); margin-top: 14px; line-height: 1.5; }
.demo-note .pill { font-size: 9.5px; padding: 3px 8px; }
.board-summary { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------- profile ---------------- */
.profile-hero { display: flex; gap: 20px; align-items: center; padding: 24px; flex-wrap: wrap; }
.profile-id { min-width: 0; flex: 1; }
.profile-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-name {
  background: transparent; border: 0; border-bottom: 1px dashed rgba(255,255,255,.22);
  color: var(--ink); font: inherit; font-size: clamp(22px, 3vw, 30px); font-weight: 750; letter-spacing: -.03em;
  padding: 0 2px 3px; max-width: 320px; width: 100%;
}
.profile-name:hover { border-bottom-color: rgba(255,255,255,.45); }
.profile-name:focus { outline: none; border-bottom-color: var(--amber); }
.profile-title { color: var(--amber); font-size: 13px; font-weight: 700; margin-top: 5px; }
.avatar-frame { display: grid; place-items: center; padding: 4px; border-radius: 50%; box-shadow: 0 0 28px rgba(255,255,255,.14); flex: 0 0 auto; }
.avatar-frame .avatar { box-shadow: none; }
.profile-cosmetic-title {
  display: inline-flex; margin-top: 6px; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--violet); background: rgba(139,125,255,.12);
  border: 1px solid rgba(139,125,255,.32);
}
.fair-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.profile-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 18px; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px; margin-top: 16px; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 9px; }
.badge-tile {
  display: flex; flex-direction: column; gap: 4px; padding: 12px;
  border-radius: 13px; background: rgba(255,255,255,.04); border: 1px solid var(--line);
  transition: .2s; min-height: 92px;
}
.badge-tile .b-ico { font-size: 21px; }
.badge-tile strong { font-size: 12px; line-height: 1.25; }
.badge-tile span { font-size: 10.5px; color: var(--dim); line-height: 1.35; }
.badge-tile.locked { opacity: .4; filter: grayscale(1); }
.badge-tile.unlocked { border-color: rgba(255,181,71,.24); background: rgba(255,181,71,.055); }
.badge-tile.unlocked .b-ico { filter: drop-shadow(0 0 10px rgba(255,181,71,.5)); }
.activity { display: flex; flex-direction: column; }
.activity-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.045); font-size: 13px; }
.activity-row:last-child { border-bottom: 0; }
.activity-row .a-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.05); font-size: 15px; flex-shrink: 0; }
.activity-row .a-main { min-width: 0; flex: 1; }
.activity-row .a-main strong { display: block; font-size: 13px; }
.activity-row .a-main span { font-size: 11px; color: var(--dim); }
.activity-row .a-score { font-weight: 800; font-variant-numeric: tabular-nums; }
.danger-zone { margin-top: 16px; display: flex; justify-content: flex-end; }
.danger-btn { color: var(--coral); border-color: rgba(255,107,129,.28); background: rgba(255,107,129,.06); }
.danger-btn:hover { background: rgba(255,107,129,.11); border-color: rgba(255,107,129,.45); }

/* ---------------- share card ---------------- */
.share-preview { width: 100%; max-width: 320px; border-radius: 18px; border: 1px solid var(--line-strong); box-shadow: var(--shadow); }

/* ---------------- mock run ---------------- */
.mock-picker { display: grid; grid-template-columns: minmax(190px, .38fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.select {
  width: 100%; padding: 11px 13px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  color: var(--ink); font: inherit; font-size: 13.5px; cursor: pointer;
}
.select:hover { border-color: var(--line-strong); }
.mock-brief { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.mock-layout { display: grid; grid-template-columns: minmax(0, 1fr) 224px; gap: 14px; align-items: start; }
.mock-side {
  padding: 16px; position: sticky; top: calc(var(--topbar-h) + 14px);
  display: flex; flex-direction: column; gap: 8px;
}
.nav-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.nav-cell {
  aspect-ratio: 1; border-radius: 9px; border: 1px solid var(--line);
  background: rgba(255,255,255,.045); color: var(--muted);
  font-size: 12px; font-weight: 800; cursor: pointer;
  font-variant-numeric: tabular-nums; transition: .18s;
}
.nav-cell:hover { border-color: var(--line-strong); color: var(--ink); }
.nav-cell.answered { background: rgba(61,220,151,.16); border-color: rgba(61,220,151,.42); color: #9dffd4; }
.nav-cell.marked { box-shadow: inset 0 -3px 0 var(--amber); }
.nav-cell.current { outline: 2px solid var(--violet); outline-offset: 1px; color: #fff; }
.nav-legend { display: flex; flex-wrap: wrap; gap: 7px 12px; font-size: 10.5px; color: var(--dim); margin: 4px 0 8px; }
.nav-legend span { display: flex; align-items: center; gap: 4px; }
.nav-dot { width: 8px; height: 8px; border-radius: 3px; background: rgba(255,255,255,.12); display: inline-block; }
.nav-dot.answered { background: var(--mint); }
.nav-dot.marked { background: var(--amber); }
.mock-stimulus {
  margin: 12px 0 16px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid rgba(86,204,242,.22); background: rgba(86,204,242,.05);
}
.mock-stimulus summary {
  cursor: pointer; font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: #9fe8ff;
}
.mock-stimulus .case-text { margin-top: 10px; max-height: 220px; overflow: auto; }
.case-text { white-space: pre-line; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.mock-controls { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.answer.selected { background: rgba(139,125,255,.16); border-color: rgba(139,125,255,.55); }
.answer.selected .key { background: rgba(139,125,255,.22); color: #d6d0ff; border-color: rgba(139,125,255,.4); }
.answer.selected .mark { opacity: 1; color: var(--violet); }
.mock-review summary { cursor: pointer; font-size: 15px; font-weight: 700; }
.review-list { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.review-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.review-row:last-child { border-bottom: 0; }
.review-row .r-topic { flex: 1; font-size: 12.5px; color: var(--muted); }
.review-item { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.review-item:last-child { border-bottom: 0; }
.review-top { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; }
.review-top strong { font-size: 13px; line-height: 1.4; }
.review-item p { margin-top: 5px; }
.review-item.ok .review-top strong { color: #d9ffe9; }
.review-item.miss .review-top strong { color: #ffe0e4; }

/* ---------------- survival ---------------- */
.hearts { font-size: 15px; letter-spacing: 1px; line-height: 1.2; }

/* ---------------- case files ---------------- */
.case-card { padding: clamp(18px, 3vw, 28px); animation: fade-up .35s var(--ease) both; }
.case-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.case-head h2 { font-size: clamp(22px, 3vw, 28px); margin-top: 6px; }
.case-stimulus {
  margin-top: 16px; padding: 16px; border-radius: 14px;
  border: 1px solid rgba(86,204,242,.2); background: rgba(86,204,242,.05);
  max-height: 300px; overflow: auto;
}
.case-questions { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.case-question { padding-top: 18px; border-top: 1px solid var(--line); }
.case-question:first-child { border-top: 0; padding-top: 0; }
.case-q-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.case-q-num {
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; background: rgba(61,220,151,.14); color: #8dffcf;
  border: 1px solid rgba(61,220,151,.28);
}
.case-q-head p { flex: 1; font-size: 15.5px; font-weight: 650; line-height: 1.4; letter-spacing: -.01em; }
.case-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.case-options .answer { padding: 11px 13px; font-size: 13.5px; }
.case-explain {
  margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  background: rgba(255,255,255,.035); font-size: 12.5px; color: var(--muted); line-height: 1.5;
}
.case-explain strong { color: var(--ink); }
.case-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.case-verdict {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin-top: 16px;
  border-radius: 14px; background: rgba(255,255,255,.045); border: 1px solid var(--line);
}
.case-verdict.good { background: rgba(61,220,151,.08); border-color: rgba(61,220,151,.3); }
.case-verdict.bad { background: rgba(255,107,129,.07); border-color: rgba(255,107,129,.3); }
.case-verdict .v-ico { font-size: 22px; }
.case-verdict strong { font-size: 14px; }
.case-verdict p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.case-result-list { display: flex; flex-direction: column; }
.case-result-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.case-result-row:last-child { border-bottom: 0; }
.cr-ico {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: 17px;
}
.cr-main { flex: 1; min-width: 0; }
.cr-main strong { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-main span { font-size: 11px; color: var(--dim); }
.cr-score { text-align: right; }
.cr-score strong { display: block; font-size: 16px; color: var(--amber); font-variant-numeric: tabular-nums; }
.cr-score span { font-size: 11px; color: var(--dim); }

/* ---------------- campus credits ---------------- */
.hud-credits { color: var(--amber); border-color: rgba(255,181,71,.24); background: rgba(255,181,71,.07); }
.hud-credits:hover { border-color: rgba(255,181,71,.45); background: rgba(255,181,71,.12); }
.rewards-teaser {
  display: flex; align-items: center; gap: 20px; padding: 22px 24px;
  border-color: rgba(255,181,71,.2);
  background:
    radial-gradient(120% 180% at 0% 0%, rgba(255,181,71,.13), transparent 55%),
    var(--grad-panel), var(--panel);
}
.rt-ico {
  width: 58px; height: 58px; flex-shrink: 0; border-radius: 17px; display: grid; place-items: center;
  font-size: 28px; background: rgba(255,181,71,.14); border: 1px solid rgba(255,181,71,.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.rt-body { flex: 1; min-width: 0; }
.rt-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.rt-side strong { font-size: 30px; letter-spacing: -.04em; line-height: 1; color: var(--amber); }
.rt-side span { font-size: 10.5px; color: var(--dim); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.rt-side .btn { margin-top: 7px; }

.rewards-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 16px; }
.wallet-card { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.wallet-balance { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 2px 0 4px; }
.wallet-balance .coin { font-size: 32px; line-height: 1; }
.wallet-balance strong { font-size: clamp(40px, 6vw, 62px); letter-spacing: -.05em; line-height: .95; font-variant-numeric: tabular-nums; }
.wallet-balance > span:last-child { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
.wallet-tier { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.tier-ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 2px 0 4px; }
.tier-step {
  position: relative; padding: 9px 7px; border-radius: 10px; text-align: center;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); opacity: .48;
}
.tier-step.reached { opacity: 1; }
.tier-step.now { border-color: rgba(255,181,71,.4); background: rgba(255,181,71,.1); }
.tier-step .t-ico { display: block; font-size: 17px; line-height: 1; }
.tier-step strong { display: block; font-size: 10.5px; margin-top: 3px; }
.tier-step span { display: block; font-size: 9.5px; color: var(--dim); }
.tier-step em {
  position: absolute; top: -7px; right: -4px; font-style: normal; font-size: 8px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; background: var(--amber); color: #2a1a00;
  padding: 2px 5px; border-radius: 99px;
}
.launch-card {
  padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  border-color: rgba(255,181,71,.22);
  background:
    radial-gradient(110% 130% at 100% 0%, rgba(255,181,71,.16), transparent 60%),
    radial-gradient(90% 120% at 0% 100%, rgba(139,125,255,.14), transparent 60%),
    var(--grad-panel), var(--panel);
}
.launch-ico { font-size: 40px; line-height: 1; filter: drop-shadow(0 8px 20px rgba(255,181,71,.3)); }
.launch-card h2 { font-size: 22px; }
.launch-card p { font-size: 13px; color: var(--muted); }
.launch-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.earn-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; }
.earn-row {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); transition: .18s;
}
.earn-row:hover { border-color: var(--line-strong); background: rgba(255,255,255,.055); }
.e-ico {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,181,71,.1); border: 1px solid rgba(255,181,71,.16); font-size: 16px;
}
.e-main { flex: 1; min-width: 0; }
.e-main strong { display: block; font-size: 12.5px; }
.e-main span { display: block; font-size: 10.5px; color: var(--dim); }
.e-go { font-size: 11px; font-weight: 800; color: var(--amber); white-space: nowrap; }
#rewardTabs { max-width: 100%; overflow-x: auto; }
.reward-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.reward-card { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.reward-card.saved { border-color: rgba(255,181,71,.32); }
.reward-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.reward-ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.055); border: 1px solid var(--line); font-size: 20px;
}
.reward-card h3 { font-size: 15px; }
.reward-card p { font-size: 12px; color: var(--muted); flex: 1; }
.reward-cost { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; }
.reward-cost strong { font-size: 14px; color: var(--amber); }
.reward-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.wish-row { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.045); }
.wish-row:last-child { border-bottom: 0; }
.w-ico {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: 16px;
}
.w-main strong { display: block; font-size: 12.5px; }
.w-main span { font-size: 10.5px; color: var(--dim); }

/* new hub art */
.art-mock { --art-a: rgba(86,204,242,.28); }
.art-survival { --art-a: rgba(255,107,129,.26); }
.art-cases { --art-a: rgba(61,220,151,.24); }
.art-fair { --art-a: rgba(255,181,71,.32); }
.scene-fair { position: relative; width: 108px; height: 100px; display: grid; place-items: center; }
.sf-wheel {
  font-size: 66px; line-height: 1;
  filter: drop-shadow(0 6px 22px rgba(255,181,71,.42));
  animation: fair-sway 6s ease-in-out infinite;
}
.sf-ticket {
  position: absolute; right: -12px; bottom: 4px; font-size: 24px; transform: rotate(18deg);
  filter: drop-shadow(0 4px 10px rgba(139,125,255,.5));
}
.sf-spark {
  position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--amber);
  opacity: .75; animation: pulse-dot 2.6s ease-in-out infinite;
}
.sf-spark.s1 { left: 2px; top: 14px; }
.sf-spark.s2 { right: 8px; top: 4px; background: var(--violet); animation-delay: .8s; }
@keyframes fair-sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .sf-wheel, .sf-spark { animation: none; } }
.scene-paper {
  position: relative; width: 70px; height: 84px; border-radius: 8px;
  border: 2px solid rgba(86,204,242,.8); background: rgba(86,204,242,.07);
  box-shadow: 0 0 30px rgba(86,204,242,.25), inset 0 0 20px rgba(86,204,242,.08);
  display: flex; flex-direction: column; gap: 7px; padding: 17px 12px;
}
.scene-paper span { display: block; height: 4px; border-radius: 4px; background: rgba(86,204,242,.45); }
.scene-paper span:nth-child(2) { width: 72%; }
.scene-paper span:nth-child(3) { width: 52%; }
.scene-paper i {
  position: absolute; right: -8px; bottom: -8px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(86,204,242,.18); border: 2px solid rgba(86,204,242,.85);
  box-shadow: 0 0 16px rgba(86,204,242,.5);
}
.scene-paper i::after {
  content: "✓"; position: absolute; inset: 0; display: grid; place-items: center;
  color: #9fe8ff; font-size: 13px; font-weight: 800;
}
.scene-heart { position: relative; width: 78px; height: 66px; display: grid; place-items: center; }
.scene-heart::before {
  content: "❤"; font-size: 54px; line-height: 1; color: var(--coral);
  filter: drop-shadow(0 0 22px rgba(255,107,129,.65));
  animation: heartbeat 1.35s ease-in-out infinite;
}
.scene-heart span {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,107,129,.55); animation: pulse-dot 2.4s ease-in-out infinite;
}
.scene-heart span:nth-child(1) { left: 4px; top: 18px; }
.scene-heart span:nth-child(2) { right: 2px; top: 30px; animation-delay: .5s; }
.scene-heart span:nth-child(3) { left: 20px; bottom: 4px; animation-delay: 1s; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 16% { transform: scale(1.12); } 30% { transform: scale(.98); } 44% { transform: scale(1.08); } }
@keyframes pulse-dot { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }
.scene-case {
  position: relative; width: 78px; height: 58px; border-radius: 7px;
  border: 2px solid rgba(61,220,151,.8); background: rgba(61,220,151,.06);
  box-shadow: 0 0 28px rgba(61,220,151,.24), inset 0 0 18px rgba(61,220,151,.08);
}
.case-tab {
  position: absolute; top: -9px; left: 8px; width: 30px; height: 9px; border-radius: 5px 5px 0 0;
  background: rgba(61,220,151,.22); border: 1px solid rgba(61,220,151,.7); border-bottom: 0;
}
.case-line { position: absolute; left: 10px; top: 19px; width: 46px; height: 4px; border-radius: 4px; background: rgba(61,220,151,.42); }
.case-line.short { top: 31px; width: 30px; }
.scene-case i {
  position: absolute; right: -9px; bottom: -9px; width: 25px; height: 25px; border-radius: 50%;
  background: rgba(61,220,151,.18); border: 2px solid rgba(61,220,151,.85);
  box-shadow: 0 0 16px rgba(61,220,151,.5);
}
.scene-case i::after {
  content: "≡"; position: absolute; inset: 0; display: grid; place-items: center;
  color: #8dffcf; font-size: 14px; font-weight: 800;
}

/* ---------------- responsive ---------------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: 1fr 1fr; }
  .lb-preview { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-stats { grid-template-columns: repeat(3, 1fr); }
  .loop-grid { grid-template-columns: 1fr; }
  .mock-layout { grid-template-columns: 1fr; }
  .mock-side { position: static; }
  .nav-grid { grid-template-columns: repeat(6, 1fr); }
  .rewards-hero { grid-template-columns: 1fr; }
  .reward-grid { grid-template-columns: 1fr 1fr; }
  .rewards-teaser { flex-wrap: wrap; }
  .rt-side { align-items: flex-start; }
  .rt-side .btn { margin-top: 4px; }
}
@media (max-width: 720px) {
  .mock-picker { grid-template-columns: 1fr; }
  .case-options { grid-template-columns: 1fr; }
  .earn-list { grid-template-columns: 1fr; }
  .profile-stats { grid-template-columns: 1fr 1fr; }
  .game-grid { grid-template-columns: 1fr; }
  .game-art { height: 108px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .pf-lists { grid-template-columns: 1fr; }
  .pf-traits { grid-template-columns: 1fr; }
  .answers { grid-template-columns: 1fr; }
  .ug-options { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr; }
  .podium-card.first { order: -1; }
  .lb-table-head { display: none; }
  .lb-table .lb-row { grid-template-columns: 34px 34px 1fr 74px 40px; padding: 10px 12px; }
  .lb-filters .tabs { max-width: 100%; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .lb-filters .tabs::-webkit-scrollbar { display: none; }
  .lb-filters .tabs button { white-space: nowrap; }
  .daily { flex-wrap: wrap; }
  .daily .btn { margin-left: 0; width: 100%; }
  .profile-stats { grid-template-columns: 1fr 1fr; }
  .start-foot { flex-direction: column; align-items: stretch; }
  .start-foot .btn { width: 100%; }
  .result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .result-actions .btn { width: 100%; padding: 0 14px; font-size: 14px; }
  .result-actions .btn:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .game-head { flex-wrap: wrap; row-gap: 8px; gap: 8px; }
  .game-head .back { white-space: nowrap; font-size: 12px; }
  .game-title { min-width: 0; }
  .game-title h1 { white-space: nowrap; font-size: 16px; }
  .game-title .pill { display: none; }
  .game-tools { flex-basis: 100%; justify-content: flex-end; flex-wrap: wrap; row-gap: 6px; }
  .reward-grid { grid-template-columns: 1fr; }
  .nav-grid { grid-template-columns: repeat(5, 1fr); }
  .wallet-balance strong { font-size: 42px; }
  .tier-ladder { gap: 4px; }
  .tier-step { padding: 7px 4px; }
  .tier-step .t-ico { font-size: 15px; }
}
@media (max-width: 480px) {
  .hud { grid-template-columns: auto auto 1fr; gap: 10px; padding: 10px 12px; }
  .hud-block strong { font-size: 17px; }
  .timer-ring { width: 50px; height: 50px; }
  .combo { grid-column: 3; justify-self: end; }
  .level-foot { grid-template-columns: 1fr 1fr; }
  .game-tools .btn { min-height: 34px; padding: 0 12px; font-size: 12px; }
  .toast { min-width: 0; }
}

/* ---------------- trivia arena ---------------- */
.trivia-card {
  grid-column: 1 / -1; display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
}
.trivia-card .game-art { height: auto; min-height: 168px; }
.trivia-card .game-body { padding: 20px 22px; }
.trivia-card .tn-hub-lanes { margin-top: 2px; }
.art-trivia {
  --art-a: rgba(139,125,255,.38);
  background:
    radial-gradient(90% 130% at 20% 0%, rgba(139,125,255,.35), transparent 62%),
    radial-gradient(70% 100% at 90% 110%, rgba(61,220,151,.18), transparent 60%),
    #0e1330;
}
.scene-trivia { position: relative; width: 108px; height: 108px; display: grid; place-items: center; }
.tn-core { font-size: 42px; line-height: 1; z-index: 1; filter: drop-shadow(0 8px 18px rgba(139,125,255,.45)); }
.tn-orbit {
  position: absolute; width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(14,19,48,.9); border: 1px solid rgba(255,255,255,.16); font-size: 12px;
}
.tn-orbit.o1 { left: -3px; top: 16px; }
.tn-orbit.o2 { right: -3px; top: 16px; }
.tn-orbit.o3 { left: 6px; bottom: 2px; }
.tn-orbit.o4 { right: 6px; bottom: 2px; }

.tn-shell { padding-bottom: 10px; }
.tn-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: center;
  padding: clamp(20px, 3vw, 30px); border-radius: var(--r-xl);
  border: 1px solid rgba(139,125,255,.28);
  background:
    radial-gradient(80% 150% at 8% -20%, rgba(139,125,255,.3), transparent 60%),
    radial-gradient(70% 120% at 100% 120%, rgba(61,220,151,.13), transparent 60%),
    var(--grad-panel), var(--panel);
  box-shadow: var(--shadow);
}
.tn-hero h2 { font-size: clamp(26px, 3.6vw, 38px); margin: 7px 0 9px; letter-spacing: -.04em; }
.tn-hero .lead { max-width: 640px; margin-bottom: 16px; }
.tn-hero-mark {
  font-size: clamp(72px, 10vw, 116px); line-height: 1; filter: drop-shadow(0 18px 34px rgba(139,125,255,.4));
  animation: tn-float 5s ease-in-out infinite;
}
@keyframes tn-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-9px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .tn-hero-mark { animation: none; } }

.tn-daily {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center;
  margin-top: 18px; padding: 18px 20px; border-radius: var(--r-lg);
  border: 1px solid rgba(255,181,71,.28);
  background: linear-gradient(120deg, rgba(255,181,71,.14), rgba(139,125,255,.07) 62%, transparent);
}
.tn-daily.done { border-color: rgba(61,220,151,.26); background: linear-gradient(120deg, rgba(61,220,151,.11), rgba(255,255,255,.02)); }
.tn-daily-ico { font-size: 31px; line-height: 1; }
.tn-daily-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tn-daily-body h2 { font-size: 20px; }
.tn-daily .btn { white-space: nowrap; }
.tn-daily .btn:disabled { opacity: .62; cursor: default; }

.tn-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.tn-lane {
  position: relative; overflow: hidden; padding: 18px; display: flex; flex-direction: column; gap: 11px;
  border-color: color-mix(in srgb, var(--lane, var(--violet)) 26%, var(--line));
}
.tn-lane::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--lane, var(--violet)), transparent);
}
.tn-lane-head { display: flex; gap: 12px; align-items: center; }
.tn-lane-ico {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; flex-shrink: 0;
  background: color-mix(in srgb, var(--lane, var(--violet)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--lane, var(--violet)) 34%, transparent);
}
.tn-lane-head h3 { font-size: 16.5px; margin-bottom: 2px; }
.tn-mastery { display: flex; align-items: center; gap: 10px; }
.tn-mastery .bar { flex: 1; }
.tn-mastery span { font-size: 11px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 32px; text-align: right; }
.tn-lane-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }

.tn-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 13px; }
.tn-mode { display: flex; gap: 14px; align-items: center; padding: 18px; }
.tn-mode-ico { font-size: 27px; flex-shrink: 0; }
.tn-mode-body { flex: 1; min-width: 0; }
.tn-mode-body h3 { font-size: 16px; margin-bottom: 3px; }
.tn-mode .btn { white-space: nowrap; }
.tn-mode-integrity { border-color: rgba(255,181,71,.26); background: linear-gradient(150deg, rgba(255,181,71,.075), var(--panel)); }

.tn-memory { display: flex; gap: 14px; align-items: flex-start; margin-top: 13px; padding: 18px; }
.tn-memory-ico { font-size: 25px; line-height: 1.2; }
.tn-memory-body { min-width: 0; flex: 1; }
.tn-memory-body h3 { font-size: 15px; margin-bottom: 4px; }
.tn-review-list { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.tn-review-chip {
  display: block; padding: 8px 11px; border-radius: 10px; font-size: 12.5px; color: var(--muted);
  border: 1px solid var(--line); background: rgba(255,255,255,.035);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
ul.tn-review-list { margin-top: 4px; }
ul.tn-review-list li {
  display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 10px;
  font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); background: rgba(255,255,255,.03);
}

.tn-notes { margin-top: 13px; padding: 0; overflow: hidden; }
.tn-notes summary {
  display: flex; align-items: center; gap: 10px; padding: 16px 18px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 14.5px;
}
.tn-notes summary::-webkit-details-marker { display: none; }
.tn-notes summary::after { content: "＋"; margin-left: auto; color: var(--dim); font-weight: 800; }
.tn-notes[open] summary::after { content: "−"; }
.tn-notes summary .tiny { margin-left: 2px; font-weight: 600; }
.tn-note-list { display: flex; flex-direction: column; gap: 8px; padding: 0 18px 17px; }
.tn-note-list li {
  display: flex; gap: 10px; align-items: flex-start; padding: 9px 11px; border-radius: 10px;
  background: rgba(255,255,255,.035); border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; line-height: 1.5;
}
.tn-note-list li span { flex-shrink: 0; }
.tn-notes > p { padding: 0 18px 17px; }

.tn-fair {
  margin-top: 13px; padding: 19px;
  border-color: rgba(61,220,151,.2);
  background: linear-gradient(150deg, rgba(61,220,151,.055), var(--panel));
}
.tn-fair-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 13px; }
.tn-fair-ico { font-size: 24px; line-height: 1.1; }
.tn-fair-head h3 { font-size: 15.5px; margin-bottom: 2px; }
.tn-fair-list { display: grid; gap: 8px; }
.tn-fair-list li {
  position: relative; padding-left: 20px; color: var(--muted); font-size: 12.5px; line-height: 1.5;
}
.tn-fair-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--mint); font-weight: 800; font-size: 12px;
}

/* run */
.tn-run-head .game-title h1 { font-size: clamp(18px, 2.4vw, 24px); }
.tn-run { padding: clamp(18px, 3vw, 28px); }
.tn-timer-row { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.tn-timer { flex: 1; height: 7px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.tn-timer > span {
  display: block; height: 100%; width: 100%; border-radius: inherit;
  background: var(--grad-brand); transition: width .1s linear;
}
.tn-timer-row.low .tn-timer > span { background: linear-gradient(90deg, #ff6b81, #ffb547); }
.tn-timer-row.low .tn-clock { color: var(--coral); }
.tn-clock {
  font-family: var(--mono); font-size: 12.5px; font-weight: 800; color: var(--muted);
  min-width: 40px; text-align: right; font-variant-numeric: tabular-nums;
}
.tn-answers { margin-top: 20px; }
.tn-answers .answer .key { font-family: var(--mono); }
.tn-run-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.tn-run-foot .btn { min-width: 132px; }
.tn-provenance { margin-top: 12px; text-align: center; font-size: 10.5px; color: var(--dim); }

.feedback .tn-outcome { font-size: 13.5px; margin-bottom: 4px; }
.feedback .tn-outcome strong { color: #fff; }
.feedback .tn-explain { color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.tn-feedback-meta {
  display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 9px;
  font-size: 10.5px; letter-spacing: .03em; color: var(--dim); text-transform: uppercase; font-weight: 700;
}
.tn-field-note {
  display: flex; gap: 9px; align-items: flex-start; margin-top: 10px; padding: 9px 11px; border-radius: 10px;
  background: rgba(255,255,255,.045); border: 1px solid var(--line); color: var(--ink); font-size: 12.5px; line-height: 1.5;
}
.tn-field-note span { flex-shrink: 0; }
.tn-field-note strong { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 1px; }
.tn-trap {
  margin-top: 10px; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.5;
  color: #ffd0b0; background: rgba(255,107,129,.1); border: 1px solid rgba(255,107,129,.3);
}
.tn-trap strong { color: #ffb3bd; }
.feedback.tn-trap-feedback { border-color: rgba(255,181,71,.4); background: rgba(255,181,71,.07); }

/* results */
.tn-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.tn-result-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tn-result-stats span {
  padding: 7px 10px; border-radius: 9px; font-size: 11.5px; color: var(--muted);
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
}
.tn-result-stats strong { color: var(--ink); font-size: 13px; }
.tn-unranked {
  display: flex; gap: 14px; align-items: flex-start; border-color: rgba(255,181,71,.3);
  background: linear-gradient(150deg, rgba(255,181,71,.09), var(--panel));
}
.tn-u-ico { font-size: 27px; line-height: 1.1; }
.tn-unranked h3 { font-size: 15px; margin-bottom: 5px; }
.tn-unranked p { line-height: 1.55; }
.tn-harm { border-color: rgba(255,107,129,.28); }
.tn-harm-row {
  display: flex; flex-direction: column; gap: 3px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.055);
}
.tn-harm-row strong { font-size: 12.5px; line-height: 1.4; }
.tn-harm-row span { font-size: 12px; color: #ffb3bd; line-height: 1.5; }
.tn-board-panel { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.tn-board-you { display: flex; gap: 11px; align-items: center; }
.tn-board-you strong { display: block; font-size: 21px; letter-spacing: -.03em; line-height: 1.1; }
.tn-cap-note {
  margin: 0; padding: 11px 14px; border-radius: 12px; font-size: 12px; line-height: 1.5; color: #ffdca6;
  background: rgba(255,181,71,.08); border: 1px solid rgba(255,181,71,.22);
}
.tn-notes .tn-note-list { padding-bottom: 0; }

@media (max-width: 980px) {
  .tn-lanes { grid-template-columns: 1fr 1fr; }
  .tn-modes { grid-template-columns: 1fr; }
  .tn-result-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .trivia-card { grid-template-columns: 1fr; }
  .trivia-card .game-art { height: 118px; min-height: 0; }
  .tn-hero { grid-template-columns: 1fr; }
  .tn-hero-mark { display: none; }
  .tn-lanes { grid-template-columns: 1fr; }
  .tn-daily { grid-template-columns: auto minmax(0, 1fr); }
  .tn-daily .btn { grid-column: 1 / -1; width: 100%; }
  .tn-mode { flex-wrap: wrap; }
  .tn-mode .btn { width: 100%; }
  .tn-answers { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .tn-hero { padding: 19px 17px; }
  .tn-hero h2 { font-size: 25px; }
  .tn-daily { padding: 15px; gap: 12px; }
  .tn-daily-ico { font-size: 25px; }
  .tn-lane { padding: 15px; }
  .tn-mode { padding: 15px; }
  .tn-memory { padding: 15px; }
  .tn-fair { padding: 15px; }
  .tn-timer-row { gap: 9px; }
  .tn-clock { min-width: 34px; font-size: 11.5px; }
  .tn-run .q-text { font-size: 18px; }
  .tn-run-foot { flex-direction: column-reverse; align-items: stretch; }
  .tn-run-foot .btn { width: 100%; }
  .tn-run-foot .tiny { text-align: center; }
}

/* ---------------- campus fair ---------------- */
.fair .page-head { margin-bottom: 18px; }
.fair .page-head h1 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -.045em; }
.fair .page-head p { max-width: 60ch; }
.fair .page-head .pill { font-size: 11px; }

.fair-banner {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; margin-bottom: 16px;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--grad-panel), var(--panel);
  box-shadow: var(--shadow-sm);
  animation: fade-up .35s var(--ease) both;
}
.fair-banner-result {
  border-color: rgba(255,181,71,.3);
  background:
    radial-gradient(120% 180% at 0 0, rgba(255,181,71,.14), transparent 60%),
    var(--grad-panel), var(--panel);
}
.fair-banner-ico {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px;
  display: grid; place-items: center; font-size: 22px;
  background: rgba(255,181,71,.12); border: 1px solid rgba(255,181,71,.26);
}
.fair-banner-body { flex: 1; min-width: 0; }
.fair-banner-body strong { display: block; font-size: 15px; letter-spacing: -.01em; }
.fair-banner-body .tiny { display: block; margin-top: 2px; line-height: 1.5; }
.fair-grant-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.fair-grant-chips .pill { font-size: 10.5px; }
.fair-cap-note { margin: 9px 0 0; font-size: 11.5px; color: #ffdca6; line-height: 1.45; }
.fair-live-spin { align-items: center; }
.fair-spinner {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
  border: 2.5px solid rgba(255,181,71,.22); border-top-color: var(--amber);
  animation: fair-spin .8s linear infinite;
}
@keyframes fair-spin { to { transform: rotate(360deg); } }

.fair-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 16px; align-items: start;
}
.fair-stall {
  padding: clamp(18px, 2.6vw, 26px);
  display: flex; flex-direction: column;
}
.fair-stall-head {
  display: flex; gap: 14px; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; margin-bottom: 16px;
}
.fair-stall-head h2 { font-size: clamp(19px, 2.4vw, 24px); margin-top: 5px; letter-spacing: -.03em; }
.fair-stall-head .pill { flex-shrink: 0; }

.fair-wheel-wrap { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.fair-wheel { position: relative; width: min(240px, 62vw); aspect-ratio: 1; flex: 0 0 auto; }
.fair-wheel svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 18px 32px rgba(0,0,0,.5)); }
.fair-pointer {
  position: absolute; top: -3px; left: 50%; z-index: 2;
  width: 0; height: 0; transform: translateX(-50%);
  border-left: 9px solid transparent; border-right: 9px solid transparent;
  border-top: 16px solid var(--amber);
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.55));
}
.fair-wheel-rotor { transform-box: view-box; transform-origin: 100px 100px; }
.fair-wedge-label {
  font-family: var(--font); font-size: 7.4px; font-weight: 800;
  fill: #9aa3c6; letter-spacing: .01em;
}
.fair-wedge-label.big { fill: #ffd894; }
.fair-hub-text {
  font-family: var(--font); font-size: 8.5px; font-weight: 800;
  letter-spacing: .14em; fill: rgba(255,255,255,.85);
}
.fair-hub-fair { fill: var(--amber); font-size: 9px; }
.fair-spin-panel {
  flex: 1 1 190px; min-width: 0;
  display: flex; flex-direction: column; gap: 9px; align-items: flex-start;
}
.fair-spin-panel .tiny { line-height: 1.45; }
.fair-spin-btn { width: 100%; margin-top: 2px; }
.fair-boosts { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-top: 4px; }
.fair-boost-title {
  font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim); font-weight: 800; margin-right: 2px;
}

.fair-odds { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.fair-odds summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  cursor: pointer; list-style: none;
  font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
}
.fair-odds summary::-webkit-details-marker { display: none; }
.fair-odds summary::after { content: "＋"; color: var(--dim); font-size: 14px; }
.fair-odds[open] summary::after { content: "−"; }
.fair-odds-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.fair-odds-title {
  display: block; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dim); font-weight: 800; margin-bottom: 6px;
}
.fair-odds-row {
  display: grid; grid-template-columns: 8px minmax(0, 1fr) auto auto;
  gap: 8px; align-items: center;
  padding: 5px 0; font-size: 11px; color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,.045);
}
.fair-odds-row strong { font-size: 11.5px; color: var(--ink); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fair-odds-row em { font-style: normal; font-size: 9.5px; color: var(--dim); white-space: nowrap; }
.fair-odds-dot { width: 7px; height: 7px; border-radius: 50%; }
.fair-odds-dot.big { background: var(--amber); box-shadow: 0 0 8px rgba(255,181,71,.6); }
.fair-odds-dot.small { background: rgba(255,255,255,.22); }

.vault-board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.vault-card {
  position: relative; aspect-ratio: .72; min-height: 104px; padding: 0;
  border-radius: 12px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); font: inherit; cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.vault-card:hover { transform: translateY(-2px); border-color: rgba(255,181,71,.4); }
.vault-card.selected {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber), 0 12px 26px -14px rgba(255,181,71,.8);
  transform: translateY(-3px);
}
.vault-card.revealed { cursor: default; }
.vault-card.revealed:hover { transform: none; }
.vault-back, .vault-face {
  position: absolute; inset: 0; border-radius: inherit; padding: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; text-align: center;
}
.vault-back {
  font-size: 10px; font-weight: 700; color: var(--muted);
  background: linear-gradient(160deg, rgba(139,125,255,.16), rgba(255,255,255,.03));
}
.vault-back .v-ico { font-size: 20px; line-height: 1; }
.vault-card.selected .vault-back { background: linear-gradient(160deg, rgba(255,181,71,.22), rgba(255,181,71,.05)); }
.vault-face {
  font-size: 10px; line-height: 1.25; color: var(--muted);
  border: 1px solid var(--line); background: rgba(255,255,255,.045);
}
.vault-face .v-ico { font-size: 18px; line-height: 1; }
.vault-face strong { font-size: 10.5px; color: var(--ink); line-height: 1.2; }
.vault-face em {
  font-style: normal; font-size: 8px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--amber); font-weight: 800;
}
.vault-face.reward { background: rgba(255,181,71,.08); border-color: rgba(255,181,71,.28); }
.vault-face.notes { background: rgba(86,204,242,.07); border-color: rgba(86,204,242,.24); }
.vault-card.picked { border-color: rgba(255,181,71,.6); box-shadow: 0 0 0 1px rgba(255,181,71,.45); }
.vault-card.picked .vault-face { background: rgba(255,181,71,.12); }
.vault-board.revealed .vault-card { animation: fade-up .35s var(--ease) both; }

.fair-empty {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  padding: 14px; border-radius: 14px;
  border: 1px dashed var(--line-strong); background: rgba(255,255,255,.025);
}
.fair-empty-ico {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center;
  font-size: 20px; background: rgba(255,181,71,.1); border: 1px solid rgba(255,181,71,.2);
}
.fair-empty-body { flex: 1; min-width: 160px; }
.fair-empty-body strong { display: block; font-size: 13.5px; }
.fair-empty-body p { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.fair-empty .btn { flex-shrink: 0; }

.fair-numbers-preview { display: flex; align-items: center; justify-content: center; gap: 12px; }
.fair-number-card {
  display: grid; place-items: center; min-width: 94px; height: 78px;
  border-radius: 14px; font-size: 27px; font-weight: 800; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(150deg, rgba(61,220,151,.16), rgba(255,255,255,.03));
  border: 1px solid rgba(61,220,151,.26); color: #bfffe2;
}
.fair-number-card.dim { background: rgba(255,255,255,.035); border-color: var(--line); color: var(--dim); }
.fair-number-vs { font-size: 13px; font-weight: 800; color: var(--dim); }

.fair-shelf {
  margin-top: 24px; padding: clamp(18px, 2.6vw, 26px);
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--grad-panel), var(--panel); box-shadow: var(--shadow-sm);
}
.fair-shelf .section-head { align-items: flex-start; margin-bottom: 12px; }
#shelfTabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
#shelfTabs::-webkit-scrollbar { display: none; }
#shelfTabs button { white-space: nowrap; }
.shelf-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.shelf-item {
  display: flex; flex-direction: column; gap: 5px; align-items: center;
  padding: 12px 9px; border-radius: 14px; text-align: center;
  border: 1px solid var(--line); background: rgba(255,255,255,.035);
}
.shelf-item.equipped {
  border-color: rgba(255,181,71,.45); background: rgba(255,181,71,.07);
  box-shadow: inset 0 0 0 1px rgba(255,181,71,.12);
}
.shelf-visual { height: 62px; display: grid; place-items: center; margin-bottom: 2px; }
.shelf-name { font-size: 11.5px; font-weight: 700; line-height: 1.2; }
.shelf-state {
  font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 800; color: var(--dim); margin-bottom: 4px;
}
.shelf-item.equipped .shelf-state { color: var(--amber); }
.shelf-item .btn { width: 100%; min-height: 30px; padding: 0 8px; font-size: 10.5px; }
.shelf-foot {
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
}
.shelf-foot p { max-width: 58ch; line-height: 1.5; }
.shelf-foot .row { flex-shrink: 0; }

.cos-frame {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; padding: 3px;
  box-shadow: 0 8px 18px -8px rgba(0,0,0,.8);
}
.cos-avatar {
  width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center;
  background: #101631; border: 1px solid rgba(255,255,255,.12); font-size: 22px;
}
.cos-back {
  position: relative; width: 42px; height: 54px; border-radius: 7px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 8px 16px -8px rgba(0,0,0,.8);
}
.cos-back i { position: absolute; left: 7px; right: 7px; top: 11px; height: 3px; border-radius: 3px; opacity: .9; }
.cos-back i::after {
  content: ""; position: absolute; left: 0; top: 8px; width: 62%; height: 3px;
  border-radius: 3px; background: inherit; opacity: .6;
}
.cos-title {
  display: inline-block; max-width: 100%; padding: 5px 9px; border-radius: 999px;
  border: 1px solid rgba(139,125,255,.35); background: rgba(139,125,255,.12);
  color: #d6d0ff; font-size: 9.5px; font-weight: 800; line-height: 1.15;
}

.fair-bottom {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 16px; margin-top: 16px; align-items: start;
}
.fair-fairplay {
  display: flex; gap: 13px; align-items: flex-start;
  border-color: rgba(61,220,151,.22);
  background: linear-gradient(150deg, rgba(61,220,151,.06), var(--panel));
}
.fair-fairplay-ico { font-size: 24px; line-height: 1.1; }
.fair-fairplay strong { display: block; font-size: 14px; margin-bottom: 4px; }
.fair-fairplay p { line-height: 1.55; }

@media (max-width: 980px) {
  .fair-grid { grid-template-columns: 1fr; }
  .shelf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fair-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .fair-odds-grid { grid-template-columns: 1fr; }
  .vault-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fair-wheel { width: min(230px, 64vw); }
  .fair-wheel-wrap { justify-content: center; }
  .fair-spin-panel { flex-basis: 100%; }
  .fair-spin-panel .btn { width: 100%; }
  .fair-banner { padding: 14px; }
}
@media (max-width: 560px) {
  .fair .page-head > .row { width: 100%; }
  .fair .page-head .pill { font-size: 10.5px; }
  #shelfTabs button { padding: 7px 10px; font-size: 12px; }
  .shelf-grid { grid-template-columns: 1fr 1fr; }
  .vault-card { min-height: 92px; }
  .vault-face strong { font-size: 9.5px; }
  .fair-number-card { min-width: 80px; height: 68px; font-size: 23px; }
  .fair-fairplay { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .fair-wheel-rotor { transition: none !important; }
  .fair-spinner { animation: none; }
}

/* ---------- Higher or Lower ---------- */
.hl-start .start-foot .hint { max-width: 58ch; }
.hl-rules { display: grid; gap: 7px; font-size: 13px; color: var(--muted); }
.hl-rules span { position: relative; padding-left: 15px; line-height: 1.5; }
.hl-rules span::before { content: "•"; position: absolute; left: 0; color: var(--mint); }
.hl-rules b { color: var(--ink); }

.hl-tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hl-tier {
  display: flex; flex-direction: column; gap: 4px; padding: 12px;
  border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .035);
}
.hl-tier-label { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.hl-tier strong { font-size: 12.5px; line-height: 1.35; color: var(--ink); font-variant-numeric: tabular-nums; }
.hl-tier-extra { font-size: 10.5px; font-weight: 700; color: #c1b8ff; }

.hl-board { padding: clamp(20px, 3.4vw, 34px); }
.hl-progress { display: flex; justify-content: center; gap: 6px; margin-bottom: 20px; }
.hl-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.hl-dot.now { background: var(--amber); box-shadow: 0 0 0 3px rgba(255, 181, 71, .16); }
.hl-dot.hit { background: var(--mint); }
.hl-dot.miss { background: var(--coral); }

.hl-family { text-align: center; margin-bottom: 18px; }
.hl-prompt { margin-top: 4px; font-size: 13px; color: var(--muted); }

.hl-cards { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: stretch; }
.hl-card {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  min-height: 210px; padding: 18px 14px; border-radius: 18px; text-align: center;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .035);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.hl-card.known { border-color: var(--line-strong); }
.hl-card.hidden {
  border-style: dashed; border-color: rgba(139, 125, 255, .38);
  background: linear-gradient(160deg, rgba(139, 125, 255, .10), rgba(255, 255, 255, .02));
}
.hl-card.revealed.right {
  border-color: rgba(61, 220, 151, .45);
  background: linear-gradient(160deg, rgba(61, 220, 151, .10), rgba(255, 255, 255, .02));
}
.hl-card.revealed.wrong {
  border-color: rgba(255, 107, 129, .5);
  background: linear-gradient(160deg, rgba(255, 107, 129, .10), rgba(255, 255, 255, .02));
}
.hl-tag { font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--dim); }
.hl-card h2 { font-size: clamp(15px, 2vw, 19px); line-height: 1.18; overflow-wrap: break-word; }
.hl-region { font-size: 11px; color: var(--dim); }
.hl-value {
  margin-top: 6px; font-size: clamp(18px, 3.4vw, 38px); font-weight: 800; line-height: 1.05;
  letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: #c9ffe8; white-space: nowrap;
}
.hl-card.hidden .hl-value { color: #c1b8ff; }
.hl-card.revealed.wrong .hl-value { color: #ffb3bd; }
.hl-raw { max-width: 24ch; font-size: 10.5px; line-height: 1.35; color: var(--dim); }
.hl-vs {
  align-self: center; display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--panel-solid);
  font-size: 10px; font-weight: 800; color: var(--dim);
}

.hl-question { max-width: 52ch; margin: 20px auto 0; text-align: center; font-size: 14px; color: var(--muted); }
.hl-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 460px; margin: 14px auto 0; }
.hl-choice { justify-content: center; gap: 8px; min-height: 56px; border-radius: 14px; font-weight: 800; }
.hl-choice.up { background: rgba(61, 220, 151, .12); border-color: rgba(61, 220, 151, .35); color: #a9ffd4; }
.hl-choice.down { background: rgba(86, 204, 242, .10); border-color: rgba(86, 204, 242, .32); color: #bfeaff; }
.hl-choice:hover { border-color: currentColor; background: rgba(255, 255, 255, .07); }
.hl-choice kbd {
  padding: 2px 6px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(0, 0, 0, .24); color: var(--muted); font: 700 10px var(--mono);
}

.hl-reveal {
  max-width: 620px; margin: 20px auto 0; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line); text-align: center; animation: fade-up .25s var(--ease) both;
}
.hl-reveal.hit { border-color: rgba(61, 220, 151, .35); background: rgba(61, 220, 151, .06); }
.hl-reveal.miss { border-color: rgba(255, 107, 129, .35); background: rgba(255, 107, 129, .06); }
.hl-reveal-title { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; }
.hl-reveal-title span {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  font-size: 12px; font-weight: 800;
}
.hl-reveal.hit .hl-reveal-title span { background: rgba(61, 220, 151, .18); color: var(--mint); }
.hl-reveal.miss .hl-reveal-title span { background: rgba(255, 107, 129, .18); color: var(--coral); }
.hl-reveal p { margin-top: 6px; font-size: 13px; color: var(--muted); }
.hl-source { display: block; margin-top: 8px; font-size: 10.5px; color: var(--dim); }
.hl-continue { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 14px; }

.hl-result {
  padding: clamp(24px, 4vw, 40px); text-align: center;
  background: var(--grad-panel), var(--panel);
}
.hl-result.perfect {
  border-color: rgba(255, 181, 71, .4);
  box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .12), var(--shadow-sm);
}
.hl-score { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin: 12px 0 4px; line-height: 1; }
.hl-score strong { font-size: clamp(64px, 12vw, 104px); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.hl-score span { font-size: clamp(24px, 4vw, 34px); font-weight: 700; color: var(--dim); }
.hl-score-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hl-result .result-badges { margin-top: 16px; }
.hl-cap { margin-top: 10px; font-size: 12px; color: #ffce7a; }
.hl-perfect-note { margin-top: 14px; font-size: 12px; color: var(--muted); }

@media (max-width: 720px) {
  .hl-tiers { grid-template-columns: 1fr 1fr; }
  .hl-cards { gap: 8px; }
  .hl-card { min-height: 190px; padding: 14px 10px; }
  .hl-vs { width: 26px; height: 26px; font-size: 9px; }
}
@media (max-width: 560px) {
  .hl-board { padding: 18px 14px; }
  .hl-card h2 { font-size: 14px; }
  .hl-value { font-size: 18px; }
  .hl-raw { font-size: 9.5px; }
  .hl-actions { grid-template-columns: 1fr; }
  .hl-choice { min-height: 48px; }
  .hl-tier { padding: 10px; }
  .hl-reveal { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hl-reveal { animation: none; }
}
