:root {
  color-scheme: light;
  --paper: #f2e4bf;
  --gold: #d6ab65;
  --ink: #695127;
  --scene: url('assets/optimized/ui/direction/landscape.webp');
  /* 可调布局参数：只改这里，不要改下面的组件规则 */
  --home-title-top: 8.768%;
  --home-title-width: 78.462%;
  --home-video-top: 35.782%;
  --home-video-width: 100%;
  --home-video-scale: 1;
  --home-video-offset-x: 0px;
  --home-video-offset-y: 0px;
  --home-panel-width: 97.436%;
  --home-panel-bottom: 12px;
  --home-panel-scale: 1;
  --top-frame-width: 97.436%;
  --top-frame-top: 3px;
  --pot-scale: 1;
  --pot-offset-x: 0px;
  --pot-offset-y: 0px;
  --pot-body-scale: 1; --pot-body-offset-x: 0px; --pot-body-offset-y: 0px;
  --firewood-scale: 1; --firewood-offset-x: 0px; --firewood-offset-y: 0px;
  --fire-scale: .88; --fire-offset-x: 0px; --fire-offset-y: 6%;
  --ingredient-scale: 1;
  --details-paper-width: 89.744%;
  --cook-panel-width: 97.436%;
  --rsvp-panel-width: 92.308%;
  --font-ui: 'Noto Sans CJK SC', 'Source Han Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  --font-display: 'Noto Serif CJK SC', 'Source Han Serif SC', 'SimSun', serif;
  --font-number: Georgia, 'Times New Roman', 'Noto Serif CJK SC', serif;
  font-family: var(--font-ui);
}
* { box-sizing: border-box; letter-spacing: 0; }
html, body { margin: 0; min-height: 100%; scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; }
body { overflow-x: hidden; }
body { color: var(--paper); background: #314b49 var(--scene) center / cover fixed; }
button, input { font: inherit; }
button { border: 0; background: none; color: inherit; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 2px solid #95e8ff; outline-offset: 4px; }
button:disabled { cursor: default; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .instruction { font-family: var(--font-display); }
img, video { display: block; max-width: 100%; }
img { user-select: none; -webkit-user-drag: none; }
.hidden, [hidden] { display: none !important; }
.layout-debug { position: fixed; right: 10px; top: 10px; z-index: 100; color: #f4e6bd; font-size: 11px; font-family: var(--font-ui); }
.layout-debug[hidden] { display: none !important; }
.layout-debug-toggle { padding: 8px 10px; border: 1px solid #d6ab65; border-radius: 4px; background: #102c38eF; color: #f4e6bd; box-shadow: 0 2px 8px #06171c88; }
.layout-debug-panel { width: 210px; max-height: min(82svh, 760px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; margin-top: 6px; padding: 10px; border: 1px solid #d6ab65aa; border-radius: 5px; background: #102733f2; box-shadow: 0 4px 18px #06171ccc; }
.layout-debug-panel.is-collapsed { display: none; }
.layout-debug-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.layout-debug-head > div { display: flex; gap: 4px; }
.layout-debug-head button { padding: 2px 5px; border: 1px solid #d6ab6599; color: #f4e6bd; border-radius: 3px; }
.layout-debug-panel label { display: block; margin: 7px 0; color: #e9d8ae; }
.layout-debug-panel output { float: right; color: #8fe5ff; font-variant-numeric: tabular-nums; }
.layout-debug-panel input { display: block; width: 100%; margin-top: 3px; accent-color: #58cbed; }
.layout-debug-panel details { margin-top: 9px; border-top: 1px solid #d6ab6544; padding-top: 7px; }
.layout-debug-panel summary { cursor: pointer; color: #f4e6bd; }
.layout-debug-panel details input[type="text"] { min-width: 0; padding: 4px 5px; border: 1px solid #d6ab6577; border-radius: 3px; background: #071b25; color: #f4e6bd; font-size: 11px; }
.layout-debug-panel p { margin-top: 8px; color: #b6c3bc; font-size: 9px; line-height: 1.4; }
.layout-debug-panel code { color: #8fe5ff; }
#app { width: min(100%, 420px); margin: auto; }
.screen { position: relative; height: 100svh; min-height: 740px; isolation: isolate; overflow: hidden; background: #314b49; }
.scene { position: absolute; inset: 0; z-index: -3; background: var(--scene) center / cover no-repeat; pointer-events: none; }
.home-scene { background-position: 52% 50%; }
.veil { position: absolute; inset: 0; z-index: -2; background: linear-gradient(#17334018 28%, #17334000 50%, #0b252b88); pointer-events: none; }
.intro-blur { position: absolute; inset: 0; z-index: 0; opacity: 0; background: transparent; backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); pointer-events: none; transition: opacity .75s ease, backdrop-filter .75s ease, -webkit-backdrop-filter .75s ease; }
.intro.is-playing .intro-blur { opacity: 1; background: #0b263214; backdrop-filter: blur(8px) saturate(.84); -webkit-backdrop-filter: blur(8px) saturate(.84); }
.ui-top { position: absolute; top: var(--top-frame-top); left: calc((100% - var(--top-frame-width)) / 2); width: var(--top-frame-width); height: auto; z-index: 5; pointer-events: none; }
.edge-line { position: absolute; inset: 34px 11px 15px; border-inline: 1px solid #eeb25165; z-index: 1; pointer-events: none; }
.paper, .panel { position: absolute; isolation: isolate; }
.surface { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: -1; pointer-events: none; }
.kicker { font-size: 9px; font-weight: 500; }
.blue-button, .primary { position: relative; display: grid; place-items: center; width: 282px; max-width: 100%; aspect-ratio: 798 / 147; font-size: 17px; color: #d5f6ff; text-shadow: 0 1px 4px #042739; isolation: isolate; }
.blue-button > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: -1; pointer-events: none; }
.primary { background: url('assets/optimized/ui/direction/blue-button.webp') center / contain no-repeat; }
.blue-button:hover, .primary:hover { filter: brightness(1.1); }
.blue-button:active, .primary:active { filter: brightness(.95); }

.home-title { left: calc((100% - var(--home-title-width)) / 2); top: var(--home-title-top); width: var(--home-title-width); aspect-ratio: 767 / 374; color: var(--ink); text-align: center; z-index: 2; }
.home-title .kicker { padding-top: 17.32%; font-size: 8px; color: #95753d; }
.home-title h1 { margin-top: 9px; font-family: var(--font-display); font-size: 23px; line-height: 1.22; font-weight: 600; letter-spacing: .08em; }
.names { margin-top: 10px; font-family: var(--font-ui); font-size: 12px; color: #6b522b; letter-spacing: .08em; }
.names i { padding-inline: 9px; font: 16px Georgia, serif; color: #b18744; }
.home-cinema { position: absolute; top: calc(var(--home-video-top) + var(--home-video-offset-y)); left: calc(50% + var(--home-video-offset-x)); width: var(--home-video-width); aspect-ratio: 16 / 9; transform: translateX(-50%) scale(var(--home-video-scale)); transform-origin: center center; z-index: 3; overflow: visible; background: transparent; box-shadow: none; transition: background .75s ease, box-shadow .75s ease, transform .35s ease; }
.home-cinema::before, .home-cinema::after { content: ''; position: absolute; left: -3%; right: -3%; height: 19%; z-index: 2; pointer-events: none; }
.home-cinema::before { top: -1px; background: linear-gradient(#173340cc, #17334000); opacity: 0; transition: opacity .75s ease; }
.home-cinema::after { bottom: -1px; background: linear-gradient(#17334000, #0b252bcc); opacity: 0; transition: opacity .75s ease; }
.intro.is-playing .home-cinema::before, .intro.is-playing .home-cinema::after { opacity: 1; }
.intro.is-playing .home-cinema { box-shadow: 0 -3px 0 #1e3439, 0 -4px 0 #dca44d99, 0 3px 0 #1e3439, 0 4px 0 #dca44d99; }
.hero-video { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .75s ease; }
.intro.is-playing .hero-video { opacity: 1; }
.hero-video-bg { position: absolute; inset: -13% -7%; width: 114%; height: 126%; object-fit: cover; filter: blur(25px) brightness(.58) saturate(.8); opacity: 0; z-index: 0; pointer-events: none; transition: opacity .75s; }
.intro.is-playing .hero-video-bg { opacity: .72; }
.hero-fallback { display: none; position: absolute; inset: 0; padding: 16px; place-content: center; text-align: center; font-size: 22px; background: #183c39; }
.hero-fallback small { font-size: 13px; margin-top: 8px; }
.cinema-detail { position: absolute; inset: calc(100% + 17px) 0 auto; text-align: center; font-size: 10px; color: #fff1d4; text-shadow: 0 1px 5px #15302c; }
.home-panel { left: 50%; bottom: var(--home-panel-bottom); width: var(--home-panel-width); transform: translateX(-50%) scale(var(--home-panel-scale)); transform-origin: center bottom; aspect-ratio: 1140 / 768; text-align: center; z-index: 4; }
.home-panel .kicker { margin-top: 18.158%; color: #c9b583; font-size: 8px; }
.home-panel h2 { margin: 9px 0 8px; font-size: 21px; line-height: 1.2; font-weight: 500; }
.home-panel .sub { font-size: 11px; color: #c6c9b7; }
.home-panel .blue-button { width: 74.21%; margin: 15px auto 0; }
.audio-note { margin-top: 9px; font-size: 9px; color: #bdc6b6; }
.skip { position: absolute; bottom: 24px; right: 24px; z-index: 10; display: none; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; background: #122c39cc; font-size: 13px; }
.skip img { width: 18px; height: 18px; filter: invert(1); }
.music-toggle { position: absolute; z-index: 10; top: 154px; right: 24px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #d6ab6566; border-radius: 50%; background: #122c3955; }
.music-toggle img { width: 16px; height: 16px; filter: invert(85%) sepia(50%) saturate(400%); }

.cook-scene { background-image: url('assets/optimized/ui/direction/cooking-scene.webp'); filter: blur(2.5px) saturate(.8) brightness(.83); transform: scale(1.035); }
.cook .veil { background: linear-gradient(#132e3660, #132e3620 33%, #0b242954 73%); }
.cook-heading { position: absolute; top: 8.2%; left: 20%; right: 20%; min-height: 72px; padding: 12px 10px 11px; z-index: 6; text-align: center; text-shadow: 0 2px 5px #183127; background: #102d3ccc; border: 1px solid #d8a54d99; box-shadow: 0 0 0 2px #102d3c99, 0 4px 10px #10212c55; }
.cook-heading::before, .cook-heading::after { content: ''; position: absolute; left: 10px; right: 10px; height: 1px; background: linear-gradient(90deg, transparent, #e4b25d, transparent); opacity: .85; }
.cook-heading::before { top: 5px; }
.cook-heading::after { bottom: 5px; }
.cook-heading .kicker { font-size: 8px; color: #e3c47a; letter-spacing: .16em; }
.cook-heading h1 { margin-top: 7px; font-family: var(--font-display); font-size: 23px; font-weight: 500; line-height: 1.2; letter-spacing: .1em; color: #f2dfab; }
.cook-heading p:last-child { margin-top: 7px; font-family: var(--font-ui); font-size: 11px; color: #d8d6b7; letter-spacing: .08em; }
.game-board { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.ingredient { position: absolute; width: 27.179%; aspect-ratio: 388 / 402; transform: scale(var(--ingredient-scale)); transform-origin: center center; z-index: 4; text-align: center; cursor: grab; touch-action: none; pointer-events: auto; filter: drop-shadow(0 4px 6px #081f2977); }
.ingredient img, .ingredient small { pointer-events: none; }
.ingredient .medallion { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ingredient .food { position: absolute; left: 21%; top: 17%; width: 58%; height: 56%; object-fit: contain; filter: drop-shadow(0 2px 3px #0009); }
.ingredient .food.fish { transform: rotate(-14deg); left: 18%; width: 64%; }
.ingredient small { position: absolute; left: 9%; right: 9%; top: 82%; font-family: var(--font-ui); font-size: 10px; line-height: 1; color: #6c4822; white-space: nowrap; font-weight: 600; letter-spacing: .04em; }
.ingredient.used { opacity: .25; cursor: default; }
.ingredient.dragging { cursor: grabbing; z-index: 25; }
.game-board:has(.dragging) { z-index: 15; }
.mushroom { left: 36.41%; top: 22.038%; }
.meat { left: 6.41%; top: 33.768%; }
.fish-slot { right: 6.41%; top: 33.768%; }
.heart-slot { left: 3.59%; top: 50.948%; }
.rice { right: 3.59%; top: 50.948%; }
.pot-target { position: absolute; left: calc(14.359% + var(--pot-offset-x)); top: calc(53.436% + var(--pot-offset-y)); width: 71.282%; aspect-ratio: 1254 / 1254; transform: scale(var(--pot-scale)); transform-origin: center center; z-index: 2; filter: drop-shadow(0 15px 9px #12202299); }
.pot-target .pot-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.pot-target .firewood-layer { z-index: 1; transform: translate(var(--firewood-offset-x), var(--firewood-offset-y)) scale(var(--firewood-scale)); transform-origin: center center; }
.pot-target .fire-layer { z-index: 2; mix-blend-mode: screen; transform: translate(var(--fire-offset-x), var(--fire-offset-y)) scale(var(--fire-scale)); transform-origin: center bottom; }
.pot-target .pot-body-layer { z-index: 3; transform: translate(var(--pot-body-offset-x), var(--pot-body-offset-y)) scale(var(--pot-body-scale)); transform-origin: center center; }
.pot-target.cooking { animation: potCook .48s ease-in-out infinite alternate; }
@keyframes potCook { from { transform: rotate(-1deg) translateY(0); } to { transform: rotate(1deg) translateY(-3px); } }
.cook-panel { left: 50%; bottom: 9px; width: var(--cook-panel-width); transform: translateX(-50%); aspect-ratio: 1140 / 528; text-align: center; z-index: 5; pointer-events: none; }
.cook-panel .instruction { margin-top: 20%; font-size: 17px; line-height: 1.2; }
.ingredient-count { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 14px; }
.ingredient-count i { display: block; width: 18px; height: 18px; transform: rotate(45deg); border: 1px solid #d9ba7377; background: #cbb17c0c; box-shadow: inset 0 0 0 3px #132d39; }
.ingredient-count i.filled { background: #dfba67; }
.ingredient-count span { font-size: 10px; color: #cfbc90; margin-left: 7px; }
.cook-result-overlay { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px; background: #08161c76; backdrop-filter: blur(11px) saturate(.72); -webkit-backdrop-filter: blur(11px) saturate(.72); }
.result { position: relative; isolation: isolate; width: min(calc(100vw - 48px), 360px); min-width: 0; text-align: center; color: #634d2c; border: 30px solid transparent; border-image: url('assets/optimized/ui/direction/details-paper.webp') 110 fill stretch; padding: 24px 4px 8px; }
.result-kicker { color: #967038; font-size: 11px; }
.result-food-icon { width: min(58%, 190px); aspect-ratio: 1; object-fit: contain; margin: 5px auto 0; filter: drop-shadow(0 5px 5px #4b321c55); animation: resultFoodIn .45s ease-out both; }
.result h3 { margin-top: 10px; font-size: 22px; line-height: 1.4; font-weight: 500; }
.result-blessing { margin: 12px 0 18px; font-size: 13px; line-height: 1.7; }
.result .primary { width: 260px; margin: auto; font-size: 15px; }
.modal-open { overflow: hidden; }
@keyframes resultFoodIn { from { opacity: 0; transform: scale(.78) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.details { height: 100svh; min-height: 0; overflow: hidden; }
.rsvp-scene { filter: saturate(.72) brightness(.76) blur(1px); transform: scale(1.02); background-position: 60% 50%; }
.details .veil { background: linear-gradient(#092d3f00 12%, #122f3820 33%, #09232c91); }
.rsvp-page { position: relative; width: 116.28%; margin-left: -8.14%; padding: 166px 0 16px; transform: scale(.86); transform-origin: top center; }
.rsvp-heading { position: absolute; top: 78px; left: 22%; right: 22%; min-height: 70px; padding: 13px 10px 12px; text-align: center; text-shadow: 0 2px 4px #1d3840; background: #102d3ccc; border: 1px solid #d8a54d99; box-shadow: 0 0 0 2px #102d3c99, 0 4px 10px #10212c55; z-index: 4; }
.rsvp-heading::before, .rsvp-heading::after { content: ''; position: absolute; left: 10px; right: 10px; height: 1px; background: linear-gradient(90deg, transparent, #e4b25d, transparent); opacity: .85; }
.rsvp-heading::before { top: 5px; }
.rsvp-heading::after { bottom: 5px; }
.rsvp-heading .kicker { font-size: 8px; color: #e3c47a; letter-spacing: .16em; }
.rsvp-heading h1 { font-family: var(--font-display); font-size: 23px; margin-top: 7px; font-weight: 500; line-height: 1.2; letter-spacing: .1em; color: #f2dfab; }
.photo-stub { position: absolute; right: 5.385%; top: 130px; width: 17.692%; aspect-ratio: 69 / 81; transform: rotate(7deg); padding: 6px 6px 15px; background: #eee1bf; box-shadow: 0 3px 7px #17383e44; z-index: 5; color: #6e644d; }
.photo-stub span { border: 1px solid #c9b987; background: #d8c6a1; display: grid; place-content: center; width: 100%; height: 100%; font-size: 9px; text-align: center; line-height: 1.7; }
.details-paper { position: relative; width: 92%; aspect-ratio: 1050 / 948; margin: auto; color: #634d2c; }
.details-layout { padding: 9.5% 7% 0; }
.info-date { padding: 0 2px 12px; border-bottom: 1px solid #9b783366; }
.field-label { font-family: 'Noto Serif CJK SC', 'Source Han Serif SC', 'SimSun', serif; font-size: 9px; letter-spacing: .14em; color: #8a6633; }
.info-date strong { display: block; font-family: var(--font-number); font-size: 21px; line-height: 1.3; letter-spacing: .08em; margin-top: 5px; color: #5d472b; overflow-wrap: anywhere; }
.location-block { display: grid; grid-template-columns: 58% minmax(0, 1fr); gap: 8px; align-items: center; margin-top: 10px; }
.map-frame { position: relative; width: 100%; aspect-ratio: 1153 / 755; min-width: 0; background: url('assets/optimized/ui/direction/map-paper.webp') center / 100% 100% no-repeat; filter: drop-shadow(0 2px 2px #62492b44); }
.map-image { position: absolute; left: 3.5%; top: 7%; width: 93%; height: 86%; object-fit: cover; object-position: center; border: 1px solid #76532b99; box-shadow: 0 1px 3px #4f351d66; }
.location-copy { min-width: 0; }
.location-copy .field-label { font-size: 10px; }
.location-copy h2 { font-family: var(--font-display); font-size: 18px; line-height: 1.4; letter-spacing: .06em; margin-top: 6px; font-weight: 600; color: #5d472b; overflow-wrap: anywhere; }
.address { margin-top: 13px; padding: 9px 2px 0; border-top: 1px solid #9b783344; font-family: var(--font-ui); font-size: 12px; line-height: 1.7; color: #675033; overflow-wrap: anywhere; }
.address-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.address b { display: block; font-family: var(--font-display); font-size: 11px; letter-spacing: .1em; font-weight: 600; color: #8a6633; }
.copy-address { flex: none; padding: 3px 7px; border: 1px solid #9b783388; border-radius: 2px; color: #76552e; background: #ead7a866; font-family: var(--font-ui); font-size: 10px; line-height: 1.2; }
.copy-address:hover, .copy-address:focus-visible { background: #e8c979aa; }
.copy-status { display: block; min-height: 14px; margin-top: 2px; color: #8a6633; font-size: 9px; }
.map-note { margin-top: 9px; font-size: 9px; letter-spacing: .06em; color: #947b54; text-align: center; }
.rsvp-panel { position: relative; width: var(--rsvp-panel-width); aspect-ratio: 1080 / 987; margin: 18px auto 0; text-align: center; }
.rsvp-panel .kicker { padding-top: 17.222%; font-size: 8px; color: #c5b484; }
.rsvp-panel > h2 { font-size: 18px; line-height: 1.2; margin: 7px 0 14px; font-weight: 400; }
.form { width: 79.444%; margin: auto; }
.form-field { position: relative; display: block; isolation: isolate; text-align: left; width: 100%; aspect-ratio: 734 / 129; margin-bottom: 11px; color: #5f4a2f; }
.form-field > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: -1; pointer-events: none; }
.form-field > span { position: absolute; left: 12.238%; top: 8px; font-size: 8px; line-height: 10px; color: #927140; }
.form-field input { position: absolute; left: 12.238%; top: 21px; width: 75%; height: 24px; border: 0; outline: none; background: transparent; color: #624b2f; font-size: 16px; line-height: 24px; padding: 0; border-radius: 0; }
.form-field input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.form-field input[type="number"]::-webkit-inner-spin-button, .form-field input[type="number"]::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.form-field:focus-within { filter: drop-shadow(0 0 3px #9be7ff); }
.form-field input::placeholder { color: #8c795d; opacity: 1; }
.rsvp-panel .blue-button { width: 100%; margin-top: 15px; font-size: 16px; }
.success { width: 79%; margin: 12px auto 0; }
.success .badge img { width: 60px; height: 60px; object-fit: contain; margin: auto; }
.success h2 { margin: 8px 0; font-size: 21px; }
.success p { font-size: 12px; line-height: 1.7; color: #bdc6b6; }
.success .local-status { margin-top: 7px; font-size: 10px; }
.form-error { margin-top: 6px; font-size: 12px; color: #ffc7b4; }
.screen-enter { animation: screenIn .45s ease-out both; }
@keyframes screenIn { from { opacity: 0; } to { opacity: 1; } }
.screen-leave { animation: screenOut .3s ease-in both; }
@keyframes screenOut { to { opacity: 0; } }
@media (max-width: 374px) {
  .layout-debug { right: 6px; top: 6px; }
  .layout-debug-panel { width: 190px; }
  .home-title h1 { font-size: 21px; }
  .home-title .kicker { padding-top: 16%; }
  .home-title h1 { margin-top: 7px; }
  .home-title .names { margin-top: 7px; }
  .home-panel h2 { font-size: 19px; }
  .home-panel .blue-button { margin-top: 12px; }
  .home-panel .audio-note { margin-top: 7px; }
  .rsvp-page { padding-top: 162px; }
  .rsvp-heading { top: 72px; }
  .rsvp-heading h1 { font-size: 21px; }
  .photo-stub { top: 122px; }
  .details-layout { padding-top: 10%; }
  .address { margin-top: 9px; }
  .map-note { margin-top: 7px; }
  .rsvp-panel .kicker { padding-top: 16.25%; }
  .rsvp-panel > h2 { margin-bottom: 10px; }
  .form-field input { top: 19px; }
  .form-field > span { top: 6px; }
  .rsvp-panel .blue-button { margin-top: 12px; }
}
@media (max-height: 740px) {
  .intro, .cook { min-height: 620px; }
  .home-title { top: var(--home-title-top); left: calc((100% - var(--home-title-width)) / 2); width: var(--home-title-width); }
  .home-title .kicker { padding-top: 16%; }
  .home-title h1 { font-size: 21px; margin-top: 6px; }
  .home-title .names { margin-top: 6px; }
  .home-cinema { top: calc(var(--home-video-top) + var(--home-video-offset-y)); }
  .cinema-detail { display: none; }
  .home-panel { width: min(var(--home-panel-width), 330px); left: 50%; transform: translateX(-50%) scale(var(--home-panel-scale)); bottom: var(--home-panel-bottom); }
  .home-panel .kicker { margin-top: 17.5%; }
  .home-panel h2 { font-size: 19px; margin: 7px 0 6px; }
  .home-panel .blue-button { margin-top: 12px; }
  .home-panel .audio-note { margin-top: 6px; }
  .cook-heading { top: 60px; }
  .music-toggle { top: 142px; }
  .cook-heading h1 { font-size: 22px; }
  .ingredient { width: 24%; }
  .mushroom { left: 38%; top: 22.5%; }
  .meat, .fish-slot { top: 33.5%; }
  .heart-slot, .rice { top: 47%; }
  .pot-target { top: 47%; width: 62%; left: 19%; }
  .cook-panel { width: min(var(--cook-panel-width), 90%); left: 50%; transform: translateX(-50%); bottom: 8px; }
  .cook-panel .instruction { margin-top: 19.5%; font-size: 16px; }
  .ingredient-count { margin-top: 11px; }
  .rsvp-page { width: 128.21%; margin-left: -14.105%; transform: scale(.78); }
}
@media (min-width: 601px) {
  .scene { background-attachment: scroll; }
  body { background-image: linear-gradient(#18383144, #17363788), var(--scene); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.media-retry { position:fixed;top:12px;right:12px;z-index:1000;padding:10px 14px;border:1px solid #d9bd78;border-radius:6px;background:#183a42;color:#fff3cf;font:inherit;cursor:pointer; }
.media-retry[hidden] { display:none; }

.resource-loading{position:relative;z-index:3;margin:4px auto 0;width:74%;color:#ead9ac;font-size:11px;line-height:1.4;text-align:center;}
.resource-loading progress{display:block;width:100%;height:4px;margin-top:3px;border:0;border-radius:3px;overflow:hidden;background:#122c34;accent-color:#d6b76e;}
.resource-loading progress::-webkit-progress-bar{background:#122c34;}
.resource-loading progress::-webkit-progress-value{background:#d6b76e;}
.resource-loading button{font:inherit;color:#f6deb0;border:1px solid #ac9053;background:#173744;padding:2px 10px;margin-top:3px;}
.resource-loading[hidden],.resource-loading button[hidden]{display:none;}
#start-button:disabled{opacity:.55;cursor:wait;}

.home-panel:has(#resource-loading) > .audio-note{display:none;}
