:root {
  color-scheme: dark;
  --ink: #f5fffc;
  --muted: rgba(222, 245, 244, 0.68);
  --mint: #a9ffe4;
  --mint-strong: #6bf0c9;
  --violet: #c4b4ff;
  --glass: rgba(10, 27, 44, 0.58);
  --glass-border: rgba(183, 239, 238, 0.18);
  --shadow: 0 22px 70px rgba(0, 3, 15, 0.38);
  font-family:
    Inter, ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system,
    BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #050a1d;
}

button,
a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

.game-shell {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 540px;
  overflow: hidden;
  isolation: isolate;
}

#world-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: default;
}

#world-canvas:focus {
  outline: none;
}

#world-canvas:focus-visible {
  outline: 2px solid rgba(169, 255, 228, 0.7);
  outline-offset: -5px;
}

.top-bar {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: max(22px, env(safe-area-inset-top)) clamp(20px, 4vw, 64px) 14px;
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  pointer-events: none;
}

.brand-profile {
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  pointer-events: auto;
  cursor: pointer;
}

.brand-profile:focus-visible {
  border-radius: 12px;
  outline: 2px solid rgba(245, 255, 252, 0.9);
  outline-offset: 5px;
}

.brand-profile:hover .brand-mark {
  border-color: rgba(183, 255, 236, 0.48);
  background: rgba(144, 255, 226, 0.13);
  box-shadow: 0 0 32px rgba(120, 255, 217, 0.28);
}

.brand-mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid rgba(183, 255, 236, 0.28);
  border-radius: 50%;
  color: var(--mint);
  background: rgba(144, 255, 226, 0.08);
  box-shadow: 0 0 26px rgba(120, 255, 217, 0.2);
  font-size: 18px;
}

.brand strong,
.brand small {
  display: block;
}

.brand-copy {
  min-width: 0;
}

.brand strong {
  letter-spacing: 0.24em;
  font-size: 13px;
  font-weight: 680;
}

.brand small {
  margin-top: 3px;
  color: rgba(220, 244, 245, 0.48);
  letter-spacing: 0.14em;
  font-size: 8px;
  font-weight: 650;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  pointer-events: auto;
}

.journey-chip,
.sound-button,
.instruction-pill,
.lumi-button,
.quiet-button,
.chapter-button {
  border: 1px solid var(--glass-border);
  background: rgba(7, 21, 36, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.journey-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 99px;
  color: rgba(228, 251, 247, 0.64);
  letter-spacing: 0.12em;
  font-size: 9px;
  font-weight: 700;
}

.sound-button {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  color: rgba(214, 242, 241, 0.58);
  cursor: pointer;
  transition:
    color 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 400ms ease,
    transform 180ms ease;
}

.sound-button:hover {
  color: rgba(235, 255, 249, 0.9);
  border-color: rgba(190, 248, 242, 0.34);
  background: rgba(16, 42, 58, 0.68);
}

.sound-button:active {
  transform: scale(0.94);
}

.sound-button:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

.sound-button[aria-pressed="true"] {
  color: var(--mint);
  border-color: rgba(169, 255, 228, 0.38);
  background: rgba(107, 240, 201, 0.1);
  box-shadow:
    0 0 20px rgba(107, 240, 201, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sound-bars {
  display: flex;
  height: 13px;
  align-items: center;
  gap: 2px;
}

.brand-player-label {
  display: block;
  max-width: 155px;
  margin-top: 3px;
  overflow: hidden;
  color: rgba(169, 255, 228, 0.72);
  font-size: 9px;
  font-weight: 680;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fullscreen-corners {
  width: 15px;
  height: 15px;
  background:
    linear-gradient(currentColor, currentColor) left top / 6px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) left top / 1.5px 6px no-repeat,
    linear-gradient(currentColor, currentColor) right top / 6px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) right top / 1.5px 6px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 6px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 1.5px 6px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 6px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 1.5px 6px no-repeat;
  transition: transform 220ms ease;
}

.fullscreen-button[aria-pressed="true"] .fullscreen-corners {
  transform: scale(0.72);
}

.fullscreen-button[hidden] {
  display: none;
}

.fullscreen-status {
  position: fixed;
  z-index: 12;
  top: max(78px, calc(env(safe-area-inset-top) + 62px));
  left: 50%;
  width: min(420px, calc(100vw - 32px));
  padding: 9px 14px;
  border: 1px solid rgba(190, 240, 238, 0.2);
  border-radius: 14px;
  color: rgba(240, 255, 251, 0.9);
  background: rgba(7, 21, 36, 0.88);
  box-shadow: 0 16px 40px rgba(0, 5, 18, 0.34);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -8px);
  pointer-events: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.fullscreen-status:empty {
  display: none;
}

.fullscreen-status.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.game-shell:fullscreen,
.game-shell:-webkit-full-screen {
  width: 100vw;
  height: 100dvh;
  min-height: 0;
  background: #050a1d;
}

.sound-bars span {
  width: 2px;
  border-radius: 99px;
  background: currentColor;
  transform-origin: center;
}

.sound-bars span:nth-child(1) {
  height: 6px;
}

.sound-bars span:nth-child(2) {
  height: 12px;
}

.sound-bars span:nth-child(3) {
  height: 8px;
}

.sound-button[aria-pressed="true"] .sound-bars span {
  animation: sound-wave 1.25s ease-in-out infinite alternate;
}

.sound-button[aria-pressed="true"] .sound-bars span:nth-child(2) {
  animation-delay: -0.42s;
}

.sound-button[aria-pressed="true"] .sound-bars span:nth-child(3) {
  animation-delay: -0.78s;
}

.journey-dot {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: hsla(var(--journey-hue, 157), 88%, 88%, 0.72);
  background: hsla(var(--journey-hue, 157), 62%, 54%, 0.1);
  box-shadow: 0 0 0 rgba(122, 255, 213, 0);
  transition: 800ms ease;
}

.journey-dot::after {
  content: "✦";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  line-height: 1;
}

.journey-chip[data-vision="lichtbloem"] .journey-dot::after { content: "✿"; }
.journey-chip[data-vision="bosuil"] .journey-dot::after { content: "◉"; }
.journey-chip[data-vision="sterrenlotus"] .journey-dot::after { content: "❉"; }
.journey-chip[data-vision="auroralint"] .journey-dot::after { content: "∿"; }
.journey-chip[data-vision="kristal"] .journey-dot::after { content: "◇"; }
.journey-chip[data-vision="maanwalvis"] .journey-dot::after { content: "☾"; }
.journey-chip[data-vision="zangkoraal"] .journey-dot::after { content: "Ψ"; }
.journey-chip[data-vision="lichtrog"] .journey-dot::after { content: "⌁"; }
.journey-chip[data-vision="maanvrucht"] .journey-dot::after { content: "●"; }
.journey-chip[data-vision="wolkenklok"] .journey-dot::after { content: "♢"; }
.journey-chip[data-vision="boogster"] .journey-dot::after { content: "✦"; }
.journey-chip[data-vision="varenlicht"] .journey-dot::after { content: "❧"; }
.journey-chip[data-vision="dubbele-maanrand"] .journey-dot::after { content: "☾"; }
.journey-chip[data-vision="windring"] .journey-dot::after { content: "◌"; }
.journey-chip[data-vision="dubbele-dauwbloem"] .journey-dot::after { content: "✾"; }
.journey-chip[data-vision="spiegelmaan"] .journey-dot::after { content: "◔"; }
.journey-chip[data-vision="wolkenhart"] .journey-dot::after { content: "♡"; }
.journey-chip[data-vision="dubbele-maanveer"] .journey-dot::after { content: "❮"; }
.journey-chip[data-vision="regenboogkristal"] .journey-dot::after { content: "◇"; }

.world-awake .journey-dot {
  color: hsl(var(--journey-hue, 157), 94%, 92%);
  background: hsla(var(--journey-hue, 157), 76%, 62%, 0.2);
  box-shadow: 0 0 16px hsla(var(--journey-hue, 157), 88%, 70%, 0.7);
}

.forest-level .brand-mark {
  color: #d4c6ff;
  border-color: rgba(205, 190, 255, 0.3);
  background: rgba(175, 145, 255, 0.09);
  box-shadow: 0 0 28px rgba(171, 145, 255, 0.2);
}

.forest-level .pulse-dot {
  background: #c9b9ff;
  box-shadow: 0 0 0 0 rgba(201, 185, 255, 0.5);
}

.lake-level .brand-mark {
  color: #ffe8ad;
  border-color: rgba(255, 228, 166, 0.34);
  background: rgba(255, 210, 119, 0.09);
  box-shadow: 0 0 30px rgba(255, 206, 121, 0.2);
}

.lake-level .pulse-dot {
  background: #ffe6a3;
  box-shadow: 0 0 0 0 rgba(255, 224, 151, 0.5);
}

.aurora-level .brand-mark {
  color: #ffd5b0;
  border-color: rgba(255, 203, 170, 0.38);
  background: rgba(255, 170, 125, 0.1);
  box-shadow: 0 0 32px rgba(255, 164, 128, 0.22);
}

.aurora-level .pulse-dot {
  background: #ffd0a8;
  box-shadow: 0 0 0 0 rgba(255, 191, 148, 0.5);
}

.cavern-level .brand-mark {
  color: #b8f4ff;
  border-color: rgba(165, 235, 255, 0.38);
  background: rgba(101, 213, 239, 0.1);
  box-shadow: 0 0 32px rgba(98, 218, 255, 0.24);
}

.cavern-level .pulse-dot {
  background: #aeefff;
  box-shadow: 0 0 0 0 rgba(154, 234, 255, 0.5);
}

.sanctuary-level .brand-mark {
  color: #f1d7ff;
  border-color: rgba(222, 190, 255, 0.4);
  background: rgba(197, 138, 255, 0.11);
  box-shadow:
    -10px 0 28px rgba(119, 220, 255, 0.16),
    10px 0 28px rgba(255, 178, 133, 0.17);
}

.sanctuary-level .pulse-dot {
  background: #ead0ff;
  box-shadow: 0 0 0 0 rgba(224, 190, 255, 0.52);
}

.reef-level .brand-mark {
  color: #bfffea;
  border-color: rgba(145, 255, 224, 0.4);
  background: rgba(72, 206, 177, 0.11);
  box-shadow:
    -10px 0 28px rgba(86, 236, 216, 0.16),
    10px 0 28px rgba(186, 143, 255, 0.15);
}

.reef-level .pulse-dot {
  background: #a6ffe4;
  box-shadow: 0 0 0 0 rgba(136, 255, 221, 0.52);
}

.lagoon-level .brand-mark {
  color: #cceeff;
  border-color: rgba(159, 220, 255, 0.42);
  background: rgba(81, 164, 212, 0.11);
  box-shadow:
    -10px 0 28px rgba(89, 231, 219, 0.16),
    10px 0 28px rgba(175, 132, 255, 0.17);
}

.lagoon-level .pulse-dot {
  background: #bce9ff;
  box-shadow: 0 0 0 0 rgba(155, 222, 255, 0.54);
}

.orchard-level .brand-mark {
  color: #efffc0;
  border-color: rgba(216, 255, 151, 0.43);
  background: rgba(158, 203, 76, 0.11);
  box-shadow:
    -10px 0 28px rgba(183, 141, 255, 0.16),
    10px 0 28px rgba(255, 213, 103, 0.18);
}

.orchard-level .pulse-dot {
  background: #e9ffad;
  box-shadow: 0 0 0 0 rgba(215, 255, 139, 0.54);
}

.vale-level .brand-mark {
  color: #dce8ff;
  border-color: rgba(183, 207, 255, 0.44);
  background: rgba(111, 139, 205, 0.11);
  box-shadow:
    -10px 0 28px rgba(129, 220, 255, 0.17),
    10px 0 28px rgba(197, 161, 255, 0.18);
}

.vale-level .pulse-dot {
  background: #d8e5ff;
  box-shadow: 0 0 0 0 rgba(186, 211, 255, 0.54);
}

.quiet-moment[data-memory-weather] .brand-mark {
  border-color: hsla(var(--memory-weather-hue), 90%, 82%, 0.5);
  color: hsl(var(--memory-weather-hue), 94%, 86%);
  background: hsla(var(--memory-weather-hue), 78%, 64%, 0.1);
  box-shadow: 0 0 34px hsla(var(--memory-weather-hue), 90%, 72%, 0.24);
}

.quiet-moment[data-memory-weather] .journey-dot {
  background: hsl(var(--memory-weather-hue), 92%, 82%);
  box-shadow: 0 0 14px hsla(var(--memory-weather-hue), 92%, 72%, 0.72);
}

.glass-panel {
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 48%),
    var(--glass);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(26px) saturate(115%);
  -webkit-backdrop-filter: blur(26px) saturate(115%);
}

.intro-panel,
.complete-panel {
  position: absolute;
  z-index: 8;
  left: clamp(20px, 6vw, 82px);
  width: min(430px, calc(100vw - 40px));
  padding: clamp(27px, 4vw, 48px);
  transition:
    opacity 600ms ease,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 600ms;
}

.intro-panel {
  top: 50%;
  max-height: calc(100dvh - 150px);
  overflow-x: hidden;
  overflow-y: auto;
  transform: translateY(-46%);
  scrollbar-color: rgba(169, 255, 228, 0.28) transparent;
  scrollbar-width: thin;
}

.intro-panel.is-hidden {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-42%) translateX(-28px) scale(0.98);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--mint);
  letter-spacing: 0.19em;
  font-size: 10px;
  font-weight: 800;
}

.intro-panel h1 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 6vw, 74px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.intro-panel h1 em {
  color: var(--mint);
  font-weight: 400;
}

.intro-panel > p:not(.eyebrow),
.complete-panel > p:not(.eyebrow) {
  max-width: 34em;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.primary-button {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  margin-top: 29px;
  padding: 0 20px;
  border: 1px solid rgba(213, 255, 239, 0.55);
  border-radius: 17px;
  color: #073a36;
  background: linear-gradient(135deg, #d8ffed, #91f8d7);
  box-shadow: 0 13px 35px rgba(88, 230, 190, 0.2);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.primary-button:hover {
  filter: brightness(1.04);
  box-shadow: 0 16px 42px rgba(88, 230, 190, 0.28);
  transform: translateY(-2px);
}

.primary-button:active {
  transform: translateY(1px) scale(0.99);
}

.primary-button:focus-visible,
.linger-button:focus-visible,
.quiet-button:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

.linger-button {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  border: 1px solid rgba(183, 239, 238, 0.16);
  border-radius: 15px;
  color: rgba(226, 249, 245, 0.7);
  background: rgba(124, 224, 205, 0.035);
  font-size: 12px;
  font-weight: 680;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.linger-button:hover {
  color: var(--ink);
  border-color: rgba(183, 255, 236, 0.3);
  background: rgba(124, 224, 205, 0.08);
}

.linger-button:active {
  transform: scale(0.985);
}

.calm-note {
  display: block;
  margin-top: 14px;
  color: rgba(219, 241, 240, 0.42);
  text-align: center;
  font-size: 9px;
  line-height: 1.5;
}

.start-menu-primary {
  text-align: left;
}

.start-menu-primary-copy {
  display: grid;
  gap: 3px;
}

.start-menu-primary-copy small {
  color: rgba(7, 58, 54, 0.62);
  letter-spacing: 0.12em;
  font-size: 8px;
  font-weight: 850;
}

.start-menu-primary-copy strong {
  font-size: 13px;
  font-weight: 780;
}

.start-menu-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.start-menu-actions[data-has-chapters="false"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.start-menu-button,
.settings-menu-button,
.menu-secondary-button,
.menu-danger-button,
.returning-actions-heading button {
  border: 1px solid rgba(183, 239, 238, 0.16);
  color: rgba(230, 250, 247, 0.76);
  background: rgba(124, 224, 205, 0.04);
  font: inherit;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.start-menu-button {
  display: grid;
  min-height: 58px;
  padding: 9px 6px;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 14px;
  font-size: 9px;
  font-weight: 720;
}

.start-menu-button > span:first-child {
  color: rgba(188, 255, 234, 0.82);
  font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", Georgia, serif;
  font-size: 15px;
  line-height: 1;
}

.start-menu-button[hidden] {
  display: none;
}

.start-menu-button:hover,
.settings-menu-button:hover,
.menu-secondary-button:hover,
.returning-actions-heading button:hover {
  color: var(--ink);
  border-color: rgba(183, 255, 236, 0.34);
  background: rgba(124, 224, 205, 0.09);
}

.start-menu-button:active,
.settings-menu-button:active,
.menu-secondary-button:active,
.menu-danger-button:active {
  transform: scale(0.985);
}

.start-menu-button:focus-visible,
.settings-menu-button:focus-visible,
.menu-dialog-close:focus-visible,
.menu-secondary-button:focus-visible,
.menu-danger-button:focus-visible,
.returning-actions-heading button:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

.returning-actions {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid rgba(183, 239, 238, 0.12);
}

.returning-actions[hidden] {
  display: none;
}

.memory-label {
  display: block;
  margin-bottom: 9px;
  color: rgba(220, 244, 243, 0.48);
  letter-spacing: 0.08em;
  font-size: 8px;
  font-weight: 720;
  text-transform: uppercase;
}

.memory-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.unified-chapter-menu {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: end;
}

.unified-chapter-menu[hidden] {
  display: none;
}

.unified-chapter-menu:not([hidden]) ~ .memory-buttons,
.unified-chapter-menu:not([hidden]) ~ .path-entry-button {
  display: none;
}

.unified-chapter-menu label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: rgba(220, 244, 243, 0.52);
  letter-spacing: 0.08em;
  font-size: 8px;
  font-weight: 720;
  text-transform: uppercase;
}

.unified-chapter-menu select {
  width: 100%;
  min-height: 48px;
  padding: 0 38px 0 13px;
  border: 1px solid rgba(183, 239, 238, 0.2);
  border-radius: 13px;
  outline: none;
  color: rgba(239, 255, 251, 0.9);
  background: rgba(4, 20, 34, 0.82);
  font: inherit;
  font-size: 11px;
  font-weight: 640;
  letter-spacing: 0;
  text-transform: none;
}

.unified-chapter-menu select:focus-visible,
.unified-chapter-menu .primary-button:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

.unified-chapter-menu .primary-button {
  min-height: 48px;
  padding-inline: 14px;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .unified-chapter-menu {
    grid-template-columns: 1fr;
  }

  .unified-chapter-menu .primary-button {
    width: 100%;
  }
}

.memory-button,
.new-journey-button {
  border: 1px solid rgba(183, 239, 238, 0.16);
  color: rgba(230, 250, 247, 0.72);
  background: rgba(124, 224, 205, 0.035);
  font-size: 10px;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.memory-button {
  display: flex;
  min-height: 39px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 9px;
  line-height: 1.2;
  text-align: left;
}

.returning-actions-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.returning-actions-heading .memory-label {
  margin: 0;
}

.returning-actions-heading button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 8px;
}

.player-profile-overlay {
  position: absolute;
  z-index: 40;
  inset: 0;
  display: grid;
  padding: max(20px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
  place-items: center;
  overflow: auto;
  background:
    radial-gradient(circle at 50% 42%, rgba(92, 199, 177, 0.12), transparent 34%),
    rgba(3, 10, 24, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.menu-overlay {
  position: absolute;
  z-index: 42;
  inset: 0;
  display: grid;
  padding: max(20px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
  place-items: center;
  overflow: auto;
  background:
    radial-gradient(circle at 50% 40%, rgba(110, 218, 188, 0.13), transparent 35%),
    rgba(3, 10, 24, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.menu-overlay[hidden] {
  display: none;
}

.menu-dialog-card {
  position: relative;
  width: min(470px, 100%);
  padding: clamp(27px, 4vw, 42px);
}

.menu-dialog-card h2 {
  max-width: 11em;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
}

.menu-dialog-card > p:not(.eyebrow) {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

.menu-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(183, 239, 238, 0.17);
  border-radius: 50%;
  color: rgba(235, 255, 251, 0.78);
  background: rgba(5, 19, 32, 0.5);
  font-size: 22px;
  cursor: pointer;
}

.settings-menu-list {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.settings-menu-button {
  display: grid;
  min-height: 62px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 9px 14px;
  border-radius: 16px;
  text-align: left;
}

.settings-menu-button > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.settings-menu-button strong {
  color: var(--ink);
  font-size: 12px;
}

.settings-menu-button small {
  color: rgba(219, 241, 240, 0.48);
  font-size: 9px;
}

.settings-menu-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(183, 255, 236, 0.18);
  border-radius: 50%;
  color: var(--mint);
  background: rgba(124, 224, 205, 0.055);
  font-size: 14px;
}

.settings-menu-switch {
  position: relative;
  width: 34px;
  height: 20px;
  border: 1px solid rgba(183, 239, 238, 0.2);
  border-radius: 999px;
  background: rgba(4, 15, 29, 0.58);
}

.settings-menu-switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(218, 241, 238, 0.48);
  content: "";
  transition: transform 180ms ease, background 180ms ease;
}

.settings-menu-button[aria-pressed="true"] .settings-menu-switch {
  border-color: rgba(169, 255, 228, 0.56);
  background: rgba(104, 237, 194, 0.18);
}

.settings-menu-button[aria-pressed="true"] .settings-menu-switch::after {
  background: var(--mint);
  transform: translateX(14px);
}

.settings-menu-button[hidden] {
  display: none;
}

.menu-dialog-note {
  display: block;
  margin-top: 16px;
  color: rgba(219, 241, 240, 0.42);
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

.new-journey-card h2 {
  max-width: 10em;
}

.new-journey-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 25px;
}

.menu-secondary-button,
.menu-danger-button {
  min-height: 50px;
  padding: 10px 14px;
  border-radius: 15px;
  font-size: 10px;
  font-weight: 730;
}

.menu-danger-button {
  border-color: rgba(255, 201, 180, 0.3);
  color: rgba(255, 235, 226, 0.92);
  background: rgba(216, 128, 102, 0.1);
}

.menu-danger-button:hover {
  border-color: rgba(255, 215, 195, 0.5);
  background: rgba(216, 128, 102, 0.18);
}

.player-profile-overlay[hidden] {
  display: none;
}

.player-profile-card {
  position: relative;
  width: min(450px, 100%);
  padding: clamp(27px, 4vw, 42px);
}

.player-profile-card .eyebrow {
  margin-bottom: 12px;
}

.player-profile-card h2 {
  max-width: 9em;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 6vw, 48px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.player-profile-card > p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.player-profile-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(183, 239, 238, 0.17);
  border-radius: 50%;
  color: rgba(235, 255, 251, 0.76);
  background: rgba(5, 19, 32, 0.46);
  font-size: 22px;
  cursor: pointer;
}

.player-profile-card form {
  margin-top: 22px;
}

.player-profile-card label {
  display: block;
  margin-bottom: 8px;
  color: rgba(228, 251, 247, 0.72);
  letter-spacing: 0.08em;
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
}

.player-name-field {
  position: relative;
}

.player-name-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 72px 0 16px;
  border: 1px solid rgba(183, 239, 238, 0.24);
  border-radius: 15px;
  outline: none;
  color: var(--ink);
  background: rgba(3, 15, 29, 0.58);
  font: inherit;
  font-size: 16px;
  caret-color: var(--mint);
}

.player-name-field input::placeholder {
  color: rgba(220, 244, 243, 0.34);
}

.player-name-field input:focus {
  border-color: rgba(169, 255, 228, 0.7);
  box-shadow: 0 0 0 3px rgba(107, 240, 201, 0.11);
}

.player-name-field input[aria-invalid="true"] {
  border-color: rgba(255, 185, 177, 0.72);
}

.player-name-field span {
  position: absolute;
  top: 50%;
  right: 15px;
  color: rgba(220, 244, 243, 0.42);
  font-size: 9px;
  transform: translateY(-50%);
}

#player-name-help,
.player-profile-privacy {
  display: block;
  color: rgba(219, 241, 240, 0.42);
  font-size: 9px;
  line-height: 1.5;
}

#player-name-help {
  margin-top: 7px;
}

.player-profile-status {
  min-height: 17px;
  margin: 7px 0 0;
  color: rgba(255, 210, 202, 0.84);
  font-size: 10px;
  line-height: 1.5;
}

.player-profile-save {
  margin-top: 8px;
}

.player-profile-guest {
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  border: 1px solid rgba(183, 239, 238, 0.16);
  border-radius: 15px;
  color: rgba(230, 250, 247, 0.72);
  background: rgba(124, 224, 205, 0.035);
  font-size: 11px;
  font-weight: 680;
  cursor: pointer;
}

.player-profile-rest-button {
  width: 100%;
  margin-top: 10px;
}

.player-profile-close:focus-visible,
.player-profile-guest:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

.player-profile-guest:hover,
.player-profile-close:hover {
  color: var(--ink);
  border-color: rgba(183, 255, 236, 0.32);
  background: rgba(124, 224, 205, 0.08);
}

.player-profile-privacy {
  margin-top: 12px;
  text-align: center;
}

.player-welcome {
  margin: 0 0 10px !important;
  color: rgba(223, 255, 246, 0.72) !important;
  letter-spacing: 0.08em;
  font-size: 10px !important;
  font-weight: 720;
  line-height: 1.35 !important;
  text-transform: uppercase;
}

.player-welcome[hidden] {
  display: none;
}

.memory-button::before {
  flex: 0 0 15px;
  color: hsl(var(--memory-button-hue, 157), 88%, 84%);
  content: "✦";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  text-align: center;
  text-shadow: 0 0 12px hsla(var(--memory-button-hue, 157), 88%, 72%, 0.62);
}

.memory-button[data-vision="lichtbloem"] { --memory-button-hue: 157; }
.memory-button[data-vision="lichtbloem"]::before { content: "✿"; }
.memory-button[data-vision="bosuil"] { --memory-button-hue: 268; }
.memory-button[data-vision="bosuil"]::before { content: "◉"; }
.memory-button[data-vision="sterrenlotus"] { --memory-button-hue: 47; }
.memory-button[data-vision="sterrenlotus"]::before { content: "❉"; }
.memory-button[data-vision="auroralint"] { --memory-button-hue: 24; }
.memory-button[data-vision="auroralint"]::before { content: "∿"; }
.memory-button[data-vision="kristal"] { --memory-button-hue: 193; }
.memory-button[data-vision="kristal"]::before { content: "◇"; }
.memory-button[data-vision="maanwalvis"] { --memory-button-hue: 326; }
.memory-button[data-vision="maanwalvis"]::before { content: "☾"; }
.memory-button[data-vision="zangkoraal"] { --memory-button-hue: 174; }
.memory-button[data-vision="zangkoraal"]::before { content: "Ψ"; }
.memory-button[data-vision="lichtrog"] { --memory-button-hue: 205; }
.memory-button[data-vision="lichtrog"]::before { content: "⌁"; }
.memory-button[data-vision="maanvrucht"] { --memory-button-hue: 83; }
.memory-button[data-vision="maanvrucht"]::before { content: "●"; }
.memory-button[data-vision="wolkenklok"] { --memory-button-hue: 230; }
.memory-button[data-vision="wolkenklok"]::before { content: "♢"; }

.memory-button::before,
.memory-echo-palette button span::after,
.journey-map-preview-light::after,
.journey-star-light::after,
.journey-dot::after {
  font-family:
    "Segoe UI Symbol", "Noto Sans Symbols 2", "Noto Sans Symbols", Georgia,
    "Times New Roman", serif;
}

.new-journey-button {
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  border-color: transparent;
  border-radius: 10px;
  color: rgba(220, 241, 240, 0.42);
  background: transparent;
  font-size: 9px;
}

.memory-button:hover,
.new-journey-button:hover {
  color: var(--ink);
  border-color: rgba(183, 255, 236, 0.3);
  background: rgba(124, 224, 205, 0.08);
}

.memory-button:active,
.new-journey-button:active {
  transform: scale(0.98);
}

.memory-button:focus-visible,
.new-journey-button:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

.play-hud {
  position: absolute;
  z-index: 6;
  top: max(76px, calc(env(safe-area-inset-top) + 64px));
  right: clamp(18px, 4vw, 64px);
  bottom: auto;
  left: clamp(18px, 4vw, 64px);
  display: flex;
  visibility: hidden;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition:
    opacity 450ms ease,
    transform 450ms ease,
    visibility 450ms;
}

.play-hud.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.journey-map-button {
  border-color: rgba(210, 194, 255, 0.25);
  color: rgba(237, 229, 255, 0.84);
  background: rgba(166, 132, 232, 0.08);
}

.light-garden-return-button {
  border-color: rgba(182, 250, 218, 0.32);
  color: rgba(231, 255, 244, 0.94);
  background: linear-gradient(
    135deg,
    rgba(126, 238, 196, 0.14),
    rgba(188, 158, 255, 0.1)
  );
  box-shadow: 0 0 22px rgba(139, 244, 203, 0.1);
}

.light-garden-return-button[hidden] {
  display: none;
}

.quiet-mode-button[hidden] {
  display: none;
}

.memory-echo-button[hidden] {
  display: none;
}

.light-weave-button[hidden] {
  display: none;
}

.quiet-mode-button[aria-pressed="true"] {
  border-color: rgba(255, 222, 157, 0.45);
  color: rgba(255, 244, 218, 0.94);
  background: rgba(255, 206, 126, 0.12);
  box-shadow: 0 0 24px rgba(255, 211, 140, 0.13);
}

.memory-echo-button {
  border-color: rgba(190, 218, 255, 0.24);
  color: rgba(228, 239, 255, 0.88);
  background: linear-gradient(
    135deg,
    rgba(128, 221, 217, 0.1),
    rgba(170, 132, 241, 0.1)
  );
}

.memory-echo-button.is-echoing {
  border-color: hsla(var(--memory-echo-hue, 190), 90%, 82%, 0.58);
  box-shadow: 0 0 26px hsla(var(--memory-echo-hue, 190), 90%, 70%, 0.18);
}

.light-weave-button {
  border-color: rgba(224, 198, 255, 0.24);
  color: rgba(243, 232, 255, 0.9);
  background: linear-gradient(
    135deg,
    rgba(178, 128, 242, 0.1),
    rgba(237, 205, 122, 0.09)
  );
}

.light-weave-button[aria-pressed="true"] {
  border-color: hsla(var(--weave-hue, 157), 88%, 81%, 0.62);
  color: white;
  background: hsla(var(--weave-hue, 157), 68%, 62%, 0.15);
  box-shadow: 0 0 26px hsla(var(--weave-hue, 157), 90%, 70%, 0.2);
}

.light-weaving #world-canvas {
  cursor: crosshair !important;
}

.memory-echo-palette {
  position: absolute;
  z-index: 7;
  top: max(132px, calc(env(safe-area-inset-top) + 120px));
  bottom: auto;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(210, 238, 255, 0.16);
  border-radius: 99px;
  background: rgba(5, 18, 34, 0.54);
  box-shadow: 0 14px 34px rgba(0, 7, 19, 0.24);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.memory-echo-palette[hidden],
.memory-echo-palette button[hidden] {
  display: none;
}

.memory-echo-palette button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(217, 242, 255, 0.15);
  border-radius: 50%;
  background: rgba(225, 244, 255, 0.035);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 220ms ease,
    transform 180ms ease;
}

.memory-echo-palette button span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: hsl(var(--echo-hue), 92%, 90%);
  background: hsla(var(--echo-hue), 72%, 58%, 0.18);
  box-shadow: 0 0 14px hsla(var(--echo-hue), 92%, 72%, 0.7);
}

.memory-echo-palette button span::after {
  content: "✦";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  line-height: 1;
}

.memory-echo-palette button[data-vision="lichtbloem"] span::after { content: "✿"; }
.memory-echo-palette button[data-vision="bosuil"] span::after { content: "◉"; }
.memory-echo-palette button[data-vision="sterrenlotus"] span::after { content: "❉"; }
.memory-echo-palette button[data-vision="auroralint"] span::after { content: "∿"; }
.memory-echo-palette button[data-vision="kristal"] span::after { content: "◇"; }
.memory-echo-palette button[data-vision="maanwalvis"] span::after { content: "☾"; }
.memory-echo-palette button[data-vision="zangkoraal"] span::after { content: "Ψ"; }
.memory-echo-palette button[data-vision="lichtrog"] span::after { content: "⌁"; }
.memory-echo-palette button[data-vision="maanvrucht"] span::after { content: "●"; }
.memory-echo-palette button[data-vision="wolkenklok"] span::after { content: "♢"; }

.memory-echo-palette button:hover {
  border-color: rgba(225, 247, 255, 0.38);
  transform: translateY(-1px);
}

.memory-echo-palette button.is-selected {
  border-color: rgba(239, 253, 255, 0.7);
  background: rgba(224, 245, 255, 0.13);
  box-shadow:
    0 0 0 3px rgba(211, 240, 255, 0.06),
    0 0 22px rgba(155, 224, 255, 0.13);
  transform: scale(1.08);
}

.memory-echo-palette button.is-current-place {
  border-width: 3px;
  border-style: double;
  border-color: rgba(235, 252, 255, 0.54);
}

.memory-echo-palette button:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

.quiet-moment .instruction-pill {
  border-color: rgba(220, 242, 237, 0.1);
  background: rgba(7, 21, 36, 0.36);
}

.quiet-moment .pulse-dot {
  animation-duration: 4.8s;
}

.quiet-moment .discovery-guide {
  opacity: 0.4;
  bottom: max(142px, calc(env(safe-area-inset-bottom) + 132px));
  transition: opacity 500ms ease;
}

.journey-map-panel {
  position: absolute;
  z-index: 12;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 52px);
  background:
    radial-gradient(circle at 50% 46%, rgba(91, 206, 189, 0.12), transparent 42%),
    rgba(2, 10, 22, 0.76);
  opacity: 0;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: opacity 320ms ease;
}

.journey-map-panel[hidden] {
  display: none;
}

.journey-map-panel.is-visible {
  opacity: 1;
}

.journey-map-card {
  position: relative;
  width: min(760px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  padding: clamp(26px, 4vw, 46px);
  overflow: auto;
  text-align: center;
}

.journey-map-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.journey-map-card > p:not(.eyebrow) {
  max-width: 47em;
  margin: 14px auto 0;
  color: rgba(219, 241, 240, 0.62);
  font-size: 13px;
  line-height: 1.65;
}

.journey-map-card > small {
  display: block;
  margin-top: 13px;
  color: rgba(219, 241, 240, 0.38);
  font-size: 9px;
}

.game-help-card {
  width: min(520px, calc(100vw - 36px));
  text-align: left;
}

.game-help-card h2,
.game-help-card > p:not(.eyebrow) {
  text-align: left;
}

.game-help-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding-left: 20px;
  color: rgba(229, 246, 242, 0.84);
  line-height: 1.55;
}

.game-help-list strong {
  color: #fff9d4;
}

.game-help-note {
  color: rgba(219, 241, 240, 0.52) !important;
  font-size: 12px !important;
}

.journey-map-preview {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 13px;
  margin: 4px auto 11px;
  padding: 10px 14px;
  border: 1px solid hsla(var(--preview-hue, 157), 72%, 74%, 0.18);
  border-radius: 17px;
  background: hsla(var(--preview-hue, 157), 54%, 54%, 0.06);
  text-align: left;
  transition: border-color 220ms ease, background 220ms ease;
}

.journey-map-preview.is-keyboard-focused {
  border-color: rgba(238, 255, 250, 0.68);
  box-shadow:
    0 0 0 2px rgba(5, 18, 34, 0.92),
    0 0 0 4px rgba(238, 255, 250, 0.34);
}

.journey-map-preview-light {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: hsl(var(--preview-hue, 157), 92%, 86%);
  background: hsla(var(--preview-hue, 157), 78%, 60%, 0.14);
  box-shadow: 0 0 22px hsla(var(--preview-hue, 157), 88%, 67%, 0.3);
}

.journey-map-preview-light::after {
  content: "✦";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1;
}

.journey-map-preview[data-vision="lichtbloem"] .journey-map-preview-light::after {
  content: "✿";
}

.journey-map-preview[data-vision="bosuil"] .journey-map-preview-light::after {
  content: "◉";
}

.journey-map-preview[data-vision="sterrenlotus"] .journey-map-preview-light::after {
  content: "❉";
}

.journey-map-preview[data-vision="auroralint"] .journey-map-preview-light::after {
  content: "∿";
}

.journey-map-preview[data-vision="kristal"] .journey-map-preview-light::after {
  content: "◇";
}

.journey-map-preview[data-vision="maanwalvis"] .journey-map-preview-light::after {
  content: "☾";
}

.journey-map-preview[data-vision="zangkoraal"] .journey-map-preview-light::after {
  content: "Ψ";
}

.journey-map-preview[data-vision="lichtrog"] .journey-map-preview-light::after {
  content: "⌁";
}

.journey-map-preview[data-vision="maanvrucht"] .journey-map-preview-light::after {
  content: "●";
}

.journey-map-preview[data-vision="wolkenklok"] .journey-map-preview-light::after {
  content: "♢";
}

.journey-map-preview strong,
.journey-map-preview small {
  display: block;
}

.journey-map-preview strong {
  color: rgba(241, 255, 250, 0.92);
  font-size: 12px;
}

.journey-map-preview small {
  margin-top: 3px;
  color: rgba(205, 230, 226, 0.58);
  font-size: 10px;
  line-height: 1.45;
}

.journey-map-close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(211, 244, 240, 0.18);
  border-radius: 50%;
  color: rgba(238, 255, 251, 0.74);
  background: rgba(10, 31, 44, 0.58);
  font-size: 22px;
  cursor: pointer;
}

.journey-map-close-button:hover,
.journey-map-close-button:focus-visible {
  border-color: rgba(188, 255, 232, 0.52);
  color: white;
  outline: none;
}

.journey-constellation {
  position: relative;
  height: clamp(245px, 36vh, 330px);
  margin-top: 15px;
}

.journey-chapter-picker {
  display: grid;
  gap: 7px;
  max-width: 430px;
  margin: 2px auto 14px;
  color: rgba(219, 241, 240, 0.7);
  font-size: 11px;
  text-align: left;
}

.journey-chapter-picker select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(183, 255, 232, 0.26);
  border-radius: 12px;
  color: rgba(241, 255, 250, 0.92);
  background: rgba(10, 31, 44, 0.78);
  font: inherit;
}

.journey-chapter-picker select:focus-visible {
  outline: 2px solid rgba(238, 255, 250, 0.86);
  outline-offset: 3px;
}

.journey-constellation svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.journey-constellation line {
  fill: none;
  stroke: rgba(183, 255, 232, 0.11);
  stroke-width: 0.45;
  stroke-dasharray: 1.2 1.8;
  vector-effect: non-scaling-stroke;
  transition: stroke 700ms ease, filter 700ms ease;
}

.journey-constellation line.is-awake {
  stroke: hsla(var(--journey-link-hue, 157), 86%, 79%, 0.58);
  filter: drop-shadow(
    0 0 2px hsla(var(--journey-link-hue, 157), 88%, 70%, 0.52)
  );
}

.journey-constellation line.is-current-link {
  stroke-width: 0.72;
  stroke-dasharray: 0.8 1.2;
  animation: current-journey-link 9s linear infinite;
}

@keyframes current-journey-link {
  to {
    stroke-dashoffset: -8;
  }
}

.journey-star {
  position: absolute;
  top: var(--star-y);
  left: var(--star-x);
  display: grid;
  min-width: 88px;
  justify-items: center;
  gap: 8px;
  padding: 7px;
  border: 0;
  color: rgba(231, 252, 248, 0.82);
  background: transparent;
  font-size: 10px;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.journey-star-light {
  position: relative;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(191, 255, 234, 0.42);
  border-radius: 50%;
  background: rgba(135, 255, 214, 0.13);
  box-shadow:
    0 0 0 5px rgba(135, 255, 214, 0.035),
    0 0 20px rgba(135, 255, 214, 0.2);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.journey-star.has-paused-journey .journey-star-light::before {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 8px;
  height: 8px;
  border: 2px solid hsl(var(--journey-hue, 157), 92%, 88%);
  border-radius: 2px;
  background: rgba(7, 20, 34, 0.94);
  box-shadow: 0 0 10px hsla(var(--journey-hue, 157), 92%, 72%, 0.7);
  content: "";
  transform: rotate(45deg);
}

.journey-star.has-paused-journey[data-resume-kind="ontdekking"]
  .journey-star-light::before {
  border-radius: 60% 0 60% 60%;
  transform: rotate(-35deg);
}

.journey-star:not(:disabled) .journey-star-light {
  border-color: hsla(var(--journey-hue, 157), 78%, 78%, 0.48);
  background: hsla(var(--journey-hue, 157), 70%, 58%, 0.13);
  box-shadow:
    0 0 0 5px hsla(var(--journey-hue, 157), 70%, 58%, 0.035),
    0 0 20px hsla(var(--journey-hue, 157), 84%, 68%, 0.24);
}

.journey-star:not(:disabled) .journey-star-light::after {
  color: hsl(var(--journey-hue, 157), 88%, 88%);
}

.journey-star-light::after {
  color: #ddfff1;
  content: "✦";
  font-size: 11px;
}

.journey-star[data-vision="lichtbloem"] .journey-star-light::after {
  content: "✿";
}

.journey-star[data-vision="bosuil"] .journey-star-light::after {
  content: "◉";
}

.journey-star[data-vision="sterrenlotus"] .journey-star-light::after {
  content: "❉";
}

.journey-star[data-vision="auroralint"] .journey-star-light::after {
  content: "∿";
}

.journey-star[data-vision="kristal"] .journey-star-light::after {
  content: "◇";
}

.journey-star[data-vision="maanwalvis"] .journey-star-light::after {
  content: "☾";
}

.journey-star[data-vision="zangkoraal"] .journey-star-light::after {
  content: "Ψ";
}

.journey-star[data-vision="lichtrog"] .journey-star-light::after {
  content: "⌁";
}

.journey-star[data-vision="maanvrucht"] .journey-star-light::after {
  content: "●";
}

.journey-star[data-vision="wolkenklok"] .journey-star-light::after {
  content: "♢";
}

.journey-star:hover .journey-star-light,
.journey-star:focus-visible .journey-star-light {
  box-shadow:
    0 0 0 7px rgba(135, 255, 214, 0.08),
    0 0 28px rgba(135, 255, 214, 0.42);
  transform: scale(1.1);
}

.journey-star:focus-visible {
  border-radius: 13px;
  outline: 2px solid rgba(255, 255, 255, 0.88);
  outline-offset: 2px;
  box-shadow:
    0 0 0 4px rgba(5, 18, 34, 0.92),
    0 0 0 6px rgba(255, 255, 255, 0.34);
}

.journey-star.is-current {
  color: white;
  font-weight: 760;
}

.journey-star.is-current .journey-star-light {
  border-color: rgba(255, 224, 164, 0.7);
  background: rgba(255, 207, 125, 0.18);
  box-shadow:
    0 0 0 6px rgba(255, 211, 139, 0.05),
    0 0 28px rgba(255, 211, 139, 0.4);
}

.journey-star:disabled {
  color: rgba(219, 241, 240, 0.24);
  cursor: default;
}

.journey-star:disabled .journey-star-light {
  border-color: rgba(219, 241, 240, 0.12);
  background: rgba(219, 241, 240, 0.025);
  box-shadow: none;
}

.journey-star:disabled .journey-star-light::after {
  color: rgba(219, 241, 240, 0.2);
  content: "·";
}

.discovery-guide {
  position: absolute;
  z-index: 6;
  bottom: max(82px, calc(env(safe-area-inset-bottom) + 72px));
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 39px;
  padding: 5px 8px;
  border: 1px solid rgba(183, 239, 238, 0.17);
  border-radius: 99px;
  color: rgba(223, 244, 242, 0.5);
  background: rgba(7, 21, 36, 0.58);
  box-shadow:
    0 14px 38px rgba(0, 6, 18, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  font-size: 9px;
  font-weight: 680;
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.discovery-guide[hidden] {
  display: none;
}

.chapter-transition {
  position: absolute;
  z-index: 7;
  top: clamp(88px, 13vh, 132px);
  left: 50%;
  display: grid;
  width: min(360px, calc(100vw - 34px));
  gap: 5px;
  padding: 12px 16px 13px;
  border: 1px solid rgba(204, 244, 239, 0.18);
  border-radius: 16px;
  color: rgba(239, 255, 251, 0.94);
  background: rgba(7, 20, 36, 0.68);
  box-shadow: 0 18px 48px rgba(0, 7, 20, 0.3);
  opacity: 0;
  transform: translate(-50%, -8px);
  pointer-events: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: opacity 360ms ease, transform 360ms ease;
}

.chapter-transition[hidden] {
  display: none;
}

.chapter-transition.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.chapter-transition.is-awaiting-continue {
  gap: 10px;
  pointer-events: auto;
}

.chapter-transition > span:first-child {
  color: rgba(183, 255, 228, 0.62);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.17em;
}

.chapter-transition strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 500;
}

.transition-next {
  color: rgba(225, 248, 243, 0.74);
  font-size: 12px;
  line-height: 1.45;
}

#transition-continue-button {
  min-height: 44px;
  margin-top: 2px;
  border: 1px solid rgba(162, 255, 216, 0.5);
  border-radius: 12px;
  color: #08221e;
  background: linear-gradient(135deg, #a9f7d6, #d9fff1);
  box-shadow: 0 8px 22px rgba(105, 255, 201, 0.16);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}

#transition-continue-button:focus-visible {
  outline: 3px solid rgba(255, 236, 165, 0.95);
  outline-offset: 3px;
}

.transition-track {
  height: 2px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(217, 247, 244, 0.1);
}

.transition-track span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8fffd2, #dcc7ff, #ffe5a1);
  transform-origin: left;
  animation: transition-progress 3.25s linear both;
}

.guide-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 99px;
  white-space: nowrap;
  transition:
    color 300ms ease,
    background 300ms ease,
    box-shadow 300ms ease;
}

.guide-number {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid rgba(203, 234, 232, 0.18);
  border-radius: 50%;
  font-size: 8px;
}

.guide-step strong {
  color: rgba(229, 255, 246, 0.72);
  font-size: 8px;
}

.guide-step.is-active {
  color: rgba(241, 255, 250, 0.94);
  background: rgba(110, 240, 201, 0.11);
  box-shadow: 0 0 18px rgba(110, 240, 201, 0.1);
}

.guide-step.is-active .guide-number {
  color: #0c3e3a;
  border-color: var(--mint);
  background: var(--mint);
  box-shadow: 0 0 12px rgba(169, 255, 228, 0.4);
}

.guide-step.is-complete {
  color: rgba(183, 255, 228, 0.72);
}

.guide-step.is-complete .guide-number {
  color: transparent;
  border-color: rgba(169, 255, 228, 0.46);
  background: rgba(169, 255, 228, 0.13);
}

.guide-step.is-complete .guide-number::after {
  color: var(--mint);
  content: "✓";
}

.guide-arrow {
  color: rgba(200, 226, 226, 0.24);
}

.instruction-pill,
.lumi-button,
.quiet-button {
  min-height: 44px;
  border-radius: 99px;
  color: rgba(232, 252, 248, 0.72);
  pointer-events: auto;
}

.instruction-pill {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 18px;
  font-size: 11px;
}

.instruction-copy {
  min-width: 0;
}

#play-feedback {
  display: inline;
}

.instruction-context {
  display: block;
  margin-top: 3px;
  color: rgba(207, 230, 237, 0.68);
  font-size: 0.66rem;
  line-height: 1.35;
}

.instruction-pill strong {
  margin-right: 8px;
  color: rgba(190, 255, 233, 0.92);
  font-size: 0.62rem;
  font-weight: 720;
  letter-spacing: 0.065em;
  white-space: nowrap;
}

.instruction-pill .world-objective-label {
  color: rgba(212, 199, 255, 0.88);
}

.instruction-pill .world-objective-label::before {
  margin-right: 4px;
  color: rgba(194, 230, 255, 0.52);
  content: "◇";
}

.lumi-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px 0 8px;
  border: 1px solid rgba(183, 255, 232, 0.3);
  background:
    linear-gradient(135deg, rgba(177, 255, 226, 0.13), rgba(185, 167, 255, 0.08)),
    rgba(7, 21, 36, 0.54);
  box-shadow:
    0 8px 28px rgba(76, 235, 191, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  color: rgba(228, 255, 246, 0.88);
  font-size: 11px;
  font-weight: 720;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 260ms ease,
    transform 180ms ease;
}

.lumi-button-spark {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(191, 255, 233, 0.28);
  border-radius: 50%;
  color: #d8ffec;
  background: rgba(137, 255, 216, 0.12);
  box-shadow: 0 0 14px rgba(128, 255, 214, 0.18);
  font-size: 11px;
}

.lumi-button:hover {
  border-color: rgba(201, 255, 237, 0.5);
  background:
    linear-gradient(135deg, rgba(177, 255, 226, 0.19), rgba(185, 167, 255, 0.12)),
    rgba(12, 32, 47, 0.66);
  box-shadow: 0 9px 32px rgba(76, 235, 191, 0.18);
}

.lumi-button:active {
  transform: scale(0.97);
}

.lumi-button:focus-visible,
.quiet-button:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

.lumi-button.is-pulsing .lumi-button-spark {
  animation: lumi-button-pulse 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(160, 255, 226, 0.5);
  animation: pulse 2.1s infinite;
}

.quiet-button {
  padding: 0 15px;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.quiet-button:hover {
  border-color: rgba(190, 248, 242, 0.34);
  background: rgba(16, 42, 58, 0.68);
}

.quiet-button[data-confirming="true"] {
  border-color: rgba(211, 194, 255, 0.58);
  background: rgba(154, 122, 221, 0.18);
  outline: 2px dashed rgba(232, 220, 255, 0.78);
  outline-offset: 2px;
}

.quiet-button:disabled {
  opacity: 0.38;
  cursor: default;
}

.quiet-button:active {
  transform: scale(0.97);
}

#undo-button,
#chapter-path-undo {
  display: none !important;
}

.chapter-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid rgba(187, 255, 231, 0.42);
  border-radius: 99px;
  color: #083b39;
  background: linear-gradient(135deg, #d7ffec, #88efcf);
  box-shadow: 0 10px 30px rgba(92, 238, 196, 0.2);
  font-size: 11px;
  font-weight: 760;
  cursor: pointer;
  pointer-events: auto;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
  animation: chapter-invite 1.8s ease-in-out 3;
}

.chapter-button[hidden] {
  display: none;
}

.chapter-button:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 34px rgba(92, 238, 196, 0.3);
  transform: translateY(-1px);
}

.chapter-button:active {
  transform: scale(0.97);
}

.chapter-button:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

.chapter-button-short {
  display: none;
}

.complete-panel {
  top: 50%;
  left: 50%;
  visibility: hidden;
  max-width: 420px;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -46%) scale(0.94);
  pointer-events: none;
}

.complete-panel.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.complete-star {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin: 0 auto 18px;
  border: 1px solid rgba(205, 255, 225, 0.34);
  border-radius: 50%;
  color: var(--mint);
  background: rgba(129, 255, 209, 0.1);
  box-shadow: 0 0 42px rgba(108, 255, 205, 0.28);
  font-size: 24px;
}

.complete-panel .eyebrow {
  margin-bottom: 11px;
}

.complete-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(33px, 6vw, 48px);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.complete-panel > p:not(.eyebrow) {
  margin-right: auto;
  margin-left: auto;
}

.prototype-label {
  position: absolute;
  z-index: 4;
  right: clamp(20px, 4vw, 64px);
  bottom: max(12px, env(safe-area-inset-bottom));
  color: rgba(220, 243, 243, 0.2);
  letter-spacing: 0.16em;
  font-size: 7px;
  pointer-events: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(160, 255, 226, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(160, 255, 226, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(160, 255, 226, 0);
  }
}

@keyframes sound-wave {
  from {
    transform: scaleY(0.55);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes transition-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes chapter-invite {
  0%,
  100% {
    box-shadow: 0 10px 30px rgba(92, 238, 196, 0.2);
  }
  50% {
    box-shadow: 0 10px 38px rgba(128, 255, 218, 0.48);
  }
}

@keyframes lumi-button-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(169, 255, 228, 0.62);
    transform: scale(0.92) rotate(-8deg);
  }
  55% {
    box-shadow: 0 0 0 10px rgba(169, 255, 228, 0);
    transform: scale(1.18) rotate(7deg);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(169, 255, 228, 0);
    transform: scale(1) rotate(0);
  }
}

@media (max-width: 759px) {
  .top-bar {
    gap: 10px;
    padding-right: max(10px, env(safe-area-inset-right));
    padding-left: max(10px, env(safe-area-inset-left));
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand strong {
    font-size: 11px;
  }

  .brand small {
    display: none;
  }

  .brand-player-label {
    max-width: 92px;
    font-size: 8px;
  }

  .journey-chip {
    min-height: 33px;
    padding: 0 11px;
    font-size: 8px;
  }

  .top-actions {
    gap: 7px;
  }

  .sound-button {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }

  .brand-profile {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  .intro-panel {
    top: auto;
    bottom: max(27px, env(safe-area-inset-bottom));
    left: 50%;
    width: min(410px, calc(100vw - 28px));
    max-height: calc(100dvh - max(104px, env(safe-area-inset-top) + 82px));
    padding: 28px;
    transform: translateX(-50%);
  }

  .intro-panel.is-hidden {
    transform: translateX(-50%) translateY(22px) scale(0.98);
  }

  .intro-panel h1 {
    font-size: clamp(41px, 13vw, 59px);
  }

  .intro-panel > p:not(.eyebrow) {
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.58;
  }

  .primary-button {
    margin-top: 22px;
  }

  .start-menu-button {
    min-height: 54px;
  }

  .menu-dialog-card {
    padding: 30px 24px 25px;
  }

  .menu-dialog-card h2 {
    padding-right: 34px;
    font-size: clamp(31px, 10vw, 42px);
  }

  .memory-button,
  .new-journey-button {
    min-height: 44px;
  }

  .play-hud {
    top: max(76px, calc(env(safe-area-inset-top) + 64px));
    right: 13px;
    bottom: auto;
    left: 13px;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 7px;
    padding: 0;
  }

  .memory-echo-palette {
    top: max(180px, calc(env(safe-area-inset-top) + 168px));
    bottom: auto;
    display: grid;
    width: 258px;
    grid-template-columns: repeat(5, 44px);
    gap: 6px;
    padding: 7px;
    border-radius: 28px;
  }

  .memory-echo-palette button {
    width: 44px;
    height: 44px;
  }

  .quiet-moment .discovery-guide {
    bottom: max(292px, calc(env(safe-area-inset-bottom) + 284px));
  }

  .journey-map-card {
    width: calc(100vw - 24px);
    padding: 27px 18px 23px;
  }

  .journey-map-close-button {
    width: 44px;
    height: 44px;
  }

  .journey-map-card h2 {
    padding: 0 28px;
    font-size: clamp(29px, 9vw, 39px);
  }

  .journey-map-card > p:not(.eyebrow) {
    font-size: 12px;
  }

  .journey-constellation {
    display: grid;
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 20px;
  }

  .journey-map-preview {
    margin-top: 12px;
  }

  .journey-constellation svg {
    display: none;
  }

  .journey-star {
    position: relative;
    top: auto;
    left: auto;
    min-height: 58px;
    grid-template-columns: 28px 1fr;
    justify-items: start;
    gap: 9px;
    padding: 7px 10px;
    border: 1px solid rgba(183, 239, 238, 0.1);
    border-radius: 14px;
    text-align: left;
    transform: none;
  }

  .journey-star:not(:disabled) {
    border-color: hsla(var(--journey-hue, 157), 76%, 78%, 0.28);
    background: hsla(var(--journey-hue, 157), 60%, 54%, 0.055);
    box-shadow: inset 3px 0 0 hsla(var(--journey-hue, 157), 84%, 74%, 0.38);
  }

  .journey-star.is-current {
    box-shadow:
      inset 4px 0 0 rgba(255, 224, 164, 0.74),
      0 0 18px hsla(var(--journey-hue, 157), 82%, 68%, 0.1);
  }

  .journey-star-light {
    width: 27px;
    height: 27px;
  }

  .discovery-guide {
    bottom: max(116px, calc(env(safe-area-inset-bottom) + 108px));
    gap: 3px;
    max-width: calc(100vw - 26px);
    padding: 4px 5px;
    font-size: 8px;
  }

  .guide-step {
    gap: 4px;
    min-width: 0;
    padding: 4px 5px;
  }

  #guide-first-label,
  #guide-second-label,
  #guide-third-label {
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .guide-number {
    width: 16px;
    height: 16px;
  }

  .instruction-pill {
    min-width: 0;
    min-height: 36px;
    flex: 1 0 100%;
    order: -1;
    justify-content: center;
    padding: 6px 14px;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
  }

  .quiet-button span {
    display: none;
  }

  .quiet-button,
  .lumi-button,
  .memory-echo-button {
    width: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
  }

  #journey-map-button,
  #reset-button,
  #lumi-button {
    width: auto;
    gap: 6px;
    padding: 0 10px;
  }

  #journey-map-button span,
  #reset-button span,
  .lumi-button-label {
    display: inline;
  }

  .memory-echo-button span {
    display: none;
  }

  .chapter-button {
    min-width: 58px;
    min-height: 44px;
    justify-content: center;
    padding: 0 12px;
  }

  .chapter-button-label {
    display: none;
  }

  .chapter-button-short {
    display: inline;
  }

  .complete-panel {
    width: min(410px, calc(100vw - 28px));
    padding: 31px 27px;
  }

  .prototype-label {
    display: none;
  }
}

@media (max-height: 650px) and (min-width: 760px) {
  .game-shell {
    min-height: 100dvh;
  }

  .top-bar {
    padding: max(10px, env(safe-area-inset-top)) 18px 8px;
  }

  .sound-button {
    width: 44px;
    height: 44px;
  }

  .brand-profile {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  .intro-panel {
    top: 52%;
    width: min(520px, calc(100vw - 28px));
    max-height: calc(100dvh - 76px);
    padding: 18px 28px;
    overflow: auto;
  }

  .player-profile-card {
    padding: 28px 24px 24px;
  }

  .player-profile-card h2 {
    font-size: clamp(34px, 11vw, 44px);
  }

  .intro-panel h1 {
    font-size: 38px;
  }

  .intro-panel > p:not(.eyebrow) {
    margin-top: 10px;
    font-size: 12px;
  }

  .primary-button {
    min-height: 44px;
    margin-top: 12px;
  }

  .start-menu-actions {
    margin-top: 8px;
  }

  .start-menu-button {
    min-height: 48px;
  }

  .complete-panel {
    top: max(8px, env(safe-area-inset-top));
    bottom: auto;
    max-height: calc(100dvh - 16px);
    padding: 18px 28px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translate(-50%, 0) scale(0.94);
  }

  .complete-panel.is-visible {
    transform: translate(-50%, 0) scale(1);
  }

  .complete-panel .complete-star {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
    font-size: 19px;
  }

  .complete-panel h2 {
    font-size: clamp(30px, 5vw, 38px);
  }

  .complete-panel > p:not(.eyebrow) {
    margin-top: 12px;
    line-height: 1.5;
  }

  .menu-dialog-card {
    max-height: calc(100dvh - 28px);
    padding: 24px;
    overflow: auto;
  }

  .menu-overlay {
    position: fixed;
    padding: max(8px, env(safe-area-inset-top)) 14px max(8px, env(safe-area-inset-bottom));
  }

  .menu-dialog-card h2 {
    font-size: 32px;
  }

  .memory-button,
  .new-journey-button {
    min-height: 44px;
  }

  .play-hud {
    top: max(58px, calc(env(safe-area-inset-top) + 48px));
    right: 12px;
    bottom: auto;
    left: 12px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 0;
  }

  .instruction-pill {
    min-width: 0;
    min-height: 34px;
    flex: 1 0 100%;
    order: -1;
    justify-content: center;
    padding: 5px 12px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  .quiet-button span,
  .chapter-button-label {
    display: none;
  }

  .quiet-button,
  .lumi-button,
  .memory-echo-button {
    width: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
  }

  #journey-map-button,
  #reset-button,
  #lumi-button {
    width: auto;
    gap: 6px;
    padding: 0 10px;
  }

  #journey-map-button span,
  #reset-button span,
  .lumi-button-label {
    display: inline;
  }

  .chapter-button {
    min-width: 70px;
    min-height: 44px;
    justify-content: center;
    padding: 0 10px;
  }

  .chapter-button-short {
    display: inline;
  }

  .memory-echo-palette {
    top: max(150px, calc(env(safe-area-inset-top) + 140px));
    bottom: auto;
  }

  .discovery-guide,
  .quiet-moment .discovery-guide {
    bottom: max(100px, calc(env(safe-area-inset-bottom) + 92px));
  }

  .journey-map-panel {
    position: fixed;
    padding: 8px;
  }

  .journey-map-card {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 15px 48px 13px 18px;
  }

  .journey-map-card h2 {
    font-size: 28px;
  }

  .journey-map-card:not(.game-help-card) > p:not(.eyebrow),
  .journey-map-card:not(.game-help-card) > small {
    display: none;
  }

  .journey-constellation {
    display: grid;
    height: auto;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    margin-top: 9px;
  }

  .journey-constellation svg {
    display: none;
  }

  .journey-star {
    position: relative;
    top: auto;
    left: auto;
    min-width: 0;
    min-height: 44px;
    grid-template-columns: 22px minmax(0, 1fr);
    justify-items: start;
    gap: 6px;
    padding: 5px 7px;
    border: 1px solid rgba(183, 239, 238, 0.1);
    border-radius: 12px;
    text-align: left;
    transform: none;
  }

  .journey-star:not(:disabled) {
    border-color: hsla(var(--journey-hue, 157), 76%, 78%, 0.28);
    background: hsla(var(--journey-hue, 157), 60%, 54%, 0.055);
    box-shadow: inset 3px 0 0 hsla(var(--journey-hue, 157), 84%, 74%, 0.38);
  }

  .journey-star.is-current {
    box-shadow:
      inset 4px 0 0 rgba(255, 224, 164, 0.74),
      0 0 18px hsla(var(--journey-hue, 157), 82%, 68%, 0.1);
  }

  .journey-star-light {
    width: 22px;
    height: 22px;
  }

  .journey-map-preview {
    min-height: 48px;
    margin: 8px auto 0;
    padding: 7px 10px;
  }

  .journey-map-preview-light {
    width: 30px;
    height: 30px;
  }
}

@media (min-width: 760px) and (max-width: 900px) and (min-height: 651px) {
  .sound-button {
    width: 44px;
    height: 44px;
  }
}

@media (min-width: 760px) and (max-width: 900px) {
  .journey-map-close-button {
    width: 44px;
    height: 44px;
  }
}

@media (forced-colors: active) {
  .sound-button,
  .primary-button,
  .linger-button,
  .quiet-button,
  .lumi-button,
  .chapter-button,
  .journey-map-close-button,
  .journey-star,
  .journey-map-preview,
  .memory-button,
  .new-journey-button,
  .brand-profile,
  .player-profile-close,
  .player-profile-guest,
  .player-name-field input,
  .start-menu-button,
  .settings-menu-button,
  .menu-dialog-close,
  .menu-secondary-button,
  .menu-danger-button,
  .returning-actions-heading button,
  .memory-echo-palette button {
    border: 1px solid ButtonText;
    forced-color-adjust: auto;
  }

  .fullscreen-status.is-visible {
    border: 1px solid CanvasText;
    color: CanvasText;
    background: Canvas;
  }

  .journey-star.is-current .journey-star-light {
    outline: 3px double Highlight;
    outline-offset: 3px;
  }

  .journey-star.has-paused-journey .journey-star-light::before {
    border-color: Highlight;
    background: Canvas;
    box-shadow: none;
  }

  .memory-echo-palette button.is-current-place {
    outline: 3px double Highlight;
    outline-offset: 2px;
  }

  .journey-star:focus-visible,
  #world-canvas:focus-visible,
  .sound-button:focus-visible,
  .primary-button:focus-visible,
  .linger-button:focus-visible,
  .memory-button:focus-visible,
  .new-journey-button:focus-visible,
  .brand-profile:focus-visible,
  .player-profile-close:focus-visible,
  .player-profile-guest:focus-visible,
  .player-name-field input:focus-visible,
  .start-menu-button:focus-visible,
  .settings-menu-button:focus-visible,
  .menu-dialog-close:focus-visible,
  .menu-secondary-button:focus-visible,
  .menu-danger-button:focus-visible,
  .returning-actions-heading button:focus-visible,
  .journey-map-close-button:focus-visible,
  .memory-echo-palette button:focus-visible,
  .quiet-button:focus-visible,
  .lumi-button:focus-visible,
  .chapter-button:focus-visible {
    outline: 3px solid Highlight;
    outline-offset: 3px;
    box-shadow: none;
  }

  .journey-constellation line {
    stroke: GrayText;
    filter: none;
  }

  .journey-constellation line.is-awake {
    stroke: CanvasText;
  }

  .journey-constellation line.is-current-link {
    animation: none;
  }

  .journey-star:disabled {
    color: GrayText;
  }
}

/* V93 · The Hundred-Light Path keeps every action above the puzzle world. */
.path-entry-button {
  display: grid;
  width: 100%;
  min-height: 58px;
  margin-top: 8px;
  padding: 10px 14px;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(207, 225, 255, 0.2);
  border-radius: 16px;
  color: rgba(244, 249, 255, 0.92);
  background:
    linear-gradient(120deg, rgba(102, 132, 219, 0.16), rgba(175, 111, 224, 0.12)),
    rgba(7, 19, 42, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: left;
  cursor: pointer;
}

.path-entry-button[hidden],
.path-continue-button[hidden],
.chapter-path-panel[hidden],
.chapter-path-reward-panel[hidden],
.chapter-path-next[hidden] {
  display: none;
}

.path-entry-button small,
.path-entry-button strong {
  display: block;
}

.path-entry-button small {
  margin-bottom: 2px;
  color: rgba(202, 217, 247, 0.6);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

.path-entry-button strong {
  font-size: 0.82rem;
  font-weight: 600;
}

.path-entry-spark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #f2e8ff;
  background: rgba(174, 136, 240, 0.14);
  box-shadow: 0 0 22px rgba(171, 135, 240, 0.24);
}

.path-continue-button {
  margin-top: 8px;
}

/* Post-puzzle discoveries remain visible scenery, never a second task list. */
.discovery-guide {
  display: none !important;
}

.chapter-path-panel {
  position: fixed;
  z-index: 40;
  inset: 0;
  overflow: hidden;
  color: #f5f9ff;
  background: #071328;
  isolation: isolate;
}

/* Chapters 11–100 now paint on the same world surface as chapters 1–10.
   Only their interface remains an overlay; the former second canvas is kept
   as a non-JavaScript fallback and for isolated compatibility tests. */
.chapter-path-panel.uses-shared-world-canvas {
  background: transparent;
  pointer-events: none;
}

.chapter-path-panel.uses-shared-world-canvas #chapter-path-canvas {
  display: none;
}

.chapter-path-panel.uses-shared-world-canvas .chapter-path-reward-panel {
  pointer-events: auto;
}

body.chapter-path-open #intro-panel,
body.chapter-path-open #journey-map-panel,
body.chapter-path-open #memory-echo-palette,
body.chapter-path-open #discovery-guide,
body.chapter-path-open #completion-panel,
body.chapter-path-open .prototype-label {
  visibility: hidden;
  pointer-events: none;
}

/* Every chapter now uses the original Living Journey shell. The former
   chapter-path controls remain as a clipped state source for the shared HUD
   and native chapter picker, but they never form a second visible game UI. */
body.chapter-path-open .top-bar {
  z-index: 45;
  visibility: visible;
}

body.chapter-path-open #play-hud {
  z-index: 46;
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

body.chapter-path-reward-open .top-bar,
body.chapter-path-reward-open #play-hud {
  visibility: hidden;
  pointer-events: none;
}

body.chapter-path-open .player-profile-overlay,
body.chapter-path-open .menu-overlay {
  z-index: 60;
}

.chapter-path-panel.uses-shared-world-canvas .chapter-path-interface {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

body.chapter-path-open .top-bar .brand-mark {
  color: hsl(var(--living-world-hue, 157), 88%, 78%);
  border-color: hsla(var(--living-world-hue, 157), 78%, 76%, 0.34);
  background: hsla(var(--living-world-hue, 157), 78%, 62%, 0.1);
  box-shadow: 0 0 28px hsla(var(--living-world-accent, 188), 88%, 67%, 0.24);
}

body.chapter-path-open .journey-chip,
body.chapter-path-open .instruction-pill {
  border-color: hsla(var(--living-world-hue, 157), 72%, 80%, 0.22);
  background: linear-gradient(
    135deg,
    hsla(var(--living-world-hue, 157), 45%, 22%, 0.42),
    hsla(var(--living-world-accent, 188), 42%, 16%, 0.3)
  );
}

body.chapter-path-open .pulse-dot {
  background: hsl(var(--living-world-hue, 157), 82%, 77%);
  box-shadow: 0 0 0 0 hsla(var(--living-world-hue, 157), 88%, 72%, 0.5);
}

body.chapter-path-open .quiet-button,
body.chapter-path-open .lumi-button {
  border-color: hsla(var(--living-world-hue, 157), 68%, 80%, 0.24);
  color: hsla(var(--living-world-hue, 157), 82%, 92%, 0.9);
  background: hsla(var(--living-world-accent, 188), 54%, 28%, 0.09);
}

#chapter-path-canvas {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: none;
}

#chapter-path-canvas:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(227, 243, 255, 0.74);
}

.chapter-path-interface {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  pointer-events: none;
}

.chapter-path-topbar {
  display: grid;
  min-height: max(78px, calc(env(safe-area-inset-top) + 70px));
  padding:
    max(18px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    12px
    max(20px, env(safe-area-inset-left));
  grid-template-columns: minmax(170px, 1fr) minmax(220px, auto) minmax(220px, 1fr);
  gap: 20px;
  align-items: center;
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(3, 11, 27, 0.28), transparent);
  box-shadow: none;
  pointer-events: auto;
}

.chapter-path-brand {
  display: inline-flex;
  min-width: 0;
  gap: 12px;
  align-items: center;
  justify-self: start;
}

.chapter-path-brand .brand-copy,
.chapter-path-brand strong,
.chapter-path-brand small {
  display: block;
  min-width: 0;
}

.chapter-path-brand strong {
  color: rgba(245, 251, 255, 0.94);
  font-size: 0.83rem;
  letter-spacing: 0.18em;
}

body.chapter-path-open .chapter-path-brand .brand-mark {
  border-color: hsla(var(--path-accent, 278), 86%, 82%, 0.32);
  color: hsla(var(--path-accent, 278), 92%, 84%, 0.9);
  background: hsla(var(--path-hue, 214), 76%, 56%, 0.09);
  box-shadow: 0 0 26px hsla(var(--path-accent, 278), 88%, 68%, 0.2);
}

body.chapter-path-open .chapter-path-header-button[aria-pressed="true"] {
  border-color: hsla(var(--path-accent, 278), 86%, 82%, 0.34);
  color: hsla(var(--path-accent, 278), 94%, 86%, 0.94);
  background: hsla(var(--path-hue, 214), 76%, 56%, 0.1);
}

.chapter-path-brand small {
  overflow: hidden;
  margin-top: 2px;
  color: hsla(var(--path-accent, 278), 86%, 82%, 0.66);
  font-size: 0.57rem;
  letter-spacing: 0.13em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chapter-path-icon-button,
.chapter-path-action,
.chapter-path-select-label select {
  min-height: 44px;
  border: 1px solid rgba(220, 237, 255, 0.16);
  border-radius: 99px;
  color: rgba(243, 249, 255, 0.88);
  background: rgba(224, 239, 255, 0.06);
  font: inherit;
  cursor: pointer;
}

.chapter-path-icon-button,
.chapter-path-action {
  display: inline-flex;
  padding: 0 15px;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.chapter-path-icon-button {
  justify-self: end;
}

.chapter-path-heading {
  min-width: 0;
  padding: 8px 18px 9px;
  border: 1px solid rgba(220, 237, 255, 0.11);
  border-radius: 99px;
  background: rgba(7, 21, 36, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-align: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.chapter-path-heading small,
.chapter-path-heading h2 {
  display: block;
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chapter-path-heading small {
  color: hsla(var(--path-accent, 278), 86%, 82%, 0.66);
  font-size: 0.63rem;
  letter-spacing: 0.18em;
}

.chapter-path-heading .chapter-path-counter {
  color: rgba(222, 235, 252, 0.66);
}

.chapter-path-heading h2 {
  margin-top: 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.94rem, 1.6vw, 1.2rem);
  font-weight: 400;
}

.chapter-path-region-intro {
  position: fixed;
  z-index: 3;
  top: clamp(194px, 29vh, 252px);
  right: clamp(22px, 4vw, 48px);
  display: grid;
  width: min(360px, 34vw);
  padding: 16px 18px;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid hsla(var(--path-accent, 278), 82%, 82%, 0.24);
  border-radius: 20px;
  color: rgba(240, 248, 255, 0.88);
  background:
    linear-gradient(
      135deg,
      hsla(var(--path-hue, 214), 52%, 26%, 0.72),
      rgba(4, 13, 31, 0.82)
    );
  box-shadow:
    0 22px 54px rgba(0, 6, 22, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.chapter-path-region-intro[hidden] {
  display: none;
}

.chapter-path-region-intro.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.chapter-path-region-intro.is-finale {
  top: auto;
  right: auto;
  bottom: clamp(20px, 5vh, 48px);
  left: 50%;
  width: min(440px, calc(100vw - 32px));
  border-color: hsla(var(--path-accent, 278), 92%, 86%, 0.38);
  background:
    radial-gradient(
      circle at 12% 50%,
      hsla(var(--path-accent, 278), 86%, 72%, 0.16),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      hsla(var(--path-hue, 214), 54%, 24%, 0.82),
      rgba(4, 13, 31, 0.9)
    );
  transform: translate(-50%, 10px) scale(0.98);
}

.chapter-path-region-intro.is-finale.is-visible {
  transform: translate(-50%, 0) scale(1);
}

.chapter-path-region-intro.is-finale .chapter-path-region-mark {
  border-style: double;
  border-width: 3px;
}

.chapter-path-region-intro.is-finale .chapter-path-region-mark::after {
  position: absolute;
  inset: -8px;
  border: 1px solid hsla(var(--path-accent, 278), 88%, 84%, 0.24);
  border-radius: 50%;
  content: "";
}

.chapter-path-region-intro > span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.chapter-path-region-intro small {
  color: hsla(var(--path-accent, 278), 90%, 86%, 0.7);
  font-size: 0.57rem;
  font-style: normal;
  font-weight: 760;
  letter-spacing: 0.17em;
}

.chapter-path-region-intro strong {
  color: rgba(250, 252, 255, 0.96);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
}

.chapter-path-region-intro #chapter-path-region-arrival {
  color: rgba(232, 241, 252, 0.72);
  font-size: 0.72rem;
  line-height: 1.42;
}

.chapter-path-region-intro em {
  margin-top: 3px;
  color: hsla(var(--path-hue, 214), 92%, 88%, 0.84);
  font-size: 0.68rem;
  font-style: normal;
  line-height: 1.4;
}

.chapter-path-region-mark {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid hsla(var(--path-accent, 278), 86%, 84%, 0.28);
  border-radius: 50%;
  color: hsla(var(--path-accent, 278), 96%, 88%, 0.88);
  background: hsla(var(--path-hue, 214), 60%, 54%, 0.1);
  box-shadow:
    0 0 24px hsla(var(--path-hue, 214), 88%, 68%, 0.18),
    inset 0 0 18px hsla(var(--path-accent, 278), 72%, 62%, 0.08);
}

.chapter-path-region-mark i {
  position: absolute;
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.chapter-path-region-intro[data-region-kind="stars"] .chapter-path-region-mark i:nth-child(1) {
  transform: rotate(0deg);
}

.chapter-path-region-intro[data-region-kind="stars"] .chapter-path-region-mark i:nth-child(2) {
  transform: rotate(60deg);
}

.chapter-path-region-intro[data-region-kind="stars"] .chapter-path-region-mark i:nth-child(3) {
  transform: rotate(120deg);
}

.chapter-path-region-intro[data-region-kind="roots"] .chapter-path-region-mark i:nth-child(2),
.chapter-path-region-intro[data-region-kind="roots"] .chapter-path-region-mark i:nth-child(3),
.chapter-path-region-intro[data-region-kind="islands"] .chapter-path-region-mark i:nth-child(2),
.chapter-path-region-intro[data-region-kind="islands"] .chapter-path-region-mark i:nth-child(3) {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.chapter-path-region-intro[data-region-kind="roots"] .chapter-path-region-mark i:nth-child(2),
.chapter-path-region-intro[data-region-kind="islands"] .chapter-path-region-mark i:nth-child(2) {
  transform: translateX(-12px);
}

.chapter-path-region-intro[data-region-kind="roots"] .chapter-path-region-mark i:nth-child(3),
.chapter-path-region-intro[data-region-kind="islands"] .chapter-path-region-mark i:nth-child(3) {
  transform: translateX(12px);
}

.chapter-path-region-intro[data-region-kind="river"] .chapter-path-region-mark i,
.chapter-path-region-intro[data-region-kind="aurora"] .chapter-path-region-mark i {
  height: 9px;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  background: none;
}

.chapter-path-region-intro[data-region-kind="river"] .chapter-path-region-mark i:nth-child(1),
.chapter-path-region-intro[data-region-kind="aurora"] .chapter-path-region-mark i:nth-child(1) {
  transform: translateY(-8px);
}

.chapter-path-region-intro[data-region-kind="river"] .chapter-path-region-mark i:nth-child(3),
.chapter-path-region-intro[data-region-kind="aurora"] .chapter-path-region-mark i:nth-child(3) {
  transform: translateY(8px);
}

.chapter-path-region-intro[data-region-kind="dew"] .chapter-path-region-mark i:nth-child(1) {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 10%;
  background: none;
  transform: rotate(-45deg);
}

.chapter-path-region-intro[data-region-kind="dew"] .chapter-path-region-mark i:nth-child(2),
.chapter-path-region-intro[data-region-kind="dew"] .chapter-path-region-mark i:nth-child(3) {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  transform: translate(13px, -11px);
}

.chapter-path-region-intro[data-region-kind="dew"] .chapter-path-region-mark i:nth-child(3) {
  transform: translate(-13px, 11px);
}

.chapter-path-region-intro[data-region-kind="wind"] .chapter-path-region-mark i:nth-child(1) {
  transform: translateY(-8px) skewX(-28deg);
}

.chapter-path-region-intro[data-region-kind="wind"] .chapter-path-region-mark i:nth-child(2) {
  width: 30px;
  transform: skewX(-28deg);
}

.chapter-path-region-intro[data-region-kind="wind"] .chapter-path-region-mark i:nth-child(3) {
  transform: translateY(8px) skewX(-28deg);
}

.chapter-path-region-intro[data-region-kind="crystal"] .chapter-path-region-mark i {
  width: 16px;
  height: 16px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  background: none;
  transform: rotate(45deg);
}

.chapter-path-region-intro[data-region-kind="crystal"] .chapter-path-region-mark i:nth-child(2) {
  transform: rotate(45deg) scale(0.62);
}

.chapter-path-region-intro[data-region-kind="crystal"] .chapter-path-region-mark i:nth-child(3) {
  transform: rotate(45deg) scale(0.25);
}

.chapter-path-region-intro[data-region-kind="islands"] .chapter-path-region-mark i:nth-child(1) {
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    currentColor 0 3px,
    transparent 3px 6px
  );
}

.chapter-path-region-intro[data-region-kind="heart"] .chapter-path-region-mark i:nth-child(1) {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  transform: translateY(3px) rotate(45deg);
}

.chapter-path-region-intro[data-region-kind="heart"] .chapter-path-region-mark i:nth-child(2),
.chapter-path-region-intro[data-region-kind="heart"] .chapter-path-region-mark i:nth-child(3) {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  transform: translate(-5px, -4px);
}

.chapter-path-region-intro[data-region-kind="heart"] .chapter-path-region-mark i:nth-child(3) {
  transform: translate(5px, -4px);
}

.chapter-path-counter {
  color: rgba(222, 235, 252, 0.66);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.chapter-path-status {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  justify-self: end;
}

.chapter-path-header-button {
  flex: 0 0 auto;
  pointer-events: auto;
}

.chapter-path-menu-button {
  min-width: 88px;
}

.chapter-path-panel[data-journey-mode="journey"] .chapter-path-next {
  display: none;
}

.chapter-path-reward-button {
  display: inline-flex;
  min-width: 96px;
  min-height: 44px;
  padding: 5px 12px 5px 8px;
  gap: 8px;
  align-items: center;
  border: 1px solid hsla(152, 76%, 76%, 0.22);
  border-radius: 99px;
  color: rgba(237, 255, 248, 0.88);
  background:
    linear-gradient(135deg, rgba(126, 238, 196, 0.12), rgba(188, 158, 255, 0.08)),
    rgba(4, 15, 31, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: left;
  cursor: pointer;
}

.chapter-path-reward-button:hover {
  border-color: rgba(191, 255, 231, 0.42);
  background: rgba(151, 238, 207, 0.14);
}

.chapter-path-reward-button.is-new-reward {
  animation: reward-button-bloom 1.6s ease both;
}

@keyframes reward-button-bloom {
  0%,
  100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: scale(1);
  }
  36% {
    border-color: rgba(202, 255, 234, 0.72);
    box-shadow:
      0 0 0 5px rgba(155, 244, 211, 0.08),
      0 0 28px rgba(139, 244, 203, 0.32);
    transform: scale(1.055);
  }
}

.chapter-path-reward-button:focus-visible,
.chapter-path-reward-close:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

.chapter-path-reward-button > span:last-child,
.chapter-path-reward-button strong,
.chapter-path-reward-button small {
  display: block;
}

.chapter-path-reward-button strong {
  font-size: 0.7rem;
  line-height: 1.05;
}

.chapter-path-reward-button small {
  margin-top: 2px;
  color: rgba(219, 245, 236, 0.54);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chapter-path-reward-flower {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  color: #c9ffe9;
  background: rgba(155, 244, 211, 0.12);
  box-shadow: 0 0 18px rgba(131, 241, 199, 0.2);
  font-size: 1rem;
}

.chapter-path-controls {
  display: flex;
  width: fit-content;
  max-width: calc(100vw - 28px);
  min-height: 52px;
  margin: 10px auto 0;
  padding: 4px;
  gap: 5px;
  align-items: center;
  border: 1px solid rgba(221, 238, 255, 0.09);
  border-radius: 99px;
  background: rgba(4, 14, 32, 0.66);
  box-shadow: 0 14px 32px rgba(0, 6, 20, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
}

.chapter-path-action:hover,
.chapter-path-icon-button:hover,
.chapter-path-select-label select:hover {
  border-color: rgba(232, 245, 255, 0.34);
  background: rgba(226, 241, 255, 0.11);
}

.chapter-path-action[data-confirming="true"] {
  border-color: hsla(var(--path-accent, 278), 86%, 82%, 0.56);
  background: hsla(var(--path-accent, 278), 64%, 58%, 0.18);
  outline: 2px dashed hsla(var(--path-accent, 278), 92%, 90%, 0.82);
  outline-offset: 2px;
}

.chapter-path-action:disabled {
  opacity: 0.38;
  cursor: default;
}

.chapter-path-select-label select {
  min-width: 154px;
  padding: 0 38px 0 14px;
  color-scheme: dark;
}

.chapter-path-next {
  border-color: hsla(var(--path-hue, 214), 80%, 78%, 0.38);
  background: hsla(var(--path-hue, 214), 64%, 55%, 0.18);
}

.chapter-path-message {
  display: flex;
  width: fit-content;
  max-width: min(560px, calc(100vw - 32px));
  min-height: 44px;
  margin: 9px auto 0;
  padding: 8px 16px;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(224, 240, 255, 0.08);
  border-radius: 18px;
  color: rgba(231, 241, 255, 0.72);
  background: rgba(4, 13, 31, 0.5);
  box-shadow: 0 12px 28px rgba(0, 6, 20, 0.12);
  font-size: 0.76rem;
  pointer-events: none;
}

.chapter-path-message > span:last-child {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.chapter-path-message strong {
  color: rgba(247, 251, 255, 0.92);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.chapter-path-message-light {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: hsl(var(--path-hue, 214), 88%, 76%);
  box-shadow: 0 0 16px hsla(var(--path-hue, 214), 88%, 70%, 0.84);
}

.chapter-path-objectives-shell {
  width: min(760px, calc(100vw - 24px));
  margin: 6px auto 0;
  pointer-events: none;
}

.chapter-path-objectives {
  display: flex;
  gap: 6px;
  align-items: stretch;
  justify-content: center;
}

.chapter-path-objective {
  display: grid;
  min-width: 84px;
  max-width: 184px;
  min-height: 38px;
  flex: 1 1 136px;
  padding: 6px 9px;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  border: 1px solid rgba(223, 237, 255, 0.08);
  border-radius: 13px;
  color: rgba(224, 236, 249, 0.58);
  background: rgba(4, 13, 31, 0.42);
  box-shadow: 0 8px 20px rgba(0, 5, 18, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.chapter-path-objective.is-contact {
  border-color: rgba(255, 219, 157, 0.24);
  color: rgba(255, 238, 207, 0.78);
  background: rgba(184, 126, 42, 0.08);
}

.chapter-path-objective.is-complete {
  border-color: rgba(167, 255, 219, 0.28);
  color: rgba(220, 255, 241, 0.9);
  background: rgba(80, 203, 155, 0.09);
}

.chapter-path-objective.has-fresh-change {
  animation: chapter-path-objective-response 1.45s ease-out both;
}

@keyframes chapter-path-objective-response {
  0% {
    filter: brightness(1.28);
    box-shadow:
      inset 0 0 0 1px hsla(var(--path-accent, 278), 88%, 84%, 0.28),
      0 0 20px hsla(var(--path-accent, 278), 82%, 68%, 0.2);
  }
  100% {
    filter: brightness(1);
    box-shadow: 0 8px 20px rgba(0, 5, 18, 0.1);
  }
}

.chapter-path-discovery-objective.is-contact {
  border-color: hsla(var(--path-accent, 278), 86%, 80%, 0.34);
  color: hsla(var(--path-accent, 278), 88%, 92%, 0.9);
  background: hsla(var(--path-hue, 214), 68%, 54%, 0.12);
}

.chapter-path-discovery-objective.is-contact .chapter-path-objective-light {
  background: hsl(var(--path-accent, 278), 92%, 80%);
  box-shadow: 0 0 14px hsla(var(--path-accent, 278), 92%, 72%, 0.62);
}

.chapter-path-panel[data-discovery-stage="landmark"] .chapter-path-message,
.chapter-path-panel[data-discovery-stage="companion"] .chapter-path-message {
  border-color: hsla(var(--path-accent, 278), 82%, 82%, 0.18);
  background:
    linear-gradient(90deg, hsla(var(--path-hue, 214), 72%, 52%, 0.08), transparent),
    rgba(4, 13, 31, 0.58);
}

.chapter-path-panel[data-discovery-stage="landmark"] .chapter-path-message-light,
.chapter-path-panel[data-discovery-stage="companion"] .chapter-path-message-light {
  animation: chapter-path-discovery-breath 2.8s ease-in-out infinite;
}

.chapter-path-panel[data-discovery-stage="complete"] .chapter-path-message {
  border-color: rgba(167, 255, 219, 0.28);
  color: rgba(234, 255, 246, 0.88);
  background:
    linear-gradient(90deg, hsla(var(--path-hue, 214), 72%, 52%, 0.12), hsla(var(--path-accent, 278), 72%, 56%, 0.1)),
    rgba(4, 13, 31, 0.62);
}

@keyframes chapter-path-discovery-breath {
  0%,
  100% {
    opacity: 0.66;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

.chapter-path-objective-light {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(195, 215, 236, 0.3);
  box-shadow: 0 0 10px rgba(179, 205, 232, 0.16);
}

.chapter-path-objective.is-contact .chapter-path-objective-light {
  background: #ffdca0;
  box-shadow: 0 0 12px rgba(255, 196, 101, 0.44);
}

.chapter-path-objective.is-complete .chapter-path-objective-light {
  background: #a9ffe0;
  box-shadow: 0 0 13px rgba(127, 255, 203, 0.54);
}

.chapter-path-objective small,
.chapter-path-objective strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chapter-path-objective small {
  color: rgba(211, 228, 244, 0.46);
  font-size: 0.5rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.chapter-path-objective strong {
  margin-top: 1px;
  font-size: 0.63rem;
  font-weight: 650;
}

.chapter-path-objective-tuning {
  display: flex;
  height: 6px;
  margin-top: 4px;
  gap: 3px;
  align-items: center;
}

.chapter-path-objective-tuning i {
  width: 12px;
  max-width: 24px;
  height: 4px;
  flex: 1 1 12px;
  border-radius: 99px;
  color: rgba(192, 211, 231, 0.2);
  background: currentColor;
  box-shadow: 0 0 0 rgba(169, 255, 224, 0);
  transition:
    color 320ms ease,
    box-shadow 320ms ease;
}

.chapter-path-objective-tuning i[data-kind="source"] {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
}

.chapter-path-objective-tuning i[data-kind="colour"] {
  border-radius: 0;
  background: repeating-linear-gradient(
    to bottom,
    currentColor 0 1px,
    transparent 1px 2px
  );
}

.chapter-path-objective-tuning i[data-kind="tone"] {
  border-radius: 1px;
  background: repeating-linear-gradient(
    to right,
    currentColor 0 2px,
    transparent 2px 4px
  );
}

.chapter-path-objective-tuning i[data-kind="sequence"] {
  border-radius: 0;
  background: radial-gradient(
    circle,
    currentColor 0 1.5px,
    transparent 1.7px
  ) center / 5px 5px repeat-x;
}

.chapter-path-objective-tuning i.is-met {
  color: rgba(169, 255, 224, 0.82);
  box-shadow: 0 0 7px rgba(127, 255, 203, 0.42);
}

.chapter-path-objective-tuning i.is-fresh-change {
  animation: chapter-path-relationship-response 1.45s ease-out both;
}

@keyframes chapter-path-relationship-response {
  0% {
    filter: brightness(1.65);
    box-shadow: 0 0 11px currentColor;
  }
  100% {
    filter: brightness(1);
  }
}

.chapter-path-awakening {
  display: flex;
  width: fit-content;
  max-width: min(560px, calc(100vw - 24px));
  min-height: 32px;
  margin: 5px auto 0;
  padding: 5px 12px;
  gap: 9px;
  align-items: center;
  border: 1px solid rgba(205, 231, 255, 0.08);
  border-radius: 99px;
  color: rgba(222, 238, 250, 0.7);
  background: rgba(4, 13, 31, 0.4);
  box-shadow: 0 8px 20px rgba(0, 5, 18, 0.08);
  pointer-events: none;
}

.chapter-path-awakening-lights {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.chapter-path-awakening-lights i {
  width: 6px;
  height: 6px;
  border: 1px solid rgba(205, 225, 243, 0.24);
  border-radius: 50%;
  background: rgba(179, 202, 225, 0.12);
  transition:
    background 360ms ease,
    box-shadow 360ms ease,
    transform 360ms ease;
}

.chapter-path-awakening-lights i.is-awake {
  border-color: hsla(var(--path-accent, 278), 86%, 86%, 0.7);
  background: hsl(var(--path-accent, 278), 92%, 78%);
  box-shadow: 0 0 12px hsla(var(--path-accent, 278), 92%, 72%, 0.58);
  transform: scale(1.14);
}

.chapter-path-awakening small,
.chapter-path-awakening strong {
  display: block;
}

.chapter-path-awakening small {
  color: hsla(var(--path-accent, 278), 78%, 82%, 0.54);
  font-size: 0.47rem;
  letter-spacing: 0.12em;
}

.chapter-path-awakening strong {
  overflow: hidden;
  max-width: 470px;
  margin-top: 1px;
  font-size: 0.58rem;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chapter-path-panel.is-arc-finale .chapter-path-awakening {
  border-color: hsla(var(--path-accent, 278), 86%, 82%, 0.2);
  background:
    linear-gradient(90deg, hsla(var(--path-hue, 214), 76%, 56%, 0.08), hsla(var(--path-accent, 278), 76%, 56%, 0.1)),
    rgba(4, 13, 31, 0.46);
}

.chapter-path-panel.is-arc-finale .chapter-path-heading small::after {
  margin-left: 8px;
  color: hsla(var(--path-accent, 278), 92%, 84%, 0.72);
  content: "◇ WERELDPOORT";
}

.chapter-path-reward-panel {
  position: absolute;
  z-index: 6;
  inset: 0;
  display: grid;
  padding:
    max(18px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
  place-items: center;
  background:
    radial-gradient(circle at 50% 16%, rgba(134, 247, 206, 0.12), transparent 34%),
    rgba(2, 8, 20, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.chapter-path-reward-card {
  width: min(940px, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(201, 246, 231, 0.17);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(20, 48, 57, 0.9), rgba(15, 19, 47, 0.94)),
    #0a1828;
  box-shadow:
    0 30px 90px rgba(0, 3, 14, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  scrollbar-width: thin;
}

.chapter-path-reward-header {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.chapter-path-reward-header small,
.chapter-path-reward-header h3,
.chapter-path-reward-hero p,
.chapter-path-crown-reward p {
  margin: 0;
}

.chapter-path-reward-header small,
.chapter-path-reward-hero small {
  color: rgba(194, 255, 232, 0.58);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
}

.chapter-path-reward-header h3 {
  margin-top: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 400;
}

.chapter-path-reward-close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid rgba(220, 244, 238, 0.18);
  border-radius: 50%;
  color: rgba(241, 255, 251, 0.84);
  background: rgba(224, 246, 241, 0.06);
  font-size: 1.4rem;
  cursor: pointer;
}

.chapter-path-reward-hero {
  display: grid;
  margin-top: 18px;
  padding: 15px 18px;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(188, 244, 226, 0.1);
  border-radius: 20px;
  background: rgba(136, 225, 194, 0.055);
}

.chapter-path-reward-hero p {
  margin-top: 6px;
  color: rgba(235, 251, 246, 0.76);
  font-size: 0.82rem;
  line-height: 1.5;
}

.chapter-path-reward-lumi {
  position: relative;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 50%;
  color: #f3fff9;
  background: radial-gradient(circle, rgba(201, 255, 232, 0.24), transparent 68%);
}

.chapter-path-reward-lumi::before {
  position: absolute;
  z-index: 1;
  inset: 1px;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    hsla(158, 92%, 82%, 0.92) 0%,
    hsla(210, 92%, 84%, 0.92) var(--crown-quarter, 0%),
    hsla(278, 88%, 84%, 0.92) var(--crown-half, 0%),
    hsla(42, 94%, 78%, 0.92) var(--crown-three-quarter, 0%),
    hsla(158, 92%, 82%, 0.92) var(--crown-progress, 0%),
    transparent var(--crown-progress, 0%),
    transparent 100%
  );
  content: "";
  filter: drop-shadow(0 0 5px rgba(191, 237, 255, 0.28));
  opacity: 0.22;
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 3px),
    #000 calc(100% - 2px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 3px),
    #000 calc(100% - 2px)
  );
  transform: rotate(-8deg) scale(0.94);
  transition: opacity 500ms ease, transform 500ms ease;
}

.chapter-path-reward-lumi.is-crown-growing::before {
  filter: drop-shadow(0 0 7px rgba(191, 237, 255, 0.52));
  opacity: 0.9;
  transform: rotate(-8deg) scale(1);
}

.reward-lumi-body {
  position: relative;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 46px;
  place-items: center;
  border-radius: 48% 48% 43% 43%;
  color: rgba(71, 125, 106, 0.78);
  background: #ddfff1;
  box-shadow: 0 0 24px rgba(180, 255, 224, 0.44);
}

.reward-lumi-crown {
  position: absolute;
  z-index: 3;
  top: 4px;
  width: 50px;
  height: 24px;
  opacity: 0.22;
  background: conic-gradient(
    from 0deg,
    #a9ffe4,
    #b7d6ff,
    #e2b9ff,
    #ffe3a0,
    #a9ffe4
  );
  clip-path: polygon(0 70%, 12% 16%, 31% 56%, 50% 0, 69% 56%, 88% 16%, 100% 70%, 84% 100%, 16% 100%);
  filter: drop-shadow(0 0 8px rgba(201, 255, 234, 0.6));
  transform: translateY(-7px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.chapter-path-reward-lumi.is-crowned .reward-lumi-crown {
  opacity: 1;
  transform: translateY(-10px);
}

.chapter-path-reward-lumi[data-crown-stage="first-arc"] .reward-lumi-crown {
  opacity: 0.48;
  transform: translateY(-8px);
}

.chapter-path-reward-lumi[data-crown-stage="inner-weave"] .reward-lumi-crown {
  opacity: 0.65;
  transform: translateY(-8.5px);
}

.chapter-path-reward-lumi[data-crown-stage="almost-complete"] .reward-lumi-crown {
  opacity: 0.82;
  transform: translateY(-9px);
}

.chapter-path-reward-grid {
  display: grid;
  margin-top: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.reward-world-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid hsla(var(--reward-hue), 65%, 76%, 0.1);
  border-radius: 18px;
  background: hsla(var(--reward-hue), 42%, 42%, 0.045);
  opacity: 0.62;
}

.reward-world-card.is-growing {
  opacity: 0.82;
}

.reward-world-card.is-complete {
  border-color: hsla(var(--reward-hue), 78%, 78%, 0.3);
  background: hsla(var(--reward-hue), 58%, 48%, 0.11);
  box-shadow: inset 0 1px 0 hsla(var(--reward-hue), 90%, 88%, 0.08);
  opacity: 1;
}

.reward-world-card.is-recent-memory {
  border-color: hsla(var(--selected-memory-hue, var(--reward-hue)), 88%, 84%, 0.48);
  box-shadow:
    inset 0 0 0 1px hsla(var(--selected-memory-hue, var(--reward-hue)), 78%, 76%, 0.12),
    0 0 18px hsla(var(--selected-memory-hue, var(--reward-hue)), 72%, 62%, 0.12);
}

.reward-world-card-top {
  display: flex;
  gap: 9px;
  align-items: center;
}

.reward-world-bloom {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 50%;
  color: hsla(var(--bloom-heart-hue, var(--reward-hue)), 92%, 88%, 0.9);
  background:
    radial-gradient(ellipse at 50% 7%, hsla(var(--reward-hue), 90%, 74%, 0.76) 0 16%, transparent 18%),
    radial-gradient(ellipse at 91% 31%, hsla(var(--reward-hue), 84%, 68%, 0.68) 0 15%, transparent 17%),
    radial-gradient(ellipse at 84% 80%, hsla(var(--reward-hue), 86%, 72%, 0.66) 0 15%, transparent 17%),
    radial-gradient(ellipse at 16% 80%, hsla(var(--reward-hue), 86%, 72%, 0.66) 0 15%, transparent 17%),
    radial-gradient(ellipse at 9% 31%, hsla(var(--reward-hue), 84%, 68%, 0.68) 0 15%, transparent 17%),
    radial-gradient(circle, hsla(var(--reward-hue), 94%, 86%, 0.86) 0 13%, transparent 15%);
  filter: saturate(0.45);
  font-size: 1.05rem;
  text-shadow: 0 0 10px hsla(var(--bloom-heart-hue, var(--reward-hue)), 92%, 76%, 0.58);
  opacity: calc(0.22 + var(--reward-progress) * 0.078);
  transform: rotate(-5deg) scale(0.76);
  transition:
    filter 450ms ease,
    opacity 450ms ease,
    transform 550ms ease;
}

.reward-world-card[data-growth-stage="budding"] .reward-world-bloom {
  filter: saturate(0.62);
  transform: rotate(-3deg) scale(0.84);
}

.reward-world-card[data-growth-stage="unfurling"] .reward-world-bloom {
  filter: saturate(0.8);
  transform: rotate(0deg) scale(0.92);
}

.reward-world-card[data-growth-stage="near-bloom"] .reward-world-bloom {
  filter: saturate(0.96);
  transform: rotate(2deg) scale(1);
}

.reward-world-card.is-complete .reward-world-bloom {
  filter: saturate(1.1);
  box-shadow: 0 0 22px hsla(var(--reward-hue), 80%, 66%, 0.34);
  transform: rotate(0deg) scale(1.05);
}

.reward-world-card h4,
.reward-world-card p {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
}

.reward-world-card h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  font-weight: 400;
  white-space: nowrap;
}

.reward-world-card p {
  margin-top: 4px;
  color: rgba(224, 242, 238, 0.5);
  font-size: 0.62rem;
  white-space: nowrap;
}

.reward-world-memories {
  display: grid;
  margin-top: 9px;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 2px;
}

.reward-world-memory {
  display: grid;
  min-width: 0;
  height: 15px;
  place-items: center;
  border-radius: 50%;
  color: hsla(var(--memory-hue), 62%, 78%, 0.26);
  background: hsla(var(--memory-hue), 54%, 58%, 0.035);
  font-size: 0.56rem;
  line-height: 1;
  opacity: 0.5;
  transform: scale(0.78);
  transition:
    color 380ms ease,
    opacity 380ms ease,
    transform 380ms ease;
}

.reward-world-memory.is-awake {
  color: hsla(var(--memory-hue), 94%, 88%, 0.94);
  background: hsla(var(--memory-hue), 72%, 66%, 0.12);
  box-shadow: 0 0 8px hsla(var(--memory-hue), 88%, 68%, 0.3);
  opacity: 1;
  transform: scale(1);
}

.reward-world-meter {
  height: 4px;
  overflow: hidden;
  margin-top: 8px;
  border-radius: 99px;
  background: rgba(225, 247, 241, 0.08);
}

.reward-world-meter span {
  display: block;
  width: calc(var(--reward-progress) * 10%);
  height: 100%;
  border-radius: inherit;
  background: hsl(var(--reward-hue), 78%, 74%);
  box-shadow: 0 0 9px hsla(var(--reward-hue), 88%, 70%, 0.5);
}

.reward-world-card .reward-world-replay-preview {
  min-height: 3.75em;
  margin-top: 8px;
  color: hsla(var(--selected-memory-hue, var(--reward-hue)), 78%, 84%, 0.76);
  font-size: 0.62rem;
  line-height: 1.25;
  white-space: normal;
}

.reward-world-card.is-recent-memory .reward-world-replay-preview {
  color: hsla(var(--selected-memory-hue, var(--reward-hue)), 92%, 90%, 0.96);
}

.reward-world-replay-controls {
  display: grid;
  margin-top: 9px;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 6px;
}

.reward-world-replay-select,
.reward-world-replay {
  width: 100%;
  min-height: 44px;
  padding: 7px 9px;
  border: 1px solid hsla(var(--reward-hue), 76%, 82%, 0.22);
  border-radius: 12px;
  color: rgba(239, 250, 247, 0.82);
  background: hsla(var(--reward-hue), 54%, 58%, 0.09);
  font: inherit;
  font-size: 0.62rem;
  line-height: 1.25;
  cursor: pointer;
}

.reward-world-replay-select {
  min-width: 0;
  padding-right: 4px;
  color-scheme: dark;
  text-overflow: ellipsis;
}

.reward-world-replay-select:hover,
.reward-world-replay:hover {
  border-color: hsla(var(--reward-hue), 86%, 86%, 0.46);
  background: hsla(var(--reward-hue), 62%, 62%, 0.16);
}

.reward-world-replay-select:focus-visible,
.reward-world-replay:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

.chapter-path-crown-reward {
  display: flex;
  margin-top: 14px;
  padding: 12px 15px;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(222, 237, 255, 0.1);
  border-radius: 18px;
  color: rgba(226, 239, 249, 0.62);
  background: rgba(172, 190, 225, 0.05);
}

.chapter-path-crown-reward.is-unlocked {
  border-color: rgba(217, 198, 255, 0.34);
  color: rgba(249, 244, 255, 0.94);
  background: linear-gradient(100deg, rgba(140, 242, 204, 0.1), rgba(195, 154, 255, 0.13));
  box-shadow: 0 0 30px rgba(187, 154, 255, 0.1);
}

.chapter-path-crown-reward.is-growing {
  border-color: rgba(190, 226, 255, 0.22);
  color: rgba(239, 248, 255, 0.86);
  background: linear-gradient(
    100deg,
    rgba(140, 242, 204, 0.075),
    rgba(150, 190, 255, 0.08),
    rgba(195, 154, 255, 0.075)
  );
}

.chapter-path-crown-reward[data-crown-stage="almost-complete"] {
  border-color: rgba(216, 203, 255, 0.3);
  box-shadow: 0 0 24px rgba(187, 154, 255, 0.075);
}

.reward-crown-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(207, 191, 255, 0.1);
  font-size: 1.1rem;
}

.chapter-path-crown-reward.is-growing .reward-crown-mark {
  color: rgba(243, 250, 255, 0.96);
  background: conic-gradient(
    from -30deg,
    rgba(159, 255, 220, 0.2),
    rgba(174, 207, 255, 0.18),
    rgba(221, 183, 255, 0.2),
    rgba(255, 229, 161, 0.18),
    rgba(159, 255, 220, 0.2)
  );
  box-shadow: 0 0 16px rgba(190, 225, 255, 0.12);
}

.chapter-path-crown-reward strong {
  font-size: 0.78rem;
}

.chapter-path-crown-reward p {
  margin-top: 3px;
  font-size: 0.68rem;
}

@media (max-width: 759px) {
  .path-entry-button {
    min-height: 64px;
  }

  .chapter-path-topbar {
    min-height: max(62px, calc(env(safe-area-inset-top) + 56px));
    padding:
      max(8px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      7px
      max(10px, env(safe-area-inset-left));
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
  }

  .chapter-path-brand {
    display: none;
  }

  .chapter-path-fullscreen,
  #chapter-path-fullscreen {
    display: none;
  }

  .chapter-path-icon-button {
    min-width: 44px;
    padding: 0 10px;
  }

  .chapter-path-menu-button {
    min-width: 44px;
  }

  .chapter-path-reward-button {
    min-width: 44px;
    width: 44px;
    padding: 5px;
    justify-content: center;
  }

  .chapter-path-reward-button > span:last-child {
    display: none;
  }

  .chapter-path-icon-button span:last-child {
    display: none;
  }

  .chapter-path-heading h2 {
    font-size: 0.96rem;
  }

  .chapter-path-heading small {
    font-size: 0.55rem;
    letter-spacing: 0.11em;
  }

  .chapter-path-region-intro {
    top: auto;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
    width: auto;
    padding: 11px 13px;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    border-radius: 16px;
  }

  .chapter-path-region-mark {
    width: 38px;
    height: 38px;
  }

  .chapter-path-region-intro strong {
    font-size: 0.85rem;
  }

  .chapter-path-region-intro #chapter-path-region-arrival {
    font-size: 0.64rem;
  }

  .chapter-path-region-intro em {
    font-size: 0.62rem;
  }

  .chapter-path-region-intro.is-finale,
  .chapter-path-region-intro.is-finale.is-visible {
    right: max(12px, env(safe-area-inset-right));
    left: max(12px, env(safe-area-inset-left));
    width: auto;
    transform: translateY(0) scale(1);
  }

  .chapter-path-status {
    gap: 5px;
  }

  .chapter-path-counter {
    width: 54px;
    font-size: 0.58rem;
    line-height: 1.25;
    text-align: right;
    white-space: normal;
  }

  .chapter-path-reward-button {
    min-width: 48px;
    min-height: 44px;
    padding: 5px;
    justify-content: center;
  }

  .chapter-path-reward-button > span:last-child {
    display: none;
  }

  .chapter-path-reward-flower {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .chapter-path-controls {
    display: grid;
    width: calc(100vw - 16px);
    max-width: none;
    margin-top: 7px;
    grid-template-columns: 44px minmax(104px, 1fr) repeat(3, 44px);
    overflow: visible;
    border-radius: 17px;
  }

  .chapter-path-action {
    min-width: 44px;
    padding: 0;
    white-space: nowrap;
  }

  .chapter-path-action span:not([aria-hidden="true"]) {
    display: none;
  }

  .chapter-path-select-label {
    min-width: 0;
  }

  .chapter-path-select-label select {
    width: 100%;
    min-width: 0;
  }

  .chapter-path-next {
    width: 100%;
    min-height: 44px;
    grid-column: 1 / -1;
  }

  .chapter-path-message {
    min-height: 40px;
    margin-top: 6px;
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 0.68rem;
  }

  .chapter-path-message > span:last-child {
    display: block;
  }

  .chapter-path-message strong {
    display: block;
    margin-bottom: 1px;
    font-size: 0.62rem;
    white-space: normal;
  }

  .chapter-path-objectives-shell {
    width: calc(100vw - 16px);
    margin-top: 4px;
  }

  .chapter-path-objectives {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .chapter-path-objective {
    min-width: 0;
    max-width: none;
    min-height: 40px;
    padding: 5px 6px;
    grid-template-columns: 6px minmax(0, 1fr);
    gap: 4px;
    border-radius: 11px;
  }

  .chapter-path-objective:last-child:nth-child(odd) {
    width: calc(50% - 2px);
    grid-column: 1 / -1;
    justify-self: center;
  }

  .chapter-path-objective-light {
    width: 6px;
    height: 6px;
  }

  .chapter-path-objective small {
    font-size: 0.44rem;
    letter-spacing: 0.035em;
  }

  .chapter-path-objective strong {
    font-size: 0.56rem;
  }

  .chapter-path-objective-tuning {
    height: 6px;
    margin-top: 3px;
    gap: 3px;
  }

  .chapter-path-objective-tuning i {
    min-width: 7px;
    height: 4px;
  }

  .chapter-path-awakening {
    max-width: calc(100vw - 16px);
    min-height: 28px;
    margin-top: 4px;
    padding: 4px 9px;
    gap: 7px;
  }

  .chapter-path-awakening small {
    font-size: 0.41rem;
    letter-spacing: 0.08em;
  }

  .chapter-path-awakening strong {
    max-width: calc(100vw - 82px);
    font-size: 0.51rem;
  }

  .chapter-path-reward-panel {
    padding:
      max(8px, env(safe-area-inset-top))
      max(8px, env(safe-area-inset-right))
      max(8px, env(safe-area-inset-bottom))
      max(8px, env(safe-area-inset-left));
  }

  .chapter-path-reward-card {
    padding: 16px 12px;
    border-radius: 22px;
  }

  .chapter-path-reward-hero {
    margin-top: 12px;
    padding: 11px;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
  }

  .chapter-path-reward-lumi {
    width: 56px;
    height: 56px;
  }

  .chapter-path-reward-hero small {
    letter-spacing: 0.09em;
  }

  .chapter-path-reward-hero p {
    font-size: 0.72rem;
  }

  .chapter-path-reward-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .reward-world-card {
    padding: 9px;
  }

  .reward-world-bloom {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .reward-world-replay-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .reward-world-replay-select,
  .reward-world-replay {
    min-height: 48px;
    font-size: 0.66rem;
  }
}

@media (max-width: 379px) {
  .chapter-path-reward-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .reward-world-card {
    padding: 11px;
  }
}

@media (max-height: 539px) and (max-width: 759px) {
  .game-shell {
    min-height: 100dvh;
  }

  .top-bar {
    padding-top: max(8px, env(safe-area-inset-top));
  }

  .play-hud {
    top: max(51px, calc(env(safe-area-inset-top) + 43px));
    row-gap: 4px;
  }

  .chapter-path-topbar {
    min-height: max(52px, calc(env(safe-area-inset-top) + 48px));
    padding-top: max(4px, env(safe-area-inset-top));
    padding-bottom: 4px;
  }

  .chapter-path-controls {
    min-height: 44px;
    margin-top: 3px;
  }

  .chapter-path-message {
    min-height: 32px;
    margin-top: 3px;
    padding-block: 3px;
    font-size: 0.62rem;
  }

  .chapter-path-objectives-shell {
    margin-top: 2px;
  }

  .chapter-path-objective {
    min-height: 32px;
  }

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

  .chapter-path-region-intro,
  .chapter-path-region-intro.is-finale,
  .chapter-path-region-intro.is-finale.is-visible {
    right: 10px;
    bottom: 10px;
    left: auto;
    width: min(280px, 42vw);
  }
}

@media (max-height: 650px) and (min-width: 760px) {
  .chapter-path-topbar {
    min-height: max(54px, calc(env(safe-area-inset-top) + 50px));
    padding-top: max(6px, env(safe-area-inset-top));
    padding-bottom: 6px;
  }

  .chapter-path-controls {
    min-height: 48px;
    margin-top: 5px;
  }

  .chapter-path-message {
    min-height: 36px;
    margin-top: 5px;
    padding-block: 4px;
  }

  .chapter-path-region-intro {
    top: auto;
    right: 14px;
    bottom: 14px;
    width: min(330px, 42vw);
    padding: 11px 13px;
  }

  .chapter-path-region-intro.is-finale,
  .chapter-path-region-intro.is-finale.is-visible {
    right: 14px;
    left: auto;
    width: min(400px, 50vw);
    transform: translateY(0) scale(1);
  }
}

@media (forced-colors: active) {
  .quiet-button[data-confirming="true"],
  .chapter-path-action[data-confirming="true"] {
    outline: 2px dashed Highlight;
    outline-offset: 2px;
  }

  .reward-world-card.is-recent-memory {
    border: 3px double Highlight;
  }

  .chapter-path-region-intro {
    border: 1px solid CanvasText;
    color: CanvasText;
    background: Canvas;
    box-shadow: none;
  }

  .chapter-path-region-mark {
    border: 1px solid CanvasText;
    color: CanvasText;
    background: Canvas;
    box-shadow: none;
  }

  .chapter-path-region-intro.is-finale .chapter-path-region-mark::after {
    border-color: CanvasText;
  }

  .chapter-path-objective-tuning i {
    color: GrayText;
    forced-color-adjust: none;
  }

  .chapter-path-objective-tuning i.is-met {
    color: Highlight;
    box-shadow: none;
  }

  .chapter-path-objective.has-fresh-change,
  .chapter-path-objective-tuning i.is-fresh-change {
    outline: 2px solid Highlight;
    outline-offset: 1px;
  }

  .reward-world-card.is-recent-memory {
    border: 3px double Highlight;
  }

  .path-entry-button,
  .chapter-path-icon-button,
  .chapter-path-action,
  .chapter-path-reward-button,
  .chapter-path-reward-close,
  .chapter-path-select-label select {
    border: 1px solid ButtonText;
    forced-color-adjust: auto;
  }

  #chapter-path-canvas:focus-visible,
  .path-entry-button:focus-visible,
  .chapter-path-icon-button:focus-visible,
  .chapter-path-action:focus-visible,
  .chapter-path-reward-button:focus-visible,
  .chapter-path-reward-close:focus-visible,
  .reward-world-replay-select:focus-visible,
  .reward-world-replay:focus-visible,
  .chapter-path-select-label select:focus-visible {
    outline: 3px solid Highlight;
    outline-offset: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .chapter-path-objective.has-fresh-change,
  .chapter-path-objective-tuning i.is-fresh-change {
    animation: none;
    outline: 1px solid hsla(var(--path-accent, 278), 88%, 84%, 0.46);
    outline-offset: 1px;
  }
}
