[hidden]{display:none!important} .cat{background:none!important;height:260px!important;display:flex;align-items:end;justify-content:center;transition:transform .4s cubic-bezier(.2,.8,.2,1)}
.sprite{position:relative;overflow:hidden;width:100%;flex:none}.sprite img{position:absolute;max-width:none;pointer-events:none}.cat::after{z-index:0}.cat .sprite{z-index:1}
.sound{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));width:44px;min-height:44px;border:1px solid #ddd7cf;background:#f6f3eef0;font-size:18px;z-index:20}
.stage{animation:none} .intro h1{animation:enter .8s .2s both}.intro .cat{animation:rise 1s both}.intro .question{min-height:76px}
.form-view{max-width:430px;margin:auto}.form-view h1{font-size:clamp(30px,5vw,40px);letter-spacing:-.04em;margin-bottom:24px}.form-view .cat{height:160px!important;width:178px;margin-bottom:28px}
.options{display:grid;gap:10px;text-align:left;margin-bottom:24px}.option{width:100%;min-height:58px;padding:16px 18px;border:1px solid #d3cec7;background:transparent;text-align:left;font-size:16px;font-weight:500;display:flex;justify-content:space-between;align-items:center;gap:12px}.option[aria-pressed=true]{background:#ebe5dc;border-color:#7a7064;color:#272727}.tick{width:20px;color:#62564a}
input,textarea{font:inherit;font-size:16px;background:#fff9;border:1px solid #d3cec7;border-radius:12px;width:100%;padding:15px;color:#272727}input:focus,textarea:focus{outline:2px solid #978574;outline-offset:2px}textarea{min-height:150px;resize:vertical;margin-bottom:22px}label{display:block;font-size:16px;margin:0 0 10px}.custom{padding:6px 0 8px}.next{width:100%}button:disabled{cursor:default;opacity:.4}.back{border:0;background:transparent;font-size:15px;color:#746b61;min-height:44px;margin-top:10px;width:auto;padding:8px 20px}
.days{grid-template-columns:repeat(2,minmax(0,1fr))}.days .unknown{grid-column:1/-1}.days .option{font-size:15px}.real-no{display:block;margin:18px auto 0;background:none;border:0;min-height:44px;width:auto;font-size:14px;font-weight:400;color:#736d66;text-decoration:underline;text-underline-offset:4px}
.no{position:relative;z-index:3;transition:transform .25s cubic-bezier(.2,.9,.25,1.15)}.no.small{transform:scale(.4)}.escape-zone{min-height:56px;align-items:flex-start}.stealing .cat{animation:steal 1.7s .8s both}.stealing .no{animation:button-steal 1.1s .2s both}.watching .cat{transform:translateX(var(--look,0px)) rotate(var(--tilt,0deg))}
dialog{border:1px solid #e4ded5;border-radius:22px;background:#f9f6f1;color:#272727;padding:28px;width:min(350px,calc(100% - 40px));box-shadow:0 20px 80px #28221b26}dialog::backdrop{background:#29231b30;backdrop-filter:blur(3px)}dialog[open]{animation:enter .3s both}dialog h2{margin:0 0 24px;font-size:26px;letter-spacing:-.035em}dialog .actions button{width:125px}.progress{height:7px;background:#e4ded5;border-radius:20px;overflow:hidden;max-width:260px;margin:20px auto 12px}.progress>div{height:100%;background:#837364;transition:width .3s}.percent{color:#80756a;font-size:15px}.error-text{font-size:16px;color:#746b61;line-height:1.5}.celebration h1{color:#b94862}.celebration{animation:shake .18s 8}.particles{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:10}.particle{position:absolute;top:-40px;animation:fall var(--duration) var(--delay) ease-in both;font-size:24px}.celebration .cat{animation:pop .45s both}.quiet{opacity:0;transition:opacity .25s}
@keyframes enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}@keyframes pop{0%{transform:scale(.7)}70%{transform:scale(1.12)}100%{transform:scale(1)}}@keyframes shake{25%{transform:translateX(3px)}75%{transform:translateX(-3px)}}@keyframes fall{to{transform:translate(var(--drift),110vh) rotate(500deg)}}@keyframes steal{40%{transform:translateX(25px)}100%{transform:translate(70vw,20px);opacity:0}}@keyframes button-steal{to{transform:translate(0,-130px) rotate(-15deg);opacity:0}}
@media(max-width:600px){@keyframes steal{40%{transform:translateY(18px)}100%{transform:translateY(85vh);opacity:0}}.form-view{max-width:360px}.form-view .cat{height:140px!important;width:156px}main:has(textarea:focus){align-items:start}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.particles{display:none}.stealing .cat,.stealing .no{opacity:0}}


.intro .question{transition:opacity .5s;line-height:1.45}
.option{transition:background-color .2s,border-color .2s,transform .18s}

/* Keep the confirmation below the face, with no blur hiding its expression. */
dialog{position:fixed;inset:auto 16px max(20px,env(safe-area-inset-bottom));margin:0 auto;padding:22px 26px}
dialog::backdrop{background:#29231b12;backdrop-filter:none}
.activity-icon{display:inline-block;width:32px;font-size:20px;margin-right:7px;vertical-align:middle}
.celebration .sprite{-webkit-mask-image:linear-gradient(to right,transparent,#000 10%,#000 90%,transparent),linear-gradient(to bottom,transparent,#000 8%,#000 80%,transparent);mask-image:linear-gradient(to right,transparent,#000 10%,#000 90%,transparent),linear-gradient(to bottom,transparent,#000 8%,#000 80%,transparent);-webkit-mask-composite:source-in;mask-composite:intersect}
#meeting-time{min-height:58px;width:100%;max-width:100%;box-sizing:border-box}
@media(max-height:700px){body:has(dialog[open]) main{align-items:flex-start;padding-top:20px}body:has(dialog[open]) h1{font-size:32px;margin-bottom:14px}body:has(dialog[open]) .cat{width:205px;height:190px!important;margin-bottom:12px}}

.pose-thumb{-webkit-mask-image:linear-gradient(to right,transparent,#000 15%,#000 87%,transparent),linear-gradient(to bottom,transparent,#000 9%,#000 79%,transparent);mask-image:linear-gradient(to right,transparent,#000 15%,#000 87%,transparent),linear-gradient(to bottom,transparent,#000 9%,#000 79%,transparent);-webkit-mask-composite:source-in;mask-composite:intersect}

/* Size the artwork and spacing to the usable phone height, not desktop constants. */
html{overflow-x:clip}main{min-height:100svh;min-height:100dvh}.invitation{min-width:0}
@media(max-width:600px){
 main{padding: max(18px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))}
 body:has(.sound) main{padding-bottom:max(62px,env(safe-area-inset-bottom))}
 h1{font-size:clamp(30px,8.6vw,36px);margin-bottom:20px}
 .cat{width:clamp(190px,32svh,280px);max-width:100%;height:clamp(180px,30svh,260px)!important;margin-bottom:18px}
 .question{font-size:22px;margin-bottom:22px;line-height:1.35}
 .form-view h1{font-size:28px;line-height:1.12;margin-bottom:14px}
 .form-view .cat{width:clamp(72px,calc((100svh - 510px)*.65),130px);height:clamp(66px,calc((100svh - 510px)*.59),118px)!important;margin-bottom:14px}
 .form-view .question{font-size:21px;margin-bottom:16px}
 .options{gap:8px;margin-bottom:16px}
 .option{min-height:48px;padding:11px 13px}
 .next{min-height:50px}.back{margin-top:4px;min-height:44px;padding:8px 16px}
 .days .option{font-size:15px}.tick{flex-shrink:0}
 textarea{min-height:112px;margin-bottom:14px}
 .custom{padding:0}.custom label{margin-bottom:6px}
 #meeting-time{min-height:52px}
 .intro .question{min-height:64px}
}
@media(max-width:600px) and (max-height:600px){
 main{padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom))}
 .form-view h1{font-size:26px;margin-bottom:10px}.form-view .cat{margin-bottom:10px}
 .form-view .question{font-size:20px;margin-bottom:12px}.options{gap:6px;margin-bottom:12px}
 .option{padding:10px 12px;min-height:46px}.activity-icon{font-size:18px;width:26px;margin-right:4px}
}

/* The viewport is stationary; only long option lists and text fields may scroll. */
html,body{width:100%;height:100%;overflow:hidden;overscroll-behavior:none}
main{position:fixed;inset:0;min-height:0;height:var(--app-height,100dvh);overflow:hidden;overscroll-behavior:none}
.invitation{max-height:var(--content-height,100%);min-height:0}
.form-view{display:flex;flex-direction:column;max-height:var(--content-height,100%);min-height:0}
.form-view h1,.form-view .question,.form-view .next,.form-view .back{flex-shrink:0}
.form-view .cat{flex-shrink:0}
.form-view .options{min-height:48px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.form-view textarea{min-height:80px;overflow-y:auto;flex:1 1 112px}
.confirm-actions{display:flex;flex-direction:column;gap:10px;width:min(290px,100%);margin:auto}
.confirm-actions button{width:100%;min-height:52px}
.keyboard-sized .form-view .cat{display:none}
.keyboard-sized .form-view h1{font-size:24px;margin-bottom:10px}
.keyboard-sized main{padding-top:12px;padding-bottom:12px}
.keyboard-sized .sound{display:none}

.watching .actions{position:relative;z-index:30}
.watching .no{z-index:31;background:#f6f3ee;box-shadow:0 3px 12px #27272718}
/* Keep obstacle measurements stable while the button escapes. */
.watching .cat{transform:none}

/* Keep invitation and refusal controls reachable on landscape phones. */
@media (max-height:450px), (min-width:601px) and (max-height:700px){
 main{padding-top:12px;padding-bottom:12px}
 .invitation:not(:has(.form-view)) h1{font-size:26px;margin-bottom:8px}
 .invitation:not(:has(.form-view)) .cat{height:clamp(36px,calc((var(--app-height,100dvh) - 280px)*.7),110px)!important;width:clamp(42px,calc((var(--app-height,100dvh) - 280px)*.8),122px);margin-bottom:8px}
 .invitation:not(:has(.form-view)) .question{font-size:18px;line-height:1.25;margin-bottom:10px;min-height:0}
 .invitation:not(:has(.form-view)) button{min-height:44px}
 .escape-zone{min-height:44px}.confirm-actions{gap:6px}
 .real-no{margin-top:6px}.progress{margin:10px auto 8px}
 .percent,.error-text{margin:8px auto;font-size:14px}
}


.handshake-art{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom}
