:root {
  --ink: #e8edf2;
  --muted: #9eacbb;
  --navy: #07131f;
  --panel-light: #173247;
  --gold: #d6a94b;
  --gold-bright: #f1d78a;
  --success: #76d39b;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  padding: 32px 18px;
  display: grid;
  place-items: center;
  background-color: var(--navy);
  background-image: linear-gradient(rgba(214, 169, 75, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(214, 169, 75, .05) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

.game-container { width: min(100%, 560px); padding: 30px; text-align: center; background: rgba(16, 35, 51, .96); border: 1px solid rgba(214, 169, 75, .42); border-radius: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, .38); }
.game-header { margin-bottom: 22px; }
.eyebrow { margin: 0 0 7px; color: var(--gold); font: 700 11px/1.2 Verdana, sans-serif; letter-spacing: 1.6px; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 7px; color: var(--gold-bright); font-size: clamp(32px, 7vw, 42px); font-weight: 700; letter-spacing: 0; }
.subtitle { margin-bottom: 0; color: var(--muted); font-size: 15px; }
.score-panel { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding: 11px 15px; border: 1px solid rgba(232, 237, 242, .12); background: rgba(7, 19, 31, .55); font-family: Verdana, sans-serif; }
.score-panel span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .8px; }
.score-panel strong { color: var(--gold-bright); font-size: 22px; }
.round-area { min-height: 326px; }
.hint-container { display: grid; gap: 8px; margin-bottom: 18px; }
.hint-container p { display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: center; min-height: 46px; margin-bottom: 0; padding: 10px 13px; text-align: left; background: var(--panel-light); border-left: 3px solid var(--gold); }
.hint-container strong { color: var(--gold-bright); font: 700 12px/1.2 Verdana, sans-serif; text-transform: uppercase; letter-spacing: .5px; }
.hint-container span { color: var(--ink); font-size: 16px; }
.guess-area { position: relative; }
input { width: 100%; padding: 13px 14px; color: var(--ink); background: #091a28; border: 1px solid #496073; border-radius: 4px; font: 16px Georgia, serif; outline: none; }
input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214, 169, 75, .14); }
input::placeholder { color: #78899a; }
button { width: 100%; margin-top: 10px; padding: 13px 18px; color: #101b25; background: var(--gold); border: 0; border-radius: 4px; cursor: pointer; font: 700 13px Verdana, sans-serif; letter-spacing: .4px; text-transform: uppercase; }
button:hover { background: var(--gold-bright); }
button:focus-visible { outline: 3px solid white; outline-offset: 2px; }
#suggestions { display: none; position: absolute; width: 100%; max-height: 196px; overflow-y: auto; margin-top: 5px; text-align: left; background: #0b1b2a; border: 1px solid #496073; border-radius: 4px; box-shadow: 0 12px 20px rgba(0, 0, 0, .3); z-index: 2; }
.suggestion-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; cursor: pointer; color: var(--ink); font: 14px Verdana, sans-serif; }
.suggestion-item img { width: 30px; height: 30px; border-radius: 3px; }
.suggestion-item:hover { background: var(--panel-light); }
#feedback { min-height: 22px; margin: 17px 0 0; font: 700 14px Verdana, sans-serif; }
#champ-image { display: block; width: 154px; height: 154px; margin: 4px auto 0; object-fit: cover; border: 2px solid var(--gold); border-radius: 4px; animation: reveal .28s ease-out; }
#next-btn { background: var(--panel-light); color: var(--ink); }
#next-btn:hover { background: #24455e; }
.history-panel { min-height: 94px; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(232, 237, 242, .13); text-align: left; }
.history-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.history-heading h2 { margin: 0; color: var(--gold-bright); font-size: 18px; }
.history-heading span { min-width: 26px; padding: 3px 8px; text-align: center; color: #0d1c29; background: var(--gold); border-radius: 12px; font: 700 12px Verdana, sans-serif; }
.correct-answers { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.correct-answers li { padding: 6px 9px; color: #c9ead7; background: rgba(118, 211, 155, .11); border: 1px solid rgba(118, 211, 155, .3); border-radius: 3px; font: 13px Verdana, sans-serif; }
.correct-answers .empty-history { width: 100%; padding: 0; color: var(--muted); background: transparent; border: 0; font-style: italic; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  body { padding: 16px 12px; place-items: start center; }
  .game-container { padding: 24px 18px; }
  .hint-container p { grid-template-columns: 88px 1fr; gap: 8px; }
}