/* Chikuwa and Nene — comic issue.
   One face for every line: Fredoka, the round lettering of the wordmark.
   Ink frames, paper bands, a sideways page read. No marquee, no chart, no gate. */

:root {
  --ink: #1b2440;
  --muted: #5c6888;
  --sky: #4eb6ff;
  --sky-deep: #2f97e6;
  --paper: #fff8ee;
  --sand: #fff1df;
  --pink: #ff8fbd;
  --pink-deep: #e23b78;
  --orange: #ff9a2e;
  --mint: #e7faf4;
  --mint-ink: #1a8f78;
  --sun: #ffe56a;
  --cream: #fffdf8;
  --line: rgba(27, 36, 64, 0.12);
  --font: "Fredoka", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
}

html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  font-family: inherit;
  font-weight: 500;
  font-size: 1.08rem;
  line-height: 1.55;
  background:
    radial-gradient(circle at 0% 0%, rgba(78, 182, 255, 0.18), transparent 28%),
    var(--paper);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, code { font-family: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
code { font-weight: 600; word-break: break-word; }
cite { font-style: normal; font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--pink-deep);
  outline-offset: 3px;
}

::selection { background: #ffd0e4; color: var(--ink); }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  padding: 0.45rem 0.75rem;
  background: var(--sun);
  border: 3px solid var(--ink);
  border-radius: 12px;
  font-weight: 700;
}
.skip:focus { top: 0.6rem; }

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--pink-deep));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* ---------- Header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 74px;
  padding: 0.7rem 1rem;
  background: rgba(255, 248, 238, 0.94);
  border-bottom: 3px solid var(--ink);
  backdrop-filter: blur(12px);
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
}

.topbar__brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border: 3px solid var(--ink);
  border-radius: 4px;
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--sky);
}

.topbar__nav {
  display: none;
  gap: 1.15rem;
  margin-left: 0.6rem;
  font-weight: 700;
}

.topbar__nav a {
  position: relative;
  padding: 0.2rem 0;
}

.topbar__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  background: var(--pink-deep);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.topbar__nav a:hover::after,
.topbar__nav a[aria-current="true"]::after { transform: scaleX(1); }

.topbar__cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.motion-toggle {
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.35rem 0.2rem;
  color: var(--muted);
}
.motion-toggle:hover { color: var(--ink); }

.icon-btn,
.topbar__menu,
.menu__close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 1.15rem;
}

.topbar__menu { display: none; }

@media (max-width: 980px) {
  .topbar__nav { display: none; }
  .topbar__menu { display: grid; }
  .motion-toggle { display: none; }
}

@media (min-width: 981px) {
  .topbar__nav { display: flex; }
}

@media (max-width: 640px) {
  .topbar__name { display: none; }
}

/* ---------- Menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 4.6rem 0 1rem;
  background: var(--ink);
}

.menu[hidden] { display: none !important; }

.menu__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: var(--paper);
}

.menu > a:not(.btn) {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 0.4rem 1.3rem;
  border-top: 3px solid var(--ink);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1;
  color: var(--ink);
}

.menu > a:not(.btn):nth-of-type(odd) { background: #fff6ea; }
.menu > a:not(.btn):nth-of-type(even) { background: #ffd4e8; }
.menu > a:not(.btn):last-of-type { background: #c8f6ea; }

.menu > a.btn {
  flex: 0;
  align-self: flex-start;
  margin: 0.9rem 1rem 0.4rem;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.15rem;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn img,
.ca-pill img,
.last-ca img {
  width: 22px;
  height: 22px;
  max-width: 22px;
  flex: 0 0 22px;
  object-fit: contain;
}

.btn::after {
  content: "";
  position: absolute;
  inset: -50% auto -50% -40%;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: rotate(18deg) translateX(-160%);
  pointer-events: none;
}

.btn:hover::after { transform: rotate(18deg) translateX(420%); transition: transform 0.7s ease; }

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn--sm { padding: 0.55rem 0.8rem; font-size: 0.95rem; }

.btn--buy {
  background: var(--pink);
  color: var(--ink);
}

.btn--buy:hover { background: #ffb0d0; }

.btn--ghost { background: #fff; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* ---------- Type ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.75rem;
  padding: 0.28rem 0.7rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 0.95; }

h2 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
}

h2 em,
.lede em { font-style: normal; color: var(--pink-deep); }

h3 { margin: 0 0 0.3rem; font-size: 1.35rem; letter-spacing: -0.02em; }

.sub,
.note,
.fine {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.sec-head { text-align: center; margin-bottom: 1.6rem; }
.sec-head .kicker { margin-inline: auto; }
.sec-head .sub { margin-inline: auto; max-width: 38rem; }
.sec-head--left { text-align: left; }
.sec-head--left .sub { margin-inline: 0; }

.band { padding: 4.4rem 0; }
.band--paper { background: var(--paper); }
.band--sand { background: var(--sand); }
.band--pink {
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 255, 255, 0.7), transparent 32%),
    #ffe4f0;
}
.band--mint {
  background:
    radial-gradient(circle at 0% 100%, rgba(255, 255, 255, 0.8), transparent 28%),
    var(--mint);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.55), transparent 26%),
    radial-gradient(circle at 88% 80%, rgba(255, 182, 214, 0.45), transparent 30%),
    radial-gradient(circle at 70% 0%, rgba(180, 245, 226, 0.45), transparent 26%),
    var(--sky);
  padding: 1.6rem 0 2.4rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.6rem;
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.1rem, 6vw, 5.6rem);
}

.hero h1 span { display: block; }

.ink-orange,
.ink-pink {
  text-shadow:
    0 2px 0 #fff,
    2px 0 0 #fff,
    -2px 0 0 #fff,
    0 -2px 0 #fff,
    2px 2px 0 #fff,
    -2px 2px 0 #fff,
    2px -2px 0 #fff,
    -2px -2px 0 #fff,
    5px 5px 0 var(--ink);
}

.ink-orange { color: var(--orange); }
.ink-pink { color: #ff7eb3; font-size: 0.72em; }
.ink-pink small {
  font-size: 0.58em;
  letter-spacing: 0;
  margin-right: 0.12em;
}

.ticker {
  display: inline-block;
  margin: 0.85rem 0 0.35rem;
  padding: 0.22rem 0.7rem;
  background: var(--sun);
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lede {
  margin: 0.85rem 0 0;
  max-width: 38rem;
  font-size: 1.16rem;
}

.hero__copy,
.hero__frame { animation: rise 0.7s ease both; }
.hero__frame { animation-delay: 0.08s; }

@keyframes rise {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero__frame {
  margin: 0;
  padding: 8px;
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

.hero__frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.ca-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: min(100%, 520px);
  margin-top: 0.95rem;
  padding: 0.55rem 0.75rem;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow);
  text-align: left;
}

.ca-pill code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ca-pill__label {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero .fine { color: var(--ink); }

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1.1rem;
  font-weight: 700;
}

.scroll-cue i { animation: nudge 1.4s ease-in-out infinite; }

@keyframes nudge {
  50% { transform: translateY(4px); }
}

/* ---------- Story ---------- */
.wordmark {
  width: min(860px, 100%);
  height: auto;
  margin: 0 auto 1.5rem;
  object-fit: contain;
}

.lore {
  display: grid;
  grid-template-columns: minmax(240px, 0.86fr) 1.14fr;
  gap: 1.6rem;
  align-items: center;
}

.sticker,
.portrait {
  margin: 0;
  padding: 8px;
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

.sticker {
  background:
    radial-gradient(circle at 50% 42%, #fff, #d7f3ff 72%);
}

.sticker img,
.portrait img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.lore__prose p { margin: 0.8rem 0 0; }
.lore__prose p:first-of-type { margin-top: 0.8rem; }

/* ---------- Comic pages ---------- */
.reel__viewport { overflow: visible; }

.reel__track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

@media (min-width: 760px) {
  .reel__track { grid-template-columns: 1fr 1fr; }
}

.page {
  background: var(--cream);
  border: 4px solid var(--ink);
  border-radius: 22px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.page:hover {
  transform: translateY(-4px);
  box-shadow: 8px 10px 0 var(--ink);
}

.page__art img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}

.page__cap {
  margin-top: 8px;
  padding: 0.75rem 0.45rem 0.35rem;
  border-top: 3px solid var(--ink);
}

.page__cap p { margin: 0; color: var(--muted); }

.reel__meter {
  display: none;
  height: 10px;
  margin-top: 0.9rem;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
}

.reel__meter i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--orange), var(--pink-deep));
  transform: scaleX(0);
  transform-origin: left center;
}

html.is-cinema #pages { padding: 1.15rem 0 1rem; }

html.is-cinema .reel__viewport {
  width: 100%;
  overflow: hidden;
}

html.is-cinema .reel__track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  max-width: none;
  gap: 1rem;
  margin: 0;
  padding: 12px max(1rem, calc((100vw - 1120px) / 2)) 16px;
}

html.is-cinema #pages .sec-head { margin-bottom: 0.55rem; }
html.is-cinema #pages h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
html.is-cinema #pages .sub { margin-top: 0.3rem; }

html.is-cinema .page {
  width: min(30vw, 300px);
  flex: 0 0 auto;
}

html.is-cinema .page:hover { transform: translateY(-4px); }

html.is-cinema .reel__meter { display: block; }

/* ---------- Bubbles ---------- */
.cast {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) 1.1fr;
  gap: 1.5rem;
  align-items: center;
}

.bubble {
  position: relative;
  margin: 0.85rem 0 0;
  padding: 0.9rem 1.05rem 1rem;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 5px 5px 0 var(--ink);
}

.bubble .who {
  margin: 0 0 0.25rem;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bubble p:last-child { margin: 0; }

.bubble--chikuwa .who { color: #e07a12; }
.bubble--nene .who { color: var(--pink-deep); }

.bubble::before {
  content: "";
  position: absolute;
  left: -16px;
  bottom: 22px;
  border: 8px solid transparent;
  border-right-color: var(--ink);
}

.bubble::after {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 24px;
  border: 7px solid transparent;
  border-right-color: #fff;
}

.cast .note { margin-top: 1.15rem; }

/* ---------- Energy ---------- */
.energy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.meter {
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 1.05rem 1.1rem 1.15rem;
}

.meter__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink-deep);
  box-shadow: 0 0 0 0 rgba(226, 59, 120, 0.55);
  animation: ping 1.6s ease-out infinite;
}

@keyframes ping {
  70% { box-shadow: 0 0 0 8px rgba(226, 59, 120, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 59, 120, 0); }
}

.hearts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.9rem 0 0.8rem;
}

.hearts button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.hearts button svg {
  width: 26px;
  height: 26px;
  fill: transparent;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linejoin: round;
}

.hearts button[aria-pressed="true"] { background: var(--pink); }
.hearts button[aria-pressed="true"] svg { fill: #fff; }

.hearts button:hover { transform: translateY(-4px); }
.hearts button:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.meter h3 { margin-top: 0.2rem; font-size: 1.7rem; }
.meter > p { margin: 0.4rem 0 0.85rem; color: var(--muted); }

.pulse {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 46px;
}

.pulse i {
  flex: 1;
  display: block;
  height: 100%;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #ffb0d0;
  transform-origin: bottom;
  animation: beat 0.9s ease-in-out infinite alternate;
}

.pulse i:nth-child(3n) { height: 68%; }
.pulse i:nth-child(3n + 2) { height: 42%; }
.pulse i:nth-child(odd) { animation-delay: -0.35s; }

.meter[data-level="1"] .pulse i { animation-duration: 1.35s; background: #ffd0e2; }
.meter[data-level="2"] .pulse i { animation-duration: 1.12s; }
.meter[data-level="3"] .pulse i { animation-duration: 0.9s; }
.meter[data-level="4"] .pulse i { animation-duration: 0.72s; background: #ff8fbd; }
.meter[data-level="5"] .pulse i { animation-duration: 0.55s; background: var(--pink-deep); }
.meter[data-level="5"] {
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255, 143, 189, 0.35);
}

@keyframes beat {
  from { transform: scaleY(0.35); }
  to { transform: scaleY(1); }
}

/* ---------- Buy ---------- */
.howto__lead { max-width: 640px; margin: 0 auto 1.3rem; text-align: center; }
.howto__lead .ca-pill,
.howto__lead .cta-row { margin-inline: auto; }
.howto__lead .ca-pill { text-align: left; }
.howto__lead .cta-row { justify-content: center; }
.howto__lead > p { margin: 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: 0.95rem 0.9rem 1rem;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 var(--ink);
}

.step img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-bottom: 0.65rem;
}

.step p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- Facts ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0;
}

.facts div,
.fact-ca {
  padding: 0.9rem 1rem;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-align: left;
}

.facts > div > span,
.fact-ca > span {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts strong {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 1.12rem;
}

.facts strong img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 18px;
}

.fact-ca {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
}

.fact-ca code { font-size: 1.05rem; user-select: all; }

/* ---------- Closer ---------- */
.closer {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.5), transparent 28%),
    radial-gradient(circle at 10% 80%, rgba(255, 182, 214, 0.4), transparent 30%),
    var(--sky);
  padding-top: 3.4rem;
}

.closer__inner { text-align: center; padding-bottom: 2.2rem; }
.closer h2 { margin-top: 0.2rem; }
.closer__inner > p {
  margin: 0.8rem auto 0;
  max-width: 36rem;
}
.closer .cta-row { justify-content: center; }
.closer .wordmark { margin-bottom: 0.35rem; }

.last-ca {
  background: var(--ink);
  color: #fff6ea;
  padding: 1rem 0;
}

.last-ca__row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.last-ca code {
  flex: 1;
  min-width: 0;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  user-select: all;
  word-break: break-all;
}

.last-ca .btn { flex: 0 0 auto; }

/* ---------- Footer ---------- */
.footer {
  background: #12182c;
  color: #fff6ea;
  padding: 1.8rem 0 2rem;
}

.footer__grid {
  display: grid;
  gap: 1rem;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
}

.footer__brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 4px;
  border: 2px solid #fff6ea;
  background: var(--sky);
}

.footer__brand span { display: flex; flex-direction: column; line-height: 1.15; }
.footer__brand small { font-weight: 500; color: #c9d0e4; }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
  font-weight: 700;
}

.footer__links a:hover { color: var(--pink); }

.footer__legal {
  margin: 0;
  max-width: 70rem;
  color: #c9d0e4;
  font-size: 0.95rem;
}

/* ---------- Mobile bar / toast ---------- */
.mbar { display: none; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  z-index: 70;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: #fff6ea;
  border-radius: 999px;
  font-weight: 700;
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Reveals ---------- */
html.js [data-reveal] {
  opacity: 0;
  transition: opacity 0.6s ease;
}

html.js [data-reveal].in { opacity: 1; }

@media (max-width: 900px) {
  .hero__grid,
  .lore,
  .cast,
  .energy,
  .steps,
  .facts { grid-template-columns: 1fr 1fr; }
  .hero__grid,
  .lore,
  .cast,
  .energy { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero__frame { order: -1; }
  .sec-head--left { text-align: center; }
  .sec-head--left .sub { margin-inline: auto; }
}

@media (max-width: 900px) {
  .bubble::before,
  .bubble::after { display: none; }
}

@media (max-width: 640px) {
  .steps,
  .facts { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.8rem, 14vw, 3.6rem); }
  .cta-row .btn { flex: 1 1 auto; }
  .last-ca__row { flex-wrap: wrap; }
  .last-ca code { flex: 1 1 100%; }
}

@media (max-width: 720px) {
  .topbar .btn--buy { display: none; }
  .mbar {
    position: fixed;
    left: 0.55rem;
    right: 0.55rem;
    bottom: 0.55rem;
    z-index: 40;
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 0.4rem;
    padding: 0.4rem;
    background: rgba(255, 248, 238, 0.96);
    border: 3px solid var(--ink);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .mbar .btn { width: 100%; box-shadow: none; }
  .mbar .btn:hover { transform: none; }
  body { padding-bottom: 5rem; }
  .toast { bottom: 5.2rem; }
  body.menu-open .mbar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html.js [data-reveal] { opacity: 1; }
  .motion-toggle { display: none; }
}
