:root {
  color-scheme: light;
  --berry-950: oklch(25% 0.105 348);
  --berry-900: oklch(31% 0.13 348);
  --berry-800: oklch(39% 0.15 348);
  --berry-700: oklch(48% 0.17 348);
  --berry-500: oklch(62% 0.18 358);
  --rose-300: oklch(82% 0.09 7);
  --rose-150: oklch(92% 0.04 12);
  --ivory: oklch(97% 0.018 81);
  --ivory-deep: oklch(92% 0.035 78);
  --gold-500: oklch(78% 0.125 83);
  --gold-650: oklch(65% 0.125 76);
  --peacock: oklch(53% 0.105 190);
  --ink: oklch(28% 0.05 342);
  --ink-soft: oklch(46% 0.06 342);
  --diamond: oklch(91% 0.045 210);
  --paper-shadow: oklch(69% 0.055 66);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-toggle: cubic-bezier(0.65, 0, 0.35, 1);
  --font-display: "STKaiti", "KaiTi", "Songti SC", Georgia, serif;
  --font-body: "PingFang SC", "Microsoft YaHei", ui-rounded, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: oklch(91% 0.055 329);
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, oklch(62% 0.14 353) 0 2px, transparent 3px),
    radial-gradient(circle at 92% 82%, oklch(78% 0.12 82) 0 2px, transparent 3px),
    oklch(91% 0.055 329);
  background-size: 43px 43px, 67px 67px, auto;
  font-family: var(--font-body);
  font-size: 16px;
  font-kerning: normal;
}

button {
  color: inherit;
  font: inherit;
}

button:focus {
  outline: none;
}

button:focus-visible {
  outline: 3px solid var(--diamond);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
}

[hidden] {
  display: none !important;
}

.asset-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border: 2px solid var(--gold-500);
  border-radius: 6px;
  color: var(--ivory);
  background: var(--berry-900);
  font-weight: 800;
  transform: translateY(-150%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.game-shell {
  width: min(1580px, 100%);
  height: 100dvh;
  min-height: 620px;
  margin: 0 auto;
  overflow: hidden;
  border-right: 1px solid oklch(72% 0.08 75 / 0.35);
  border-left: 1px solid oklch(72% 0.08 75 / 0.35);
  background: var(--ivory);
  box-shadow: 0 0 56px oklch(14% 0.06 340 / 0.42);
}

.game-header {
  position: relative;
  z-index: 20;
  display: grid;
  height: 76px;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  padding: 0 clamp(16px, 2.6vw, 42px);
  color: var(--ivory);
  background: var(--berry-900);
  border-bottom: 3px solid var(--gold-500);
}

.game-header::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--gold-650) 0 18px, transparent 18px 28px);
  content: "";
  opacity: 0.7;
}

.royal-seal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.royal-seal > span {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border: 2px solid var(--gold-500);
  color: var(--gold-500);
  background: var(--berry-950);
  clip-path: polygon(50% 0, 89% 17%, 100% 58%, 74% 100%, 26% 100%, 0 58%, 11% 17%);
  font-family: Georgia, serif;
  font-size: 1.4rem;
}

.royal-seal div {
  display: grid;
}

.royal-seal small {
  color: var(--rose-300);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.royal-seal strong {
  font-family: var(--font-display);
  font-size: 1.36rem;
  letter-spacing: 0.1em;
}

.outfit-progress {
  display: flex;
  min-width: 290px;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.progress-label {
  color: var(--rose-300);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.progress-gems {
  display: flex;
  gap: 6px;
}

.progress-gems i {
  display: block;
  width: 16px;
  height: 19px;
  border: 2px solid var(--gold-650);
  background: var(--berry-950);
  clip-path: polygon(50% 0, 100% 28%, 83% 82%, 50% 100%, 17% 82%, 0 28%);
  transition: transform 240ms var(--ease-out), background-color 200ms linear;
}

.progress-gems i.is-filled {
  background: var(--gold-500);
  transform: translateY(-2px) rotate(8deg);
}

.outfit-progress > strong {
  min-width: 44px;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.quiet-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid oklch(76% 0.09 75 / 0.65);
  border-radius: 7px;
  color: var(--ivory);
  background: var(--berry-950);
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 140ms linear;
}

.quiet-button:hover {
  background: var(--berry-800);
  transform: translateY(-1px);
}

.quiet-button:active {
  transform: translateY(1px);
}

.quiet-button span {
  color: var(--gold-500);
  font-size: 1.05rem;
}

.quiet-button i {
  font-size: 0.73rem;
  font-style: normal;
  font-weight: 800;
}

.sound-button[data-enabled="false"] span {
  color: var(--rose-300);
  text-decoration: line-through;
}

.dressing-screen {
  display: grid;
  height: calc(100dvh - 76px);
  min-height: 544px;
  grid-template-columns: minmax(450px, 56%) minmax(430px, 44%);
}

.princess-stage {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  color: var(--ivory);
  background:
    radial-gradient(ellipse at 50% 46%, oklch(96% 0.055 24) 0, oklch(82% 0.1 349) 48%, transparent 49%),
    linear-gradient(90deg, oklch(49% 0.13 348) 0 8%, oklch(62% 0.15 350) 8% 12%, oklch(70% 0.13 350) 12% 88%, oklch(62% 0.15 350) 88% 92%, oklch(49% 0.13 348) 92%);
  isolation: isolate;
}

.princess-stage::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(114deg, transparent 0 46%, oklch(92% 0.07 65 / 0.17) 47% 49%, transparent 50%),
    linear-gradient(66deg, transparent 0 48%, oklch(92% 0.07 65 / 0.12) 49% 51%, transparent 52%);
  content: "";
}

.princess-stage::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  height: 12%;
  border-top: 4px solid var(--gold-650);
  background: repeating-linear-gradient(90deg, oklch(53% 0.12 350) 0 34px, oklch(63% 0.12 350) 34px 68px);
  content: "";
}

.palace-curtain {
  position: absolute;
  z-index: 5;
  top: 0;
  width: 25%;
  height: 82%;
  border-bottom: 5px solid var(--gold-650);
  background: repeating-linear-gradient(90deg, oklch(56% 0.16 350) 0 24px, oklch(69% 0.14 354) 24px 39px, oklch(49% 0.14 347) 39px 58px);
  filter: drop-shadow(0 12px 10px oklch(18% 0.08 346 / 0.38));
  pointer-events: none;
}

.palace-curtain--left {
  left: -7%;
  border-bottom-right-radius: 88% 20%;
  transform: rotate(2deg);
}

.palace-curtain--right {
  right: -7%;
  border-bottom-left-radius: 88% 20%;
  transform: rotate(-2deg);
}

.palace-curtain i {
  position: absolute;
  top: 29%;
  width: 56px;
  height: 22px;
  border: 5px solid var(--gold-500);
  border-radius: 50%;
}

.palace-curtain--left i { right: 0; }
.palace-curtain--right i { left: 0; }

.palace-curtain b {
  position: absolute;
  top: 31%;
  width: 38px;
  height: 5px;
  background: var(--gold-500);
}

.palace-curtain--left b { right: -29px; transform: rotate(-15deg); }
.palace-curtain--right b { left: -29px; transform: rotate(15deg); }

.hanging-gem {
  position: absolute;
  z-index: 4;
  top: 5%;
  color: var(--gold-500);
  font-size: 1.3rem;
  opacity: 0.8;
}

.hanging-gem::before {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 1px;
  height: 80px;
  background: var(--gold-650);
  content: "";
}

.hanging-gem--one { left: 28%; }
.hanging-gem--two { right: 27%; top: 11%; font-size: 1rem; }

.mirror-frame {
  position: relative;
  z-index: 2;
  width: clamp(310px, 39vw, 440px);
  height: calc(100% - 102px);
  min-height: 490px;
  max-height: 690px;
  margin-top: -30px;
  overflow: hidden;
  border: clamp(7px, 0.8vw, 12px) solid var(--gold-500);
  border-radius: 49% 49% 8% 8% / 28% 28% 7% 7%;
  background:
    radial-gradient(ellipse at 50% 28%, oklch(97% 0.045 61) 0 20%, transparent 50%),
    linear-gradient(155deg, var(--rose-150), oklch(86% 0.055 16));
  box-shadow:
    inset 0 0 0 5px var(--berry-900),
    inset 0 0 32px oklch(55% 0.08 350 / 0.25),
    0 20px 0 -10px var(--berry-950),
    0 26px 30px oklch(18% 0.08 345 / 0.38);
}

.mirror-frame::before,
.mirror-frame::after {
  position: absolute;
  z-index: 3;
  top: 2.5%;
  width: 18px;
  height: 18px;
  border: 4px solid var(--berry-800);
  background: var(--gold-500);
  content: "";
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.mirror-frame::before { left: 18%; }
.mirror-frame::after { right: 18%; }

.mirror-shine {
  position: absolute;
  z-index: 0;
  top: 12%;
  left: 12%;
  width: 15%;
  height: 52%;
  border-radius: 50%;
  background: oklch(100% 0.015 70 / 0.36);
  transform: rotate(18deg);
  pointer-events: none;
}

.princess-avatar {
  position: absolute;
  z-index: 2;
  bottom: -1%;
  left: 50%;
  width: auto;
  height: 96%;
  max-width: 100%;
  overflow: visible;
  transform: translateX(-50%);
  transform-origin: 50% 88%;
}

.outfit-layer {
  opacity: 1;
  transform-origin: center;
}

.princess-stage.is-changing .outfit-layer {
  animation: outfit-arrive 420ms var(--ease-out) both;
}

.princess-stage.is-complete .princess-avatar {
  animation: royal-turn 900ms var(--ease-out) both;
}

.magic-burst {
  position: absolute;
  z-index: 5;
  top: 47%;
  left: 50%;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.magic-burst i {
  position: absolute;
  color: var(--gold-500);
  font-size: 1.2rem;
  font-style: normal;
  opacity: 0;
}

.is-changing .magic-burst i {
  animation: gem-burst 500ms var(--ease-out) var(--particle-delay) both;
}

.princess-speech {
  position: absolute;
  z-index: 8;
  top: clamp(82px, 13vh, 125px);
  right: clamp(18px, 4vw, 62px);
  display: flex;
  max-width: 190px;
  align-items: flex-start;
  gap: 7px;
  padding: 10px 14px;
  border: 2px solid var(--gold-650);
  border-radius: 18px 18px 18px 5px;
  color: var(--berry-900);
  background: var(--ivory);
  box-shadow: 4px 6px 0 var(--berry-950);
}

.princess-speech span {
  color: var(--gold-650);
}

.princess-speech p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.stage-plaque {
  position: absolute;
  z-index: 8;
  bottom: 18px;
  left: 50%;
  width: min(80%, 430px);
  margin: 0;
  padding: 9px 18px;
  border: 2px solid var(--gold-500);
  color: var(--ivory);
  background: var(--berry-950);
  font-size: 0.73rem;
  font-weight: 700;
  text-align: center;
  transform: translateX(-50%);
}

.stage-plaque span {
  margin-right: 8px;
  color: var(--gold-500);
  font-family: Georgia, serif;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

.wardrobe {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: clamp(18px, 2vw, 30px) clamp(18px, 2.3vw, 36px) clamp(16px, 2vw, 28px);
  overflow: hidden;
  border-left: 4px solid var(--gold-500);
  background:
    linear-gradient(90deg, transparent 0 97%, var(--rose-150) 97%),
    var(--ivory);
}

.wardrobe-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wardrobe-heading p {
  margin: 0 0 2px;
  color: var(--berry-700);
  font-size: 0.71rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.wardrobe-heading h1 {
  margin: 0;
  color: var(--berry-900);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.25vw, 2.65rem);
  line-height: 1.08;
}

.wardrobe-heading__jewel {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--gold-650);
  color: var(--berry-700);
  background: var(--rose-150);
  clip-path: polygon(50% 0, 94% 28%, 82% 81%, 50% 100%, 18% 81%, 6% 28%);
}

.princess-roster-wrap {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.princess-roster-label {
  color: var(--ink-soft);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.princess-roster {
  display: flex;
  gap: 6px;
  padding: 2px 3px 7px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--rose-300) transparent;
  scrollbar-width: thin;
}

.princess-choice {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 66px;
  flex: 0 0 clamp(108px, 24%, 132px);
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  padding: 6px;
  border: 1px solid var(--paper-shadow);
  border-radius: 14px 5px 14px 5px;
  background: oklch(98% 0.016 75);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms var(--ease-out), border-color 160ms linear, background-color 160ms linear;
  scroll-snap-align: start;
}

.princess-choice:hover {
  border-color: var(--princess-color);
  background: var(--rose-150);
  transform: translateY(-2px);
}

.princess-choice.is-active {
  border: 2px solid var(--princess-color);
  background: color-mix(in oklch, var(--princess-color) 11%, white);
  box-shadow: inset 0 -3px 0 color-mix(in oklch, var(--princess-color) 45%, transparent);
}

.princess-choice__portrait {
  display: grid;
  width: 34px;
  height: 40px;
  place-items: center;
  border-radius: 50% 50% 42% 42%;
  background: color-mix(in oklch, var(--princess-color) 18%, white);
  font-size: 1.15rem;
}

.princess-choice > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.princess-choice strong,
.princess-choice small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.princess-choice strong {
  color: var(--ink);
  font-size: 0.72rem;
}

.princess-choice small {
  color: var(--ink-soft);
  font-size: 0.55rem;
}

.princess-choice > i {
  position: absolute;
  top: 3px;
  right: 4px;
  min-width: 19px;
  padding: 2px 4px;
  border-radius: 999px;
  color: white;
  background: var(--princess-color);
  font-size: 0.52rem;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.princess-choice.is-complete > i {
  background: var(--peacock);
}

#princess-dress-up-game[data-princess-palette="jade"] .princess-stage {
  background: radial-gradient(ellipse at 50% 46%, #fffde9 0, #bceadd 49%, transparent 50%), linear-gradient(90deg, #4c817c 0 9%, #74b5a9 9% 12%, #9ad7c7 12% 88%, #74b5a9 88% 91%, #4c817c 91%);
}

#princess-dress-up-game[data-princess-palette="sun"] .princess-stage {
  background: radial-gradient(ellipse at 50% 46%, #fff8d8 0, #f5c58d 49%, transparent 50%), linear-gradient(90deg, #b8694d 0 9%, #df8b63 9% 12%, #efb070 12% 88%, #df8b63 88% 91%, #b8694d 91%);
}

#princess-dress-up-game[data-princess-palette="star"] .princess-stage {
  background: radial-gradient(ellipse at 50% 46%, #fff8ee 0, #c8caf2 49%, transparent 50%), linear-gradient(90deg, #59649c 0 9%, #7d88c5 9% 12%, #aeb4e7 12% 88%, #7d88c5 88% 91%, #59649c 91%);
}

.category-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(58px, 1fr));
  border-top: 1px solid var(--paper-shadow);
  border-bottom: 1px solid var(--paper-shadow);
}

.category-tab {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 64px;
  place-items: center;
  gap: 1px;
  padding: 6px 3px 7px;
  border: 0;
  border-right: 1px solid var(--paper-shadow);
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  transition: color 160ms linear, background-color 160ms linear, transform 160ms var(--ease-out);
}

.category-tab:last-child {
  border-right: 0;
}

.category-tab:hover {
  color: var(--berry-800);
  background: var(--rose-150);
}

.category-tab:active {
  transform: translateY(2px);
}

.category-tab::after {
  position: absolute;
  right: 18%;
  bottom: -2px;
  left: 18%;
  height: 4px;
  background: transparent;
  content: "";
}

.category-tab.is-active {
  color: var(--berry-900);
  background: var(--rose-150);
}

.category-tab.is-active::after {
  background: var(--berry-700);
}

.category-tab > span {
  color: var(--gold-650);
  font-family: Georgia, serif;
  font-size: 1.16rem;
  line-height: 1;
}

.category-tab strong {
  overflow: hidden;
  font-size: 0.74rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-check {
  position: absolute;
  top: 4px;
  right: 5px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  color: var(--ivory);
  background: var(--peacock);
  font-size: 0.63rem;
  font-style: normal;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 150ms linear, transform 200ms var(--ease-out);
}

.category-tab.has-selection .category-check {
  opacity: 1;
  transform: scale(1);
}

.wardrobe-section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wardrobe-section-heading > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.wardrobe-section-heading span {
  color: var(--berry-900);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
}

.wardrobe-section-heading small {
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 700;
}

.wardrobe-section-heading > i {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--paper-shadow), transparent);
}

.wardrobe-items {
  display: grid;
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 9px;
  padding: 2px 5px 8px 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--rose-300) transparent;
  scrollbar-width: thin;
}

.wardrobe-item {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 104px;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  overflow: hidden;
  border: 1px solid var(--paper-shadow);
  border-radius: 8px 2px 8px 2px;
  color: var(--ink);
  background: var(--ivory);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms linear, background-color 160ms linear, transform 180ms var(--ease-out), box-shadow 180ms linear;
  animation: item-enter 350ms var(--ease-out) calc(var(--item-index) * 35ms) both;
}

.wardrobe-item:hover {
  z-index: 1;
  border-color: var(--gold-650);
  background: var(--rose-150);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--ivory-deep);
}

.wardrobe-item:active {
  transform: translateY(1px);
  box-shadow: none;
}

.wardrobe-item.is-selected {
  border: 2px solid var(--berry-700);
  background: var(--rose-150);
  box-shadow: inset 0 0 0 2px var(--gold-500);
}

.wardrobe-item__art {
  position: relative;
  display: grid;
  width: 68px;
  height: 84px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--paper-shadow);
  border-radius: 46% 46% 10% 10%;
  background: oklch(94% 0.03 18);
}

.wardrobe-item__art::before {
  position: absolute;
  inset: 5px;
  border: 1px solid oklch(72% 0.07 70 / 0.55);
  border-radius: inherit;
  content: "";
}

.wardrobe-item__art svg {
  position: relative;
  z-index: 1;
  width: 94%;
  height: 94%;
  overflow: visible;
}

.wardrobe-item__gem {
  position: absolute;
  z-index: 2;
  right: 4px;
  bottom: 4px;
  width: 12px;
  height: 15px;
  border: 1px solid var(--gold-650);
  background: var(--diamond);
  clip-path: polygon(50% 0, 100% 30%, 80% 82%, 50% 100%, 20% 82%, 0 30%);
}

[data-gem-color="rose"] .wardrobe-item__gem { background: var(--berry-500); }
[data-gem-color="midnight"] .wardrobe-item__gem { background: oklch(46% 0.12 260); }
[data-gem-color="peacock"] .wardrobe-item__gem { background: var(--peacock); }
[data-gem-color="pearl"] .wardrobe-item__gem { background: var(--ivory); }
[data-gem-color="gold"] .wardrobe-item__gem { background: var(--gold-500); }
[data-gem-color="orchid"] .wardrobe-item__gem { background: oklch(59% 0.11 318); }

.wardrobe-item__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.wardrobe-item__copy strong {
  overflow: hidden;
  color: var(--berry-900);
  font-family: var(--font-display);
  font-size: 0.91rem;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wardrobe-item__copy small {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.67rem;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wardrobe-item__check {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: var(--ivory);
  background: var(--peacock);
  font-size: 0.7rem;
  font-weight: 900;
  opacity: 0;
  transform: scale(0.45);
  transition: opacity 140ms linear, transform 200ms var(--ease-out);
}

.wardrobe-item.is-selected .wardrobe-item__check {
  opacity: 1;
  transform: scale(1);
}

.departure-dock {
  display: grid;
  grid-template-columns: auto minmax(110px, 1fr) minmax(210px, 1.55fr);
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--paper-shadow);
}

.departure-dock__key {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--gold-650);
  background: var(--rose-150);
  clip-path: polygon(50% 0, 92% 24%, 92% 76%, 50% 100%, 8% 76%, 8% 24%);
  font-size: 1.15rem;
}

.departure-dock > div {
  display: grid;
}

.departure-dock small {
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 750;
}

.departure-dock > div strong {
  color: var(--berry-900);
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.go-out-button {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 16px;
  border: 2px solid var(--paper-shadow);
  border-radius: 4px;
  color: var(--ink-soft);
  background: var(--ivory-deep);
  transition: transform 180ms var(--ease-out), background-color 180ms linear, box-shadow 180ms linear;
}

.go-out-button strong {
  font-size: 0.78rem;
}

.go-out-button span,
.go-out-button i {
  font-style: normal;
}

.go-out-button.is-ready {
  border-color: var(--gold-500);
  color: var(--ivory);
  background: var(--berry-900);
  box-shadow: 0 5px 0 var(--gold-650);
  cursor: pointer;
}

.go-out-button.is-ready:hover {
  background: var(--berry-800);
  transform: translateY(-2px);
}

.go-out-button.is-ready:active {
  box-shadow: 0 2px 0 var(--gold-650);
  transform: translateY(2px);
}

/* Outing scene */
.outing-screen {
  height: calc(100dvh - 76px);
  min-height: 544px;
}

.outing-scene {
  --scene-sky: oklch(87% 0.085 24);
  --scene-ground: oklch(62% 0.12 145);
  position: relative;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(var(--scene-sky) 0 63%, var(--scene-ground) 63% 100%);
  isolation: isolate;
  transition: background-color 360ms linear;
}

.outing-scene::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 18%;
  background: oklch(43% 0.08 145 / 0.18);
  content: "";
  clip-path: polygon(0 50%, 14% 30%, 29% 58%, 48% 22%, 69% 48%, 84% 28%, 100% 50%, 100% 100%, 0 100%);
}

.outing-sky i {
  position: absolute;
  z-index: -2;
  top: 8%;
  right: 12%;
  width: 108px;
  height: 108px;
  border: 8px solid oklch(94% 0.06 71 / 0.32);
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 18px oklch(94% 0.06 71 / 0.16);
}

.outing-sky b {
  position: absolute;
  z-index: -1;
  top: 22%;
  left: 6%;
  width: 170px;
  height: 43px;
  border-radius: 50%;
  background: var(--ivory);
  opacity: 0.78;
}

.outing-sky b::before,
.outing-sky b::after {
  position: absolute;
  bottom: 4px;
  border-radius: 50%;
  background: inherit;
  content: "";
}

.outing-sky b::before { left: 25px; width: 67px; height: 67px; }
.outing-sky b::after { right: 24px; width: 48px; height: 48px; }

.outing-sky > span {
  position: absolute;
  top: 19%;
  right: 31%;
  color: var(--ivory);
  font-size: 1.7rem;
}

.scene-castle {
  position: absolute;
  z-index: -1;
  right: 8%;
  bottom: 31%;
  width: 300px;
  height: 250px;
  background: oklch(83% 0.045 18);
  box-shadow: inset 0 0 0 5px oklch(66% 0.07 10);
  clip-path: polygon(0 100%, 0 26%, 12% 26%, 12% 8%, 20% 0, 28% 8%, 28% 34%, 40% 34%, 40% 18%, 50% 7%, 60% 18%, 60% 34%, 72% 34%, 72% 8%, 80% 0, 88% 8%, 88% 26%, 100% 26%, 100% 100%);
}

.scene-castle::before,
.scene-castle::after,
.scene-castle i,
.scene-castle b,
.scene-castle span {
  position: absolute;
  border: 4px solid oklch(58% 0.09 348);
  border-radius: 50% 50% 2px 2px;
  background: var(--berry-800);
  content: "";
}

.scene-castle::before { left: 30px; bottom: 95px; width: 30px; height: 52px; }
.scene-castle::after { right: 30px; bottom: 95px; width: 30px; height: 52px; }
.scene-castle i { left: 130px; bottom: 0; width: 48px; height: 92px; }
.scene-castle b { left: 91px; bottom: 120px; width: 27px; height: 42px; }
.scene-castle span { right: 91px; bottom: 120px; width: 27px; height: 42px; }

.scene-garden {
  position: absolute;
  z-index: 1;
  right: 4%;
  bottom: 8%;
  left: 4%;
  height: 20%;
  pointer-events: none;
}

.scene-garden i {
  position: absolute;
  bottom: 0;
  width: 45px;
  height: 45px;
  border: 10px dotted var(--berry-500);
  border-radius: 50%;
}

.scene-garden i::after {
  position: absolute;
  top: 27px;
  left: 8px;
  width: 4px;
  height: 60px;
  background: oklch(48% 0.1 145);
  content: "";
}

.scene-garden i:nth-child(1) { left: 2%; bottom: 18%; }
.scene-garden i:nth-child(2) { left: 19%; transform: scale(.72); }
.scene-garden i:nth-child(3) { right: 20%; bottom: 10%; transform: scale(.9); }
.scene-garden i:nth-child(4) { right: 3%; bottom: 28%; transform: scale(.68); }
.scene-garden i:nth-child(5) { left: 43%; bottom: -8%; transform: scale(.58); }

.scene-lake,
.scene-ballroom,
.scene-adventure {
  display: none;
}

.outing-copy {
  position: absolute;
  z-index: 6;
  top: clamp(76px, 12%, 120px);
  left: clamp(28px, 6vw, 92px);
  max-width: 460px;
  color: var(--berry-950);
}

.outing-copy p {
  margin: 0 0 6px;
  color: var(--berry-700);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.outing-copy p i {
  font-style: normal;
}

.outing-copy h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.8vw, 4.8rem);
  line-height: 1;
  text-shadow: 0 3px 0 oklch(98% 0.02 75 / 0.55);
}

.outing-copy > span {
  display: block;
  max-width: 31em;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  font-weight: 700;
}

.back-button {
  position: absolute;
  z-index: 12;
  top: 24px;
  left: 24px;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid var(--gold-650);
  border-radius: 4px;
  color: var(--ivory);
  background: var(--berry-900);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.back-button:hover {
  background: var(--berry-800);
}

.outing-princess-wrap {
  position: absolute;
  z-index: 4;
  right: 22%;
  bottom: 2%;
  width: min(37vw, 430px);
  height: 84%;
}

.outing-princess {
  height: 100%;
  filter: drop-shadow(0 18px 10px oklch(25% 0.05 342 / 0.24));
}

.outing-screen.is-visible .outing-princess {
  animation: princess-arrive 720ms var(--ease-out) both;
}

.outing-spark {
  position: absolute;
  z-index: 8;
  color: var(--gold-500);
  animation: sparkle-breathe 1.9s linear infinite;
}

.outing-spark--one { top: 18%; left: 13%; font-size: 1.8rem; }
.outing-spark--two { top: 45%; right: 0; font-size: 1.2rem; animation-delay: -0.6s; }
.outing-spark--three { bottom: 18%; left: 5%; font-size: 1.4rem; animation-delay: -1.2s; }

.destination-picker {
  position: absolute;
  z-index: 10;
  right: 28px;
  bottom: 28px;
  display: grid;
  width: min(370px, 30vw);
  gap: 7px;
  padding: 16px;
  border: 3px solid var(--gold-500);
  border-radius: 7px 26px 7px 26px;
  background: var(--ivory);
  box-shadow: 8px 10px 0 oklch(34% 0.07 345 / 0.28);
}

.destination-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.destination-picker__title {
  display: grid;
  margin-bottom: 3px;
}

.destination-picker__title small {
  color: var(--berry-700);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.destination-picker__title strong {
  color: var(--berry-900);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.destination-button {
  display: grid;
  min-height: 48px;
  grid-template-columns: 30px 1fr;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid var(--paper-shadow);
  border-radius: 5px;
  color: var(--ink);
  background: var(--ivory);
  cursor: pointer;
  text-align: left;
  transition: transform 150ms var(--ease-out), border-color 150ms linear, background-color 150ms linear;
}

.destination-button:hover {
  border-color: var(--gold-650);
  transform: translateX(-3px);
}

.destination-button.is-selected {
  border: 2px solid var(--berry-700);
  color: var(--berry-900);
  background: var(--rose-150);
}

.destination-button span {
  color: var(--gold-650);
  font-family: Georgia, serif;
  font-size: 1.2rem;
  text-align: center;
}

.destination-button strong {
  font-size: 0.78rem;
}

.outing-reset-button {
  min-height: 44px;
  margin-top: 3px;
  border: 0;
  color: var(--berry-800);
  background: transparent;
  font-size: 0.7rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.outing-scene[data-destination="moon-ball"] {
  --scene-sky: oklch(79% 0.085 292);
  --scene-ground: oklch(67% 0.1 335);
}

.outing-scene[data-destination="moon-ball"] .outing-copy {
  color: oklch(32% 0.09 302);
}

.outing-scene[data-destination="moon-ball"] .outing-copy p,
.outing-scene[data-destination="moon-ball"] .outing-copy > span {
  color: oklch(40% 0.09 317);
}

.outing-scene[data-destination="moon-ball"] .outing-sky i {
  width: 88px;
  height: 88px;
  border: 0;
  background: var(--ivory-deep);
  box-shadow: 0 0 0 16px oklch(98% 0.04 70 / 0.34);
}

.outing-scene[data-destination="moon-ball"] .outing-sky b,
.outing-scene[data-destination="starlight-lake"] .outing-sky b {
  display: none;
}

.outing-scene[data-destination="moon-ball"] .outing-sky i::after {
  position: absolute;
  top: -9px;
  left: 21px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--scene-sky);
  content: "";
}

.outing-scene[data-destination="moon-ball"] .scene-garden {
  display: none;
}

.outing-scene[data-destination="moon-ball"] .scene-ballroom {
  position: absolute;
  z-index: -1;
  inset: 0;
  display: block;
  background:
    repeating-linear-gradient(90deg, transparent 0 13%, oklch(94% 0.07 68 / .48) 13% 13.5%),
    linear-gradient(transparent 0 63%, oklch(70% 0.075 342) 63%);
}

.scene-ballroom i {
  position: absolute;
  top: 4%;
  width: 5px;
  height: 30%;
  background: var(--gold-500);
}

.scene-ballroom i::after {
  position: absolute;
  bottom: -16px;
  left: -14px;
  width: 33px;
  height: 33px;
  border: 5px dotted var(--gold-500);
  border-radius: 50%;
  content: "";
}

.scene-ballroom i:nth-child(1) { left: 24%; }
.scene-ballroom i:nth-child(2) { left: 50%; height: 23%; }
.scene-ballroom i:nth-child(3) { right: 20%; }

.scene-ballroom b {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 37%;
  background: repeating-linear-gradient(135deg, oklch(67% 0.08 342) 0 34px, oklch(75% 0.085 342) 34px 68px);
  clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 100%);
}

.outing-scene[data-destination="starlight-lake"] {
  --scene-sky: oklch(76% 0.085 252);
  --scene-ground: oklch(64% 0.09 197);
}

.outing-scene[data-destination="starlight-lake"] .outing-copy {
  color: oklch(30% 0.085 252);
}

.outing-scene[data-destination="starlight-lake"] .outing-copy p,
.outing-scene[data-destination="starlight-lake"] .outing-copy > span {
  color: oklch(36% 0.08 232);
}

.outing-scene[data-destination="starlight-lake"] .outing-sky i {
  width: 74px;
  height: 74px;
  border: 0;
  background: var(--ivory-deep);
  box-shadow: 0 0 0 15px oklch(98% 0.04 70 / 0.36);
}

.outing-scene[data-destination="starlight-lake"] .scene-castle,
.outing-scene[data-destination="starlight-lake"] .scene-garden {
  display: none;
}

.outing-scene[data-destination="starlight-lake"] .scene-lake {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  height: 39%;
  overflow: hidden;
  border-top: 4px solid oklch(73% 0.08 205);
  background: repeating-linear-gradient(175deg, oklch(66% 0.1 220) 0 18px, oklch(73% 0.09 207) 18px 34px);
}

.scene-lake i,
.scene-lake b {
  position: absolute;
  top: 12%;
  left: 8%;
  width: 120px;
  height: 3px;
  background: var(--diamond);
  content: "";
  opacity: 0.6;
}

.scene-lake b { top: 44%; left: 65%; width: 160px; }

.outing-scene[data-destination="rainbow-meadow"] {
  --scene-sky: oklch(90% 0.07 225);
  --scene-ground: oklch(76% 0.13 137);
}

.outing-scene[data-destination="sunny-seaside"] {
  --scene-sky: oklch(91% 0.075 214);
  --scene-ground: oklch(86% 0.09 82);
}

.outing-scene[data-destination="crystal-palace"] {
  --scene-sky: oklch(92% 0.045 205);
  --scene-ground: oklch(83% 0.07 300);
}

.outing-scene[data-destination="lantern-fair"] {
  --scene-sky: oklch(87% 0.09 53);
  --scene-ground: oklch(72% 0.12 90);
}

.outing-scene[data-destination="cloud-tea"] {
  --scene-sky: oklch(92% 0.055 224);
  --scene-ground: oklch(91% 0.045 78);
}

.outing-scene[data-destination="rainbow-meadow"] .scene-castle,
.outing-scene[data-destination="sunny-seaside"] .scene-castle,
.outing-scene[data-destination="lantern-fair"] .scene-castle,
.outing-scene[data-destination="cloud-tea"] .scene-castle {
  display: none;
}

.outing-scene[data-destination="rainbow-meadow"] .scene-adventure,
.outing-scene[data-destination="sunny-seaside"] .scene-adventure,
.outing-scene[data-destination="crystal-palace"] .scene-adventure,
.outing-scene[data-destination="lantern-fair"] .scene-adventure,
.outing-scene[data-destination="cloud-tea"] .scene-adventure {
  position: absolute;
  z-index: -1;
  inset: 0;
  display: block;
}

.outing-scene[data-destination="rainbow-meadow"] .scene-adventure::before {
  position: absolute;
  right: 8%;
  bottom: 27%;
  width: 330px;
  height: 165px;
  border: 28px solid #f27893;
  border-right-color: #75c4ea;
  border-bottom: 0;
  border-left-color: #f4ca62;
  border-radius: 330px 330px 0 0;
  box-shadow: inset 0 16px 0 #72cfa2, 0 -16px 0 #a98be0;
  content: "";
}

.outing-scene[data-destination="rainbow-meadow"] .scene-adventure i {
  position: absolute;
  right: 13%;
  bottom: 16%;
  width: 12px;
  height: 150px;
  background: white;
  transform: rotate(8deg);
}

.outing-scene[data-destination="rainbow-meadow"] .scene-adventure i::before,
.outing-scene[data-destination="rainbow-meadow"] .scene-adventure i::after {
  position: absolute;
  top: -45px;
  left: -46px;
  width: 104px;
  height: 88px;
  background: #fff7da;
  content: "";
  clip-path: polygon(50% 48%, 0 0, 44% 50%, 0 100%, 50% 55%, 100% 100%, 57% 50%, 100% 0);
}

.outing-scene[data-destination="sunny-seaside"] .scene-adventure {
  bottom: 0;
  top: auto;
  height: 39%;
  border-top: 8px solid #fff9e8;
  background: repeating-linear-gradient(174deg, #67c8dc 0 22px, #8edee8 22px 44px);
}

.outing-scene[data-destination="sunny-seaside"] .scene-garden,
.outing-scene[data-destination="cloud-tea"] .scene-garden {
  display: none;
}

.outing-scene[data-destination="crystal-palace"] .scene-castle {
  background: #dffbff;
  box-shadow: inset 0 0 0 5px #90cddd, 0 0 28px #fff;
}

.outing-scene[data-destination="crystal-palace"] .scene-adventure::before,
.outing-scene[data-destination="crystal-palace"] .scene-adventure::after {
  position: absolute;
  bottom: 7%;
  width: 90px;
  height: 210px;
  background: linear-gradient(135deg, #eaffff, #a7dff0 48%, #d6c5fa);
  content: "";
  clip-path: polygon(50% 0, 100% 75%, 70% 100%, 20% 88%, 0 55%);
  opacity: .8;
}

.outing-scene[data-destination="crystal-palace"] .scene-adventure::before { left: 8%; transform: scale(.7) rotate(-9deg); }
.outing-scene[data-destination="crystal-palace"] .scene-adventure::after { right: 4%; transform: rotate(7deg); }

.outing-scene[data-destination="lantern-fair"] .scene-adventure {
  background: repeating-linear-gradient(90deg, transparent 0 11%, #aa5b3d22 11% 11.5%);
}

.outing-scene[data-destination="lantern-fair"] .scene-adventure i,
.outing-scene[data-destination="lantern-fair"] .scene-adventure b,
.outing-scene[data-destination="lantern-fair"] .scene-adventure span {
  position: absolute;
  top: 12%;
  width: 54px;
  height: 70px;
  border: 6px solid #a44e3f;
  border-radius: 45%;
  background: #f9b54d;
  box-shadow: 0 0 24px #ffed9c;
}

.outing-scene[data-destination="lantern-fair"] .scene-adventure i { left: 18%; }
.outing-scene[data-destination="lantern-fair"] .scene-adventure b { left: 46%; top: 6%; transform: scale(.75); }
.outing-scene[data-destination="lantern-fair"] .scene-adventure span { right: 14%; top: 18%; transform: scale(.88); }

.outing-scene[data-destination="cloud-tea"] .scene-adventure::before,
.outing-scene[data-destination="cloud-tea"] .scene-adventure::after {
  position: absolute;
  right: 8%;
  bottom: 18%;
  width: 360px;
  height: 125px;
  border-radius: 50%;
  background: white;
  box-shadow: -110px 20px 0 #fff, -45px -40px 0 #fff9fa;
  content: "";
}

.outing-scene[data-destination="cloud-tea"] .scene-adventure::after {
  right: 18%;
  bottom: 11%;
  width: 180px;
  height: 28px;
  border: 5px solid #be7f62;
  border-radius: 50%;
  background: #fff3d4;
  box-shadow: none;
}

@keyframes item-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes outfit-arrive {
  0% { opacity: 0.3; transform: translateY(-9px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes gem-burst {
  0% { opacity: 0; transform: rotate(var(--particle-angle)) translateX(8px) rotate(calc(var(--particle-angle) * -1)) scale(0.2); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--particle-angle)) translateX(var(--particle-distance)) rotate(calc(var(--particle-angle) * -1)) scale(1); }
}

@keyframes royal-turn {
  0% { transform: translateX(-50%) rotate(0); }
  42% { transform: translateX(-50%) rotate(-4deg) scale(1.025); }
  70% { transform: translateX(-50%) rotate(3deg) scale(1.025); }
  100% { transform: translateX(-50%) rotate(0) scale(1); }
}

@keyframes princess-arrive {
  from { opacity: 0; transform: translateX(-44%) translateY(25px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes sparkle-breathe {
  0%, 100% { opacity: 0.25; transform: scale(0.72) rotate(0); }
  50% { opacity: 1; transform: scale(1.08) rotate(22deg); }
}

@media (min-width: 1320px) and (min-height: 720px) {
  .wardrobe-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wardrobe-item {
    min-height: 126px;
    grid-template-columns: 1fr;
    place-items: center;
    gap: 3px;
    text-align: center;
  }

  .wardrobe-item__art {
    width: 82px;
    height: 83px;
  }

  .wardrobe-item__copy small {
    display: none;
  }
}

@media (max-width: 1120px) {
  .game-header {
    grid-template-columns: minmax(190px, 1fr) auto minmax(150px, 1fr);
  }

  .progress-label,
  .quiet-button i {
    display: none;
  }

  .outfit-progress {
    min-width: 190px;
  }

  .dressing-screen {
    grid-template-columns: minmax(390px, 51%) minmax(410px, 49%);
  }

  .princess-speech {
    right: 22px;
    max-width: 160px;
  }

  .departure-dock {
    grid-template-columns: auto 1fr;
  }

  .go-out-button {
    grid-column: 1 / -1;
  }

  .destination-picker {
    width: 300px;
  }

  .outing-princess-wrap {
    right: 20%;
  }
}

@media (max-width: 820px) {
  body {
    overflow: auto;
    background: oklch(91% 0.055 329);
  }

  .game-shell {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .game-header {
    position: sticky;
    top: 0;
    height: 66px;
    grid-template-columns: 1fr auto auto;
    padding: 0 12px;
  }

  .royal-seal > span {
    width: 38px;
    height: 38px;
  }

  .royal-seal small {
    display: none;
  }

  .royal-seal strong {
    font-size: 1rem;
  }

  .outfit-progress {
    min-width: auto;
    gap: 6px;
  }

  .progress-gems {
    gap: 3px;
  }

  .progress-gems i {
    width: 11px;
    height: 14px;
  }

  .outfit-progress > strong {
    min-width: 36px;
    font-size: 0.76rem;
  }

  .header-actions {
    gap: 4px;
  }

  .quiet-button {
    width: 42px;
    padding: 4px;
    justify-content: center;
  }

  .dressing-screen {
    display: block;
    height: auto;
    min-height: 0;
  }

  .princess-stage {
    height: max(510px, 66svh);
    min-height: 510px;
  }

  .mirror-frame {
    width: min(72vw, 390px);
    height: calc(100% - 76px);
    min-height: 445px;
    margin-top: -12px;
  }

  .princess-speech {
    top: 78px;
    right: 14px;
    max-width: 148px;
    padding: 8px 10px;
  }

  .princess-speech p {
    font-size: 0.78rem;
  }

  .stage-plaque {
    bottom: 12px;
    width: 84%;
    font-size: 0.67rem;
  }

  .stage-plaque span {
    display: none;
  }

  .wardrobe {
    position: relative;
    z-index: 6;
    display: grid;
    min-height: 640px;
    margin-top: -18px;
    padding: 24px 14px 20px;
    overflow: visible;
    border-top: 4px solid var(--gold-500);
    border-left: 0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -12px 24px oklch(25% 0.08 345 / 0.22);
  }

  .wardrobe-heading h1 {
    font-size: 1.65rem;
  }

  .wardrobe-heading__jewel {
    width: 42px;
    height: 42px;
  }

  .princess-roster {
    gap: 5px;
  }

  .princess-choice {
    min-height: 62px;
    flex-basis: 94px;
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 5px;
  }

  .princess-choice__portrait {
    width: 30px;
    height: 36px;
  }

  .category-tabs {
    overflow-x: auto;
  }

  .category-tab {
    min-width: 62px;
  }

  .wardrobe-items {
    grid-auto-columns: minmax(168px, 44vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-template-rows: repeat(2, 108px);
    gap: 9px;
    padding-bottom: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
  }

  .wardrobe-item {
    min-height: 104px;
    scroll-snap-align: start;
  }

  .departure-dock {
    grid-template-columns: auto minmax(0, 1fr) minmax(185px, 1.25fr);
  }

  .go-out-button {
    grid-column: auto;
  }

  .outing-screen {
    height: calc(100dvh - 66px);
    min-height: 650px;
  }

  .outing-copy {
    top: 76px;
    left: 20px;
    max-width: 62%;
  }

  .outing-copy h2 {
    font-size: clamp(2rem, 9vw, 3.4rem);
  }

  .outing-princess-wrap {
    right: 4%;
    bottom: 13%;
    width: min(56vw, 360px);
    height: 67%;
  }

  .destination-picker {
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: auto;
    grid-template-columns: 1fr;
    border-radius: 8px 20px 8px 20px;
  }

  .destination-picker__title {
    grid-column: 1 / -1;
  }

  .destination-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .destination-button {
    grid-template-columns: 1fr;
    place-items: center;
    text-align: center;
  }

  .outing-reset-button {
    grid-column: 1 / -1;
  }

  .scene-castle {
    right: -8%;
    transform: scale(.75);
    transform-origin: bottom right;
  }
}

@media (max-width: 560px) {
  .royal-seal {
    gap: 6px;
  }

  .royal-seal strong {
    max-width: 5.2em;
    font-size: 0.83rem;
    line-height: 1.05;
  }

  .outfit-progress > strong {
    display: none;
  }

  .wardrobe-heading p {
    font-size: 0.63rem;
  }

  .princess-choice {
    min-height: 60px;
    flex-basis: 84px;
    grid-template-columns: 1fr;
    place-items: center;
    text-align: center;
  }

  .princess-choice__portrait {
    width: 35px;
    height: 35px;
  }

  .princess-choice > span:nth-child(2) {
    place-items: center;
  }

  .princess-choice small {
    display: none;
  }

  .wardrobe-section-heading small {
    display: none;
  }

  .departure-dock {
    grid-template-columns: auto 1fr;
  }

  .go-out-button {
    grid-column: 1 / -1;
  }

  .outing-copy {
    top: 82px;
    max-width: 76%;
  }

  .outing-princess-wrap {
    right: 8%;
    bottom: 17%;
    width: 72vw;
    height: 65%;
  }

  .destination-picker {
    padding: 11px;
  }

  .destination-button {
    min-height: 54px;
    padding: 5px;
  }

  .destination-button strong {
    font-size: 0.61rem;
  }
}

@media (max-height: 680px) and (min-width: 821px) {
  .game-shell {
    min-height: 560px;
  }

  .game-header {
    height: 64px;
  }

  .dressing-screen,
  .outing-screen {
    height: calc(100dvh - 64px);
    min-height: 496px;
  }

  .wardrobe {
    gap: 7px;
    padding-top: 13px;
    padding-bottom: 12px;
  }

  .princess-roster-label {
    display: none;
  }

  .princess-choice {
    min-height: 48px;
  }

  .wardrobe-heading h1 {
    font-size: 1.55rem;
  }

  .category-tab {
    min-height: 53px;
  }

  .wardrobe-item {
    min-height: 89px;
  }

  .wardrobe-item__art {
    width: 61px;
    height: 70px;
  }

  .departure-dock {
    padding-top: 6px;
  }

  .mirror-frame {
    min-height: 430px;
    height: calc(100% - 70px);
  }
}

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