:root {
  --ink: #15121c;
  --pink: #ff027d;
  --off-white: #faf9fb;
  --dim: #6b6875;
  --line: #2a2533;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--off-white); }
body {
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 48px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.kicker { color: var(--dim); margin: 0; font-size: 13px; }
h1 { margin: 0; font-size: clamp(28px, 7vw, 44px); line-height: 1.1; text-transform: lowercase; }
.prompt { color: var(--pink); }
.idea { margin: 0; color: var(--dim); }
.stage { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px 0; }
button {
  font: inherit;
  background: var(--pink);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  min-height: 44px;
  cursor: pointer;
  font-weight: 700;
}
button.ghost { background: transparent; color: var(--pink); border: 2px solid var(--pink); }
input, textarea, select {
  font: inherit;
  color: var(--off-white);
  background: transparent;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 44px;
  width: 100%;
}
input:focus, textarea:focus, select:focus, button:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.card { border: 2px solid var(--line); border-radius: 16px; padding: 16px; }
.pink { color: var(--pink); }
.foot { color: var(--dim); font-size: 13px; }

/* spin the wheel */
.hud { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.score { font-size: 22px; font-weight: 700; }
.cat { color: var(--dim); font-size: 13px; }
.board { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; padding: 12px 8px; border: 2px solid var(--line); border-radius: 16px; }
.word { display: flex; gap: 3px; }
.tile { width: 26px; height: 34px; display: flex; align-items: center; justify-content: center; background: var(--off-white); color: var(--ink); border-radius: 4px; font-weight: 700; font-size: 18px; text-transform: lowercase; }
.tile.punct { background: transparent; color: var(--off-white); width: 12px; }
.tile.shown { background: var(--pink); color: var(--ink); }
.wheel-box { position: relative; width: min(300px, 82vw); aspect-ratio: 1; margin: 0 auto; }
.wheel-box svg { width: 100%; height: 100%; display: block; }
#wheel { transition: transform 3.2s cubic-bezier(.17,.67,.21,1); transform-origin: 50% 50%; }
.pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid var(--off-white); z-index: 2; }
.msg { min-height: 48px; margin: 0; text-align: center; }
.row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.row button { flex: 1 1 auto; }
.keys { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.vowels { grid-template-columns: repeat(5, 1fr); }
.keys button { padding: 0; min-width: 0; border-radius: 10px; background: transparent; color: var(--off-white); border: 2px solid var(--line); font-size: 18px; }
.keys button:not(:disabled):hover { border-color: var(--pink); }
.keys button:disabled { opacity: .3; cursor: default; }
.keys.locked button:not(.used) { opacity: .45; }
.keys button.hit { background: var(--pink); color: var(--ink); border-color: var(--pink); opacity: 1; }
.keys button.miss { text-decoration: line-through; }
.label { margin: 0; color: var(--dim); font-size: 13px; }
.solve { display: flex; gap: 8px; }
.solve input { flex: 1; min-width: 0; }
button:disabled { cursor: default; }
.row button:disabled, .solve button:disabled { opacity: .4; }
.win { text-align: center; border-color: var(--pink); }
.win strong { font-size: 22px; color: var(--pink); }
.hidden { display: none !important; }
