@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500;1,600&family=DM+Sans:wght@400;500;600;700&display=swap');
:root{color-scheme:dark;--cream:#fff4dc;--gold:#e9c77b;--ink:#122b32}*{box-sizing:border-box}body{margin:0;background:#0e232a;color:var(--cream);font-family:'DM Sans',sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;border:1px solid #e9c77b45;background:#18343b;border-radius:6px;padding:10px 16px}button:hover{background:#29464a}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid var(--gold);outline-offset:4px}button:disabled{opacity:.6;cursor:wait}[hidden]{display:none!important}#app{max-width:1300px;margin:auto;padding:0 44px}header{height:98px;display:flex;align-items:center;justify-content:space-between;gap:20px}header a{font-family:'Cormorant Garamond',serif;font-size:32px;color:var(--cream);text-decoration:none;letter-spacing:4px}header a span{font-style:italic;color:var(--gold);font-size:23px}.eyebrow{font-size:10px;font-weight:600;letter-spacing:3px;color:var(--gold)}header button{font-size:11px;border:0;background:none}#game-wrap{position:relative;aspect-ratio:16/9;isolation:isolate;border:1px solid #d8b9784d;border-radius:12px;overflow:hidden;background:#23454a;box-shadow:0 30px 100px #0004}#game{display:block;width:100%;height:100%;outline-offset:-5px!important;touch-action:none}.overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;background:linear-gradient(90deg,#10282ce8,#12303692,#10282cc9);backdrop-filter:blur(2px)}.intro{padding:24px;width:100%}h1,h2{font-family:'Cormorant Garamond',Georgia,serif;font-weight:500;line-height:.95;margin:12px 0;color:#fff7df}h1{font-size:clamp(55px,6.5vw,90px)}h1 em,h2 em{font-weight:500;color:var(--gold)}h2{font-size:58px;margin-bottom:25px}.subtitle{font-size:13px;line-height:1.7;color:#dddaca;margin:13px 0}.choose{display:flex;justify-content:center;gap:12px;margin:12px 0 18px}.character{width:136px;padding:0 10px 10px;display:flex;align-items:center;flex-direction:column;background:#112b3290;border-color:#fff2}.character canvas{height:92px;width:84px;image-rendering:pixelated}.character span{font-family:'Cormorant Garamond',serif;font-size:23px}.character small{font-size:8px;letter-spacing:1.7px;color:#bcbfab;margin-top:3px}.character.selected{border-color:var(--gold);background:#d4b86b19;box-shadow:inset 0 0 0 1px #d4b86b33}.primary{background:var(--gold);color:#193139;font-weight:700;font-size:12px;letter-spacing:.3px;padding:15px 30px;border:0;min-width:230px}.primary:hover{background:#f6dc9d}.hint{font-size:9px;letter-spacing:1px;color:#b9bdab;margin-bottom:0}footer{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:22px 0;color:#9facab;font-size:9px;letter-spacing:1px}footer>span:first-child{letter-spacing:0}footer button{border:0;background:none;font-size:9px;padding:5px}kbd{display:inline-block;border:1px solid #64716b;border-radius:3px;padding:4px 6px;font-size:9px;margin:0 4px 0 8px}#hud{position:absolute;top:0;left:0;right:0;padding:24px;display:flex;justify-content:space-between;pointer-events:none;background:linear-gradient(#10262d99,transparent)}#hud span{font-size:11px;letter-spacing:2px}#hud strong{display:block;font-family:'Cormorant Garamond',serif;font-size:27px;font-weight:500;margin-top:5px}.hud-right{display:flex;gap:24px;align-items:start}#hud button{pointer-events:auto;background:#173239d9;font-size:11px}#hud small{opacity:.5;margin-left:8px}#hearts{color:#ffe3a4;padding-top:11px}#caption{position:absolute;left:50%;bottom:28px;transform:translateX(-50%);background:#112d35ec;border:1px solid #efd4856b;border-radius:8px;padding:15px 22px;max-width:75%;font-family:'Cormorant Garamond',serif;font-size:22px;text-align:center;pointer-events:none}.panel{max-width:580px;padding:30px}.panel>p:not(.eyebrow){font-size:14px;line-height:1.8;color:#d8ddcf}.panel>button{display:block;margin:16px auto}.panel>button:not(.primary){background:none;border:0;font-size:11px}.save-date{font-size:9px;letter-spacing:3px;margin:28px 0;color:var(--gold)}.save-date strong{display:block;font-family:'Cormorant Garamond',serif;font-size:34px;font-weight:500;letter-spacing:0;color:var(--cream);margin:10px}.save-date span{letter-spacing:1px;color:#c2c8b6;font-size:11px}.return{display:block;color:#bbc6bb;font-size:11px;padding:10px}#touch{display:flex;justify-content:space-between;padding:16px 0;user-select:none;touch-action:none}#touch>div{display:flex;gap:12px}#touch button{width:62px;height:56px;font-size:24px;touch-action:none}#loading-error{position:absolute;inset:auto 10px 10px;background:#652f2f;padding:12px;text-align:center;font-size:12px} @media(max-width:700px){#app{padding:0 12px}header{height:65px}header>.eyebrow{display:none}#game-wrap{aspect-ratio:auto;height:70svh;min-height:510px;max-height:750px}#game{object-fit:cover}.intro{padding:10px}h1{font-size:68px}.character{width:125px}.character canvas{height:100px;width:91px}.choose{margin:18px 0}footer{padding:14px 0}footer>span{display:none}footer{justify-content:flex-end}#hud{padding:16px}#hud strong{font-size:23px}.hud-right{gap:10px}#hud small{display:none}#caption{max-width:92%;width:max-content;font-size:19px;padding:12px;bottom:18px}h2{font-size:47px}.panel{padding:20px}}@media(max-height:650px) and (min-width:701px){header{height:58px}#app{max-width:1020px}.intro{padding:8px}h1{font-size:57px}.subtitle{margin:8px}.character canvas{height:67px;width:61px}.choose{margin:8px 0}.hint{display:none}}

/* Keep the stage and controls inside the viewport, including portrait phones. */
#app{display:flex;flex-direction:column;padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right));padding-bottom:env(safe-area-inset-bottom)}
header{order:0}#game-wrap{order:1}#touch{order:2}footer{order:3}
#game{object-fit:fill}.overlay{overflow-y:auto}.intro,.panel{margin:auto}
#touch{gap:12px;flex-shrink:0}#touch>div{gap:8px}#touch button{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4px;min-width:44px;min-height:44px;width:58px;height:58px}#touch small{font-size:7px;letter-spacing:1px;margin-top:1px}#touch button.active{background:var(--gold);color:var(--ink);border-color:var(--gold)}#touch button:active{background:#47625e}#ability{line-height:1.7;max-width:420px;margin:12px auto 0}#hud>div{min-width:0}#hearts{white-space:nowrap}#hud strong{white-space:nowrap}
@media(max-width:1000px){header>.eyebrow{font-size:8px;letter-spacing:2px}footer>span:nth-child(2){display:none}}
@media(max-width:700px),(pointer:coarse){
 #app{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}
 header{height:54px;flex-shrink:0}header>.eyebrow{display:none}
 #game-wrap{aspect-ratio:auto;height:calc(100svh - 162px - env(safe-area-inset-bottom));min-height:310px;max-height:850px}
 footer{padding:4px 0 8px;min-height:24px;justify-content:flex-end}footer>span{display:none}#touch{padding:10px 0 6px}
 .intro{padding:16px 12px}h1{font-size:60px}.subtitle{font-size:12px;margin:8px 0;line-height:1.5}.choose{margin:12px 0}.character{width:120px}.character canvas{height:84px;width:76px}.character span{font-size:22px}.primary{padding:13px 22px;min-height:44px}#ability{font-size:8px;letter-spacing:.5px}
 #hud{padding:14px 12px}#hud span{font-size:9px;letter-spacing:1px}#hud strong{font-size:22px}.hud-right{gap:12px}#hud button{min-height:44px;padding:8px 12px}#hud small{display:none}
 #caption{font-size:17px;max-width:92%;padding:10px 14px;bottom:12px}h2{font-size:43px}.panel{padding:20px}
}
@media(max-width:360px){#touch{gap:4px}#touch>div{gap:5px}#touch button{width:48px;height:52px}.character{width:110px}#hud strong{font-size:19px}.hud-right{gap:7px}#hud{padding:10px}.intro{padding:12px 8px}}
@media(max-height:700px) and (max-width:700px){h1{font-size:47px;margin:6px 0}.intro>.eyebrow{margin:4px}.character canvas{height:63px;width:57px}.character{padding-bottom:6px}.character span{font-size:20px}.choose{margin:8px 0}.subtitle{font-size:11px}.hint{margin-top:8px!important}}
@media(orientation:landscape) and (max-height:540px){
 #app{max-width:none}header{height:40px}header>.eyebrow{display:none}header a{font-size:25px}
 #game-wrap{height:calc(100svh - 114px - env(safe-area-inset-bottom));min-height:200px;max-height:none;aspect-ratio:auto}
 footer{display:none}#touch{padding:6px 0}#touch button{height:52px;width:60px}
 .intro{padding:8px 16px;display:grid;grid-template-columns:1fr 1fr;gap:2px 20px;max-width:660px;align-items:center}.intro>.eyebrow{grid-column:1;margin:0}.intro h1{grid-column:1;font-size:44px;margin:0}.subtitle{grid-column:1;font-size:10px;margin:0}.choose{grid-column:2;grid-row:1/4;margin:0;gap:8px}.character{width:100px;padding-bottom:5px}.character canvas{height:59px;width:54px}.character span{font-size:19px}.character small{font-size:7px}.primary{min-width:180px;padding:10px 20px}.intro>.primary{grid-column:2}.intro>#ability{display:block;grid-column:1;grid-row:4;font-size:7px;line-height:1.5;margin:0}
 #hud{padding:10px 14px}#hud strong{font-size:21px}#hud small{display:none}#caption{font-size:15px;padding:8px 12px;bottom:10px}.panel{padding:12px}h2{font-size:34px;margin:6px}.panel>.eyebrow{margin:0}.panel>button{margin:8px auto}.panel>p:not(.eyebrow){margin:6px;font-size:11px}.save-date{margin:10px}.save-date strong{font-size:25px;margin:5px}.return{padding:2px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
@media(min-width:701px) and (max-width:1000px) and (min-height:541px){#game-wrap{min-height:500px}}

header .wedding-return{display:flex;align-items:center;gap:14px}header .wedding-return .monogram{font-size:30px;color:var(--cream);font-style:normal}header .wedding-return i{font-size:23px;color:var(--gold);font-weight:400}header .wedding-return small{font-family:"DM Sans",sans-serif;font-size:8px;letter-spacing:1.2px;color:#bdc9bb}@media(max-width:700px),(max-height:540px){header .wedding-return{gap:10px}header .wedding-return .monogram{font-size:25px}header .wedding-return small{font-size:7px;letter-spacing:1px}}

#celebration{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:5}

/* iOS needs the prefixed selection and callout rules on the actual controls. */
#touch,#touch *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:none}#touch button>*{pointer-events:none}#touch button.active{background:#426062;border-color:var(--gold)}

/* Wedding Post colors frame the arcade world. */
:root{color-scheme:light;--cream:#fff4dc;--gold:#efd37e;--ink:#4e4138}
body{background:#f7f4ec;color:#4e4138}#app{border-inline:1px solid #d9d2c4;background:linear-gradient(180deg,#f7f4ec,#b8d8ee22)}
header .wedding-return,header .wedding-return i{color:#4e4138}header .wedding-return small,header>.eyebrow,header button,footer,footer button{color:#625a51}
#game-wrap{border:3px solid #a9af7e;box-shadow:0 12px 35px #4e413825}#game{image-rendering:pixelated}
#touch button{background:#efd37e;color:#4e4138;border-color:#b3a68b;border-bottom:4px solid #c88860}#touch button.active,#touch button[aria-pressed="true"]{background:#a9af7e;color:#1c1a17;border-color:#4e4138}
.overlay,#hud{color:#fff4dc}.overlay button{color:#fff4dc}.overlay .primary{color:#4e4138}.overlay{overflow-y:auto}.overlay .panel{margin:auto}
#win .panel{padding:18px}#win h2{font-size:clamp(34px,5vw,54px);margin-bottom:12px}#win .save-date{margin:14px 0}#win .panel>button{margin:10px auto}#bonus-copy{font-size:12px;line-height:1.5}
#bonus-result h2{font-size:38px;margin:8px 0}#bonus-result h3{font-size:13px;margin:14px 0 8px}.score-panel{width:min(100%,520px);padding:18px!important}#score-form{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}#score-form label{width:100%;font-size:12px;color:#fff4dc}#nickname{width:160px;min-height:44px;border:1px solid #efd37e;border-radius:5px;padding:9px;background:#f7f4ec;color:#4e4138;font:16px sans-serif}#save-score{min-width:140px;padding:10px}#leaderboard{max-height:120px;overflow-y:auto;text-align:left;margin:0 auto;padding-left:30px;width:90%;font-size:13px;line-height:1.8}#score-message,#personal-best{font-size:12px!important;margin:8px 0;line-height:1.4!important}
@media(max-width:700px){#hud span{font-size:9px;letter-spacing:.4px}#hud strong{font-size:21px}.hud-right{gap:6px}#hearts{max-width:104px;text-align:right;line-height:1.6}#win .panel>p:not(.eyebrow){font-size:12px}#win .save-date strong{font-size:27px}}

#caption,#loading-error{color:#fff4dc}

header .wedding-return .monogram{color:#4e4138}

.bonus-button{min-height:48px;white-space:nowrap;line-height:1.3}#bonus-shortcut{display:block;margin:10px auto 0;min-width:230px;background:#a9af7e;color:#1c1a17;border:1px solid #efd37e;font-weight:700;font-size:12px}#bonus-unlocked{font-size:10px;letter-spacing:.2px;line-height:1.4;margin:7px 0}#win .panel{width:min(100%,560px)}#win .bonus-button{width:min(100%,270px)}#win #replay{min-height:44px;margin-top:14px}#bonus-result #bonus-again{margin:12px auto 5px}.overlay{align-items:safe center}#title .intro{margin:auto}#title:has(#bonus-shortcut:not([hidden])) .choose{margin:8px 0}#title:has(#bonus-shortcut:not([hidden])) h1{font-size:clamp(44px,5.5vw,72px)}

.audio-controls{display:flex;gap:4px;flex-shrink:0}.audio-controls button{min-height:44px;padding:8px;font-size:11px;white-space:nowrap}.audio-controls button[aria-pressed=true]{background:var(--gold);color:var(--ink);border-radius:8px}
@media(max-width:1000px){header>.eyebrow{display:none}}
@media(max-width:420px){header{gap:4px}header .wedding-return small{display:none}.audio-controls{gap:0}.audio-controls button{font-size:10px;padding:7px}}

#settings{display:grid;place-items:center;width:44px;height:44px;font-size:25px;border:1px solid #a9af7e88;border-radius:50%;background:#f7f4ec;color:#4e4138}
#settings-panel{position:fixed;inset:0;margin:auto;width:min(360px,calc(100vw - 32px));max-height:calc(100svh - 32px);overflow:auto;border:1px solid #a9af7e;border-radius:18px;padding:26px;background:#f7f4ec;color:#4e4138;box-shadow:0 20px 80px #122b3266}
#settings-panel::backdrop{background:#152a30aa;backdrop-filter:blur(4px)}.settings-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}#settings-panel h2{font-size:31px;color:#4e4138;margin:0}.settings-heading button{background:transparent;color:#4e4138;border:0;min-width:44px;min-height:44px}#settings-panel p{font-size:13px;line-height:1.6}#settings-panel .audio-controls{display:grid;gap:10px;margin:22px 0}#settings-panel .audio-controls button{display:flex;justify-content:space-between;width:100%;min-height:48px;text-align:left;font-size:14px;border:1px solid #a9af7e;background:#e4e3d5;color:#4e4138;padding:12px 16px}#settings-panel .audio-controls button::after{content:'○';font-size:18px}#settings-panel .audio-controls button[aria-pressed=true]{background:#efd37e}#settings-panel .audio-controls button[aria-pressed=true]::after{content:'●'}#settings-panel .primary{width:100%;min-width:0;margin-top:10px}#settings-panel .settings-note{font-size:11px;color:#625a51}
/* Icon-only settings control, with a comfortable invisible touch target. */
#settings{border:0;border-radius:0;background:transparent;box-shadow:none}#settings:hover{background:transparent}#settings:focus-visible{outline:2px solid #4e4138;outline-offset:2px;border-radius:0}
