* {
  box-sizing: border-box;
}

:root {
  --bg-1: #fffaf5;
  --bg-2: #f5f7fb;
  --card: rgba(255, 255, 255, 0.86);
  --stroke: rgba(14, 56, 96, 0.12);
  --stroke-strong: rgba(244, 124, 32, 0.18);
  --text: #0f2740;
  --muted: #58708a;
  --brand: #0d5ea6;
  --brand-2: #0b3b75;
  --accent: #f47c20;
  --accent-2: #ff9b49;
  --correct: #1f9d55;
  --present: #f59f00;
  --absent: #8ca0b3;
  --shadow: 0 18px 50px rgba(18, 55, 93, 0.12);
  --orange-shadow: 0 16px 40px rgba(244, 124, 32, 0.16);
  --radius: 24px;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background:
    url("assets/dutch-bottom-scene.svg") center bottom / min(1600px, 100%) auto no-repeat,
    radial-gradient(circle at top left, rgba(244, 124, 32, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(13, 94, 166, 0.14), transparent 30%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  background-attachment: scroll, scroll, scroll, scroll;
}

body {
  position: relative;
  overflow-x: hidden;
  padding: 28px 18px 180px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(244, 124, 32, 0.08), transparent 18%),
    radial-gradient(circle at 88% 10%, rgba(13, 94, 166, 0.07), transparent 18%);
  z-index: 0;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero {
  padding: 18px 4px 20px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(244, 124, 32, 0.18);
  background: rgba(255, 248, 241, 0.86);
  color: var(--accent);
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 0.92rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px rgba(244, 124, 32, 0.12);
}

h1 {
  margin: 16px 0 10px;
  font-size: clamp(2.8rem, 5vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: var(--brand-2);
}

.hero__title-accent {
  color: var(--accent);
}

.hero__subtitle {
  max-width: 820px;
  font-size: 1.08rem;
  line-height: 1.68;
  color: var(--muted);
  margin: 0 0 20px;
}

.top-controls {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.mode-switch {
  display: inline-flex;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  border: 1px solid rgba(244, 124, 32, 0.14);
}

.mode-btn,
.primary-btn,
.secondary-btn {
  font: inherit;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.mode-btn {
  padding: 12px 18px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.mode-btn.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  box-shadow: 0 8px 18px rgba(13, 94, 166, 0.24);
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(244, 124, 32, 0.28);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-2);
  border: 1px solid rgba(244, 124, 32, 0.18);
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 700;
}

.mode-btn:hover,
.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.primary-btn:hover,
.secondary-btn:hover {
  box-shadow: var(--orange-shadow);
}

.game-layout {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.9fr;
  gap: 20px;
  align-items: start;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  padding: 22px;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--brand), var(--accent));
  opacity: 0.95;
}

.card__label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 10px;
}

.clue-card h2 {
  margin: 0 0 10px;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.definition {
  font-size: 1.06rem;
  line-height: 1.7;
  margin: 0 0 16px;
}

.example {
  margin: 0 0 14px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.7;
}

.word-clue {
  margin-bottom: 0;
}

.meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(244, 124, 32, 0.1);
  color: var(--brand-2);
  font-weight: 800;
  font-size: 0.92rem;
  border: 1px solid rgba(244, 124, 32, 0.1);
}

.board {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.row {
  display: grid;
  gap: 8px;
}

.tile {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 800;
  text-transform: uppercase;
  border: 2px solid rgba(13, 94, 166, 0.15);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.tile.correct {
  background: rgba(31, 157, 85, 0.16);
  border-color: rgba(31, 157, 85, 0.42);
  color: #0a6637;
}

.tile.present {
  background: rgba(245, 159, 0, 0.16);
  border-color: rgba(245, 159, 0, 0.42);
  color: #9a6200;
}

.tile.absent {
  background: rgba(140, 160, 179, 0.18);
  border-color: rgba(140, 160, 179, 0.42);
  color: #4c6174;
}

.guess-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.guess-form input {
  width: 100%;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid rgba(13, 94, 166, 0.18);
  background: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 1rem;
  color: var(--text);
}

.guess-form input:focus {
  outline: 3px solid rgba(244, 124, 32, 0.16);
  border-color: rgba(244, 124, 32, 0.35);
}

.message {
  min-height: 28px;
  margin-top: 12px;
  color: var(--brand);
  font-weight: 700;
}

.action-row {
  margin-top: 2px;
}

.keyboard-hint {
  margin-top: 14px;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--muted);
}

.hint.correct {
  color: var(--correct);
  font-weight: 700;
}

.hint.present {
  color: var(--present);
  font-weight: 700;
}

.hint.absent {
  color: #5c7285;
  font-weight: 700;
}

.result-panel {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(13, 94, 166, 0.06), rgba(244, 124, 32, 0.1));
  padding: 18px;
  min-height: 188px;
  line-height: 1.65;
  border: 1px solid rgba(244, 124, 32, 0.08);
}

.result-panel.empty {
  color: var(--muted);
}

.result-word {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

.translation {
  margin: 0 0 10px;
  color: var(--brand);
  font-weight: 700;
}

.result-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.stat {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(244, 124, 32, 0.12);
  border-radius: 18px;
  padding: 16px 10px;
  text-align: center;
}

.stat__value {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
}

.stat__label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 4px;
}

.howto {
  margin-top: 18px;
}

.howto summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--brand);
}

.howto p {
  color: var(--muted);
  line-height: 1.65;
}

.footer {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.9fr;
  gap: 20px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 4px;
}

.footer__content {
  grid-column: 2;
  justify-self: center;
  text-align: center;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(13, 94, 166, 0.08);
  padding: 2px 6px;
  border-radius: 7px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 1020px) {
  body {
    padding-bottom: 140px;
  }

  .game-layout,
  .footer {
    grid-template-columns: 1fr;
  }

  .footer__content {
    grid-column: 1;
  }
}
@media (max-width: 680px) {
  body {
    padding: 18px 12px 120px;
    background-size: min(1600px, 165%) auto, auto, auto, auto;
  }

  .card {
    padding: 18px;
    border-radius: 22px;
  }

  .guess-form {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
.difficulty-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-2);
  border: 1px solid rgba(244, 124, 32, 0.18);
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.difficulty-control[hidden] {
  display: none;
}

.difficulty-control legend {
  padding: 0;
  margin-right: 2px;
}

.difficulty-checklist {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.difficulty-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(13, 94, 166, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  cursor: pointer;
  line-height: 1;
}

.difficulty-option--all {
  color: var(--brand-2);
  background: rgba(244, 124, 32, 0.1);
}

.difficulty-option input {
  accent-color: var(--accent);
  cursor: pointer;
}

.example[hidden] {
  display: none;
}

.word-clue {
  font-weight: 800;
  color: var(--brand-2);
}
