:root {
  --midnight: #05255f;
  --midnight-deep: #031538;
  --peacock: #0b4778;
  --aubergine: #641268;
  --rose: #c77491;
  --yellow: #d5a62e;
  --coral: #db8d66;
  --bronze: #8a7863;
  --gallery-white: #ffffff;
  --ink: #141827;
  --paper: #f8f5ec;
  --line: rgba(255, 255, 255, 0.17);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.26);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gallery-white);
  background:
    radial-gradient(circle at 80% 12%, rgba(100, 18, 104, 0.4), transparent 34rem),
    radial-gradient(circle at 8% 80%, rgba(11, 71, 120, 0.65), transparent 32rem),
    var(--midnight-deep);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button { font: inherit; }

.museum-header {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.4rem 0 1rem;
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.brand-mark {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(213,166,46,.12), inset 0 0 18px rgba(255,255,255,.12);
  color: #ffe9a7;
  font-family: Georgia, serif;
  font-weight: 700;
  letter-spacing: .04em;
}

.eyebrow {
  margin: 0 0 .2rem;
  color: #d7eaff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2 { font-family: Georgia, "Times New Roman", serif; }
h1 { margin: 0; font-size: clamp(1.55rem, 4vw, 2.5rem); font-weight: 500; }

.age-range {
  width: fit-content;
  margin: .45rem 0 0;
  padding: .28rem .65rem;
  border: 1px solid rgba(255,233,167,.55);
  border-radius: 999px;
  color: #fff3c7;
  background: rgba(100,18,104,.48);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.gallery-layout {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.game-shelf {
  position: sticky;
  top: 1rem;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(5, 37, 95, .72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.shelf-label {
  margin: .2rem .35rem .7rem;
  color: #c9dbf6;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.game-tabs { display: grid; gap: .45rem; }

.game-tab {
  width: 100%;
  min-height: 2.85rem;
  display: flex;
  gap: .65rem;
  align-items: center;
  border: 1px solid transparent;
  border-radius: .7rem;
  padding: .6rem .7rem;
  color: #ecf5ff;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.game-tab span {
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  flex: 0 0 1.75rem;
  place-items: center;
}
.game-tab span img { width: 100%; height: 100%; object-fit: contain; }
.game-tab:hover { background: rgba(255,255,255,.08); }
.game-tab.active {
  border-color: rgba(213,166,46,.65);
  background: linear-gradient(115deg, rgba(100,18,104,.75), rgba(11,71,120,.85));
  box-shadow: inset 3px 0 0 var(--yellow);
}

.exhibit-frame {
  min-height: 660px;
  padding: clamp(1rem, 3vw, 2rem);
  color: var(--ink);
  background: var(--paper);
  border: 7px solid #aa916b;
  outline: 2px solid #ead9ae;
  outline-offset: -12px;
  border-radius: .8rem;
  box-shadow: var(--shadow);
}

.game-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
  padding: .15rem .15rem 1rem;
  border-bottom: 1px solid #ded5c2;
}

.game-kicker { margin: 0 0 .25rem; color: var(--aubergine); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.game-head h2 { margin: 0; color: var(--midnight); font-size: clamp(1.55rem, 4vw, 2.35rem); }
.instructions { margin: .45rem 0 0; max-width: 48rem; color: #4c5362; line-height: 1.5; }

.reset-btn, .action-btn {
  min-height: 2.75rem;
  border: 0;
  border-radius: 999px;
  padding: .65rem 1rem;
  color: white;
  background: var(--midnight);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(5,37,95,.2);
}

.reset-btn:hover, .action-btn:hover { background: var(--aubergine); }
.reset-btn:focus-visible, .action-btn:focus-visible, .game-tab:focus-visible, .game-cell:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}

.status {
  min-height: 2rem;
  margin: .8rem 0;
  padding: .55rem .8rem;
  border-left: 4px solid var(--peacock);
  background: #eaf2f9;
  color: #26394c;
  font-weight: 700;
}

.status.win { border-color: var(--yellow); background: #fff4ce; color: #4d3a05; }

.maze-grid {
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 3px;
  margin: 1rem auto;
  padding: .5rem;
  border-radius: .8rem;
  background: #d7cdb9;
}

.maze-cell {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: .28rem;
  background: #fffdf7;
  font-size: clamp(1rem, 4vw, 1.8rem);
}

.maze-cell.wall { background: linear-gradient(135deg, var(--midnight), var(--peacock)); box-shadow: inset 0 0 0 2px rgba(255,255,255,.09); }
.maze-cell.trail { background: #f5dfb2; }
.maze-cell.finish { background: #ede4f3; }

.whimsy-icon {
  display: block;
  width: 72%;
  height: 72%;
  margin: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.arrow-pad {
  width: 12rem;
  margin: 1rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .4rem;
}

.arrow-pad button {
  min-height: 3rem;
  border: 1px solid #c9b990;
  border-radius: .6rem;
  background: white;
  color: var(--midnight);
  font-size: 1.3rem;
  cursor: pointer;
}
.arrow-pad .up { grid-column: 2; }
.arrow-pad .left { grid-column: 1; grid-row: 2; }
.arrow-pad .down { grid-column: 2; grid-row: 2; }
.arrow-pad .right { grid-column: 3; grid-row: 2; }

.memory-grid {
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .65rem;
  margin: 1rem auto;
}

.memory-card {
  aspect-ratio: 1;
  border: 2px solid #c5af7c;
  border-radius: .65rem;
  color: transparent;
  background: linear-gradient(145deg, var(--aubergine), var(--midnight));
  font-size: clamp(1.7rem, 7vw, 3rem);
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(36,25,44,.18);
  transition: transform .18s ease, background .18s ease;
}
.memory-card:hover { transform: translateY(-2px); }
.memory-card.flipped, .memory-card.matched { color: initial; background: #fff; transform: rotateY(0); }
.memory-card.matched { border-color: var(--yellow); background: #fff5cf; }
.memory-card .whimsy-icon { width: 78%; height: 78%; opacity: 0; }
.memory-card.flipped .whimsy-icon,
.memory-card.matched .whimsy-icon { opacity: 1; }

.sudoku-grid {
  width: min(100%, 480px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 1rem auto;
  border: 3px solid var(--midnight);
  background: var(--midnight);
  gap: 2px;
}

.sudoku-cell {
  aspect-ratio: 1;
  border: 0;
  background: #fff;
  font-size: clamp(1.5rem, 7vw, 2.7rem);
  cursor: pointer;
}
.sudoku-cell:nth-child(2n) { border-right: 2px solid var(--midnight); }
.sudoku-cell:nth-child(n+5):nth-child(-n+8) { border-bottom: 2px solid var(--midnight); }
.sudoku-cell.given { background: #e8eef6; cursor: default; }
.sudoku-cell.wrong { background: #ffe4df; }

.legend { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; color: #555; }
.legend span { display: flex; align-items: center; gap: .35rem; padding: .35rem .6rem; border-radius: 999px; background: #eee7d9; }
.legend .whimsy-icon { width: 1.8rem; height: 1.8rem; margin: 0; }

.views {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.view-panel { padding: .75rem; border: 2px solid #b7a175; border-radius: .8rem; background: #eaf1f6; }
.view-panel h3 { margin: 0 0 .6rem; color: var(--midnight); text-align: center; }
.scene-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; }
.scene-object {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(5,37,95,.12);
  border-radius: .45rem;
  background: linear-gradient(135deg, #fff, #e6dff0);
  font-size: clamp(1.4rem, 5vw, 2.6rem);
}
button.scene-object { cursor: pointer; }
button.scene-object.found { outline: 4px solid var(--yellow); background: #fff1b9; }

.difference-progress {
  width: fit-content;
  margin: 0 auto .8rem;
  padding: .5rem .9rem;
  border: 2px solid var(--yellow);
  border-radius: 999px;
  color: var(--midnight);
  background: #fff4bd;
  font-weight: 900;
}

.difference-scenes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.difference-panel {
  padding: .65rem;
  border: 3px solid #b7a175;
  border-radius: 1rem;
  background: linear-gradient(160deg, #ffffff, #e8f7ff);
  box-shadow: 0 9px 20px rgba(5,37,95,.15);
}

.difference-panel h3 {
  margin: 0 0 .5rem;
  color: var(--aubergine);
  text-align: center;
}

.difference-picture {
  position: relative;
  overflow: hidden;
  border-radius: .7rem;
  background: #a9e4ff;
}

.difference-picture img {
  display: block;
  width: 100%;
  height: auto;
}

.difference-hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--spot);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.difference-hotspot:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 2px;
}

.difference-hotspot.found {
  border: 4px solid #ff5a72;
  background: rgba(255,244,189,.28);
  box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 2px 10px rgba(5,37,95,.3);
}

.click-maze {
  width: min(100%, 520px);
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
  margin: 1rem auto;
  padding: .5rem;
  border-radius: .8rem;
  background: #cabfa8;
}
.click-cell {
  aspect-ratio: 1;
  border: 0;
  border-radius: .25rem;
  background: #fffdf7;
  cursor: pointer;
  font-size: clamp(.9rem, 4vw, 1.55rem);
}
.click-cell.wall { background: var(--midnight); cursor: default; }
.click-cell.trail { background: #f1ca68; }
.click-cell.current { box-shadow: inset 0 0 0 4px var(--aubergine); }

.shadow-stage { text-align: center; }
.object-card { margin: 1rem auto; font-size: clamp(4rem, 15vw, 7rem); }
.shadow-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.shadow-option {
  aspect-ratio: 1;
  border: 2px solid #bba779;
  border-radius: .7rem;
  background: #ece5d7;
  font-size: clamp(2.3rem, 9vw, 4.5rem);
  cursor: pointer;
}
.shadow-option .whimsy-icon { width: 82%; height: 82%; filter: grayscale(1) brightness(.08); }
.object-card { width: min(42vw, 190px); aspect-ratio: 1; display: grid; place-items: center; }
.object-card .whimsy-icon { width: 94%; height: 94%; }

.seek-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: .8rem 0; }
.seek-target { display: flex; align-items: center; gap: .35rem; padding: .4rem .6rem; border-radius: 999px; background: #e6dfd2; font-size: .88rem; }
.seek-target .whimsy-icon { width: 2rem; height: 2rem; margin: 0; }
.seek-target.found { opacity: .35; text-decoration: line-through; }
.seek-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: .25rem; }
.seek-item {
  aspect-ratio: 1;
  border: 1px solid rgba(5,37,95,.15);
  border-radius: .35rem;
  background: #eef3f5;
  font-size: clamp(1.1rem, 4vw, 2rem);
  cursor: pointer;
}
.seek-item.found { background: #ffe8a4; outline: 2px solid var(--yellow); }
.seek-item .whimsy-icon { width: 88%; height: 88%; }

.puzzle-grid {
  width: min(100%, 500px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .45rem;
  margin: 1rem auto;
  padding: .65rem;
  border-radius: 1rem;
  background: #cfbea0;
}
.puzzle-tile {
  aspect-ratio: 1;
  border: 0;
  border-radius: .6rem;
  background: linear-gradient(145deg, var(--peacock), var(--aubergine));
  color: white;
  font-size: clamp(2rem, 8vw, 4rem);
  text-shadow: 0 2px 4px rgba(0,0,0,.3);
  box-shadow: 0 5px 12px rgba(0,0,0,.18);
  cursor: pointer;
}
.puzzle-tile.empty { visibility: hidden; }
.puzzle-tile .whimsy-icon { width: 84%; height: 84%; }

.words-layout {
  display: grid;
  grid-template-columns: minmax(180px, 32%) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.wyatt-panel {
  overflow: hidden;
  min-height: 470px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border: 2px solid #b79b63;
  border-radius: 1rem;
  background: linear-gradient(180deg, #102f68, #33183f);
  box-shadow: 0 12px 25px rgba(5,37,95,.18);
}

.wyatt-panel img {
  width: 100%;
  min-height: 0;
  flex: 1;
  object-fit: cover;
  object-position: center top;
}

.wyatt-nameplate {
  padding: .75rem;
  color: white;
  background: rgba(5,37,95,.92);
  text-align: center;
  font-family: Georgia, serif;
  font-size: 1.1rem;
}

.word-console {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.challenge-label {
  margin: 0 0 .4rem;
  color: #555b66;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.challenge-levels,
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.level-btn,
.category-btn {
  min-height: 2.55rem;
  border: 1px solid #bcae91;
  border-radius: 999px;
  padding: .5rem .75rem;
  color: var(--midnight);
  background: white;
  font-weight: 800;
  cursor: pointer;
}

.level-btn.active,
.category-btn.active {
  border-color: var(--aubergine);
  color: white;
  background: var(--aubergine);
}

.mission-card {
  position: relative;
  min-height: 270px;
  display: grid;
  grid-template-columns: minmax(110px, 34%) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: clamp(.9rem, 3vw, 1.35rem);
  border: 3px solid var(--yellow);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 90% 5%, rgba(199,116,145,.22), transparent 12rem),
    linear-gradient(145deg, #fffdf8, #edf3f8);
  box-shadow: 0 8px 20px rgba(40,33,50,.13);
}

.mission-icon {
  display: grid;
  place-items: center;
  min-height: 150px;
  border-radius: .8rem;
  background: linear-gradient(145deg, rgba(11,71,120,.12), rgba(100,18,104,.13));
  font-size: clamp(4.5rem, 13vw, 7rem);
}

.mission-number {
  margin: 0 0 .35rem;
  color: var(--peacock);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mission-prompt {
  margin: 0;
  color: var(--midnight);
  font-family: Georgia, serif;
  font-size: clamp(1.35rem, 4vw, 2.05rem);
  line-height: 1.2;
}

.mission-clue {
  margin: .75rem 0 0;
  padding: .6rem .75rem;
  border-left: 4px solid var(--coral);
  color: #38424e;
  background: #fff3ec;
}

.mission-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}

.mission-actions button {
  min-height: 3rem;
  border: 1px solid #baa881;
  border-radius: .65rem;
  padding: .55rem .7rem;
  color: var(--midnight);
  background: white;
  font-weight: 800;
  cursor: pointer;
}

.mission-actions button.primary {
  border-color: var(--midnight);
  color: white;
  background: var(--midnight);
}

.practice-trail {
  display: flex;
  gap: .4rem;
  align-items: center;
  min-height: 2rem;
  color: #555;
  font-weight: 800;
}

.practice-key { opacity: .22; filter: grayscale(1); }
.practice-key.filled { opacity: 1; filter: none; }

.parent-note {
  margin: .15rem 0 0;
  padding: .7rem .8rem;
  border-radius: .65rem;
  color: #3f4652;
  background: #ebe5d9;
  font-size: .92rem;
  line-height: 1.45;
}

.mystery-mission {
  border-color: var(--rose);
  background:
    radial-gradient(circle at 15% 10%, rgba(213,166,46,.28), transparent 11rem),
    linear-gradient(145deg, #f1e6f4, #e6f3f8);
}

.words-v2 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem;
  border: 5px solid #ffd94a;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 10% 9%, rgba(255,255,255,.95) 0 2.5rem, transparent 2.6rem),
    radial-gradient(circle at 18% 8%, rgba(255,255,255,.88) 0 3.3rem, transparent 3.4rem),
    radial-gradient(circle at 88% 12%, rgba(255,255,255,.9) 0 3.2rem, transparent 3.3rem),
    radial-gradient(circle at 78% 9%, rgba(255,255,255,.8) 0 2.2rem, transparent 2.3rem),
    linear-gradient(155deg, #73ddff 0%, #c4f6ff 38%, #ffe88d 100%);
  box-shadow: 0 16px 36px rgba(5,37,95,.24);
}

.words-v2::before {
  content: '◆  ●  ★  ◆  ●  ★';
  position: absolute;
  z-index: -1;
  top: .2rem;
  left: 50%;
  width: 92%;
  color: rgba(113,34,111,.55);
  font-size: 1.25rem;
  letter-spacing: clamp(.6rem, 3.4vw, 2.1rem);
  text-align: center;
  transform: translateX(-50%);
  white-space: nowrap;
}

.words-v2::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: -8%;
  right: -8%;
  bottom: -4rem;
  height: 14rem;
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(circle at 20% 25%, #ffd94a 0 .8rem, transparent .85rem),
    radial-gradient(circle at 74% 18%, #ff7a76 0 .7rem, transparent .75rem),
    linear-gradient(165deg, #62d69f, #179f8c);
  opacity: .72;
}

.word-topbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  align-items: center;
  margin-bottom: .75rem;
  padding: .7rem .8rem;
  border-radius: .7rem;
  color: var(--midnight);
  background: rgba(255,255,255,.9);
  box-shadow: 0 5px 14px rgba(5,37,95,.12);
}

.word-topbar p { margin-bottom: .15rem; }

.level-cycle {
  min-height: 2.7rem;
  border: 2px solid var(--peacock);
  border-radius: 999px;
  padding: .55rem .8rem;
  color: var(--midnight);
  background: white;
  font-weight: 800;
  cursor: pointer;
}

.picture-round {
  position: relative;
  overflow: hidden;
  border: 4px solid var(--yellow);
  border-radius: 1rem;
  background: #d8edff;
  box-shadow: 0 10px 24px rgba(5,37,95,.18);
}

.picture-collection {
  margin: 0;
  padding: .55rem .8rem;
  color: white;
  background: linear-gradient(90deg, var(--peacock), var(--aubergine));
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.picture-round img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.wyatt-challenge {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: .8rem;
  align-items: center;
  margin: .8rem 0;
}

.wyatt-challenge > img {
  width: 112px;
  height: 112px;
  border: 4px solid var(--coral);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 10%;
  background: var(--midnight);
}

.challenge-bubble {
  position: relative;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: .8rem 1rem;
  border: 3px solid var(--rose);
  border-radius: 1rem;
  background: white;
}

.challenge-bubble::before {
  content: '';
  position: absolute;
  left: -13px;
  top: 42px;
  width: 20px;
  height: 20px;
  border-left: 3px solid var(--rose);
  border-bottom: 3px solid var(--rose);
  background: white;
  transform: rotate(45deg);
}

.simple-word-actions {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .55rem;
}

.simple-word-actions button {
  min-height: 3.1rem;
  border: 2px solid #baa881;
  border-radius: .7rem;
  padding: .55rem .65rem;
  color: var(--midnight);
  background: white;
  font-weight: 900;
  cursor: pointer;
}

.words-v2 .parent-note {
  position: relative;
  padding: .8rem 1rem;
  border: 2px solid rgba(113,34,111,.24);
  border-radius: 1rem;
  background: rgba(255,255,255,.9);
}

.simple-word-actions .primary {
  border-color: var(--midnight);
  color: white;
  background: var(--midnight);
}

footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 1rem 0 1.6rem;
  display: flex;
  justify-content: center;
  gap: .8rem;
  color: #bdd3ee;
  font-size: .85rem;
}

@media (max-width: 820px) {
  .gallery-layout { grid-template-columns: 1fr; }
  .game-shelf { position: static; overflow: hidden; }
  .game-tabs { display: flex; overflow-x: auto; padding-bottom: .25rem; scroll-snap-type: x proximity; }
  .game-tab { min-width: 11rem; scroll-snap-align: start; }
  .exhibit-frame { min-height: 610px; }
}

@media (max-width: 560px) {
  .museum-header, .gallery-layout, footer { width: min(100% - 1rem, 1180px); }
  .museum-header { padding-top: .8rem; }
  .brand-mark { width: 2.8rem; height: 2.8rem; }
  .eyebrow { font-size: .68rem; letter-spacing: .12em; }
  .game-head { display: block; }
  .reset-btn { margin-top: .8rem; }
  .views, .difference-scenes { grid-template-columns: 1fr; }
  .shadow-options { grid-template-columns: repeat(2, 1fr); }
  .seek-grid { grid-template-columns: repeat(6, 1fr); }
  .memory-grid { gap: .4rem; }
  .words-layout { grid-template-columns: 1fr; }
  .wyatt-panel { min-height: 340px; }
  .wyatt-panel img { max-height: 430px; object-position: center 13%; }
  .mission-card { grid-template-columns: 1fr; text-align: center; }
  .mission-icon { min-height: 120px; }
  .mission-actions { grid-template-columns: 1fr; }
  .word-topbar { align-items: stretch; }
  .wyatt-challenge { grid-template-columns: 76px minmax(0, 1fr); }
  .wyatt-challenge > img { width: 76px; height: 76px; }
  .challenge-bubble::before { top: 28px; }
  .simple-word-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
