/* ------------------------------------------------------------------------
   Julia's weekendje weg — design tokens
   A dusk-over-the-Wadden-Sea palette: deep navy, warm dune gold, sea teal.
   ------------------------------------------------------------------------ */

:root {
  --bg: #0b1720;
  --bg-alt: #101f2b;
  --panel: #16283a;
  --panel-raised: #1c3346;
  --border: #2f4a5c;
  --border-strong: #3f6178;

  --gold: #d9a865;
  --gold-bright: #f0c98a;
  --gold-dim: #9c7a48;

  --sea: #5fa8a0;
  --sea-bright: #86c6bd;

  --red: #b3543f;
  --red-bright: #d97355;
  --green: #6fae8c;

  --text: #eaf0f2;
  --text-dim: #a9bcc4;
  --text-faint: #6f8891;

  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Courier New", ui-monospace, monospace;

  --radius: 6px;
  --shadow-panel: 0 10px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  --transition: 200ms ease;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(217, 168, 101, 0.07), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(95, 168, 160, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Subtle grain texture, purely decorative. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: var(--gold-bright);
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--gold-bright);
  margin: 0 0 0.6em;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ------------------------------------------------------------------------
   Top bar: timer + reset
   ------------------------------------------------------------------------ */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
}

.timer {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  text-shadow: 0 0 12px rgba(240, 201, 138, 0.35);
}

.timer-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  display: block;
  margin-bottom: 0.15rem;
}

.reset-link {
  background: none;
  border: none;
  color: var(--text-faint);
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.4rem;
}

.reset-link:hover,
.reset-link:focus-visible {
  color: var(--red-bright);
}

/* ------------------------------------------------------------------------
   Panels / cards — the "objects in the room"
   ------------------------------------------------------------------------ */

.panel {
  background: linear-gradient(160deg, var(--panel-raised), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
}

.puzzle-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.5rem;
  display: block;
}

.puzzle-description p {
  color: var(--text-dim);
  margin: 0 0 1em;
}

.puzzle-description p:last-child {
  margin-bottom: 0;
}

.puzzle-image-wrap {
  margin: 1.25rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.puzzle-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

/* ------------------------------------------------------------------------
   Sudoku puzzle type
   ------------------------------------------------------------------------ */

.puzzle-custom {
  margin: 1.5rem 0;
}

.sudoku-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.sudoku-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  grid-template-rows: repeat(9, minmax(0, 1fr));
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  background: var(--border-strong);
  gap: 1px;
  border: 2px solid var(--border-strong);
  border-radius: 4px;
  overflow: hidden;
}

.sudoku-cell {
  position: relative;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sudoku-cell--box-left { border-left: 2px solid var(--border-strong); }
.sudoku-cell--box-top { border-top: 2px solid var(--border-strong); }
.sudoku-cell--box-right { border-right: 2px solid var(--border-strong); }
.sudoku-cell--box-bottom { border-bottom: 2px solid var(--border-strong); }

.sudoku-cell-digit {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(0.85rem, 3vw, 1.15rem);
  color: var(--text);
}

.sudoku-cell--given {
  background: var(--panel-raised);
}

.sudoku-cell input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(0.85rem, 3vw, 1.15rem);
  text-align: center;
  padding: 0;
}

.sudoku-cell input:focus {
  outline: none;
  background: rgba(240, 201, 138, 0.12);
}

.sudoku-input--correct {
  color: var(--green) !important;
}

.sudoku-input--wrong {
  color: var(--red-bright) !important;
  animation: shake 300ms ease;
}

.sudoku-cell-order {
  position: absolute;
  top: 1px;
  right: 2px;
  font-size: 0.5rem;
  line-height: 1;
  opacity: 0.75;
  font-family: var(--font-body);
  color: inherit;
}

.sudoku-cell--red { background: rgba(224, 106, 80, 0.55); }
.sudoku-cell--teal { background: rgba(95, 190, 180, 0.55); }
.sudoku-cell--gold { background: rgba(232, 173, 58, 0.55); }
.sudoku-cell--purple { background: rgba(173, 136, 230, 0.55); }

.sudoku-cell--red input,
.sudoku-cell--teal input,
.sudoku-cell--gold input,
.sudoku-cell--purple input,
.sudoku-cell--red .sudoku-cell-digit,
.sudoku-cell--teal .sudoku-cell-digit,
.sudoku-cell--gold .sudoku-cell-digit,
.sudoku-cell--purple .sudoku-cell-digit {
  color: #14202a;
}

.sudoku-cell--red .sudoku-cell-order,
.sudoku-cell--teal .sudoku-cell-order,
.sudoku-cell--gold .sudoku-cell-order,
.sudoku-cell--purple .sudoku-cell-order {
  color: #14202a;
  opacity: 0.85;
}

.sudoku-btn-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.lock-legend {
  text-align: center;
}

.lock-legend-label {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin: 0 0 0.6rem;
}

.lock-legend-row {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
}

.lock-dot {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: #14202a;
  border: 2px solid rgba(0, 0, 0, 0.25);
}

.lock-dot--red { background: #d97355; }
.lock-dot--teal { background: #86c6bd; }
.lock-dot--gold { background: #f0c98a; }
.lock-dot--purple { background: #c3a8ea; }

/* ------------------------------------------------------------------------
   Gallery puzzle type
   ------------------------------------------------------------------------ */

.gallery-wrap {
  margin: 0.5rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.75rem;
}

.gallery-thumb {
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-alt);
  aspect-ratio: 1 / 1;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.gallery-thumb img,
.gallery-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(217, 168, 101, 0.3);
  transform: translateY(-2px);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(6, 10, 14, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  animation: fade-in 200ms ease;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox-content {
  position: relative;
  max-width: min(90vw, 640px);
  max-height: 85vh;
}

.gallery-lightbox-media img,
.gallery-lightbox-media svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
}

.gallery-lightbox-close {
  position: absolute;
  top: -0.9rem;
  right: -0.9rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  background: var(--panel-raised);
  color: var(--gold-bright);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus-visible {
  border-color: var(--gold-bright);
  box-shadow: 0 0 14px rgba(240, 201, 138, 0.35);
}

/* ------------------------------------------------------------------------
   LinkedIn-style mini-games (Zip, Queens, Tango)
   ------------------------------------------------------------------------ */

.games-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.game-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--bg-alt);
}

.game-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.game-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold-bright);
  margin: 0;
}

.game-status {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

.game-status--solved {
  color: var(--green);
  border-color: var(--green);
}

.game-btn-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

.game-result {
  min-height: 1.3em;
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.game-result--correct {
  color: var(--green);
}

.game-result--wrong {
  color: var(--red-bright);
}

/* --- Zip --- */

.zip-grid {
  display: grid;
  grid-template-columns: repeat(var(--zip-size), minmax(0, 1fr));
  grid-template-rows: repeat(var(--zip-size), minmax(0, 1fr));
  gap: 2px;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  background: var(--border-strong);
  border: 2px solid var(--border-strong);
  border-radius: 4px;
  overflow: hidden;
}

.zip-cell {
  position: relative;
  background: var(--panel);
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.zip-cell:disabled {
  cursor: default;
}

.zip-cell--checkpoint .zip-checkpoint-num {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold-bright);
}

.zip-cell--visited {
  background: rgba(217, 168, 101, 0.28);
}

.zip-cell--current {
  background: rgba(217, 168, 101, 0.5);
}

.zip-visit-order {
  position: absolute;
  bottom: 2px;
  right: 3px;
  font-size: 0.55rem;
  opacity: 0.8;
  color: var(--text);
}

.zip-cell--wall-top { box-shadow: inset 0 3px 0 0 var(--red-bright); }
.zip-cell--wall-bottom { box-shadow: inset 0 -3px 0 0 var(--red-bright); }
.zip-cell--wall-left { box-shadow: inset 3px 0 0 0 var(--red-bright); }
.zip-cell--wall-right { box-shadow: inset -3px 0 0 0 var(--red-bright); }

/* --- Queens --- */

.queens-grid {
  display: grid;
  grid-template-columns: repeat(var(--queens-size), minmax(0, 1fr));
  grid-template-rows: repeat(var(--queens-size), minmax(0, 1fr));
  gap: 1px;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  background: var(--border-strong);
  border: 2px solid var(--border-strong);
  border-radius: 4px;
  overflow: hidden;
}

.queens-cell {
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #14202a;
}

.queens-cell:disabled {
  cursor: default;
}

.queens-region-0 { background: rgba(217, 168, 101, 0.55); }
.queens-region-1 { background: rgba(95, 190, 180, 0.55); }
.queens-region-2 { background: rgba(224, 106, 80, 0.55); }
.queens-region-3 { background: rgba(173, 136, 230, 0.55); }
.queens-region-4 { background: rgba(111, 174, 140, 0.55); }
.queens-region-5 { background: rgba(120, 150, 220, 0.55); }

/* --- Tango --- */

.tango-grid {
  display: grid;
  grid-template-columns: repeat(var(--tango-size), minmax(0, 1fr));
  grid-template-rows: repeat(var(--tango-size), minmax(0, 1fr));
  gap: 2px;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  background: var(--border-strong);
  border: 2px solid var(--border-strong);
  border-radius: 4px;
  overflow: hidden;
}

.tango-cell {
  position: relative;
  background: var(--panel);
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gold-bright);
}

.tango-cell--given {
  background: var(--panel-raised);
  cursor: default;
}

.tango-cell:disabled {
  cursor: default;
}

.tango-edge-mark {
  position: absolute;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  color: #14202a;
  background: var(--gold-bright);
  border: 1px solid var(--bg);
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.tango-edge-mark--right {
  right: -0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

.tango-edge-mark--bottom {
  bottom: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
}

/* ------------------------------------------------------------------------
   Answer form
   ------------------------------------------------------------------------ */

.answer-form {
  margin-top: 1.5rem;
}

.answer-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}

.answer-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.answer-input {
  flex: 1 1 200px;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  padding: 0.75rem 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.answer-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 168, 101, 0.2), 0 0 16px rgba(217, 168, 101, 0.25);
}

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--gold-dim);
  background: linear-gradient(160deg, #22303c, #16232c);
  color: var(--gold-bright);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover:not(:disabled),
.btn:focus-visible:not(:disabled) {
  box-shadow: 0 0 18px rgba(217, 168, 101, 0.3);
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(160deg, var(--gold-bright), var(--gold));
  color: #201a0f;
  border-color: var(--gold-bright);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-dim);
}

.btn-ghost:hover:not(:disabled),
.btn-ghost:focus-visible:not(:disabled) {
  border-color: var(--gold-dim);
  color: var(--gold-bright);
  box-shadow: none;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.answer-feedback {
  min-height: 1.4em;
  margin-top: 0.7rem;
  font-size: 0.92rem;
}

.answer-feedback--error {
  color: var(--red-bright);
}

/* ------------------------------------------------------------------------
   Hints
   ------------------------------------------------------------------------ */

.hints-section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border);
}

.hints-list {
  margin-bottom: 0.75rem;
}

.hint-revealed {
  color: var(--text-dim);
  font-style: italic;
  padding: 0.6rem 0.8rem;
  margin: 0 0 0.5rem;
  border-left: 2px solid var(--gold-dim);
  background: rgba(217, 168, 101, 0.05);
  animation: fade-in 350ms ease;
}

/* ------------------------------------------------------------------------
   Dev tools (only ever shown on localhost, never on the deployed site)
   ------------------------------------------------------------------------ */

.dev-tools {
  margin-top: 1.25rem;
}

.btn-dev {
  border: 1px dashed #5a6a7a;
  background: transparent;
  color: #7a92a8;
  font-size: 0.8rem;
  padding: 0.5rem 0.9rem;
}

.btn-dev::before {
  content: "DEV \2022\00A0";
  opacity: 0.7;
}

.btn-dev:hover:not(:disabled),
.btn-dev:focus-visible:not(:disabled) {
  border-color: #7a92a8;
  color: #a8c0d6;
  box-shadow: none;
}

/* ------------------------------------------------------------------------
   Success panel
   ------------------------------------------------------------------------ */

.success-panel {
  text-align: center;
  padding: 1.5rem 1rem;
  animation: fade-in 400ms ease;
}

.success-icon {
  font-size: 2.4rem;
  color: var(--green);
  text-shadow: 0 0 24px rgba(111, 174, 140, 0.6);
  margin-bottom: 0.5rem;
}

.success-title {
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.success-sub {
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

/* ------------------------------------------------------------------------
   Puzzle card feedback animations
   ------------------------------------------------------------------------ */

.puzzle-card.shake {
  animation: shake 420ms ease;
}

.puzzle-card.solved {
  border-color: var(--gold);
  box-shadow: var(--shadow-panel), 0 0 30px rgba(217, 168, 101, 0.25);
}

@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------------------
   Landing page
   ------------------------------------------------------------------------ */

.landing {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
}

.landing-title {
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  line-height: 1.15;
}

.landing-sub {
  color: var(--text-dim);
  max-width: 42ch;
  font-size: 1.05rem;
}

.landing-status {
  color: var(--text-faint);
  font-size: 0.9rem;
}

/* ------------------------------------------------------------------------
   Escaped / victory page
   ------------------------------------------------------------------------ */

.victory {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.25rem;
  animation: fade-in 600ms ease;
}

.victory-title {
  font-size: clamp(2rem, 7vw, 3rem);
}

.victory-line {
  color: var(--text-dim);
  font-size: 1.1rem;
  font-style: italic;
  max-width: 40ch;
}

.victory-note {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 48ch;
}

.stat-row {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1rem 0;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--gold-bright);
  text-shadow: 0 0 14px rgba(240, 201, 138, 0.3);
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

/* ------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------ */

.page-footer {
  text-align: center;
  margin-top: auto;
  padding-top: 2rem;
}

/* ------------------------------------------------------------------------
   Verjaardag (birthday celebration) page
   ------------------------------------------------------------------------ */

.letter {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
  padding-top: 1rem;
}

.letter-banner {
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  line-height: 1.25;
}

.letter-card {
  text-align: left;
  max-width: 56ch;
}

.letter-card p {
  color: var(--text-dim);
  margin: 0 0 1em;
}

.letter-card p:last-child {
  margin-bottom: 0;
}

.letter-salutation {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-bright) !important;
}

.song-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.song-lyrics {
  font-style: italic;
  color: var(--text-dim);
  max-width: 42ch;
  line-height: 1.7;
}

.confetti-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 40;
}

.confetti-piece {
  position: absolute;
  top: -5%;
  width: 0.55rem;
  height: 1rem;
  opacity: 0.9;
  animation-name: confetti-fall;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
}

@keyframes confetti-fall {
  from {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.95;
  }
  to {
    transform: translate(var(--drift), 105vh) rotate(var(--spin));
    opacity: 0.6;
  }
}

/* ------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------ */

@media (min-width: 640px) {
  .container {
    padding-top: 3rem;
  }

  .panel {
    padding: 2.25rem 2.5rem;
  }
}

/* ------------------------------------------------------------------------
   Accessibility
   ------------------------------------------------------------------------ */

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------------------
   Print (used by the "Print sudoku" button, and Ctrl/Cmd+P in general)
   Hides all interactive chrome and prints just the puzzle, on a clean
   white page - colored cells keep their color so the lock-legend hint
   still works from the printout.
   ------------------------------------------------------------------------ */

@media print {
  body::before {
    display: none;
  }

  body {
    background: #fff;
    color: #111;
  }

  .no-print {
    display: none !important;
  }

  .container {
    max-width: 100%;
    padding: 0;
    min-height: 0;
  }

  .panel {
    background: #fff;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  h1, .puzzle-eyebrow, .puzzle-description p {
    color: #111;
  }

  .sudoku-grid {
    max-width: 100%;
    width: 100%;
    border-color: #111;
    background: #111;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .sudoku-cell {
    background: #fff;
  }

  .sudoku-cell--given {
    background: #eee;
  }

  /* Re-assert the code-cell tints after the plain-white reset above, so
     the printout keeps the same color hint as the on-screen version. */
  .sudoku-cell--red,
  .sudoku-cell--teal,
  .sudoku-cell--gold,
  .sudoku-cell--purple {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .sudoku-cell--red { background: rgba(224, 106, 80, 0.35); }
  .sudoku-cell--teal { background: rgba(95, 190, 180, 0.35); }
  .sudoku-cell--gold { background: rgba(232, 173, 58, 0.4); }
  .sudoku-cell--purple { background: rgba(173, 136, 230, 0.35); }

  .sudoku-cell-digit,
  .sudoku-cell input {
    color: #111;
  }

  .sudoku-cell--box-left,
  .sudoku-cell--box-top,
  .sudoku-cell--box-right,
  .sudoku-cell--box-bottom {
    border-color: #111 !important;
  }

  .lock-dot {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    border-color: rgba(0, 0, 0, 0.4);
  }
}
