.wedding{--pink:#edc085;--cream:#fff6e1;--line:#fff7dc3b;background:#a4c7c6}.wedding .hud{filter:drop-shadow(0 2px 7px #1c342cc0)}.wedding .icon-button{background:#2b443cbd}.wedding .icon-button[aria-pressed=true]{background:#ae8055}.wedding .vignette{background:linear-gradient(90deg,#183c30e0,#183c3020 68%,transparent),linear-gradient(0deg,#1b382b88,transparent 60%)}.wedding.playing .vignette{opacity:.12}.wedding .intro-copy{color:#fff3dd}.wedding .location{color:#ffdb9f}.wedding .objective{background:#263f32e8}.wedding .objective .eyebrow{color:#f0d39e}.wedding #memories-count{font-size:12px;color:#d6deca;display:block;line-height:1.3;margin-top:3px}.wedding .dialogue{background:#fff6e4;color:#334632}.wedding .dialogue-top .eyebrow{color:#9a683d}.wedding .interact{border-color:#b9965b;color:#344a37}.wedding .world-label{background:#fff3d7;color:#395039}.wedding .world-label:after{background:#fff3d7}.wedding dialog{background:#293f34}.wedding .toast{background:#263f32ec}.wedding .ending{background:#263e32f0}.wedding .ending h2{font-size:36px}.wedding .small-note{color:#e1d9bc}.wedding .option-button{text-decoration:none;color:inherit}.chapter-link{display:inline-block;font-size:14px;color:var(--cream);text-underline-offset:5px;margin-top:20px;line-height:1.4}.ending .chapter-link{font-size:13px;margin-top:16px}.wedding .joystick{background:#e7ebcd30;border-color:#fff9dc88}.wedding .move-hint{filter:drop-shadow(0 1px 4px #193221);color:#fff9e8}.wedding .move-hint span{color:#fff5e4}.wedding .error{background:#283c31}
@media(max-width:700px){.wedding .intro{bottom:calc(44px + env(safe-area-inset-bottom))}.wedding .vignette{background:linear-gradient(0deg,#203d30f5,#203d3070 52%,transparent 85%)}.wedding .intro .location{font-size:12px}.wedding .ending h2{font-size:29px}}
@media(max-height:550px) and (min-width:600px){.wedding .intro{bottom:20px}.wedding .intro h1{font-size:41px}.wedding .intro-copy{margin:10px 0 14px}.wedding #memories-count{font-size:12px}.wedding .ending h2{font-size:27px}}

@media(max-height:550px) and (min-width:600px){.wedding dialog{padding:16px 22px}.wedding .options-head h2{font-size:28px}.wedding .options-head .icon-button{width:36px;height:36px}.wedding dialog>p{font-size:14px;line-height:1.4;margin:10px 0}.wedding dialog .small-note{font-size:12px;line-height:1.35;margin:8px 0}.wedding .option-button{min-height:40px;padding:10px 0;margin-top:0;font-size:14px}}

.wedding .ceremony{position:absolute;z-index:12;left:50%;transform:translateX(-50%);bottom:calc(16px + env(safe-area-inset-bottom));width:min(500px,calc(100% - 32px));padding:12px 16px 8px;border:1px solid #dec59b;border-radius:20px;background:#fff6e7f5;color:#334632;box-shadow:0 8px 40px #263d3233}.wedding .ceremony .eyebrow{color:#986943;margin:0 0 4px;font-size:11px;letter-spacing:1.5px}.wedding :is(#ceremony-caption,#arrival-caption){font-size:17px;line-height:1.35;margin:0}.wedding :is(#ceremony-next,#arrival-next){color:#795937;margin-top:2px;min-height:44px}.wedding :is(#ceremony-next,#arrival-next)[hidden]{display:none}.wedding .icon-button:disabled{opacity:.4;cursor:default}
@media(max-width:600px){.wedding .ceremony{bottom:calc(12px + env(safe-area-inset-bottom));padding:10px 14px 6px}.wedding :is(#ceremony-caption,#arrival-caption){font-size:16px}}
@media(max-height:550px) and (min-width:600px){.wedding .ceremony{left:calc(16px + env(safe-area-inset-left));transform:none;bottom:calc(10px + env(safe-area-inset-bottom));width:340px;padding:10px 14px 6px}.wedding :is(#ceremony-caption,#arrival-caption){font-size:15px}.wedding :is(#ceremony-next,#arrival-next){font-size:13px;min-height:44px;margin-top:2px}.wedding .ceremony .eyebrow{margin-bottom:5px;font-size:10px}}

.wedding .ceremony{max-height:calc(100% - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow-y:auto}
@media(max-width:700px){.wedding .sound-hint{max-width:144px}}

/* Longer landmark memories keep a comfortable reading size without hiding the bride. */
@media(max-width:700px){.wedding #memory p{font-size:17px;line-height:1.3}}
@media(max-height:550px) and (min-width:600px){.wedding #memory{width:min(620px,calc(100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)))}.wedding #memory p{font-size:17px}}

/* The ring holder gets its own quiet close-up between Sushi's entrance and the vows. */
.wedding .knot-game{position:absolute;inset:0;z-index:12;pointer-events:none;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:calc(18px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));color:#344b38}
.knot-heading,.knot-actions{background:#fff9edf5;border:1px solid #fffdf3;border-radius:22px;padding:16px 22px;text-align:center;width:min(450px,100%);box-shadow:0 8px 30px #47513c0a}
.knot-heading .eyebrow{color:#967348;font-size:11px;letter-spacing:1.6px;margin:0 0 6px}.knot-heading h2{font-family:Georgia,serif;font-size:29px;letter-spacing:-1px;margin:0 0 8px}.knot-heading p{font-size:15px;line-height:1.4;margin:5px 0}.knot-heading #knot-context{color:#77745e;font-size:14px}.knot-heading #knot-instruction{margin-top:10px}
.knot-actions{pointer-events:auto;width:min(390px,100%);padding:13px 18px}.knot-actions #knot-status{font-size:15px;margin:0 0 10px}.knot-actions progress{display:block;width:100%;height:8px;border:0;border-radius:8px;overflow:hidden;background:#e6dfcb;accent-color:#75906b}.knot-actions progress::-webkit-progress-bar{background:#e6dfcb;border-radius:8px}.knot-actions progress::-webkit-progress-value{background:#75906b;border-radius:8px}.knot-pull{display:block;margin:12px auto 0;width:100%;min-height:46px;border:1px solid #a4b197;border-radius:14px;background:#e8eddf;color:#3d573b;font:inherit;font-size:15px;touch-action:none}.knot-pull:active{background:#d5dfc9}.knot-actions #knot-note{font-size:12px;line-height:1.4;color:#77745e;margin:9px 0 0}.knot-actions .primary{margin:auto;min-height:48px;font-size:15px}.knot-pull:focus-visible{outline:3px solid #6b8554;outline-offset:3px}
.wedding.knot-playing .vignette{display:none}.wedding.knot-playing #overview,.wedding.knot-playing #sound{display:none}.wedding.knot-playing .hud{z-index:15;pointer-events:none}.wedding.knot-playing #settings{pointer-events:auto}.wedding.knot-playing canvas{touch-action:none}
@media(max-width:600px){.knot-heading{width:calc(100% - 44px);align-self:flex-start;padding:12px 14px}.knot-heading h2{font-size:24px}.knot-heading p{font-size:14px}.knot-heading #knot-context{font-size:13px}.knot-heading .eyebrow{font-size:10px;letter-spacing:1px}.knot-actions{padding:12px 15px}.knot-actions #knot-status{font-size:14px}}
@media(min-width:600px) and (orientation:landscape){.wedding .knot-game{align-items:flex-start;padding:12px;gap:10px}.knot-heading,.knot-actions{width:260px;padding:11px 14px}.knot-heading h2{font-size:23px;margin-bottom:6px}.knot-heading p{font-size:13px}.knot-heading #knot-context{font-size:12px}.knot-heading #knot-context br{display:none}.knot-heading #knot-instruction{margin-top:6px}.knot-actions #knot-status{font-size:13px;margin-bottom:6px}.knot-actions #knot-note{font-size:11px;margin-top:5px}.knot-pull{min-height:40px;margin-top:8px;font-size:13px}.knot-heading .eyebrow{font-size:10px}}

@media(min-width:900px){.wedding .knot-game{align-items:flex-start;padding:24px;gap:16px}.knot-heading,.knot-actions{width:300px}.knot-heading{padding:20px}.knot-heading h2{font-size:28px}.knot-heading #knot-context br{display:none}}

@media(max-height:360px) and (min-width:600px){.knot-heading #knot-context{display:none}.knot-heading h2{font-size:21px}.knot-actions #knot-note{font-size:10px;line-height:1.2}}

.rings-heading #rings-instruction{margin-top:10px}.rings-actions #rings-status{font-size:15px;line-height:1.4;margin:0 0 10px}.rings-actions .rings-note{font-size:12px;line-height:1.4;color:#77745e;margin:9px 0 0}.rings-actions .primary{white-space:normal;line-height:1.4;padding:12px 16px}.rings-actions .knot-pull:focus-visible{outline:3px solid #6b8554;outline-offset:3px}
@media(max-width:600px){.rings-actions #rings-status{font-size:14px}.rings-heading h2{font-size:23px}}
@media(min-width:600px) and (orientation:landscape){.rings-actions #rings-status{font-size:13px;margin-bottom:6px}.rings-actions .rings-note{font-size:11px;line-height:1.3;margin-top:6px}.rings-heading #rings-instruction{margin-top:6px}}

#celebration{pointer-events:auto}

#celebration-finish[hidden]{display:none}

/* Labels follow the four real 3D objects during the camera's approach. */
.drink-menu{position:absolute;inset:0;z-index:12;pointer-events:none;color:#fff6e1}.drink-heading{position:absolute;top:calc(22px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:min(480px,calc(100% - 28px));padding:17px 52px 18px 22px;background:#263e32f5;border:1px solid #e2c88a66;border-radius:20px}.drink-heading .eyebrow{font-size:14px;color:#edc085;margin:0 0 6px}.drink-heading h2{font-size:28px;line-height:1.15;margin:0}.drink-heading .icon-button{position:absolute;right:7px;top:10px;pointer-events:auto}
.drink-labels button{position:absolute;transform:translateX(-50%);width:100px;min-height:48px;padding:8px 5px;border:1px solid #f4d6a17a;border-radius:12px;background:#263e32ed;color:#fff6e1;font:inherit;font-size:14px;line-height:1.15;cursor:pointer;pointer-events:auto;box-shadow:0 3px 12px #0003}.drink-labels button[aria-pressed=true]{background:#f2d39c;color:#283f34}.drink-menu button:focus-visible{outline:3px solid #fff1c0;outline-offset:3px}
.drink-footer{position:absolute;bottom:calc(16px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(450px,calc(100% - 28px));border-radius:18px;padding:12px 18px 6px;background:#263e32f5;text-align:center;pointer-events:auto}.drink-footer p{font-size:16px;line-height:1.4;margin:0}.drink-footer button{color:#f3d7a5;font-size:14px;margin:2px auto 0;justify-content:center}
.choosing-drinks .hud,.choosing-drinks #sound-hint{visibility:hidden}
@media(max-width:600px){.drink-heading{padding:14px 48px 14px 16px}.drink-heading h2{font-size:25px}.drink-labels button{width:72px;font-size:14px;padding:7px 2px}.drink-footer p{font-size:15px}}
@media(max-height:500px) and (min-width:600px){.drink-heading{top:10px;left:14px;transform:none;width:295px;padding:10px 48px 10px 14px}.drink-heading h2{font-size:22px}.drink-heading .eyebrow{font-size:12px;margin-bottom:4px}.drink-heading .icon-button{top:5px}.drink-footer{bottom:8px;padding:8px 16px 2px;width:min(430px,calc(100% - 28px))}.drink-footer p{font-size:14px}.drink-labels button{width:72px;min-height:44px}}
.wedding #options .party-actions{position:static;display:flex;flex-direction:column;gap:0;margin:0 0 14px;padding-bottom:12px;border-bottom:1px solid #e2c88a44;transform:none;max-width:none}.wedding #options .party-actions.hidden{display:none}.wedding #options .party-actions button{text-align:left;width:100%;min-height:48px;}

/* Keep the garden visible between two compact cards while Sushi chases his toy. */
.fetch-game{position:absolute;inset:0;z-index:12;pointer-events:none;color:#fff6e1}
.fetch-heading{position:absolute;top:calc(16px + env(safe-area-inset-top));left:16px;max-width:calc(100% - 90px);padding:12px 16px;border:1px solid #edc08566;border-radius:18px;background:#263e32f2}
.fetch-heading .eyebrow{margin:0 0 4px;color:#edc085;font-size:12px;letter-spacing:1.2px}
.fetch-heading h2{margin:0;font-family:Georgia,serif;font-size:25px;font-weight:normal;line-height:1.15}
.fetch-heading p:last-child{margin:5px 0 0;color:#e8dcc3;font-size:14px;line-height:1.3}
.fetch-actions{position:absolute;bottom:calc(12px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(420px,calc(100% - 24px));padding:12px 16px 8px;border:1px solid #edc08566;border-radius:20px;background:#263e32f5;text-align:center;pointer-events:auto}
.fetch-actions #fetch-status{font-size:16px;line-height:1.3;margin:0 0 5px}
.fetch-actions #fetch-instruction{font-size:14px;line-height:1.3;color:#e8dcc3;margin:0 0 10px}
.fetch-actions .primary{font-size:16px;min-height:46px;width:100%;justify-content:center;margin:0;padding:11px 15px}
.fetch-actions .primary:disabled{opacity:.55;cursor:default}
.fetch-actions #fetch-close{position:static;display:block;width:auto;height:auto;margin:3px auto 0;min-height:44px;padding:8px 12px;font-size:14px;color:#f2dfbd}
.fetch-game button:focus-visible{outline:3px solid #ffe4aa;outline-offset:3px}
.wedding.fetch-playing .hud{z-index:15;pointer-events:none}
.wedding.fetch-playing #settings{pointer-events:auto}
.wedding.fetch-playing canvas{touch-action:none}
@media(max-width:360px){.fetch-heading{left:12px;padding:10px 12px}.fetch-heading h2{font-size:22px}.fetch-actions{padding:10px 12px 5px}.fetch-actions #fetch-instruction{margin-bottom:7px}}
@media(max-height:500px) and (min-width:600px){.fetch-heading{top:10px;left:12px;padding:10px 14px;max-width:280px}.fetch-heading h2{font-size:22px}.fetch-heading p:last-child{max-width:245px}.fetch-actions{left:12px;transform:none;width:280px;bottom:8px;padding:10px 12px 5px}.fetch-actions #fetch-status{font-size:16px}.fetch-actions #fetch-instruction{font-size:14px;margin-bottom:6px}.fetch-actions .primary{min-height:44px;padding:8px 12px}.fetch-actions #fetch-close{min-height:40px}}

/* Karaoke stays in the existing stage card, leaving the couple in view. */
.wedding #celebration.karaoke-active{width:min(640px,calc(100% - 24px));background:#203b30f5;color:#fff6e1;border-color:#edc08577;padding:14px 20px 8px}
.wedding #celebration.karaoke-active .eyebrow{color:#edc085;font-size:14px;letter-spacing:1px}
#karaoke[hidden],#karaoke-sound[hidden],#karaoke-next[hidden],#celebration-caption[hidden]{display:none}
.karaoke-meta{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:14px;color:#d0ddcf;margin:6px 0 10px}
#karaoke-time{font-variant-numeric:tabular-nums;white-space:nowrap}
#karaoke-line{font-size:clamp(20px,3vw,27px);font-weight:700;line-height:1.3;color:#ffe2a6;margin:0;text-wrap:balance}
#karaoke-line.instrumental{font-weight:500;color:#fff6e1}
#karaoke-next{font-size:16px;line-height:1.35;color:#c2d2c5;margin:10px 0 0;text-wrap:balance}
#karaoke-progress{display:block;width:100%;height:4px;margin:13px 0 3px;border:0;border-radius:4px;overflow:hidden;background:#ffffff26;accent-color:#edc085}
#karaoke-progress::-webkit-progress-bar{background:#ffffff26;border-radius:4px}
#karaoke-progress::-webkit-progress-value{background:#edc085}
#karaoke-sound{min-height:44px;padding:9px 16px;margin:10px 0 0;border:1px solid #edc085;border-radius:12px;color:#263e32;background:#ffe2a6;font:inherit;font-size:16px;cursor:pointer}
#karaoke-sound:focus-visible{outline:3px solid white;outline-offset:3px}
.wedding .karaoke-active #celebration-finish{color:#ffe2a6;min-height:44px;font-size:14px}
.karaoke-announcement{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:600px){.wedding #celebration.karaoke-active{padding:12px 14px 6px}#karaoke-line{font-size:22px}}
@media(max-height:550px) and (min-width:600px){.wedding #celebration.karaoke-active{width:min(370px,calc(100% - 32px));padding:10px 14px 5px}#karaoke-line{font-size:20px}#karaoke-next{display:none}.karaoke-meta{margin:4px 0 7px}#karaoke-progress{margin-top:8px}}
