/* Bubkes · Showtime design system */
:root {
  --plum: #1e0b24;
  --deep: #12061a;
  --panel: #2c0f36;
  --spot: #47195a;
  --rim: #5a2a68;
  --orange: #ff7a1a;
  --magenta: #e6247b;
  --pink: #ff8fbf;
  --teal: #2fd3c0;
  --cream: #fff1d6;
  --bulb: #ffd9a0;
  --mute: #d9bfe3;
  --ink-soft: #4a2b55;
  --display: "Bungee", "Archivo", system-ui, sans-serif;
  --shade: "Bungee Shade", "Bungee", system-ui, sans-serif;
  --text: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--plum);
  color: var(--cream);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.bulbs {
  flex: none;
  height: 26px;
  background: radial-gradient(circle, var(--bulb) 0 5px, var(--orange) 6px 7px, transparent 8px) 0 50% / 34px 26px repeat-x var(--deep);
}
.bulbs.small { height: 18px; background-size: 26px 18px; background-image: radial-gradient(circle, var(--bulb) 0 3.5px, var(--orange) 4.5px 5px, transparent 6px); }
.bulbs.shift { background-position: 17px 50%; }

.wordmark { font-family: var(--shade); color: var(--orange); line-height: 1; transform: skew(-6deg); transform-origin: left bottom; display: inline-block; }
.label { font-family: var(--display); letter-spacing: 0.06em; color: var(--teal); }
.question { font-style: italic; font-weight: 800; line-height: 1.12; text-wrap: balance; }
.mute { color: var(--mute); }
.tag { font-style: italic; font-weight: 800; color: var(--teal); }

.pill {
  display: flex; align-items: center; gap: 14px;
  padding: 7px 20px 7px 7px; min-height: 58px;
  border-radius: 999px; border: 3px solid var(--orange);
  background: var(--panel); color: var(--cream);
  box-shadow: 0 6px 0 var(--deep);
  text-align: left; width: 100%;
  font-weight: 500; line-height: 1.2;
}
.pill .letter {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); color: var(--plum);
  font-family: var(--display); font-size: 21px;
  display: flex; align-items: center; justify-content: center;
}
.pill.mine { border-style: dashed; border-color: #7a4a8a; color: var(--mute); box-shadow: none; }
.pill.mine .letter { background: var(--rim); color: var(--cream); }
.pill.picked { background: var(--cream); border-color: var(--cream); color: var(--plum); font-weight: 700; box-shadow: 0 6px 0 var(--magenta); }
.pill.picked .letter { background: var(--plum); color: var(--cream); }
.pill.real { background: var(--orange); border-color: var(--orange); color: var(--plum); font-weight: 700; }
.pill.real .letter { background: var(--plum); color: var(--orange); }
button.pill:disabled { cursor: default; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border: none; border-radius: 999px;
  background: var(--orange); color: var(--plum);
  font-family: var(--display); font-size: 18px;
  box-shadow: 0 6px 0 var(--deep);
  text-decoration: none;
}
.btn:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--deep); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn.ghost { background: transparent; color: var(--cream); border: 3px solid var(--cream); box-shadow: none; font-family: var(--text); font-weight: 700; }
.btn.teal { background: var(--teal); }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 14px; box-shadow: 0 4px 0 var(--deep); }

.field {
  width: 100%; min-height: 54px; padding: 0 20px;
  border-radius: 27px; border: 3px solid var(--orange);
  background: var(--panel); color: var(--cream); font-weight: 500; font-size: 18px;
}
textarea.field { padding: 14px 18px; border-radius: 24px; resize: none; line-height: 1.35; }
.field::placeholder { color: #a887b5; }
.field:focus, .btn:focus-visible, .pill:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.ring {
  --p: 100%;
  flex: none; border-radius: 50%;
  background: conic-gradient(var(--magenta) 0 var(--p), var(--panel) var(--p) 100%);
  display: flex; align-items: center; justify-content: center;
}
.ring > span {
  border-radius: 50%; background: var(--plum);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
}
.error { color: var(--pink); font-weight: 700; min-height: 1.4em; }

@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes rise { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes stamp { 0% { transform: rotate(-8deg) scale(2.4); opacity: 0; } 60% { transform: rotate(-8deg) scale(0.92); opacity: 1; } 100% { transform: rotate(-8deg) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01s !important; animation-delay: 0s !important; } }
