:root {
  --cream: #f6e6dc;
  --paper: #fbf3ec;
  --blush: #efd3c8;
  --rose: #c97a80;
  --rose-dark: #a85c64;
  --fuchsia: #c2307f;
  --gold: #c9a063;
  --gold-soft: #e2c99a;
  --sage: #5d7a5a;
  --navy: #1f3a7a;
  --text: #3a4a44;
  --muted: #7d8079;
  --pixel: "Silkscreen", monospace;
  --title: "Pixelify Sans", "Silkscreen", monospace;
  --body: "Cormorant Garamond", Georgia, serif;
  --digits: "Jersey 10", "Pixelify Sans", monospace; /* numeri: il "2" con la diagonale vera */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 3.2rem; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--body);
  font-size: 1.3rem;
  line-height: 1.45;
  /* fondo carta: crema con una leggera grana a pixel */
  background-color: var(--cream);
  background-image:
    radial-gradient(rgba(201, 122, 128, .07) 1px, transparent 1px),
    radial-gradient(rgba(201, 160, 99, .06) 1px, transparent 1px),
    linear-gradient(180deg, var(--paper) 0%, var(--cream) 40%, var(--blush) 100%);
  background-size: 7px 7px, 11px 11px, 100% 100%;
  background-position: 0 0, 3px 5px, 0 0;
  background-attachment: fixed;
}
img { image-rendering: pixelated; }

/* --- Navigazione --- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: center; gap: clamp(.5rem, 4vw, 3.5rem);
  padding: .55rem 1rem .45rem;
  background: rgba(251, 243, 236, .9); backdrop-filter: blur(6px);
  border-bottom: 2px solid rgba(58, 74, 68, .25);
}
.nav a {
  position: relative; padding: .35rem .2rem .55rem;
  font-family: var(--title); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text); text-decoration: none;
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--rose); }
.nav a[aria-current="true"]::after {
  content: ""; position: absolute; left: 50%; bottom: -.62rem; width: 18px; height: 16px; margin-left: -9px;
  background: url("../assets/heart.png") center / contain no-repeat; image-rendering: pixelated;
}
.nav a:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }

/* --- Sezioni --- */
.level {
  position: relative; overflow: hidden;
  min-height: 100svh; padding: 5rem 1rem 4rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; text-align: center;
}
.level > * { position: relative; z-index: 1; max-width: 36rem; width: 100%; }

.kicker {
  display: flex; align-items: center; justify-content: center; gap: .8rem;
  margin: 0; font-family: var(--title); font-size: 1.35rem; color: var(--text); letter-spacing: .04em;
}
.kicker::before, .kicker::after {
  content: ""; width: clamp(2.5rem, 18vw, 7rem); height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
}
h1, h2 { font-family: var(--title); font-weight: 500; margin: 0; line-height: 1.1; color: var(--text); overflow-wrap: anywhere; }
h1 {
  font-size: clamp(3rem, 15vw, 5.6rem); letter-spacing: -.01em;
  text-shadow: 3px 3px 0 var(--blush), 4px 4px 0 rgba(201, 122, 128, .45);
}
h2 { font-size: clamp(1.9rem, 8vw, 3rem); text-shadow: 2px 2px 0 var(--blush); }
.lead { font-size: 1.4rem; margin: 0; font-style: italic; }
.big { font-size: 1.6rem; font-weight: 600; margin: 0; }

.marry {
  display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0;
  font-family: var(--pixel); font-size: clamp(1rem, 4.6vw, 1.4rem); letter-spacing: .22em; text-transform: uppercase;
}
.marry img { width: 1.5rem; height: auto; animation: beat 1.4s ease-in-out infinite; }
.marry img:last-child { animation-delay: .7s; }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }

.divider { margin: -.2rem 0 .2rem; display: flex; align-items: center; justify-content: center; gap: .7rem; }
.divider::before, .divider::after { content: ""; width: 4rem; height: 2px; background: var(--gold); }
.divider img { width: 18px; height: auto; }

/* --- Hero: cuore, coppia, rami e stelline --- */
.hero { justify-content: flex-start; padding-top: 4.2rem; gap: .9rem; }
.level > .stage { width: min(94vw, 470px); max-width: none; aspect-ratio: 1 / 1.02; margin-bottom: -.4rem; }
.stage img { position: absolute; }
.heart-frame { left: 11%; top: 0; width: 78%; height: auto; }
/* La coppia resta ferma nel bacio; l'idle sono i cuoricini che salgono dal bacio. */
.couple {
  left: 50%; bottom: 0; width: 66%; height: auto; transform: translateX(-35%);
  filter: drop-shadow(0 4px 0 rgba(168, 92, 100, .12));
}
.kiss-heart {
  left: 44.5%; top: 34%; width: 4.6%; height: auto; opacity: 0;
  animation: kiss-heart 4.4s steps(18) infinite; animation-delay: var(--d);
}
@keyframes kiss-heart {
  0% { opacity: 0; transform: translate(0, 0) scale(.6); }
  8% { opacity: 1; }
  60% { opacity: 0; transform: translate(calc(var(--dx) * 1.2rem), -5.5rem) scale(1.15); }
  100% { opacity: 0; }
}
.branch { top: 22%; width: 26%; height: auto; }
.branch-l { left: -3%; }
.branch-r { right: -3%; transform: scaleX(-1); }
.sparkle {
  left: var(--x); top: var(--y); width: 4.2%; height: auto;
  animation: twinkle 2.4s steps(3) infinite; animation-delay: var(--d);
}
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.6); } }

/* Data nella cornice dorata */
.level > .save-date { width: min(92vw, 380px); }
.save-date {
  aspect-ratio: 4 / 3; padding: 9% 18%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
  background: url("../assets/date-frame.png") center / 100% 100% no-repeat; image-rendering: pixelated;
}
.save-date p { margin: 0; text-transform: uppercase; }
.sd-weekday, .sd-month { font-family: var(--pixel); font-size: clamp(1.15rem, 5vw, 1.5rem); letter-spacing: .18em; }
.sd-day { font-family: var(--digits); font-weight: 400; font-size: clamp(5.2rem, 25vw, 7rem); line-height: .8; letter-spacing: .04em; color: var(--rose); text-shadow: 3px 3px 0 var(--blush); }
.sd-year { font-family: var(--digits); font-size: clamp(1.8rem, 8vw, 2.3rem); line-height: 1; letter-spacing: .2em; color: var(--rose); }

/* Countdown: biglietti di carta con bordo d'oro */
.level > .countdown { width: auto; }
.countdown { display: flex; gap: .6rem; justify-content: center; }
.countdown div {
  min-width: 4.4rem; padding: .55rem .4rem .45rem;
  background: var(--paper); border: 2px solid var(--gold);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--gold-soft), 3px 4px 0 5px rgba(201, 122, 128, .18);
}
.countdown span { display: block; font-family: var(--digits); font-size: 2.3rem; line-height: .95; color: var(--rose); }
.countdown small { font-family: var(--title); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

.coin {
  width: auto !important; margin-top: .3rem; padding: .3rem .6rem;
  font-family: var(--title); font-size: 1rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted); background: none; border: 0; cursor: pointer;
  animation: blink 1.6s steps(2, start) infinite;
}
.coin:hover, .coin:focus-visible { color: var(--rose); animation: none; outline: 2px dashed var(--rose); outline-offset: 2px; }
@keyframes blink { 50% { opacity: .35; } }

/* Fiori d'angolo */
.level > .corner { position: absolute; z-index: 0; bottom: 0; width: clamp(110px, 28vw, 220px); max-width: none; height: auto; pointer-events: none; }
.corner-l { left: 0; }
.corner-r { right: 0; transform: scaleX(-1); }
.hero .corner { width: clamp(120px, 32vw, 250px); }

/* Freccia a V verso il basso */
.scroll-cue {
  position: fixed; left: 50%; bottom: .9rem; z-index: 7; width: 30px !important; height: 22px; margin-left: -15px;
  display: block; transition: opacity .3s;
}
.scroll-cue i {
  position: absolute; left: 6px; top: 0; width: 18px; height: 18px;
  border: solid var(--rose); border-width: 0 4px 4px 0; transform: rotate(45deg);
  animation: cue 1.2s steps(3) infinite;
}
.scroll-cue.gone { opacity: 0; pointer-events: none; }
.scroll-cue:focus-visible { outline: 2px solid var(--rose); outline-offset: 6px; }
@keyframes cue { 50% { transform: translateY(6px) rotate(45deg); } }

/* --- Card, pulsanti, moduli --- */
.card {
  padding: 1.3rem 1.4rem; text-align: left;
  background: rgba(251, 243, 236, .92); border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--gold-soft), 4px 6px 0 6px rgba(201, 122, 128, .15);
}
.card p { margin: 0 0 .8rem; }
.card small, label, legend { color: var(--muted); font-size: 1.05rem; }
/* IBAN: carattere monospazio leggibile (nel pixel font 5/S e B/8 si confondono), a capo solo tra i gruppi */
code { font-family: ui-monospace, Consolas, "Courier New", monospace; font-size: clamp(1rem, 4.2vw, 1.15rem); font-weight: 600; letter-spacing: .02em; color: var(--navy); word-break: normal; overflow-wrap: normal; }

/* Cornice come quella della data: angoli e linee da card-frame.png (9 pezzi, a 2x),
   cuore sopra e sotto, rametti con fiori fucsia ai lati. */
.card.framed {
  --u: 2px; /* un pixel della cornice */
  padding: .4rem .9rem; background: none; box-shadow: none;
  border: calc(var(--u) * 18) solid transparent;
  border-image: url("../assets/card-frame.png") 18 fill / calc(var(--u) * 18) stretch;
  image-rendering: pixelated;
}
.card.framed::before, .card.framed::after {
  content: ""; position: absolute; inset: calc(var(--u) * -18); pointer-events: none; image-rendering: pixelated;
}
.card.framed::before {
  background:
    url("../assets/frame-top.png") center top / calc(var(--u) * 28) calc(var(--u) * 13) no-repeat,
    url("../assets/frame-bottom.png") center bottom / calc(var(--u) * 28) calc(var(--u) * 13) no-repeat;
}
.card.framed::after {
  background:
    url("../assets/frame-left.png") left center / calc(var(--u) * 17) calc(var(--u) * 68) no-repeat,
    url("../assets/frame-right.png") right center / calc(var(--u) * 17) calc(var(--u) * 68) no-repeat;
}

/* Bonus stage: la meta del viaggio */
/* Location: nome del locale grande, in pixel e maiuscolo, con il paese sotto */
.venue { display: flex; flex-direction: column; align-items: center; gap: .35rem; margin: 0; }
.venue b { font-family: var(--pixel); font-weight: normal; font-size: clamp(2rem, 9vw, 3rem); letter-spacing: .16em; text-transform: uppercase; color: var(--rose); text-shadow: 3px 3px 0 var(--blush); line-height: 1.1; }
.venue small { font-family: var(--body); font-style: italic; font-size: 1.35rem; color: var(--muted); }
.directions { white-space: pre-line; }
.destination { display: flex; flex-direction: column; align-items: center; gap: .1rem; margin: 0; }
.destination small { font-family: var(--body); font-style: italic; font-size: 1.25rem; color: var(--muted); }
.destination b { font-family: var(--pixel); font-weight: normal; font-size: clamp(.8rem, 4.3vw, 1.55rem); letter-spacing: .1em; white-space: nowrap; text-transform: uppercase; color: var(--rose); text-shadow: 2px 2px 0 var(--blush); }

/* Bonus stage: cartina del viaggio su pergamena (bordi strappati a gradini, pieghe, bordi bruniti) */
.level > .treasure-wrap { max-width: 44rem; }
.treasure-wrap { filter: drop-shadow(4px 6px 0 rgba(122, 80, 40, .22)); }
.treasure-map {
  position: relative; aspect-ratio: 240 / 135;
  background-color: #ecd8ab;
  background-image:
    linear-gradient(90deg, transparent 33%, rgba(122, 80, 40, .12) 33.2%, transparent 33.6%, transparent 66.4%, rgba(122, 80, 40, .12) 66.6%, transparent 66.8%),
    linear-gradient(0deg, transparent 49.6%, rgba(122, 80, 40, .1) 50%, transparent 50.4%),
    radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(140, 90, 40, .35) 100%),
    radial-gradient(rgba(122, 80, 40, .09) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 5px 5px;
  clip-path: polygon(0 2%, 3% 2%, 3% 0, 22% 0, 22% 1.5%, 47% 1.5%, 47% 0, 71% 0, 71% 2%, 88% 2%, 88% 0, 100% 0, 100% 9%, 99% 9%, 99% 38%, 100% 38%, 100% 71%, 98.8% 71%, 98.8% 93%, 100% 93%, 100% 100%, 79% 100%, 79% 98%, 56% 98%, 56% 100%, 31% 100%, 31% 98.4%, 9% 98.4%, 9% 100%, 0 100%, 0 82%, 1.2% 82%, 1.2% 54%, 0 54%, 0 27%, 1% 27%, 1% 2%);
}
.treasure-map svg { display: block; width: 100%; height: 100%; }
.treasure-map text { font-family: var(--pixel); font-size: 6px; letter-spacing: .5px; fill: #5a3a22; }
.treasure-map .map-sea { font-family: var(--body); font-style: italic; font-size: 7px; letter-spacing: .3px; fill: #8a6a48; }
.treasure-map .map-title { font-family: var(--body); font-style: italic; font-weight: 600; font-size: 9px; fill: #5a3a22; }
/* Bonus stage: mappamondo ingrandito (canvas a bassa risoluzione, dimensioni da js/globe.js) */
.level > .globe-wrap { max-width: 44rem; }
.globe-wrap { display: flex; justify-content: center; }
.globe-scene {
  position: relative; overflow: hidden;
  /* bordi sfumati: due gradienti (orizzontale e verticale) intersecati */
  --fade: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent),
          linear-gradient(to bottom, transparent, #000 10%, #000 82%, transparent);
  -webkit-mask-image: var(--fade); mask-image: var(--fade);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.globe-scene > * { position: absolute; left: 0; top: 0; }
.globe-scene i { display: block; background-repeat: no-repeat; image-rendering: pixelated; }
/* mondo smorzato (meno saturo e un po' trasparente sul crema) perché gli sposi in aereo spicchino */
.gs-canvas { z-index: 1; image-rendering: pixelated; opacity: .72; filter: saturate(.6) contrast(.9); }
.gs-plane { z-index: 3; background-image: url("../assets/globe/couple.png"); transform-origin: center; filter: drop-shadow(0 6px 0 rgba(70, 40, 50, .22)); }
.gs-labels { z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.gs-label {
  position: absolute; transform: translate(-50%, -100%); white-space: nowrap;
  font-family: var(--pixel); font-weight: normal; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--paper); text-shadow: 1px 0 #042637, -1px 0 #042637, 0 1px #042637, 0 -1px #042637, 1px 1px #042637;
}
.gs-label[data-side="below"] { transform: translate(-50%, 0); }
.gs-label[data-side="left"] { transform: translate(-100%, -50%); }
.gs-label[data-side="right"] { transform: translate(0, -50%); }
.gs-label[hidden] { display: none; }
.gs-cloud { z-index: 0; }
.gs-cloud[data-cloud="cloud-l"] { background-image: url("../assets/globe/cloud-l.png"); }
.gs-cloud[data-cloud="cloud-s"] { z-index: 4; background-image: url("../assets/globe/cloud-s.png"); opacity: .9; }
.gs-cloud[data-cloud="cloud-m"] { z-index: 4; background-image: url("../assets/globe/cloud-m.png"); opacity: .9; }
.map-status { margin: 0; font-family: var(--pixel); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: #b3261e; min-height: 1.3em; }

.btn {
  display: inline-block; cursor: pointer; padding: .8rem 1.3rem;
  font-family: var(--pixel); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; text-decoration: none;
  color: var(--paper); background: var(--rose); border: 2px solid var(--rose-dark);
  box-shadow: 3px 3px 0 var(--gold);
}
.btn:hover { background: var(--rose-dark); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--gold); }
.btn:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-ghost { color: var(--rose-dark); background: var(--paper); border-color: var(--rose); }
.btn-ghost:hover { background: var(--blush); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.level > .btn { width: auto; }

.timeline { list-style: none; margin: 0; }
.level > .timeline { max-width: 30rem; }

/* Cerimonia: due fedi intrecciate con un rametto di fiori (stile della cornice a cuore), ferme */
.level > .rings { position: relative; width: min(40vw, 152px); max-width: none; margin: 1.25rem 0 1.75rem; }
.rings-art { display: block; width: 100%; height: auto; image-rendering: pixelated;
  filter: drop-shadow(0 6px 0 rgba(150, 90, 70, .12)); }
.rings .sparkle { position: absolute; width: 12%; image-rendering: pixelated; }

.timeline li { display: grid; grid-template-columns: 7.5rem 1fr; column-gap: .5rem; align-items: baseline; padding: .45rem 0; border-bottom: 1px dashed var(--gold-soft); }
.timeline li:last-child { border-bottom: 0; }
.timeline b { display: inline-block; min-width: 6.5rem; font-family: var(--digits); font-size: 1.45rem; letter-spacing: .04em; font-weight: normal; color: var(--rose); }

form { display: grid; gap: 1rem; }
label, legend { display: block; }
fieldset { border: 0; padding: 0; margin: 0; }
input[type="text"], textarea {
  width: 100%; margin-top: .25rem; padding: .55rem .7rem;
  font: inherit; font-size: 1.2rem; color: var(--text); background: #fffaf6; border: 2px solid var(--gold-soft);
}
.radio { display: inline-flex; gap: .5rem; align-items: center; margin-right: 1rem; color: var(--text); }
.err { display: block; min-height: 1.2em; color: var(--rose-dark); }
.status { color: var(--muted); margin: 0; min-height: 1.2em; }

.level > .rsvp-card { max-width: 26rem; }
.rsvp-card { gap: .7rem; }
.rsvp-card .btn { justify-self: start; }
.rsvp-card .err:empty, .rsvp-card .status:empty { display: none; }
.rsvp-card input[type="radio"] { accent-color: var(--rose); width: 1.2rem; height: 1.2rem; }
.rsvp-card .radio { min-height: 44px; }
.rsvp-card [aria-invalid="true"] { border-color: var(--rose); }
#rsvp-deadline { max-width: 30rem; }
#rsvp-deadline strong { display: inline-block; margin-top: .3rem; font-family: var(--pixel); font-style: normal; font-weight: normal; font-size: 1.1rem; color: var(--rose); }
#rsvp-thanks:focus { outline: 2px solid var(--rose); outline-offset: .5rem; }

iframe { width: 100%; height: 18rem; border: 2px solid var(--gold); box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--gold-soft); background: var(--paper); }

.footer { padding: 2.5rem 1rem 5rem; text-align: center; font-family: var(--title); font-size: 1.05rem; color: var(--muted); }
.footer img { width: 14px; height: auto; vertical-align: -1px; margin-right: .3rem; }

/* --- Musica --- */
.music { position: fixed; left: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 8; display: flex; align-items: flex-end; gap: .5rem; }
.music .btn { font-family: var(--title); font-size: .95rem; padding: .55rem .8rem; border-radius: 999px; box-shadow: none; background: rgba(251, 243, 236, .92); }
.music-icon { margin-right: .35em; }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 24px; opacity: 0; transition: opacity .3s; }
.music.playing .eq { opacity: 1; }
.eq i { display: block; width: 4px; height: 24px; background: var(--rose); transform-origin: bottom; transform: scaleY(var(--lvl, .08)); transition: transform .08s linear; }
.eq i:nth-child(2n) { background: var(--gold); }
.eq i:nth-child(3) { background: var(--sage); }

/* --- Tetris --- */
dialog {
  width: min(95vw, 30rem); max-width: 95vw; max-height: 95svh; overflow: auto; padding: 1rem; text-align: center;
  color: var(--text); background: var(--paper); border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--gold-soft);
}
dialog::backdrop { background: rgba(58, 74, 68, .55); }
dialog .status { font-size: 1rem; }
.game-head { display: flex; gap: 1rem; align-items: center; justify-content: space-between; font-family: var(--title); font-size: 1rem; margin-bottom: .75rem; }
.game-head b { color: var(--rose); }
.game-head .btn { font-family: var(--title); font-size: .95rem; padding: .5rem .7rem; }
.game-body { display: flex; gap: .75rem; justify-content: center; align-items: flex-start; }
.game-side { display: grid; gap: .4rem; justify-items: center; font-family: var(--title); font-size: .95rem; color: var(--muted); }
#game-canvas { height: min(480px, 58vh); width: auto; aspect-ratio: 1 / 2; border: 2px solid var(--gold); touch-action: none; image-rendering: pixelated; outline: none; }
#game-next { width: 72px; height: 72px; background: #fbf3ec; border: 2px solid var(--gold); image-rendering: pixelated; }

[hidden] { display: none !important; }

.reveal { opacity: 0; transform: translateY(1.2rem); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }


@media (max-width: 640px) {
  body { font-size: 1.2rem; }
  .nav { gap: .2rem; justify-content: space-around; padding: .45rem .3rem .4rem; }
  .nav a { font-size: .82rem; letter-spacing: .02em; }
  .level { padding: 4.2rem 1rem 7.5rem; }
  .countdown { gap: .45rem; }
  .countdown div { min-width: 3.9rem; }
  /* niente fiori d'angolo: ogni livello si chiude con un divisorio fiorito */
  .level > .corner { display: none; }
  .level::after {
    content: ""; position: absolute; left: 50%; bottom: 1.4rem; z-index: 0;
    width: 320px; max-width: calc(100% - 2rem); aspect-ratio: 160 / 32; transform: translateX(-50%);
    background: url("../assets/divider.png") center / contain no-repeat; image-rendering: pixelated;
  }
  /* musica: solo l'icona, in un bottoncino tondo */
  .music { left: .75rem; }
  .music .btn { width: 2.9rem; height: 2.9rem; padding: 0; display: grid; place-items: center; font-size: 1.35rem; line-height: 1; }
  .music-icon { margin: 0; }
  .music-text { display: none; }
  .timeline li { grid-template-columns: 1fr; }
  .timeline b { display: block; min-width: 0; }
  .level > .treasure-wrap { width: calc(100% + 1rem); max-width: none; margin-inline: -.5rem; }
  .map-status { font-size: .75rem; }
  .treasure-map text { font-size: 8px; }
  .treasure-map .map-title { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sparkle, .marry img, .coin, .scroll-cue i { animation: none; }
  .kiss-heart { display: none; }
  .btn:active { transform: none; }
}
@media print { .reveal { opacity: 1; transform: none; } .nav, .music, .scroll-cue { display: none; } }
