@property --tint { syntax: '<color>'; inherits: true; initial-value: #ff6b4a; }
:root { --ink: #f8f1e2; --muted: #b9b4af; --tint: #ff6b4a; transition: --tint .9s; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); font: 400 1rem/1.5 Inter, system-ui, sans-serif; background: #0c0c0f; }
html, body { height: 100%; overflow: hidden; }
button, summary { font: inherit; cursor: pointer; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.bg { position: fixed; inset: 0; background: radial-gradient(ellipse at 50% 52%, color-mix(in srgb, var(--tint) 23%, transparent), transparent 65%), #0c0c0f; }
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#stage.grabbing { cursor: grabbing; }
.top, footer { position: fixed; z-index: 1; left: 0; right: 0; padding-inline: clamp(18px, 4.1vw, 72px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; pointer-events: none; }
.top { top: max(14px, env(safe-area-inset-top)); }
.top h1 { margin: 0; }
button, .logo, .dots { pointer-events: auto; }
.logo { color: var(--ink); text-decoration: none; display: flex; flex-direction: column; align-items: center; line-height: 1.03; font: 400 clamp(.92rem, 1.26vw, 1.24rem)/1.02 'Bagel Fat One', 'Arial Black', system-ui, sans-serif; }
.logo i { color: var(--tint); font: 700 1.25em Caveat, cursive; }
.logo span:last-child { font-size: 1.5em; padding-bottom: .12em; border-bottom: 1px solid currentColor; }
.text-button { background: none; border: none; color: var(--ink); padding: .5rem 0; display: inline-flex; align-items: center; gap: .65em; min-height: 44px; font-size: .86rem; }
.text-button:hover { color: var(--tint); }
.category { justify-self: start; }
.category svg { width: 23px; height: 22px; fill: none; stroke: var(--tint); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.count { justify-self: end; display: flex; align-items: center; gap: .55em; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .82rem; }
.count b { color: var(--ink); font-weight: 600; }
.count-label, .eyebrow { text-transform: uppercase; font-size: .7rem; font-weight: 600; letter-spacing: .14em; }
.count-label { margin-right: .4rem; }
footer { bottom: max(14px, env(safe-area-inset-bottom)); }
.hint { margin: 0; color: var(--muted); display: flex; align-items: center; gap: .8rem; font-size: .78rem; transition: opacity .5s; }
.hint.gone { opacity: 0; }
.hand { width: 22px; height: 1px; background: currentColor; position: relative; animation: nudge 1.8s ease-in-out infinite; }
.hand::before { content: ''; position: absolute; left: 0; top: -3px; width: 6px; height: 6px; border: solid currentColor; border-width: 0 0 1px 1px; transform: rotate(45deg); }
@keyframes nudge { 50% { transform: translateX(-4px); } }
.dots { grid-column: 2; display: flex; align-items: center; }
.dots button { width: 28px; height: 44px; background: transparent; border: 0; padding: 0; display: grid; place-items: center; border-radius: 10px; }
.dots button::after { content: ''; border-radius: 50%; width: 7px; height: 7px; background: var(--c); transition: box-shadow .35s, transform .35s; }
.dots button:hover::after { transform: scale(1.3); }
.dots button.on::after { transform: scale(1.42); box-shadow: 0 0 0 2px #111, 0 0 0 3px var(--c); }
#guide { justify-self: end; }
.info { border: 1px solid currentColor; border-radius: 50%; font: 500 .72rem/1rem Inter, sans-serif; text-align: center; width: 1.1rem; }
.loader, .noscript { position: fixed; inset: 0; z-index: 4; margin: 0; display: grid; place-items: center; background: #0c0c0f; font: 500 2rem Caveat, Georgia, serif; transition: opacity .42s; }
.loader.done { opacity: 0; pointer-events: none; }
dialog { background: #252023; color: var(--ink); border: 1px solid #ffffff30; border-radius: 18px; max-width: min(31rem, calc(100vw - 2.2rem)); max-height: calc(100dvh - 2rem); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: 0 22px 100px #0009; }
dialog::backdrop { background: #0c0c0fc9; }
dialog .eyebrow { color: var(--muted); margin: .1rem 2.5rem 1rem 0; }
dialog h2 { font: 600 clamp(1.8rem, 5vw, 2.5rem)/1.06 Fraunces, Georgia, serif; margin: 0; }
dialog p { line-height: 1.55; }
dialog details { margin-block: 1.15rem; color: var(--muted); font-size: .9rem; }
.close { position: absolute; right: .38rem; top: .38rem; border: 0; width: 42px; height: 42px; color: var(--ink); background: transparent; font-size: 1.65rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.actions button { min-height: 42px; padding: .6rem 1rem; border-radius: 99px; font-size: .88rem; font-weight: 600; }
.primary { background: var(--ink); color: #282122; border: 1px solid var(--ink); }
.secondary { background: transparent; color: var(--ink); border: 1px solid #ffffff50; }
.actions button:disabled { opacity: .4; cursor: default; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 700px) {
  .top { top: max(12px, env(safe-area-inset-top)); }
  .category span, .count-label, .hint { display: none; }
  .category { min-width: 42px; }
  footer { grid-template-columns: 1fr; justify-items: center; gap: 2px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .dots { grid-column: 1; }
  #guide { justify-self: center; font-size: .8rem; min-height: 36px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .top { top: 4px; } footer { bottom: 0; } .logo { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) { .hand { animation: none; } :root { transition-duration: .45s; } }
