/* Memotests · identidad San Juan Gobierno. Tokens y fuentes: brand/brand.css. */
:root {
  font-family: var(--lora);
  font-synthesis: none;
  --ink: var(--tinta);
  --muted: #6b5546;
  --accent: var(--bordo);
  --accent-bright: var(--naranja);
  --paper: #fff;
  --line: #2b150824;
  --glass: #ffffffb3;
  --shadow: #6c26052b;
  --sombra: 0 12px 36px #2b150812;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overscroll-behavior: none;
}
body.brand-light {
  background: #faf7f2;
}
body {
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}
button,
input {
  font: inherit;
}
button {
  font-family: var(--ubuntu);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button:disabled {
  cursor: default;
}
button,
dialog {
  user-select: none;
  -webkit-user-select: none;
}
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--ubuntu);
  font-weight: 700;
}
h1:focus {
  outline: none;
}
button svg,
span > svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
img {
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
em {
  font-style: normal;
  color: #b84900;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.app {
  position: relative;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px clamp(22px, 3.4vw, 68px) 12px;
  gap: 12px;
  color: var(--ink);
  isolation: isolate;
  overflow: hidden;
}
.world-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--world-image) center / cover;
}
.world-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #faf7f2e6;
}
.welcome-view .world-backdrop::after,
.result-view .world-backdrop::after {
  background:
    linear-gradient(
      90deg,
      #faf7f2fc 0%,
      #faf7f2f5 28%,
      #faf7f2bf 52%,
      #faf7f238 100%
    ),
    linear-gradient(0deg, #faf7f2fa, transparent 35%);
}
.masthead {
  position: relative;
  isolation: isolate;
  --line: #ffffff45;
  --accent-bright: var(--amarillo);
  color: var(--blanco);
  background: var(--naranja);
  height: 88px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 22px;
}
.masthead::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -30px -100vw 0;
  background: var(--naranja);
  pointer-events: none;
}
.ministry-logo {
  width: clamp(300px, 29vw, 480px);
  height: 70px;
  object-position: left center;
  flex-shrink: 0;
}
.ministry-logo.security-logo {
  width: clamp(390px, 37vw, 560px);
  height: 98px;
}
.event-label {
  font: 500 12px var(--ubuntu);
  letter-spacing: 1.8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.event-label span {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 7px 11px;
}
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-width: 110px;
}
.icon-button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #fff;
  background: #ffffff12;
  display: grid;
  place-items: center;
  transition:
    background 0.2s,
    transform 0.2s;
}
.icon-button:hover {
  background: #ffffff28;
  transform: translateY(-2px);
}
.icon-button svg {
  width: 21px;
  height: 21px;
}
.operator-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 44px;
  height: 48px;
  border: 0;
  background: none;
  color: #fff;
  border-radius: 50%;
}
.operator-trigger span {
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.operator-trigger.holding:after {
  content: "";
  position: absolute;
  inset: 1px;
  border: 3px solid var(--amarillo);
  border-radius: 50%;
  animation: hold-ring 3s linear both;
}
.eyebrow {
  font: 700 10px/1.6 var(--ubuntu);
  letter-spacing: 1.8px;
  color: var(--accent);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: var(--glass);
  border-radius: 40px;
  padding: 10px 16px;
  font: 500 12px var(--ubuntu);
  letter-spacing: 1px;
  width: max-content;
  max-width: 100%;
}
.tag svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}
.button {
  border: 0;
  border-radius: 999px;
  min-height: 62px;
  padding: 16px 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font: 500 20px var(--ubuntu);
  text-decoration: none;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.button:hover {
  transform: translateY(-3px);
}
.button:active {
  transform: scale(0.97);
}
.button.primary {
  color: var(--tinta);
  background: var(--amarillo);
  box-shadow: 0 8px 24px #6c260530;
}
.button.primary:hover {
  box-shadow: 0 12px 30px #6c26053d;
}
.button.secondary {
  background: #fff;
  color: var(--tinta);
  border: 1px solid #2b150833;
  font-size: 15px;
  gap: 8px;
  min-height: 52px;
}
.text-button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  border: 0;
  background: none;
  color: var(--ink);
  padding: 15px 4px;
  font: 400 15px var(--ubuntu);
}
.text-button svg {
  width: 17px;
  height: 17px;
}
/* Texto largo siempre en panel blanco, con tinta oscura. */
.board-panel,
.discovery-panel,
.result-collection,
.floating-note,
dialog {
  --ink: var(--tinta);
  --muted: #6b4835;
  --accent: var(--bordo);
  --accent-bright: var(--naranja);
  --paper: #fff;
  --line: #2b150824;
  --glass: #fff;
  color: var(--ink);
}
.welcome {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  column-gap: 4vw;
}
.welcome-copy {
  align-self: center;
  position: relative;
  z-index: 1;
  padding: 10px 0;
}
.welcome h1 {
  font-size: clamp(48px, 5.1vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 24px 0;
}
.welcome-guide {
  gap: 18px;
  align-items: center;
  max-width: 660px;
}
.welcome-guide .globo {
  font: 400 clamp(15px, 1.05vw, 21px)/1.45 var(--lora);
  padding: 18px 22px;
  border-radius: 20px;
}
.welcome-guide .globo b {
  display: block;
  margin-bottom: 5px;
}
.start-button {
  margin-top: 28px;
  min-width: 285px;
}
.welcome-meta {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 22px;
  font: 400 13px var(--ubuntu);
}
.welcome-meta > span:first-child {
  display: flex;
  gap: 7px;
  align-items: center;
}
.welcome-meta svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
}
.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
}
.welcome-art {
  position: relative;
  align-self: stretch;
  min-height: 0;
}
.hero-orbit {
  position: absolute;
  inset: 10% 1% 10%;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.hero-orbit:before {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  border: 1px dashed #ffffff65;
}
.hero-plinth {
  position: absolute;
  width: 95%;
  height: 90px;
  left: 2%;
  top: 71%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #7c2c054d, transparent 68%);
  filter: blur(4px);
}
.hero-object {
  position: absolute;
  width: 96%;
  height: 83%;
  left: -2%;
  top: 4%;
  filter: drop-shadow(0 22px 18px #6d230533);
  animation: object-float 6s ease-in-out infinite;
}
.secondary-object {
  position: absolute;
  width: 37%;
  height: 39%;
  right: -1%;
  bottom: 7%;
  filter: drop-shadow(0 14px 15px #6d230540);
  animation: object-float 7s -3s ease-in-out infinite;
}
.floating-note {
  position: absolute;
  z-index: 1;
  background: #fff;
  box-shadow: var(--sombra);
  border-radius: 14px;
  font: 400 13px/1.6 var(--lora);
  padding: 14px 18px;
}
.note-top {
  right: 0;
  top: 10%;
  transform: rotate(4deg);
  display: flex;
  align-items: center;
  gap: 12px;
}
.note-top svg {
  color: var(--naranja);
  width: 19px;
  height: 19px;
}
.note-bottom {
  left: 4%;
  bottom: 9%;
  transform: rotate(-4deg);
}
.note-bottom strong {
  font: 700 18px var(--ubuntu);
}
.how-to {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0 8px;
  font: 400 14px var(--ubuntu);
}
.how-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--accent);
}
.how-divider {
  height: 1px;
  width: clamp(20px, 4vw, 80px);
  background: var(--line);
  margin: 0 8px;
}
#app .memotest-footer {
  position: static;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 9px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 400 11px/1.25 var(--ubuntu);
  text-align: left;
}
.memotest-footer > span:nth-child(2) {
  text-align: center;
}
.memotest-footer a {
  white-space: nowrap;
}
/* Tablero compartido sobre fondo claro, con acentos institucionales. */
.play {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.play-heading {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0 20px;
}
.play-heading h1 {
  font-size: clamp(26px, 2.4vw, 46px);
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-top: 5px;
}
.game-metrics {
  display: flex;
  gap: 15px;
  align-items: center;
  background: var(--amarillo);
  color: var(--tinta);
  border-radius: 30px;
  padding: 11px 17px;
  font: 400 14px var(--ubuntu);
  white-space: nowrap;
}
.game-metrics strong {
  font-weight: 700;
}
.metric-separator {
  width: 1px;
  height: 18px;
  background: #2b15082e;
}
#clock {
  font-variant-numeric: tabular-nums;
}
.play-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 24px;
}
.board-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  border-radius: 24px;
  padding: 19px 22px 10px;
  box-shadow: var(--sombra);
}
.board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 15px;
  font: 400 14px var(--ubuntu);
}
.board-instruction {
  display: flex;
  align-items: center;
  gap: 8px;
}
.board-instruction svg {
  width: 18px;
  height: 18px;
  color: var(--naranja);
}
.pair-count {
  padding: 5px 11px;
  background: var(--amarillo);
  color: var(--tinta);
  border-radius: 25px;
  font: 400 14px var(--ubuntu);
  white-space: nowrap;
}
.pair-count strong {
  font-size: 18px;
  font-weight: 700;
}
.memory-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 16px);
}
.memory-grid.quick-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 8px;
}
.memory-tile {
  background: none;
  border: 0;
  padding: 0;
  position: relative;
  perspective: 1000px;
  min-width: 0;
  min-height: 0;
  isolation: isolate;
  outline-offset: 3px;
}
.tile-rotator {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.42s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.memory-tile.is-open .tile-rotator {
  transform: rotateY(180deg);
}
.tile-cover,
.tile-face {
  position: absolute;
  inset: 0;
  border-radius: clamp(12px, 1.15vw, 20px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.tile-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: var(--crema);
  border: 2px solid #ff9a1d66;
  box-shadow:
    inset 0 2px 0 #fff,
    0 4px 0 #fdc21f99,
    0 8px 12px #6c26051a;
  color: var(--bordo);
  transition:
    background 0.2s,
    translate 0.2s;
}
.tile-cover:before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid #ec660824;
  border-radius: inherit;
}
.memory-tile:not(:disabled):not(.is-open):hover .tile-cover {
  background: #ffe25466;
  translate: 0 -3px;
}
.cover-emblem {
  border: 1px solid #ec660830;
  width: clamp(32px, 3.4vw, 65px);
  height: clamp(32px, 3.4vw, 65px);
  display: grid;
  place-items: center;
  transform: rotate(45deg);
  border-radius: 12px;
  color: var(--naranja);
}
.cover-emblem svg {
  width: 62%;
  height: 62%;
  transform: rotate(-45deg);
  stroke-width: 1.4;
}
.cover-caption {
  font: 500 clamp(7px, 0.48vw, 10px) var(--ubuntu);
  letter-spacing: 2px;
  margin-top: 12px;
}
.cover-corner {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--naranja);
  opacity: 0.5;
}
.corner-one {
  top: 13px;
  left: 13px;
}
.corner-two {
  right: 13px;
  bottom: 13px;
}
.tile-speck {
  display: none;
}
.tile-face {
  transform: rotateY(180deg);
  background: #fff;
  color: var(--tinta);
  border: 2px solid var(--amarillo-2);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  padding: 5px 6px 9px;
  box-shadow:
    0 4px 0 #ff9a1d66,
    0 8px 12px #6c26051a;
  transition: background 0.3s;
}
.tile-face > img {
  width: 91%;
  height: 100%;
  min-height: 0;
  filter: drop-shadow(0 5px 3px #724b1b16);
}
.tile-label {
  font: 500 clamp(12px, 0.97vw, 19px)/1.1 var(--ubuntu);
  text-align: center;
  max-width: 100%;
  padding: 0 2px;
  position: relative;
  z-index: 1;
}
.match-mark {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bordo);
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.match-mark svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.5;
}
.memory-tile.is-matched .match-mark {
  opacity: 1;
  transform: scale(1);
}
.memory-tile.is-matched .tile-face {
  background: #fff9df;
  border-color: var(--amarillo-2);
}
.board-bottom {
  flex-shrink: 0;
  padding-top: 16px;
}
.progress-track {
  height: 4px;
  background: #ec66081c;
  border-radius: 6px;
  overflow: hidden;
}
.progress-track span {
  display: block;
  background: var(--naranja);
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width 0.5s;
}
#board-message {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 5px 0 3px;
  font: 400 clamp(11px, 0.85vw, 16px)/1.35 var(--ubuntu);
  color: var(--muted);
}
.discovery-panel {
  display: grid;
  grid-template-rows: auto minmax(90px, 1fr) auto auto auto;
  min-height: 0;
  padding: 20px 20px 14px;
  gap: 6px;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--sombra);
}
.scene-heading .eyebrow {
  font-size: 8px;
  letter-spacing: 1.5px;
}
.scene-heading h2 {
  color: var(--naranja);
  font-size: clamp(25px, 2.25vw, 42px);
  font-weight: 500;
  letter-spacing: -1px;
  margin-top: 5px;
}
.featured-discovery {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.discovery-aura {
  position: absolute;
  width: 90%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #ffdf434d, transparent 70%);
  pointer-events: none;
}
.empty-discovery {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
  gap: 20px;
  text-align: center;
  color: var(--muted);
  font: 400 16px/1.5 var(--lora);
}
.empty-discovery > svg {
  width: 70px;
  height: 70px;
  stroke-width: 0.7;
  color: var(--naranja);
}
.discovered-object {
  width: 85%;
  height: 100%;
  filter: drop-shadow(0 16px 12px #6c260526);
  animation: discovery-enter 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.discovery-stamp {
  position: absolute;
  bottom: 5px;
  left: 50%;
  translate: -50% 0;
  white-space: nowrap;
  padding: 6px 11px;
  background: var(--amarillo);
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  font: 500 9px var(--ubuntu);
  letter-spacing: 0.6px;
  color: var(--tinta);
}
.discovery-stamp svg {
  width: 13px;
  height: 13px;
}
.discovery-caption {
  padding: 6px 0 10px;
  min-height: 110px;
}
.discovery-caption .eyebrow {
  font-size: 8px;
  letter-spacing: 1.4px;
}
.discovery-caption h3 {
  font-size: clamp(20px, 1.7vw, 32px);
  font-weight: 500;
  margin: 5px 0 7px;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.discovery-caption p {
  font: 400 clamp(12px, 0.96vw, 18px)/1.5 var(--lora);
  max-width: 420px;
}
.discovery-shelf {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  padding: 8px 0;
}
.shelf-slot {
  height: clamp(36px, 5.3vh, 62px);
  position: relative;
  display: grid;
  place-items: center;
  border-bottom: 2px solid #ec660822;
  border-radius: 9px 9px 0 0;
  background: #fff4dc80;
  transition: background 0.3s;
}
.shelf-slot > span:first-child {
  font: 400 11px var(--ubuntu);
  color: var(--muted);
}
.shelf-slot > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  scale: 0.6;
  transition:
    opacity 0.35s,
    scale 0.35s;
}
.shelf-slot.collected {
  background: #ffdf4340;
  border-color: var(--naranja);
}
.shelf-slot.collected > img {
  opacity: 1;
  scale: 1;
}
.shelf-slot.collected > span:first-child {
  visibility: hidden;
}
.scene-footnote {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 400 9px var(--ubuntu);
  color: var(--muted);
  padding-top: 6px;
}
.scene-footnote svg {
  width: 13px;
  height: 13px;
  color: var(--naranja);
}
/* Cierre: mensaje ministerial, sello y regreso automático. */
.result {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  align-items: center;
  padding: 12px 0;
}
.result h1 {
  font-size: clamp(42px, 4.7vw, 88px);
  line-height: 1.03;
  letter-spacing: -0.045em;
  margin: 18px 0;
}
.result-story {
  padding: 16px 20px;
  border-radius: 17px;
  max-width: 620px;
}
.result-description {
  color: var(--tinta);
  font: 400 clamp(15px, 1vw, 20px)/1.5 var(--lora);
}
.result-stats {
  display: flex;
  gap: 30px;
  margin: 22px 0;
}
.result-stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.result-stats strong {
  font: 700 32px/1 var(--ubuntu);
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.result-stats span {
  font: 400 12px var(--ubuntu);
}
.passport {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 20px 0;
}
.passport-stamp {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex-shrink: 0;
  width: 91px;
  height: 91px;
  border-radius: 50%;
  border: 4px double currentColor;
  color: var(--accent);
  font: 700 11px/1.2 var(--ubuntu);
  text-align: center;
  transform: rotate(-7deg);
}
.passport-stamp svg {
  width: 20px;
  height: 20px;
  margin-bottom: 3px;
}
.passport p {
  font: 700 23px var(--ubuntu);
}
.passport p span {
  display: block;
  margin-top: 5px;
  max-width: 350px;
  font: 400 14px/1.4 var(--ubuntu);
}
.result-copy > .text-button {
  display: flex;
  padding: 14px 0 8px;
}
.result-return {
  font: 400 12px var(--ubuntu);
}
.result-collection {
  background: #fff;
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--sombra);
}
.result-items {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px 8px;
  margin: 22px 0;
}
.result-item {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  gap: 8px;
}
.result-item > img {
  width: 100%;
  height: clamp(65px, 8vw, 140px);
  filter: drop-shadow(0 8px 6px #6c26051a);
  animation: discovery-enter 0.65s both;
}
.result-item > span {
  font: 500 clamp(11px, 0.85vw, 16px)/1.2 var(--ubuntu);
}
.collection-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 400 11px var(--ubuntu);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.collection-note svg {
  color: var(--naranja);
  width: 17px;
  height: 17px;
}
.celebration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 4;
}
.celebration i {
  position: absolute;
  width: 8px;
  height: 13px;
  background: var(--amarillo);
  border-radius: 2px;
  left: calc(var(--i) * 5.7%);
  top: -20px;
  opacity: 0;
  animation: confetti-fall 2.5s calc(var(--i) * 0.07s) ease-out both;
}
.celebration i:nth-child(3n) {
  background: #fff;
}
.celebration i:nth-child(3n + 1) {
  background: var(--amarillo-2);
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.selector {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px 0;
}
.selector > h1 {
  font-size: clamp(42px, 4.5vw, 85px);
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin: 15px 0;
}
.selector-intro {
  font: 400 19px var(--ubuntu);
}
.world-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 25px;
}
.world-choice {
  position: relative;
  border: 2px solid #fff;
  min-height: 180px;
  height: clamp(180px, 25vh, 290px);
  border-radius: 24px;
  overflow: hidden;
  text-align: left;
  padding: 24px;
  color: var(--tinta);
  background: #fff;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.world-choice:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra);
}
.choice-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--amarillo);
  color: var(--tinta);
}
.choice-copy {
  position: absolute;
  bottom: 25px;
  left: 26px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.choice-copy .eyebrow {
  color: var(--bordo);
  font-size: 9px;
  letter-spacing: 1px;
}
.choice-copy strong {
  font: 700 40px/1.1 var(--ubuntu);
  letter-spacing: -1px;
}
.choice-copy > span:last-child {
  display: flex;
  align-items: center;
  gap: 15px;
  font: 400 13px var(--ubuntu);
}
.choice-copy svg {
  width: 18px;
  height: 18px;
}
.world-choice > img {
  position: absolute;
  width: 51%;
  height: 95%;
  right: 0;
  bottom: 0;
  filter: drop-shadow(0 15px 10px #0002);
}
.selector-guide {
  margin-top: 24px;
  align-self: center;
  gap: 18px;
  max-width: 780px;
}
.selector-guide .globo {
  font-size: 17px;
  padding: 15px 20px;
}
.loading {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  padding: 25px;
  text-align: center;
}
.loading h1 {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -1px;
}
.loading p:not(.eyebrow) {
  font: 400 17px var(--ubuntu);
}
.loading-orbit {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--amarillo);
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
}
.loading .button {
  margin-top: 10px;
}
body.brand-light > dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  z-index: 10;
}
dialog {
  color: var(--tinta);
  background: #fff;
  border: 0;
  border-radius: 24px;
  padding: 30px;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  box-shadow: 0 30px 100px #39130066;
}
dialog::backdrop {
  background: #2b150899;
  backdrop-filter: blur(8px);
}
dialog h2 {
  color: var(--naranja);
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.8px;
  margin: 10px 0 14px;
}
.dialog-copy {
  font: 400 15px/1.6 var(--lora);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 25px 0 15px;
}
legend {
  font: 700 13px var(--ubuntu);
  margin-bottom: 12px;
}
.setting-option {
  display: flex;
  gap: 13px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
}
.setting-option:has(input:checked) {
  border-color: var(--naranja);
  background: var(--crema);
}
input[type="radio"],
input[type="checkbox"] {
  width: 23px;
  height: 23px;
  accent-color: var(--naranja);
  flex-shrink: 0;
}
.setting-option > span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.setting-option strong {
  font: 500 15px var(--ubuntu);
}
.setting-option small {
  font: 400 12px var(--ubuntu);
  color: var(--muted);
}
.sound-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0 15px;
  font: 400 16px var(--ubuntu);
}
.operator-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.operator-tools .button {
  flex: 1;
  white-space: nowrap;
  font-size: 12px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  padding-bottom: 8px;
}
.dialog-actions .button {
  font-size: 14px;
  min-height: 53px;
  padding: 13px 19px;
  gap: 10px;
}
.dialog-hint {
  margin-top: 20px;
  font: 400 11px/1.5 var(--ubuntu);
  color: var(--muted);
}
.idle-content {
  text-align: center;
  padding: 20px 5px;
}
.idle-content .tag {
  font-size: 9px;
  letter-spacing: 1px;
}
.idle-content .button {
  margin: 25px auto 10px;
}
.idle-content h2 {
  font-size: 38px;
  margin-top: 25px;
}
#operator-notice {
  font: 400 12px/1.5 var(--ubuntu);
  color: var(--muted);
}
@keyframes object-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}
@keyframes discovery-enter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes confetti-fall {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0);
  }
  10% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateY(75vh) rotate(240deg);
  }
}
@keyframes spin {
  to {
    rotate: 360deg;
  }
}
@keyframes hold-ring {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0);
  }
}
@media (min-width: 1600px) and (min-height: 850px) {
  .app {
    padding-top: 22px;
    padding-bottom: 18px;
    gap: 16px;
  }
  .masthead {
    height: 100px;
  }
  .event-label {
    font-size: 14px;
  }
  .eyebrow {
    font-size: 12px;
  }
  .tag {
    font-size: 14px;
    padding: 12px 18px;
  }
  .button {
    font-size: 23px;
    min-height: 74px;
    padding: 18px 35px;
  }
  .welcome-meta {
    font-size: 15px;
  }
  .welcome-guide {
    gap: 24px;
  }
  .welcome-guide .globo {
    font-size: 22px;
    padding: 22px 25px;
  }
  .floating-note {
    font-size: 15px;
    padding: 18px 24px;
  }
  .note-bottom strong {
    font-size: 22px;
  }
  .how-to {
    font-size: 17px;
    padding-bottom: 14px;
    gap: 16px;
  }
  .how-number {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  #app .memotest-footer {
    font-size: 13px;
    padding-top: 12px;
  }
  .play-heading {
    padding: 10px 0 24px;
  }
  .board-panel {
    padding: 24px 28px 14px;
  }
  .board-top {
    font-size: 17px;
    padding-bottom: 22px;
  }
  .pair-count {
    font-size: 16px;
    padding: 7px 14px;
  }
  .pair-count strong {
    font-size: 21px;
  }
  .game-metrics {
    font-size: 16px;
  }
  .discovery-panel {
    gap: 10px;
    padding: 24px;
  }
  .scene-heading .eyebrow {
    font-size: 10px;
  }
  .discovery-caption {
    min-height: 135px;
  }
  .discovery-caption .eyebrow {
    font-size: 10px;
  }
  .discovery-shelf {
    gap: 10px;
  }
  .scene-footnote {
    font-size: 11px;
  }
  .discovery-stamp {
    font-size: 10px;
    padding: 9px 15px;
  }
  .empty-discovery {
    font-size: 22px;
  }
  .empty-discovery > svg {
    width: 95px;
    height: 95px;
  }
  .result-stats strong {
    font-size: 40px;
  }
  .result-stats span {
    font-size: 14px;
  }
  .result-stats {
    gap: 40px;
  }
  .result-collection {
    padding: 32px;
  }
  .collection-note {
    font-size: 14px;
  }
  .result-items {
    gap: 24px 12px;
    margin: 28px 0;
  }
  .passport-stamp {
    width: 100px;
    height: 100px;
    font-size: 12px;
  }
  .passport p {
    font-size: 26px;
  }
  .passport p span {
    font-size: 16px;
  }
  .world-choice {
    padding: 30px;
  }
  .choice-copy {
    left: 30px;
    bottom: 30px;
  }
  .choice-copy strong {
    font-size: 50px;
  }
  .choice-copy .eyebrow {
    font-size: 11px;
  }
  .choice-copy > span:last-child {
    font-size: 15px;
  }
  .selector-guide .globo {
    font-size: 20px;
  }
}
@media (max-height: 760px) and (orientation: landscape) {
  .app {
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 8px;
  }
  .masthead {
    height: 70px;
  }
  .ministry-logo {
    height: 54px;
  }
  .ministry-logo.security-logo {
    height: 76px;
  }
  .event-label {
    font-size: 10px;
  }
  .welcome h1 {
    font-size: 51px;
    margin: 16px 0;
  }
  .welcome-guide {
    gap: 14px;
  }
  .welcome-guide .globo {
    font-size: 14px;
    padding: 12px 16px;
  }
  .start-button {
    margin-top: 20px;
  }
  .welcome-meta {
    margin-top: 17px;
    font-size: 11px;
  }
  .button {
    min-height: 54px;
    font-size: 18px;
  }
  .tag {
    font-size: 10px;
    padding: 8px 13px;
  }
  .how-to {
    font-size: 12px;
    padding: 10px 0 3px;
  }
  #app .memotest-footer {
    font-size: 10px;
    padding-top: 7px;
  }
  .play-heading {
    padding: 7px 0 14px;
  }
  .play-heading h1 {
    font-size: 29px;
  }
  .board-panel {
    padding: 13px 16px 8px;
    border-radius: 20px;
  }
  .board-top {
    padding-bottom: 11px;
    font-size: 12px;
  }
  .board-bottom {
    padding-top: 12px;
  }
  #board-message {
    min-height: 31px;
    font-size: 11px;
  }
  .discovery-panel {
    gap: 4px;
    padding: 14px 16px;
  }
  .scene-heading h2 {
    font-size: 27px;
  }
  .discovery-caption {
    min-height: 92px;
    padding-bottom: 5px;
  }
  .discovery-caption h3 {
    font-size: 22px;
  }
  .discovery-caption p {
    font-size: 12px;
  }
  .discovery-shelf {
    padding: 5px 0;
  }
  .shelf-slot {
    height: 34px;
  }
  .scene-footnote {
    font-size: 8px;
  }
  .empty-discovery {
    font-size: 14px;
    gap: 12px;
  }
  .empty-discovery > svg {
    width: 48px;
    height: 48px;
  }
  .result {
    padding: 4px 0;
    gap: 4vw;
  }
  .result h1 {
    font-size: 43px;
    margin: 13px 0;
  }
  .result-story {
    padding: 12px 16px;
  }
  .result-description {
    font-size: 14px;
  }
  .result-stats {
    margin: 15px 0;
    gap: 28px;
  }
  .result-stats strong {
    font-size: 26px;
  }
  .result-stats span {
    font-size: 10px;
  }
  .passport {
    margin: 14px 0;
    gap: 12px;
  }
  .passport-stamp {
    width: 65px;
    height: 65px;
    font-size: 9px;
    border-width: 3px;
  }
  .passport-stamp svg {
    width: 15px;
    height: 15px;
  }
  .passport p {
    font-size: 20px;
  }
  .passport p span {
    font-size: 12px;
  }
  .result-copy > .text-button {
    font-size: 13px;
    padding: 11px 0 7px;
  }
  .result-return {
    font-size: 10px;
  }
  .result-collection {
    padding: 21px;
  }
  .result-items {
    gap: 15px 5px;
    margin: 15px 0;
  }
  .result-item > img {
    height: 80px;
  }
  .selector > h1 {
    font-size: 52px;
    margin: 10px 0;
  }
  .selector-guide {
    margin-top: 16px;
  }
  .selector-guide .globo {
    font-size: 14px;
  }
}
@media (orientation: portrait) {
  .welcome-view .world-backdrop::after {
    background: linear-gradient(
      180deg,
      #faf7f2fa 0%,
      #faf7f2ed 38%,
      #faf7f240 68%,
      #faf7f2fa 100%
    );
  }
  .result-view .world-backdrop::after {
    background: #faf7f2ed;
  }

  .app {
    padding: 18px 28px 18px;
    gap: 14px;
  }
  .masthead {
    height: 95px;
  }
  .ministry-logo {
    width: 43vw;
    height: 65px;
  }
  .ministry-logo.security-logo {
    width: 48vw;
    height: 90px;
  }
  .event-label {
    font-size: 9px;
    letter-spacing: 0.5px;
    gap: 7px;
  }
  .header-actions {
    min-width: 100px;
  }
  .welcome {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    text-align: center;
  }
  .welcome-copy {
    padding: 20px 0 10px;
  }
  .welcome .tag {
    margin: auto;
  }
  .welcome h1 {
    font-size: clamp(42px, 7.8vw, 84px);
    margin: 22px 0;
  }
  .welcome-guide {
    flex-direction: row;
    gap: 20px;
    margin: auto;
    max-width: 850px;
  }
  .welcome-guide .globo {
    font-size: clamp(15px, 2.4vw, 26px);
    padding: 20px 24px;
  }
  .welcome-guide .globo:before {
    left: -17px;
    top: 50%;
    transform: translateY(-50%);
    border: 18px solid transparent;
    border-right-color: #fff;
    border-left: 0;
  }
  .start-button {
    margin-top: 26px;
  }
  .welcome-meta {
    justify-content: center;
    font-size: 14px;
  }
  .welcome-art {
    width: 83%;
    height: 100%;
    margin: auto;
    min-height: 0;
  }
  .hero-object {
    width: 91%;
    height: 95%;
    top: -3%;
    left: 0;
  }
  .secondary-object {
    width: 33%;
    height: 55%;
    bottom: 0;
    right: 3%;
  }
  .hero-orbit {
    inset: 0 1%;
  }
  .hero-plinth {
    top: 77%;
    height: 60px;
  }
  .note-top {
    top: 10%;
    right: 0;
    font-size: 14px;
  }
  .note-bottom {
    bottom: 9%;
    left: 0;
    font-size: 14px;
  }
  .how-to {
    justify-content: center;
    padding: 15px 0 5px;
    font-size: 14px;
  }
  .how-divider {
    width: 24px;
    margin: 0 3px;
  }
  .play-heading {
    padding: 12px 0 20px;
  }
  .play-heading h1 {
    font-size: clamp(25px, 3.7vw, 41px);
  }
  .game-metrics {
    padding: 9px 12px;
    font-size: 12px;
    gap: 10px;
  }
  .play-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 18px;
  }
  .board-panel {
    padding: 20px 22px 10px;
  }
  .board-top {
    font-size: 16px;
    padding-bottom: 18px;
  }
  .pair-count {
    font-size: 15px;
  }
  .pair-count strong {
    font-size: 20px;
  }
  .memory-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(5, minmax(0, 1fr));
    gap: 14px;
  }
  .memory-grid.quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
  .cover-emblem {
    width: clamp(35px, 7vw, 70px);
    height: clamp(35px, 7vw, 70px);
  }
  .cover-caption {
    font-size: 9px;
  }
  .tile-label {
    font-size: clamp(12px, 1.9vw, 21px);
  }
  #board-message {
    font-size: 15px;
    min-height: 44px;
  }
  .discovery-panel {
    display: grid;
    grid-template-columns: 140px 1fr;
    grid-template-rows: auto auto;
    min-height: 220px;
    padding: 18px 20px;
    gap: 0 18px;
  }
  .scene-heading {
    display: none;
  }
  .featured-discovery {
    grid-column: 1;
    grid-row: 1/-1;
    min-height: 0;
  }
  .discovery-caption {
    grid-column: 2;
    padding: 0;
    min-height: 100px;
  }
  .discovery-caption h3 {
    font-size: 26px;
  }
  .discovery-caption p {
    font-size: 16px;
    max-width: none;
  }
  .discovery-shelf {
    grid-column: 2;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    padding: 10px 0 0;
    gap: 5px;
  }
  .shelf-slot {
    height: 48px;
  }
  .scene-footnote {
    display: none;
  }
  .discovery-stamp {
    font-size: 6px;
    padding: 5px;
    bottom: 5px;
    letter-spacing: 0.4px;
  }
  .empty-discovery {
    font-size: 14px;
    gap: 15px;
  }
  .empty-discovery > svg {
    width: 55px;
    height: 55px;
  }
  .result {
    grid-template-columns: 1fr;
    gap: 24px;
    align-content: center;
    padding: 18px 0;
    text-align: center;
  }
  .result-copy .tag {
    margin: auto;
  }
  .result h1 {
    font-size: clamp(42px, 7.5vw, 81px);
  }
  .result-story {
    margin: auto;
    max-width: 850px;
  }
  .result-description {
    font-size: 21px;
  }
  .result-stats {
    justify-content: center;
    gap: 50px;
  }
  .passport {
    justify-content: center;
    text-align: left;
  }
  .passport p span {
    max-width: 500px;
  }
  .result-copy > .text-button {
    margin: 4px auto 0;
    padding: 12px;
  }
  .result-collection {
    padding: 25px;
  }
  .result-item > img {
    height: 110px;
  }
  .result-item > span {
    font-size: 16px;
  }
  .collection-note {
    justify-content: center;
    font-size: 13px;
  }
  .selector > h1 {
    font-size: clamp(45px, 7.2vw, 80px);
  }
  .world-choices {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .world-choice {
    height: clamp(180px, 22vh, 320px);
  }
  .choice-copy strong {
    font-size: 50px;
  }
  .choice-copy > span:last-child {
    font-size: 16px;
  }
  .choice-copy .eyebrow {
    font-size: 11px;
  }
  .world-choice > img {
    width: 50%;
  }
  .selector-guide {
    flex-direction: row;
  }
  .selector-guide .globo:before {
    left: -17px;
    top: 50%;
    transform: translateY(-50%);
    border: 18px solid transparent;
    border-right-color: #fff;
    border-left: 0;
  }
}
@media (max-width: 600px) {
  .app {
    padding: 8px 14px 10px;
    gap: 9px;
  }
  .masthead {
    height: 66px;
    gap: 5px;
  }
  .ministry-logo {
    width: 51vw;
    height: 43px;
  }
  .ministry-logo.security-logo {
    width: 55vw;
    height: 54px;
  }
  .event-label {
    display: none;
  }
  .header-actions {
    min-width: 74px;
    gap: 0;
  }
  .icon-button,
  .operator-trigger {
    width: 36px;
    height: 36px;
  }
  .icon-button svg {
    width: 17px;
    height: 17px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.1px;
  }
  .tag {
    font-size: 9px;
    padding: 7px 12px;
    letter-spacing: 0.5px;
  }
  .tag svg {
    width: 16px;
    height: 16px;
  }
  .welcome-copy {
    padding: 10px 0 5px;
  }
  .welcome h1 {
    font-size: 36px;
    margin: 15px 0;
  }
  .welcome-guide {
    gap: 11px;
  }
  .welcome-guide .globo {
    font-size: 11px;
    padding: 11px 12px;
    border-radius: 14px;
  }
  .welcome-guide .globo b {
    font-size: 13px;
    margin-bottom: 4px;
  }
  .welcome-guide .globo:before {
    left: -11px;
    border-width: 12px;
    border-left: 0;
  }
  .button {
    min-height: 51px;
    font-size: 16px;
    padding: 12px 22px;
  }
  .start-button {
    margin-top: 18px;
    min-width: 230px;
  }
  .welcome-meta {
    font-size: 10px;
    gap: 9px;
    margin-top: 15px;
  }
  .welcome-art {
    width: 90%;
  }
  .floating-note {
    font-size: 9px;
    padding: 8px 11px;
  }
  .note-bottom strong {
    font-size: 12px;
  }
  .note-top {
    top: 5%;
    right: -3%;
  }
  .note-top svg {
    width: 14px;
    height: 14px;
  }
  .note-bottom {
    left: -3%;
    bottom: 8%;
  }
  .how-to {
    font-size: 9px;
    padding: 10px 0 3px;
    gap: 6px;
  }
  .how-number {
    width: 23px;
    height: 23px;
    font-size: 9px;
  }
  .how-divider {
    width: 8px;
    margin: 0 1px;
  }
  #app .memotest-footer {
    font-size: 8px;
    padding-top: 8px;
    gap: 5px;
  }
  .memotest-footer > span:nth-child(2) {
    display: none;
  }
  .play-heading {
    padding: 8px 0 13px;
    gap: 7px;
  }
  .play-heading h1 {
    font-size: 20px;
    letter-spacing: -0.5px;
  }
  .game-metrics {
    font-size: 10px;
    gap: 6px;
    padding: 7px 9px;
  }
  .board-panel {
    padding: 12px 11px 7px;
    border-radius: 16px;
  }
  .board-top {
    font-size: 10px;
    padding-bottom: 12px;
    gap: 7px;
  }
  .board-instruction {
    gap: 5px;
  }
  .board-instruction svg {
    width: 13px;
    height: 13px;
  }
  .pair-count {
    font-size: 10px;
    padding: 3px 7px;
  }
  .pair-count strong {
    font-size: 14px;
  }
  .play-layout {
    gap: 12px;
  }
  .memory-grid {
    gap: 8px;
  }
  .memory-grid.quick-grid {
    gap: 10px;
    padding: 0;
  }
  .cover-emblem {
    width: 29px;
    height: 29px;
    border-radius: 8px;
  }
  .cover-caption {
    font-size: 6px;
    letter-spacing: 1px;
    margin-top: 9px;
  }
  .tile-cover:before {
    inset: 4px;
  }
  .corner-one {
    top: 9px;
    left: 9px;
  }
  .corner-two {
    bottom: 9px;
    right: 9px;
  }
  .tile-face {
    padding: 3px 2px 6px;
  }
  .tile-label {
    font-size: 10px;
  }
  .match-mark {
    width: 15px;
    height: 15px;
    right: 4px;
    top: 4px;
  }
  .match-mark svg {
    width: 10px;
    height: 10px;
  }
  .board-bottom {
    padding-top: 11px;
  }
  #board-message {
    font-size: 9px;
    min-height: 32px;
  }
  .discovery-panel {
    min-height: 150px;
    grid-template-columns: 70px 1fr;
    padding: 11px;
    gap: 0 10px;
    border-radius: 16px;
  }
  .discovery-caption {
    min-height: 80px;
  }
  .discovery-caption .eyebrow {
    font-size: 6px;
  }
  .discovery-caption h3 {
    font-size: 17px;
    margin: 4px 0;
  }
  .discovery-caption p {
    font-size: 10px;
  }
  .discovery-shelf {
    gap: 3px;
    padding-top: 6px;
  }
  .shelf-slot {
    height: 26px;
    border-radius: 5px 5px 0 0;
  }
  .shelf-slot > span:first-child {
    font-size: 7px;
  }
  .empty-discovery {
    font-size: 9px;
    gap: 9px;
  }
  .empty-discovery > svg {
    width: 32px;
    height: 32px;
  }
  .discovery-stamp {
    display: none;
  }
  .result {
    gap: 15px;
    padding: 8px 0;
  }
  .result h1 {
    font-size: 33px;
    margin: 12px 0;
  }
  .result-story {
    padding: 10px 13px;
    border-radius: 13px;
  }
  .result-description {
    font-size: 11.5px;
    line-height: 1.45;
  }
  .result-stats {
    margin: 15px 0;
    gap: 30px;
  }
  .result-stats strong {
    font-size: 25px;
  }
  .result-stats span {
    font-size: 9px;
  }
  .passport {
    margin: 13px 0;
    gap: 11px;
  }
  .passport-stamp {
    width: 56px;
    height: 56px;
    font-size: 8px;
    border-width: 3px;
  }
  .passport-stamp svg {
    width: 13px;
    height: 13px;
  }
  .passport p {
    font-size: 17px;
  }
  .passport p span {
    font-size: 10px;
    max-width: 225px;
  }
  .result-copy > .text-button {
    font-size: 12px;
    padding: 9px 0 6px;
  }
  .result-return {
    font-size: 10px;
  }
  .result-collection {
    padding: 14px;
    border-radius: 16px;
  }
  .result-items {
    gap: 12px 5px;
    margin: 11px 0;
  }
  .result-item > img {
    height: 45px;
  }
  .result-item > span {
    font-size: 9px;
  }
  .collection-note {
    font-size: 8px;
    padding-top: 10px;
    gap: 4px;
  }
  .collection-note svg {
    width: 12px;
    height: 12px;
  }
  .selector {
    padding: 10px 0;
  }
  .selector > h1 {
    font-size: 37px;
    margin: 10px 0;
  }
  .selector-intro {
    font-size: 13px;
  }
  .world-choices {
    gap: 13px;
    margin-top: 18px;
  }
  .world-choice {
    min-height: 155px;
    height: 20vh;
    padding: 15px;
    border-radius: 18px;
  }
  .choice-copy {
    left: 18px;
    bottom: 18px;
  }
  .choice-copy strong {
    font-size: 33px;
  }
  .choice-copy > span:last-child {
    font-size: 11px;
  }
  .choice-copy .eyebrow {
    font-size: 7px;
  }
  .choice-icon {
    width: 28px;
    height: 28px;
  }
  .choice-icon svg {
    width: 17px;
    height: 17px;
  }
  .selector-guide {
    margin-top: 16px;
    gap: 13px;
  }
  .selector-guide .globo {
    font-size: 11px;
    padding: 10px 13px;
  }
  .loading h1 {
    font-size: 28px;
  }
  dialog {
    padding: 23px;
  }
  dialog h2 {
    font-size: 27px;
  }
  .dialog-actions .button {
    font-size: 12px;
    padding: 12px;
    gap: 7px;
  }
  .setting-option small {
    font-size: 10px;
  }
  .idle-content h2 {
    font-size: 30px;
  }
  .idle-content .tag {
    font-size: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .celebration {
    display: none;
  }
}
