@font-face {
  font-family:Baloo;
  src:url('../fonts/baloo.ttf') format('truetype');
  font-style:normal;
  font-weight:400 800;
  font-display:swap
}
:root {
  font-family:Baloo,'Arial Rounded MT Bold',system-ui,sans-serif;
  color:#071b58;
  background:#fff;
  --navy:#071b58;
  --blue:#149fe3;
  --sky:#c7effc;
  --teal:#16b8ae;
  --coral:#fb5d5e;
  --yellow:#ffdb3c;
  --shadow:0 4px 0 rgba(7,27,88,.12)
}
:root {
  --safe-top:env(safe-area-inset-top,0px);
  --safe-right:env(safe-area-inset-right,0px);
  --safe-bottom:env(safe-area-inset-bottom,0px);
  --safe-left:env(safe-area-inset-left,0px)
}
* {
  box-sizing:border-box
}
html,body {
  margin:0;
  min-height:100%;
  overflow-x:hidden
}
body {
  min-height:100svh;
  -webkit-tap-highlight-color:transparent
}
button,input {
  font:inherit
}
button {
  border:0;
  color:inherit;
  cursor:pointer;
  touch-action:manipulation
}
button:focus-visible,input:focus-visible {
  outline:4px solid #071b58;
  outline-offset:3px
}
button:disabled {
  cursor:default
}
[hidden] {
  display:none!important
}
img {
  max-width:100%
}
h1,h2,p {
  margin:0
}
svg {
  display:block
}
.visually-hidden {
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important
}
.screen {
  display:none;
  min-height:100svh;
  --screen-space:clamp(12px,2vw,28px);
  padding:max(var(--screen-space),var(--safe-top)) max(var(--screen-space),var(--safe-right)) max(var(--screen-space),var(--safe-bottom)) max(var(--screen-space),var(--safe-left));
  flex-direction:column
}
.screen.active {
  display:flex
}
#start {
  max-width:1540px;
  margin:auto;
  gap:clamp(12px,1.5vw,24px)
}
.start-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:78px
}
.brand {
  display:flex;
  align-items:center;
  min-width:0;
  gap:12px
}
.brand-mark {
  width:clamp(62px,8vw,112px);
  height:72px;
  object-fit:contain
}
.brand h1 {
  font-weight:800;
  font-size:clamp(2rem,4.5vw,4.8rem);
  line-height:.95;
  letter-spacing:-.035em;
  white-space:nowrap
}
.brand h1:after,.album-title:after,.game-mode-title:after {
  content:'';
  display:block;
  width:55%;
  height:7px;
  border-radius:50%;
  background:#ffbf00;
  margin:5px auto 0;
  transform:rotate(-2deg)
}
.start-nav {
  display:flex;
  gap:clamp(10px,2vw,32px);
  align-items:center;
  flex:none
}
.album-btn,.parents-btn,.home-btn,.album-pill {
  min-height:54px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:800;
  font-size:clamp(1rem,2vw,1.7rem);
  white-space:nowrap
}
.album-btn,.album-pill {
  background:linear-gradient(#83e6fa,#47c9ed);
  box-shadow:inset 0 -4px 0 #18a7d2;
  padding:0 22px 0 7px
}
.album-btn img,.album-pill img {
  width:63px;
  height:63px;
  object-fit:contain;
  margin:-8px 0
}
.parents-btn,.home-btn {
  background:#e7f5fc;
  padding:8px 20px
}
.parents-btn svg,.home-btn svg {
  width:1.15em;
  height:1.15em;
  flex:none
}
.home-main {
  display:grid;
  grid-template-columns:minmax(0,.43fr) minmax(0,.57fr);
  gap:clamp(10px,1.5vw,24px);
  flex:1;
  min-height:0
}
.home-intro {
  position:relative;
  display:flex;
  flex-direction:column;
  min-width:0;
  justify-content:flex-start
}
.home-intro h2 {
  position:relative;
  z-index:1;
  align-self:flex-start;
  margin:3% 0 0 9%;
  font-size:clamp(2.5rem,5.1vw,5.7rem);
  font-weight:800;
  letter-spacing:-.04em;
  line-height:.95;
  transform:rotate(-5deg)
}
.explorer-world {
  display:block;
  width:100%;
  flex:1;
  min-height:0;
  object-fit:contain;
  object-position:center bottom;
  margin-top:-2%
}
.mode-buttons {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:1fr 1fr .86fr;
  gap:clamp(9px,1vw,16px);
  min-height:0
}
.mode-btn {
  position:relative;
  display:flex;
  min-width:0;
  min-height:0;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  padding:clamp(8px,1.1vw,18px);
  border-radius:clamp(22px,2.7vw,38px);
  font-weight:800;
  line-height:1;
  overflow:hidden;
  box-shadow:inset 0 3px 0 #ffffff45,inset 0 -5px 0 #00000012;
  transition:transform .12s ease
}
.mode-btn:active {
  transform:scale(.98)
}
.flags-btn {
  background:linear-gradient(#26acec,#078bd1);
  color:#fff
}
.detective-btn {
  background:linear-gradient(#ff7470,#f04f52);
  color:#fff
}
.read-btn {
  background:linear-gradient(#ffe26b,#ffcf32)
}
.sounds-btn {
  background:linear-gradient(#48c8ba,#0da49c);
  color:#fff
}
.globe-btn {
  grid-column:1/-1;
  background:linear-gradient(#aaf2f0,#5bd4d6);
  flex-direction:row;
  justify-content:space-around
}
.mode-name {
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  font-size:clamp(1.35rem,3vw,3.1rem);
  letter-spacing:-.025em;
  text-align:center;
  text-shadow:0 3px 1px #0002
}
.mode-name svg {
  width:.8em;
  height:.8em
}
.read-btn .mode-name,.globe-btn .mode-name {
  text-shadow:none
}
.mode-lock {
  display:none;
  background:#fff4d5;
  border-radius:999px;
  padding:5px 18px;
  font-size:clamp(.85rem,1.7vw,1.7rem);
  line-height:1.05
}
.mode-btn.locked .mode-lock {
  display:block
}
.mode-btn:not(.locked) .mode-name svg {
  display:none
}
.mode-visual {
  height:clamp(65px,10vw,150px);
  width:90%;
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:6px
}
.card-flag,.flag-pole img {
  object-fit:contain;
  width:100%;
  height:100%;
  border-radius:3px;
  box-shadow:0 5px 7px #07325d38
}
.flag-pole {
  position:relative;
  display:block;
  width:54%;
  height:70%;
  transform:rotate(-5deg)
}
.flag-pole:before {
  content:'';
  position:absolute;
  left:-7px;
  top:-8%;
  bottom:-15%;
  width:7px;
  border-radius:5px;
  background:linear-gradient(90deg,#b57200,#ffd751,#c98500)
}
.flag-pole:after {
  content:'';
  position:absolute;
  left:-10px;
  top:-13%;
  width:13px;
  height:13px;
  border-radius:50%;
  background:#ffbe10;
  box-shadow:inset 0 -2px 0 #b57600
}
.detective-visual .card-flag {
  width:55%;
  height:65%;
  transform:rotate(-5deg)
}
.detective-visual svg {
  position:absolute;
  width:50%;
  height:95%;
  color:#005086;
  filter:drop-shadow(2px 3px 0 #40b9e7)
}
.word-card,.letter-card {
  display:grid;
  place-items:center;
  border-radius:16px;
  background:#fff9e9;
  box-shadow:0 4px 0 #b69d6780;
  color:var(--navy);
  transform:rotate(-5deg);
  font-weight:800
}
.word-card {
  font-size:clamp(1.1rem,2.5vw,2.7rem);
  padding:10px 15px
}
.letter-card {
  font-size:clamp(2.4rem,5vw,5rem);
  width:clamp(55px,7vw,105px);
  height:clamp(55px,7vw,105px)
}
.read-visual .flag-pole,.sounds-visual .flag-pole {
  width:43%
}
.find-visual {
  position:relative;
  width:38%;
  height:100%;
  max-height:165px
}
.find-visual img {
  width:100%;
  height:100%;
  object-fit:contain
}
.find-visual svg {
  position:absolute;
  height:45%;
  top:0;
  left:42%;
  filter:drop-shadow(0 3px 2px #063f6555)
}
.find-copy {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  min-width:0
}
.find-copy .mode-name {
  font-size:clamp(2rem,4.7vw,4.7rem)
}
.adventure {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  background:#d9f5fb;
  border-radius:999px;
  padding:11px 25px;
  font-weight:800;
  font-size:clamp(1rem,2vw,1.8rem);
  line-height:1.1
}
.adventure strong,.adventure span {
  white-space:nowrap
}
.adventure progress {
  width:100%;
  height:24px;
  min-width:40px;
  appearance:none;
  border:2px solid #fff;
  border-radius:99px;
  overflow:hidden;
  background:#b8dce9
}
.adventure progress::-webkit-progress-bar {
  background:#b8dce9
}
.adventure progress::-webkit-progress-value {
  background:#14b9b0;
  border-radius:99px
}
.adventure progress::-moz-progress-bar {
  background:#14b9b0;
  border-radius:99px
}
#game {
  gap:16px;
  max-width:1280px;
  margin:auto
}
.game-top {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,auto) minmax(0,1fr);
  align-items:center;
  gap:12px
}
.game-top .home-btn {
  justify-self:start
}
.game-top .album-pill {
  justify-self:end
}
.game-top .home-btn,.game-top .album-pill {
  min-width:0;
  max-width:100%;
  white-space:normal
}
.game-top .album-pill img { flex:none }
.game-mode-title {
  font-size:clamp(2.2rem,4vw,3.9rem);
  font-weight:800;
  line-height:1;
  text-align:center;
  min-width:0;
  overflow-wrap:anywhere
}
.play-layout {
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:clamp(20px,3vw,48px);
  align-items:start
}
.question-panel {
  display:flex;
  flex-direction:column;
  align-items:center;
  min-width:0
}
.question-panel h2 {
  max-width:100%;
  border-radius:999px;
  background:#c9effb;
  padding:9px 25px;
  font-size:clamp(1.6rem,3vw,2.7rem);
  font-weight:800;
  line-height:1.1;
  text-align:center
}
.flag-wrap {
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin:14px 0 0
}
.flag-wrap #flag {
  display:block;
  max-width:min(78%,360px);
  width:auto;
  max-height:210px;
  object-fit:contain;
  border:2px solid #aebac1;
  border-radius:12px;
  background:#fff
}
.controls {
  display:flex;
  justify-content:center;
  margin-top:12px
}
.sound-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:45px;
  padding:6px 20px;
  border-radius:999px;
  background:#c8effb;
  font-size:clamp(1rem,1.8vw,1.5rem);
  font-weight:800;
  line-height:1.1
}
.sound-button svg {
  width:1.3em;
  height:1.3em;
  flex:none
}
#mic {
  display:none!important
}
#message {
  min-height:1.5em;
  margin:10px 0;
  font-size:clamp(1rem,1.6vw,1.3rem);
  font-weight:700;
  text-align:center;
  line-height:1.2
}
#note {
  display:none;
  text-align:center;
  font-size:.95rem;
  margin-bottom:8px
}
.choices {
  display:grid;
  grid-template-columns:1fr;
  width:100%;
  gap:10px
}
.choice {
  min-height:70px;
  border-radius:24px;
  padding:8px 18px;
  background:#17b9ae;
  color:var(--navy);
  box-shadow:inset 0 -4px 0 #0002,inset 0 3px 0 #ffffff52;
  font-size:clamp(1.5rem,3vw,2.6rem);
  font-weight:800;
  line-height:1.05;
  transition:transform .1s
}
.choice:nth-child(3n+2) {
  background:#ffda38;
  color:var(--navy)
}
.choice:nth-child(3n) {
  background:#fc605f;
  color:var(--navy)
}
.choice:active {
  transform:scale(.98)
}
.choice.right {
  background:#08b094;
  color:var(--navy)
}
.choice.wrong {
  opacity:.55
}
.choices.flag-choices,.choices.big-choices {
  grid-template-columns:repeat(3,minmax(0,1fr))
}
.choices.flag-choices .choice {
  height:110px;
  min-height:0;
  padding:8px
}
.choice img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:5px;
  pointer-events:none
}
.choices.big-choices .choice {
  font-size:clamp(2rem,4vw,3.5rem)
}
.letter-choices .choice {
  white-space:nowrap
}
.prompt-art {
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:clamp(4rem,8vw,7rem);
  line-height:1
}
.prompt-art .swatch,.prompt-art .ring {
  display:block;
  width:120px;
  height:120px;
  border-radius:50%;
  box-shadow:0 5px 12px #071b5825
}
.prompt-art .swatch {
  border:5px solid white
}
.prompt-art .swatch.white {
  border-color:#c9d4d8
}
.prompt-art .ring {
  border:16px solid var(--navy);
  background:white
}
.prompt-word {
  max-width:100%;
  padding:12px 24px;
  border-radius:20px;
  background:#fff9e9;
  box-shadow:0 5px 12px #071b5825;
  font-size:clamp(2.2rem,5vw,4rem);
  font-weight:800;
  line-height:1.1;
  text-align:center;
  overflow-wrap:anywhere
}
.prompt-word.long {
  font-size:clamp(1.6rem,3vw,2.6rem)
}
.globe-panel {
  min-width:0;
  text-align:center
}
.globe-toolbar {
  display:flex;
  justify-content:flex-end
}
.quiet-button {
  min-height:40px;
  border-radius:999px;
  padding:6px 16px;
  background:#e7f6fb;
  font-weight:700
}
#globe-host {
  width:100%;
  height:clamp(300px,42vw,510px);
  position:relative;
  overflow:hidden;
  isolation:isolate;
  border-radius:24px;
  background:#dff7ff
}
#globe-host .globe-stage,#globe-host .globe-map-shell {
  position:absolute;
  inset:0;
  overflow:hidden
}
#globe-host .globe-stage {
  cursor:grab;
  touch-action:none
}
#globe-host canvas {
  display:block;
  touch-action:none
}
#globe-host .globe-pin,#globe-host .globe-map-marker {
  position:relative;
  width:0;
  height:0;
  pointer-events:none
}
#globe-host .globe-pin-dot {
  position:absolute;
  left:-10px;
  bottom:-10px;
  width:20px;
  height:20px;
  border:3px solid #fff;
  border-radius:50%;
  background:#f53c68;
  box-shadow:0 1px 0 2px #ad1742
}
#globe-host .globe-pin-label,#globe-host .globe-map-label {
  position:absolute;
  padding:.34rem .65rem;
  border:2px solid #fff;
  border-radius:999px;
  background:#172a56;
  color:#fff;
  font:700 14px/1.15 system-ui,sans-serif;
  width:max-content;
  max-width:15rem;
  text-align:center;
  white-space:normal
}
#globe-host .globe-pin-label {
  left:0;
  bottom:22px;
  transform:translateX(calc(-50% + var(--globe-label-shift,0px)))
}
#globe-host .globe-pin-near-top .globe-pin-label {
  bottom:auto;
  top:22px
}
#globe-host .globe-map-inner {
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%)
}
#globe-host .globe-map-inner svg {
  width:100%;
  height:100%;
  display:block
}
#globe-host .globe-map-marker {
  position:absolute
}
#globe-host .globe-map-label {
  transform:translate(-50%,-100%)
}
#globe-host .globe-map-label-below {
  transform:translate(-50%,0)
}
#globe-host .globe-map-status {
  position:absolute;
  z-index:2;
  left:.75rem;
  bottom:.75rem;
  padding:.3rem .55rem;
  border-radius:99px;
  background:#172a56;
  color:white;
  font:700 12px/1.2 system-ui,sans-serif
}
#globe-host .globe-tap-mark {
  position:absolute;
  z-index:1;
  width:18px;
  height:18px;
  margin:-9px;
  border-radius:50%;
  background:#ff3d7f;
  border:3px solid #fff;
  pointer-events:none
}
#globe-caption {
  display:inline-block;
  margin:12px 0 0;
  padding:6px 15px;
  border-radius:99px;
  background:#c9effb;
  font-weight:800;
  line-height:1.15
}
#reveal-card {
  margin:8px 0
}
#reveal-country {
  font-size:2rem;
  line-height:1.1
}
#reveal-continent {
  font-size:1.1rem
}
.reveal-actions {
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px
}
#next-flag,.wake {
  min-height:45px;
  padding:8px 22px;
  border-radius:999px;
  background:#ffdb3c;
  font-weight:800;
  font-size:1.15rem
}
#next-flag:disabled,.reveal-actions button:disabled {
  opacity:.5
}
#album {
  align-items:center;
  max-width:650px;
  margin:auto;
  gap:12px
}
.album-top {
  width:100%;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:start
}
.album-top .home-btn {
  justify-self:start
}
.album-title {
  text-align:center;
  font-size:clamp(2.5rem,5vw,4.5rem);
  font-weight:800;
  line-height:1
}
.album-art {
  width:min(100%,600px);
  height:200px;
  object-fit:contain;
  object-position:center bottom
}
.album-count,.album-help {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  max-width:600px;
  padding:8px 18px;
  border-radius:999px;
  background:#c9effb;
  font-size:clamp(1.2rem,2.5vw,2rem);
  font-weight:800;
  line-height:1.1;
  text-align:center
}
.album-help {
  font-size:1.1rem
}
.album-help svg {
  width:1.5em;
  height:1.5em
}
.album-grid {
  width:100%;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px
}
.album-tile {
  position:relative;
  min-width:0;
  min-height:150px;
  padding:12px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  border:4px dashed #ffbd40;
  border-radius:18px;
  background:#ffe477;
  font-weight:800;
  font-size:1.3rem;
  line-height:1.05
}
.album-tile:nth-child(even) {
  background:#abedfa;
  border-color:#70cfe8
}
.album-tile img {
  width:100%;
  height:95px;
  object-fit:contain;
  border-radius:6px;
  pointer-events:none
}
.album-tile.locked {
  background:#e7f5fb;
  border-color:#c0e2ec;
  color:#86a9bb;
  font-size:3rem
}
.album-tile .badge {
  position:absolute;
  top:-10px;
  right:-7px;
  font-size:1.7rem
}
.album-name {
  overflow-wrap:anywhere
}
#nap {
  align-items:center;
  justify-content:center;
  gap:16px;
  text-align:center;
  background:linear-gradient(#17265f,#352e7c);
  color:white
}
.sky {
  font-size:2rem;
  letter-spacing:8px
}
.moon {
  font-size:5rem
}
.wake {
  display:none
}
#nap .wake,#nap .parents-btn {
  color:var(--navy)
}
.dialog-backdrop {
  position:fixed;
  inset:0;
  z-index:100;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:calc(12px + var(--safe-top)) calc(12px + var(--safe-right)) calc(12px + var(--safe-bottom)) calc(12px + var(--safe-left));
  background:#06133ba8
}
.parent-dialog {
  width:min(100%,650px);
  max-height:calc(100svh - 24px - var(--safe-top) - var(--safe-bottom));
  overflow:auto;
  border-radius:32px;
  background:#fff;
  padding:clamp(16px,3vw,28px);
  box-shadow:0 12px 35px #071b5833
}
.parent-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px
}
.parent-heading h1,.parent-dialog h1 {
  font-size:clamp(2rem,5vw,3.4rem);
  line-height:1
}
.parent-heading button,.parent-dialog>button,.parent-dialog button:not(.primary) {
  min-height:42px;
  padding:7px 17px;
  border-radius:99px;
  background:#e7f6fb;
  font-weight:800
}
.parent-art {
  display:block;
  width:100%;
  max-height:180px;
  object-fit:contain
}
.parent-dialog h2 {
  font-size:1.6rem;
  line-height:1.1
}
.parent-purchase {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  margin:12px 0;
  padding:16px;
  border-radius:24px;
  background:#d9f7fb;
  text-align:center
}
.parent-purchase .primary,.gate-form button[type=submit] {
  width:100%;
  min-height:52px;
  border-radius:99px;
  background:#fb5d5e;
  color:white;
  font-size:1.3rem;
  font-weight:800;
  box-shadow:inset 0 -4px 0 #cd353e
}
.settings-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin:8px 0;
  padding:10px 16px;
  border-radius:99px;
  background:#faf3e7;
  font-size:1.2rem;
  font-weight:800
}
.settings-row input {
  appearance:none;
  width:56px;
  height:31px;
  border-radius:99px;
  background:#aab2b6;
  position:relative;
  flex:none
}
.settings-row input:checked {
  background:#00b8a2
}
.settings-row input:after {
  content:'';
  position:absolute;
  top:3px;
  left:3px;
  width:25px;
  height:25px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 4px #0003
}
.settings-row input:checked:after {
  left:28px
}
.parent-links {
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px;
  margin-top:14px
}
.notice-actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:18px 0
}
.license-text {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font:1rem/1.5 system-ui,sans-serif;
  margin:18px 0
}
.parent-gate {
  text-align:center
}
.gate-form {
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:18px
}
.gate-form input {
  width:100%;
  min-height:50px;
  border:2px solid #76cfe6;
  border-radius:14px;
  padding:8px 14px;
  color:var(--navy);
  font-size:1.2rem
}
.timer-pill {
  grid-column:1/-1;
  justify-self:center;
  padding:5px 14px;
  border-radius:99px;
  background:#e7f6fb;
  font-weight:800;
  line-height:1
}
.burst {
  position:fixed;
  pointer-events:none;
  font-size:2rem;
  z-index:10;
  animation:fly 1.4s ease-out forwards
}
@keyframes fly {
  to {
    transform:translate(var(--dx),var(--dy)) rotate(var(--rot));
    opacity:0
  }
}
.new-flag {
  position:fixed;
  z-index:11;
  top:18%;
  left:50%;
  display:flex;
  gap:10px;
  padding:10px 16px;
  border-radius:20px;
  background:#fff;
  font-size:2.4rem;
  transform:translateX(-50%);
  animation:new-flag 1.8s ease-out forwards
}
.new-flag img {
  height:64px;
  width:auto
}
@keyframes new-flag {
  0% {
    opacity:0;
    transform:translateX(-50%) scale(.3)
  }
  20% {
    opacity:1;
    transform:translateX(-50%) scale(1.1)
  }
  80% {
    opacity:1
  }
  100% {
    opacity:0;
    transform:translateX(-50%) translateY(-100px)
  }
}
.shake {
  animation:shake .45s ease-in-out
}
@keyframes shake {
  20%,60% {
    transform:translateX(-7px)
  }
  40%,80% {
    transform:translateX(7px)
  }
}
.album-tile.bounce,.album-pill.pulse {
  animation:bounce .5s ease-out
}
@keyframes bounce {
  50% {
    transform:scale(1.1)
  }
}
@media(max-width:700px) {
  .screen {
    --screen-space:12px
  }
  .start-top {
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
    min-height:0
  }
  .brand {
    justify-content:center;
    gap:6px
  }
  .brand-mark {
    width:50px;
    height:44px
  }
  .brand h1 {
    font-size:clamp(1.8rem,7.5vw,2.7rem)
  }
  .brand h1:after {
    height:4px;
    margin-top:3px
  }
  .start-nav {
    justify-content:center;
    gap:12px
  }
  .album-btn,.parents-btn,.home-btn,.album-pill {
    min-height:42px;
    font-size:1rem;
    padding:5px 14px
  }
  .album-btn img,.album-pill img {
    width:43px;
    height:43px;
    margin:-5px 0
  }
  .home-main {
    display:flex;
    flex-direction:column;
    gap:8px
  }
  .home-intro {
    height:155px;
    flex-direction:row;
    align-items:center;
    justify-content:space-between
  }
  .home-intro h2 {
    font-size:clamp(2.15rem,8vw,3rem);
    margin-left:5%;
    flex:none
  }
  .explorer-world {
    width:56%;
    height:100%;
    margin:0;
    object-position:center
  }
  .mode-buttons {
    grid-template-rows:repeat(2,120px) 100px;
    gap:8px
  }
  .mode-btn {
    padding:7px;
    border-radius:20px
  }
  .mode-visual {
    height:65px
  }
  .mode-name {
    font-size:clamp(1.2rem,4.8vw,1.8rem)
  }
  .mode-lock {
    font-size:.83rem;
    padding:4px 12px
  }
  .find-copy .mode-name {
    font-size:2rem
  }
  .find-copy {
    gap:4px
  }
  .find-visual {
    width:38%
  }
  .letter-card {
    width:52px;
    height:52px;
    font-size:2.3rem
  }
  .word-card {
    padding:7px;
    font-size:1.1rem
  }
  .adventure {
    gap:8px;
    padding:9px 13px;
    font-size:.85rem
  }
  .adventure progress {
    height:18px
  }
  .game-top {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px
  }
  .game-mode-title {
    grid-column:1/-1;
    grid-row:1;
    font-size:clamp(1.7rem,7vw,2.6rem)
  }
  .game-top .home-btn,.game-top .album-pill { grid-row:2 }
  .play-layout {
    grid-template-columns:1fr;
    gap:18px
  }
  .question-panel h2 {
    font-size:clamp(1.45rem,6vw,2rem);
    padding:9px 16px
  }
  .flag-wrap #flag {
    max-height:170px
  }
  .choice {
    min-height:62px;
    font-size:1.7rem
  }
  .choices.flag-choices .choice {
    height:85px
  }
  .globe-panel {
    width:100%
  }
  #globe-host {
    height:min(90vw,430px);
    min-height:280px
  }
  .album-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px
  }
  .album-tile {
    min-height:130px;
    font-size:1.1rem
  }
  .album-tile img {
    height:80px
  }
  .album-art {
    height:140px
  }
  .album-title {
    font-size:2.5rem
  }
  .album-top {
    align-items:center
  }
  .album-count {
    font-size:1.25rem
  }
}
@media(max-width:380px) {
  .home-intro {
    height:130px
  }
  .mode-buttons {
    grid-template-rows:repeat(2,112px) 94px
  }
  .adventure {
    font-size:.75rem
  }
  .brand h1 {
    font-size:1.75rem
  }
  .game-top .album-pill img {
    width:32px;
    height:32px
  }
  .game-top .album-pill,.game-top .home-btn {
    font-size:.9rem;
    padding:5px 9px
  }
  .game-mode-title {
    font-size:1.6rem
  }
}
@media(max-width:700px) {
  .home-intro {
    flex:0 0 155px
  }
  .mode-buttons {
    flex:1;
    grid-template-rows:repeat(2,minmax(120px,1fr)) minmax(100px,.8fr)
  }
}
@media(max-width:380px) {
  .home-intro {
    flex-basis:130px
  }
  .mode-buttons {
    grid-template-rows:repeat(2,minmax(112px,1fr)) minmax(94px,.8fr)
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    scroll-behavior:auto!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important
  }
}

/* Dark labels preserve the bright activity palette while meeting text contrast. */
.mode-name { color:var(--navy); text-shadow:none }
.brand h1 { white-space:normal; overflow-wrap:anywhere }
select:focus-visible,summary:focus-visible,[tabindex="-1"]:focus-visible {
  outline:4px solid var(--navy); outline-offset:3px
}
.settings-row select { font:inherit; color:var(--navy); background:#fff; border:2px solid #071b58; border-radius:12px; max-width:60%; min-height:48px; padding:6px }
#flag-description { margin:8px auto 14px; width:min(100%,560px); font-size:1rem }
#flag-description summary { cursor:pointer; padding:12px; min-height:48px; border-radius:16px; background:var(--sky); font-weight:700; text-align:center }
#flag-description p { padding:12px; line-height:1.5 }
#country-name-clue { margin:8px auto 14px; width:min(100%,560px); border:2px solid var(--navy); border-radius:18px; padding:12px; background:#fff }
#country-name-clue summary { cursor:pointer; min-height:48px; padding:10px; font-size:1.2rem; font-weight:800 }
#country-name-clue p { margin:8px 0 14px; line-height:1.4 }
#country-name-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr)); gap:12px }
#country-name-cards figure { margin:0; padding:12px; border-radius:16px; background:var(--sky); text-align:center }
#country-name-cards img { width:100%; height:100px; object-fit:contain }
#country-name-cards figcaption { font-size:1.3rem; font-weight:700; line-height:1.2; overflow-wrap:anywhere }
#country-name-ready { width:100%; min-height:52px; margin-top:14px; padding:10px; border-radius:99px; background:var(--yellow); font-weight:800; font-size:1.2rem }
#complete { align-items:center; justify-content:center; gap:24px; text-align:center; max-width:900px; margin:auto }
#complete h1 { font-size:clamp(2rem,6vw,4rem); line-height:1.1 }
#complete h2 { font-size:clamp(1.5rem,4vw,2rem) }
#complete p { font-size:1.25rem; line-height:1.5; max-width:640px }
.completion-art { width:min(100%,560px); max-height:240px; object-fit:contain }
.map-controls { margin:16px 0; border:2px solid var(--navy); border-radius:18px; padding:12px; color:var(--navy); background:#fff }
.map-controls summary { min-height:48px; padding:10px; font-size:1.2rem; font-weight:800; cursor:pointer }
.map-controls p,.map-controls output { display:block; margin:12px 0; font-size:1rem; line-height:1.5 }
.map-controls button,.map-controls select { font:inherit; color:var(--navy); border-radius:12px; padding:10px; background:var(--sky); border:2px solid var(--navy) }
.map-controls button:disabled { opacity:.5 }
.map-controls .map-step-label { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:12px 0 }
.map-controls .map-navigator { margin:12px 0 }
.map-controls .map-guess { width:100%; font-size:1.25rem; font-weight:800; background:var(--yellow) }
.map-selection-cursor { position:absolute; z-index:8; width:26px; height:26px; border:4px solid #071b58; border-radius:50%; box-shadow:0 0 0 3px #ffdb3c; transform:translate(-50%,-50%); pointer-events:none }
html[data-calm="true"] *,html[data-calm="true"] *:before,html[data-calm="true"] *:after {
  animation:none!important; transition:none!important; scroll-behavior:auto!important
}
