@font-face {
  font-family: Bricolage;
  src: url("assets/bricolage-grotesque-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #29223a;
  --muted: #685e74;
  --purple: #7048e8;
  --purple-dark: #5431ba;
  --lilac: #eee8ff;
  --paper: #faf8f3;
  --line: #e9e3db;
  --gold: #ffce75;
  --topbar-height: 65px;
  font-family: Bricolage, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-block-start: calc(var(--topbar-height) + 16px); }
body { margin: 0; min-width: 290px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
img { max-inline-size: 100%; }
:focus-visible { outline: 3px solid #6f44e5; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus), .answer-status:empty {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: fixed; left: 16px; top: 16px; z-index: 4; padding: 12px; background: #fff; border-radius: 8px; }
.brand {
  display: inline-flex;
  flex-shrink: 0;
  width: fit-content;
  gap: 10px;
  align-items: center;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.075em;
}
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  border-radius: 13px;
  color: #fff;
  background: #7550e9;
  box-shadow: inset 0 -3px 0 #5030b0;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0;
}
.brand-mark::after {
  content: "✦";
  position: absolute;
  right: 4px;
  top: 4px;
  font-size: .64rem;
  color: #ffe193;
}
.brand-dot { color: var(--purple); }
.navigation { display: flex; align-items: center; gap: 7px; }
.navigation a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  color: #5d526a;
  font-weight: 800;
  font-size: .94rem;
  border-radius: 12px;
  white-space: nowrap;
  transition: background .16s, color .16s;
}
.navigation a:hover { background: #f5f0ff; color: var(--purple-dark); }
.navigation a[aria-current] { background: var(--lilac); color: var(--purple-dark); }
.navigation a[aria-current]::after {
  content: "";
  position: absolute;
  inset: auto 33% 4px;
  border-block-end: 2px solid currentColor;
  border-radius: 2px;
}
.navigation .navigation-account { width: 44px; padding: 0; }
.account-icon { position: relative; display: block; width: 20px; height: 22px; }
.account-icon::before, .account-icon::after {
  content: "";
  position: absolute;
  border: 2px solid currentColor;
}
.account-icon::before {
  width: 9px;
  height: 9px;
  inset: 2px auto auto 50%;
  border-radius: 50%;
  translate: -50% 0;
}
.account-icon::after {
  inset: auto 2px 2px;
  height: 8px;
  border-radius: 10px 10px 4px 4px;
}
progress { display: block; width: 100%; height: 8px; border: 0; border-radius: 9px; background: #eae2f6; color: var(--purple); }
progress::-webkit-progress-bar { background: #eae2f6; border-radius: 9px; }
progress::-webkit-progress-value { background: var(--purple); border-radius: 9px; }
progress::-moz-progress-bar { background: var(--purple); border-radius: 9px; }
.topbar {
  position: sticky;
  inset-block-start: 0;
  z-index: 3;
  border-bottom: 1px solid var(--line);
  background: #fffdfa;
}
.topbar-inner {
  width: min(100%, 1310px);
  min-height: var(--topbar-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px clamp(20px, 3.3vw, 56px);
  gap: 10px;
}
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.badge { display: inline-flex; gap: 6px; align-items: center; border-radius: 10px; padding: 8px 11px; font-size: .83rem; white-space: nowrap; }
.xp { color: #5935bd; background: #f0e9ff; }
.xp span { font-size: 1.02rem; line-height: 1; font-weight: 800; }
.star-count { color: #78470a; background: #fff0d3; }
.star-count span:first-child { color: #915200; }
.sound-button, .icon-button {
  display: grid;
  place-items: center;
  padding: 0;
  width: 40px;
  height: 40px;
  background: #fffdfa;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 1.14rem;
}
.sound-button:hover, .icon-button:hover { background: var(--lilac); }
.sound-button[aria-pressed="true"] { color: var(--purple-dark); background: var(--lilac); border-color: #dacbff; }
.sound-icon { position: relative; }
.sound-button[aria-pressed="false"] .sound-icon::after {
  content: "";
  position: absolute;
  width: 1.12em;
  height: 1.5px;
  background: currentColor;
  top: 47%;
  left: -12%;
  transform: rotate(-42deg);
}
.sound-button.journal-sound {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  width: auto;
  height: auto;
  min-height: 44px;
  padding: 8px 13px;
  margin-bottom: 22px;
  font-size: .91rem;
  font-weight: 800;
}
.journal-sound .sound-icon { font-size: 1.14rem; }
.content { width: min(100%, 1310px); margin-inline: auto; padding: 32px clamp(20px, 3.3vw, 56px) 55px; }
.page-heading { margin: 0 0 25px; }
.page-heading h1 { margin: 0 0 6px; font-size: clamp(2.1rem, 3.4vw, 3.35rem); line-height: 1.03; font-weight: 800; letter-spacing: -.065em; }
.page-heading p { max-width: 58ch; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 246px;
  border-radius: 23px;
  background: #30214c;
  color: #fff9f3;
  box-shadow: 0 5px 0 #e9dfed;
}
.hero-image, .hero-scrim { position: absolute; z-index: -1; height: 100%; pointer-events: none; }
.hero-image { right: 0; top: 0; width: 76%; object-fit: cover; object-position: 72% 54%; }
.hero-scrim {
  inset: 0;
  background: linear-gradient(90deg, #30214c 0%, #30214c 23%, #30214cf0 36%, #30214c6b 56%, #30214c00 77%);
}
.hero-copy { padding: 25px clamp(24px, 4vw, 51px); width: min(540px, 100%); }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid #8672a7;
  border-radius: 8px;
  background: #55416f;
  color: #f5eaff;
  font-size: .68rem;
  letter-spacing: .09em;
  font-weight: 800;
  text-transform: uppercase;
}
.hero-tag span { color: var(--gold); }
.hero h2 { margin: 13px 0 10px; font-size: clamp(2.35rem, 4.1vw, 3.5rem); line-height: .96; letter-spacing: -.06em; font-weight: 800; text-wrap: balance; }
.hero p { max-width: 34ch; color: #efe5f8; line-height: 1.45; margin: 0 0 22px; font-size: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 800;
  line-height: 1.15;
  transition: transform .16s, box-shadow .16s, background .16s;
}
.button:not(:disabled):hover { transform: translateY(-2px); }
.button:not(:disabled):active { transform: translateY(2px); box-shadow: none; }
.button:disabled { opacity: .53; }
.button-gold { color: #321f4b; background: var(--gold); box-shadow: 0 4px 0 #b97933; }
.button-gold:hover { background: #ffdd90; }
.button-hero-secondary { color: #fffaf3; background: #4a375f; border-color: #9c87b6; }
.button-hero-secondary:hover { background: #61477c; }
.button-purple { color: #fff; background: #6941d6; box-shadow: 0 3px 0 #482799; }
.button-purple:not(:disabled):hover { background: #5b34bd; }
.button-quiet { color: var(--purple-dark); background: #f1eaff; border-color: #e2d6fb; }
.hero .button:focus-visible { outline-color: #fff; }
[data-mode] {
  --mode-tint: #f0e9ff;
  --mode-ink: #5431a7;
}
[data-mode="investigation"] {
  --mode-tint: #fff1d7;
  --mode-ink: #744507;
}
[data-mode="route"] {
  --mode-tint: #e2f4eb;
  --mode-ink: #235e47;
}
[data-mode="machine"] {
  --mode-tint: #e9f1ff;
  --mode-ink: #244c86;
}
[data-mode="duel"] {
  --mode-tint: #ffeadb;
  --mode-ink: #753b2b;
}
[data-mode="beam"] {
  --mode-tint: #e3f4fa;
  --mode-ink: #264d73;
}
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 15px; }
.section-head h2 { margin: 0; font-size: clamp(1.55rem, 2.45vw, 2.15rem); letter-spacing: -.045em; font-weight: 800; }
.section-head p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.section-head a { flex-shrink: 0; color: var(--purple-dark); padding: 8px 0 8px 8px; font-weight: 800; font-size: .88rem; }
.section-head a:hover { text-decoration: underline; }
.world-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 122px;
  aspect-ratio: 2.44;
  background: var(--world-tint, #e1efdc);
}
.world-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(130deg, #ffffff2a, transparent 40%, #29223a18);
}
[data-world="forest"] { --world-tint: #d7edcf; --world-text: #275b44; }
[data-world="desert"] { --world-tint: #ffe0be; --world-text: #74411f; }
[data-world="crystals"] { --world-tint: #eadbff; --world-text: #582b83; }
[data-world="islands"] { --world-tint: #d7f0ff; --world-text: #285d78; }
[data-world="sky"] { --world-tint: #f9ddef; --world-text: #794166; }
[data-world="void"] { --world-tint: #dfdafa; --world-text: #513977; }
.world-art img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trail-map {
  width: min(100%, 840px);
  margin: clamp(24px, 4vw, 40px) auto 0;
}
.trail-map-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px 15px;
  margin: 0 0 14px;
}
.trail-map-head h2 { margin: 0; font-size: clamp(1.63rem, 3vw, 2.45rem); letter-spacing: -.05em; }
.trail-count { margin: 0; color: var(--muted); font-size: .92rem; font-weight: 750; }
.trail-worlds, .trail-steps { margin: 0; padding: 0; list-style: none; }
.trail-world-header {
  display: grid;
  grid-template-areas: "scene";
  isolation: isolate;
  overflow: hidden;
  min-height: 164px;
  border: 1px solid #ffffff72;
  border-radius: 23px;
  background: #29213d;
  color: #fffaf3;
  box-shadow: 0 4px 0 #e7deeb;
}
.trail-world-header > .world-art {
  grid-area: scene;
  aspect-ratio: auto;
  min-height: 0;
  opacity: .94;
  z-index: -2;
}
.trail-world-header > .world-art img { object-position: center 53%; }
.trail-world-header::after {
  content: "";
  grid-area: scene;
  z-index: -1;
  background: linear-gradient(90deg, #261b38 6%, #261b38e8 27%, #261b38af 52%, #261b380c 100%);
}
.trail-world-copy { grid-area: scene; align-self: center; padding: 19px clamp(17px, 4vw, 32px); }
.trail-world-copy h3 {
  margin: 5px 0;
  font-size: clamp(1.48rem, 3.2vw, 2.6rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.trail-world-copy p { margin: 0; max-width: 46ch; color: #faf2ff; line-height: 1.36; }
.trail-world-copy .trail-chapter { color: #ffe398; font-size: .77rem; font-weight: 800; }
.trail-world-copy .trail-world-status {
  display: inline-flex;
  padding: 3px 8px;
  margin-top: 8px;
  border: 1px solid #dfd1f6b3;
  border-radius: 999px;
  background: #49365f;
  font-size: .74rem;
  font-weight: 800;
}
.trail-world[data-state="current"] .trail-world-status { border-color: #ffda7c; color: #321f4b; background: #ffe29a; }
.trail-world[data-state="done"] .trail-world-status { border-color: #b6e2c6; color: #19493a; background: #d3f0da; }
.trail-steps {
  width: min(100%, 710px);
  margin-inline: auto;
  background-image: radial-gradient(circle, #c8babb55 1px, transparent 1.5px);
  background-size: 23px 23px;
}
.trail-step {
  --step-tier: 0;
  --node-size: calc(46px + var(--step-tier) * 5px);
  --track: #ded3cb;
  --stop-start: max(0px, calc(var(--point) - var(--node-size) / 2));
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: max(84px, calc(var(--node-size) + 20px));
  padding-block: 9px;
}
.trail-step[data-size="2"] { --step-tier: 1; }
.trail-step[data-size="3"] { --step-tier: 2; }
.trail-step[data-size="4"] { --step-tier: 3; }
.trail-step[data-size="5"] { --step-tier: 4; }
.trail-step[data-size="6"] { --step-tier: 5; }
.trail-step[data-size="7"] { --step-tier: 6; }
.trail-step[data-size="8"] { --step-tier: 7; }
.trail-step[data-size="9"] { --step-tier: 8; }
.trail-step[data-size="10"] { --step-tier: 9; }
.trail-step[data-size="11"] { --step-tier: 10; }
.trail-step:nth-child(8n + 1) { --entry: 27%; --point: 30%; --exit: 35%; }
.trail-step:nth-child(8n + 2) { --entry: 35%; --point: 40%; --exit: 45%; }
.trail-step:nth-child(8n + 3) { --entry: 45%; --point: 50%; --exit: 53%; }
.trail-step:nth-child(8n + 4) { --entry: 53%; --point: 56%; --exit: 53%; }
.trail-step:nth-child(8n + 5) { --entry: 53%; --point: 50%; --exit: 45%; }
.trail-step:nth-child(8n + 6) { --entry: 45%; --point: 40%; --exit: 35%; }
.trail-step:nth-child(8n + 7) { --entry: 35%; --point: 30%; --exit: 27%; }
.trail-step:nth-child(8n) { --entry: 27%; --point: 24%; --exit: 27%; }
.trail-step[data-state="done"] { --track: #b8a4db; }
.trail-step::before, .trail-step::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline: 0;
  background: var(--track);
  pointer-events: none;
}
.trail-step::before {
  inset-block: 0 50%;
  clip-path: polygon(calc(var(--entry) - 3px) 0, calc(var(--entry) + 3px) 0, calc(var(--point) + 3px) 100%, calc(var(--point) - 3px) 100%);
}
.trail-step::after {
  inset-block: 50% 0;
  clip-path: polygon(calc(var(--point) - 3px) 0, calc(var(--point) + 3px) 0, calc(var(--exit) + 3px) 100%, calc(var(--exit) - 3px) 100%);
}
.trail-world:last-child .trail-step:last-child::after { display: none; }
.trail-stop {
  display: flex;
  align-items: center;
  gap: clamp(9px, 2vw, 16px);
  width: fit-content;
  max-width: calc(100% - var(--stop-start));
  margin-inline-start: var(--stop-start);
  padding: 0;
  border: 0;
  border-radius: calc(var(--node-size) / 2);
  background: transparent;
  color: var(--ink);
  text-align: start;
}
.trail-node {
  display: grid;
  flex: none;
  place-items: center;
  width: var(--node-size);
  height: var(--node-size);
  border: 2px solid #91869a;
  border-radius: 50%;
  background: #fffaf3;
  box-shadow: 0 4px 0 #91869a;
  color: #554761;
  font-size: calc(1.04rem + var(--step-tier) * .075rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transition: transform .16s, box-shadow .16s, background .16s;
}
.trail-step[data-state="done"] .trail-node {
  border-color: #7757bb;
  background: #eee5ff;
  box-shadow: 0 4px 0 #7757bb;
  color: #523397;
}
.trail-step[data-state="current"] .trail-node {
  border-color: #97570a;
  background: var(--gold);
  box-shadow: 0 4px 0 #97570a, 0 0 0 5px #fff0c8;
  color: #422606;
}
button.trail-stop:hover .trail-node { transform: translateY(-2px); }
button.trail-stop:active .trail-node { transform: translateY(2px); }
.trail-stop:focus-visible, .trail-stop:focus:not(button) {
  outline: 0;
}
.trail-stop:focus-visible .trail-node, .trail-stop:focus:not(button) .trail-node {
  outline: 3px solid #6f44e5;
  outline-offset: 6px;
}
.trail-stop-copy {
  display: grid;
  min-width: 0;
  max-width: 27ch;
  gap: 2px;
  padding: 4px 3px;
  line-height: 1.15;
}
.trail-stop-copy strong {
  font-size: clamp(.98rem, 2.2vw, 1.27rem);
  font-weight: 800;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.trail-kind, .trail-status { color: var(--muted); font-size: .75rem; font-weight: 750; }
.trail-step[data-state="locked"] .trail-stop-copy strong { color: #574e65; }
.trail-step[data-state="current"] .trail-stop-copy strong { color: #4a2d14; }
.trail-step[data-state="current"] .trail-status { color: #704406; }
.trail-step[data-state="done"] .trail-status { color: #5431a7; }
@media (max-width: 580px) {
  .trail-world-header { min-height: 144px; border-radius: 17px; }
  .trail-world-header::after { background: linear-gradient(90deg, #261b38f5 4%, #261b38cb 54%, #261b3866 100%); }
  .trail-world-copy p:not(.trail-chapter, .trail-world-status) { font-size: .86rem; }
  .trail-step { --node-size: calc(44px + var(--step-tier) * 3px); min-height: max(74px, calc(var(--node-size) + 16px)); }
  .trail-step:nth-child(8n + 1) { --entry: 23%; --point: 24%; --exit: 25.5%; }
  .trail-step:nth-child(8n + 2) { --entry: 25.5%; --point: 27%; --exit: 28.5%; }
  .trail-step:nth-child(8n + 3) { --entry: 28.5%; --point: 30%; --exit: 31%; }
  .trail-step:nth-child(8n + 4) { --entry: 31%; --point: 32%; --exit: 31%; }
  .trail-step:nth-child(8n + 5) { --entry: 31%; --point: 30%; --exit: 28.5%; }
  .trail-step:nth-child(8n + 6) { --entry: 28.5%; --point: 27%; --exit: 25.5%; }
  .trail-step:nth-child(8n + 7) { --entry: 25.5%; --point: 24%; --exit: 23%; }
  .trail-step:nth-child(8n) { --entry: 23%; --point: 22%; --exit: 23%; }
}
@media (forced-colors: active) {
  .trail-step::before, .trail-step::after { background: CanvasText; forced-color-adjust: none; }
  .trail-stop:focus-visible .trail-node, .trail-stop:focus:not(button) .trail-node { outline-color: Highlight; }
}
.mission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; padding: 0; list-style: none; }
.mission[data-mode] .mission-number { background: var(--mode-tint); color: var(--mode-ink); }
.mission {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  text-align: left;
  border: 1px solid var(--line);
  background: #fffdfa;
  color: var(--ink);
  border-radius: 13px;
  box-shadow: 0 2px 0 #eee8df;
}
.mission:hover { border-color: #b6a0f4; background: #f9f5ff; }
.mission-number { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 10px; background: var(--world-tint, var(--lilac)); color: var(--world-text, var(--purple-dark)); font-weight: 800; }
.mission strong { display: block; font-size: 1.05rem; overflow-wrap: anywhere; }
.mission span:not(.mission-number, .mission-kind) { color: var(--muted); font-size: .83rem; }
.mission-kind { display: inline-block; max-width: 100%; margin-top: 3px; padding: 2px 7px; border-radius: 7px; background: var(--mode-tint, var(--lilac)); color: var(--mode-ink, var(--purple-dark)); font-size: .76rem; font-weight: 750; line-height: 1.3; overflow-wrap: anywhere; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px; }
.stat { display: grid; gap: 6px; background: #fffdfa; border: 1px solid var(--line); padding: 17px; border-radius: 13px; color: var(--muted); }
.stat strong { font-size: 1.7rem; color: var(--ink); letter-spacing: -.045em; }
.journal-list { padding: 0; list-style: none; display: grid; gap: 13px; }
.journal-item { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fffdfa; }
.journal-item:last-child { margin-bottom: 12px; }
.journal-item strong { display: block; margin-bottom: 8px; }
.journal-item > span { display: block; margin-top: 6px; color: var(--muted); font-size: .87rem; }
.storage-note { padding: 10px 14px; background: #fff0d3; border-radius: 9px; color: #694000; }
.player {
  width: min(740px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100% - 32px);
  padding: 0;
  border: 1px solid #bba8da;
  border-radius: 22px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 15px 70px #20133080;
  overscroll-behavior: contain;
}
.player::backdrop { background: #241735b3; }
.player-banner {
  position: relative;
  isolation: isolate;
  padding: 15px 65px 16px 21px;
  background: #30214c;
  color: #fffaf4;
}
.player-banner .world-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 65%;
  min-height: 0;
  aspect-ratio: auto;
  opacity: .54;
  z-index: -2;
}
.player-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #30214c 28%, #30214c22); }
.player-banner p { margin: 0 0 6px; font-size: .8rem; font-weight: 800; color: #f4d98d; }
.player-banner[data-mode="board"] p { color: #e8dcff; }
.player-banner[data-mode="route"] p { color: #c6f2de; }
.player-banner[data-mode="machine"] p { color: #d7e6ff; }
.player-banner[data-mode="duel"] p { color: #ffcfad; }
.player-banner[data-mode="beam"] p { color: #bcebf7; }
.player-banner h1 { margin: 0; font-size: clamp(1.45rem, 4vw, 2rem); line-height: 1.05; letter-spacing: -.042em; overflow-wrap: anywhere; }
.player-banner .icon-button { position: absolute; right: 15px; top: 14px; }
.player-body { padding: 15px clamp(12px, 3vw, 25px) 24px; }
.scene-context { margin: 0 0 10px; color: var(--muted); font-size: .92rem; line-height: 1.42; overflow-wrap: anywhere; }
.quest {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  margin: 0 0 13px;
  border: 1px solid #e6dafb;
  border-radius: 12px;
  background: #f3edfe;
  font-size: 1.08rem;
  line-height: 1.28;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.quest-star { flex: 0 0 auto; color: var(--purple-dark); }
.player-body[data-instant] { padding-top: 15px; }
.scene-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 7px; padding: 0; margin: 0 0 12px; list-style: none; }
.scene-cards li { display: grid; gap: 3px; align-content: start; padding: 9px 10px; border: 1px solid #e7dcc8; border-radius: 9px; background: #fff7e7; color: #59431f; overflow-wrap: anywhere; }
.scene-cards strong { color: #704d1a; font-size: .79rem; }
.scene-cards span { font-size: .88rem; line-height: 1.27; }
.scene-note { margin-top: 12px; color: var(--muted); font-size: .88rem; line-height: 1.42; }
.scene-note summary { width: fit-content; min-height: 28px; padding-block: 4px; cursor: pointer; font-weight: 800; }
.scene-note p { margin: 4px 0; overflow-wrap: anywhere; }
.reward .scene-note { margin-top: 5px; color: #285d3e; }
.player-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 17px; }
.puzzle-hint { margin: 10px 0 0; padding: 10px 12px; border-radius: 9px; color: #68450a; background: #fff1d2; overflow-wrap: anywhere; }
.answer-status { margin: 12px 0 0; font-size: .94rem; color: #9c3938; }
.reward { position: relative; margin-top: 15px; border-radius: 13px; background: #e2f5e7; color: #285d3e; padding: 13px 15px; animation: reward-in .3s ease-out both; overflow-wrap: anywhere; }
.reward h2 { margin: 0 0 4px; font-size: 1.24rem; font-weight: 800; }
.reward p { margin: 4px 0; line-height: 1.38; }
.reward .skill { font-size: .84rem; font-weight: 800; }
.reward h2 span { color: #805100; }
.reward-sparks { position: absolute; top: 0; right: 24px; pointer-events: none; }
.reward-sparks span { position: absolute; opacity: 0; color: #8d5c06; font-size: 1.32rem; animation: spark .65s ease-out; }
.reward-sparks span:nth-child(1) { --spark-x: -26px; --spark-y: -27px; }
.reward-sparks span:nth-child(2) { --spark-x: -6px; --spark-y: -39px; animation-delay: .08s; }
.reward-sparks span:nth-child(3) { --spark-x: 9px; --spark-y: -22px; animation-delay: .14s; }
@keyframes reward-in { from { opacity: .25; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
@keyframes spark {
  0% { opacity: 0; transform: scale(.4); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--spark-x), var(--spark-y)) scale(1.3); }
}
@media (max-width: 680px) {
  :root { --topbar-height: 55px; }
  .topbar-inner { padding-inline: 14px; gap: 5px; }
  .brand { gap: 7px; font-size: 1.52rem; }
  .brand-mark { width: 33px; height: 33px; border-radius: 10px; font-size: 1.42rem; }
  .navigation { gap: 3px; }
  .navigation a { padding-inline: 8px; }
  .topbar-actions { gap: 4px; }
  .topbar-actions .badge { padding: 6px 7px; }
  .content { padding: 24px 14px 38px; }
  .page-heading { margin-bottom: 19px; }
  .page-heading p { font-size: .95rem; }
  .hero { border-radius: 17px; min-height: 280px; align-items: end; }
  .hero-copy { padding: 20px; }
  .hero h2 { font-size: clamp(2.25rem, 9.5vw, 3.4rem); text-wrap: initial; }
  .hero p { margin-bottom: 14px; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { padding-inline: 11px; font-size: .89rem; }
  .hero-image { inset: 0 0 auto; width: 100%; height: 74%; object-position: 76% 50%; }
  .hero-scrim {
    background: linear-gradient(90deg, #30214cbd 0%, #30214c68 65%, transparent),
      linear-gradient(0deg, #30214c 24%, #30214c 32%, #30214cb5 48%, #30214c03 77%);
  }
  .section-head { flex-wrap: wrap; gap: 0 10px; }
  .section-head a { padding-left: 0; }
  .world-art { min-height: 94px; }
  .mission-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .stat { padding: 10px; font-size: .84rem; }
  .stat strong { font-size: 1.42rem; }
}
@media (max-width: 500px) {
  .topbar .star-count { display: none; }
}
@media (max-width: 390px) {
  .brand-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
