:root {
  color-scheme: dark;
  --ink: #10213d;
  --deep: #121043;
  --paper: #fff8e8;
  --lilac: #bfa9ff;
  --sky: #80e4ff;
  --mint: #a9ffd9;
  --gold: #ffe47c;
  --pink: #ff9fcb;
  --border: rgba(255, 255, 255, 0.42);
  --glass: rgba(14, 24, 69, 0.52);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  touch-action: none;
}

body {
  min-width: 320px;
  height: 100dvh;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  color: var(--paper);
  background:
    radial-gradient(circle at 16% 0%, rgba(118, 206, 255, 0.34), transparent 31rem),
    radial-gradient(circle at 90% 100%, rgba(214, 114, 255, 0.24), transparent 38rem),
    linear-gradient(145deg, #0c1141 0%, #191260 50%, #32105d 100%);
  font-family: var(--sans);
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #fff7a4;
  outline-offset: 4px;
}

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

.app-shell {
  width: min(100%, 1840px);
  height: 100%;
  margin: 0 auto;
  padding:
    max(clamp(12px, 2.2vw, 36px), env(safe-area-inset-top))
    max(clamp(12px, 2.2vw, 36px), env(safe-area-inset-right))
    max(clamp(12px, 2.2vw, 36px), env(safe-area-inset-bottom))
    max(clamp(12px, 2.2vw, 36px), env(safe-area-inset-left));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(10px, 1.4vw, 18px);
}

.topbar {
  min-height: 52px;
  padding: 0 clamp(4px, 0.8vw, 12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.brand > span:last-child {
  display: grid;
  line-height: 0.78;
}

.brand strong {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.7vw, 1.42rem);
  font-weight: 700;
}

.brand small {
  margin-top: 5px;
  color: #c4eaff;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.31em;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  width: 33px;
  height: 35px;
  filter: drop-shadow(0 0 12px rgba(196, 241, 255, 0.9));
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50% 50% 52% 48%;
  background: radial-gradient(circle at 35% 32%, #fffef8 0 14%, #95edff 30%, #8376ff 62%, #e783ff 100%);
  box-shadow: 0 0 15px #96e8ff;
}

.brand-mark i {
  position: absolute;
  width: 10px;
  height: 17px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(160deg, #fff7bf, #fc9dca 70%);
  transform-origin: 2px 16px;
}

.brand-mark i:nth-child(1) {
  left: 0;
  bottom: 2px;
  transform: rotate(-41deg);
}

.brand-mark i:nth-child(2) {
  right: 0;
  bottom: 2px;
  transform: rotate(46deg) scaleX(-1);
  background: linear-gradient(160deg, #e4fbff, #8bbdff 72%);
}

.brand-mark i:nth-child(3) {
  left: 12px;
  top: -1px;
  height: 14px;
  transform: rotate(2deg);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: #f8fbff;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.icon-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.icon-button[aria-pressed="false"] .sound-on {
  opacity: 0.35;
  text-decoration: line-through;
}

.game-card {
  position: relative;
  width: auto;
  height: min(56.25vw, calc(100dvh - 138px));
  max-width: 100%;
  aspect-ratio: 16 / 9;
  justify-self: center;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(244, 255, 255, 0.5);
  border-radius: clamp(18px, 2.2vw, 30px);
  background: #3e84c7;
  box-shadow:
    0 35px 90px rgba(0, 0, 36, 0.52),
    0 0 0 6px rgba(255, 255, 255, 0.055),
    inset 0 0 120px rgba(0, 10, 55, 0.23);
}

.game-card::before,
.game-card::after {
  position: absolute;
  z-index: 5;
  content: "";
  pointer-events: none;
}

.game-card::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(19, 12, 77, 0.22), transparent 9%, transparent 91%, rgba(19, 12, 77, 0.22)),
    linear-gradient(0deg, rgba(9, 11, 55, 0.3), transparent 12%);
  mix-blend-mode: multiply;
}

.game-card::after {
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.1), inset 0 0 90px rgba(6, 4, 45, 0.31);
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

.canvas-ui {
  position: absolute;
  z-index: 7;
  inset: 0;
  pointer-events: none;
}

.hud {
  position: absolute;
  top: clamp(14px, 2.3vw, 30px);
  left: clamp(14px, 2.5vw, 34px);
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(290px, 29vw);
  padding: 8px 13px 8px 7px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  background: linear-gradient(112deg, rgba(17, 25, 74, 0.76), rgba(65, 42, 125, 0.37));
  box-shadow: 0 8px 24px rgba(10, 3, 53, 0.18), inset 0 1px rgba(255, 255, 255, 0.19);
  backdrop-filter: blur(8px);
}

.hero-portrait {
  position: relative;
  flex: 0 0 49px;
  width: 49px;
  height: 49px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.66);
  border-radius: 50%;
  background: linear-gradient(145deg, #8ee6ed 0%, #826bd8 48%, #2e2375 100%);
  box-shadow: 0 0 18px rgba(165, 235, 255, 0.62);
}

.portrait-halo {
  position: absolute;
  width: 33px;
  height: 20px;
  left: 8px;
  top: 2px;
  border: 2px solid #ffedb8;
  border-bottom: 0;
  border-radius: 50%;
  opacity: 0.7;
}

.portrait-face {
  position: absolute;
  left: 17px;
  top: 12px;
  width: 16px;
  height: 19px;
  border-radius: 45% 50% 47% 49%;
  background: #ffd8b6;
  box-shadow: -4px -5px 0 1px #573a83, 2px -7px 0 0 #503778;
}

.portrait-cloak {
  position: absolute;
  left: 10px;
  bottom: -8px;
  width: 31px;
  height: 29px;
  border-radius: 50% 50% 20% 20%;
  background: linear-gradient(130deg, #ffe982, #f777c0 45%, #7168e8);
}

.vitals {
  flex: 1;
  min-width: 0;
}

.vitals-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: clamp(0.6rem, 0.78vw, 0.74rem);
  font-weight: 800;
  line-height: 1.2;
}

.vitals-name {
  color: #fff5d6;
  font-family: var(--serif);
  font-size: clamp(0.78rem, 1.05vw, 0.92rem);
}

.shimmer-row {
  margin-top: 5px;
  color: #d2edff;
  font-size: clamp(0.5rem, 0.67vw, 0.62rem);
  letter-spacing: 0.05em;
}

.meter {
  position: relative;
  height: 6px;
  margin-top: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(7, 11, 51, 0.7);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.38);
}

.meter > span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transition: width 180ms ease;
}

.health-meter > span {
  background: linear-gradient(90deg, #ff7f96, #ffb88a 50%, #ffe3a0);
  box-shadow: 0 0 10px #ff8297;
}

.light-meter > span {
  background: linear-gradient(90deg, #77d9ff, #b0fbff 52%, #fff8ad);
  box-shadow: 0 0 10px #7eeaff;
}

.quest-card {
  position: absolute;
  top: clamp(14px, 2.3vw, 30px);
  right: clamp(14px, 2.5vw, 34px);
  width: min(356px, 35vw);
  padding: 13px 16px 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  background: linear-gradient(115deg, rgba(43, 32, 100, 0.73), rgba(100, 51, 128, 0.35));
  box-shadow: 0 8px 24px rgba(10, 3, 53, 0.18), inset 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.quest-eyebrow,
.eyebrow {
  display: block;
  color: #d6f6ff;
  font-size: clamp(0.5rem, 0.65vw, 0.63rem);
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.quest-card strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #fff8dc;
  font-family: var(--serif);
  font-size: clamp(0.78rem, 1.13vw, 1.04rem);
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crystal-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  color: #e5f5ff;
  font-size: clamp(0.55rem, 0.7vw, 0.67rem);
  font-weight: 800;
}

.crystal-label {
  color: #d7d0ff;
}

.crystal-pips {
  display: flex;
  gap: 5px;
}

.crystal-pips i {
  display: block;
  width: 10px;
  height: 14px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 50% 50% 45% 45%;
  background: rgba(196, 207, 255, 0.22);
  transform: rotate(45deg);
  transition: background 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}

.crystal-pips i.active {
  border-color: #fff7c7;
  background: linear-gradient(140deg, #abf5ff, #a997ff 52%, #ff95d1);
  box-shadow: 0 0 12px #99e9ff;
  transform: rotate(45deg) scale(1.14);
}


.story-toast {
  position: absolute;
  left: 50%;
  top: clamp(14px, 2.3vw, 30px);
  bottom: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(530px, 54vw);
  padding: 11px 17px;
  border: 1px solid rgba(255, 255, 255, 0.39);
  border-radius: 16px;
  background: rgba(19, 18, 72, 0.68);
  box-shadow: 0 11px 30px rgba(8, 4, 54, 0.28), inset 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -17px);
  transition: opacity 330ms ease, transform 330ms ease;
}

.story-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.story-toast p {
  margin: 0;
  color: #f5f6ff;
  font-size: clamp(0.62rem, 0.86vw, 0.8rem);
  font-weight: 700;
  line-height: 1.35;
}

.toast-star {
  color: #ffef9e;
  font-size: 1.22rem;
  text-shadow: 0 0 13px #ffeb9b;
}

.scene-panel {
  position: absolute;
  z-index: 9;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 48px 24px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 39%, rgba(130, 165, 255, 0.31), transparent 34%),
    linear-gradient(110deg, rgba(11, 13, 61, 0.82), rgba(65, 25, 107, 0.67));
  backdrop-filter: blur(7px);
}

.scene-panel::before,
.scene-panel::after {
  position: absolute;
  z-index: -1;
  content: "";
  width: 40vw;
  height: 40vw;
  max-width: 600px;
  max-height: 600px;
  border: 1px solid rgba(205, 243, 255, 0.25);
  border-radius: 50%;
}

.scene-panel::before {
  top: -28vw;
  left: -9vw;
  box-shadow: 0 0 80px #8acfff, inset 0 0 80px rgba(121, 186, 255, 0.22);
}

.scene-panel::after {
  right: -15vw;
  bottom: -32vw;
  box-shadow: 0 0 100px #e184ff, inset 0 0 80px rgba(236, 157, 255, 0.18);
}

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

.scene-panel .eyebrow {
  margin: 0 0 13px;
  color: #d5f5ff;
  font-size: clamp(0.55rem, 0.8vw, 0.75rem);
}

.scene-panel h1,
.scene-panel h2 {
  margin: 0;
  color: #fff9e8;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5.2vw, 5.25rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-shadow: 0 5px 40px rgba(0, 0, 53, 0.4);
}

.scene-panel h2 {
  font-size: clamp(2rem, 4.4vw, 4.55rem);
}

.scene-panel em {
  color: #f7bfed;
  font-style: italic;
  text-shadow: 0 0 26px rgba(255, 176, 232, 0.48);
}

.panel-copy {
  width: min(510px, 90%);
  margin: 22px auto 26px;
  color: #edf4ff;
  font-size: clamp(0.79rem, 1.15vw, 1.04rem);
  font-weight: 600;
  line-height: 1.55;
}

.primary-button {
  min-width: 215px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 13px 17px 13px 23px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  color: #25205f;
  background: linear-gradient(105deg, #fff9ca, #c7f8ff 47%, #f6b4df);
  box-shadow: 0 8px 23px rgba(4, 5, 47, 0.33), 0 0 22px rgba(176, 239, 255, 0.42);
  cursor: pointer;
  font-size: clamp(0.73rem, 0.94vw, 0.9rem);
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.primary-button b {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #6256bd;
  box-shadow: 0 3px 8px rgba(50, 29, 118, 0.32);
  font-size: 1rem;
}

.primary-button:hover {
  filter: saturate(1.12) brightness(1.05);
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 12px 29px rgba(4, 5, 47, 0.38), 0 0 31px rgba(176, 239, 255, 0.56);
}

.text-button {
  margin-top: 13px;
  border: 0;
  color: #dceeff;
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.start-note {
  margin: 17px 0 0;
  color: rgba(231, 242, 255, 0.74);
  font-size: 0.64rem;
}

.flower-left,
.flower-right {
  position: absolute;
  color: #ffeeb4;
  font-size: clamp(4rem, 12vw, 10rem);
  opacity: 0.58;
  text-shadow: 0 0 35px #fff0af;
  animation: drift 6s ease-in-out infinite alternate;
}

.flower-left {
  top: 15%;
  left: 12%;
}

.flower-right {
  right: 11%;
  bottom: 16%;
  color: #cfdaff;
  animation-delay: -3s;
}

.pause-panel,
.complete-panel {
  background:
    radial-gradient(ellipse at 50% 42%, rgba(226, 152, 255, 0.23), transparent 31%),
    rgba(13, 11, 58, 0.78);
}

.touch-controls {
  position: absolute;
  z-index: 8;
  inset: auto 15px 16px;
  display: none;
  justify-content: space-between;
  pointer-events: none;
}

.touch-cluster {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.touch-cluster button {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #fff;
  background: rgba(25, 19, 83, 0.57);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 4px 14px rgba(6, 2, 41, 0.27);
  font-size: 1.35rem;
  font-weight: 900;
  touch-action: none;
  transition: transform 100ms ease, filter 100ms ease;
}

.touch-cluster button:active {
  filter: brightness(1.2);
  transform: scale(0.92);
}

.touch-action button:last-child {
  color: #34215d;
  background: linear-gradient(145deg, #fff1ae, #e5b9ff);
}

.controls-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px clamp(12px, 2vw, 26px);
  padding: 0 10px;
  color: rgba(223, 235, 255, 0.78);
  font-size: clamp(0.57rem, 0.76vw, 0.7rem);
  font-weight: 700;
}

.controls-bar span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.rotate-notice {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: none;
  place-content: center;
  justify-items: center;
  gap: 11px;
  padding: 28px;
  color: #fff8e7;
  background:
    radial-gradient(circle at 50% 38%, rgba(131, 217, 255, 0.32), transparent 30%),
    linear-gradient(150deg, #11134e, #421161);
  text-align: center;
}

.rotate-glyph {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 22px;
  color: #ffefaa;
  box-shadow: 0 0 28px rgba(185, 238, 255, 0.4);
  font-size: 2.2rem;
}

.rotate-notice strong {
  font-family: var(--serif);
  font-size: 1.65rem;
}

.rotate-notice p {
  max-width: 230px;
  margin: 0;
  color: #dceaff;
  font-size: 0.86rem;
  line-height: 1.45;
}

kbd {
  min-width: 17px;
  padding: 2px 4px;
  border: 1px solid rgba(219, 240, 255, 0.48);
  border-bottom-color: rgba(219, 240, 255, 0.25);
  border-radius: 4px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-family: var(--sans);
  font-size: 0.62rem;
  line-height: 1.15;
  text-align: center;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) rotate(-6deg);
  }
  to {
    transform: translate3d(12px, -18px, 0) rotate(8deg);
  }
}

@media (pointer: coarse) {
  .touch-controls {
    display: flex;
  }

  .controls-bar {
    display: none;
  }

  .game-card {
    height: min(56.25vw, calc(100dvh - 80px));
  }
}

@media (pointer: coarse) and (orientation: portrait) {
  .rotate-notice {
    display: grid;
  }
}

@media (pointer: coarse) and (orientation: landscape) and (max-height: 600px) {
  .app-shell {
    padding:
      max(4px, env(safe-area-inset-top))
      max(6px, env(safe-area-inset-right))
      max(4px, env(safe-area-inset-bottom))
      max(6px, env(safe-area-inset-left));
    gap: 4px;
  }

  .topbar {
    min-height: 28px;
  }

  .brand-mark {
    transform: scale(0.76);
    transform-origin: left center;
  }

  .brand > span:last-child {
    margin-left: -6px;
    transform: scale(0.82);
    transform-origin: left center;
  }

  .icon-button {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }

  .game-card {
    height: min(56.25vw, calc(100dvh - 42px));
  }

  .hud {
    top: 7px;
    left: 7px;
    width: 38%;
    padding: 4px 7px 4px 4px;
    gap: 5px;
    border-radius: 10px;
  }

  .hero-portrait {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .portrait-halo {
    transform: scale(0.6);
    transform-origin: 0 0;
  }

  .portrait-face {
    transform: scale(0.62);
    transform-origin: 0 0;
  }

  .portrait-cloak {
    transform: scale(0.62);
    transform-origin: 0 100%;
  }

  .vitals-row {
    font-size: 0.49rem;
  }

  .vitals-name {
    font-size: 0.65rem;
  }

  .shimmer-row,
  .light-meter {
    display: none;
  }

  .meter {
    height: 4px;
  }

  .quest-card {
    top: 7px;
    right: 7px;
    width: 42%;
    padding: 6px 8px;
    border-radius: 10px;
  }

  .quest-eyebrow {
    display: none;
  }

  .quest-card strong {
    margin: 0;
    font-size: 0.64rem;
    line-height: 1.08;
    white-space: nowrap;
  }

  .crystal-progress {
    gap: 5px;
    margin-top: 4px;
    font-size: 0.48rem;
  }

  .crystal-label {
    display: none;
  }

  .crystal-pips {
    gap: 3px;
  }

  .crystal-pips i {
    width: 7px;
    height: 10px;
  }

  .story-toast {
    top: 7px;
    max-width: 58vw;
    padding: 5px 8px;
    border-radius: 9px;
  }

  .story-toast p {
    font-size: 0.57rem;
  }

  .toast-star {
    font-size: 0.8rem;
  }

  .touch-controls {
    inset:
      auto
      max(7px, env(safe-area-inset-right))
      max(7px, env(safe-area-inset-bottom))
      max(7px, env(safe-area-inset-left));
    gap: 6px;
  }

  .touch-cluster {
    gap: 5px;
  }

  .touch-cluster button {
    width: 54px;
    height: 54px;
    font-size: 1.15rem;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 8px;
    gap: 8px;
  }

  .topbar {
    min-height: 40px;
  }

  .icon-button {
    width: 32px;
    height: 32px;
  }

  .game-card {
    width: auto;
    height: min(56.25vw, calc(100dvh - 80px));
    border-radius: 15px;
  }

  .hud {
    top: 9px;
    left: 9px;
    width: min(180px, 46vw);
    padding: 5px 8px 5px 4px;
    gap: 6px;
    border-radius: 12px;
  }

  .hero-portrait {
    flex-basis: 33px;
    width: 33px;
    height: 33px;
  }

  .portrait-halo {
    transform: scale(0.68);
    transform-origin: 0 0;
  }

  .portrait-face {
    transform: scale(0.7);
    transform-origin: 0 0;
  }

  .portrait-cloak {
    transform: scale(0.7);
    transform-origin: 0 100%;
  }

  .shimmer-row,
  .light-meter {
    display: none;
  }

  .quest-card {
    top: 9px;
    right: 9px;
    width: min(190px, 48vw);
    padding: 7px 9px;
    border-radius: 12px;
  }

  .quest-card strong {
    white-space: normal;
  }

  .crystal-progress {
    margin-top: 5px;
  }

  .crystal-label {
    display: none;
  }

  .story-toast {
    top: 9px;
    max-width: 76vw;
    padding: 7px 10px;
    border-radius: 10px;
  }

  .scene-panel {
    padding: 25px 15px;
  }

  .panel-copy {
    margin: 15px auto 18px;
  }

  .primary-button {
    min-width: 190px;
    padding: 11px 14px 11px 19px;
  }

  .start-note {
    margin-top: 10px;
  }
}

@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;
  }
}
