/* Hypesift styles: "Sunrise". Warm cream page, flat colour blocks, chunky rounded shapes, plum text.
   Teal = signal, coral = hype, sun yellow = fine print; those three colours are the verdicts everywhere.
   Headings use Young Serif (one weight, 400). Body text uses Hanken Grotesk. */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.foot { color: var(--mute); font-size: 13px; text-align: center; margin: 8px 0 0; }

:root {
  --bg: #fff1e2;
  --panel: #fffaf4;
  --panel-2: #ffe9d2;
  --line: rgba(58, 31, 61, .14);
  --fg: #3a1f3d;
  --mute: #7a5a78;
  --signal: #1f9d8f;
  --signal-ink: #0e6f64;
  --hype: #ff6f59;
  --hype-ink: #c23a24;
  --ctx: #ffbe0b;
  --ctx-ink: #8a5a00;
  --ink: #3a1f3d;
  --butter: #ffe7a0;
  --mint: #c9efe6;
  --blush: #ffd3cb;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: var(--body);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.55 var(--body);
  padding-block: 14px 56px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--fg); outline-offset: 2px; }
a { color: var(--signal-ink); font-weight: 600; }

/* header */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font-weight: 400; }
.brand svg { width: 38px; height: 38px; flex: none; }
.word { font: 400 26px/1 var(--display); }
.word i { font-style: normal; color: var(--fg); }
.word b { color: var(--hype-ink); font-weight: 400; }
.navs { display: flex; gap: 4px; align-items: center; }
.nav { background: transparent; border: 0; border-radius: 999px; padding: 10px 14px; font: 800 15px/1 var(--body); color: var(--fg); }
.nav:hover { background: var(--butter); }
.nav.on { background: var(--fg); color: #fff6ea; }
.card.daily { background: var(--butter); }
.card.daily .chip { background: #fff; }
.hud { display: flex; gap: 12px; font: 600 14px/1 var(--body); color: var(--mute); }
.hud strong { color: var(--fg); font-weight: 800; }
.dots { display: flex; gap: 5px; }
.dots i { flex: 1; height: 8px; border-radius: 4px; background: #f3dcc4; transition: background .25s; }
.dots i.on { background: var(--signal); }
.dots i.no { background: var(--hype); }
.dots i.cur { background: var(--fg); }

/* shared bits */
.label { font: 800 13px/1 var(--body); color: var(--mute); letter-spacing: 0.01em; }
.meta { font: 500 14px/1.5 var(--body); color: var(--mute); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--fg); color: #fff6ea; border: 0; border-radius: 999px; padding: 16px 28px; font: 800 17px/1 var(--body); min-height: 54px; transition: transform .12s; text-decoration: none; }
.btn:hover:not(:disabled) { transform: scale(1.03); }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { background: #ead8c8; color: #a58f9f; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.ghost { background: #fff; color: var(--fg); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--fg); }
.btn.danger { color: var(--hype-ink); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.card { background: var(--panel); border-radius: 26px; padding: 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tile { background: var(--panel); border-radius: 20px; padding: 14px 16px; min-width: 0; }
.tile b { display: block; font: 400 30px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.tile span { color: var(--mute); font-size: 14px; display: block; margin-top: 3px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

/* intro */
.hero { display: flex; flex-direction: column; gap: 16px; padding-top: 10px; }
.hero h1 { margin: 0; font: 400 clamp(40px, 11vw, 66px)/1.02 var(--display); letter-spacing: -0.01em; }
.hero h1 .s { color: var(--signal-ink); }
.hero h1 .h { color: var(--hype-ink); }
.hero p { margin: 0; color: var(--mute); font-size: 19px; }
.hero.home { background: var(--ctx); border-radius: 30px; padding: 30px 24px 26px; position: relative; overflow: hidden; }
.hero.home > * { position: relative; z-index: 1; }
.hero.home:after { content: ""; position: absolute; right: -54px; bottom: -64px; width: 200px; height: 200px; border-radius: 50%; background: var(--hype); }
.hero.home:before { content: ""; position: absolute; right: 96px; bottom: -34px; width: 84px; height: 84px; border-radius: 50%; background: var(--signal); }
.hero.home p, .hero.home .note, .hero.home .meta { color: var(--fg); }
.hero.home h1 .s { color: #0b5c52; }
.hero.home h1 .h { color: #b8321d; }
.hero.home details { border-top-color: rgba(58, 31, 61, .25); }
.hero.home summary::after { color: var(--fg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vchip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 7px 16px 7px 8px; font: 800 15px/1 var(--body); }
.g { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 800 14px/1 var(--body); color: var(--ink); flex: none; }
.packs { display: flex; flex-direction: column; gap: 10px; }
.pack { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: var(--butter); border-radius: 22px; padding: 14px 16px; }
.pack b { font: 400 19px/1.25 var(--display); }
.pack small { display: block; color: var(--fg); opacity: .75; font-size: 14px; }

/* case */
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.chip { background: var(--butter); border-radius: 999px; padding: 6px 12px; font: 800 12.5px/1 var(--body); color: var(--fg); }
.claim { margin: 0; font: 400 clamp(25px, 6.4vw, 33px)/1.2 var(--display); text-wrap: balance; }
.step { display: flex; flex-direction: column; gap: 10px; animation: rise .25s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.opts { display: grid; gap: 10px; }
.opts.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt { text-align: left; background: var(--panel-2); border: 2.5px solid transparent; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 64px; transition: background .15s, border-color .15s; }
.opt:hover:not(:disabled) { background: #ffdcb8; }
.opt b { display: block; font: 800 17px/1.2 var(--body); }
.opt small { display: block; color: var(--mute); font-size: 13.5px; line-height: 1.3; }
.opt[aria-checked="true"] { border-color: var(--c, var(--signal)); background: color-mix(in srgb, var(--c, var(--signal)) 18%, #fffaf4); }
.opt.v { align-items: flex-start; }
.opt.plain { flex-direction: row; align-items: center; font-size: 16.5px; line-height: 1.35; font-weight: 600; }
.opt.sm { padding: 11px 12px; min-height: 52px; gap: 2px; }
.opt.sm b { font-size: 15.5px; }
.opt:disabled { cursor: default; }
.opt.right { border-color: var(--signal); background: var(--mint); }
.opt.wrong { border-color: var(--hype); background: var(--blush); }

/* feedback */
.fb { background: var(--panel); border-radius: 26px; overflow: hidden; animation: rise .3s ease both; }
.fb-head { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.fb-head.ok { background: var(--mint); }
.fb-head.no { background: var(--blush); }
.fb-head h2 { margin: 0; font: 400 27px/1.15 var(--display); display: flex; align-items: center; gap: 10px; }
.fb-head.ok h2 { color: var(--signal-ink); }
.fb-head.no h2 { color: var(--hype-ink); }
.fb-head p { margin: 0; font-size: 17px; }
.fb-body { padding: 16px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.pts { display: flex; flex-wrap: wrap; gap: 8px; }
.pts span { font: 800 13.5px/1 var(--body); border-radius: 999px; padding: 8px 12px; background: var(--butter); color: var(--fg); }
.pts span.hi { background: var(--mint); color: var(--signal-ink); }
.pts span.lo { background: var(--blush); color: var(--hype-ink); }
.pts span.tot { background: var(--fg); color: #fff6ea; }
.crowd { display: flex; flex-direction: column; gap: 8px; }
.split { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: #f3dcc4; }
.split i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--mute); }
.legend em { font-style: normal; color: var(--fg); font-weight: 800; }
details { border-top: 2px solid var(--line); padding-top: 12px; }
summary { cursor: pointer; font: 800 16px/1.3 var(--body); color: var(--fg); list-style: none; display: flex; align-items: center; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--hype-ink); font: 800 24px/1 var(--body); }
details[open] summary::after { content: "\2212"; }
details .in { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.facts { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; color: var(--fg); font-size: 15.5px; }
.pattern { display: flex; flex-direction: column; gap: 2px; background: var(--butter); border-radius: 16px; padding: 13px 16px; }
.pattern b { font: 400 17px/1.2 var(--display); color: var(--fg); }
.pattern span { color: var(--fg); opacity: .8; font-size: 15px; }

/* results, profile, community */
.score { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.score .n { font: 400 clamp(76px, 23vw, 128px)/0.92 var(--display); color: var(--signal-ink); font-variant-numeric: tabular-nums; }
.score .d { font: 800 22px/1 var(--body); color: var(--mute); }
.rank { margin: 0; font: 400 clamp(28px, 7.4vw, 40px)/1.1 var(--display); }
.list { display: flex; flex-direction: column; background: var(--panel); border-radius: 22px; overflow: hidden; }
.li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; padding: 13px 16px; align-items: center; border-bottom: 2px solid var(--line); }
.li:last-child { border-bottom: 0; }
.li .m { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 800 14px/1 var(--body); color: var(--ink); }
.li .m.ok { background: var(--signal); }
.li .m.no { background: var(--hype); }
.li .t { min-width: 0; font: 700 16px/1.3 var(--body); overflow-wrap: anywhere; }
.li .t small { display: block; color: var(--mute); font-weight: 500; font-size: 13.5px; }
.li .p { font: 800 14px/1 var(--body); color: var(--mute); font-variant-numeric: tabular-nums; }
.newb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.newb .b { background: var(--signal-ink); color: #fff; font: 800 14px/1 var(--body); padding: 9px 14px; border-radius: 999px; }
.sec { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.sec h2 { margin: 0; font: 400 23px/1.2 var(--display); }
.cal { display: grid; grid-template-columns: 120px minmax(0, 1fr) 84px; gap: 12px; align-items: center; }
.cal b { font: 800 16px/1.2 var(--body); }
.cal small { display: block; color: var(--mute); font-size: 13px; font-weight: 500; }
.cal .val { font: 800 14px/1.2 var(--body); text-align: right; }
.meter { position: relative; height: 12px; background: #f3dcc4; border-radius: 6px; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--signal); border-radius: 6px; }
.meter u { position: absolute; top: -5px; bottom: -5px; width: 3px; background: var(--fg); border-radius: 2px; }
.hist { display: flex; align-items: flex-end; gap: 6px; height: 96px; border-bottom: 3px solid var(--line); }
.hist i { flex: 1; min-width: 6px; background: var(--signal); border-radius: 5px 5px 0 0; min-height: 3px; }
.badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.badge { border-radius: 20px; padding: 14px 16px; background: var(--panel); display: flex; flex-direction: column; gap: 4px; min-width: 0; opacity: .6; }
.badge.on { opacity: 1; background: var(--mint); box-shadow: inset 0 0 0 2.5px var(--signal); }
.badge b { font: 400 16.5px/1.25 var(--display); }
.badge.on b { color: var(--signal-ink); }
.badge small { color: var(--mute); font-size: 13.5px; line-height: 1.35; }
.board { display: flex; flex-direction: column; background: var(--panel); border-radius: 22px; overflow: hidden; }
.br { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; padding: 13px 16px; align-items: center; border-bottom: 2px solid var(--line); }
.br:last-child { border-bottom: 0; }
.br.me { background: var(--mint); }
.br .r { font: 400 19px/1 var(--display); color: var(--mute); }
.br .nm { font: 700 16px/1.2 var(--body); overflow-wrap: anywhere; min-width: 0; }
.br .sc { font: 800 15px/1 var(--body); font-variant-numeric: tabular-nums; }
.hard { display: grid; grid-template-columns: minmax(0, 1fr) 110px 48px; gap: 12px; align-items: center; font-size: 15.5px; }
.hard .meter { height: 10px; }
.hard .val { font: 800 14px/1 var(--body); text-align: right; }
.switch { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.switch input { width: 22px; height: 22px; accent-color: var(--signal); }
.note { color: var(--mute); font-size: 15px; margin: 0; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }

/* home guide, game cards, how it works page */
.note.big { font-size: 17.5px; line-height: 1.6; color: var(--fg); }
.how-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.how-step { background: var(--panel); border-radius: 22px; padding: 16px 18px 18px; min-width: 0; }
.how-step .n { display: block; font: 400 32px/1 var(--display); color: var(--hype-ink); margin-bottom: 6px; }
.how-step b { display: block; font: 800 17px/1.25 var(--body); }
.how-step p { margin: 4px 0 0; color: var(--mute); font-size: 15.5px; line-height: 1.45; }
.verdicts { display: flex; flex-direction: column; gap: 10px; }
.vrow { display: flex; gap: 14px; align-items: center; background: var(--panel); border-radius: 20px; padding: 13px 18px; }
.vrow .g { width: 36px; height: 36px; font-size: 19px; }
.vrow b { display: block; font: 800 17px/1.25 var(--body); }
.vrow span { color: var(--mute); font-size: 15.5px; line-height: 1.4; }
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.games .game:last-child:nth-child(odd) { grid-column: 1 / -1; }
.game { border-radius: 24px; padding: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.game.a { background: var(--mint); }
.game.b { background: var(--butter); }
.game.c { background: var(--panel-2); }
.game .tag { background: var(--fg); color: #fff6ea; font: 800 12.5px/1 var(--body); padding: 6px 10px; border-radius: 999px; transform: rotate(-2deg); }
.game h3 { margin: 0; font: 400 25px/1.1 var(--display); }
.game p { margin: 0 0 6px; font-size: 16.5px; line-height: 1.45; }
.faq { gap: 0; padding-top: 6px; padding-bottom: 14px; }
.faq details { padding: 14px 0 12px; }
.faq details:first-child { border-top: 0; }
.faq summary { font-size: 17px; }

/* share card, forms, inbox, toast, sticky actions */
button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.btn.sticky { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 6; box-shadow: 0 10px 24px rgba(58, 31, 61, .28); }
.share { display: block; width: 100%; max-width: 420px; aspect-ratio: 1; border-radius: 22px; background: var(--panel); box-shadow: 0 0 0 3px var(--butter); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font: 800 13px/1 var(--body); color: var(--mute); }
.field input, .field textarea { width: 100%; background: #fff; color: var(--fg); border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px; font: 400 17px/1.4 var(--body); resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--fg); }
.chkout { display: flex; flex-direction: column; gap: 12px; }
.chkout .card, .chkout .card > * { min-width: 0; overflow-wrap: anywhere; }
.why { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; line-height: 1.45; }
.srcs { display: flex; flex-direction: column; gap: 6px; }
.srcs a { font-size: 15px; }
.msg { margin: 0; font-size: 15.5px; min-height: 1.4em; font-weight: 600; }
.msg.ok { color: var(--signal-ink); }
.msg.no { color: var(--hype-ink); }
.sub { background: var(--panel); border-radius: 18px; padding: 13px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.sub b { font: 700 16.5px/1.3 var(--body); }
.sub small { color: var(--mute); font-size: 13.5px; }
.sub a { font-size: 14.5px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--fg); color: #fff6ea; font: 700 15px/1 var(--body); padding: 13px 20px; border-radius: 999px; z-index: 20; box-shadow: 0 8px 24px rgba(58, 31, 61, .35); }
@media (max-width: 560px) {
  .opts.three { grid-template-columns: 1fr; }
  .opts.three.keep { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .opt.v { flex-direction: row; align-items: center; }
  .tile b { font-size: 25px; }
  .cal { grid-template-columns: 1fr; gap: 6px; }
  .cal .val { text-align: left; }
  .badges { grid-template-columns: 1fr; }
  .hard { grid-template-columns: minmax(0, 1fr) 70px 44px; }
  .card { padding: 18px; }
  .hero.home { padding: 26px 20px 22px; }
  .how-steps, .games { grid-template-columns: 1fr; }
  #navHow { display: none; }
  .hero.home .meta { max-width: 62%; }
  .hero.home:after { width: 150px; height: 150px; right: -48px; bottom: -56px; }
  .hero.home:before { width: 64px; height: 64px; right: 72px; bottom: -26px; }
  .hide-s { display: none; }
  .nav { padding: 10px 10px; }
  .word { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
