@font-face {
  font-family: "Neucha Local";
  src: url("fonts/neucha-cyrillic.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "PT Sans Local";
  src: url("fonts/pt-sans-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --pink: #d83e99;
  --pink-dark: #8d226d;
  --lilac: #8c61d1;
  --ink: #54234f;
  --white: #fffafd;
  --shadow: rgba(64, 27, 71, .28);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--ink);
  font-family: "PT Sans Local", "PT Sans", Arial, sans-serif;
  background: linear-gradient(145deg, #f7bce2, #a78de3 54%, #70cce7);
}

button { font: inherit; }
h1, h2 { font-family: "Neucha Local", cursive; font-weight: 400; }

.game-shell {
  position: relative;
  width: min(100vw, 1050px);
  height: min(100svh, 700px);
  min-height: 620px;
  overflow: hidden;
  border: 6px ridge #ffd9f2;
  border-radius: 24px;
  background: #f7d9ed;
  box-shadow: 0 28px 70px rgba(61, 23, 84, .38), inset 0 0 0 3px rgba(255,255,255,.55);
}

.screen { position: absolute; inset: 0; display: none; overflow: hidden; }
.screen.is-active { display: block; }

.glass-panel {
  border: 4px solid rgba(255,255,255,.9);
  border-radius: 24px;
  background: rgba(255, 249, 253, .92);
  box-shadow: 0 8px 0 rgba(132, 51, 111, .5), 0 16px 32px var(--shadow);
  backdrop-filter: blur(6px);
}

.glossy-button,
.activity {
  min-height: 52px;
  border: 3px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 2px 0 rgba(100,20,91,.55);
  background: linear-gradient(#ff8ac7 0%, #e44fa7 48%, #bd2a83 52%, #e053ae 100%);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.55), 0 5px 0 #852266, 0 9px 18px rgba(84,33,89,.28);
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease;
}

.glossy-button:hover,
.glossy-button:focus-visible,
.activity:hover,
.activity:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-2px);
  outline: 4px solid rgba(255,255,255,.74);
  outline-offset: 3px;
}

.glossy-button:active,
.activity:active { transform: translateY(3px); box-shadow: inset 0 3px 0 rgba(255,255,255,.4), 0 2px 0 #852266; }
.glossy-button:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }

/* Every character container keeps the exact 1:2 panel ratio of the sprite sheet. */
.character {
  width: auto;
  aspect-ratio: 1 / 2;
  background-image: url("images/nastya-outfits.png");
  background-repeat: no-repeat;
  background-size: 300% 100%;
  background-position: 0 0;
  filter: drop-shadow(0 12px 14px rgba(69, 34, 67, .28));
}
.character--silver { background-position: 50% 0; }
.character--lilac { background-position: 100% 0; }

.cake-sprite {
  aspect-ratio: 2 / 3;
  background-image: url("images/cakes.png");
  background-repeat: no-repeat;
  background-size: 300% 100%;
  background-position: 0 0;
  filter: drop-shadow(0 12px 10px rgba(65, 30, 67, .25));
}
.cake--blue { background-position: 50% 0; }
.cake--lilac { background-position: 100% 0; }

.intro-screen {
  isolation: isolate;
  background: url("images/dressing-room.png") center / cover;
}

.intro-screen::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 235, 248, .2) 0%, rgba(255, 255, 255, 0) 48%, rgba(103, 45, 102, .12) 100%),
    linear-gradient(0deg, rgba(86, 38, 83, .18), transparent 38%);
}

.intro-title {
  position: absolute;
  z-index: 4;
  left: 5.5%;
  top: 8%;
  width: min(570px, 57%);
  text-align: center;
  color: #fff;
}
.intro-title p {
  display: inline-block;
  margin: 0 0 2px;
  padding: 5px 24px 4px;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-shadow: 0 2px 0 #71356f;
  background: linear-gradient(#d85cab, #a52f83);
  box-shadow: 0 4px 0 rgba(104, 42, 104, .62), 0 8px 18px rgba(80, 37, 79, .23);
}
.intro-title h1 {
  margin: -2px 0 0;
  line-height: .82;
  transform: rotate(-2deg);
  filter: drop-shadow(0 7px 0 #712265) drop-shadow(0 12px 10px rgba(76, 32, 76, .3));
}
.intro-title h1 span,
.intro-title h1 strong { display: block; font-weight: 400; }
.intro-title h1 span {
  font-size: clamp(48px, 6.4vw, 76px);
  white-space: nowrap;
  -webkit-text-stroke: 2px #a32d80;
  text-shadow: 0 0 0 #fff, 2px 2px 0 #fff, -2px -2px 0 #fff, -2px 2px 0 #fff, 2px -2px 0 #fff;
}
.intro-title h1 strong {
  margin-top: 7px;
  color: #ff75bc;
  font-size: clamp(80px, 11vw, 126px);
  letter-spacing: .01em;
  -webkit-text-stroke: 3px #fff;
}
.intro-title-stars { margin-top: 8px; color: #fff3a8; font-size: 26px; letter-spacing: .22em; text-shadow: 0 2px 0 #9b4d79, 0 0 12px #fff; }
.intro-character { position: absolute; z-index: 2; left: 72%; bottom: -3%; height: 91%; transform: translateX(-50%); }
.intro-actions { position: absolute; z-index: 5; left: 28%; bottom: 11%; transform: translateX(-50%); }
.play-button { min-width: 250px; min-height: 66px; padding: 8px 40px; font-size: 29px; text-transform: uppercase; }
.sparkle-layer { position: absolute; z-index: 3; inset: 45% 4% 0 45%; display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,.82); font-size: 48px; pointer-events: none; text-shadow: 0 0 16px #fff; }

.menu-screen {
  background: linear-gradient(rgba(255, 230, 246, .35), rgba(174, 137, 220, .1)), url("images/dressing-room.png") center / cover;
}
.menu-title { position: absolute; z-index: 5; left: 50%; top: 14px; transform: translateX(-50%); width: min(600px, 62%); padding: 7px 20px 10px; text-align: center; }
.menu-title span { color: #a03680; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.menu-title h2 { margin: -2px 0 0; color: #7e2879; font-size: 50px; line-height: 1; }
.menu-character { position: absolute; left: 50%; bottom: 0; height: 78%; transform: translateX(-50%); }
.activity-menu { position: absolute; z-index: 6; inset: 130px 40px 34px; display: grid; grid-template-columns: 290px 1fr 290px; grid-template-rows: repeat(3, 1fr); align-items: center; gap: 14px 24px; }
.activity { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 10px 14px; font-size: 19px; }
.activity i { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; color: #b33791; font-style: normal; text-shadow: none; background: #fff6fd; }
.activity b { display: none; position: absolute; right: -8px; top: -11px; width: 30px; height: 30px; place-items: center; border: 3px solid #fff; border-radius: 50%; color: #fff; text-shadow: none; background: #58b96a; box-shadow: 0 3px 0 #277d3a; }
.activity.is-done b { display: grid; }
.activity.is-locked { opacity: .58; filter: grayscale(.35); cursor: not-allowed; box-shadow: inset 0 3px 0 rgba(255,255,255,.4), 0 4px 0 #84617c; }
.activity--makeup { grid-column: 1; grid-row: 1; }
.activity--outfit { grid-column: 1; grid-row: 2; }
.activity--party { grid-column: 1; grid-row: 3; }
.activity--wish { grid-column: 3; grid-row: 1; }
.activity--candles { grid-column: 3; grid-row: 2; }
.sound-button { position: absolute; z-index: 8; right: 16px; bottom: 12px; border: 0; border-bottom: 1px dotted #70436f; color: #70436f; background: rgba(255,255,255,.6); cursor: pointer; }

.game-screen { padding-top: 78px; }
.scene-bar { position: absolute; z-index: 20; inset: 0 0 auto; height: 78px; display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px; padding: 9px 18px; color: #7a276e; background: linear-gradient(#fff9fd,#f5cde7); border-bottom: 4px ridge #f8b4dc; box-shadow: 0 5px 16px rgba(81,35,87,.2); }
.scene-bar h2 { margin: -3px 0 0; font-size: 34px; line-height: 1; }
.scene-bar small { font-weight: 700; letter-spacing: .12em; }
.scene-bar > strong { color: #a83e89; }
.scene-bar--night { color: #fff; background: linear-gradient(#5d326f,#2b214b); border-color: #9f65ae; }
.scene-bar--night > strong { color: #fff; }
.back-button { width: 44px; height: 44px; border: 3px solid #fff; border-radius: 50%; color: #fff; font-size: 34px; line-height: 1; background: linear-gradient(#ef80c3,#b33388); box-shadow: 0 4px 0 #7e205e; cursor: pointer; }

.makeup-workspace { position: relative; height: 100%; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 30px; padding: 24px 32px; background: linear-gradient(rgba(255, 244, 251, .28), rgba(223, 187, 234, .2)), url("images/dressing-room.png") center / cover; }
.mirror-frame { justify-self: center; width: min(460px, 90%); aspect-ratio: 2 / 3; padding: 12px; overflow: hidden; border: 9px solid #f9d89b; border-radius: 44% 44% 24px 24px; background: #f9cfe6; box-shadow: inset 0 0 0 5px #fff6d8, 0 0 0 5px #b57083, 0 14px 30px var(--shadow); }
.makeup-portrait { width: 100%; height: 100%; border-radius: 41% 41% 16px 16px; background: url("images/makeup-stages.png") 0 0 / 400% 100% no-repeat; transition: filter .35s ease; }
.makeup-stage--1 { background-position: 33.333% 0; }
.makeup-stage--2 { background-position: 66.666% 0; }
.makeup-stage--3 { background-position: 100% 0; }
.makeup-panel { align-self: center; padding: 20px; }
.makeup-panel > p { margin: 0 0 14px; line-height: 1.4; }
.makeup-tool { width: 100%; display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; gap: 0 12px; margin: 10px 0; padding: 10px; text-align: left; border: 3px solid #e6abd1; border-radius: 16px; color: #69245f; background: #fff8fd; cursor: pointer; }
.makeup-tool:not(:disabled):hover, .makeup-tool:not(:disabled):focus-visible { border-color: #c84595; outline: 3px solid #fff; box-shadow: 0 0 0 6px #dc72b6; }
.makeup-tool:disabled { opacity: .42; cursor: not-allowed; }
.makeup-tool.is-done { color: #2f7446; border-color: #6cbd7c; background: #f0fff2; }
.makeup-tool small { color: #8f6289; }
.tool-dot { grid-row: 1 / 3; width: 46px; height: 46px; border: 4px solid #fff; border-radius: 50%; box-shadow: 0 3px 8px rgba(72,30,72,.24); }
.tool-dot--shadow { background: linear-gradient(135deg,#d9b5ef,#7a49ac); }
.tool-dot--blush { background: linear-gradient(135deg,#ffd6e5,#df5d99); }
.tool-dot--lips { background: linear-gradient(135deg,#ffb5cb,#a92969); }
.complete-button { width: 100%; margin-top: 12px; padding-inline: 18px; }
.makeup-sparkles { position: absolute; inset: 0; pointer-events: none; }
.makeup-sparkles.flash { background: radial-gradient(circle at 39% 48%, rgba(255,255,255,.95), transparent 25%); animation: makeup-flash .55s ease both; }

.outfit-room { position: relative; height: 100%; overflow: hidden; background: linear-gradient(rgba(255,255,255,.1), rgba(145,91,140,.06)), url("images/dressing-room.png") center / cover; }
.outfit-character { position: absolute; left: 42%; bottom: -1%; height: 91%; transform: translateX(-50%); }
.outfit-panel { position: absolute; z-index: 4; right: 24px; top: 24px; bottom: 24px; width: 355px; padding: 18px; overflow: auto; }
.outfit-panel > p { margin: 0 0 12px; font-weight: 700; }
.look-card { width: 100%; display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 12px; margin: 10px 0; padding: 9px; text-align: left; border: 3px solid #e8afd3; border-radius: 18px; color: #69245f; background: #fff8fd; cursor: pointer; }
.look-card:hover, .look-card:focus-visible, .look-card.is-selected { border-color: #bd3d92; outline: 3px solid #fff; box-shadow: 0 0 0 6px #d960aa; }
.look-card small { display: block; margin-top: 2px; color: #8f6289; }
.look-preview { width: 56px; height: 56px; border: 4px solid #fff; border-radius: 50%; box-shadow: 0 3px 9px rgba(75,31,75,.25); }
.look-preview--pink { background: linear-gradient(135deg,#ffe3ee,#e47eb4); }
.look-preview--silver { background: linear-gradient(135deg,#17151d 0 44%,#f1f0f4 45%); }
.look-preview--lilac { background: linear-gradient(135deg,#d49ef1,#7d4ca0 52%,#1d1522 53%); }

.party-theme--pink .party-stage, .party-theme--pink .wish-stage, .party-theme--pink .candles-stage { background-image: url("images/party-pink.png"); }
.party-theme--blue .party-stage, .party-theme--blue .wish-stage, .party-theme--blue .candles-stage { background-image: url("images/party-blue.png"); }
.party-theme--lilac .party-stage, .party-theme--lilac .wish-stage, .party-theme--lilac .candles-stage { background-image: url("images/party-lilac.png"); }
.party-stage { position: relative; height: 100%; background-position: center; background-size: cover; }
.party-cake { position: absolute; z-index: 3; left: 42%; top: 10%; width: 155px; transform: translateX(-50%); }
.party-panel { position: absolute; z-index: 5; right: 18px; top: 18px; bottom: 18px; width: 370px; padding: 16px; overflow: auto; }
.party-panel h3 { margin: 0 0 8px; color: #7b286f; font-family: "Neucha Local"; font-size: 25px; font-weight: 400; }
.party-panel section + section { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #d5a1c5; }
.theme-options, .cake-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.theme-options button, .cake-options button { min-width: 0; padding: 6px; border: 3px solid #e7b2d5; border-radius: 14px; color: #6d2c64; background: #fff; cursor: pointer; }
.theme-options button.is-selected, .cake-options button.is-selected { border-color: #bc3b91; outline: 3px solid #f4a7d5; }
.theme-options strong, .cake-options strong { display: block; margin-top: 5px; font-size: 12px; line-height: 1.05; }
.theme-thumb { display: block; aspect-ratio: 16 / 10; border-radius: 8px; background-position: center; background-size: cover; }
.theme-thumb--pink { background-image: url("images/party-pink.png"); }
.theme-thumb--blue { background-image: url("images/party-blue.png"); }
.theme-thumb--lilac { background-image: url("images/party-lilac.png"); }
.mini-cake { display: block; height: 82px; background: url("images/cakes.png") 0 0 / 300% 100% no-repeat; }
.mini-cake--blue { background-position: 50% 0; }
.mini-cake--lilac { background-position: 100% 0; }

.wish-stage, .candles-stage { position: relative; height: 100%; overflow: hidden; background-position: center; background-size: cover; }
.wish-stage::before, .candles-stage::before { content: ""; position: absolute; inset: 0; background: rgba(37, 21, 54, .64); }
.wish-character { position: absolute; z-index: 2; left: 12%; bottom: -1%; height: 88%; }
.wish-cake { position: absolute; z-index: 3; left: 47%; top: 10%; width: 155px; }
.wish-card { position: absolute; z-index: 4; right: 6%; top: 17%; width: min(440px, 47%); padding: 24px; text-align: center; color: #fff; background: rgba(69, 37, 90, .82); }
.wish-card > span { display: block; color: #ffe18b; font-size: 50px; text-shadow: 0 0 20px #ffd64d; }
.wish-card p { margin: 2px 0 7px; font-family: "Neucha Local"; font-size: 36px; line-height: 1.08; }
.wish-card small { display: block; margin-bottom: 18px; color: #ead4ef; }
.wish-card button { padding-inline: 26px; }

.candles-stage { display: grid; place-items: center; }
.blow-hint { position: absolute; z-index: 4; top: 20px; margin: 0; padding: 10px 18px; border: 2px solid rgba(255,255,255,.72); border-radius: 999px; color: #fff; background: rgba(71,39,89,.78); }
.final-cake-button { position: relative; z-index: 3; width: 330px; height: 460px; border: 0; background: transparent; cursor: pointer; }
.final-cake { position: absolute; left: 50%; bottom: 0; width: 290px; transform: translateX(-50%); }
.flame-row { position: absolute; z-index: 5; left: 50%; top: 62px; display: flex; gap: 34px; transform: translateX(-50%); }
.flame-row i { display: block; width: 16px; height: 24px; border-radius: 60% 40% 60% 40%; background: #ffd85c; box-shadow: 0 0 12px #ff9f36, 0 0 22px #ffd75c; transform: rotate(45deg); }
.candles-stage.is-blown .flame-row, .candles-stage.is-blown .blow-hint { display: none; }
.final-message { position: absolute; z-index: 10; inset: 8% 14%; display: none; place-content: center; justify-items: center; padding: 28px; text-align: center; }
.final-message.is-visible { display: grid; animation: final-in .65s ease both; }
.final-heart { color: #df3e99; font-size: 54px; }
.final-message h2 { margin: 0; color: #b33388; font-size: clamp(44px, 7vw, 72px); line-height: 1; }
.final-message .final-wish { max-width: 610px; margin: 14px 0 10px; font-size: 19px; line-height: 1.45; }
.final-signoff { margin-bottom: 22px; font-family: "Neucha Local"; font-size: 34px; font-weight: 400; color: #8f2d78; }
.final-message > div { display: flex; align-items: center; gap: 18px; }
.text-button { border: 0; border-bottom: 1px dotted #7c3c72; color: #7c3c72; background: transparent; cursor: pointer; }
.confetti { position: absolute; z-index: 8; inset: 0; display: none; pointer-events: none; background-image: radial-gradient(circle,#ffeb67 0 4px,transparent 5px), radial-gradient(circle,#ff5faa 0 4px,transparent 5px), radial-gradient(circle,#8f71e3 0 4px,transparent 5px); background-size: 51px 53px,73px 67px,91px 83px; }
.candles-stage.is-blown .confetti { display: block; animation: confetti-fall 2.2s linear both; }

.toast { position: absolute; z-index: 50; left: 50%; bottom: 18px; transform: translate(-50%, 120px); padding: 10px 18px; border: 3px solid #fff; border-radius: 999px; color: #fff; font-weight: 700; background: #7a3d8b; box-shadow: 0 7px 20px var(--shadow); transition: transform .25s ease; }
.toast.is-visible { transform: translate(-50%,0); }

@keyframes makeup-flash { from { opacity: 1; } to { opacity: 0; } }
@keyframes final-in { from { opacity: 0; transform: scale(.78) rotate(-2deg); } to { opacity: 1; transform: scale(1); } }
@keyframes confetti-fall { from { background-position: 0 -500px,20px -600px,-10px -700px; } to { background-position: 40px 400px,-30px 450px,60px 520px; } }

@media (max-width: 720px) {
  body { display: block; }
  .game-shell { width: 100%; height: 100svh; min-height: 100svh; border: 0; border-radius: 0; }
  .intro-title { left: 50%; top: max(18px, env(safe-area-inset-top)); width: calc(100% - 24px); transform: translateX(-50%); }
  .intro-title p { padding: 4px 17px 3px; font-size: 10px; }
  .intro-title h1 { margin-top: 1px; }
  .intro-title h1 span { font-size: clamp(34px, 9.7vw, 46px); }
  .intro-title h1 strong { margin-top: 5px; font-size: clamp(70px, 22vw, 104px); }
  .intro-title-stars { display: none; }
  .intro-character { left: 34%; height: 72%; bottom: -2%; }
  .intro-actions { left: 28%; bottom: max(28px, env(safe-area-inset-bottom)); }
  .play-button { min-width: 170px; min-height: 58px; padding-inline: 26px; font-size: 23px; }
  .sparkle-layer { inset: 43% 4% 7% 7%; font-size: 30px; }

  .menu-title { top: max(8px, env(safe-area-inset-top)); width: calc(100% - 24px); padding: 6px 8px 8px; }
  .menu-title span { font-size: 11px; }
  .menu-title h2 { font-size: 38px; }
  .menu-character { height: 44%; bottom: 41%; }
  .activity-menu { top: auto; left: 50%; right: auto; bottom: max(24px, env(safe-area-inset-bottom)); width: min(300px, calc(100% - 24px)); transform: translateX(-50%); grid-template-columns: 1fr; grid-template-rows: repeat(5, 43px); gap: 7px; }
  .activity { min-width: 0 !important; width: 100% !important; max-width: 100% !important; min-height: 43px; gap: 5px; padding: 6px; overflow: hidden; font-size: 13px; line-height: 1.05; }
  .activity i { width: 25px; height: 25px; }
  .activity span { min-width: 0; overflow-wrap: anywhere; }
  .activity--makeup { grid-column: 1; grid-row: 1; }
  .activity--outfit { grid-column: 1; grid-row: 2; }
  .activity--party { grid-column: 1; grid-row: 3; }
  .activity--wish { grid-column: 1; grid-row: 4; }
  .activity--candles { grid-column: 1; grid-row: 5; }
  .sound-button { right: 8px; top: 96px; bottom: auto; font-size: 11px; }

  .game-screen { padding-top: 68px; }
  .scene-bar { height: 68px; grid-template-columns: 42px 1fr auto; gap: 8px; padding: 7px 9px; }
  .scene-bar h2 { font-size: 27px; }
  .scene-bar small { font-size: 9px; }
  .scene-bar > strong { max-width: 70px; font-size: 11px; text-align: right; }
  .back-button { width: 38px; height: 38px; }

  .makeup-workspace { grid-template-columns: 1fr; grid-template-rows: 48% 52%; gap: 0; padding: 10px; }
  .mirror-frame { align-self: center; width: auto; height: 96%; }
  .makeup-panel { align-self: stretch; padding: 10px; overflow: auto; }
  .makeup-panel > p { display: none; }
  .makeup-tool { margin: 6px 0; padding: 6px; grid-template-columns: 39px 1fr; }
  .makeup-tool small { font-size: 11px; }
  .tool-dot { width: 37px; height: 37px; }
  .complete-button { min-height: 46px; margin-top: 7px; }

  .outfit-room { background-position: 44% center; }
  .outfit-character { left: 31%; height: 66%; bottom: 31%; }
  .outfit-panel { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; height: 43%; padding: 10px; }
  .outfit-panel > p { margin-bottom: 5px; font-size: 13px; }
  .look-card { grid-template-columns: 44px 1fr; margin: 6px 0; padding: 6px; }
  .look-preview { width: 42px; height: 42px; }
  .look-card small { font-size: 11px; }

  .party-stage { background-position: center; }
  .party-cake { left: 50%; top: 14%; width: 105px; }
  .party-panel { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; height: 43%; padding: 9px; }
  .party-panel h3 { font-size: 20px; }
  .party-panel section + section { margin-top: 7px; padding-top: 6px; }
  .theme-options button, .cake-options button { padding: 4px; }
  .theme-options strong, .cake-options strong { font-size: 10px; }
  .mini-cake { height: 48px; }

  .wish-character { left: 1%; height: 64%; }
  .wish-cake { left: 40%; top: 18%; width: 100px; }
  .wish-card { right: 4%; top: 9%; width: 68%; padding: 15px; }
  .wish-card p { font-size: 27px; }
  .final-cake-button { transform: scale(.78); }
  .final-message { inset: 4%; padding: 18px; }
  .final-message h2 { font-size: 48px; }
  .final-message > div { flex-direction: column; gap: 12px; }
}

@media (max-height: 650px) and (min-width: 721px) {
  .game-shell { height: 100svh; min-height: 100svh; }
  .intro-title { top: 4%; }
  .intro-character { height: 86%; }
  .activity-menu { inset-block: 112px 24px; }
  .game-screen { padding-top: 66px; }
  .scene-bar { height: 66px; }
  .scene-bar h2 { font-size: 28px; }
}

@media (prefers-reduced-motion: no-preference) {
  .play-button { animation: pulse 1.8s ease-in-out infinite; }
  .flame-row i { animation: flame .7s ease-in-out infinite alternate; }
  .flame-row i:nth-child(even) { animation-delay: .2s; }
  @keyframes pulse { 50% { filter: brightness(1.12); box-shadow: inset 0 3px 0 rgba(255,255,255,.55), 0 5px 0 #852266, 0 0 24px rgba(255,255,255,.85); } }
  @keyframes flame { to { transform: rotate(53deg) scale(.86); } }
}

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