@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/inter-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/inter-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/inter-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/inter-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/inter-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/inter-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/space-grotesk-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --bg: #eceef2;
  --ink: #111318;
  --dim: #5b606b;
  --body: #3f444e;
  --line: #cfd2d9;
  --line2: #bfc3cc;
  --accent: #e5005a;
  --head: 'Space Grotesk', system-ui, sans-serif;
  --text: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); }
body.noscroll { overflow: hidden; }
a { color: var(--ink); }
button { font-family: inherit; }
:focus-visible { outline: 3px solid #2ec5ff; outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.dots { display: flex; gap: 3px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.brand span { font-family: var(--head); font-weight: 700; font-size: 20px; letter-spacing: 0.5px; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.lang { height: 44px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 22px; background: #fff; color: var(--ink); font: 600 13px var(--text); cursor: pointer; }

/* ---------- shared controls ---------- */
.circle { width: 44px; height: 44px; flex-shrink: 0; border-radius: 22px; border: 1px solid var(--line2); background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; position: relative; padding: 0; }
.circle.strong { border: 2px solid var(--ink); }
.circle.active { border-color: var(--ink); }
.badge { position: absolute; right: -3px; top: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.badge[hidden] { display: none; }
.pill { height: 40px; padding: 0 16px; border-radius: 20px; font: 600 13px var(--text); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--line2); background: #fff; color: var(--ink); }
.pill.on-save { background: var(--accent); border-color: var(--accent); color: #fff; }
.pill.on-save svg path { fill: currentColor; }
.pill.on-nope { background: var(--ink); border-color: var(--ink); color: #fff; }
.find-btn { height: 44px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 22px; background: #fff; color: var(--ink); font: 700 13px var(--head); letter-spacing: 2px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary { height: 56px; width: 100%; border: none; border-radius: 28px; background: var(--ink); color: #fff; font: 700 14px var(--head); letter-spacing: 2px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn-primary.is-off { background: #9a9ea8; }
.btn-outline { height: 50px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--ink); border-radius: 25px; background: #fff; color: var(--ink); font: 600 14px var(--text); text-decoration: none; cursor: pointer; }
.text-btn { height: 44px; padding: 0 6px; border: none; background: transparent; color: var(--ink); font: 700 14px var(--text); text-decoration: underline; cursor: pointer; }
.chip { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 2px; padding: 4px 10px; border-radius: 999px; color: var(--ink); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; display: inline-block; }

/* ---------- roulette ---------- */
.app { max-width: 480px; margin: 0 auto; padding: 20px 20px 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 100vh; min-height: 100svh; }
.stage { position: relative; width: min(340px, 84vw); margin: 0 auto; padding-top: 10px; }
.ring { position: relative; width: 100%; aspect-ratio: 1 / 1; }
.wheel { position: absolute; inset: 0; border-radius: 50%; will-change: transform; }
.hub { position: absolute; inset: 22.06%; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; transition: background 0.4s ease; }
.hub span { font-family: var(--head); font-weight: 700; font-size: 56px; line-height: 1; }
.hub span.small { font-size: 24px; }
.hub span.mid { font-size: 44px; }
.pointer { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 18px solid var(--ink); }
.pointer.glow { filter: drop-shadow(0 0 6px var(--accent)); }
.confetti { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.confetti span { position: absolute; left: -4px; top: -6px; border-radius: 2px; }
.result { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-height: 196px; }
.result .chip:empty { visibility: hidden; }
.result .chip { min-height: 22px; }
.name { margin: 0; font-family: var(--head); font-weight: 700; line-height: 1.05; min-height: 42px; max-width: 100%; white-space: nowrap; overflow: hidden; font-size: 38px; }
.desc { margin: 0; font-size: 13px; line-height: 1.5; color: var(--body); min-height: 20px; }
.reactions, .actions { display: flex; gap: 8px; justify-content: center; align-items: center; }
.actions { gap: 10px; }
.reactions[hidden], .actions[hidden] { display: none; }
.hold { position: relative; overflow: hidden; height: 58px; width: 100%; border: none; border-radius: 29px; background: var(--ink); color: #fff; font: 700 16px var(--head); letter-spacing: 3px; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.hold.busy { background: #dfe2e7; color: var(--dim); }
.hold .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #2ec5ff, #9d7bff, #ff5c93, #ff9a3d); opacity: 0.9; }
.hold .perfect-mark { position: absolute; left: 96%; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: #fff; opacity: 0.9; }
.hold .perfect-mark[hidden] { display: none; }
.hold .label { position: relative; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); pointer-events: none; }
.bottom { display: flex; align-items: center; gap: 10px; }
.history { flex: 1; min-width: 0; display: flex; justify-content: center; align-items: center; gap: 6px; overflow: hidden; min-height: 30px; }
.history a { font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 999px; color: var(--ink); white-space: nowrap; text-decoration: none; }
.ad-slot:empty { display: none; }
.ad-slot { margin: 6px 0; min-height: 50px; }

/* ---------- sheets ---------- */
.sheet { position: fixed; inset: 0; background: var(--bg); overflow-y: auto; z-index: 20; }
.sheet[hidden] { display: none; }
.sheet-inner { max-width: 480px; margin: 0 auto; padding: 20px; display: flex; flex-direction: column; gap: 18px; min-height: 100%; }
.sheet-head { display: flex; align-items: center; gap: 12px; }
.sheet-head h2 { margin: 0; font: 700 22px var(--head); }
.card { background: #fff; border: 1px solid var(--line); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.card.accent { border-left: 8px solid var(--c, var(--line)); }
.card .big { font: 700 28px/1.1 var(--head); }
.card p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--body); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fact { background: #fff; border: 1px solid var(--line); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.fact small { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--dim); }
.fact b { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--dim); }
.field select, .field input { height: 50px; padding: 0 14px; border: 1px solid var(--line2); background: #fff; color: var(--ink); font: 15px var(--text); border-radius: 0; width: 100%; }
.note { font-size: 12px; line-height: 1.5; color: var(--dim); margin: 0; }
.near-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--dim); }
.link-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.link-card .ic { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.link-card .tx { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.link-card strong { font: 700 17px var(--head); }
.link-card small { font-size: 12px; color: var(--dim); }
.ad-tag { font-size: 10px; font-weight: 700; letter-spacing: 1px; padding: 3px 6px; border: 1px solid var(--dim); color: var(--dim); }
.opt-group { display: flex; flex-direction: column; gap: 8px; }
.opt-group > span { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--dim); }
.opts { display: flex; gap: 8px; flex-wrap: wrap; }
.opt { height: 44px; padding: 0 16px; border-radius: 22px; border: 1.5px solid var(--line2); background: #fff; color: var(--ink); font: 600 14px var(--text); cursor: pointer; }
.opt[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.sheet-foot { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.saved-row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--c); padding: 8px 8px 8px 14px; }
.saved-row a { flex: 1; min-width: 0; min-height: 44px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.saved-row a strong { font: 700 18px var(--head); }
.saved-row a small { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--dim); }

/* ---------- content pages ---------- */
.wrap { max-width: 480px; margin: 0 auto; padding: 20px; }
.intro h2 { font: 700 22px var(--head); margin: 8px 0; }
.intro p { line-height: 1.6; color: var(--body); margin: 0 0 12px; }
.content { display: flex; flex-direction: column; gap: 16px; }
.content h1 { font: 700 38px/1.08 var(--head); margin: 0; }
.content h2 { font: 700 20px var(--head); margin: 8px 0 0; }
.content p, .content li { line-height: 1.6; color: var(--body); }
.lede { font-size: 17px; margin: 0; }
.crumbs { font-size: 13px; color: var(--dim); margin-top: 18px; }
.crumbs a { color: var(--dim); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.more-list { display: flex; flex-wrap: wrap; gap: 8px; }
.more-list a { padding: 9px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14px; }
.cat-block h2 { font: 700 13px var(--text); letter-spacing: 2px; display: flex; align-items: center; gap: 8px; margin: 20px 0 10px; }
.site-foot { max-width: 480px; margin: 0 auto; padding: 18px 20px 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); display: flex; flex-wrap: wrap; gap: 8px 16px; }
.site-foot a { color: var(--dim); }
@media (min-width: 720px) {
  .app { min-height: auto; padding-top: 28px; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .wheel { transition-duration: 0.01s !important; }
}
