/* ============================================================================
   HUNCH — Design v4 · Bento Bold
   prediction market + gamification + coupons

   Light, editorial bento language: crisp 1.5px outlines, "hard offset" shadows,
   oversized heavy type (Sora 800), electric cobalt + amber accents.

   Two Today-header treatments, switchable live / per standalone file:
     • v1 — original (streak flame pill + XP level bar)
     • v2 — refined (weekday streak strip + clean level tile)   [.b2-* below]
   ============================================================================ */

*, *::before, *::after { box-sizing: border-box; }
/* Lock text size so MIUI / Xiaomi (and other) system font-scaling can't inflate
   the UI — keeps typography identical across devices (paired with the Android
   WebView setTextZoom(100) patch in apk/patch-android.mjs). */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
button { font: inherit; color: inherit; border: none; background: none; cursor: pointer; }
img { -webkit-user-drag: none; user-select: none; }

:root {
  --bg:        #F3F3EF;
  --bg-2:      #ECECE6;
  --surface:   #FFFFFF;
  --surface-2: #F7F7F2;
  --border:    #E4E4DC;
  --border-2:  #18181B;

  --primary:   #2540FF;
  --primary-2: #5A6CFF;
  --accent:    #FFC92E;
  --correct:   #119D5B;
  --wrong:     #E23A45;
  --skip:      #9A9A95;

  --text-hi:   #14141A;
  --text-lo:   #6B6B6F;
  --on-primary:#FFFFFF;

  --cat-sport:    #FFB3C7;
  --cat-tech:     #A9D8FF;
  --cat-money:    #B8F2D8;
  --cat-politics: #D8C2FF;
  --cat-culture:  #FFE39A;
  --cat-local:    #FFCBA5;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --display-weight: 800;
  --display-tracking: -0.035em;

  --radius:      20px;
  --radius-sm:   14px;
  --radius-card: 24px;

  --shadow-card: 0 4px 0 var(--border-2), 0 18px 36px rgba(20,20,26,.10);
  --shadow-soft: 0 3px 0 var(--border-2);
  --shadow-btn:  0 4px 0 #1A2BB0;

  --owl-body:  #2540FF; --owl-body2: #1B33D9; --owl-belly: #DCE3FF;
  --owl-beak:  #FFC92E; --owl-pupil: #14141A; --owl-eye: #ffffff;

  color-scheme: light;
}

/* category helper */
.cat-sport{--cat:var(--cat-sport)} .cat-tech{--cat:var(--cat-tech)} .cat-money{--cat:var(--cat-money)}
.cat-politics{--cat:var(--cat-politics)} .cat-culture{--cat:var(--cat-culture)} .cat-local{--cat:var(--cat-local)}

/* ----------------------------------------------------------------------------
   STAGE + PHONE FRAME
   ---------------------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  background: #050509;
  color: var(--text-hi);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.h-stage {
  min-height: 100vh; display: grid; place-items: center; padding: 96px 16px 40px;
  background:
    radial-gradient(60% 50% at 18% 8%, #1a1640 0%, transparent 60%),
    radial-gradient(60% 50% at 92% 92%, #06303a 0%, transparent 60%),
    #050509;
  position: relative;
}
.h-phone {
  position: relative; width: 390px; height: 844px; border-radius: 54px;
  background: var(--bg); overflow: hidden;
  box-shadow: 0 50px 120px rgba(0,0,0,.6), 0 0 0 12px #14151c, 0 0 0 13px #2a2c38;
}
.h-notch { position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 30px; background: #07070c; border-radius: 16px; z-index: 60; }
.h-screen { position: absolute; inset: 0; display: flex; flex-direction: column; }

/* background atmosphere — editorial dot grid + muted blobs */
.h-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
  background-image: radial-gradient(var(--border) 1.2px, transparent 1.2px); background-size: 24px 24px; }
.h-bg::before, .h-bg::after { content: ""; position: absolute; border-radius: 50%; filter: blur(76px); }
.h-bg::before { width: 340px; height: 340px; top: -70px; right: -90px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%); opacity: .10; animation: drift1 16s ease-in-out infinite; }
.h-bg::after { width: 320px; height: 320px; bottom: -50px; left: -100px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%); opacity: .12; animation: drift2 19s ease-in-out infinite; }
@keyframes drift1 { 0%,100%{ transform: translate(0,0) } 50%{ transform: translate(-28px,32px) } }
@keyframes drift2 { 0%,100%{ transform: translate(0,0) } 50%{ transform: translate(32px,-26px) } }

/* scroll area */
.h-scroll { position: relative; z-index: 1; flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 52px 18px 96px; scrollbar-width: none; }
.h-scroll::-webkit-scrollbar { display: none; }

/* ----------------------------------------------------------------------------
   VERSION SWITCHER (floating, top of stage) — original vs refined header
   ---------------------------------------------------------------------------- */
.h-ctrl { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 200;
  display: flex; flex-direction: column; align-items: center; gap: 8px; }
.h-ctrl-row { display: flex; gap: 6px; padding: 6px; background: rgba(14,14,22,.74); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 999px; }
.h-verbtn { display: flex; align-items: center; gap: 9px; padding: 9px 18px; border-radius: 999px;
  color: #cfd3e0; font-size: 13.5px; font-weight: 700; font-family: "Inter", sans-serif; transition: .22s; white-space: nowrap; }
.h-verbtn:hover { color: #fff; background: rgba(255,255,255,.07); }
.h-verbtn.on { background: #2540FF; color: #fff; box-shadow: 0 6px 18px rgba(37,64,255,.5); }
.h-ctrl-cap { color: #8b90a3; font-size: 12.5px; font-family: "Inter", sans-serif; }

/* ----------------------------------------------------------------------------
   SHARED PRIMITIVES
   ---------------------------------------------------------------------------- */
.h-card-soft { background: var(--surface); border: 1.5px solid var(--border-2); border-radius: var(--radius); box-shadow: 0 4px 0 var(--border-2); }

.h-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1;
  background: color-mix(in oklab, var(--cat, var(--primary)) 24%, transparent); color: var(--text-hi); }

.h-cta { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 16px;
  border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: 16px; letter-spacing: var(--display-tracking); color: #fff; border: 1.5px solid var(--border-2);
  background: linear-gradient(180deg, var(--primary-2), var(--primary)); box-shadow: 0 4px 0 var(--border-2);
  transition: transform .12s ease, box-shadow .12s ease; position: relative; }
.h-cta:active { transform: translateY(4px); box-shadow: 0 0 0 var(--border-2); }
.h-cta-ghost { width: 100%; padding: 13px; border-radius: var(--radius-sm); font-weight: 700; color: var(--text-lo); background: transparent; font-family: var(--font-body); }

.display { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ----------------------------------------------------------------------------
   HEADER (shared bits)
   ---------------------------------------------------------------------------- */
.h-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.h-head-top { display: flex; align-items: center; justify-content: space-between; }
.h-greet { display: flex; align-items: center; gap: 12px; }
.h-greet-sm { font-size: 12px; color: var(--text-lo); font-weight: 600; }
.h-greet-name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 26px;
  color: var(--text-hi); letter-spacing: var(--display-tracking); line-height: 1; margin-top: 2px; }
.h-balance { display: flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: var(--radius-sm);
  background: var(--accent); border: 1.5px solid var(--border-2); color: var(--text-hi);
  font-family: var(--font-display); font-weight: var(--display-weight); }
.h-balance .coin { color: var(--text-hi); display: grid; place-items: center; }
.h-balance small { font-size: 11px; color: color-mix(in oklab, var(--text-hi) 70%, transparent); font-weight: 600; }

/* ===== v1 header (original): streak flame pill + XP level bar ===== */
.h-head-meta { display: flex; align-items: center; gap: 12px; }
.h-streak { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: var(--radius-sm);
  background: color-mix(in oklab, var(--accent) 14%, var(--surface)); border: 1.5px solid var(--border-2);
  color: var(--text-hi); font-weight: 800; font-size: 14px; }
.h-streak .flame { filter: drop-shadow(0 0 6px color-mix(in oklab, var(--accent) 60%, transparent)); }
.h-levelbar { flex: 1; }
.h-levelbar-top { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-lo); font-weight: 700; margin-bottom: 5px; }
.h-levelbar-top b { color: var(--text-hi); }
.h-track { height: 9px; border-radius: 999px; background: color-mix(in oklab, var(--text-lo) 22%, transparent); overflow: hidden; }
.h-track-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transition: width 1s cubic-bezier(.34,1.56,.4,1); }

/* ===== v2 header (refined): weekday streak strip + clean level tile ===== */
.h-head.b2 { gap: 12px; }
.b2-streak { display: flex; align-items: center; gap: 12px; background: var(--surface);
  border: 1.5px solid var(--border-2); border-radius: var(--radius-sm); box-shadow: 0 3px 0 var(--border-2); padding: 10px 12px; }
.b2-week { display: flex; gap: 6px; flex: 1; }
.b2-cell { flex: 1; height: 30px; display: grid; place-items: center; border-radius: 9px;
  font-family: var(--font-display); font-weight: 800; font-size: 11.5px; letter-spacing: 0;
  background: color-mix(in oklab, var(--text-lo) 13%, transparent); color: var(--text-lo);
  border: 1.5px solid transparent; transition: transform .25s cubic-bezier(.34,1.56,.4,1); }
.b2-cell.on { background: var(--correct); color: #fff; border-color: var(--border-2); }
.b2-streak-meta { display: flex; flex-direction: column; align-items: center; line-height: 1; min-width: 42px; padding-left: 2px; }
.b2-streak-meta b { font-family: var(--font-display); font-weight: 800; font-size: 25px; color: var(--text-hi); letter-spacing: -.03em; }
.b2-streak-meta span { font-size: 9.5px; font-weight: 800; color: var(--text-lo); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }

.b2-level { background: var(--surface); border: 1.5px solid var(--border-2); border-radius: var(--radius-sm);
  box-shadow: 0 3px 0 var(--border-2); padding: 11px 13px 13px; }
.b2-level-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.b2-rank { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--text-hi);
  letter-spacing: -.01em; text-transform: uppercase; display: flex; align-items: center; gap: 7px; }
.b2-rank-lvl { font-size: 10px; font-weight: 800; color: var(--primary); background: color-mix(in oklab, var(--primary) 12%, transparent);
  border: 1.5px solid color-mix(in oklab, var(--primary) 30%, transparent); padding: 2px 7px; border-radius: 7px; letter-spacing: .02em; }
.b2-next { font-size: 12px; font-weight: 700; color: var(--text-lo); }
.b2-next b { color: var(--text-hi); }
.b2-bar { height: 14px; border-radius: 8px; background: color-mix(in oklab, var(--text-lo) 13%, transparent);
  border: 1.5px solid var(--border-2); overflow: hidden; position: relative; }
.b2-bar-fill { height: 100%; background: var(--primary); transition: width 1s cubic-bezier(.34,1.4,.4,1); }
.b2-bar-fill::after { content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0 22px, rgba(0,0,0,.16) 22px 23.5px); }

/* progress dots */
.h-prog { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 14px; }
.h-prog-lbl { font-size: 13px; color: var(--text-lo); font-weight: 600; }
.h-prog-lbl b { color: var(--text-hi); }
.h-dots { display: flex; gap: 5px; }
.h-dot { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in oklab, var(--text-lo) 30%, transparent); transition: .3s; }
.h-dot.on { background: var(--primary); }
.h-dot.cur { width: 18px; border-radius: 999px; background: var(--accent); }

/* ----------------------------------------------------------------------------
   SWIPE DECK
   ---------------------------------------------------------------------------- */
.h-today-fit { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column;
  min-height: 0; padding: 52px 18px 104px; overflow: hidden; }
.h-deck { position: relative; flex: 1 1 auto; min-height: 218px; margin: 2px 0 4px; perspective: 1400px; }
.h-slot { position: absolute; inset: 0; transition: transform .4s cubic-bezier(.34,1.4,.4,1), opacity .4s; }
.h-cardwrap { position: absolute; inset: 0; will-change: transform; }
.h-card-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.h-card-inner.flipped { transform: rotateY(180deg); }

.h-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: var(--radius-card); overflow: hidden;
  background: var(--surface); border: 1.5px solid var(--border-2); box-shadow: 0 4px 0 var(--border-2), 0 18px 36px rgba(20,20,26,.10);
  display: flex; flex-direction: column; }

.h-card-media { position: relative; height: 222px; overflow: hidden;
  background: linear-gradient(150deg, var(--cat) 0%, color-mix(in oklab, var(--cat) 55%, #000) 100%); }
.h-card-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.h-card-media-tint { position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, color-mix(in oklab, var(--surface) 96%, transparent) 100%),
              linear-gradient(150deg, color-mix(in oklab,var(--cat) 50%, transparent), transparent 60%); }
.h-card-media-emoji { position: absolute; right: 14px; bottom: 12px; font-size: 40px; opacity: .9; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.h-card-pills { position: absolute; top: 14px; left: 14px; display: flex; gap: 7px; }
.h-card-pills .h-pill { background: rgba(0,0,0,.42); color: #fff; backdrop-filter: blur(6px); }

.h-card-body { flex: 1; padding: 18px 20px 20px; display: flex; flex-direction: column; }
.h-card-q { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 25px; line-height: 1.1;
  letter-spacing: var(--display-tracking); color: var(--text-hi); }
.h-card-ctx { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--text-lo); font-weight: 600; }
.h-card-odds { margin-top: auto; padding-top: 14px; }
.h-odds-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 7px; }
.h-odds-pct { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 26px; color: var(--text-hi); }
.h-odds-pct small { font-size: 12px; color: var(--text-lo); font-weight: 600; margin-left: 3px; }
.h-odds-lbl { font-size: 12px; color: var(--text-lo); font-weight: 600; }
.h-odds-track { height: 7px; border-radius: 999px; background: color-mix(in oklab, var(--wrong) 26%, transparent); overflow: hidden; }
.h-odds-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--accent)); }

/* card foot — v2 (refined): reward only, NO pre-answer crowd odds
   (showing Yes/No % before answering would anchor the user's call;
    the crowd split is revealed on the card back after they commit) */
.h-card-reward { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.h-card-reward-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-lo); }
.h-card-reward-hint svg { color: var(--text-lo); flex: 0 0 auto; }
.h-odds-reward { font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--text-hi);
  background: var(--accent); border: 1.5px solid var(--border-2); border-radius: 9px; padding: 5px 11px; box-shadow: 0 2px 0 var(--border-2); }

/* ===== v3 header: compact stat tiles (smaller than v2; balanced + readable) ===== */
.h-head.b3 { gap: 11px; }
.h-head.b3 .h-greet-name { font-size: 22px; }
.b3-chips { display: flex; gap: 8px; }
.b3-pill { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1.5px solid var(--border-2); box-shadow: 0 2px 0 var(--border-2); }
.b3-ic { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px; display: grid; place-items: center; font-size: 15px; border: 1.5px solid var(--border-2); }
.b3-ic.streak { background: color-mix(in oklab, var(--accent) 34%, var(--surface)); }
.b3-ic.level { background: color-mix(in oklab, var(--primary) 16%, var(--surface)); color: var(--primary); font-family: var(--font-display); font-weight: 800; font-size: 14px; }
.b3-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.b3-v { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--text-hi); letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b3-l { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-lo); display: flex; align-items: center; gap: 6px; }
.b3-mini { width: 42px; height: 5px; border-radius: 3px; background: color-mix(in oklab, var(--text-lo) 16%, transparent); overflow: hidden; flex: 0 0 auto; }
.b3-mini i { display: block; height: 100%; background: var(--primary); border-radius: 3px; }

/* v3 slim "today" progress — thin 10-segment bar + small count (replaces big dots) */
.h-prog3 { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; }
.h-prog3-bar { flex: 1; display: flex; gap: 3px; }
.h-seg { flex: 1; height: 6px; border-radius: 3px; background: color-mix(in oklab, var(--text-lo) 16%, transparent); transition: background .3s; }
.h-seg.on { background: var(--primary); }
.h-seg.cur { background: var(--accent); }
.h-prog3-lbl { font-family: var(--font-display); font-weight: 800; font-size: 12px; color: var(--text-lo); white-space: nowrap; }
.h-prog3-lbl b { color: var(--text-hi); }

/* ===== v3 card: reward badge on photo + vibrant category pill + clean footer ===== */
.h-card-badge { position: absolute; top: 14px; right: 14px; z-index: 4; font-family: var(--font-display); font-weight: 800; font-size: 14px;
  color: var(--text-hi); background: var(--accent); border: 1.5px solid var(--border-2); border-radius: 10px; padding: 6px 11px; box-shadow: 0 3px 0 var(--border-2); }
.h-face.v3 .h-card-pills .h-pill { background: #fff; color: var(--text-hi); border: 1.5px solid var(--border-2); backdrop-filter: none; }
.h-card-foot3 { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.h-card-foot3 .h-card-ctx { margin-top: 0; }
.h-card-hint { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--text-lo); white-space: nowrap; }
/* v3: lighter bottom fade on the photo (less of the image gets washed into the card) */
.h-face.v3 .h-card-media-tint {
  background: linear-gradient(180deg, transparent 60%, color-mix(in oklab, var(--surface) 68%, transparent) 100%),
              linear-gradient(150deg, color-mix(in oklab, var(--cat) 38%, transparent), transparent 60%); }

/* drag stamps */
.h-stamp { position: absolute; top: 26px; font-family: var(--font-display); font-weight: 800; font-size: 34px;
  letter-spacing: .04em; padding: 4px 16px; border-radius: 12px; border: 3px solid; opacity: 0; pointer-events: none; }
.h-stamp.yes { right: 22px; transform: rotate(12deg); color: var(--correct); border-color: var(--correct); }
.h-stamp.no  { left: 22px; transform: rotate(-12deg); color: var(--wrong); border-color: var(--wrong); }
.h-stamp.skip{ left: 50%; top: 14px; transform: translateX(-50%); color: var(--skip); border-color: var(--skip); font-size: 26px; }

/* edge glow during drag */
.h-cardwrap::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); pointer-events: none;
  opacity: var(--gi, 0); transition: opacity .15s; box-shadow: inset 0 0 0 3px var(--glowc, transparent), 0 0 40px var(--glowc, transparent); }

/* card back (reveal) */
.h-back { transform: rotateY(180deg); padding: 16px; gap: 10px; }
.h-back-scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 10px; }
.h-back .h-continue { flex: none; margin-top: 10px; }
.h-back-head { display: flex; justify-content: space-between; align-items: center; }
.h-yourpick { font-weight: 800; font-size: 13px; padding: 5px 11px; border-radius: 999px; }
.h-yourpick.yes { background: color-mix(in oklab,var(--correct) 20%,transparent); color: var(--correct); }
.h-yourpick.no  { background: color-mix(in oklab,var(--wrong) 20%,transparent); color: var(--wrong); }
.h-back-q { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 16px; line-height: 1.22; color: var(--text-hi); }
.h-dist { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.h-dist-row .lbl { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-lo); font-weight: 700; margin-bottom: 5px; }
.h-dist-row .lbl b { color: var(--text-hi); }
.h-dist-track { height: 12px; border-radius: 999px; background: color-mix(in oklab, var(--text-lo) 18%, transparent); overflow: hidden; }
.h-dist-fill { height: 100%; border-radius: 999px; background: var(--primary); transition: width .9s cubic-bezier(.34,1.4,.4,1); }
.h-dist-fill.peers { background: var(--accent); }
.h-continue { margin-top: auto; }

/* +N floaters */
.h-floats { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); pointer-events: none; z-index: 30; }
.h-float { position: absolute; left: 50%; transform: translateX(-50%); font-family: var(--font-display); font-weight: 800;
  font-size: 30px; color: var(--primary); text-shadow: 0 4px 16px rgba(37,64,255,.35);
  animation: floatup 1.3s ease-out forwards; white-space: nowrap; }
@keyframes floatup { 0%{ opacity:0; transform: translate(-50%,10px) scale(.6) } 18%{ opacity:1; transform: translate(-50%,-6px) scale(1.1) } 100%{ opacity:0; transform: translate(-50%,-90px) scale(1) } }

/* ----------------------------------------------------------------------------
   ACTION DOCK (No / Skip / Yes) — bento bold blocks  [you liked these]
   ---------------------------------------------------------------------------- */
.h-dock { margin-top: 18px; padding-top: 16px; display: flex; flex-direction: column; gap: 11px; }
.ad-skip { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 9px 20px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 13px; transition: transform .12s, box-shadow .12s;
  background: var(--surface); border: 1.5px solid var(--border-2); color: var(--text-hi); box-shadow: 0 3px 0 var(--border-2); }
.ad-skip:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 0 0 var(--border-2); }
.ad-row { display: flex; gap: 12px; }
.ad-pill { flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 17px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: var(--display-weight); font-size: 17px; letter-spacing: var(--display-tracking);
  position: relative; transition: transform .12s ease, box-shadow .12s ease; border: 1.5px solid var(--border-2); box-shadow: 0 4px 0 var(--border-2); }
.ad-pill:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 var(--border-2); }
.ad-pill:disabled { opacity: .5; }
.ad-pill.no  { background: #fff; color: var(--wrong); }
.ad-pill.yes { background: var(--correct); color: #fff; }

.h-sponsornote { text-align: center; font-size: 12px; color: var(--text-lo); margin-top: 12px; }
.h-link { color: var(--primary); font-weight: 700; }

/* ----------------------------------------------------------------------------
   CELEBRATION
   ---------------------------------------------------------------------------- */
.h-celebrate { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 14px; gap: 8px; position: relative; }
.h-cel-owl { margin-bottom: 6px; animation: pop .6s cubic-bezier(.34,1.7,.4,1); }
.h-cel-title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 27px; color: var(--text-hi); letter-spacing: var(--display-tracking); }
.h-cel-sub { font-size: 14px; color: var(--text-lo); max-width: 270px; line-height: 1.5; }
.h-cel-sub b { color: var(--text-hi); }
.h-cel-earn { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 16px 0 8px; padding: 18px 34px;
  border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--border-2); box-shadow: 0 4px 0 var(--border-2); }
.h-cel-earn span:first-child { font-size: 12px; color: var(--text-lo); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.h-cel-pts { font-family: var(--font-display); font-weight: 800; font-size: 40px; color: var(--primary); }
@keyframes pop { 0%{ transform: scale(0) } 100%{ transform: scale(1) } }

.h-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.h-conf { position: absolute; top: -16px; width: 9px; height: 14px; border-radius: 2px; animation: conffall linear forwards; }
@keyframes conffall { 0%{ transform: translateY(0) rotate(0); opacity: 1 } 100%{ transform: translateY(760px) rotate(540deg); opacity: 0 } }

/* ----------------------------------------------------------------------------
   TAB BAR
   ---------------------------------------------------------------------------- */
.h-tabs { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 50; display: flex; justify-content: space-around;
  padding: 9px 8px; border-radius: 26px; background: var(--surface); border: 1.5px solid var(--border-2); box-shadow: 0 4px 0 var(--border-2); }
.h-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 12px; border-radius: 16px;
  color: var(--text-lo); font-size: 10.5px; font-weight: 700; transition: .2s; position: relative; }
.h-tab span { opacity: .9; }
.h-tab.on { color: var(--primary); }
.h-tab.on::before { content: ""; position: absolute; inset: 0; border-radius: 16px; background: color-mix(in oklab, var(--primary) 14%, transparent); }
.h-tab svg { position: relative; }

/* ----------------------------------------------------------------------------
   SECTION HEADERS
   ---------------------------------------------------------------------------- */
.h-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 2px 12px; }
.h-sec-title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; color: var(--text-hi); letter-spacing: -.01em; text-transform: uppercase; }
.h-sec-sub { font-size: 12px; color: var(--text-lo); font-weight: 600; }

/* ----------------------------------------------------------------------------
   REWARDS
   ---------------------------------------------------------------------------- */
.h-wallet { padding: 22px; border-radius: var(--radius); position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--primary), var(--primary-2)); color: #fff; border: 1.5px solid var(--border-2); box-shadow: 0 4px 0 var(--border-2); }
.h-wallet::after { content:""; position:absolute; right:-30px; top:-30px; width:160px; height:160px; border-radius:50%;
  background: radial-gradient(circle, color-mix(in oklab,var(--accent) 70%, transparent), transparent 70%); opacity:.5; }
.h-wallet-lbl { font-size: 12px; font-weight: 700; opacity: .85; text-transform: uppercase; letter-spacing: .1em; }
.h-wallet-bal { font-family: var(--font-display); font-weight: 800; font-size: 46px; display: flex; align-items: center; gap: 10px; line-height: 1.1; }
.h-wallet-next { margin-top: 12px; font-size: 13px; opacity: .92; font-weight: 600; }
.h-wallet-track { height: 8px; border-radius: 999px; background: rgba(255,255,255,.28); margin-top: 8px; overflow: hidden; }
.h-wallet-track > div { height: 100%; background: var(--accent); border-radius: 999px; }

.h-filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0; margin: 16px 0 4px; scrollbar-width: none; }
.h-filters::-webkit-scrollbar { display: none; }
.h-filter { flex-shrink: 0; padding: 9px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700;
  background: var(--surface); border: 1.5px solid var(--border-2); color: var(--text-lo); transition: .2s; }
.h-filter.on { background: var(--primary); color: #fff; border: 1.5px solid var(--border-2); }

.h-coupons { display: flex; flex-direction: column; gap: 12px; }
.h-coupon { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius);
  background: var(--surface); border: 1.5px solid var(--border-2); box-shadow: 0 3px 0 var(--border-2); position: relative; overflow: hidden; }
.h-coupon::before { content:""; position: absolute; left:0; top:0; bottom:0; width: 5px; background: var(--cat, var(--primary)); }
.h-coupon-logo { width: 54px; height: 54px; border-radius: 16px; flex-shrink: 0; position: relative; display: grid; place-items: center; font-size: 26px;
  background: color-mix(in oklab, var(--cat, #fff) 45%, #fff); border: 1.5px solid var(--border-2); overflow: hidden; }
.h-coupon-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h-coupon-emoji { position: absolute; right: -1px; bottom: -1px; font-size: 15px; line-height: 1; z-index: 1;
  background: #fff; border: 1.5px solid var(--border-2); border-radius: 8px; padding: 1px 3px; }
.h-coupon-info { flex: 1; min-width: 0; }
.h-coupon-brand { font-size: 12px; color: var(--text-lo); font-weight: 700; }
.h-coupon-offer { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 16px; color: var(--text-hi); line-height: 1.2; }
.h-coupon-sub { font-size: 12px; color: var(--text-lo); margin-top: 3px; }
.h-coupon-cost { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.h-cost-pill { display: inline-flex; align-items: center; gap: 5px; padding: 8px 13px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
  background: var(--surface); color: var(--text-hi); border: 1.5px solid var(--border-2); box-shadow: 0 2px 0 var(--border-2); transition: transform .12s, box-shadow .12s; }
.h-cost-pill:active:not(.locked) { transform: translateY(2px); box-shadow: 0 0 0 var(--border-2); }
.h-cost-pill.locked { opacity: .55; }
.h-cost-pill.afford { background: var(--correct); color: #fff; }
.h-coupon-lock { font-size: 11px; color: var(--text-lo); font-weight: 600; }

.h-drops { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.h-drops::-webkit-scrollbar { display: none; }
.h-drop { flex: 0 0 calc(50% - 20px); border-radius: var(--radius); overflow: hidden; position: relative;
  background: var(--surface); border: 1.5px solid var(--border-2); box-shadow: 0 3px 0 var(--border-2); }
.h-drop-media { height: 110px; position: relative; background: linear-gradient(140deg,var(--cat,var(--primary)), color-mix(in oklab,var(--cat,var(--primary)) 50%,#000)); }
.h-drop-media img { width:100%; height:100%; object-fit: cover; }
.h-drop-left { position: absolute; top: 9px; right: 9px; padding: 4px 9px; border-radius: 999px; background: var(--wrong); color: #fff; font-size: 11px; font-weight: 800; }
.h-drop-body { padding: 12px 14px 14px; }
.h-drop-offer { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 15px; color: var(--text-hi); line-height: 1.2; }
.h-drop-sub { font-size: 11px; color: var(--text-lo); margin: 4px 0 10px; }
.h-drop-foot { display: flex; align-items: center; justify-content: space-between; }
.h-drop-ends { font-size: 11px; color: var(--wrong); font-weight: 700; }

/* redeem ceremony sheet */
.h-sheet-scrim { position: absolute; inset: 0; z-index: 100; background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0 } }
.h-sheet { width: 100%; background: var(--bg-2); border-radius: 30px 30px 0 0; padding: 24px 22px calc(26px + env(safe-area-inset-bottom)); border-top: 1.5px solid var(--border-2);
  animation: sheetup .4s cubic-bezier(.34,1.4,.4,1); text-align: center; position: relative; max-height: 92%; overflow: hidden auto; scrollbar-width: none; }
.h-sheet::-webkit-scrollbar { display: none; }
@keyframes sheetup { from { transform: translateY(100%) } }
.h-voucher { margin: 4px auto 18px; max-width: 280px; background: var(--surface); border: 1.5px solid var(--border-2); border-radius: 20px; padding: 22px; position: relative; box-shadow: var(--shadow-card); }
.h-voucher::before, .h-voucher::after { content:""; position: absolute; top: 50%; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-2); transform: translateY(-50%); }
.h-voucher::before { left: -12px; } .h-voucher::after { right: -12px; }
.h-voucher-qr { width: 130px; height: 130px; margin: 14px auto 0; border-radius: 12px;
  background: repeating-conic-gradient(var(--text-hi) 0% 25%, transparent 0% 50%) 0 0/16px 16px; opacity: .85; }
.h-voucher-dash { border: none; border-top: 2px dashed var(--border-2); margin: 16px 0; }

/* "tap for details" affordance on a drop's media */
.h-drop-info { position: absolute; right: 8px; bottom: 8px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(20,20,26,.5); color: #fff; display: grid; place-items: center; backdrop-filter: blur(2px); }
.h-drop, .h-coupon { cursor: pointer; }

/* ----------------------------------------------------------------------------
   REWARD DETAILS SHEET — tap a reward: what it is, expiration, the details
   ---------------------------------------------------------------------------- */
.rd-sheet { width: 100%; background: var(--surface); border-radius: 28px 28px 0 0; border-top: 1.5px solid var(--border-2);
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); position: relative; max-height: 92%; overflow: hidden auto;
  scrollbar-width: none; animation: sheetup .42s cubic-bezier(.34,1.4,.4,1); box-shadow: 0 -12px 44px rgba(20,20,26,.24); }
.rd-sheet::-webkit-scrollbar { display: none; }
.rd-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface-2); border: 1.5px solid var(--border); color: var(--text-hi); display: grid; place-items: center; }
.rd-close:active { transform: scale(.92); }
.rd-hero { position: relative; height: 150px; border-radius: 18px; overflow: hidden; border: 1.5px solid var(--border-2);
  background: linear-gradient(140deg, var(--cat,var(--primary)), color-mix(in oklab, var(--cat,var(--primary)) 55%, #000));
  display: grid; place-items: center; margin: 4px 0 14px; }
.rd-hero-img { width: 100%; height: 100%; object-fit: cover; }
.rd-hero-logo { font-size: 62px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
.rd-hero-cat { position: absolute; left: 12px; bottom: 12px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 800;
  background: var(--surface); color: var(--text-hi); border: 1.5px solid var(--border-2); box-shadow: var(--shadow-soft); }
.rd-brand { font-size: 12px; font-weight: 700; color: var(--text-lo); text-transform: uppercase; letter-spacing: .06em; }
.rd-offer { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 25px; line-height: 1.12; color: var(--text-hi);
  letter-spacing: var(--display-tracking); margin: 3px 0 8px; }
.rd-what { font-size: 14px; line-height: 1.5; color: var(--text-lo); }
.rd-meta { margin: 16px 0 2px; border: 1.5px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.rd-meta-row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.rd-meta-row:last-child { border-bottom: none; }
.rd-meta-ic { color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.rd-meta-lbl { font-size: 13px; font-weight: 700; color: var(--text-hi); width: 58px; flex-shrink: 0; }
.rd-meta-val { font-size: 13px; color: var(--text-lo); font-weight: 600; text-align: right; margin-left: auto; }
.rd-terms-title { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text-hi); margin: 18px 0 8px; }
.rd-terms { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rd-terms li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-lo); line-height: 1.4; }
.rd-terms li svg { color: var(--correct); flex-shrink: 0; margin-top: 2px; }
.rd-foot { position: sticky; bottom: 0; display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 0 2px;
  background: linear-gradient(to top, var(--surface) 72%, rgba(255,255,255,0)); }
.rd-cost { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-hi); white-space: nowrap; }
.rd-cost svg { color: var(--accent); }
.rd-cost b { font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.rd-redeem { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 15px 16px; border-radius: 16px;
  background: var(--primary); color: var(--on-primary); font-family: var(--font-display); font-weight: 800; font-size: 15px;
  border: 1.5px solid var(--border-2); box-shadow: var(--shadow-btn); }
.rd-redeem:active:not(.locked) { transform: translateY(3px); box-shadow: 0 1px 0 #1A2BB0; }
.rd-redeem.locked { background: var(--surface-2); color: var(--text-lo); box-shadow: var(--shadow-soft); }

/* ----------------------------------------------------------------------------
   REDEEM CELEBRATION — centered "ticket pop" (distinct color + pop/stamp anim)
   ---------------------------------------------------------------------------- */
.rdm-scrim { position: absolute; inset: 0; z-index: 120; background: rgba(10,12,40,.62); backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; animation: fade .25s ease; }
.rdm-pop { width: 100%; max-width: 320px; display: flex; flex-direction: column; align-items: center; gap: 16px;
  animation: rdmPop .55s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes rdmPop { 0% { opacity: 0; transform: translateY(28px) scale(.7); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.rdm-ticket { position: relative; width: 100%; border-radius: 24px; overflow: hidden; border: 1.5px solid var(--border-2);
  box-shadow: 0 16px 44px rgba(10,12,40,.5), 0 4px 0 var(--border-2); }
.rdm-top { background: linear-gradient(150deg, var(--primary-2), var(--primary) 42%, #1224B8 92%); color: #fff;
  padding: 22px 20px 22px; display: flex; align-items: center; gap: 14px; }
.rdm-owl { flex-shrink: 0; animation: pop .6s cubic-bezier(.34,1.7,.4,1) .12s both; }
.rdm-top-txt { min-width: 0; }
.rdm-kicker { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.rdm-offer { font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 1.15; letter-spacing: var(--display-tracking); margin: 3px 0 4px; }
.rdm-brand { font-size: 12.5px; opacity: .88; }
.rdm-status { position: absolute; top: 14px; right: 14px; z-index: 4; display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-display); font-weight: 800; font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-hi); background: var(--accent); border: 1.5px solid var(--border-2); border-radius: 999px; padding: 4px 10px;
  box-shadow: 0 2px 0 var(--border-2); animation: pop .5s cubic-bezier(.3,1.6,.5,1) .3s both; }
.rdm-owl { position: relative; flex-shrink: 0; animation: pop .6s cubic-bezier(.34,1.7,.4,1) .12s both; }
.rdm-owl-badge { position: absolute; right: -4px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--correct); color: #fff; display: grid; place-items: center; border: 2.5px solid var(--surface); }
.rdm-perf { display: flex; align-items: center; justify-content: center; gap: 8px; height: 22px; background: var(--surface); }
.rdm-perf span { width: 7px; height: 7px; border-radius: 50%; background: var(--bg-2); box-shadow: inset 0 1px 1px rgba(0,0,0,.12); }
.rdm-bottom { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; background: var(--surface); padding: 18px 20px 22px; }
.rdm-howto { font-size: 13.5px; color: var(--text-lo); font-weight: 600; }
.rdm-howto b { color: var(--text-hi); font-weight: 800; }
.rdm-codebox { width: 100%; border: 2px dashed var(--border-2); border-radius: 16px; padding: 12px 14px;
  background: color-mix(in oklab, var(--accent) 14%, #fff); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.rdm-code-lbl { font-size: 10.5px; font-weight: 800; color: var(--text-lo); text-transform: uppercase; letter-spacing: .1em; }
.rdm-code { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--text-hi); letter-spacing: .01em; white-space: nowrap; }
.rdm-qr { width: 156px; height: 156px; border-radius: 14px; border: 1.5px solid var(--border-2);
  background: #fff; padding: 9px; box-shadow: var(--shadow-soft); object-fit: contain; }
.rdm-hint { font-size: 12.5px; color: var(--correct); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; line-height: 1; }
.rdm-hint span { line-height: 1; }
.rdm-done { width: 100%; max-width: 320px; padding: 15px; border-radius: 16px; background: var(--accent); color: var(--text-hi);
  font-family: var(--font-display); font-weight: 800; font-size: 15px; border: 1.5px solid var(--border-2); box-shadow: 0 4px 0 #C99A12; }
.rdm-done:active { transform: translateY(3px); box-shadow: 0 1px 0 #C99A12; }

/* ----------------------------------------------------------------------------
   PROFILE
   ---------------------------------------------------------------------------- */
.h-pf-hero { position: relative; text-align: center; padding: 18px 0 8px; }
.h-pf-avatarwrap { position: relative; width: 104px; height: 104px; margin: 0 auto 12px; }
.h-pf-avatar { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface);
  box-shadow: 0 0 0 4px var(--primary), var(--shadow-soft); background: var(--surface-2); }
.h-pf-mascot { position: absolute; right: -8px; bottom: -6px; background: var(--surface); border-radius: 50%; padding: 3px; box-shadow: var(--shadow-soft); }
.h-pf-name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 25px; color: var(--text-hi); }
.h-pf-handle { font-size: 13px; color: var(--text-lo); margin-top: 2px; }
.h-pf-rankpill { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 8px 16px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 800; font-size: 14px; color: #fff; background: linear-gradient(180deg, var(--primary-2), var(--primary)); border: 1.5px solid var(--border-2); box-shadow: 0 3px 0 var(--border-2); }

.h-pf-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 18px; }
.h-stat { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--border-2); box-shadow: 0 3px 0 var(--border-2); }
.h-stat-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 10px;
  background: color-mix(in oklab, var(--sc, var(--primary)) 18%, transparent); color: var(--sc, var(--primary)); }
.h-stat-val { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--text-hi); line-height: 1; }
.h-stat-lbl { font-size: 12px; color: var(--text-lo); font-weight: 600; margin-top: 4px; }

.h-edge { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.h-edge + .h-edge { border-top: 1px solid var(--border); }
.h-edge-cat { width: 96px; font-size: 13px; font-weight: 700; color: var(--text-hi); display: flex; align-items: center; gap: 6px; }
.h-edge-track { flex: 1; height: 10px; border-radius: 999px; background: color-mix(in oklab,var(--text-lo) 18%, transparent); overflow: hidden; }
.h-edge-fill { height: 100%; border-radius: 999px; background: var(--cat, var(--primary)); transition: width 1s cubic-bezier(.34,1.4,.4,1); }
.h-edge-pct { width: 38px; text-align: right; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text-hi); }

.h-ranks { display: flex; gap: 9px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.h-ranks::-webkit-scrollbar { display: none; }
.h-rank { flex-shrink: 0; width: 92px; padding: 14px 8px; border-radius: var(--radius-sm); text-align: center; background: var(--surface); border: 1.5px solid var(--border-2); box-shadow: 0 3px 0 var(--border-2); }
.h-rank.on { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary) inset; }
.h-rank.done { opacity: .55; }
.h-rank-emoji { font-size: 26px; }
.h-rank-name { font-size: 12px; font-weight: 700; color: var(--text-hi); margin-top: 6px; }
.h-rank-tag { font-size: 10px; font-weight: 700; color: var(--primary); margin-top: 2px; }

.h-badges { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.h-badge { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--radius-sm); background: var(--surface); border: 1.5px solid var(--border-2); box-shadow: 0 3px 0 var(--border-2); text-align: center; padding: 8px; }
.h-badge.off { opacity: .4; filter: grayscale(1); }
.h-badge-emoji { font-size: 30px; }
.h-badge-lbl { font-size: 10.5px; font-weight: 700; color: var(--text-lo); line-height: 1.2; }

.h-settings { padding: 4px 0; }
.h-setrow { display: flex; align-items: center; gap: 13px; width: 100%; padding: 14px 4px; text-align: left; }
.h-setrow + .h-setrow { border-top: 1px solid var(--border); }
.h-setic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in oklab,var(--primary) 12%, transparent); color: var(--primary); }
.h-setlbl { flex: 1; font-weight: 600; color: var(--text-hi); font-size: 14px; }
.h-setval { font-size: 12px; color: var(--text-lo); font-weight: 600; }
.h-pf-foot { text-align: center; font-size: 11px; color: var(--text-lo); margin: 22px 10px 0; line-height: 1.5; }

/* ----------------------------------------------------------------------------
   ONBOARDING / SPLASH
   ---------------------------------------------------------------------------- */
.h-ob { position: absolute; inset: 0; z-index: 70; display: flex; flex-direction: column; padding: 40px 26px 26px; background: var(--bg);
  text-align: center; overflow-y: auto; scrollbar-width: none; }
.h-ob::-webkit-scrollbar { display: none; }
.h-ob-hero { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; }
.h-ob-logo { display: flex; align-items: center; gap: 10px; }
.h-ob-word { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: var(--display-tracking); color: var(--text-hi); }
.h-ob-title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 30px; line-height: 1.08; color: var(--text-hi); letter-spacing: var(--display-tracking); }
.h-ob-title .hl { color: var(--primary); }
.h-ob-sub { font-size: 14px; color: var(--text-lo); line-height: 1.5; max-width: 280px; }
.h-ob-steps { display: flex; flex-direction: column; gap: 9px; margin: 2px 0 14px; text-align: left; }
.h-ob-step { display: flex; align-items: center; gap: 13px; padding: 11px 14px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--border-2); box-shadow: 0 3px 0 var(--border-2); }
.h-ob-step-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  background: color-mix(in oklab, var(--sc,var(--primary)) 18%, transparent); color: var(--sc,var(--primary)); }
.h-ob-step-t { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 16px; color: var(--text-hi); }
.h-ob-step-s { font-size: 12.5px; color: var(--text-lo); margin-top: 2px; line-height: 1.4; }

/* entrance stagger */
.is-anim .stagger > * { opacity: 0; transform: translateY(14px); animation: rise .5s cubic-bezier(.2,.7,.3,1) forwards; }
.is-anim .stagger > *:nth-child(1){ animation-delay: .04s } .is-anim .stagger > *:nth-child(2){ animation-delay: .1s }
.is-anim .stagger > *:nth-child(3){ animation-delay: .16s } .is-anim .stagger > *:nth-child(4){ animation-delay: .22s }
.is-anim .stagger > *:nth-child(5){ animation-delay: .28s } .is-anim .stagger > *:nth-child(6){ animation-delay: .34s }
@keyframes rise { to { opacity: 1; transform: none } }

/* owl mascot */
.hux { display: inline-block; position: relative; line-height: 0; }
.hux svg { display: block; overflow: visible; }
.hux--blink .eye-pupil { animation: blink 4.5s infinite; transform-origin: center; }
@keyframes blink { 0%,94%,100%{ transform: scaleY(1) } 97%{ transform: scaleY(.1) } }
.hux--look { animation: look 6s ease-in-out infinite; }
@keyframes look { 0%,100%{ transform: rotate(0) } 25%{ transform: rotate(-7deg) } 60%{ transform: rotate(5deg) } }
.hux-think { position: absolute; top: -6px; right: -10px; font-family: var(--font-display); font-weight: 800; font-size: 18px;
  color: var(--primary); animation: thinkbob 2.4s ease-in-out infinite; }
@keyframes thinkbob { 0%,100%{ transform: translateY(0); opacity: .6 } 50%{ transform: translateY(-5px); opacity: 1 } }
.eye-flash { animation: eyeflash .7s ease; }
@keyframes eyeflash { 0%{ filter: none } 30%{ filter: drop-shadow(0 0 10px var(--correct)) } 100%{ filter: none } }

@media (prefers-reduced-motion: reduce) { * { animation-duration: .001s !important; transition-duration: .001s !important; } }

/* ----------------------------------------------------------------------------
   APP MODE — when bundled into the APK, fill the device screen (no mockup frame)
   ---------------------------------------------------------------------------- */
.h-appmode .h-stage { padding: 0; min-height: 100dvh; background: var(--bg); place-items: stretch; }
.h-appmode .h-phone { width: 100%; height: 100dvh; border-radius: 0; box-shadow: none; }
.h-appmode .h-notch { display: none; }
/* respect the device's status bar / gesture-nav insets */
.h-appmode .h-ob { padding-top: calc(env(safe-area-inset-top) + 18px); padding-bottom: calc(env(safe-area-inset-bottom) + 22px); }
.h-appmode .h-today-fit { padding-top: calc(env(safe-area-inset-top) + 14px); }
.h-appmode .h-scroll { padding-top: calc(env(safe-area-inset-top) + 14px); padding-bottom: calc(env(safe-area-inset-bottom) + 92px); }
.h-appmode .h-tabs { bottom: calc(env(safe-area-inset-bottom) + 12px); }
@supports not (height: 100dvh) {
  .h-appmode .h-stage { min-height: 100vh; }
  .h-appmode .h-phone { height: 100vh; }
}

/* ----------------------------------------------------------------------------
   ADDED: toast · claimed-coupon wallet · redeem actions (download)
   ---------------------------------------------------------------------------- */
.h-toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 60;
  display: inline-flex; align-items: center; gap: 8px; background: var(--text-hi); color: #fff;
  padding: 11px 16px; border-radius: 12px; font-weight: 700; font-size: 13.5px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3); max-width: 86%; animation: h-toast-in .28s ease; }
@keyframes h-toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

.h-claimed { display: flex; flex-direction: column; gap: 10px; }
.h-claim { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface);
  border: 1.5px solid var(--border-2); border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); cursor: pointer; }
.h-claim:active { transform: translateY(1px); }
.h-claim-logo { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-size: 22px;
  background: color-mix(in oklab, var(--cat, var(--accent)) 55%, var(--surface)); border: 1.5px solid var(--border-2); flex: none; }
.h-claim-info { flex: 1; min-width: 0; }
.h-claim-offer { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--text-hi);
  letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-claim-code { font-size: 12.5px; font-weight: 700; color: var(--text-lo); letter-spacing: .04em; }
.h-claim-dl { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: var(--accent); border: 1.5px solid var(--border-2); box-shadow: 0 3px 0 var(--border-2); color: var(--text-hi); }
.h-claim-dl:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--border-2); }

.rdm-actions { display: flex; gap: 10px; width: 100%; max-width: 320px; }
.rdm-actions .rdm-done { flex: 1; margin: 0; max-width: none; }
.rdm-dl { flex: 1; padding: 15px; border-radius: 16px; background: var(--surface); color: var(--text-hi);
  border: 1.5px solid var(--border-2); box-shadow: var(--shadow-soft); font-family: var(--font-display); font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.rdm-dl:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--border-2); }

/* notifications bell + inbox + streak-save */
.h-head-right { display: flex; align-items: center; gap: 8px; }
.h-bell { position: relative; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1.5px solid var(--border-2); box-shadow: var(--shadow-soft); color: var(--text-hi); }
.h-bell:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--border-2); }
.h-bell-dot { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
  background: var(--wrong); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 1.5px solid var(--surface); }
.h-notifs { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.h-notif { display: flex; gap: 12px; padding: 12px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface-2); text-align: left; }
.h-notif-ic { font-size: 22px; flex: none; }
.h-notif-body { flex: 1; min-width: 0; }
.h-notif-title { font-family: var(--font-display); font-weight: 800; font-size: 14.5px; color: var(--text-hi); letter-spacing: -.02em; }
.h-notif-sub { font-size: 12.5px; color: var(--text-lo); margin-top: 2px; }
.h-notif-act { margin-top: 9px; padding: 8px 14px; border-radius: 10px; background: var(--accent); border: 1.5px solid var(--border-2);
  box-shadow: 0 3px 0 var(--border-2); font-family: var(--font-display); font-weight: 800; font-size: 12.5px; color: var(--text-hi); }
.h-notif-act:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--border-2); }
.h-notif-done { margin-top: 8px; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--correct); }

/* clickable Today header pills (reset button defaults) */
.b3-pill { font: inherit; cursor: pointer; text-align: left; }

/* profile redesign: rank card · dense stats · note · history · smaller badges */
.h-pf-rankcard { width: 100%; display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 14px;
  background: var(--surface); border: 1.5px solid var(--border-2); border-radius: 16px; box-shadow: var(--shadow-card); text-align: left; cursor: pointer; color: var(--text-hi); }
.h-pf-rankcard:active { transform: translateY(2px); }
.h-pf-rank-emoji { font-size: 30px; flex: none; }
.h-pf-rank-mid { flex: 1; min-width: 0; }
.h-pf-rank-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.h-pf-rank-top b { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--text-hi); letter-spacing: -.02em; }
.h-pf-rank-top span { font-size: 11.5px; color: var(--text-lo); font-weight: 600; white-space: nowrap; }
.h-pf-rank-bar { height: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; margin-top: 7px; }
.h-pf-rank-bar i { display: block; height: 100%; background: var(--primary); }

.h-pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.h-pf-stat { background: var(--surface); border: 1.5px solid var(--border-2); border-radius: 14px; box-shadow: var(--shadow-soft); padding: 11px 6px; text-align: center; }
.h-pf-stat-v { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--text-hi); letter-spacing: -.03em; line-height: 1; }
.h-pf-stat-v.hl { color: var(--primary); }
.h-pf-stat-l { font-size: 10.5px; color: var(--text-lo); font-weight: 600; margin-top: 3px; }
.h-pf-note { font-size: 12.5px; color: var(--text-lo); line-height: 1.55; margin-top: 12px; padding: 0 2px; }
.h-pf-note b { color: var(--text-hi); font-weight: 800; }

.h-hist { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-top: 1px solid var(--border); }
.h-hist:first-child { border-top: none; }
.h-hist-dot { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; }
.h-hist-dot.ok { background: var(--correct); }
.h-hist-dot.no { background: var(--skip); }
.h-hist-body { flex: 1; min-width: 0; }
.h-hist-q { font-size: 13px; font-weight: 600; color: var(--text-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-hist-meta { font-size: 11px; color: var(--text-lo); }
.h-hist-meta b { color: var(--text-hi); }
.h-hist-pts { font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--correct); flex: none; }
.h-pf-empty { font-size: 13px; color: var(--text-lo); padding: 14px 4px; text-align: center; line-height: 1.5; }
.h-pf-empty b { color: var(--text-hi); }

.h-badges.small { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.h-badges.small .h-badge { aspect-ratio: auto; padding: 11px 4px; gap: 3px; }
.h-badges.small .h-badge-emoji { font-size: 22px; }
.h-badges.small .h-badge-lbl { font-size: 9.5px; }

/* history scroll block */
.h-histwrap { max-height: 232px; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }

/* reveal resolution (base + correct bonus) */
.h-resolve { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 3px;
  padding: 9px 13px; border-radius: 12px; border: 1.5px solid var(--border-2); }
.h-resolve.win { background: color-mix(in oklab, var(--correct) 16%, var(--surface)); }
.h-resolve.lose { background: var(--surface-2); }
.h-resolve-txt { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13px; color: var(--text-hi); }
.h-resolve.win .h-resolve-txt { color: var(--correct); }
.h-resolve.lose .h-resolve-txt { color: var(--text-lo); }
.h-resolve-pts { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--text-hi); }
.h-resolve-detail { font-size: 11.5px; color: var(--text-lo); font-weight: 600; margin-bottom: 8px; }

/* ----------------------------------------------------------------------------
   ONBOARDING v2 — interactive 3-step carousel with mini animations
   ---------------------------------------------------------------------------- */
.h-ob2 { height: 100%; display: flex; flex-direction: column; padding: 18px 22px calc(env(safe-area-inset-bottom) + 18px); }
.h-ob2-top { display: flex; align-items: center; justify-content: space-between; }
.h-ob2-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -.03em; color: var(--text-hi); }
.h-ob2-skip { font-size: 13.5px; font-weight: 700; color: var(--text-lo); padding: 6px 10px; min-width: 46px; text-align: right; }
.h-ob2-mark { font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: -.03em; color: var(--text-hi); }
.h-ob2-eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--primary);
  background: color-mix(in oklab, var(--primary) 13%, var(--surface)); border: 1.5px solid var(--border-2); border-radius: 999px;
  padding: 3px 11px; display: inline-block; box-shadow: 0 2px 0 var(--border-2); }
.h-ob2-stage { flex: 1; display: grid; place-items: center; position: relative; overflow: hidden; min-height: 220px;
  animation: obIn .5s cubic-bezier(.2,1,.3,1) both; }
@keyframes obIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.h-ob2-copy { animation: obIn .5s cubic-bezier(.2,1,.3,1) .06s both; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; margin: 4px 0 2px; }
.h-ob2-kick { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.h-ob2-title { font-family: var(--font-display); font-weight: 800; font-size: 27px; letter-spacing: -.035em; margin: 4px 0 6px; color: var(--text-hi); }
.h-ob2-text { font-size: 14.5px; line-height: 1.5; color: var(--text-lo); }
.h-ob2-dots { display: flex; gap: 7px; justify-content: center; margin: 18px 0 14px; }
.h-ob2-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--border); border: none; padding: 0; transition: .25s; }
.h-ob2-dot.on { width: 22px; background: var(--primary); }
.h-ob2-actions { display: flex; gap: 10px; }
.h-ob2-actions .h-cta { flex: 1; }
.h-ob2-back { width: auto; padding: 13px 18px; flex: none; }

.oba { position: relative; width: 100%; height: 100%; min-height: 240px; display: grid; place-items: center; }
.oba-static { font-size: 84px; }
.oba-card { position: absolute; width: 210px; height: 198px; border-radius: 20px; border: 1.5px solid var(--border-2); background: var(--surface); box-shadow: var(--shadow-card); overflow: hidden; }
.oba-card.back { transform: rotate(-6deg) translateY(10px) scale(.95); background: var(--surface-2); }
.oba-card.front { padding: 0; display: flex; flex-direction: column; animation: obaSwipe 3.6s ease-in-out infinite; }
.oba-card-img { height: 104px; background: var(--surface-2); }
.oba-card-img img { width: 100%; height: 100%; object-fit: cover; }
.oba-card-b { padding: 12px 14px; }
@keyframes obaSwipe { 0%,16% { transform: rotate(0) translateX(0); opacity: 1; } 34% { transform: rotate(10deg) translateX(50px); opacity: 1; }
  46% { transform: rotate(12deg) translateX(150px); opacity: 0; } 47% { transform: rotate(-12deg) translateX(-150px); opacity: 0; } 64%,100% { transform: rotate(0) translateX(0); opacity: 1; } }
.oba-cat { display: inline-block; font-size: 11px; font-weight: 800; background: var(--cat-local); border: 1.5px solid var(--border-2); border-radius: 999px; padding: 3px 9px; }
.oba-q { font-family: var(--font-display); font-weight: 800; font-size: 17px; line-height: 1.15; letter-spacing: -.02em; margin-top: 12px; color: var(--text-hi); }
.oba-card-tint { position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none; border-radius: 19px; }
.oba-card-tint.yes { background: color-mix(in oklab, var(--correct) 30%, transparent); animation: obaStampYes 5.4s ease-in-out infinite; }
.oba-card-tint.no { background: color-mix(in oklab, var(--wrong) 28%, transparent); animation: obaStampNo 5.4s ease-in-out infinite; }
.oba-stamp { position: absolute; top: 16px; z-index: 2; font-family: var(--font-display); font-weight: 800; font-size: 26px; padding: 5px 14px; border-radius: 11px; border: 3.5px solid; opacity: 0; background: rgba(255,255,255,.86); }
.oba-stamp.yes { right: 12px; color: var(--correct); border-color: var(--correct); transform: rotate(12deg); animation: obaYes 3.6s ease-in-out infinite; }
.oba-stamp.no { left: 12px; color: var(--wrong); border-color: var(--wrong); transform: rotate(-12deg); }
@keyframes obaYes { 0%,26% { opacity: 0; } 34%,44% { opacity: 1; } 50%,100% { opacity: 0; } }

.oba-earn .oba-coin { animation: obaBob 2.2s ease-in-out infinite; }
@keyframes obaBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.oba-pop { position: absolute; font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--correct);
  background: var(--surface); border: 1.5px solid var(--border-2); border-radius: 999px; padding: 4px 12px; box-shadow: var(--shadow-soft); opacity: 0; }
.oba-pop.a { left: 14px; top: 78px; animation: obaRise 2.8s ease-in-out infinite; }
.oba-pop.b { right: 8px; top: 54px; color: var(--primary); animation: obaRise 2.8s ease-in-out .9s infinite; }
.oba-pop.c { left: 70px; top: 26px; animation: obaRise 2.8s ease-in-out 1.7s infinite; }
@keyframes obaRise { 0% { opacity: 0; transform: translateY(16px) scale(.8); } 30% { opacity: 1; transform: translateY(0) scale(1); } 72% { opacity: 1; } 100% { opacity: 0; transform: translateY(-18px); } }

.oba-reward .oba-ticket { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1.5px solid var(--border-2);
  border-radius: 18px; padding: 18px 22px; box-shadow: var(--shadow-card); animation: obaPop 2.6s ease-in-out infinite; }
@keyframes obaPop { 0%,100% { transform: scale(1) rotate(-1.5deg); } 50% { transform: scale(1.05) rotate(1.5deg); } }
.oba-ticket-ic { font-size: 40px; }
.oba-ticket-t { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--text-hi); letter-spacing: -.02em; }
.oba-ticket-s { font-size: 13px; color: var(--text-lo); font-weight: 600; }

/* week strip (streak popup) */
.h-weekstrip { display: flex; gap: 6px; margin: 6px 0 2px; }
.h-weekcell { flex: 1; aspect-ratio: 1; max-width: 42px; display: grid; place-items: center; border-radius: 10px;
  border: 1.5px solid var(--border-2); background: var(--surface-2); color: var(--text-lo); font-weight: 800; font-size: 12px; }
.h-weekcell.on { background: var(--primary); color: #fff; box-shadow: 0 2px 0 var(--border-2); }

/* welcome page visual upgrade — distinct background + colorful stage + lively owl */
.h-ob2 { background: radial-gradient(135% 90% at 50% -8%, color-mix(in oklab, var(--primary) 20%, var(--bg)) 0%, var(--bg) 58%); position: relative; z-index: 2; }
.h-ob2-brand .hux { animation: obaBob 2.6s ease-in-out infinite; }
/* open stage — no card; the owl + elements float on the page background */
.h-ob2-stage { background: none; border: none; box-shadow: none; margin: 0; padding: 0; }
.h-ob2-title { font-size: 27px; max-width: 320px; }
.h-ob2-text { font-size: 15px; color: var(--text-hi); opacity: .72; }

/* segmented step progress */
.h-ob2-prog { display: flex; gap: 8px; justify-content: center; margin: 8px 0 14px; }
.h-ob2-seg { width: 42px; height: 6px; border-radius: 999px; background: color-mix(in oklab, var(--text-hi) 14%, transparent); transition: .3s; cursor: pointer; }
.h-ob2-seg.on { width: 52px; background: var(--primary); }

/* step 1 — owl hero + HUNCH wordmark */
.oba-intro-stack { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.oba-wordmark { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -.04em; color: var(--text-hi); }

/* step 2 — finger swipe demo (right = YES, left = NO) + tap buttons + peeking owl */
.oba-swipe .oba-card.front { animation: obaSwipe2 5.4s ease-in-out infinite; }
@keyframes obaSwipe2 {
  0%,8% { transform: translateX(0) rotate(0); } 18% { transform: translateX(64px) rotate(11deg); }
  26% { transform: translateX(64px) rotate(11deg); } 36%,46% { transform: translateX(0) rotate(0); }
  56% { transform: translateX(-64px) rotate(-11deg); } 64% { transform: translateX(-64px) rotate(-11deg); }
  74%,100% { transform: translateX(0) rotate(0); } }
.oba-swipe .oba-stamp.yes { animation: obaStampYes 5.4s ease-in-out infinite; }
.oba-swipe .oba-stamp.no  { animation: obaStampNo 5.4s ease-in-out infinite; }
@keyframes obaStampYes { 0%,12% { opacity: 0; } 18%,30% { opacity: 1; } 34%,100% { opacity: 0; } }
@keyframes obaStampNo  { 0%,50% { opacity: 0; } 56%,68% { opacity: 1; } 72%,100% { opacity: 0; } }
.oba-finger { position: absolute; z-index: 3; font-size: 34px; left: 50%; top: 58%; animation: obaFinger 5.4s ease-in-out infinite; }
@keyframes obaFinger {
  0%,8% { transform: translate(-6px,0) scale(1); } 18% { transform: translate(58px,0) scale(.9); }
  26% { transform: translate(58px,0) scale(.9); } 36%,50% { transform: translate(-6px,0) scale(1); }
  56% { transform: translate(-70px,0) scale(.9); } 64% { transform: translate(-70px,0) scale(.9); }
  74%,100% { transform: translate(-6px,0) scale(1); } }
.oba-mini { position: absolute; bottom: 6px; display: flex; gap: 14px; z-index: 2; }
.oba-mini-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 17px;
  border: 1.5px solid var(--border-2); box-shadow: 0 3px 0 var(--border-2); }
.oba-mini-btn.no { background: #fff; color: var(--wrong); }
.oba-mini-btn.yes { background: var(--correct); color: #fff; }
.oba-peek { position: absolute; left: 4px; bottom: 0; z-index: 2; animation: obaBob 2.6s ease-in-out infinite; }

/* step 3 — points -> reward conversion + presenting owl */
.oba-convert { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.oba-conv { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.oba-conv-pts, .oba-conv-reward { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 800; font-size: 16px;
  background: var(--surface); border: 1.5px solid var(--border-2); border-radius: 14px; padding: 10px 14px; box-shadow: 0 3px 0 var(--border-2); }
.oba-conv-pts { color: var(--text-hi); animation: obaBob 2.4s ease-in-out infinite; }
.oba-conv-reward { background: var(--accent); color: var(--text-hi); animation: obaPop 2.4s ease-in-out infinite; }
.oba-conv-ic, .oba-conv-coin { font-size: 20px; }
.oba-conv-arrow { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--primary); animation: obaArrow 1.6s ease-in-out infinite; }
@keyframes obaArrow { 0%,100% { transform: translateX(0); opacity: .6; } 50% { transform: translateX(5px); opacity: 1; } }
.oba-present { position: relative; z-index: 1; animation: obaBob 2.6s ease-in-out infinite; }

/* floating decorations + Hux hero */
.oba-decor { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.oba-blob { position: absolute; border-radius: 50%; opacity: .55; }
.oba-blob.b1 { width: 104px; height: 104px; left: 4%; top: 8%; background: color-mix(in oklab, var(--primary) 24%, transparent); animation: obFloat 7s ease-in-out infinite; }
.oba-blob.b2 { width: 84px; height: 84px; right: 5%; bottom: 8%; background: color-mix(in oklab, var(--accent) 38%, transparent); animation: obFloat 8s ease-in-out infinite reverse; }
.oba-chip { position: absolute; font-size: 21px; background: var(--surface); border: 1.5px solid var(--border-2); border-radius: 12px;
  width: 38px; height: 38px; display: grid; place-items: center; box-shadow: 0 3px 0 var(--border-2); }
.oba-chip.k1 { left: 7%;  top: 12%;   animation: obFloat 4.5s ease-in-out infinite; }
.oba-chip.k2 { right: 9%; top: 8%;    animation: obFloat 5.2s ease-in-out .4s infinite; }
.oba-chip.k3 { left: 4%;  bottom: 16%; animation: obFloat 5s ease-in-out .8s infinite; }
.oba-chip.k4 { right: 5%; bottom: 10%; animation: obFloat 4.8s ease-in-out .2s infinite; }
.oba-chip.k5 { left: 47%; top: 3%;     animation: obFloat 6s ease-in-out 1s infinite; }
.oba-spark { position: absolute; color: var(--accent); font-size: 15px; animation: obTwinkle 2.4s ease-in-out infinite; }
.oba-spark.p1 { left: 26%; top: 32%; }
.oba-spark.p2 { right: 22%; top: 42%; animation-delay: .8s; }
.oba-spark.p3 { left: 62%; bottom: 26%; animation-delay: 1.5s; }
@keyframes obFloat { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
@keyframes obTwinkle { 0%,100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.25); } }
.oba-intro .oba-hux { position: relative; z-index: 1; animation: obaBob 2.8s ease-in-out infinite; }
.oba-intro .oba-hux::after { content: ""; position: absolute; left: 50%; top: 52%; width: 175px; height: 175px; transform: translate(-50%,-50%);
  border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--primary) 22%, transparent) 0%, transparent 68%); z-index: -1; }
.oba-swipe .oba-card, .oba-reward .oba-ticket, .oba-pop { z-index: 1; }

/* named category chips (floating decor) — kept inside bounds so nothing clips */
.oba-tag { position: absolute; z-index: 0; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800;
  color: var(--text-hi); background: var(--surface); border: 1.5px solid var(--border-2); border-radius: 999px; padding: 5px 10px;
  box-shadow: 0 3px 0 var(--border-2); white-space: nowrap; }
.oba-tag.t1 { left: 5%;  top: 9%;    animation: obFloat 4.6s ease-in-out infinite; }
.oba-tag.t2 { right: 5%; top: 5%;    animation: obFloat 5.3s ease-in-out .4s infinite; }
.oba-tag.t3 { left: 4%;  bottom: 24%; animation: obFloat 5s ease-in-out .8s infinite; }
.oba-tag.t4 { right: 4%; bottom: 16%; animation: obFloat 4.9s ease-in-out .2s infinite; }
.oba-tag.t5 { left: 32%; bottom: 3%;  animation: obFloat 6s ease-in-out 1s infinite; }

/* disabled download (until implemented) + wallet row chevron */
.rdm-dl:disabled { opacity: .5; box-shadow: var(--shadow-soft); cursor: not-allowed; }
.h-claim-show { color: var(--text-lo); flex: none; display: grid; place-items: center; }
