:root {
  color: #151515;
  background: #ffffff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  width: 100%;
  height: 100%;
  margin: 0;
}

.mobile-carousel {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  user-select: none;
}

.mobile-carousel::-webkit-scrollbar { display: none; }
.mobile-carousel { overflow-x: auto; overflow-y: hidden; touch-action: pan-y; }
.mobile-carousel[data-dragging="true"] { cursor: none; }
.mobile-carousel-content { display: flex; width: max-content; min-width: 100%; transform: translateX(var(--mobile-carousel-overdrag)); will-change: transform; }
.mobile-carousel-scrollbar { position: absolute; z-index: 4; inset: 0; opacity: 0; pointer-events: none; transition: opacity 150ms ease; }
.mobile-carousel-scrollbar[data-visible="true"] { opacity: 1; }
.mobile-carousel-scrollbar-thumb { position: absolute; right: 4px; bottom: 4px; height: 3px; border-radius: 999px; background: rgba(0, 0, 0, 0.35); }

body {
  min-width: 320px;
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.phone-stage {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 24px;
}

.device-menu-bar {
  position: absolute;
  z-index: 100;
  top: 18px;
  right: 18px;
  padding: 3px;
  border-radius: 12px;
}

.device-picker-trigger {
  display: flex;
  gap: 10px;
  align-items: center;
  height: 34px;
  padding: 0 10px 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #151515;
  font: 600 14px/1 ui-sans-serif, system-ui, sans-serif;
}

.device-picker-trigger:hover,
.device-picker-trigger[data-state="open"] {
  background: rgba(0, 0, 0, 0.055);
}

.device-picker-trigger:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.72);
  outline-offset: 2px;
}

.device-picker-menu {
  z-index: 200;
  min-width: 168px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 0 1px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 4px 4px rgba(0, 0, 0, 0.05);
  transform-origin: var(--radix-dropdown-menu-content-transform-origin);
  animation: device-menu-in 120ms ease-out;
}

.device-picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 9px 0 10px;
  border-radius: 8px;
  color: #181818;
  font: 500 14px/1 ui-sans-serif, system-ui, sans-serif;
  outline: none;
  user-select: none;
}

.device-picker-item[data-highlighted] {
  background: #f0f0f0;
}

.device-picker-item[data-state="checked"] {
  font-weight: 600;
}

.device-picker-check {
  display: grid;
  place-items: center;
  color: #181818;
}

@keyframes device-menu-in {
  from {
    opacity: 0;
    transform: scale(0.98) translateY(-2px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.phone-scale-box {
  position: relative;
}

.phone-device {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: top left;
  -webkit-user-select: none;
  user-select: none;
}

.phone-bezel {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  -webkit-user-drag: none;
  pointer-events: none;
}

.device-screen {
  position: absolute;
  overflow: hidden;
  border-radius: 42px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  cursor: none;
  z-index: 1;
  -webkit-user-select: none;
  user-select: none;
}

.device-camera {
  position: absolute;
  z-index: 75;
  display: block;
  border-radius: 50%;
  background: #050505;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.device-screen,
.device-screen * {
  cursor: none !important;
}

.device-screen img,
.keyboard-asset {
  -webkit-user-drag: none;
  user-select: none;
}

.device-screen input,
.device-screen textarea,
.device-screen select,
.device-screen option,
.device-screen [contenteditable="true"] {
  -webkit-user-select: auto;
  user-select: auto;
}

.device-screen:active,
.device-screen:active * {
  cursor: none !important;
}

.device-screen input,
.device-screen textarea,
.device-screen button,
.device-screen a,
.device-screen [role="button"] {
  cursor: none !important;
}

.device-screen[data-cursor-debug="true"],
.device-screen[data-cursor-debug="true"] * {
  cursor: default !important;
}

.device-screen *:focus,
.device-screen *:focus-visible {
  outline: 0 !important;
  box-shadow: none !important;
}

.flow-stack,
.flow-scenes,
.flow-screen {
  position: absolute;
  inset: 0;
}

.mobile-app-viewport {
  position: absolute;
  inset: 0;
}

.mobile-app-viewport[data-platform="android"][data-keyboard-visible="false"] {
  bottom: var(--device-safe-area-bottom, 48px);
}

.flow-stack {
  --flow-header-height: 0px;
  --flow-header-content-height: 0px;
  --flow-header-safe-area: 0px;
  --flow-footer-height: 0px;
  --keyboard-height: 0px;
  overflow: hidden;
  background: transparent;
  touch-action: pan-y;
}

.flow-fixed-header {
  position: absolute;
  z-index: 12;
  top: 0;
  right: 0;
  left: 0;
  height: var(--flow-header-height);
  padding-top: var(--flow-header-safe-area);
  box-sizing: border-box;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}

.flow-fixed-footer {
  position: absolute;
  z-index: 12;
  right: 0;
  bottom: var(--keyboard-height);
  left: 0;
  height: var(--flow-footer-height);
  background: transparent;
  transition: bottom 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.flow-scenes {
  top: var(--flow-header-height);
  bottom: 0;
  overflow: hidden;
}

.flow-screen {
  overflow: hidden;
  background: transparent;
  will-change: transform;
}

.mobile-page {
  position: absolute;
  inset: 0;
  --mobile-safe-area-height: var(--device-safe-area-bottom, 34px);
  --keyboard-height: 0px;
}

.mobile-page[data-keyboard-visible="true"] {
  --mobile-safe-area-height: 0px;
}

.mobile-app-viewport[data-platform="android"] .mobile-page {
  --mobile-safe-area-height: 0px;
}

.mobile-scroll {
  position: absolute;
  top: 0;
  right: 0;
  bottom: var(--keyboard-height);
  left: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  touch-action: none;
  user-select: none;
  transition: bottom 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mobile-scroll::-webkit-scrollbar {
  display: none;
}

.mobile-scroll[data-dragging="true"] {
  cursor: none;
}

.mobile-cursor {
  position: absolute;
  z-index: 80;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.7) 0 34%, rgba(255, 255, 255, 0.54) 58%, rgba(238, 238, 238, 0.48) 100%);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.6),
    inset 0 -5px 10px rgba(0, 0, 0, 0.05),
    inset 0 0 0 1px rgba(0, 0, 0, 0.025);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 90ms ease,
    background 80ms ease,
    box-shadow 80ms ease;
  will-change: transform;
}

.mobile-cursor::before {
  position: absolute;
  top: 3px;
  left: 50%;
  width: 32px;
  height: 17px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
  content: "";
  pointer-events: none;
}

.mobile-cursor::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 1px 0 3px rgba(255, 255, 255, 0.28),
    inset -1px 0 3px rgba(0, 0, 0, 0.02);
  content: "";
  pointer-events: none;
}

.mobile-cursor-hotspot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(0, 122, 255, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.75),
    0 0 0 3px rgba(0, 122, 255, 0.16);
  pointer-events: none;
}

.mobile-cursor-hotspot::before,
.mobile-cursor-hotspot::after {
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(0, 122, 255, 0.95);
  content: "";
  transform: translate(-50%, -50%);
}

.mobile-cursor-hotspot::before {
  width: 17px;
  height: 1px;
}

.mobile-cursor-hotspot::after {
  width: 1px;
  height: 17px;
}

.mobile-cursor[data-visible="true"] {
  opacity: 1;
}

.mobile-cursor[data-active="true"] {
  background:
    radial-gradient(circle at 50% 55%, rgba(232, 232, 232, 0.58) 0 30%, rgba(248, 248, 248, 0.5) 62%, rgba(255, 255, 255, 0.68) 100%);
  box-shadow:
    inset 0 3px 7px rgba(0, 0, 0, 0.08),
    inset 0 -4px 8px rgba(255, 255, 255, 0.34),
    inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.mobile-cursor[data-active="true"]::before {
  background: linear-gradient(rgba(0, 0, 0, 0.055), rgba(0, 0, 0, 0));
}

.mobile-cursor[data-active="true"]::after {
  box-shadow:
    inset 0 5px 9px rgba(0, 0, 0, 0.045),
    inset 0 -3px 7px rgba(255, 255, 255, 0.28);
}

.mobile-scroll-content {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  padding: 0;
  will-change: transform;
}

.app-screen {
  background: #ffffff;
}

.mobile-scrollbar {
  position: absolute;
  z-index: 9;
  top: 4px;
  right: 5px;
  bottom: calc(var(--mobile-safe-area-height) + var(--keyboard-height) + 4px);
  width: 4px;
  opacity: 0;
  pointer-events: none;
  transition:
    bottom 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 180ms ease;
}

.mobile-page[data-keyboard-dragging="true"] .mobile-scroll,
.mobile-page[data-keyboard-dragging="true"] .mobile-scrollbar,
.flow-stack[data-keyboard-dragging="true"] .flow-fixed-footer {
  transition: none;
}

.mobile-scrollbar[data-visible="true"] {
  opacity: 1;
}

.mobile-scrollbar-thumb {
  width: 4px;
  min-height: 36px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: background 120ms ease;
}

.status-bar {
  position: absolute;
  z-index: 72;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  height: 54px;
  padding: 10px 34px 0 36px;
  background: transparent;
  color: #050505;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  pointer-events: none;
}

.device-screen[data-device="pixel-10"] .status-bar {
  align-items: start;
  height: auto;
  padding: 32px 32px 0;
  font-family: "Roboto", Arial, sans-serif;
}

.status-time {
  justify-self: start;
  min-width: 58px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

.status-indicators {
  display: flex;
  align-items: center;
  justify-self: end;
}

.status-indicator-svg {
  display: block;
}

.status-indicator-svg[data-platform="ios"] {
  width: 79px;
  height: 13px;
}

.status-indicator-svg[data-platform="android"] {
  width: 50px;
  height: 14px;
}

.device-screen[data-device="pixel-10"] .status-time {
  font-weight: 500;
  transform: translateY(2px);
}

.home-indicator-svg {
  position: absolute;
  z-index: 70;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: var(--device-safe-area-bottom, 34px);
  pointer-events: none;
}

.android-navigation-bar {
  position: absolute;
  z-index: 70;
  bottom: -1px;
  left: -1px;
  display: block;
  width: 428px;
  height: var(--device-safe-area-bottom, 48px);
  pointer-events: none;
  -webkit-user-drag: none;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  font-size: 15px;
}

p {
  color: #555555;
  font-size: 14px;
  line-height: 1.45;
}

.field-label {
  color: #555555;
  font-size: 13px;
  font-weight: 800;
}

.mobile-field {
  display: grid;
  gap: 8px;
}

.mobile-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: #fff;
  color: #151515;
  padding: 0 12px;
  outline: 0;
}

.mobile-field input:focus {
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: none;
}

.device-screen .mobile-field input:focus,
.device-screen .mobile-field input:focus-visible {
  border-color: rgba(0, 0, 0, 0.12);
  outline: 0 !important;
  box-shadow: none !important;
}

.sheet-overlay {
  position: absolute;
  z-index: 20;
  inset: 0;
  background: rgba(0, 0, 0, 0.34);
}

.bottom-sheet {
  position: absolute;
  z-index: 21;
  right: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  background: #fff;
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.2);
  touch-action: none;
}

.sheet-handle-zone {
  display: grid;
  height: 30px;
  place-items: center;
  touch-action: none;
}

.sheet-handle {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: #c9c9c4;
}

.sheet-header {
  display: grid;
  gap: 4px;
  padding: 0 18px 14px;
}

.sheet-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.sheet-description {
  margin: 0;
  color: #737373;
  font-size: 13px;
  line-height: 1.35;
}

.sheet-content {
  overflow: auto;
  padding: 0 18px 24px;
}

.keyboard-dock {
  position: absolute;
  z-index: 30;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 339px;
  padding: 0;
  overflow: hidden;
  border-radius: 32px 32px 0 0;
  background: #d8d9de;
  box-shadow: none;
  pointer-events: none;
  will-change: transform;
}

.keyboard-dock[data-platform="android"] {
  border-radius: 0;
  background: #f3f2f6;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.08);
}

.keyboard-dock[data-visible="true"] {
  pointer-events: auto;
}

.keyboard-asset {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center bottom;
  -webkit-user-drag: none;
  pointer-events: none;
}

.keyboard-dock[data-platform="android"] .keyboard-asset {
  border-radius: 0;
  object-fit: fill;
}

/* Add app-specific styles here. Keep the template-owned runtime styles in styles.css unchanged. */

.mooncake-app {
  position: relative;
  height: 100%;
  --cream: #fff9ef;
  --ink: #60351f;
  --orange: #d86032;
  --line: #d2b49c;
  color: var(--ink);
  background: var(--cream);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
/* Extra room below device status chrome for the host mini-tool controls. */
.game-safe-viewport {
  position: absolute;
  inset: 0;
}
/* Home art fills the canvas; its live content has its own host-control clearance. */
.game-safe-viewport .flow-screen:not(:has(.home-courtyard)),
.game-safe-viewport .flow-fixed-header {
  top: 30px;
}
/* Clip animated pages below the complete fixed header, including the host inset.
   Putting the inset on each page left 30px of the exiting cover behind the
   transparent header. Keep that cover full-height while it slides out. */
.game-safe-viewport .flow-stack:has(> .flow-fixed-header) > .flow-scenes {
  top: calc(var(--flow-header-height) + 30px);
}
.game-safe-viewport .flow-stack:has(> .flow-fixed-header) > .flow-scenes > .flow-screen {
  top: 0;
}
.game-safe-viewport .flow-stack:has(> .flow-fixed-header) > .flow-scenes > .flow-screen:has(.home-courtyard) {
  top: calc(0px - var(--flow-header-height) - 30px);
}
.mooncake-app * {
  box-sizing: border-box;
}
.mooncake-app h1,
.mooncake-app h2,
.mooncake-app h3,
.mooncake-app p {
  margin: 0;
}
.mooncake-app button {
  -webkit-tap-highlight-color: transparent;
}
.mooncake-app button:focus-visible {
  outline: 3px solid #405f86 !important;
  outline-offset: 3px;
}
.mooncake-app .flow-screen,
.game-page {
  background: var(--cream);
}
.game-header {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 8px 20px;
  background: var(--cream);
}
.game-header h1 {
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: 0.3px;
  font-weight: 900;
}
.game-header p {
  font-size: 12px;
  line-height: 1.6;
  margin-top: 5px;
  color: #876b59;
}
.icon-btn {
  border: 0;
  width: 36px;
  height: 44px;
  flex-shrink: 0;
  background: none;
  color: var(--ink);
  display: grid;
  place-items: center;
  padding: 4px;
}
.icon-btn svg {
  width: 25px;
  height: 25px;
}
.primary,
.secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 15px;
  min-height: 53px;
  width: 100%;
  padding: 12px 15px;
  font-size: 18px;
  font-weight: 700;
}
.primary {
  border: 2px solid var(--orange);
  background: var(--orange);
  color: white;
}
.primary:active {
  transform: translateY(1px);
  background: #c0542a;
}
.primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.secondary {
  border: 1.5px solid var(--line);
  background: var(--cream);
  color: var(--ink);
}
.primary svg,
.secondary svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.game-footer {
  padding: 12px 20px 32px;
  background: var(--cream);
}
.page-content {
  padding: 0 20px 20px;
}
.recipe-page .page-content {
  padding-bottom: 155px;
}
.guide {
  height: 142px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  margin-bottom: 10px;
  border-bottom: 1px solid #ecdac8;
}
.guide p {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.6;
  max-width: 55%;
  padding: 13px 14px;
  border: 1.5px solid #e2936e;
  border-radius: 19px;
  background: #fffdf6;
  z-index: 1;
}
.bunny {
  width: 142px;
  height: 143px;
  flex-shrink: 0;
  overflow: hidden;
}
.bunny img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}
.bunny.full {
  width: 220px;
  height: 100%;
  overflow: visible;
}
.bunny.bust {
  width: 112px;
  height: 112px;
  overflow: visible;
  background: var(--cream);
  isolation: isolate;
}
.bunny.bust svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  mix-blend-mode: multiply;
}
.ingredient-group {
  margin: 17px 0 0;
}
.group-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.group-label h2 {
  font-size: 21px;
  font-weight: 900;
}
.group-label small {
  font-size: 15px;
}
.group-label > span {
  font-size: 11px;
  color: #876b59;
}
.skin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.ingredient {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.3px solid #bb9b84;
  border-radius: 13px;
  background: #fffdfa;
  height: 103px;
  color: var(--ink);
  padding: 5px 3px 7px;
  font-size: 14px;
  font-weight: 800;
}
.ingredient.selected {
  border: 2px solid #e87840;
  background: #fff0d9;
}
.selected-mark {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  background: #e87840;
  border-radius: 50%;
  color: white;
}
.ingredient-track {
  gap: 10px;
  padding-bottom: 8px;
}
.ingredient-track .ingredient {
  width: 104px;
  height: 103px;
}
.food {
  display: block;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background-image: url("./art/ingredients.webp");
  background-size: var(--crop-width) var(--crop-size);
  background-position: var(--crop-x) var(--crop-y);
  background-repeat: no-repeat;
}
.food.large {
  width: 230px;
  height: 195px;
}
.food.food-natural {
  background: none;
}
.food-natural > svg {
  display: block;
  width: 100%;
  height: 100%;
}
.recipe-summary {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: #f9edda;
  border-radius: 13px;
  padding: 9px 12px;
  margin-bottom: 10px;
  font-size: 11px;
}
.recipe-summary strong {
  font-size: 14px;
  line-height: 1.4;
}
.home-content {
  padding: calc(var(--safe-area-top, 59px) + 12px) 26px 42px;
  text-align: center;
}
.edition {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #8b644c;
  letter-spacing: 1px;
}
.home-credit {
  flex-direction: column;
  gap: 5px;
  line-height: 1.5;
}
.home-credit > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.home-credit > span:last-child {
  font-size: 11px;
}
.brand-logo {
  display: inline-block;
  width: 8px;
  height: 12px;
  flex-shrink: 0;
  background-color: currentColor;
  /* Keep the supplied PNG intact. Its alpha bounds are 3751×6002, centered
     inside a 6945-square canvas; uniform mask scaling removes transparent space. */
  mask: url("./art/dansheng-logo-white.webp") center / 13.9px 13.9px no-repeat;
}
.home h1 {
  font-size: 43px;
  line-height: 1.35;
  font-weight: 900;
  margin-top: 18px;
  letter-spacing: 2px;
}
.home h1 em {
  font-style: normal;
  color: var(--orange);
  font-size: 54px;
}
.home-sub {
  font-size: 13px;
  margin-top: 12px !important;
  color: #876b59;
}
.home-art {
  height: 320px;
  display: flex;
  justify-content: center;
  position: relative;
  padding-top: 12px;
  overflow: hidden;
  margin-top: 10px;
}
.home-art .bunny {
  width: 190px;
}
.home-food {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}
.home-food .food {
  width: 220px;
  height: 140px;
}
.home-steps {
  font-size: 12px;
  margin: 10px 0 19px;
}
.home-steps span {
  color: #cbaa8a;
  margin: 0 9px;
}
.fineprint {
  color: #8b7567;
  font-size: 10px;
  line-height: 1.8;
  text-align: center;
  margin-top: 12px !important;
}
.timing-layout {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.timing-page {
  position: relative;
  inset: auto;
  flex: 1;
  min-height: 0;
}
.timing-page .guide {
  height: 138px;
  margin-bottom: 0;
}
.work-area {
  height: 240px;
  border-radius: 17px;
  background: #f1d4b4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  overflow: hidden;
}
.work-area > span:last-child {
  font-size: 11px;
  color: #886047;
}
.work-area .food.large {
  width: 230px;
  height: 196px;
}
.work-2 .food {
  filter: brightness(0.96);
}
.work-2.completed .food {
  filter: brightness(1.03);
}
.working-recipe {
  text-align: center;
  font-size: 12px;
  margin: 12px 0 20px !important;
  line-height: 1.5;
}
.meter-labels {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  align-items: center;
  font-size: 12px;
  padding: 0 3px;
}
.meter-labels strong {
  font-size: 16px;
  text-align: center;
}
.meter-labels > :last-child {
  text-align: right;
}
.meter {
  height: 42px;
  border: 2px solid #8d6950;
  border-radius: 24px;
  position: relative;
  margin-top: 20px;
  background: #e7e5de;
}
.near-zone {
  position: absolute;
  inset: 2px 18%;
  background: #f4efe4;
}
.perfect-zone {
  position: absolute;
  left: 50%;
  top: 2px;
  bottom: 2px;
  transform: translateX(-50%);
  background: #f6c48e;
  border: 2px solid #bd804b;
  border-radius: 6px;
}
.needle {
  position: absolute;
  top: -10px;
  bottom: -7px;
  width: 3px;
  background: var(--ink);
  transform: translateX(-50%);
}
.needle:before {
  content: "";
  position: absolute;
  left: -5px;
  top: -2px;
  width: 13px;
  height: 9px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.verdict {
  min-height: 49px;
  display: flex;
  gap: 6px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  padding-top: 17px;
  color: #8b6b53;
}
.verdict strong {
  font-size: 22px;
  color: #b54c27;
  line-height: 1;
}
.timing-actions,
.result-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.pause-btn {
  width: 54px;
  flex-shrink: 0;
}
.control-note {
  display: block;
  text-align: center;
  font-size: 10px;
  line-height: 1.5;
  color: #8b7567;
  margin-top: 7px;
}
.timing-layout > .game-footer {
  padding-top: 8px;
  flex-shrink: 0;
}
.selling-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 100px 24px 45px;
  gap: 18px;
}
.selling-content h1 {
  font-size: 29px;
}
.selling-content h2 {
  font-size: 23px;
}
.selling-content .food {
  width: 290px;
  height: 245px;
}
.selling-art {
  background: var(--cream);
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  height: 245px;
}
.sales-number {
  font-size: 59px;
  color: var(--orange);
  font-weight: 900;
  line-height: 1;
}
.sales-number small {
  font-size: 22px;
  color: #a98e77;
}
.selling-content .primary {
  margin-top: 20px;
}
.result-page .page-content {
  padding-bottom: calc(
    var(--flow-footer-height, 100px) + var(--mobile-safe-area-height, 0px) +
      48px
  );
}
.result-footer {
  position: relative;
  height: 100%;
  box-sizing: border-box;
  background: #fff;
}
.result-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -36px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}
.result-footer::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: var(--device-safe-area-bottom, 34px);
  background: #fff;
  pointer-events: none;
}
.product-title {
  text-align: center;
  font-size: 24px;
  margin: 12px 0 8px !important;
}
.result-product-info {
  display: grid;
  gap: 8px;
  margin: 16px 0 22px;
  text-align: center;
}
.result-product-info .product-title {
  margin: 0 !important;
  line-height: 1.35;
}
.result-product-info .working-recipe {
  margin: 0 !important;
  font-size: 13px;
  line-height: 1.6;
}
.result-art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 177px;
}
.result-art .food {
  width: 215px;
  height: 175px;
  margin-right: -25px;
  z-index: 1;
}
.result-art .bunny {
  width: 138px;
  height: 165px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 0 0 22px;
}
.stats > div {
  background: #faeedb;
  border: 1px solid #e5cbae;
  border-radius: 12px;
  padding: 12px 4px;
  text-align: center;
}
.stats span {
  display: block;
  font-size: 11px;
  margin-bottom: 7px;
}
.stats strong {
  font-size: 26px;
  color: var(--orange);
  display: flex;
  align-items: baseline;
  justify-content: center;
  min-height: 34px;
  line-height: 1.2;
  gap: 3px;
}
.stats small {
  font-size: 11px;
  color: #886a52;
}
.stats .stars {
  display: flex;
  gap: 1px;
  justify-content: center;
  align-items: center;
  height: 34px;
}
.stars .rabbit-mark {
  width: 16px;
  height: 20px;
}
.result-page h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.reviews p {
  padding: 13px 10px;
  background: #fffcf5;
  border-bottom: 1px solid #ecd9c5;
  font-size: 12px;
  line-height: 1.6;
}
.review-label {
  display: inline-block;
  font-size: 10px;
  color: #9d7c63;
  margin-right: 10px;
}
.award {
  margin-top: 18px;
  background: #f9e5c7;
  border-radius: 14px;
  padding: 16px 10px;
  text-align: center;
}
.award span {
  font-size: 11px;
  display: block;
  margin-bottom: 6px;
}
.award strong {
  font-size: 22px;
}
.award p {
  font-size: 10px;
  line-height: 1.7;
  margin-top: 9px;
}
.result-actions .primary,
.result-actions .secondary {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  height: 54px;
  box-sizing: border-box;
  padding: 0 12px;
  font-size: 16px;
}
@media (prefers-reduced-motion: reduce) {
  .mooncake-app * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.recipe-page .guide {
  height: 126px;
}
.recipe-page .ingredient-group {
  margin-top: 12px;
}
.recipe-page .ingredient {
  height: 84px;
}
.recipe-page .food {
  width: 55px;
  height: 55px;
}
.recipe-page .ingredient-track {
  gap: 8px;
}
.recipe-page .ingredient-track .ingredient {
  width: 100px;
  height: 84px;
}
.recipe-page .bunny {
  width: 132px;
  height: 126px;
}
.export-sheet {
  display: grid;
  justify-items: center;
  gap: 14px;
  font-family: "Microsoft YaHei", sans-serif;
  color: #60351f;
}
.export-sheet img {
  display: block;
  max-width: 90%;
  height: 360px;
  object-fit: contain;
}
.export-download {
  display: block;
  width: 100%;
  text-align: center;
  border-radius: 12px;
  background: #d86032;
  color: white;
  padding: 15px;
  text-decoration: none;
  font-weight: 700;
}
.export-sheet button {
  border: 0;
  background: transparent;
  color: #60351f;
  min-height: 44px;
}

/* Two-stage craft interaction: keep the moving target and primary action in view. */
.timing-page .guide {
  height: 112px;
}
.timing-page .guide p {
  font-size: 15px;
}
.timing-page .bunny {
  width: 122px;
  height: 112px;
}
.reaction {
  position: relative;
}
.timing-page .bunny.reaction {
  width: 90px;
  height: 112px;
  margin-right: 16px;
}
.reaction img {
  position: absolute;
  width: 300%;
  max-width: none;
  top: -10px;
}
.reaction-high img {
  left: 0;
}
.reaction-medium img {
  left: -100%;
}
.reaction-low img {
  left: -200%;
}
.countdown {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 0 12px;
  font-size: 12px;
}
.countdown strong {
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  color: #627741;
}
.countdown.urgent strong {
  color: #b84526;
}
.countdown-track {
  position: absolute;
  height: 3px;
  background: #ecdac8;
  bottom: 2px;
  left: 0;
  right: 0;
  overflow: hidden;
  border-radius: 3px;
}
.countdown-track i {
  display: block;
  height: 100%;
  background: #839957;
}
.countdown.urgent .countdown-track i {
  background: #cf623b;
}
.timing-page .work-area {
  height: 175px;
}
.timing-page .work-area .food {
  height: 145px;
  width: 175px;
}
.timing-page .working-recipe {
  margin: 8px 0 12px !important;
}
.timing-page .meter {
  margin-top: 14px;
  height: 34px;
}
.timing-page .verdict {
  padding-top: 13px;
  min-height: 48px;
}
.timing-layout.phase-burst .guide {
  height: 88px;
}
.timing-layout.phase-burst .work-area {
  height: 76px;
}
.timing-layout.phase-burst .work-area .food {
  width: 78px;
  height: 55px;
}
.burst-play {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.burst-pause {
  justify-content: center;
}
.burst-pause .pause-btn {
  width: auto;
  min-height: 42px;
  padding: 8px 18px;
  font-size: 13px;
}
.tap-count {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.tap-count strong {
  color: var(--orange);
  font-size: 34px;
  font-variant-numeric: tabular-nums;
}
.tap-count span {
  font-size: 16px;
}
.rapid-button {
  border-radius: 50%;
  width: 156px;
  height: 156px;
  min-height: 156px;
  flex-direction: column;
  gap: 3px;
  padding: 12px;
  border: 5px solid #ecb17b;
  outline: 3px solid #d86032;
  touch-action: manipulation;
  user-select: none;
}
.rapid-button strong {
  font-size: 33px;
}
.rapid-button span {
  font-size: 11px;
  font-weight: 400;
}
.rapid-button:active {
  transform: scale(0.95);
}
.oven-instructions {
  padding: 15px 16px;
  background: #fff2cd;
  border: 2px solid #af8059;
  border-radius: 18px;
  box-shadow: 4px 4px 0 #c9dedb;
}
.oven-tag {
  display: inline-block;
  padding: 3px 9px;
  margin-bottom: 7px;
  font-size: 11px;
  background: #d6e9ec;
  border-radius: 6px;
  color: #345d6b;
}
.oven-instructions h2 {
  font-size: 21px;
  margin-bottom: 7px;
}
.oven-instructions p {
  font-size: 12px;
  line-height: 1.7;
}
.oven-instructions small {
  display: block;
  margin-top: 9px;
  color: #705b45;
  font-size: 11px;
}
.oven-stage.phase-ready .work-area {
  height: 142px;
  background: #f7e3bd;
  border: 2px solid #cba980;
}
.oven-stage.phase-ready .work-area .food {
  height: 111px;
  width: 144px;
}
.oven-stage.phase-aim .work-area {
  height: 65px;
  flex-direction: row;
  gap: 10px;
  border: 1.5px solid #b6cdd1;
  background: #e2eff0;
}
.oven-stage.phase-aim .work-area .food {
  width: 66px;
  height: 58px;
}
.heat-control {
  padding-top: 4px;
}
.heat-ring {
  position: relative;
  width: 188px;
  height: 188px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid #79583e;
  background: conic-gradient(
    #c2dce7 0% 24%,
    #ffe5a3 24% var(--target-start),
    #f6c48e var(--target-start) var(--target-end),
    #ffe5a3 var(--target-end) 76%,
    #e99776 76% 100%
  );
  box-shadow: 0 0 0 5px #f4e2bf;
}
.heat-center {
  position: absolute;
  inset: 26px;
  border: 2px solid #79583e;
  border-radius: 50%;
  background: #fffaf0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.heat-center .food {
  width: 75px;
  height: 65px;
}
.heat-center strong {
  font-size: 12px;
}
.heat-target {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  color: #8b4d24;
}
.heat-target svg {
  width: 18px;
  height: 18px;
}
.heat-cursor {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  pointer-events: none;
}
.heat-cursor i {
  position: absolute;
  left: 50%;
  top: -2px;
  transform: translateX(-50%);
  width: 17px;
  height: 35px;
  border: 3px solid #603f2c;
  border-radius: 7px 7px 9px 9px;
  background: #fffdf5;
  box-shadow: 0 0 0 2px #fffaf0;
}
.heat-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 14px;
  font-size: 11px;
}
.heat-legend strong {
  color: #8b4d24;
}
.auto-next {
  height: 53px;
  display: grid;
  place-items: center;
  font-weight: 700;
  border-radius: 15px;
  background: #f6e4ca;
  color: #87572e;
}
.result-art {
  height: 245px;
  gap: 0;
}
.completion-confetti {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: -1;
}
.result-art .food {
  width: 148px;
  height: 134px;
  margin: 0 -12px 12px 0;
}
.bunny-sign {
  position: relative;
  width: 154px;
  height: 310px;
  flex-shrink: 0;
}
.bunny-sign-art {
  mix-blend-mode: multiply;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.bunny-sign .sign-review {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 6.5%;
  height: 14.5%;
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: pre-line;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 800;
  color: #60351f;
}

/* Collectible cards reuse food artwork; saved titles are never reset with a round. */
.collection-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  border: 1.5px solid #9bbabd;
  border-radius: 12px;
  background: #e4eff0;
  color: #345968;
  font:
    700 13px "Microsoft YaHei",
    sans-serif;
}
.collection-entry svg {
  width: 19px;
  height: 19px;
}
.collection-entry span {
  padding: 3px 7px;
  border-radius: 6px;
  background: #fffaf0;
  font-size: 11px;
}
.home-collection {
  margin-top: 10px;
}
.award .collection-entry {
  min-height: 54px;
  padding: 10px 14px;
  margin-top: 16px;
  border: 2px solid #b9c8a0;
  background: #e4eccf;
  color: #48634e;
  box-shadow: 0 3px 0 #aaba92;
  font-size: 16px;
  font-weight: 800;
}
.award .collection-entry span {
  padding: 4px 8px;
  color: #48634e;
  font-size: 13px;
}
.award .collection-entry svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.award .collection-entry:active {
  transform: translateY(2px);
  background: #d5e2bd;
  box-shadow: 0 1px 0 #aaba92;
}
.award .collection-entry:focus-visible {
  outline: 3px solid #d99360;
  outline-offset: 4px;
}
.title-collection {
  --cream: #fffaf0;
  --ink: #603f2c;
  --line: #c6ae94;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  padding-bottom: 12px;
  position: relative;
}
.collection-close {
  position: absolute;
  right: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 46px;
  border: 1.5px solid #9bbabd;
  border-radius: 12px;
  background: #e4eff0;
  color: #345968;
}
.collection-close svg {
  width: 19px;
  height: 19px;
}
.title-collection * {
  box-sizing: border-box;
}
.title-collection p,
.title-collection h2,
.title-collection h3 {
  margin: 0;
}
.collection-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: #fff1d1;
  border: 1.5px solid #d1ad77;
  border-radius: 12px;
  font-size: 12px;
  margin-right: 50px;
}
.collection-summary strong {
  font-size: 19px;
  margin-left: 4px;
}
.title-collection .collection-tip {
  margin: 12px 0 14px;
  font-size: 12px;
  color: #6e6a57;
}
.title-card-track {
  gap: 14px;
  padding: 0 7px 13px 2px;
}
.title-card {
  --card-fill: #faedc2;
  --card-edge: #b48b50;
  --card-soft: #fff9e6;
  flex: 0 0 266px;
  min-height: 350px;
  padding: 14px 16px 17px;
  background: var(--card-soft);
  border: 3px solid var(--card-edge);
  box-shadow:
    4px 4px 0 var(--card-fill),
    inset 0 0 0 4px #fffdf6;
  border-radius: 23px 23px 18px 18px;
  text-align: center;
}
.title-card.tone-sky {
  --card-fill: #cde4ee;
  --card-edge: #7babbc;
  --card-soft: #f0f8fa;
}
.title-card.tone-sage {
  --card-fill: #dce9c9;
  --card-edge: #92aa78;
  --card-soft: #f5f8ed;
}
.title-card.tone-peach {
  --card-fill: #f5d8c9;
  --card-edge: #c8957d;
  --card-soft: #fff4ec;
}
.title-card.tone-lilac {
  --card-fill: #e4dcf1;
  --card-edge: #a194b9;
  --card-soft: #f7f3fc;
}
.title-card.tone-herb {
  --card-fill: #cbdcbd;
  --card-edge: #718957;
  --card-soft: #f0f5e9;
}
.title-card.tone-pickle {
  --card-fill: #e8e1b1;
  --card-edge: #9b9652;
  --card-soft: #faf8e8;
}
.title-card.tone-frost {
  --card-fill: #cbdfe6;
  --card-edge: #6f99ad;
  --card-soft: #edf5f8;
}
.title-card.tone-cocoa {
  --card-fill: #e6cdbf;
  --card-edge: #a47d6b;
  --card-soft: #fbf1eb;
}
.title-card.tone-cloud {
  --card-fill: #e0daeb;
  --card-edge: #9c8cad;
  --card-soft: #f6f2fa;
}
.collection-status {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--card-edge);
  border-radius: 20px;
  background: white;
  font-size: 11px;
  font-weight: 700;
}
.title-medal {
  width: 122px;
  height: 122px;
  display: grid;
  place-items: center;
  margin: 14px auto 0;
  border: 3px solid var(--card-edge);
  border-radius: 50%;
  background: var(--card-fill);
  box-shadow: inset 0 0 0 6px #fffdf6;
}
.title-medal .food {
  width: 90px;
  height: 82px;
}
.title-medal > svg {
  width: 43px;
  height: 43px;
  color: #928573;
}
.medal-ribbon {
  position: relative;
  display: inline-block;
  padding: 5px 17px;
  margin-top: -6px;
  border: 1.5px solid var(--card-edge);
  border-radius: 5px;
  background: #fffdf6;
  font-size: 10px;
  letter-spacing: 1px;
}
.title-card h2 {
  margin: 15px 0 11px;
  font-size: 20px;
  line-height: 1.4;
}
.title-dish {
  font-size: 13px;
  font-weight: 700;
}
.title-card .title-recipe {
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.5;
}
.title-card .title-earned-date {
  margin-top: 13px;
  font-size: 10px;
  color: #71604e;
}
.title-unlock-hint {
  font-size: 12px;
  line-height: 1.8;
  color: #7a6d5e;
}
.title-hint-peek {
  min-height: 108px;
  position: relative;
  padding-top: 44px;
}
.title-hint-eye {
  position: absolute;
  top: 0;
  left: calc(50% - 22px);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #48634e;
}
.title-hint-eye::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid #b9c8a0;
  border-radius: 50%;
  background: #e4eccf;
}
.title-hint-eye svg {
  position: relative;
  width: 16px;
  height: 16px;
}
.title-hint-eye:focus-visible {
  outline: 2px solid #48634e;
  outline-offset: 3px;
}
.title-hint-peek.revealed .title-hint-eye::before {
  background: #d5e2bd;
}
.title-hint-peek .title-unlock-hint {
  margin-top: 6px;
}
.title-card.unearned {
  --card-fill: #ece7db;
  --card-edge: #b9b09e;
  --card-soft: #f7f4ed;
}
.recent-titles {
  margin-top: 18px;
}
.recent-titles h3 {
  font-size: 15px;
  padding-bottom: 5px;
}
.recent-titles > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eadfcb;
}
.recent-titles strong,
.recent-titles small {
  display: block;
}
.recent-titles strong {
  font-size: 12px;
}
.recent-titles small,
.recent-titles time {
  font-size: 10px;
  color: #7a6d5e;
  margin-top: 4px;
}
.title-collection .collection-storage-note {
  margin: 17px 0 12px;
  font-size: 10px;
  line-height: 1.7;
  color: #7a6d5e;
}
.history-warning,
.award .history-warning {
  padding: 9px;
  margin: 8px 0;
  background: #ffeadb;
  border: 1px solid #d19e78;
  border-radius: 8px;
  color: #8c3c21;
  font-size: 11px;
  line-height: 1.6;
}

/* Main screens use short cues; optional help carries the full rules. */
.help-trigger {
  margin-left: auto;
}
.music-toggle {
  margin-left: auto;
  border-radius: 50%;
}
.music-toggle + .help-trigger {
  margin-left: 0;
}
.music-toggle svg {
  width: 22px;
  height: 22px;
}
.game-header > div {
  min-width: 0;
}
.home-meta,
.home-meta > span,
.home-meta button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.home-meta {
  gap: 30px;
  margin-top: 6px;
  color: #826d58;
  font-size: 11px;
}
.home-meta button {
  min-height: 44px;
  border: 0;
  background: none;
  color: #526a72;
  font-size: 12px;
}
.home-meta svg,
.swipe-cue svg,
.countdown > span svg {
  width: 17px;
  height: 17px;
}
.swipe-cue,
.countdown > span,
.visual-cue,
.visual-cue > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.swipe-cue {
  color: #517585;
}
.timing-page .guide p {
  font-size: 23px;
  line-height: 1.35;
}
.oven-instructions {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 20px 12px;
}
.oven-instructions > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.oven-instructions > span > svg {
  width: 34px;
  height: 34px;
  padding: 5px;
  border: 1px solid #8bada7;
  border-radius: 10px;
  background: #e2eee4;
  color: #456951;
}
.oven-instructions > svg {
  color: #ad8b64;
}
.visual-cue {
  color: #8b4d24;
}
.rabbit-mark {
  display: block;
  width: 16px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}
.rabbit-mark.is-muted {
  opacity: 0.2;
}
.heat-target {
  display: grid;
  place-items: center;
}
.play-help > div > .rabbit-mark {
  width: 25px;
  height: 27px;
}
.visual-cue > span {
  padding: 4px 9px;
  border: 1px solid #d5a577;
  border-radius: 7px;
  background: #ffead4;
}
.heat-center strong > svg {
  width: 21px;
  height: 21px;
}
.auto-next {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.play-help {
  position: static;
  padding: 4px 0 12px;
  font-family: "Mooncake Rounded", "Microsoft YaHei", sans-serif;
  color: #74634e;
}
.bottom-sheet:has(.play-help) {
  background: #fff9ed;
  border-top: 1px solid #ddc99c;
  box-shadow: 0 -12px 38px #65452926;
}
.bottom-sheet:has(.play-help) .sheet-handle { background: #c9c29b; }
.bottom-sheet:has(.play-help) .sheet-header {
  padding: 0 70px 16px 20px;
  font-family: "Mooncake Rounded", "Microsoft YaHei", sans-serif;
}
.bottom-sheet:has(.play-help) .sheet-title { color: #724b2c; font-size: 21px; }
.bottom-sheet:has(.play-help) .sheet-description { color: #9a876b; font-size: 12px; line-height: 1.6; }
.bottom-sheet:has(.play-help) .sheet-content { padding: 0 20px 24px; scrollbar-width: thin; scrollbar-color: #d5c6a3 transparent; }
.bottom-sheet .help-close { top: 32px; right: 18px; z-index: 11; width: 40px; height: 40px; border: 1px solid #cbd1ae; border-radius: 50%; background: #f2f5e5; color: #71804e; }
/* Keep dialog autofocus from scrolling the phone canvas during its entrance. */
.device-screen:has(.sheet-scroll) { overflow: clip; }
.bottom-sheet:has(.sheet-scroll) { height: 100%; }
.bottom-sheet .sheet-content:has(> .sheet-scroll) { display: flex; flex: 1; min-height: 0; padding: 0; overflow: hidden; }
.sheet-scroll.mobile-page { position: relative; inset: auto; flex: 1; min-height: 0; }
.sheet-scroll .mobile-scroll-content { padding: 0 18px calc(var(--mobile-safe-area-height) + 24px); }
.bottom-sheet:has(.play-help) .sheet-scroll .mobile-scroll-content { padding-inline: 20px; }
.sheet-scroll .mobile-scrollbar-thumb { background: #b6aa8b; }
.help-steps { list-style: none; margin: 0 0 14px; padding: 0; }
.help-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 11px; padding: 14px 0; border-bottom: 1px solid #e9ddc4; }
.help-steps li:first-child { padding-top: 4px; }
.help-steps li:last-child { border-bottom: 0; padding-bottom: 4px; }
.help-step-number { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #dec18c; border-radius: 10px; background: #fbefd5; color: #b7793f; font-size: 12px; font-weight: 700; }
.play-help p {
  margin: 0;
  font-size: 12px;
  line-height: 1.85;
}
.play-help strong {
  display: block;
  color: #765132;
  font-size: 15px;
  margin-bottom: 4px;
}
.play-help > section { display: flex; gap: 10px; padding: 13px 12px; margin-top: 12px; border: 1px solid #dce0c4; border-radius: 14px; background: #f1f4e5; }
.play-help > section > svg { flex: 0 0 19px; width: 19px; height: 19px; margin-top: 3px; color: #849260; }
.play-help > .help-collection-note { border-color: #e7d9b9; background: #fbf1dc; }
.help-storage { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid #e7d9b9; font-size: 11px; color: #97866e; }
.play-help .help-note {
  margin-top: 14px;
  padding: 0 4px;
  color: #a0927c;
  font-size: 10px;
}
.simulated-label {
  display: inline-block;
  vertical-align: middle;
  margin-left: 7px;
  padding: 3px 6px;
  border: 1px solid #a9c2c1;
  border-radius: 5px;
  color: #526f73;
  font-size: 10px;
  font-weight: 400;
}
.diner-comment {
  display: flex;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px dashed #ddcbb5;
}
.diner-avatar {
  flex-shrink: 0;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  background: #dfecee;
  border: 1.5px solid #a7bcc0;
  border-radius: 50%;
  overflow: hidden;
}
.diner-avatar .food {
  width: 34px;
  height: 33px;
}
.diner-tone-1 .diner-avatar {
  background: #e4eccf;
  border-color: #b4bd9b;
}
.diner-tone-2 .diner-avatar {
  background: #f6dcd0;
  border-color: #d3b2a0;
}
.diner-body {
  flex: 1;
  min-width: 0;
}
.diner-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.diner-meta strong {
  color: #816951;
  font-size: 11px;
}
.diner-meta > span {
  font-size: 9px;
  color: #9a8776;
}
.reviews .diner-body p {
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  line-height: 1.6;
}

/* One persistent action dock: aim and burst keep the exact same tap target. */
.steady-craft .craft-screen {
  overflow: hidden;
  touch-action: none;
}
.steady-craft .craft-screen > .page-content {
  height: 100%;
  min-height: 0;
  padding: 0 20px 4px;
  display: grid;
  grid-template-rows: 124px 50px minmax(144px, 178px) 34px minmax(174px, 1fr);
}
.steady-craft .timing-page .guide {
  height: 124px;
}
.steady-craft .guide .bunny {
  width: 120px;
  height: 120px;
  margin-right: 16px;
}
.steady-craft .countdown strong {
  flex: 0 0 120px;
  margin-right: 16px;
  text-align: center;
  white-space: nowrap;
}
.steady-craft .guide .bunny:not(.reaction) img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.steady-craft .guide .bunny.reaction {
  width: 42px;
  height: 84px;
  margin-right: 39px;
}
.steady-craft .guide .reaction img {
  top: 0;
}
.steady-craft .timing-page .work-area {
  position: relative;
  height: 100%;
  min-height: 0;
  flex-direction: row;
  gap: 12px;
  margin-top: 0;
  border: 1.5px solid #cfb491;
}
.preparation-sprite {
  mix-blend-mode: multiply;
}
.craft-artwork {
  width: min(240px, 100%);
  height: 132px;
  flex-shrink: 0;
}
.craft-artwork svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.oven-loading-cue {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px 0;
}
.oven-loading-cue strong {
  font-size: 25px;
  color: #b9502c;
}
.oven-loading-cue span {
  font-size: 14px;
  color: #8e725c;
}
.steady-craft .work-area > span:last-child {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 3px 7px;
  border-radius: 6px;
  background: #fff9efdb;
}
.cold-storage-art {
  width: min(240px, 100%);
  height: 132px;
  object-fit: contain;
  flex-shrink: 0;
}
.steady-craft .work-area .craft-artwork,
.steady-craft .work-area .cold-storage-art {
  height: calc(100% - 12px);
  max-height: 132px;
}
.steady-craft .working-recipe {
  height: auto;
  align-self: center;
  margin: 0 !important;
}
.steady-craft .timing-panel {
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.steady-craft .heat-ring {
  width: 132px;
  height: 132px;
}
.steady-craft .heat-center {
  inset: 21px;
}
.steady-craft .heat-center .food {
  width: 56px;
  height: 47px;
}
.steady-craft .heat-cursor i {
  height: 28px;
  width: 15px;
}
.steady-craft .heat-target {
  top: 1px;
  bottom: auto;
}
.steady-craft .heat-target .rabbit-mark {
  width: 16px;
  height: 19px;
}
.steady-craft .heat-legend {
  margin-top: 10px;
}
.steady-craft .timing-page .verdict {
  min-height: 30px;
  padding-top: 7px;
}
.steady-craft.phase-result .verdict {
  width: 100%;
  min-height: 100px;
  padding: 0;
  gap: 10px;
  text-align: center;
}
.steady-craft.phase-result .verdict strong {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.4px;
}
.steady-craft.phase-result .verdict > span {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.steady-craft > .game-footer {
  height: 158px;
  padding: 4px 20px 34px;
}
.craft-dock {
  position: relative;
  display: grid;
  place-items: center;
  height: 120px;
}
.craft-dock .pause-btn {
  position: absolute;
  left: 0;
  top: 36px;
  width: 44px;
  height: 48px;
  min-height: 48px;
  padding: 8px;
}
.craft-dock .pause-btn:disabled {
  opacity: 0.3;
}
.craft-primary {
  width: 109.2px;
  height: 109.2px;
  min-height: 109.2px;
  --paw-fill: #bd4c26;
  --paw-base: #f5c89d;
  --paw-edge: #d99360;
  position: relative;
  background: none;
  border: 0;
  outline: 0;
  border-radius: 50%;
  padding: 0;
}
.craft-primary:active {
  --paw-fill: #a94120;
  background: none;
}
.craft-primary > .paw-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.craft-primary > strong,
.craft-primary > span {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  white-space: nowrap;
}
.craft-primary strong {
  font-size: 17px;
  line-height: 1.3;
}
.craft-primary strong svg {
  width: 28px;
  height: 28px;
}
.phase-burst .craft-primary strong {
  font-size: 17px;
}
.craft-action-caption {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.craft-action-caption b {
  font-size: 18px;
  color: var(--ink);
}
.craft-action-caption small {
  font-size: 14px;
}
.steady-craft .tap-count strong {
  font-size: 57px;
}
.burst-target {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #68864c;
  font-size: 24px;
  line-height: 1.3;
}
.tap-glove,
.burst-target .tap-glove,
.visual-cue > .tap-glove {
  width: 30px;
  height: 32px;
  flex-shrink: 0;
}
.oven-instructions > span > .tap-glove {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.chill-stage .timing-page .work-area {
  background: #e2f0f4;
  border-color: #95bdc8;
}

.thermal-stage .heat-ring {
  /* Rotate both track and cursor together: score 50 remains the best timing. */
  --ring-offset: 180deg;
  border-color: #82948b;
  box-shadow: 0 0 0 5px #e6ece7;
  background: conic-gradient(
    from var(--ring-offset),
    #e2e8e4 0% var(--target-start),
    #f6c48e var(--target-start) var(--target-end),
    #e2e8e4 var(--target-end) 100%
  );
}
.thermal-stage .heat-center {
  border-color: #becac0;
  background: #fffdf5;
  gap: 5px;
}
.thermal-ring-prompt {
  font-size: 19px;
  font-weight: 900;
  color: #647469;
}
.thermal-stage .on-target .thermal-ring-prompt {
  color: #8b4d24;
}
.thermal-stage .on-target .heat-center {
  background: #fff0df;
}
.thermal-stage .heat-cursor i {
  border-color: #455c50;
}
.thermal-stage .on-target .heat-cursor i {
  border-color: #8b4d24;
  background: #fff0df;
}
.thermal-stage .heat-legend {
  gap: 8px;
}
.chill-stage .craft-primary {
  --paw-fill: #386c81;
  --paw-base: #c5e2e7;
  --paw-edge: #84b6c3;
}
.chill-stage .craft-primary:active {
  --paw-fill: #2d596c;
}
/* BottomSheet is portaled outside .mooncake-app, so it owns these tokens. */
.device-screen:has(.new-title-award) { overflow: clip; }
.bottom-sheet:has(.new-title-award) {
  height: 100%;
  overscroll-behavior: none;
}
.bottom-sheet:has(.new-title-award) .sheet-handle-zone {
  height: 16px;
  flex-shrink: 0;
  visibility: hidden;
  pointer-events: none;
}
.bottom-sheet:has(.new-title-award) .sheet-header {
  flex-shrink: 0;
  padding-right: 72px;
}
.bottom-sheet:has(.new-title-award) .sheet-content {
  display: flex;
  flex: 1;
  min-height: 0;
  padding: 0 18px calc(var(--device-safe-area-bottom, 24px) + 12px);
  overflow: hidden;
}
.new-title-award {
  --cream: #fff9ef;
  --ink: #60351f;
  --orange: #d86032;
  --line: #d2b49c;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  position: static;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 10px;
  width: 100%;
  min-height: 0;
  padding-bottom: 0;
}
.device-screen[data-device="pixel-10"] .bottom-sheet:has(.new-title-award) .sheet-content { padding-bottom: 12px; }
.new-title-award .collection-close {
  top: 14px;
  right: 18px;
  width: 38px;
  height: 38px;
}
.new-title-award .title-card {
  width: min(100%, 294px);
  min-height: 0;
  max-height: 500px;
  height: 100%;
  padding: 32px 16px 58px;
  justify-content: center;
  align-self: center;
  margin: 0 auto;
}
.new-title-award .title-card h2 { margin: 10px 0 8px; }
.new-title-award .collection-storage-note,
.new-title-award .history-warning { margin: 0; }
.new-title-award > .primary {
  margin: 0;
  height: 54px;
}

/* A fixed artwork slot keeps the reveal-to-shop change from moving the controls. */
.selling-reveal {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  isolation: isolate;
  background: var(--cream);
}
.selling-reveal > .plated-mooncakes {
  width: 182px;
  height: 245px;
  margin: 0;
  animation: selling-cake-pop 650ms cubic-bezier(0.2, 0.8, 0.3, 1.2) both;
}
.selling-reveal .completion-confetti {
  animation: selling-confetti-pop 750ms ease-out both;
}
.selling-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.selling-particles i {
  position: absolute;
  left: 50%;
  top: 68%;
  width: 6px;
  height: 10px;
  border-radius: 2px;
  animation: selling-particle 1500ms ease-out var(--particle-delay) both;
}
.shop-scene {
  position: relative;
  width: 196px;
  height: 196px;
  animation: selling-shop-in 350ms ease-out both;
}
.shop-scene > svg {
  display: block;
  width: 90%;
  height: 90%;
  margin: 5%;
  border-radius: 12px;
}
.selling-content .selling-recipe {
  font-size: 12px;
  color: #8b7567;
  margin-top: -12px;
}
.sales-number {
  font-variant-numeric: tabular-nums;
  min-width: 175px;
}
@keyframes selling-cake-pop {
  from {
    opacity: 0;
    transform: scale(0.55) translateY(25px);
  }
  70% {
    opacity: 1;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes selling-confetti-pop {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes selling-particle {
  0% {
    opacity: 0;
    transform: translate(0, 40px) rotate(0deg);
  }
  15% {
    opacity: 1;
  }
  65% {
    opacity: 1;
    transform: translate(var(--particle-x), var(--particle-y))
      rotate(var(--particle-turn));
  }
  100% {
    opacity: 0;
    transform: translate(var(--particle-x), 35px) rotate(var(--particle-turn));
  }
}
@keyframes selling-shop-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.selling-smoke {
  --smoke-core: #8a4bb5;
  --smoke-soft: #c6a0e0;
  opacity: .5;
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 90%, transparent);
}
.selling-smoke.smoke-green { --smoke-core: #58953c; --smoke-soft: #bdd67d; }
.selling-smoke.smoke-soot { --smoke-core: #383438; --smoke-soft: #918b8c; }
.selling-smoke i {
  position: absolute;
  left: calc(50% - 42px);
  top: 42%;
  width: 84px;
  height: 78px;
  border-radius: 48% 60% 42% 55%;
  background: radial-gradient(ellipse at 35% 58%, var(--smoke-core) 6%, var(--smoke-soft) 35%, transparent 70%);
  filter: blur(2px);
  animation: selling-smoke-rise var(--smoke-duration) ease-out var(--smoke-delay) infinite both;
}
.selling-smoke i::before, .selling-smoke i::after {
  content: ""; position: absolute; width: 70%; height: 75%; border-radius: 50%;
  background: radial-gradient(ellipse, var(--smoke-core), var(--smoke-soft) 35%, transparent 72%);
}
.selling-smoke i::before { left: -14%; top: 16%; }
.selling-smoke i::after { right: -11%; top: -12%; }
.cake-bling { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.cake-bling-halo {
  position: absolute; width: 220px; height: 145px; left: calc(50% - 110px); top: calc(50% - 72px);
  border-radius: 50%; background: radial-gradient(ellipse, transparent 35%, #f8dd8238 54%, transparent 72%);
  animation: cake-halo-glow 3s ease-in-out infinite;
}
.cake-bling-star {
  position: absolute; overflow: visible; filter: drop-shadow(0 0 5px #ffd866a0);
  animation: cake-star-twinkle 2.7s ease-in-out var(--bling-delay) infinite both;
}
@keyframes cake-star-twinkle {
  0%, 100% { opacity: .15; transform: translate(-50%, -50%) scale(.35) rotate(-12deg); }
  45% { opacity: 1; transform: translate(-50%, -50%) scale(1.25) rotate(7deg); }
  70% { opacity: .65; transform: translate(-50%, -50%) scale(.7) rotate(15deg); }
}
@keyframes cake-halo-glow {
  0%, 100% { opacity: .35; transform: scale(.95); }
  50% { opacity: .85; transform: scale(1.05); }
}
@keyframes selling-smoke-rise {
  0% {
    opacity: 0;
    transform: translate(var(--smoke-x), 25px) scale(.35);
  }
  22% {
    opacity: .78;
  }
  55% {
    opacity: .52;
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--smoke-x) + var(--smoke-drift)), -120px) scale(1.65) rotate(18deg);
  }
}
/* These explicitly requested product-result effects keep looping in reduced-motion mode too. */
.result-art {
  height: 310px;
  align-items: flex-end;
  background: var(--cream);
  isolation: isolate;
}
.result-art .food {
  margin-bottom: 18px;
}
.bunny-sign {
  background: var(--cream);
}
.plated-mooncakes {
  width: 166px;
  height: 124.5px;
  flex-shrink: 0;
  mix-blend-mode: multiply;
  margin: 0 0 12px;
}

.start-selling-button {
  position: relative;
}
.selling-click-arrows {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.selling-click-arrow {
  position: absolute;
  top: -51px;
  width: 43px;
  height: 50px;
}
.selling-click-arrow.left {
  left: 22px;
  transform: rotate(-20deg);
}
.selling-click-arrow.right {
  right: 22px;
  transform: rotate(20deg);
}
.selling-click-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 3px 0 #b96a3524);
  animation: selling-arrow-bounce 1100ms ease-in-out infinite;
}
@keyframes selling-arrow-bounce {
  0%,
  100% {
    transform: translateY(-4px);
  }
  50% {
    transform: translateY(3px);
  }
}

/* Selected courtyard home concept; gameplay and device chrome stay unchanged. */
.home-courtyard {
  position: relative;
  height: 100%;
  width: 100%;
  container-type: size;
  background: #fff5e4;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.courtyard-stage {
  --courtyard-art-lift: 30px;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff5e4;
}
.courtyard-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.courtyard-title-art {
  position: absolute;
  top: 12%;
  left: 50%;
  width: 72%;
  height: auto;
  transform: translateX(-50%) scale(1.2);
  pointer-events: none;
}
.courtyard-credit {
  position: absolute;
  top: calc(90px - var(--courtyard-art-lift));
  left: 12%;
  right: 12%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 1.5;
  font-family: "Mooncake Rounded", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #967b61;
  font-weight: 400;
}
.courtyard-credit > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.courtyard-actions {
  position: absolute;
  top: 77%;
  left: 11%;
  right: 11%;
  bottom: 7.5%;
  display: grid;
  grid-template-rows: minmax(0, 1.2fr) minmax(0, 1fr) 30px;
  gap: 6px;
}
.courtyard-actions > button {
  position: relative;
  z-index: 0;
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-family: KaiTi, STKaiti, "Microsoft YaHei", serif;
  font-weight: 800;
  transition: transform 150ms ease;
}
.courtyard-actions > button:active {
  transform: translateY(2px) scale(0.98);
}
.courtyard-start {
  align-self: end;
  aspect-ratio: 614 / 168;
  padding: 0;
  color: #fff8dc;
  font-size: clamp(26px, 7.6cqw, 32px);
  text-shadow: 0 2px 0 #b85b2f;
}
.courtyard-start-art {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.courtyard-collection {
  height: 130%;
  align-self: start;
  color: #654226;
  font-size: clamp(16px, 5cqw, 21px);
  gap: 6px !important;
}
.courtyard-actions > .courtyard-collection {
  min-height: 57.2px;
}
.courtyard-collection > .courtyard-book-art {
  width: 32px;
  height: 26px;
  flex-shrink: 0;
}
.courtyard-collection > span:not(.courtyard-button-art) {
  border-radius: 16px;
  padding: 3px 8px;
  color: #fff9ed;
  background: #9eaa79;
  font-size: 13px;
  font-family: "Microsoft YaHei", sans-serif;
}
.courtyard-meta,
.courtyard-meta > span,
.courtyard-meta button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.courtyard-meta {
  transform: translateY(18px);
  gap: 16px;
  font-size: 12px;
  color: #755133;
}
.courtyard-meta button {
  background: none;
  border: 0;
  color: inherit;
  min-height: 30px;
  font-size: 13px;
}
.courtyard-meta svg {
  width: 19px;
  height: 19px;
}
.courtyard-meta .courtyard-music[aria-pressed="false"] {
  opacity: .65;
}
.courtyard-meta .courtyard-music {
  position: relative;
  width: 30px;
  height: 30px;
  min-height: 30px;
  flex: 0 0 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
}
.courtyard-music::before {
  content: "";
  position: absolute;
  box-sizing: border-box;
  width: 19px;
  height: 19px;
  left: 5.5px;
  top: 5.5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  pointer-events: none;
}
.courtyard-meta .courtyard-music > svg {
  width: 13px;
  height: 13px;
  animation: courtyard-music-spin 5s linear infinite;
  animation-play-state: paused;
  transform-origin: center;
}
.courtyard-music[aria-pressed="true"] > svg { animation-play-state: running; }
@keyframes courtyard-music-spin { to { transform: rotate(360deg); } }
.courtyard-button-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  display: flex;
  mix-blend-mode: multiply;
  clip-path: inset(0 round 999px);
}
/* Scale the illustrated caps uniformly; only the straight center changes width. */
.courtyard-button-art > svg {
  display: block;
  height: 100%;
  overflow: hidden;
}
.courtyard-button-art > .button-art-cap {
  flex: 0 0 auto;
  width: auto;
  aspect-ratio: 420 / 310;
}
.courtyard-button-art > .button-art-center {
  flex: 1 1 0;
  min-width: 0;
  width: 0;
  margin-inline: -0.5px;
}
.courtyard-version {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: #806047;
  font-size: 10px;
  line-height: 1.4;
  pointer-events: none;
}
.mobile-app-viewport[data-platform="android"] .courtyard-version {
  bottom: 14px;
}

/* The courtyard continues into a quiet, paper-and-wood ingredient workbench. */
@font-face {
  font-family: "Mooncake Rounded";
  src: url("./fonts/mooncake-rounded-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mooncake Rounded";
  src: url("./fonts/mooncake-rounded-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
.recipe-header,
.recipe-page,
.recipe-footer {
  font-family: "Mooncake Rounded", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.mooncake-app:has(.recipe-header) {
  background: linear-gradient(180deg, #fff5e500 26px, #fff5e550 45px, #fff5e5cc 66px, #fff5e5 92px), url("./art/home-courtyard-v4.webp") center top / 100% auto no-repeat;
  background-color: #fff5e5;
}
.recipe-header {
  background: transparent;
  padding: 8px 18px;
  gap: 10px;
}
.recipe-header h1 {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.recipe-header .icon-btn {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fffdf5;
  box-shadow: inset 0 0 0 1px #e4c7a0;
}
.recipe-header .icon-btn svg {
  width: 22px;
  height: 22px;
}
.recipe-page {
  background: #fff5e5;
}
.recipe-page .page-content {
  padding: 0 18px calc(var(--flow-footer-height) + var(--mobile-safe-area-height) + 24px);
}
.recipe-welcome {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 12px 0 14px;
  border-radius: 22px;
  background: linear-gradient(110deg, #f8e7c7, #fff5e5 80%);
}
.recipe-welcome-copy > span {
  font-size: 10px;
  letter-spacing: 2px;
  color: #937443;
}
.recipe-welcome-copy p {
  margin: 6px 0 5px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}
.recipe-welcome-copy small {
  font-size: 10px;
  line-height: 1.6;
  color: #8a7253;
  white-space: nowrap;
}
.recipe-welcome .bunny.bust {
  width: 98px;
  height: 98px;
  transform: translateX(-12px);
  background: transparent;
  isolation: auto;
  mix-blend-mode: multiply;
}
.recipe-welcome .bunny.bust svg {
  mix-blend-mode: normal;
}
.recipe-page .ingredient-group {
  --ingredient-card: #fff7e8;
  --ingredient-border: #e1c39a;
  --ingredient-shadow: #e8caa1;
  --ingredient-inset: #fffcf5;
  --ingredient-circle: #f7e5c9;
  padding: 8px 10px 6px;
  margin-top: 8px;
  border: 1px solid #dfbd8d;
  border-radius: 18px;
  background: linear-gradient(#fff3de, #f8dfba);
  box-shadow: 0 3px 0 #e8caa1, inset 0 0 0 3px #fff8e8;
}
.recipe-page .ingredient-group-filling {
  --ingredient-card: #f5fbfb;
  --ingredient-border: #bed4d6;
  --ingredient-shadow: #c7dadd;
  --ingredient-inset: #fafffe;
  --ingredient-circle: #e6f0ef;
  border-color: #bbd0d3;
  background: linear-gradient(#f1f8f8, #dfedf0);
  box-shadow: 0 3px 0 #c7dadd, inset 0 0 0 3px #f6fcfa;
}
.recipe-page .ingredient-group-addition {
  --ingredient-card: #f8fbf0;
  --ingredient-border: #c8d4b3;
  --ingredient-shadow: #d8dfc3;
  --ingredient-inset: #fcfff5;
  --ingredient-circle: #ebf0de;
  border-color: #c5cdab;
  background: linear-gradient(#f7f9ed, #e8eed8);
  box-shadow: 0 3px 0 #d8dfc3, inset 0 0 0 3px #f8faed;
}
.recipe-page .group-label {
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  min-height: 22px;
}
.recipe-page .group-label h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  white-space: nowrap;
}
.recipe-page .group-label h2 small {
  font-size: 10px;
  font-weight: 400;
  color: #978061;
}
.recipe-step {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid #ddbc8f;
  border-radius: 50%;
  color: #987041;
  font-size: 11px;
  font-weight: 500;
  background: #fff6dd;
}
.recipe-group-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.recipe-picked {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #78875a;
  white-space: nowrap;
}
.recipe-picked svg {
  width: 12px;
  height: 12px;
}
.recipe-page .swipe-cue {
  display: flex;
  gap: 1px;
  color: #ad8c62;
}
.recipe-page .swipe-cue svg {
  width: 11px;
  height: 11px;
}
.recipe-page .skin-grid {
  gap: 7px;
}
.recipe-page .ingredient,
.recipe-page .ingredient-track .ingredient {
  height: 80px;
  padding: 4px 2px 5px;
  gap: 2px;
  border: 1px solid var(--ingredient-border);
  border-radius: 13px;
  background: var(--ingredient-card);
  box-shadow: 0 2px 0 var(--ingredient-shadow), inset 0 0 0 2px var(--ingredient-inset);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.recipe-page .ingredient-track .ingredient {
  width: 92px;
}
.recipe-page .ingredient:active {
  transform: translateY(2px);
}
.recipe-page .ingredient.selected {
  border: 2px solid #d57a3c;
  background: #ffe8bd;
  box-shadow: 0 2px 0 #bc814c, inset 0 0 0 2px #fff3d7;
}
.recipe-page .ingredient-art {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ingredient-circle);
}
.recipe-page .ingredient.selected .ingredient-art {
  background: #f5d7a0;
}
.recipe-page .ingredient .food {
  width: 52px;
  height: 52px;
  mix-blend-mode: multiply;
}
.recipe-page .ingredient .food-natural {
  mix-blend-mode: normal;
}
.recipe-page .selected-mark {
  top: 3px;
  right: 3px;
  width: 16px;
  height: 16px;
  background: #c87536;
}
.recipe-page .selected-mark svg {
  width: 11px;
  height: 11px;
}
.recipe-page .ingredient-track {
  padding-bottom: 12px;
  gap: 8px;
}
.recipe-footer {
  position: relative;
  height: 100%;
  padding: 10px 20px 28px;
  background: #fff8e9;
  border-top: 1px solid #e5cba4;
  box-shadow: 0 -10px 20px #fff5e5;
}
.recipe-footer .recipe-summary {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  min-height: 25px;
  margin: 0 0 9px;
  padding: 3px 0;
  background: none;
}
.recipe-summary-label {
  color: #9a805f;
  font-size: 10px;
  flex-shrink: 0;
}
.recipe-footer .recipe-summary strong {
  font-size: 12px;
  font-weight: 700;
  color: #765030;
}
.recipe-begin {
  position: relative;
  z-index: 0;
  height: 53px;
  min-height: 53px;
  border: 0;
  padding: 0 20px;
  border-radius: 999px;
  background: none;
  font-family: inherit;
  font-size: 23px;
  font-weight: 700;
  color: #fff9e6;
  text-shadow: 0 1px 0 #b76530;
}
.recipe-begin:active {
  background: none;
}

/* The same courtyard palette continues through the fixed crafting layout. */
.mooncake-app:has(.craft-header) {
  background-color: #fff5e5;
  background-image: linear-gradient(180deg, #fff5e500 26px, #fff5e550 45px, #fff5e5cc 66px, #fff5e5 92px), url("./art/home-courtyard-v4.webp");
  background-position: center top;
  background-size: 100% 100%, 100% auto;
  background-repeat: no-repeat;
}
.craft-header,
.steady-craft {
  font-family: "Mooncake Rounded", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.craft-header {
  padding: 8px 18px;
  gap: 10px;
  background: transparent;
}
.craft-header > div {
  min-width: 0;
}
.craft-header h1 {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.craft-header .icon-btn {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fffdf5;
  box-shadow: inset 0 0 0 1px #e4c7a0;
}
.craft-header .icon-btn svg {
  width: 22px;
  height: 22px;
}
.craft-header p {
  margin-top: 7px;
}
.craft-steps {
  display: flex;
  align-items: center;
  gap: 5px;
}
.craft-step {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 5px;
  border: 1px solid transparent;
  border-radius: 20px;
  color: #988369;
  font-size: 11px;
  line-height: 18px;
  white-space: nowrap;
}
.craft-step i {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 50%;
  background: #efe5d4;
  font-style: normal;
  font-size: 10px;
}
.craft-step i svg {
  width: 12px;
  height: 12px;
}
.craft-step.is-current {
  color: #a94f28;
  border-color: #e5bb88;
  background: #ffead0;
  font-weight: 700;
}
.craft-step.is-current i {
  background: #c56d37;
  color: #fffaf0;
}
.craft-step.is-done {
  color: #718157;
}
.craft-step.is-done i {
  color: #526c41;
  background: #e4ebd5;
}
.craft-header-cold .craft-step.is-current {
  color: #386c77;
  border-color: #b7d3d5;
  background: #e4f0ee;
}
.craft-header-cold .craft-step.is-current i {
  background: #5d8b91;
}
.steady-craft {
  --bench-top: #fff0d5;
  --bench-bottom: #f3d9b2;
  --bench-edge: #d7b181;
  --bench-shadow: #e7c9a0;
  --bench-inset: #fff6e7;
  background: #fff5e5;
}
.steady-craft.craft-step-1 {
  --bench-top: #f5f4e3;
  --bench-bottom: #e5e9cc;
  --bench-edge: #c5cba5;
  --bench-shadow: #d6ddbc;
  --bench-inset: #fafbec;
}
.steady-craft.chill-stage {
  --bench-top: #edf8f7;
  --bench-bottom: #d5e9ed;
  --bench-edge: #abcbd0;
  --bench-shadow: #c5dfe1;
  --bench-inset: #f6fcfa;
}
.steady-craft .craft-screen {
  background: transparent;
}
.steady-craft.thermal-stage .craft-screen > .page-content {
  grid-template-rows: 124px 50px minmax(130px, 156px) 34px minmax(196px, 1fr);
}
.steady-craft .countdown {
  padding: 0 0 12px;
}
.steady-craft .guide {
  border-bottom: 0;
  justify-content: flex-end;
  gap: 12px;
}
.steady-craft .guide p {
  position: relative;
  padding: 12px 13px;
  border: 1px solid #ddb88d;
  border-radius: 19px;
  background: #fffdf5;
  box-shadow: 0 3px 0 #eddac0, inset 0 0 0 3px #fff8e9;
  color: #70502f;
  font-size: 22px;
  font-weight: 700;
}
.steady-craft .guide p::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  right: -6px;
  top: 50%;
  border-top: 1px solid #ddb88d;
  border-right: 1px solid #ddb88d;
  background: #fffdf5;
  transform: translateY(-50%) rotate(45deg);
}
.steady-craft .guide .bunny.bust {
  isolation: auto;
  mix-blend-mode: multiply;
}
.steady-craft .guide .bunny.bust svg {
  mix-blend-mode: normal;
}
.steady-craft .craft-status-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.steady-craft .craft-status-actions > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  flex: 0 0 84px;
  color: #8b7154;
  font-size: 12px;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 20px;
  background: #efe6d3;
}
.steady-craft .countdown strong {
  font-weight: 700;
}
.steady-craft .countdown-track {
  height: 4px;
  background: #eadcc6;
}
.steady-craft .countdown-track i {
  background: #95a56c;
  border-radius: inherit;
}
.steady-craft .countdown.urgent .countdown-track i {
  background: #d97545;
}
.steady-craft .timing-page .work-area {
  margin-top: 6px;
  height: calc(100% - 6px);
  border: 1px solid var(--bench-edge);
  border-radius: 26px 26px 18px 18px;
  background: radial-gradient(ellipse at 50% 40%, #fffdf2 0%, var(--bench-top) 65%, var(--bench-bottom));
  box-shadow: inset 0 0 0 5px var(--bench-inset), inset 0 0 0 6px #d2b18c40, 0 5px 0 var(--bench-shadow), 0 6px 0 var(--bench-edge);
}
.steady-craft .workbench-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #957753;
  font-size: 11px;
  z-index: 1;
}
.steady-craft .workbench-tag i {
  border-bottom: 1px solid #c8a276;
  font-size: 15px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
.steady-craft .work-area .craft-artwork,
.steady-craft .work-area .cold-storage-art {
  width: min(254px, 100%);
  height: calc(100% - 20px);
  max-height: 154px;
}
.steady-craft .work-area > span:last-child {
  right: 11px;
  bottom: 9px;
  border: 1px solid var(--bench-edge);
  border-radius: 20px;
  background: #fffaf0ed;
  padding: 2px 8px;
  font-size: 10px;
}
.steady-craft .working-recipe {
  color: #907459;
  font-size: 11px;
  padding-top: 3px;
  letter-spacing: 0.4px;
}
.steady-craft .timing-panel {
  position: relative;
  padding: 10px 20px;
  border-radius: 24px 24px 0 0;
  background: #fffdf5;
  box-shadow: inset 1px 1px 0 #e2c9a5, inset -1px 0 0 #e2c9a5;
}
.steady-craft.chill-stage .timing-panel {
  background: #f7fbf4;
  box-shadow: inset 1px 1px 0 #c4d9cf, inset -1px 0 0 #c4d9cf;
}
.steady-craft .oven-instructions {
  padding: 10px 0 14px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
}
.steady-craft .oven-instructions > span {
  font-size: 13px;
  gap: 9px;
  flex: 1;
}
.steady-craft .oven-instructions > span > svg:not(.tap-glove) {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border-color: #b8c9a3;
  background: #edf2dc;
  color: #70845a;
}
.steady-craft .oven-instructions > span > .tap-glove {
  width: 38px;
  height: 38px;
}
.steady-craft .oven-instructions > svg {
  width: 12px;
  color: #c3ad8a;
}
.steady-craft .meter-labels {
  font-size: 11px;
}
.steady-craft .meter-labels strong {
  color: #895126;
  font-size: 17px;
  font-weight: 700;
}
.steady-craft .meter {
  border-color: #b78e63;
  box-shadow: 0 3px 0 #ecd9b9;
}
.steady-craft .craft-action-caption {
  flex-wrap: wrap;
  gap: 3px 7px;
  line-height: 1.5;
}
.steady-craft.thermal-stage.phase-aim .verdict {
  display: none;
}
.steady-craft .craft-action-caption b {
  display: none;
}
.steady-craft .craft-action-caption small {
  color: #947a5c;
  font-size: 12px;
}
.steady-craft .tap-count strong {
  font-weight: 700;
}
.steady-craft.phase-burst .timing-panel {
  padding-bottom: 32px;
}
.steady-craft.phase-burst .burst-play {
  gap: 4px;
}
.steady-craft.phase-burst .tap-count {
  line-height: 1;
  margin-bottom: 4px;
}
.steady-craft.phase-burst .verdict {
  min-height: 26px;
  padding-top: 4px;
}
.steady-craft > .game-footer {
  height: 130px;
  padding: 0 20px 30px;
  background: #fff5e5;
}
.steady-craft .craft-screen > .page-content {
  padding-bottom: 0;
}
.steady-craft .craft-dock {
  height: 100px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  padding: 8px 13px 18px;
  border-radius: 0 0 24px 24px;
  background: #fffdf5;
  box-shadow: inset 1px -1px 0 #e2c9a5, inset -1px 0 0 #e2c9a5, 0 4px 0 #e9d9bc;
}
.steady-craft.chill-stage .craft-dock {
  background: #f7fbf4;
  box-shadow: inset 1px -1px 0 #c4d9cf, inset -1px 0 0 #c4d9cf, 0 4px 0 #dbe5d4;
}
.steady-craft .craft-primary {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: min(290px, 100%);
  height: 70px;
  min-height: 70px;
  padding: 0 16px 0 10px;
  border-radius: 999px;
  font-family: inherit;
  color: #fffbee;
  text-shadow: 0 1px 1px #ad592a;
  background: #efae56;
  box-shadow: 0 4px 0 #b66a35, 0 6px 0 #eedbc0;
  transition: transform 100ms, box-shadow 100ms;
  touch-action: manipulation;
  transform: translateY(-20px);
}
.steady-craft.chill-stage .craft-primary {
  background: #ceddab;
  color: #46694c;
  text-shadow: 0 1px 0 #f5ffe2;
  box-shadow: 0 4px 0 #789367, 0 6px 0 #dce5ce;
}
.steady-craft .craft-primary > span {
  position: relative;
  inset: auto;
  transform: none;
}
.steady-craft .craft-primary > .courtyard-button-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  mix-blend-mode: normal;
}
.steady-craft .craft-primary > .craft-button-seal {
  display: block;
  width: 49px;
  height: 49px;
  flex: 0 0 49px;
  border-radius: 50%;
  background: #ffefca;
  box-shadow: 0 1px 0 #ac622d, inset 0 0 0 2px #fff6de;
  --paw-base: transparent;
  --paw-fill: #bd652f;
}
.steady-craft.chill-stage .craft-button-seal {
  background: #f3f8df;
  --paw-fill: #5f8257;
  box-shadow: 0 1px 0 #7c945e, inset 0 0 0 2px #ffffed;
}
.steady-craft .craft-button-seal .paw-face {
  width: 100%;
  height: 100%;
}
.steady-craft .craft-primary > .craft-button-copy {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}
.steady-craft .craft-button-copy strong {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0.5px;
}
.steady-craft .craft-button-copy small {
  font-size: 10px;
  line-height: 1.3;
  font-weight: 400;
}
.steady-craft .craft-button-arrow {
  margin-left: auto;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}
.steady-craft .craft-primary > .rapid-tap-guide {
  position: absolute;
  left: calc(83% - 28.8px);
  top: calc(54% - 20.16px);
  width: 72px;
  height: 72px;
  overflow: visible;
  pointer-events: none;
  z-index: 3;
}
.rapid-tap-hand {
  transform-origin: 40px 28px;
  animation: rapid-glove-tap 260ms linear infinite;
  filter: drop-shadow(0 3px 2px #824d2b2e);
}
.rapid-tap-rings { transform-origin: 40px 28px; animation: rapid-tap-ripple 260ms linear infinite; }
.rapid-tap-rays { animation: rapid-tap-flash 260ms linear infinite; }
@keyframes rapid-glove-tap {
  0%, 100% { transform: translate(7px, 14px) rotate(8deg); }
  22%, 44% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes rapid-tap-ripple {
  0%, 21% { opacity: 0; transform: scale(1); }
  22% { opacity: .8; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.8); }
}
@keyframes rapid-tap-flash { 0%, 22%, 55%, 100% { opacity: 0; } 38% { opacity: 1; } }
.steady-craft .craft-primary:disabled {
  opacity: 0.55;
}
.steady-craft .craft-primary:active:not(:disabled) {
  transform: translateY(-17px);
  box-shadow: 0 1px 0 #b66a35;
}
.steady-craft .craft-primary strong {
  font-weight: 700;
}
.steady-craft .craft-status-actions .pause-btn {
  position: relative;
  left: auto;
  top: auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  flex: 0 0 36px;
  padding: 8px;
  border: 1px solid #dec7a6;
  border-radius: 50%;
  background: #fffdf5;
  color: #8b7153;
  box-shadow: 0 2px 0 #edddc4;
}
.steady-craft .craft-status-actions .pause-btn:disabled {
  opacity: 0.3;
}

/* One quiet traditional paper treatment shared by every craft phase. */
.steady-craft {
  --console-wash: #fffdf5cc;
}
.steady-craft.chill-stage {
  --console-wash: #f7fbf4cc;
}
.steady-craft .timing-panel,
.steady-craft .craft-dock {
  background-image: linear-gradient(var(--console-wash), var(--console-wash)), url("./art/craft-cloud-pattern-v1.webp");
  background-size: auto, 320px 320px;
  background-repeat: repeat;
  background-position: center bottom;
}
.steady-craft .craft-dock {
  background-position: center top;
}

/* Product debut and shop continue the courtyard's paper, celadon and gold. */
.mooncake-app:has(.selling-page) {
  background: linear-gradient(180deg, #fff5e500 26px, #fff5e550 45px, #fff5e5cc 66px, #fff5e5 92px), url("./art/home-courtyard-v4.webp") center top / 100% auto no-repeat;
  background-color: #fff5e5;
}
.selling-page {
  background: transparent;
  font-family: "Mooncake Rounded", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.mooncake-app .flow-screen:has(.selling-page) {
  background: transparent;
}
.selling-content {
  position: relative;
  min-height: 100%;
  padding: 84px 24px 38px;
  gap: 0;
}
.selling-music-toggle {
  position: absolute;
  top: 35px;
  right: 22px;
}
.selling-music-toggle .music-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fffdf5;
  box-shadow: inset 0 0 0 1px #e4c7a0;
}
.selling-content > .edition {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 22px;
  color: #967a55;
  font-size: 11px;
  letter-spacing: 3px;
}
.selling-content > .edition::before,
.selling-content > .edition::after {
  content: "";
  width: 25px;
  height: 1px;
  background: #d8c19c;
}
.selling-content h1 {
  margin: 8px 0 13px;
  color: #734626;
  font-size: 29px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1px;
}
.selling-product-page .selling-content h1 { color: #e66b2d; }
.selling-page .selling-art {
  flex: 0 0 245px;
  border: 0;
  border-radius: 0;
  background: #fff5e5;
  box-shadow: none;
}
.selling-page .selling-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("./art/selling-ornamental-frame-v1.webp") center / contain no-repeat;
  pointer-events: none;
}
.selling-page .selling-reveal {
  background: transparent;
  isolation: auto;
}
.selling-page .selling-reveal > .plated-mooncakes {
  position: relative;
  z-index: 2;
  width: min(198.4px, 60.8%);
  height: 148.8px;
}
.selling-page .selling-reveal .completion-confetti {
  z-index: 1;
  object-fit: contain;
  transform-origin: 50% 80%;
  animation: ornate-confetti-once 2400ms ease-out 1 both;
}
@keyframes ornate-confetti-once {
  0% { opacity: 0; transform: translateY(14px) scale(0.88); }
  18% { opacity: 1; transform: translateY(0) scale(1); }
  65% { opacity: 1; transform: translateY(-5px) scale(1); }
  100% { opacity: 0; transform: translateY(-14px) scale(1); }
}
.selling-product-info {
  width: 100%;
  padding: 20px 0 16px;
  display: grid;
  gap: 7px;
  text-align: center;
}
.selling-content .selling-product-info h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #724526;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}
.dish-title-ornament {
  width: 32px;
  height: 24px;
  flex: 0 0 32px;
}
.dish-title-ornament:last-child {
  transform: scaleX(-1);
}
.selling-content .selling-recipe {
  margin: 0;
  color: #947c61;
  font-size: 12px;
  line-height: 1.5;
}
.selling-sales-card {
  width: 100%;
  padding: 12px 17px 14px;
  border: 1px solid #e4ceb0;
  border-radius: 20px;
  background: #fffcf3;
  box-shadow: 0 3px 0 #eadcc3;
  text-align: left;
}
.selling-sales-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: #8e714f;
  font-size: 12px;
}
.selling-sales-caption small {
  font-size: 10px;
  color: #aa9275;
}
.selling-content .sales-number {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  padding: 8px 0 10px;
  color: #ce6735;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}
.selling-content .sales-number small {
  color: #a58e71;
  font-size: 19px;
  font-weight: 400;
}
.selling-sales-track {
  height: 5px;
  border-radius: 9px;
  background: #eee5d2;
  overflow: hidden;
}
.selling-sales-track i {
  display: block;
  height: 100%;
  background: #a4b78a;
  border-radius: inherit;
}
.selling-content .selling-next {
  position: relative;
  isolation: isolate;
  flex: 0 0 58px;
  height: 58px;
  min-height: 58px;
  margin-top: 55px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  background: none;
  color: #fffbea;
  font-family: inherit;
  font-size: 23px;
  font-weight: 700;
  text-shadow: 0 1px 0 #b56432;
  box-shadow: 0 3px 0 #c68a54;
}
.selling-shop-page .selling-next {
  color: #4f6d49;
  text-shadow: 0 1px 0 #f6fbe5;
  box-shadow: 0 3px 0 #9aaf81;
}
.selling-page .selling-click-arrow {
  top: -45px;
  width: 34px;
  height: 40px;
}
.selling-page .selling-click-arrow.left {
  left: 38px;
}
.selling-page .selling-click-arrow.right {
  right: 38px;
}
.selling-page .selling-next:active {
  transform: translateY(2px);
}

/* 众众点评: a warm paper review page with a yellow-green brand accent. */
.review-header,
.result-page,
.result-footer {
  font-family: "Mooncake Rounded", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.review-header {
  padding: 8px 20px;
  border-bottom: 1px solid #e8dec6;
}
.review-header h1 { font-size: 24px; font-weight: 700; color: #52603b; }
.review-brand { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.review-brand img { width: 36px; height: 36px; flex: 0 0 36px; }
.review-header .icon-btn {
  width: 40px; height: 40px; min-width: 40px; flex-shrink: 0;
  border: 1px solid #d8d7b8; border-radius: 50%; background: #fffdf4; color: #758451;
}
.result-page .page-content { padding-top: 18px; }
.result-page .result-art {
  position: relative;
  height: 248px;
  padding: 10px 10px 0;
  border: 1px solid #c9b481;
  border-radius: 25px 25px 22px 22px;
  background: radial-gradient(ellipse at 50% 65%, #fffdf570, #eee9d340), linear-gradient(#fffaf0e8, #fffaf0e8), url('./art/craft-cloud-pattern-v1.webp') center / 280px;
  box-shadow: inset 0 0 0 4px #fff9e6, inset 0 0 0 5px #b9c29c, 0 3px 0 #e4d6b7;
  isolation: isolate;
}
.review-frame { position: absolute; inset: 0; pointer-events: none; z-index: 3; border-radius: inherit; }
.review-frame::before {
  content: ""; position: absolute; inset: 9px; border: 1px solid #d6c69c80; border-radius: 19px;
}
.review-frame-corner { position: absolute; width: 48px; height: 48px; }
.review-frame-corner.corner-tl { top: -2px; left: -2px; }
.review-frame-corner.corner-tr { top: -2px; right: -2px; transform: scaleX(-1); }
.review-frame-corner.corner-bl { bottom: -2px; left: -2px; transform: scaleY(-1); }
.review-frame-corner.corner-br { bottom: -2px; right: -2px; transform: scale(-1); }
.review-frame-crest { position: absolute; width: 66px; height: 21px; bottom: -8px; left: calc(50% - 33px); background: #fff9ed; border-radius: 50%; }
.review-art-caption {
  /* Plate center: centered art pair minus half the 117px bunny and its 12px plate shift. */
  position: absolute; top: 35px; left: calc(50% - 70.5px); color: #a48b59;
  transform: translateX(-50%); text-align: center; white-space: nowrap;
  font-size: 11px; letter-spacing: 2px;
}
.review-art-caption::after {
  content: ""; display: block; width: 30px; height: 2px; margin: 9px auto 0; background: #d6c78d;
}
.result-page .bunny-sign {
  width: 117px; height: 236px; background: transparent; mix-blend-mode: multiply;
}
.result-page .bunny-sign .sign-review { font-size: 10px; line-height: 1.45; }
.result-page .review-bunny-workbench { height: 222px; margin-bottom: 12px; mix-blend-mode: normal; }
.review-bunny-workbench .bunny-sign-art {
  position: absolute; bottom: 0; left: -14px; width: 145px; height: 178px;
  mix-blend-mode: multiply;
}
.result-page .review-bunny-workbench .sign-review {
  flex-direction: column;
  margin: 0; box-sizing: border-box;
  top: 3px; left: -1px; right: -1px; height: 38px; padding: 4px 7px;
  border: 1px solid #ccb486; border-radius: 12px 12px 12px 3px;
  background: linear-gradient(135deg, #fffcf1, #f5ecd8);
  box-shadow: inset 0 0 0 2px #fffdf1, 0 2px 0 #e8dcc3;
  color: #887047; font-weight: 600;
}
.sign-review-staggered > span:first-child { transform: translateX(-6px); }
.sign-review-staggered > span:last-child { transform: translateX(6px); }
.workbench-blink { opacity: 0; animation: workbench-blink 5.6s steps(1, end) infinite; }
.workbench-reaction-figure { animation: none; transform: none; }
@keyframes workbench-blink {
  0%, 95%, 99%, 100% { opacity: 0; }
  96% { opacity: 1; }
}
.review-mooncake { position: relative; width: 156px; height: 117px; flex-shrink: 0; margin-bottom: 12px; transform: translate(-12px, -12px); }
.result-page .review-mooncake .plated-mooncakes { width: 156px; height: 117px; margin: 0; transform: none; }
.review-mooncake-effect { position: absolute; inset: -64px -20px -12px; pointer-events: none; }
.review-mooncake-effect .selling-smoke {
  opacity: .3;
  mask-image: radial-gradient(ellipse at 50% 60%, #000 30%, transparent 72%);
}
.result-page .result-product-info { margin: 20px 0 18px; gap: 7px; }
.result-page .product-title { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 23px; }
.result-page .product-title .dish-title-ornament { width: 24px; height: 20px; }
.result-page .working-recipe { color: #a18b70; font-size: 12px; }
.result-page .stats {
  gap: 0; border: 1px solid #e0d9bc; border-radius: 18px; overflow: hidden;
  background: #fbf8e9; box-shadow: 0 3px 0 #ebe3ca; margin-bottom: 23px;
}
.result-page .stats > div { position: relative; overflow: hidden; isolation: isolate; background: transparent; border: 0; border-radius: 0; padding: 13px 3px 11px; }
.result-page .stats > div::after {
  content: ""; position: absolute; z-index: 2; pointer-events: none;
  top: -30%; left: -85%; width: 65%; height: 160%;
  background: linear-gradient(90deg, transparent, #fffef0aa 44%, #fffefaec 52%, #f4df9d66 65%, transparent);
  transform: translateX(0) skewX(-18deg); opacity: 0;
  animation: review-stat-sheen 6s ease-in-out infinite;
  animation-delay: .6s;
}
.result-page .stats > div:nth-child(2)::after { animation-delay: 1.45s; }
.result-page .stats > div:nth-child(3)::after { animation-delay: 2.3s; }
@keyframes review-stat-sheen {
  0% { transform: translateX(0) skewX(-18deg); opacity: 0; }
  2% { opacity: .85; }
  12% { transform: translateX(320%) skewX(-18deg); opacity: .85; }
  14%, 100% { transform: translateX(320%) skewX(-18deg); opacity: 0; }
}
.result-page .stats > div + div { border-left: 1px solid #e6dec5; }
.result-page .stats > div:nth-child(2) { background: #edf0db80; }
.result-page .stats span { color: #87795b; margin-bottom: 7px; }
.result-page .stats strong { font-size: 27px; }
.result-page .stats > div:nth-child(2) strong { color: #7a9054; }
.result-page .stats .stars { color: #b4a44b; }
.result-page .review-section-title { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 0 0 12px; }
.result-page .review-section-title::before { content: ""; width: 4px; height: 17px; border-radius: 3px; background: #b6bf72; }
.result-page .simulated-label { margin-left: auto; background: #eff1df; color: #87926c; border: 0; border-radius: 6px; padding: 3px 7px; font-size: 10px; font-weight: 400; }
.result-page .reviews { border: 1px solid #e9dfcb; border-radius: 18px; background: #fffdf6; padding: 0 13px; }
.result-page .diner-comment { padding: 15px 0; }
.result-page .diner-comment:last-child { border-bottom: 0; }
.result-page .diner-avatar { width: 36px; height: 36px; flex: 0 0 36px; background: #f7eedc; border: 1px solid #e4d5b9; }
.result-page .diner-meta strong { font-size: 12px; color: #6c654c; }
.result-page .diner-meta > span { font-size: 10px; color: #b5a78e; }
.result-page .reviews .diner-body p { font-size: 12px; line-height: 1.8; color: #74634c; }
.result-page .award { border: 1px solid #e4d3aa; background: linear-gradient(135deg, #fcf1d6, #f6edd9); border-radius: 20px; padding: 18px 12px; }
.result-actions .primary { border: 1px solid #c55c30; box-shadow: inset 0 2px 0 #ffb76b80, 0 3px 0 #bd6436; border-radius: 18px; }
.result-actions .secondary { background: #f2f4e4; color: #657846; border-color: #bec8a0; box-shadow: inset 0 2px 0 #fffef1, 0 3px 0 #c7cdae; border-radius: 18px; }

/* The same osmanthus medal flanks titles in the result, unlock and collection views. */
.achievement-name,
.award .achievement-name {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 0; font-size: inherit; line-height: 1.45;
}
.achievement-name .achievement-name-text,
.award .achievement-name .achievement-name-text { display: block; min-width: 0; margin: 0; font-size: inherit; text-wrap: balance; }
.achievement-medal { display: block; width: 18px; height: 21.6px; flex: 0 0 18px; filter: drop-shadow(0 1px 0 #e8d8b5); }
.achievement-medal:last-child { transform: scaleX(-1); }
.title-card h2 .achievement-name { gap: 6px; font-size: 18px; }
.title-card .achievement-medal { width: 14.4px; height: 17.4px; flex-basis: 14.4px; }
.title-card.unearned h2 { min-height: 29px; }

/* Collectible card jackets: paper-and-gold, moonlit alchemy, and the final coronation. */
.title-card {
  position: relative; isolation: isolate; overflow: hidden;
  --ornament-soft: #f1e2bb;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  min-height: 500px; padding: 64px 16px 60px; border-width: 1.5px;
  border-radius: 25px; color: #654529;
  background: radial-gradient(ellipse at 50% 18%, #fffdf4d9, transparent 64%), var(--card-soft);
  box-shadow: inset 0 0 0 4px #fffcf1, inset 0 0 0 5px var(--card-edge), 0 4px 0 var(--card-fill), 0 6px 14px #55432812;
}
.title-card > :not(.title-card-art) { position: relative; z-index: 1; flex-shrink: 0; }
.title-card > h2, .title-card > .title-hint-peek { width: 100%; }
.title-card .title-medal { border-width: 1.5px; box-shadow: inset 0 0 0 5px #fffaf1, 0 0 0 4px var(--card-soft), 0 0 0 5px var(--card-edge); }
.title-card .collection-status { font-size: 10px; letter-spacing: .6px; background: #fffaf1; color: #80603b; }
.title-card .medal-ribbon { margin-top: 10px; background: #fffaf1; border-radius: 12px 3px; color: #947341; letter-spacing: 2px; }
.title-card-art { position: absolute; inset: 0; z-index: 0; color: var(--card-edge); pointer-events: none; }
.title-card-art::before { content: ""; position: absolute; inset: 10px; border: 1px solid currentColor; border-radius: 19px; opacity: .3; }
.title-card-art::after { content: ""; position: absolute; top: 63px; bottom: 73px; left: 13px; right: 13px; border-left: 1px dashed currentColor; border-right: 1px dashed currentColor; opacity: .22; }
.title-filigree { position: absolute; width: 54px; height: 54px; }
.filigree-tl { left: 0; top: 0; }
.filigree-tr { right: 0; top: 0; transform: scaleX(-1); }
.filigree-bl { left: 0; bottom: 0; transform: scaleY(-1); }
.filigree-br { right: 0; bottom: 0; transform: scale(-1); }
.title-card-footer-art { position: absolute; bottom: 10px; width: calc(100% - 34px); height: 64px; left: 17px; }
.title-card.card-mystic {
  --card-edge: #9b7baf; --card-fill: #d5c5e4; --card-soft: #f5eef8; --ornament-soft: #ddcbe9;
  color: #554061;
  background: radial-gradient(ellipse at 10% 100%, #b3cda04d, transparent 47%), radial-gradient(ellipse at 90% 80%, #c7a6e352, transparent 45%), linear-gradient(145deg, #fbf6fa, #eee2f4);
}
.title-card.card-mystic .medal-ribbon { color: #795b8b; border-color: #baa4c7; background: #f5edf7; }
.title-card.card-mystic .title-medal { background: radial-gradient(#faf6ed, #d9c6e7); }
.title-card.card-mystic .title-earned-date { color: #8b7194; }
.title-card.card-imperial {
  --card-edge: #dcb96b; --card-fill: #86733c; --card-soft: #254943; --ornament-soft: #506747;
  color: #fff0ba;
  background: radial-gradient(ellipse at 50% 28%, #68734b 0, #244d43 42%, #17352f 100%);
  border-color: #e2c777;
  box-shadow: inset 0 0 0 4px #28483d, inset 0 0 0 5px #dfbf74, 0 4px 0 #ab8d4f, 0 8px 18px #34453533;
}
.title-card.card-imperial .collection-status { background: #f5df9b; border-color: #fcebc1; color: #5c4c24; }
.title-card.card-imperial .title-medal { background: radial-gradient(#758254, #193f37); box-shadow: inset 0 0 0 4px #355c46, 0 0 0 4px #224638, 0 0 0 5px #e4c97c, 0 0 25px #efcf7733; }
.title-medal > .collection-crown { width: 116px; height: 116px; color: #eed490; }
.title-card.card-imperial .medal-ribbon { background: #dfc078; color: #394d33; border-color: #f7e1a4; }
.title-card.card-imperial h2 { color: #ffedb5; text-shadow: 0 1px 4px #0005; }
.title-card.card-imperial .title-dish { color: #edcf87; }
.title-card.card-imperial .title-recipe,
.title-card.card-imperial .title-earned-date { color: #c9d0ad; }
.title-card.card-imperial .title-hint-eye { background: #e9d694; color: #435844; }
.title-card.card-imperial .title-unlock-hint { color: #fff0bc; }
.imperial-starlight {
  position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(circle at 17% 33%, #fff4c4 0 1px, transparent 2px), radial-gradient(circle at 83% 45%, #ffe6a8 0 1px, transparent 2px), radial-gradient(circle at 77% 14%, #fff4c4 0 1px, transparent 2px);
}
.title-card.card-sealed { --card-edge: #c5bfac; --ornament-soft: #e7e2d4; background: #f7f5ee; }
.card-sealed .title-card-footer-art { opacity: .35; }
.title-badge-image { position: relative; display: block; width: 141.6px; height: 141.6px; }
.title-badge-image > img { position: absolute; display: block; max-width: none; object-fit: contain; }
.title-card .title-medal:has(.title-badge-image) { width: 146px; height: 146px; border-color: transparent; background: transparent; box-shadow: none; }
.title-badge-image.is-locked { filter: grayscale(1) brightness(1.35) contrast(.65); opacity: .72; }
.title-card:has(.painted-card-frame) { border: 0; background: #fbf3df; box-shadow: 0 4px 10px #74572d19; border-radius: 17px; }
.title-card .painted-card-frame { display: flex; flex-direction: column; border-radius: inherit; overflow: hidden; }
.title-card .painted-card-frame::before, .title-card .painted-card-frame::after { content: none; }
.painted-card-frame > svg { display: block; width: 100%; overflow: hidden; }
.painted-frame-top { aspect-ratio: 4; height: auto; flex: 0 0 auto; }
.painted-frame-bottom { aspect-ratio: 3.2; height: auto; flex: 0 0 auto; }
.painted-frame-middle { height: 0; min-height: 0; flex: 1 1 0; }
.painted-card-frame.art-sealed { filter: grayscale(.8); opacity: .5; }
.title-card.card-imperial:has(.painted-card-frame) { background: #123e31; }
.title-card.card-imperial.unearned:has(.painted-card-frame) {
  background: #f7f7f4; color: #817e74; filter: grayscale(1); opacity: 1;
}
.title-card.card-imperial.unearned .painted-card-frame { opacity: .28; }
.title-card.card-imperial.unearned h2,
.title-card.card-imperial.unearned .title-unlock-hint { color: #817e74; text-shadow: none; }
.title-card.card-imperial.unearned .collection-status,
.title-card.card-imperial.unearned .medal-ribbon,
.title-card.card-imperial.unearned .title-hint-eye {
  background: #fafaf7; border-color: #c9c5bc; color: #817e74;
}

/* Review revision: a fixed collection page, with only the card rail moving. */
.bottom-sheet:has(.collection-one-page) { height: 100%; overscroll-behavior: none; }
.bottom-sheet:has(.collection-one-page) .sheet-handle-zone { height: 14px; flex-shrink: 0; visibility: hidden; pointer-events: none; }
.bottom-sheet:has(.collection-one-page) .sheet-header { flex-shrink: 0; min-height: 44px; box-sizing: border-box; align-content: center; padding: 0 68px 10px 18px; }
.bottom-sheet:has(.collection-one-page) .sheet-content {
  display: flex; flex: 1; min-height: 0; overflow: hidden;
  padding: 0 18px calc(var(--device-safe-area-bottom, 24px) + 10px);
}
.collection-one-page {
  position: static; display: flex; flex-direction: column; gap: 6px;
  width: 100%; height: 100%; min-height: 0; padding: 0; overflow: hidden;
}
.collection-one-page > :not(.collection-cards-area) { flex-shrink: 0; }
.collection-one-page > .collection-close { top: 10px; right: 18px; width: 36px; height: 36px; }
.collection-one-page .collection-summary { margin-right: 0; padding: 6px 10px; font-size: 13px; }
.collection-one-page .collection-summary strong { font-size: 18px; }
.collection-one-page .collection-tip { margin: 0; text-align: center; font-size: 12px; line-height: 18px; }
.collection-cards-area { flex: 1 1 0; min-height: 0; overflow: hidden; }
.collection-cards-area .mobile-carousel { height: 100%; overflow-y: hidden; }
.collection-cards-area .title-card-track { height: 100%; align-items: center; padding: 0 6px; gap: 12px; }
.collection-card-slot { flex: 0 0 280px; max-width: calc(100% - 18px); height: var(--collection-card-height); position: relative; content-visibility: auto; }
.collection-one-page .title-card { width: 100%; height: 100%; min-height: 0; margin: 0; padding: 28px 16px 38px; transform: none; }
.collection-one-page .collection-status { margin: 0; padding: 3px 10px; font-size: 12px; line-height: 16px; }
.collection-one-page .title-card .title-medal { width: var(--collection-badge-size); height: var(--collection-badge-size); margin: 6px auto 0; }
.collection-one-page .title-badge-image { width: 100%; height: 100%; }
.collection-one-page .medal-ribbon { margin-top: 6px; padding: 3px 10px; font-size: 12px; line-height: 16px; }
.collection-one-page .title-card h2 { margin: 8px 0 4px; font-size: 18px; line-height: 25px; }
.collection-one-page .title-dish { font-size: 14px; line-height: 20px; }
.collection-one-page .title-recipe { margin-top: 4px; font-size: 12px; line-height: 18px; }
.collection-one-page .title-earned-date { margin-top: 8px; font-size: 12px; line-height: 18px; }
.collection-one-page .title-hint-peek { min-height: 0; padding-top: 34px; }
.collection-one-page .title-hint-eye { width: 32px; height: 28px; left: calc(50% - 16px); }
.collection-one-page .title-unlock-hint { font-size: 12px; line-height: 18px; }
.collection-compact .title-card { padding-top: 16px; padding-bottom: 28px; }
.collection-one-page .recent-titles { margin: 0; }
.collection-one-page .recent-titles h3 { font-size: 13px; line-height: 20px; padding-bottom: 2px; }
.collection-one-page .recent-titles > div { padding: 3px 0; gap: 4px; }
.collection-one-page .recent-titles > div > span { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.collection-one-page .recent-titles strong { font-size: 13px; white-space: nowrap; }
.collection-one-page .recent-titles small { font-size: 12px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collection-one-page .recent-titles time { font-size: 12px; margin: 0; flex-shrink: 0; }
.collection-one-page .collection-storage-note { margin: 0; font-size: 12px; line-height: 18px; }
.collection-one-page > .secondary { margin: 0; min-height: 42px; height: 42px; padding: 8px 16px; font-size: 15px; }

html, body, #root { width: 100%; height: 100%; overflow: hidden; }
body { min-width: 0; background: #fff9ef; }
.wechat-screen.device-screen { position: fixed; left: 0; top: 0; width: 100%; height: 100%; border-radius: 0; overflow: hidden; --device-safe-area-bottom: 24px; }
.wechat-screen { -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
.wechat-screen img { -webkit-user-drag: none; }
/* WeChat renders its own navigation bar above the web viewport. The 30px
   host-control clearance belongs to the Xiaohongshu mini-tool only. */
.wechat-screen .game-safe-viewport .flow-screen:not(:has(.home-courtyard)),
.wechat-screen .game-safe-viewport .flow-fixed-header { top: 0; }
.wechat-screen .game-safe-viewport .flow-stack:has(> .flow-fixed-header) > .flow-scenes {
  top: var(--flow-header-height);
}
.wechat-screen .game-safe-viewport .flow-stack:has(> .flow-fixed-header) > .flow-scenes > .flow-screen:has(.home-courtyard) {
  top: calc(0px - var(--flow-header-height));
}
/* The product pages have their own old top clearance in addition to the
   shared 30px inset. Put the music control above the introductory copy. */
.wechat-screen .selling-content { padding-top: 52px; }
.wechat-screen .selling-music-toggle { top: 12px; }
.courtyard-start { height: 78px; }
.home-button-art > * { height: 100%; }
.painted-frame-top { height: 80px; }
.painted-frame-bottom { height: 100px; }
.courtyard-start-label { font-size: 30px; }
.courtyard-collection-label { font-size: 19px; }
.export-download { border: 0; font: inherit; }
@supports (aspect-ratio: 1) {
  .courtyard-start { height: auto; }
  .painted-frame-top, .painted-frame-bottom { height: auto; }
}
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .wechat-screen { --device-safe-area-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 24px)); }
}
@media (max-height: 700px) {
  .new-title-award .title-card { padding: 24px 16px 40px; }
  .new-title-award .title-card .title-medal { width: 100px; height: 100px; margin-top: 8px; }
  .new-title-award .title-badge-image { width: 97px; height: 97px; }
  .new-title-award .medal-ribbon { margin-top: 6px; }
  .new-title-award .title-card h2 { margin: 8px 0 5px; }
  .new-title-award .title-card h2 .achievement-name { font-size: 16px; }
  .new-title-award .title-dish { font-size: 12px; }
  .new-title-award .title-card .title-recipe { margin-top: 4px; }
  .new-title-award .title-card .title-earned-date { margin-top: 7px; }
}
