:root {
  --bg: #07111f;
  --panel: rgba(11, 18, 31, .95);
  --panel-2: rgba(16, 26, 44, .96);
  --text: #f5f8ff;
  --muted: #a5b4cf;
  --line: rgba(216, 228, 255, .14);
  --accent: #61d8ff;
  --accent-2: #9f8cff;
  --good: #48d58c;
  --bad: #ef4444;
  --score-1: #35d07f;
  --score-2: #e8d341;
  --score-3: #ff9f2f;
  --score-4: #f97316;
  --score-x: #ef4444;
  --empty: rgba(216, 228, 255, .10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(97, 216, 255, .16), transparent 21rem),
    radial-gradient(circle at 92% 92%, rgba(159, 140, 255, .12), transparent 25rem),
    linear-gradient(135deg, #06101d, #0d1728 55%, #060b14);
}
.shell {
  width: min(540px, calc(100% - 16px));
  margin: 0 auto;
  padding: 8px 0 32px;
}
.hero { text-align: center; margin: 0 0 8px; }
.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .56rem;
  font-weight: 950;
}
h1 {
  margin: 0;
  font-size: clamp(1.9rem, 9vw, 3rem);
  letter-spacing: -.06em;
  line-height: .96;
}
.subtitle { margin: 2px 0 0; color: var(--muted); font-size: .86rem; }
.tiny-status {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 7px 0 8px;
}
.tiny-status span {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 850;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 11px;
  box-shadow: 0 14px 42px rgba(0,0,0,.32);
  backdrop-filter: blur(14px);
  margin-top: 9px;
}
.round-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.round-head strong { font-size: .94rem; }
.mini-label {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .56rem;
  font-weight: 950;
  margin-bottom: 2px;
}
.attempts { text-align: right; white-space: nowrap; }
.current-clue {
  margin: 9px 0 7px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(97, 216, 255, .34);
  background: linear-gradient(135deg, rgba(97, 216, 255, .12), rgba(159, 140, 255, .10));
}
.current-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .57rem;
  font-weight: 950;
  margin-bottom: 4px;
}
.current-text { font-size: .98rem; line-height: 1.34; font-weight: 700; }
.guess-form { margin: 0; }
.autofill-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.guess-form label {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  margin-bottom: 5px;
}
.combo-line {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  align-items: stretch;
}
.combo { position: relative; min-width: 0; }
#bossInput {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 44px 0 13px;
  color: var(--text);
  background: rgba(255,255,255,.075);
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
}
#bossInput:focus {
  border-color: rgba(97, 216, 255, .78);
  box-shadow: 0 0 0 4px rgba(97, 216, 255, .12);
}
#bossInput::placeholder { color: rgba(165, 180, 207, .78); }
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration { display: none; }
button {
  border: 0;
  border-radius: 14px;
  min-height: 46px;
  padding: 0 15px;
  font-size: .94rem;
  font-weight: 950;
  cursor: pointer;
  color: #06111f;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
button:disabled { opacity: .45; cursor: not-allowed; }
.primary-action { width: 100%; min-width: 88px; }
button.next-submit { background: linear-gradient(180deg, #78edae, #22c55e); color: #04130b; }
.secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.073);
}
.dropdown-toggle {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 36px;
  min-height: 36px;
  height: 36px;
  padding: 0;
  color: var(--text);
  border: 1px solid rgba(216, 228, 255, .12);
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  font-size: 1.1rem;
  line-height: 1;
}
.suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 2000;
  max-height: min(330px, 54vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(97, 216, 255, .34);
  background: rgba(7, 13, 24, .995);
  box-shadow: 0 18px 42px rgba(0,0,0,.48);
}
.suggestion {
  width: 100%;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
  background: transparent;
  text-align: left;
}
.suggestion:hover, .suggestion.active {
  color: var(--text);
  background: rgba(97, 216, 255, .14);
  filter: none;
}
.suggestion span { font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggestion small { color: var(--muted); font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 44%; }
.suggestion-empty { color: var(--muted); padding: 10px; font-size: .86rem; }
.hint-button { width: 100%; margin-top: 7px; min-height: 42px; }
.round-progress {
  margin: 8px 0;
  padding: 8px;
  border-radius: 15px;
  background: rgba(255,255,255,.034);
  border: 1px solid rgba(216, 228, 255, .10);
}
.result-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.result-pill {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 7px 8px;
  background: var(--empty);
  color: var(--text);
}
.result-pill span { color: rgba(255,255,255,.86); font-size: .76rem; font-weight: 950; }
.result-pill strong { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 999px; background: rgba(0,0,0,.22); font-size: .82rem; }
.result-pill.active { outline: 2px solid rgba(97, 216, 255, .5); outline-offset: 1px; }
.score-1 { background: var(--score-1) !important; color: #04150b !important; }
.score-2 { background: var(--score-2) !important; color: #171404 !important; }
.score-3 { background: var(--score-3) !important; color: #1c0d02 !important; }
.score-4 { background: var(--score-4) !important; color: #fff7ed !important; }
.score-x { background: var(--score-x) !important; color: #fff1f2 !important; }
.score-empty { background: var(--empty) !important; color: var(--muted) !important; }
.message {
  margin: 7px 0 8px;
  padding: 9px 10px;
  border-radius: 13px;
  border: 1px solid rgba(216, 228, 255, .12);
  background: rgba(255,255,255,.055);
  color: var(--muted);
  line-height: 1.32;
  font-size: .88rem;
  font-weight: 750;
}
.message.good { color: #87efac; border-color: rgba(72, 213, 140, .28); background: rgba(72, 213, 140, .09); }
.message.bad { color: #fda4af; border-color: rgba(239, 68, 68, .28); background: rgba(239, 68, 68, .09); }
.clue-list-title { margin-top: 8px; color: var(--muted); font-weight: 950; text-transform: uppercase; letter-spacing: .12em; font-size: .58rem; }
.clues { display: grid; gap: 6px; margin: 7px 0 10px; }
.clue { border: 1px solid var(--line); border-radius: 14px; padding: 9px 10px; background: var(--panel-2); }
.clue.current-in-list { border-color: rgba(97, 216, 255, .48); }
.clue.locked { color: var(--muted); background: rgba(216, 228, 255, .055); }
.clue-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.clue-title { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 950; }
.clue-num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: rgba(97, 216, 255, .14); color: var(--accent); font-size: .72rem; }
.clue-text { font-size: .84rem; line-height: 1.30; color: var(--text); }
.locked .clue-text { color: var(--muted); }
.loot-table { margin: 0; padding-left: 1.05rem; display: grid; gap: 3px; }
.loot-table li::marker { color: var(--accent); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.actions button { min-height: 42px; }
.ghost { opacity: .75; }
.hidden { display: none !important; }
.review-card h2 { margin: 0 0 8px; }
.review-round { border: 1px solid var(--line); background: rgba(255,255,255,.045); border-radius: 15px; padding: 12px; margin-top: 10px; }
.review-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review-round-label { color: var(--muted); text-transform: uppercase; letter-spacing: .11em; font-size: .58rem; font-weight: 950; margin-bottom: 2px; }
.answer-name { font-size: clamp(1.75rem, 8vw, 2.6rem); line-height: 1.02; letter-spacing: -.045em; margin: 0; }
.result-chip { border-radius: 999px; padding: 6px 8px; font-size: .68rem; font-weight: 950; white-space: nowrap; }
.guess-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.guess-list li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(216, 228, 255, .09); padding-bottom: 8px; color: var(--muted); }
.guess-list strong { color: var(--text); }
.how-card { display: none; }
@media (max-width: 620px) {
  .shell { width: min(100% - 12px, 620px); padding-top: 8px; }
  h1 { font-size: clamp(2rem, 12vw, 3.1rem); }
  .card { padding: 11px; border-radius: 17px; }
  .suggestions { max-height: 44vh; }
  .actions { grid-template-columns: 1fr; }
}
