@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@500;600;700;800;900&family=Press+Start+2P&display=swap");

:root {
  color-scheme: dark;
  --ink: #f7f8ff;
  --muted: #b8bed8;
  --night: #070919;
  --panel: #10152e;
  --line: rgba(255, 255, 255, 0.16);
  --yellow: #ffd83d;
  --cyan: #52e9ff;
  --pink: #ff5ebd;
  --green: #55ef9f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --rounded: "Nunito", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 115px;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 8%, rgba(82, 233, 255, 0.12), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(255, 94, 189, 0.12), transparent 30rem),
    var(--night);
  color: var(--ink);
  font-family: var(--rounded);
  font-size: 16px;
  line-height: 1.55;
}

.loading-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 30px;
  color: var(--cyan);
  font-family: var(--pixel);
  font-size: 0.72rem;
  line-height: 1.8;
  text-align: center;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(96, 117, 196, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 117, 196, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  transform: translateY(-150%);
  border: 2px solid #fff;
  background: #050713;
  font-weight: 900;
}

.skip-link:focus {
  transform: translateY(0);
}

.arcade-shell {
  width: min(1380px, calc(100% - 40px));
  margin-inline: auto;
}

.arcade-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(145px, 1fr);
  align-items: center;
  min-height: 76px;
  padding: 10px max(20px, calc((100vw - 1380px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 9, 25, 0.9);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.arcade-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  font-weight: 900;
  line-height: 1.1;
}

.arcade-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(82, 233, 255, 0.25));
}

.arcade-brand span {
  display: grid;
  gap: 5px;
}

.arcade-brand small {
  color: var(--cyan);
  font-family: var(--pixel);
  font-size: 0.52rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.arcade-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.arcade-nav a {
  padding: 8px 13px;
  border-radius: 8px;
  color: #c8cde2;
  font-size: 0.92rem;
  font-weight: 800;
}

.arcade-nav a:hover,
.arcade-nav a.active {
  background: var(--yellow);
  color: #141019;
}

.sound-toggle {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #151a35;
  cursor: pointer;
  box-shadow: 0 5px 0 #060712;
}

.sound-toggle:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #060712;
}

.sound-toggle b {
  font-family: var(--pixel);
  font-size: 0.5rem;
  font-weight: 400;
}

.pixel-sky {
  position: fixed;
  inset: 76px 0 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.pixel-sky i {
  position: absolute;
  top: calc(3% + var(--i) * 5.1%);
  left: calc(2% + var(--i) * 5.35%);
  width: 4px;
  height: 4px;
  background: #fff;
  box-shadow: 0 0 14px #fff;
  animation: star-pulse 2.8s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.19s);
}

.pixel-sky i:nth-child(3n) {
  left: calc(96% - var(--i) * 4.7%);
  background: var(--yellow);
  box-shadow: 0 0 14px var(--yellow);
}

.pixel-sky i:nth-child(4n) {
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}

@keyframes star-pulse {
  0% { opacity: 0.25; transform: scale(0.7) rotate(0); }
  100% { opacity: 1; transform: scale(1.25) rotate(45deg); }
}

.back-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--muted);
  font-family: var(--pixel);
  font-size: 0.52rem;
  line-height: 1.4;
}

.back-chip:hover {
  border-color: var(--yellow);
  color: #fff;
}

.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
  align-items: center;
  gap: clamp(30px, 5vw, 75px);
  min-height: 510px;
  padding-block: 48px 38px;
}

.hero-copy {
  display: grid;
  justify-items: start;
  gap: 16px;
}

.mission-chip {
  display: flex;
  align-items: center;
  gap: 11px;
}

.mission-chip span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 3px solid #0b0d20;
  outline: 3px solid var(--yellow);
  border-radius: 10px;
  background: var(--yellow);
  color: #11131c;
  font-family: var(--pixel);
  font-size: 1.05rem;
  box-shadow: 8px 8px 0 rgba(255, 94, 189, 0.45);
}

.mission-chip b,
.pixel-kicker,
.section-heading > span,
.compact-heading > span {
  color: var(--cyan);
  font-family: var(--pixel);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3rem, 6.2vw, 6.2rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.9;
  text-wrap: balance;
}

.hero-copy h1 span {
  display: block;
  color: var(--yellow);
  text-shadow: 5px 5px 0 #b92279, 9px 9px 0 rgba(0, 0, 0, 0.25);
}

.hero-copy > p:not(.pixel-kicker) {
  max-width: 690px;
  margin: 0;
  color: #d0d5e8;
  font-size: clamp(1.04rem, 1.35vw, 1.25rem);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 5px;
}

.hero-stats span {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 150px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
}

.hero-stats b {
  color: var(--yellow);
  font-family: var(--pixel);
  font-size: 1.18rem;
}

.hero-stats small {
  color: #dde1f0;
  font-weight: 800;
}

.hero-party {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  min-height: 390px;
  padding: 80px 18px 0;
  border: 2px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, transparent 58%, rgba(5, 7, 20, 0.96) 58%),
    radial-gradient(circle at 50% 45%, rgba(82, 233, 255, 0.25), transparent 48%),
    #111632;
  box-shadow: var(--shadow), inset 0 0 0 8px rgba(255, 255, 255, 0.025);
  isolation: isolate;
}

.hero-party::before {
  position: absolute;
  inset: 18px;
  z-index: -1;
  border: 1px dashed rgba(82, 233, 255, 0.35);
  border-radius: 15px;
  content: "";
}

.character {
  position: relative;
  display: grid;
  justify-items: center;
  align-self: end;
}

.character img {
  width: 100%;
  height: 275px;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 18px 16px rgba(0, 0, 0, 0.5));
  animation: hero-float 3.4s ease-in-out infinite;
}

.cat-character img {
  animation-delay: -1.3s;
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.character b {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: calc(100% + 5px);
  padding: 10px 6px;
  border-top: 1px solid var(--line);
  font-family: var(--pixel);
  font-size: 0.61rem;
  font-weight: 400;
}

.character b small {
  margin-top: 5px;
  color: var(--cyan);
  font-family: var(--rounded);
  font-size: 0.66rem;
  font-weight: 900;
}

.speech {
  position: absolute;
  top: -57px;
  z-index: 3;
  width: 175px;
  padding: 10px 12px;
  border: 2px solid #101326;
  border-radius: 12px 12px 12px 2px;
  background: #fff;
  color: #111326;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.25;
  box-shadow: 5px 5px 0 var(--yellow);
}

.cat-character .speech {
  border-radius: 12px 12px 2px 12px;
  box-shadow: 5px 5px 0 var(--pink);
}

.portal-select {
  padding-block: 28px 62px;
}

.section-heading {
  display: grid;
  justify-items: center;
  max-width: 830px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading h2 {
  margin: 8px 0 7px;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
  text-wrap: balance;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.compact-heading h2 {
  font-size: clamp(1.85rem, 3vw, 3rem);
}

.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.portal {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 152px;
  padding: 20px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  background: #151b3c;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 0 #050713, 0 25px 55px rgba(0, 0, 0, 0.25);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.portal::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, 0.13), transparent 62%);
  transform: translateX(-110%);
  content: "";
  transition: transform 550ms ease;
}

.portal:hover,
.portal[aria-pressed="true"] {
  z-index: 1;
  transform: translateY(-5px);
  border-color: var(--portal-color);
  box-shadow: 0 15px 0 #050713, 0 0 45px color-mix(in srgb, var(--portal-color), transparent 66%);
}

.portal:hover::after {
  transform: translateX(110%);
}

.portal:active {
  transform: translateY(5px);
  box-shadow: 0 5px 0 #050713;
}

.portal-a4 {
  --portal-color: var(--cyan);
  background: linear-gradient(135deg, rgba(0, 169, 255, 0.24), transparent 60%), #111a39;
}

.portal-a5 {
  --portal-color: var(--yellow);
  background: linear-gradient(135deg, rgba(255, 200, 40, 0.22), transparent 60%), #201632;
}

.portal-code {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 3px solid var(--portal-color);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: var(--portal-color);
  font-family: var(--pixel);
  font-size: 1.15rem;
  box-shadow: inset 0 0 22px color-mix(in srgb, var(--portal-color), transparent 70%);
}

.portal > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.portal small {
  color: var(--portal-color);
  font-family: var(--pixel);
  font-size: 0.5rem;
  line-height: 1.5;
}

.portal strong {
  font-size: clamp(1.4rem, 2.1vw, 2rem);
  font-weight: 900;
}

.portal em {
  color: #c1c7dd;
  font-size: 0.95rem;
  font-style: normal;
}

.portal > b {
  position: relative;
  z-index: 2;
  padding: 9px;
  border: 1px solid var(--portal-color);
  border-radius: 8px;
  color: var(--portal-color);
  font-family: var(--pixel);
  font-size: 0.47rem;
  font-weight: 400;
  white-space: nowrap;
}

.show-all {
  display: block;
  margin: 26px auto 0;
  padding: 11px 18px;
  border: 1px solid var(--yellow);
  border-radius: 8px;
  background: transparent;
  color: var(--yellow);
  cursor: pointer;
  font-weight: 900;
}

.world-select {
  padding-block: 55px 95px;
  border-top: 1px solid var(--line);
}

.world-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.world-card {
  --world: #52e9ff;
  --world-2: #3157ff;
  --world-dark: #0b1730;
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--world), transparent 36%);
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 4%, color-mix(in srgb, var(--world), transparent 60%), transparent 30%),
    linear-gradient(160deg, color-mix(in srgb, var(--world-dark), #11162e 32%), #080b1c 70%);
  box-shadow: 0 12px 0 #03040c, 0 28px 60px rgba(0, 0, 0, 0.3);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  isolation: isolate;
  animation: card-enter 450ms both;
}

.world-card:nth-child(2n) { animation-delay: 60ms; }
.world-card:nth-child(3n) { animation-delay: 120ms; }

@keyframes card-enter {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.world-card:hover {
  z-index: 3;
  transform: translateY(-10px);
  border-color: var(--world);
  box-shadow: 0 18px 0 #03040c, 0 0 48px color-mix(in srgb, var(--world), transparent 68%);
}

.world-card.last-pair-start {
  grid-column: 2 / span 2;
}

.world-card.last-single {
  grid-column: 3 / span 2;
}

[data-theme="language"] { --world: #45e8ff; --world-2: #2564ff; --world-dark: #071f3c; }
[data-theme="literature-ab"] { --world: #c892ff; --world-2: #f7cb4e; --world-dark: #241044; }
[data-theme="literature-cd"] { --world: #ff749f; --world-2: #f0bb45; --world-dark: #421128; }
[data-theme="history"] { --world: #ffc65a; --world-2: #2fc3b5; --world-dark: #392611; }
[data-theme="biology"] { --world: #60efa4; --world-2: #31bfc5; --world-dark: #0d302a; }
[data-theme="civics"] { --world: #77adff; --world-2: #ff636e; --world-dark: #15274c; }
[data-theme="geography"] { --world: #72e39a; --world-2: #ff9d45; --world-dark: #183523; }
[data-theme="economy"] { --world: #ffe35a; --world-2: #64dfa7; --world-dark: #2d2c0b; }

.world-symbols {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.world-symbols span {
  position: absolute;
  top: calc(9% + var(--symbol-index) * 33%);
  right: calc(4% + var(--symbol-index) * 6%);
  color: color-mix(in srgb, var(--world), transparent 55%);
  font-family: var(--pixel);
  font-size: calc(1.25rem + var(--symbol-index) * 0.25rem);
  font-style: normal;
  transform: rotate(calc(-8deg + var(--symbol-index) * 13deg));
  animation: symbol-drift 4s ease-in-out infinite alternate;
  animation-delay: calc(var(--symbol-index) * -0.8s);
}

@keyframes symbol-drift {
  to { transform: translateY(-12px) rotate(8deg); }
}

.level-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 49px;
  padding: 11px 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--world), transparent 60%);
  background: rgba(0, 0, 0, 0.22);
  font-family: var(--pixel);
  font-size: 0.53rem;
  line-height: 1.4;
}

.level-line span { color: var(--world); }
.level-line small { color: #c9cee0; font-size: 0.43rem; }

.book-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
  padding: 28px 34px 18px;
}

.book-stage::after {
  position: absolute;
  bottom: 15px;
  left: 50%;
  width: 66%;
  height: 22px;
  transform: translateX(-50%);
  border: 2px solid var(--world);
  border-radius: 50%;
  background: color-mix(in srgb, var(--world), transparent 65%);
  box-shadow: 0 0 28px var(--world);
  content: "";
  filter: blur(2px);
}

.portal-ring {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border: 2px dashed color-mix(in srgb, var(--world), transparent 38%);
  border-radius: 50%;
  box-shadow: inset 0 0 50px color-mix(in srgb, var(--world), transparent 78%);
  animation: portal-spin 18s linear infinite;
}

@keyframes portal-spin { to { transform: rotate(360deg); } }

.book-stage img {
  position: relative;
  z-index: 2;
  width: auto;
  max-width: 100%;
  height: 325px;
  object-fit: contain;
  filter: drop-shadow(0 22px 15px rgba(0, 0, 0, 0.55));
  transition: transform 220ms ease;
}

.world-card:hover .book-stage img {
  transform: translateY(-9px) scale(1.025);
}

.price-token {
  position: absolute;
  right: 14px;
  bottom: 22px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 3px solid #17101b;
  outline: 3px solid var(--yellow);
  border-radius: 50%;
  background: var(--yellow);
  color: #15111b;
  transform: rotate(5deg);
  box-shadow: 6px 7px 0 rgba(0, 0, 0, 0.45);
}

.price-token small {
  font-family: var(--pixel);
  font-size: 0.38rem;
}

.price-token b {
  font-size: 1.25rem;
  line-height: 1;
}

.world-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  border-top: 1px solid color-mix(in srgb, var(--world), transparent 55%);
  background: rgba(4, 6, 18, 0.68);
}

.format-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  color: var(--world);
  font-family: var(--pixel);
  font-size: 0.5rem;
}

.format-row b {
  padding: 4px 7px;
  border: 1px solid currentColor;
  border-radius: 5px;
}

.world-card-copy > p {
  margin: 20px 0 4px;
  color: var(--muted);
  font-family: var(--pixel);
  font-size: 0.48rem;
}

.world-card-copy h2 {
  margin: 0;
  color: var(--world);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.course-name {
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 900;
}

.world-card-copy > small {
  min-height: 48px;
  margin-top: 7px;
  color: #c3c9dc;
  font-size: 0.92rem;
}

.product-specs {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 7px;
  width: 100%;
  margin-top: 14px;
}

.product-specs > span {
  display: grid;
  align-content: center;
  min-height: 61px;
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--world), transparent 58%);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.product-specs small {
  color: var(--world);
  font-family: var(--pixel);
  font-size: 0.43rem;
  line-height: 1.5;
}

.product-specs b {
  margin-top: 4px;
  font-size: 0.83rem;
  line-height: 1.18;
}

.product-specs .product-edition {
  grid-column: 1 / -1;
  min-height: 54px;
}

.product-available b,
.hud-available b {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
}

.product-available i,
.hud-available i {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 13px var(--green);
  animation: available-pulse 1.8s ease-in-out infinite alternate;
}

@keyframes available-pulse {
  to { opacity: 0.55; transform: scale(0.75); }
}

.unlock-line {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  padding: 16px 0 13px;
  border-top: 1px dashed var(--line);
  color: #e9ecf7;
  font-size: 0.91rem;
  font-weight: 800;
}

.unlock-line span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--world);
  color: #0a0b13;
}

.world-card-actions {
  display: grid;
  gap: 10px;
  width: 100%;
}

.cart-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 10px 13px;
  border: 2px solid var(--world);
  border-radius: 8px;
  background: color-mix(in srgb, var(--world), transparent 90%);
  color: var(--world);
  cursor: pointer;
  font-family: var(--pixel);
  font-size: 0.5rem;
  line-height: 1.5;
  box-shadow: 0 5px 0 color-mix(in srgb, var(--world), #000 70%);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.cart-toggle > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: var(--world);
  color: #070914;
  font-family: var(--rounded);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
}

.cart-toggle:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--world), transparent 82%);
}

.cart-toggle:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 color-mix(in srgb, var(--world), #000 70%);
}

.cart-toggle.is-selected {
  border-color: var(--green);
  background: color-mix(in srgb, var(--green), #07101a 74%);
  color: #effff6;
  box-shadow: 0 5px 0 #17462f, 0 0 22px rgba(85, 239, 159, 0.18);
}

.cart-toggle.is-selected > span {
  background: var(--green);
}

.enter-world,
.primary-action,
.secondary-action,
.consult-section > a,
.final-call > a,
.final-call > button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid #060713;
  border-radius: 8px;
  background: var(--world);
  color: #080a13;
  font-family: var(--pixel);
  font-size: 0.55rem;
  line-height: 1.5;
  box-shadow: 0 6px 0 color-mix(in srgb, var(--world), #000 62%);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.enter-world:hover,
.primary-action:hover,
.consult-section > a:hover,
.final-call > a:hover,
.final-call > button:hover {
  filter: brightness(1.12);
  transform: translateY(-3px);
}

.enter-world:active,
.primary-action:active,
.secondary-action:active,
.consult-section > a:active,
.final-call > a:active,
.final-call > button:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 color-mix(in srgb, var(--world), #000 62%);
}

.final-call {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px minmax(250px, 0.5fr);
  align-items: center;
  gap: 25px;
  margin-bottom: 28px;
  padding: 26px 30px;
  overflow: hidden;
  border: 2px solid var(--yellow);
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(255, 216, 61, 0.16), rgba(255, 94, 189, 0.1)), #11152e;
  box-shadow: 0 11px 0 #03040d;
}

.final-call > div > span,
.consult-section > div > span {
  color: var(--yellow);
  font-family: var(--pixel);
  font-size: 0.55rem;
}

.final-call h2,
.consult-section h2 {
  margin: 7px 0;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  line-height: 1;
}

.final-call p,
.consult-section p {
  margin: 0;
  color: var(--muted);
}

.final-call img {
  width: 120px;
  height: 150px;
  object-fit: contain;
  object-position: bottom;
  align-self: end;
}

.final-call > a,
.final-call > button {
  --world: var(--yellow);
  cursor: pointer;
}

body[data-page="catalog"],
body[data-page="detail"] {
  padding-bottom: 94px;
}

.mission-cart-dock {
  position: fixed;
  right: 50%;
  bottom: 14px;
  z-index: 108;
  display: grid;
  grid-template-columns: 58px minmax(145px, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: min(590px, calc(100% - 32px));
  min-height: 72px;
  padding: 7px 8px 7px 5px;
  border: 2px solid rgba(82, 233, 255, 0.62);
  border-radius: 15px;
  background:
    linear-gradient(105deg, rgba(82, 233, 255, 0.11), rgba(255, 216, 61, 0.08)),
    rgba(6, 9, 27, 0.96);
  box-shadow: 0 9px 0 rgba(1, 2, 8, 0.88), 0 20px 55px rgba(0, 0, 0, 0.48);
  transform: translateX(50%);
  backdrop-filter: blur(15px);
}

.mission-cart-dock.has-items {
  border-color: var(--yellow);
  box-shadow: 0 9px 0 rgba(1, 2, 8, 0.88), 0 0 28px rgba(255, 216, 61, 0.2);
}

.mission-cart-dock > img {
  align-self: end;
  width: 58px;
  height: 68px;
  object-fit: contain;
  object-position: bottom;
}

.mission-cart-dock > div {
  display: grid;
  gap: 4px;
}

.mission-cart-dock small {
  color: var(--cyan);
  font-family: var(--pixel);
  font-size: 0.45rem;
  line-height: 1.5;
}

.mission-cart-dock strong {
  font-size: 1rem;
}

.mission-cart-dock > button {
  min-height: 48px;
  padding: 10px 13px;
  border: 2px solid #11131c;
  border-radius: 8px;
  background: var(--yellow);
  color: #11131c;
  cursor: pointer;
  font-family: var(--pixel);
  font-size: 0.47rem;
  line-height: 1.45;
  box-shadow: 0 5px 0 #8f7413;
}

.mission-cart-dock > button:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #8f7413;
}

.mission-cart-dialog {
  width: min(1080px, calc(100% - 30px));
  max-width: none;
  max-height: min(90vh, 900px);
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--cyan);
  border-radius: 20px;
  background: #090c20;
  color: var(--ink);
  box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.55), 0 0 65px rgba(82, 233, 255, 0.27);
}

.mission-cart-dialog::backdrop {
  background: rgba(2, 3, 12, 0.84);
  backdrop-filter: blur(9px);
}

.mission-cart-dialog[open] {
  animation: cart-open 190ms ease-out both;
}

@keyframes cart-open {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.mission-cart-window {
  position: relative;
  max-height: min(90vh, 900px);
  overflow: auto;
}

.cart-dialog-close {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: #080b1d;
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1;
}

.cart-dialog-header {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: end;
  gap: 19px;
  min-height: 165px;
  padding: 22px 75px 0 28px;
  overflow: hidden;
  border-bottom: 1px solid rgba(82, 233, 255, 0.35);
  background:
    linear-gradient(105deg, rgba(82, 233, 255, 0.18), rgba(255, 94, 189, 0.1)),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(82, 233, 255, 0.055) 31px 32px),
    #111632;
}

.cart-dialog-header img {
  width: 112px;
  height: 150px;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 13px 13px rgba(0, 0, 0, 0.45));
}

.cart-dialog-header > div {
  align-self: center;
  padding-bottom: 20px;
}

.cart-dialog-header span {
  color: var(--cyan);
  font-family: var(--pixel);
  font-size: 0.5rem;
  line-height: 1.5;
}

.cart-dialog-header h2 {
  margin: 6px 0 5px;
  color: var(--yellow);
  font-size: clamp(2rem, 4vw, 3.7rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.cart-dialog-header p {
  margin: 0;
  color: #d2d7e9;
}

.cart-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid rgba(82, 233, 255, 0.24);
  background: rgba(82, 233, 255, 0.14);
}

.cart-progress li {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 1px 10px;
  min-width: 0;
  min-height: 72px;
  padding: 10px 18px;
  background: #0b0f27;
  color: #7f879f;
}

.cart-progress li > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #505a78;
  border-radius: 7px;
  font-family: var(--pixel);
  font-size: 0.56rem;
}

.cart-progress b {
  align-self: end;
  font-family: var(--pixel);
  font-size: 0.43rem;
  line-height: 1.45;
}

.cart-progress small {
  align-self: start;
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-progress li[data-state="active"] {
  color: #fff;
  background: linear-gradient(100deg, rgba(82, 233, 255, 0.16), rgba(255, 216, 61, 0.06)), #0b0f27;
  box-shadow: inset 0 -3px 0 var(--cyan);
}

.cart-progress li[data-state="active"] > span {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #051117;
  box-shadow: 0 0 18px rgba(82, 233, 255, 0.32);
}

.cart-progress li[data-state="complete"] {
  color: #d9ffea;
  background: linear-gradient(100deg, rgba(80, 228, 142, 0.13), transparent), #0b0f27;
}

.cart-progress li[data-state="complete"] > span {
  border-color: var(--green);
  background: var(--green);
  color: #06150d;
}

.cart-dialog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(310px, 0.68fr);
  min-height: 480px;
}

.cart-selection {
  min-width: 0;
  padding: 27px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.cart-section-title {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
}

.cart-section-title > span,
.cart-checkout legend > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--cyan);
  color: #06121a;
  font-family: var(--pixel);
  font-size: 0.65rem;
}

.cart-section-title small {
  color: var(--cyan);
  font-family: var(--pixel);
  font-size: 0.42rem;
  line-height: 1.5;
}

.cart-section-title h3 {
  margin: 2px 0 0;
  font-size: 1.35rem;
  line-height: 1.1;
}

.cart-section-title > button {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: transparent;
  color: #d7dbea;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 900;
}

.cart-section-title > button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.cart-items {
  display: grid;
  gap: 10px;
  max-height: 405px;
  padding: 2px 7px 10px 2px;
  overflow-y: auto;
}

.cart-item {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border: 1px solid rgba(82, 233, 255, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.cart-item > img {
  width: 66px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.35));
}

.cart-item > div {
  min-width: 0;
}

.cart-item small {
  color: var(--cyan);
  font-family: var(--pixel);
  font-size: 0.4rem;
  line-height: 1.5;
}

.cart-item h4 {
  margin: 4px 0 1px;
  font-size: 1rem;
  line-height: 1.15;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.81rem;
}

.cart-item > strong {
  color: var(--yellow);
  font-size: 1.03rem;
  white-space: nowrap;
}

.cart-item > button {
  padding: 7px 8px;
  border: 1px solid rgba(255, 113, 143, 0.65);
  border-radius: 6px;
  background: rgba(255, 94, 123, 0.1);
  color: #ffadc0;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
}

.cart-empty {
  display: grid;
  justify-items: center;
  min-height: 290px;
  place-content: center;
  padding: 30px;
  border: 1px dashed rgba(82, 233, 255, 0.34);
  border-radius: 13px;
  background: rgba(82, 233, 255, 0.035);
  text-align: center;
}

.cart-empty > span {
  display: grid;
  place-items: center;
  width: 57px;
  height: 57px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 1.7rem;
}

.cart-empty h3 {
  margin: 14px 0 5px;
  font-size: 1.35rem;
}

.cart-empty p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
}

.cart-checkout {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 27px;
  background: rgba(255, 255, 255, 0.025);
}

.cart-promo {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 216, 61, 0.62);
  border-radius: 9px;
  background: linear-gradient(105deg, rgba(255, 216, 61, 0.14), rgba(255, 94, 189, 0.08));
}

.cart-promo > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--yellow);
  color: #17120a;
  font-size: 1.1rem;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.28);
}

.cart-promo > div {
  display: grid;
  gap: 3px;
}

.cart-promo b {
  color: var(--yellow);
  font-family: var(--pixel);
  font-size: 0.43rem;
  line-height: 1.5;
}

.cart-promo small {
  color: #e5e7f3;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.cart-checkout fieldset {
  display: grid;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.cart-checkout legend {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: 900;
}

.cart-checkout label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.cart-checkout label:has(input:checked) {
  border-color: var(--cyan);
  background: rgba(82, 233, 255, 0.09);
  box-shadow: inset 4px 0 0 var(--cyan);
}

.cart-checkout input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--cyan);
}

.cart-checkout label > span {
  display: grid;
}

.cart-checkout label b {
  font-size: 0.95rem;
}

.cart-checkout label small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.cart-total {
  display: grid;
  padding: 16px;
  border: 1px solid rgba(255, 216, 61, 0.55);
  border-radius: 10px;
  background: rgba(255, 216, 61, 0.08);
}

.cart-total > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-block: 4px;
}

.cart-total small {
  color: var(--yellow);
  font-family: var(--pixel);
  font-size: 0.42rem;
  line-height: 1.5;
}

.cart-total b {
  color: #f1f3fb;
  font-size: 1.05rem;
  white-space: nowrap;
}

.cart-discount-line {
  opacity: 0.58;
}

.cart-discount-line.is-active {
  opacity: 1;
}

.cart-discount-line.is-active small,
.cart-discount-line.is-active b {
  color: var(--green);
}

.cart-total .cart-final-line {
  margin-top: 5px;
  padding-top: 11px;
  border-top: 1px dashed rgba(255, 216, 61, 0.45);
}

.cart-total strong {
  color: var(--yellow);
  font-size: 2.2rem;
  line-height: 1;
  white-space: nowrap;
}

.cart-total > span {
  margin-top: 8px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #d1d5e6;
  font-size: 0.78rem;
  line-height: 1.35;
}

.cart-send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 56px;
  padding: 11px 13px;
  border: 2px solid #082315;
  border-radius: 9px;
  background: #50e48e;
  color: #07160e;
  cursor: pointer;
  font-family: var(--pixel);
  font-size: 0.5rem;
  line-height: 1.45;
  box-shadow: 0 6px 0 #1c8a4d;
}

.cart-send img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.cart-send:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #1c8a4d;
}

.cart-send:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.65);
}

.cart-form-status {
  margin: -2px 0 0;
  color: #ffd66f;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

.cart-form-status.is-ready {
  color: #80efad;
}

.cart-payment-note {
  margin: 0;
  padding-left: 11px;
  border-left: 3px solid rgba(255, 255, 255, 0.22);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.store-confidence {
  position: relative;
  margin-bottom: 90px;
  padding: 42px;
  overflow: hidden;
  border: 2px solid rgba(82, 233, 255, 0.48);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(82, 233, 255, 0.1), rgba(255, 94, 189, 0.06) 48%, rgba(255, 216, 61, 0.08)),
    repeating-linear-gradient(90deg, transparent 0 43px, rgba(82, 233, 255, 0.035) 43px 44px),
    #0b0e24;
  box-shadow: 0 11px 0 #03040d;
}

.store-confidence::after {
  position: absolute;
  top: 18px;
  right: 20px;
  color: rgba(82, 233, 255, 0.16);
  content: "S/  ✓  WA";
  font-family: var(--pixel);
  font-size: clamp(0.7rem, 2vw, 1.2rem);
  letter-spacing: 0.22em;
}

.store-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.store-faq details {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  background: rgba(4, 6, 19, 0.7);
}

.store-faq details:first-child {
  grid-column: 1 / -1;
}

.store-faq details[open] {
  border-color: rgba(82, 233, 255, 0.7);
  background: linear-gradient(110deg, rgba(82, 233, 255, 0.09), transparent), rgba(4, 6, 19, 0.82);
}

.store-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 58px;
  padding: 13px 15px;
  color: #f2f5ff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
  list-style: none;
}

.store-faq summary::-webkit-details-marker {
  display: none;
}

.store-faq summary span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--cyan);
  border-radius: 6px;
  color: var(--cyan);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.store-faq details[open] summary span {
  background: var(--cyan);
  color: #071218;
  transform: rotate(45deg);
}

.store-faq p {
  margin: 0;
  padding: 0 16px 17px;
  color: #c6ccdd;
  font-size: 0.94rem;
  line-height: 1.55;
}

.store-confirmation-note {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 15px 17px;
  border: 1px solid rgba(80, 228, 142, 0.55);
  border-radius: 11px;
  background: rgba(80, 228, 142, 0.09);
}

.store-confirmation-note > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--green);
  color: #07140c;
  font-size: 1.25rem;
  font-weight: 950;
}

.store-confirmation-note p {
  margin: 0;
  color: #d9e9df;
  line-height: 1.45;
}

.store-confirmation-note b {
  color: #7cf0aa;
}

.arcade-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 30px;
  padding: 28px max(20px, calc((100vw - 1380px) / 2));
  border-top: 1px solid var(--line);
  background: #050713;
  color: #b9bfd2;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 900;
}

.footer-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.footer-brand span { display: grid; }
.footer-brand small { color: var(--muted); font-weight: 700; }

.arcade-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.arcade-footer a:hover { color: var(--yellow); }

/* Fichas de mundo */
body[data-page="detail"] {
  --world: #52e9ff;
  --world-2: #3157ff;
  --world-dark: #0b1730;
  background:
    radial-gradient(circle at 15% 10%, color-mix(in srgb, var(--world), transparent 78%), transparent 32rem),
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--world-2), transparent 78%), transparent 34rem),
    var(--night);
}

body[data-theme="language"] { --world: #45e8ff; --world-2: #2564ff; --world-dark: #071f3c; }
body[data-theme="literature-ab"] { --world: #c892ff; --world-2: #f7cb4e; --world-dark: #241044; }
body[data-theme="literature-cd"] { --world: #ff749f; --world-2: #f0bb45; --world-dark: #421128; }
body[data-theme="history"] { --world: #ffc65a; --world-2: #2fc3b5; --world-dark: #392611; }
body[data-theme="biology"] { --world: #60efa4; --world-2: #31bfc5; --world-dark: #0d302a; }
body[data-theme="civics"] { --world: #77adff; --world-2: #ff636e; --world-dark: #15274c; }
body[data-theme="geography"] { --world: #72e39a; --world-2: #ff9d45; --world-dark: #183523; }
body[data-theme="economy"] { --world: #ffe35a; --world-2: #64dfa7; --world-dark: #2d2c0b; }

.mission-progress {
  position: sticky;
  top: 76px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--world), transparent 55%);
  background: color-mix(in srgb, var(--world-dark), #070919 45%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.mission-progress a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 7px;
  font-family: var(--pixel);
  font-size: 0.48rem;
  line-height: 1.45;
}

.mission-progress a:hover {
  background: var(--world);
  color: #080a12;
}

.mission-progress a span {
  color: var(--world);
}

.mission-progress a:hover span { color: inherit; }
.mission-progress i { color: var(--world); font-style: normal; }

.detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(35px, 6vw, 90px);
  align-items: center;
  min-height: 690px;
  padding-block: 58px 68px;
  isolation: isolate;
}

.detail-hero::before {
  position: absolute;
  inset: 32px 0;
  z-index: -2;
  border: 2px solid color-mix(in srgb, var(--world), transparent 55%);
  border-radius: 28px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--world-dark), transparent 5%), rgba(8, 10, 28, 0.93)),
    repeating-linear-gradient(90deg, transparent 0 54px, color-mix(in srgb, var(--world), transparent 90%) 54px 56px);
  box-shadow: var(--shadow), inset 0 0 60px color-mix(in srgb, var(--world), transparent 88%);
  content: "";
}

.detail-hero .world-symbols span {
  right: calc(2% + var(--symbol-index) * 38%);
  top: calc(9% + var(--symbol-index) * 24%);
  font-size: clamp(1.7rem, 4vw, 3.8rem);
  opacity: 0.62;
}

.cover-vault {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 34px;
}

.unlocked-label {
  position: relative;
  z-index: 3;
  margin-bottom: -11px;
  padding: 9px 13px;
  border: 2px solid #080912;
  border-radius: 7px;
  background: var(--world);
  color: #080912;
  font-family: var(--pixel);
  font-size: 0.48rem;
  line-height: 1.4;
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--world-2), #000 40%);
}

.cover-pedestal {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 500px;
  padding: 33px 30px 18px;
  border: 2px solid var(--world);
  border-radius: 52% 52% 18px 18px;
  background:
    radial-gradient(ellipse at center, color-mix(in srgb, var(--world), transparent 70%), transparent 60%),
    rgba(0, 0, 0, 0.24);
  box-shadow: inset 0 0 50px color-mix(in srgb, var(--world), transparent 78%), 0 0 35px color-mix(in srgb, var(--world), transparent 70%);
}

.cover-pedestal::after {
  position: absolute;
  bottom: -18px;
  width: 86%;
  height: 32px;
  border: 2px solid var(--world);
  border-radius: 50%;
  background: color-mix(in srgb, var(--world), transparent 58%);
  box-shadow: 0 0 34px var(--world);
  content: "";
}

.cover-pedestal img {
  position: relative;
  z-index: 2;
  width: auto;
  max-width: 100%;
  height: 445px;
  object-fit: contain;
  filter: drop-shadow(0 26px 18px rgba(0, 0, 0, 0.58));
  animation: book-hover 3.4s ease-in-out infinite;
}

@keyframes book-hover {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-9px) rotate(1deg); }
}

.cover-data {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 88%;
  margin-top: -3px;
  padding: 11px 13px;
  border: 1px solid color-mix(in srgb, var(--world), transparent 30%);
  border-radius: 7px;
  background: #070919;
  color: var(--world);
  font-family: var(--pixel);
  font-size: 0.48rem;
  line-height: 1.4;
}

.detail-copy {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 48px 48px 48px 0;
}

.detail-copy .pixel-kicker { margin: 5px 0 0; color: var(--world); }

.world-name {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid var(--world);
  border-radius: 7px;
  background: color-mix(in srgb, var(--world), transparent 87%);
  color: var(--world);
  font-weight: 900;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.88;
  text-wrap: balance;
  text-shadow: 5px 5px 0 color-mix(in srgb, var(--world-2), #000 48%);
}

.book-subtitle {
  margin: 0;
  color: var(--world);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 900;
}

.detail-copy > p:not(.pixel-kicker):not(.book-subtitle) {
  max-width: 750px;
  margin: 0;
  color: #d0d5e7;
  font-size: 1.08rem;
}

.book-hud {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-top: 7px;
}

.book-hud span {
  display: grid;
  align-content: center;
  min-height: 78px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--world), transparent 58%);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.27);
}

.book-hud small {
  color: var(--world);
  font-family: var(--pixel);
  font-size: 0.4rem;
  line-height: 1.5;
}

.book-hud b {
  margin-top: 4px;
  font-size: 0.95rem;
  line-height: 1.15;
}

.book-hud span:first-child {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #11121b;
}

.book-hud span:first-child small { color: #433500; }
.book-hud span:first-child b { font-size: 1.45rem; }

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 14px;
  width: 100%;
  margin: 4px 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #e3e6f1;
  font-size: 0.94rem;
  font-weight: 700;
}

.feature-list span {
  display: grid;
  flex: 0 0 21px;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 4px;
  background: var(--world);
  color: #080a12;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 12px;
  width: 100%;
  margin-top: 5px;
}

.detail-cart-toggle {
  grid-column: 1 / -1;
}

.primary-action {
  --world: var(--yellow);
}

.secondary-action {
  border-color: var(--world);
  background: transparent;
  color: var(--world);
  box-shadow: 0 6px 0 color-mix(in srgb, var(--world), #000 70%);
}

.guide-party {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-block: 12px 80px;
}

.guide-party article {
  position: relative;
  display: grid;
  grid-template-columns: 145px 1fr;
  align-items: center;
  min-height: 170px;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--world), transparent 45%);
  border-radius: 18px;
  background: linear-gradient(115deg, color-mix(in srgb, var(--world), transparent 85%), transparent 60%), #11152e;
  box-shadow: 0 9px 0 #03040d;
}

.guide-party article:last-child {
  border-color: color-mix(in srgb, var(--world-2), transparent 38%);
  background: linear-gradient(115deg, color-mix(in srgb, var(--world-2), transparent 84%), transparent 60%), #11152e;
}

.guide-party img {
  align-self: end;
  width: 145px;
  height: 170px;
  object-fit: contain;
  object-position: bottom;
}

.guide-party article > div {
  padding: 24px 24px 24px 4px;
}

.guide-party span {
  color: var(--world);
  font-family: var(--pixel);
  font-size: 0.46rem;
  line-height: 1.5;
}

.guide-party article:last-child span { color: var(--world-2); }

.guide-party p {
  margin: 9px 0 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 900;
  line-height: 1.2;
}

.syllabus-section,
.rewards-section {
  padding-block: 75px 90px;
  border-top: 1px solid color-mix(in srgb, var(--world), transparent 72%);
}

.syllabus-section .section-heading > span,
.rewards-section .section-heading > span {
  color: var(--world);
}

.viewer-hud {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 8px;
  padding: 11px;
  border: 1px solid color-mix(in srgb, var(--world), transparent 50%);
  border-radius: 12px 12px 0 0;
  background: color-mix(in srgb, var(--world-dark), #070919 38%);
}

.viewer-hud > div {
  display: grid;
  margin-right: auto;
}

.viewer-hud span {
  color: var(--world);
  font-family: var(--pixel);
  font-size: 0.57rem;
}

.viewer-hud small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.viewer-hud button {
  min-width: 48px;
  min-height: 45px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--world), transparent 35%);
  border-radius: 7px;
  background: #0b0e22;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 4px 0 #03040b;
}

.viewer-hud button:hover {
  background: var(--world);
  color: #080a12;
}

.viewer-hud button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #03040b;
}

.map-viewer {
  position: relative;
  min-height: 720px;
  max-height: 1050px;
  padding: 30px;
  overflow: auto;
  border: 2px solid color-mix(in srgb, var(--world), transparent 42%);
  border-top: 0;
  border-radius: 0 0 20px 20px;
  background:
    linear-gradient(rgba(4, 7, 17, 0.72), rgba(4, 7, 17, 0.82)),
    repeating-linear-gradient(0deg, transparent 0 29px, color-mix(in srgb, var(--world), transparent 89%) 29px 30px),
    repeating-linear-gradient(90deg, transparent 0 29px, color-mix(in srgb, var(--world), transparent 89%) 29px 30px);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.6), var(--shadow);
}

.map-viewer:fullscreen {
  max-height: none;
  padding: 35px;
  background: #050713;
}

.syllabus-pages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  transform-origin: top center;
  transition: width 180ms ease;
}

.one-page .syllabus-pages {
  grid-template-columns: minmax(0, 1fr);
  max-width: 900px;
}

.syllabus-page,
.reward-card {
  position: relative;
  display: grid;
  justify-items: stretch;
  padding: 0;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--world), transparent 35%);
  border-radius: 12px;
  background: #0b0d1b;
  cursor: zoom-in;
  box-shadow: 0 10px 0 #020309;
}

.syllabus-page > span,
.reward-card > span {
  padding: 11px 13px;
  background: color-mix(in srgb, var(--world), transparent 84%);
  color: var(--world);
  font-family: var(--pixel);
  font-size: 0.52rem;
  line-height: 1.5;
  text-align: left;
}

.syllabus-page img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}

.syllabus-page small {
  padding: 11px;
  color: #d6dae8;
  font-weight: 900;
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.reward-card {
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.reward-card:hover {
  z-index: 2;
  transform: translateY(-10px) rotate(-0.7deg);
  border-color: var(--world);
  box-shadow: 0 18px 0 #020309, 0 0 35px color-mix(in srgb, var(--world), transparent 72%);
}

.reward-card > div {
  height: 520px;
  padding: 15px;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--world), transparent 82%), transparent),
    #080b1b;
}

.reward-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.4));
}

.reward-card > b {
  display: flex;
  justify-content: space-between;
  padding: 13px;
  color: #fff;
  font-family: var(--pixel);
  font-size: 0.52rem;
  font-weight: 400;
}

.reward-card em { color: var(--world); font-style: normal; }

.consult-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px minmax(280px, 0.55fr);
  align-items: center;
  gap: 25px;
  margin-block: 15px 95px;
  padding: 30px 34px;
  overflow: hidden;
  border: 2px solid var(--world);
  border-radius: 22px;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--world), transparent 82%), transparent 52%),
    #10142b;
  box-shadow: 0 12px 0 #03040c, 0 0 45px color-mix(in srgb, var(--world), transparent 80%);
}

.consult-section > div > span { color: var(--world); }

.consult-section img {
  align-self: end;
  width: 170px;
  height: 205px;
  object-fit: contain;
  object-position: bottom;
}

.consult-section > a {
  --world: var(--yellow);
}

.contact-token {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 18px;
}

.contact-token > b {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #3ed37d;
  color: #08130d;
  font-family: var(--pixel);
  font-size: 0.62rem;
}

.contact-token > span {
  display: grid;
  font-size: 1.15rem;
  font-weight: 900;
}

.contact-token small {
  color: var(--muted);
  font-size: 0.72rem;
}

.image-dialog {
  width: min(1100px, calc(100% - 30px));
  max-width: none;
  height: min(92vh, 1050px);
  padding: 48px 18px 18px;
  overflow: auto;
  border: 2px solid var(--world);
  border-radius: 15px;
  background: #070919;
  color: #fff;
  box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.48), 0 0 60px color-mix(in srgb, var(--world), transparent 70%);
}

.image-dialog::backdrop {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
}

.image-dialog button {
  position: fixed;
  top: max(20px, 4vh);
  right: max(20px, calc((100vw - min(1100px, 100vw - 30px)) / 2 + 18px));
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #0a0c1c;
  cursor: pointer;
  font-size: 1.7rem;
}

.image-dialog img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(92vh - 95px);
  margin: 0 auto;
  object-fit: contain;
  background: #fff;
}

.image-dialog p {
  margin: 10px 0 0;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.mobile-action-bar {
  display: none;
}

@media (max-width: 1100px) {
  .arcade-topbar {
    grid-template-columns: 1fr auto;
  }

  .arcade-nav { display: none; }

  .catalog-hero {
    grid-template-columns: 1fr 390px;
    gap: 25px;
  }

  .hero-copy h1 { font-size: clamp(3.2rem, 7vw, 5.5rem); }

  .world-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .world-card,
  .world-card.last-pair-start,
  .world-card.last-single {
    grid-column: auto;
  }

  .detail-hero {
    grid-template-columns: minmax(315px, 0.75fr) minmax(0, 1.25fr);
    gap: 28px;
  }

  .detail-copy { padding-right: 26px; }
  .book-hud { grid-template-columns: 1fr 1fr; }

  .reward-card > div { height: 420px; }
}

@media (max-width: 850px) {
  .catalog-hero,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .catalog-hero { padding-top: 35px; }
  .hero-party { width: min(540px, 100%); margin: 0 auto; }
  .portal-grid { grid-template-columns: 1fr; }

  .detail-hero::before { inset: 25px 0; }
  .cover-vault { width: min(520px, 100%); margin: 0 auto; padding-bottom: 10px; }
  .detail-copy { padding: 25px 28px 55px; }
  .detail-copy h1 { font-size: clamp(3rem, 10vw, 5.4rem); }

  .guide-party { grid-template-columns: 1fr; }
  .reward-grid { grid-template-columns: 1fr 1fr; }

  .final-call,
  .consult-section {
    grid-template-columns: 1fr 120px;
  }

  .final-call > a,
  .final-call > button,
  .consult-section > a {
    grid-column: 1 / -1;
  }

  .cart-dialog-layout {
    grid-template-columns: 1fr;
  }

  .cart-selection {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .cart-items { max-height: 330px; }

  .store-confidence { padding: 32px 26px; }

  .arcade-footer {
    grid-template-columns: 1fr auto;
  }

  .arcade-footer nav { display: none; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 72px; }

  body[data-page="detail"] { padding-bottom: 72px; }

  .arcade-shell {
    width: min(100% - 24px, 1380px);
  }

  .arcade-topbar {
    min-height: 64px;
    padding: 7px 12px;
  }

  .arcade-brand img { width: 42px; height: 42px; }
  .arcade-brand span { font-size: 0.88rem; }
  .arcade-brand small { font-size: 0.4rem; }

  .sound-toggle {
    min-height: 40px;
    padding: 6px 9px;
  }

  .sound-toggle b { display: none; }

  .pixel-sky { inset: 64px 0 0; }

  .catalog-hero {
    min-height: 0;
    padding-block: 26px 24px;
  }

  .hero-copy { gap: 13px; }
  .mission-chip span { width: 49px; height: 49px; font-size: 0.9rem; }
  .mission-chip b { font-size: 0.48rem; }
  .hero-copy h1 { font-size: clamp(3.15rem, 17vw, 5rem); }
  .hero-copy > p:not(.pixel-kicker) { font-size: 1rem; }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .hero-stats span {
    display: grid;
    justify-items: center;
    min-width: 0;
    padding: 9px 5px;
    text-align: center;
  }

  .hero-stats b { font-size: 0.94rem; }
  .hero-stats small { font-size: 0.7rem; }

  .hero-party {
    min-height: 320px;
    padding: 65px 8px 0;
  }

  .character img { height: 220px; }
  .speech { top: -48px; width: 145px; font-size: 0.74rem; }
  .character b { font-size: 0.48rem; }
  .character b small { font-size: 0.58rem; }

  .portal-select { padding-block: 22px 45px; }
  .section-heading { margin-bottom: 21px; }
  .section-heading h2 { font-size: clamp(2rem, 11vw, 3.2rem); }
  .section-heading p { font-size: 0.98rem; }

  .portal {
    grid-template-columns: 72px 1fr;
    min-height: 135px;
    padding: 15px;
  }

  .portal-code { width: 68px; height: 68px; font-size: 0.9rem; }
  .portal > b { grid-column: 1 / -1; text-align: center; }

  .world-select { padding-block: 45px 65px; }
  .world-grid { grid-template-columns: 1fr; gap: 22px; }
  .book-stage { min-height: 410px; }
  .book-stage img { height: 355px; }
  .world-card-copy h2 { font-size: 1.9rem; }
  .product-specs small { font-size: 0.46rem; }
  .product-specs b { font-size: 0.84rem; }

  .final-call,
  .consult-section {
    grid-template-columns: 1fr 95px;
    gap: 10px;
    padding: 23px 20px;
  }

  .final-call img { width: 95px; height: 135px; }
  .consult-section img { width: 95px; height: 145px; }

  .mission-cart-dock {
    grid-template-columns: 48px minmax(105px, 1fr) auto;
    gap: 7px;
    width: calc(100% - 18px);
    min-height: 65px;
    padding: 6px;
  }

  .mission-cart-dock > img {
    width: 48px;
    height: 60px;
  }

  .mission-cart-dock small { font-size: 0.39rem; }
  .mission-cart-dock strong { font-size: 0.88rem; }
  .mission-cart-dock > button { min-height: 46px; padding: 8px 9px; font-size: 0.42rem; }

  body[data-page="detail"] .mission-cart-dock { display: none; }

  .mission-cart-dialog {
    width: calc(100% - 14px);
    max-height: calc(100vh - 14px);
    border-radius: 14px;
  }

  .mission-cart-window {
    max-height: calc(100vh - 18px);
  }

  .cart-dialog-close {
    top: 9px;
    right: 9px;
    width: 40px;
    height: 40px;
  }

  .cart-dialog-header {
    grid-template-columns: 78px 1fr;
    gap: 11px;
    min-height: 138px;
    padding: 15px 51px 0 13px;
  }

  .cart-dialog-header img {
    width: 78px;
    height: 120px;
  }

  .cart-dialog-header > div { padding-bottom: 15px; }
  .cart-dialog-header span { font-size: 0.41rem; }
  .cart-dialog-header h2 { font-size: clamp(1.75rem, 9vw, 2.7rem); }
  .cart-dialog-header p { font-size: 0.83rem; line-height: 1.35; }

  .cart-progress li {
    grid-template-columns: 27px 1fr;
    gap: 1px 7px;
    min-height: 66px;
    padding: 9px 8px;
  }

  .cart-progress li > span { width: 26px; height: 26px; font-size: 0.45rem; }
  .cart-progress b { font-size: 0.35rem; }
  .cart-progress small { font-size: 0.66rem; }

  .cart-selection,
  .cart-checkout { padding: 17px 14px; }

  .cart-section-title {
    grid-template-columns: 34px 1fr auto;
    gap: 8px;
  }

  .cart-section-title h3 { font-size: 1.08rem; }
  .cart-section-title > button { padding: 6px; font-size: 0.71rem; }
  .cart-items { max-height: 280px; }

  .cart-item {
    grid-template-columns: 55px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 9px;
  }

  .cart-item > img { width: 55px; height: 77px; }
  .cart-item h4 { font-size: 0.92rem; }
  .cart-item p { font-size: 0.75rem; }
  .cart-item > button { grid-column: 2 / -1; justify-self: end; }
  .cart-empty { min-height: 215px; padding: 22px 14px; }
  .cart-checkout { gap: 13px; }

  .store-confidence {
    margin-bottom: 65px;
    padding: 28px 18px;
  }

  .store-confidence::after { display: none; }
  .store-faq { grid-template-columns: 1fr; }
  .store-faq details:first-child { grid-column: auto; }
  .store-faq summary { min-height: 56px; padding: 12px; font-size: 0.94rem; }
  .store-faq p { padding: 0 13px 15px; font-size: 0.89rem; }

  .arcade-footer {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 25px 16px 90px;
  }

  .mission-progress { display: none; }

  .detail-hero {
    min-height: 0;
    padding-block: 20px 42px;
  }

  .detail-hero::before { inset: 10px 0 15px; border-radius: 18px; }
  .cover-vault { padding: 40px 22px 10px; }
  .cover-pedestal { min-height: 430px; padding-inline: 20px; }
  .cover-pedestal img { height: 390px; }
  .unlocked-label { font-size: 0.41rem; }
  .cover-data { width: 94%; font-size: 0.39rem; }

  .detail-copy { gap: 12px; padding: 22px 20px 42px; }
  .detail-copy h1 { font-size: clamp(3.2rem, 17vw, 5.4rem); }
  .detail-copy > p:not(.pixel-kicker):not(.book-subtitle) { font-size: 1rem; }
  .book-hud { grid-template-columns: 1fr 1fr; }
  .book-hud span { min-height: 73px; }
  .feature-list { grid-template-columns: 1fr; }
  .detail-actions { grid-template-columns: 1fr; }

  .guide-party { padding-bottom: 60px; }
  .guide-party article { grid-template-columns: 105px 1fr; min-height: 145px; }
  .guide-party img { width: 105px; height: 145px; }
  .guide-party article > div { padding: 18px 14px 18px 0; }
  .guide-party p { font-size: 1.05rem; }

  .syllabus-section,
  .rewards-section { padding-block: 55px 65px; }

  .viewer-hud {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .viewer-hud > div,
  .viewer-hud [data-fullscreen] { grid-column: 1 / -1; }
  .viewer-hud [data-fullscreen] { width: 100%; }
  .viewer-hud button { min-width: 0; }

  .map-viewer { min-height: 520px; max-height: 760px; padding: 14px; }
  .syllabus-pages,
  .two-pages .syllabus-pages { grid-template-columns: 1fr; gap: 14px; }

  .reward-grid { grid-template-columns: 1fr; }
  .reward-card > div { height: 520px; }

  .consult-section { margin-bottom: 45px; }

  .mobile-action-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 120;
    display: grid;
    grid-template-columns: 0.72fr 0.88fr 1fr;
    gap: 8px;
    padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(5, 7, 19, 0.95);
    backdrop-filter: blur(14px);
  }

  .mobile-action-bar a,
  .mobile-action-bar > button {
    display: grid;
    place-items: center;
    min-height: 48px;
    border: 1px solid var(--world);
    border-radius: 8px;
    background: transparent;
    color: var(--world);
    cursor: pointer;
    font-family: var(--pixel);
    font-size: 0.48rem;
    line-height: 1.35;
    text-align: center;
  }

  .mobile-action-bar .mobile-cart-toggle {
    display: flex;
    gap: 5px;
    min-height: 48px;
    padding: 5px;
    border-color: var(--world);
    box-shadow: none;
  }

  .mobile-cart-toggle > span {
    width: 20px;
    height: 20px;
    font-size: 0.95rem;
  }

  .mobile-cart-toggle b { font-size: 0.38rem; }

  .mobile-action-bar > button[data-cart-open] {
    border-color: #55e28e;
    background: #55e28e;
    color: #07110b;
  }
}

@media (max-width: 430px) {
  .book-stage { min-height: 380px; padding-inline: 24px; }
  .book-stage img { height: 330px; }
  .price-token { width: 70px; height: 70px; }
  .cover-pedestal { min-height: 390px; }
  .cover-pedestal img { height: 350px; }
  .reward-card > div { height: 455px; }
  .product-specs { grid-template-columns: 1fr; }
  .product-specs > span { min-height: 54px; }
  .mission-cart-dock > div small { display: none; }
  .mission-cart-dock > button { max-width: 112px; }
  .mobile-cart-toggle b { font-size: 0.34rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Etapa 5 · controles cómodos y legibles sin alterar los mundos. */
.sound-toggle,
.back-chip,
.mission-progress a {
  min-height: 44px;
}

@media (max-width: 680px) {
  .sound-toggle { min-width: 44px; }
  .back-chip { padding-block: 10px; }
  .mobile-action-bar a,
  .mobile-action-bar > button { font-size: .55rem; }
}
