:root { --table: #efe8dc; --table-dot: #e0d5c3; --ink: #2b2a33; --muted: #7a7480; font-family: "Avenir Next", system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  background: radial-gradient(ellipse at 50% 40%, #f7f2ea 0%, var(--table) 70%);
  color: var(--ink); -webkit-user-select: none; user-select: none; touch-action: none;
}
body::before { content: ''; position: fixed; inset: 0; background-image: radial-gradient(var(--table-dot) 1.2px, transparent 1.4px); background-size: 22px 22px; opacity: .7; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; outline: none; }
#gl:active { cursor: grabbing; }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }
#ui { position: fixed; left: 0; right: 0; bottom: max(22px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 40; pointer-events: none; }
#hint { margin: 0; font-size: 15px; color: var(--muted); letter-spacing: .02em; transition: opacity .4s; }
#hint.gone { opacity: 0; }
#again { pointer-events: auto; font: inherit; font-size: 15px; font-weight: 700; border: 0; border-radius: 999px; padding: 10px 22px; background: var(--ink); color: #fff; cursor: pointer; box-shadow: 0 6px 18px rgb(0 0 0 / .18); }
#again:focus-visible { outline: 3px solid #8c7bd8; outline-offset: 4px; }
