:root {
  color-scheme: dark;
  --night: #1b2530;
  --night-2: #243140;
  --night-3: #2f3e4f;
  --sage: #8ea38c;
  --sage-deep: #3f5146;
  --cream: #efe5d3;
  --paper: #f3ebdc;
  --paper-2: #e8dcc6;
  --ink: #2c3038;
  --ink-soft: #5d5f63;
  --lavender: #a99cbc;
  --lavender-soft: #d9d2e3;
  --amber: #c98a5a;
  --sand: #d8c7a8;

  --radius: 18px;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .55), 0 2px 0 rgba(255, 255, 255, .25) inset;
  --display: "Fraunces", Georgia, serif;
  --body: "Newsreader", Georgia, serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: radial-gradient(120% 90% at 70% 0%, var(--night-3) 0%, var(--night-2) 35%, var(--night) 75%);
  background-color: var(--night);
  color: var(--cream);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.55;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ---------- paisajes ---------- */
body { background-attachment: fixed; }
#scenery { position: fixed; left: 0; right: 0; bottom: 0; height: 22vh; z-index: 0; pointer-events: none; overflow: hidden; }
#scenery svg { width: 100%; height: 100%; display: block; }

body[data-paisaje="noche"] .s1 { fill: #26352f; opacity: .85; }
body[data-paisaje="noche"] .s2 { fill: #1d2a25; }

body[data-paisaje="mar"] { background: radial-gradient(120% 90% at 20% 0%, #2d4452 0%, #1f3440 40%, #16252f 80%) fixed; background-color: #16252f; }
body[data-paisaje="mar"] #scenery { height: 24vh; }
body[data-paisaje="mar"] .s1 { fill: #274652; }
body[data-paisaje="mar"] .s2 { fill: #1d3842; }
body[data-paisaje="mar"] .s3 { fill: #152a33; }
.wave { animation: tide linear infinite; }
.wave.slow { animation-duration: 60s; }
.wave.mid { animation-duration: 42s; animation-direction: reverse; }
.wave.fast { animation-duration: 30s; }
@keyframes tide { to { transform: translateX(-1440px); } }

body[data-paisaje="bosque"] { background: radial-gradient(120% 90% at 70% 0%, #35463f 0%, #2a3a35 50%, #243330 90%) fixed; background-color: #243330; }
body[data-paisaje="bosque"] #scenery { height: 30vh; }
body[data-paisaje="bosque"] .s1 { fill: #1a2724; }
body[data-paisaje="bosque"] .s2 { fill: #0f1715; }

body[data-paisaje="dunas"] { background: linear-gradient(180deg, #232a3a 0%, #353852 40%, #56506a 70%, #7d6670 100%) fixed; background-color: #353852; }
body[data-paisaje="dunas"] #scenery { height: 26vh; }
body[data-paisaje="dunas"] .s1 { fill: #6a5a5e; }
body[data-paisaje="dunas"] .s2 { fill: #54484f; }
body[data-paisaje="dunas"] .s3 { fill: #3b343c; }

/* lucide */
svg.lucide { width: 1.1em; height: 1.1em; stroke-width: 1.6; flex: none; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 14px;
}
.ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(239, 229, 211, .06);
  border: 1px solid rgba(239, 229, 211, .14);
  color: var(--cream);
  font: 500 15px var(--body);
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  transition: background .3s;
}
.ghost:hover { background: rgba(239, 229, 211, .12); }
.ghost:focus-visible, .btn:focus-visible, .chip:focus-visible, .choice:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; }

.path { display: flex; align-items: center; gap: 6px; }
.path span { width: 5px; height: 5px; border-radius: 50%; background: rgba(239, 229, 211, .2); transition: all .6s; }
.path span.here { width: 18px; border-radius: 4px; background: var(--sage); }
.path span.done { background: rgba(142, 163, 140, .55); }

/* ---------- stage & page ---------- */
#stage {
  position: relative; z-index: 1;
  display: flex; justify-content: center;
  padding: 8px 16px 28vh;
}

.page {
  width: min(680px, 100%);
  background:
    radial-gradient(140% 100% at 0% 0%, rgba(255,255,255,.35), transparent 50%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 48px);
  position: relative;
  animation: arrive .9s cubic-bezier(.2, .7, .2, 1) both;
}
.page::after { /* paper grain */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.page.leaving { animation: leave .5s ease-in both; }
.page.dark { background: linear-gradient(180deg, #202c38, #19222c); color: var(--cream); }
.page.dark::after { display: none; }

@keyframes arrive { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes leave { to { opacity: 0; transform: translateY(-10px); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 13px var(--body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--sage-deep); margin: 0 0 14px;
}
.page.dark .eyebrow, .overlay .eyebrow { color: var(--sage); }

h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; line-height: 1.15; margin: 0 0 14px; }
h1 { font-size: clamp(32px, 6vw, 46px); }
h2 { font-size: clamp(26px, 4.6vw, 34px); }
p { margin: 0 0 14px; }
.soft { color: var(--ink-soft); }
.page.dark .soft, .overlay .soft { color: rgba(239, 229, 211, .7); }
.small { font-size: 16px; }

.hero-icon {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 22px;
  background: rgba(63, 81, 70, .1); color: var(--sage-deep);
}
.hero-icon svg.lucide { width: 26px; height: 26px; }

/* ---------- writing ---------- */
.lined {
  width: 100%; min-height: 240px; resize: vertical;
  border: 0; outline: 0; background: transparent;
  font: 400 21px/34px var(--body); color: var(--ink);
  padding: 10px 2px 4px; /* baja el texto sin mover los renglones: la letra se asienta sobre la raya */
  background-image: linear-gradient(transparent 33px, rgba(63, 81, 70, .18) 33px, rgba(63, 81, 70, .18) 34px);
  background-size: 100% 34px;
  background-attachment: local;
  caret-color: var(--amber);
}
.lined.short { min-height: 136px; }
.lined::placeholder { color: rgba(93, 95, 99, .6); font-style: italic; }

.field-label { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 22px 0 10px; }
.field-label svg.lucide { color: var(--sage-deep); }

.to-line { display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid rgba(63, 81, 70, .25); margin-bottom: 8px; }
.to-line span { font-family: var(--display); font-style: italic; white-space: nowrap; flex: none; } /* "My name is" no se parte: si se parte, el nombre flota arriba de la línea */
.to-line input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 21px var(--body); color: var(--ink); padding: 6px 0; outline: 0; }

/* ---------- controls ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.actions.end { justify-content: flex-end; }
.spacer { flex: 1; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 17px var(--body);
  background: var(--sage-deep); color: var(--cream);
  border: 0; border-radius: 999px; padding: 13px 22px; cursor: pointer;
  transition: transform .2s, background .3s, opacity .3s;
}
.btn:hover { background: #34453b; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .35; cursor: default; }
.ghost-btn { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; opacity: .75; }
.ghost-btn:hover { background: rgba(63, 81, 70, .08); opacity: 1; }
.overlay .btn, .page.dark .btn { background: var(--sage); color: var(--night); }
.overlay .ghost-btn, .page.dark .ghost-btn { background: transparent; color: var(--cream); }
.link {
  background: none; border: 0; color: var(--ink-soft); font: italic 16px var(--body);
  cursor: pointer; text-decoration: underline; text-underline-offset: 4px; padding: 6px 0;
}
.page.dark .link { color: rgba(239, 229, 211, .6); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font: 400 16px var(--body); color: var(--ink);
  background: rgba(255, 255, 255, .45); border: 1px solid rgba(63, 81, 70, .2);
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  transition: all .25s;
}
.chip:hover { border-color: rgba(63, 81, 70, .5); }
.chip[aria-pressed="true"] { background: var(--sage-deep); color: var(--cream); border-color: var(--sage-deep); }
.chip svg.lucide { color: inherit; opacity: .8; }
.chip.starter { font-style: italic; background: transparent; border-style: dashed; }

.choices { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 8px; }
.choice {
  text-align: left; display: flex; flex-direction: column; gap: 6px;
  background: rgba(255, 255, 255, .4); border: 1px solid rgba(63, 81, 70, .18);
  border-radius: 14px; padding: 18px; cursor: pointer; color: var(--ink);
  font: 400 17px/1.4 var(--body); transition: all .25s;
}
.choice:hover { border-color: rgba(63, 81, 70, .45); transform: translateY(-2px); }
.choice[aria-pressed="true"] { background: var(--sage-deep); color: var(--cream); border-color: var(--sage-deep); }
.choice strong { font-family: var(--display); font-weight: 400; font-size: 20px; }
.choice svg.lucide { width: 24px; height: 24px; color: var(--amber); }
.choice[aria-pressed="true"] svg.lucide { color: var(--cream); }
.choice span { opacity: .75; font-size: 15px; }

/* size scale */
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.scale .choice { align-items: center; text-align: center; padding: 16px 6px; }
.scale .choice svg.lucide { transition: transform .3s; }
.scale .choice:nth-child(1) svg.lucide { transform: scale(.7); }
.scale .choice:nth-child(2) svg.lucide { transform: scale(.85); }
.scale .choice:nth-child(4) svg.lucide { transform: scale(1.15); }
.scale .choice:nth-child(5) svg.lucide { transform: scale(1.3); }
.scale .choice strong { font-size: 16px; }
@media (max-width: 520px) {
  .scale { grid-template-columns: 1fr; }
  .scale .choice { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 12px 16px; }
}

.response {
  margin-top: 22px; padding: 16px 18px; border-left: 2px solid var(--amber);
  font-style: italic; color: var(--ink); animation: arrive .6s both;
}

.quote {
  font-family: var(--display); font-style: italic; font-size: clamp(22px, 4vw, 28px); line-height: 1.35;
  margin: 18px 0 22px; padding-left: 18px; border-left: 2px solid var(--amber);
}

.note-card {
  background: rgba(255, 255, 255, .45); border: 1px solid rgba(63, 81, 70, .18); border-radius: 14px;
  padding: 18px 20px; margin: 16px 0;
}
.note-card dt { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-deep); margin-top: 10px; }
.note-card dt:first-child { margin-top: 0; }
.note-card dd { margin: 2px 0 0; font-size: 19px; }

.safety {
  display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-soft);
  border-top: 1px solid rgba(63, 81, 70, .18); padding-top: 18px; margin-top: 30px;
}
.safety svg.lucide { color: var(--lavender); margin-top: 3px; }

/* ---------- book leaf ---------- */
.book-leaf {
  margin: 18px 0 0; padding: clamp(24px, 5vw, 40px) clamp(20px, 6vw, 56px);
  background: #fbf6ec; border-radius: 4px 14px 14px 4px;
  box-shadow: inset 10px 0 18px -12px rgba(63, 81, 70, .35), 0 12px 30px -18px rgba(0, 0, 0, .4);
  position: relative;
}
.book-leaf h3 { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 0 0 20px; color: var(--sage-deep); }

/* Poema: ilustración arriba (su blanco toma el color de la hoja) y el texto con sus estrofas. */
.leaf-img { display: block; width: 100%; height: auto; margin: 0 auto 22px; mix-blend-mode: multiply; }
.book-leaf.poema h3 { font-size: clamp(24px, 6vw, 30px); margin: 0 0 18px; letter-spacing: -.01em; }
.poema-texto { font: 400 clamp(19px, 4.6vw, 21px)/1.6 var(--body); color: var(--ink); text-wrap: pretty; hyphens: none; }
.poema-texto p { margin: 0; }
.poema-texto p + p { margin-top: 1.1em; }

/* ---------- idioma ---------- */
.lang { display: flex; justify-content: flex-end; gap: 4px; margin: -6px 0 6px; }
.lang button {
  font: 500 14px var(--body); color: var(--ink-soft); background: transparent; cursor: pointer;
  border: 1px solid rgba(63, 81, 70, .25); border-radius: 999px; padding: 5px 12px;
}
.lang button[aria-pressed="true"] { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--cream); }
.lang button:focus-visible { outline: 2px solid var(--lavender); outline-offset: 2px; }
.book-leaf figcaption {
  margin-top: 24px; font-style: italic; font-size: 14px; color: var(--ink-soft);
  border-top: 1px solid rgba(63, 81, 70, .15); padding-top: 12px;
}

/* ---------- pausas ---------- */
.play {
  position: relative; width: 100%; height: min(52vh, 420px); border-radius: 14px; overflow: hidden;
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, .25); touch-action: none; margin: 10px 0 14px;
  user-select: none; -webkit-user-select: none;
}
.play canvas { display: block; width: 100%; height: 100%; cursor: pointer; }
.play .hint {
  position: absolute; inset: auto 0 16px; text-align: center; font-style: italic; font-size: 15px;
  color: rgba(239, 229, 211, .55); pointer-events: none; transition: opacity 1s;
}
.play-papel .hint, .play-rio .hint { color: rgba(44, 48, 56, .45); }
.play-arena { background: var(--sand); }
.play-noche { background: radial-gradient(90% 70% at 50% 110%, #2b3a33 0%, #17202a 60%, #111820 100%); }
.play-agua { background: linear-gradient(180deg, #2c4a55, #1d3540 70%, #172b34); }
.play-papel { background: linear-gradient(180deg, #f7f1e5, #ece2cf); }
.play-bosque { background: linear-gradient(180deg, #2f4038, #1c2924); }
.play-rio { background: linear-gradient(180deg, #d3d8d0, #b1bdb4); }
.play-ocaso { background: linear-gradient(180deg, #33374c, #56506a 70%, #7a6468); }
.play-salvia { background: linear-gradient(180deg, #4d6153, #3a4b40); }
.play-tools, .sand-tools { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; }
.play-tools button {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(63, 81, 70, .9); color: var(--cream); border: 0; border-radius: 999px;
  padding: 7px 14px; font: 400 14px var(--body); cursor: pointer;
}
.play.crumple canvas { animation: crumple 1.1s cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes crumple {
  55% { transform: scale(.22) rotate(-30deg); border-radius: 45%; filter: brightness(.92) contrast(1.2); }
  100% { transform: translate(40%, -140%) scale(.08) rotate(-80deg); opacity: 0; border-radius: 50%; }
}
.overlay .play { height: min(56vh, 460px); }

/* ---------- sand & fireflies ---------- */
.sand-wrap {
  position: relative; width: 100%; height: min(52vh, 420px); border-radius: 14px; overflow: hidden;
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, .25); touch-action: none; margin: 10px 0 14px; background: var(--sand);
}
.sand-wrap canvas { display: block; width: 100%; height: 100%; cursor: crosshair; }
.sand-tools { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; }
.sand-tools button {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(243, 235, 220, .85); color: var(--ink); border: 0; border-radius: 999px;
  padding: 7px 12px; font: 400 14px var(--body); cursor: pointer; backdrop-filter: blur(4px);
}
.sand-tools button[aria-pressed="true"] { background: var(--sage-deep); color: var(--cream); }

.firefield {
  position: relative; width: 100%; height: min(56vh, 460px); border-radius: 14px; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 110%, #2b3a33 0%, #17202a 60%, #111820 100%);
  touch-action: none; margin: 10px 0 14px; cursor: pointer;
}
.firefield canvas { display: block; width: 100%; height: 100%; }
.firefield .hint {
  position: absolute; inset: auto 0 16px; text-align: center; font-style: italic;
  color: rgba(239, 229, 211, .55); font-size: 15px; pointer-events: none; transition: opacity 1s;
}

/* ---------- letter ---------- */
.letter-box { position: relative; }
.letter-box.fold { animation: fold 1.1s cubic-bezier(.5, 0, .3, 1) forwards; transform-origin: 50% 0; }
@keyframes fold {
  40% { transform: perspective(900px) rotateX(70deg); opacity: .9; }
  100% { transform: perspective(900px) rotateX(88deg) translateY(-40px) scale(.4); opacity: 0; }
}
.tear-piece {
  position: absolute; inset: 0; background: linear-gradient(180deg, var(--paper), var(--paper-2));
  padding: 4px 2px; font: 400 21px/34px var(--body); color: var(--ink); white-space: pre-wrap; overflow: hidden;
  border-radius: 4px;
}
.tear-piece.l { clip-path: polygon(0 0, 52% 0, 46% 12%, 54% 26%, 45% 40%, 55% 55%, 47% 70%, 53% 85%, 48% 100%, 0 100%); animation: tearL 1.4s cubic-bezier(.4, 0, .6, 1) forwards; }
.tear-piece.r { clip-path: polygon(52% 0, 100% 0, 100% 100%, 48% 100%, 53% 85%, 47% 70%, 55% 55%, 45% 40%, 54% 26%, 46% 12%); animation: tearR 1.4s cubic-bezier(.4, 0, .6, 1) forwards; }
@keyframes tearL { 30% { transform: translateX(-8px) rotate(-2deg); } 100% { transform: translate(-60px, 120px) rotate(-14deg); opacity: 0; } }
@keyframes tearR { 30% { transform: translateX(8px) rotate(2deg); } 100% { transform: translate(60px, 140px) rotate(12deg); opacity: 0; } }

.sealed { display: flex; align-items: center; gap: 14px; padding: 26px 0 8px; animation: arrive .8s both; }
.sealed svg.lucide { width: 34px; height: 34px; color: var(--amber); }

/* release words */
.drift-word { display: inline-block; animation: drift 2.8s ease-in forwards; }
@keyframes drift { to { transform: translate(var(--dx), -160px) rotate(var(--rot)); opacity: 0; filter: blur(3px); } }

/* ---------- música ---------- */
.topbar #musicBtn { margin-left: auto; }
.topbar { flex-wrap: nowrap; }
.topbar .path { flex: 1; justify-content: center; }
#musicBtn[aria-expanded="true"] { background: rgba(142, 163, 140, .25); border-color: var(--sage); }
.music {
  position: fixed; z-index: 15; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(360px, calc(100% - 32px)); background: var(--night-2); border: 1px solid rgba(239, 229, 211, .14);
  border-radius: 16px; padding: 10px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
  animation: arrive .4s both;
}
.music-head { display: flex; align-items: center; justify-content: space-between; color: rgba(239, 229, 211, .75); font-size: 14px; padding: 0 4px 8px; }
.music-head span { display: inline-flex; align-items: center; gap: 8px; font-style: italic; }
.music-close { background: none; border: 0; color: var(--cream); cursor: pointer; padding: 4px; border-radius: 8px; }
.music[hidden], #musicBtn[hidden], .mute[hidden], #musicSkip[hidden] { display: none; }
.music-head #musicNow { font-style: normal; color: var(--cream); }
.music-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 4px 4px; }
.music-actions .ghost span, .music-actions .ghost { font-size: 15px; }
#musicStay[aria-pressed="true"] { background: rgba(142, 163, 140, .25); border-color: var(--sage); }
@media (max-width: 520px) {
  .music { width: calc(100% - 104px); } /* deja libre el botón de silencio */
  .music-actions .ghost { padding: 8px 12px; }
  .music-actions .ghost span { display: inline; } /* aquí sí van con texto, a diferencia de la barra de arriba */
}

/* Silencio: grande, abajo a la izquierda, siempre a mano. */
.mute {
  position: fixed; z-index: 16; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--night-2); color: var(--cream); border: 1px solid rgba(239, 229, 211, .2);
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .6); cursor: pointer;
}
.mute svg.lucide { width: 26px; height: 26px; }
.mute[aria-pressed="true"] { color: rgba(239, 229, 211, .6); }
.mute:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; }

.music-tools { display: inline-flex; gap: 2px; }
.credits-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 14px; max-height: 60vh; overflow-y: auto; }
.credits-list li { display: grid; gap: 2px; font-size: 16px; overflow-wrap: anywhere; }
.credits-list .small { font-size: 14px; }

/* ---------- overlays ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px;
  background: rgba(17, 24, 32, .82); backdrop-filter: blur(8px);
  animation: arrive .5s both; overflow-y: auto;
}
.overlay[hidden] { display: none; }
.overlay-inner { width: min(720px, 100%); color: var(--cream); }
.overlay-inner.small { width: min(440px, 100%); background: var(--night-2); padding: 28px; border-radius: var(--radius); }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

@media (max-width: 520px) {
  body { font-size: 18px; }
  .ghost span { display: none; }
  .ghost { padding: 9px; }
  .lined { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
