*{box-sizing:border-box}body{margin:0;background:#91b9d4;color:var(--ink,#304763);font-family:system-ui,-apple-system,sans-serif;display:flex;justify-content:center;overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button:disabled{cursor:default}#stage{width:450px;height:800px;position:relative;flex-shrink:0;transform-origin:top center;background-size:cover;background-position:center;overflow:hidden}header{position:absolute;top:16px;left:16px;right:16px;display:flex;align-items:center;gap:9px;z-index:4}header>a,nav button{display:grid;place-items:center;width:34px;height:34px;border:1px solid #fff9;border-radius:50%;background:#fffc;color:var(--ink);text-decoration:none;font-size:22px;box-shadow:0 3px 9px #507ba322}.wallet{background:#fffd;padding:6px 10px;border:1px solid #fff;border-radius:20px;font-size:12px;box-shadow:0 3px 10px #527f9d24}.wallet b{font-size:16px}nav{display:flex;gap:6px;margin-inline-start:auto}.heading{position:absolute;top:62px;width:100%;text-align:center}.heading small{font-size:9px;letter-spacing:4px;color:#597b9d}.heading h1{font-family:Georgia,serif;font-size:37px;margin:4px 20px;color:#fff4db;line-height:1.1;text-shadow:0 2px 0 #b78848,0 4px 0 #927650,0 6px 12px #547ca5;letter-spacing:1px}.heading p{font-size:12px;margin:10px 12px;color:#4e6581}#summit{position:absolute;top:147px;left:202px;font-size:40px;color:#fff1b9;filter:drop-shadow(0 0 8px #cf9e44)}#tower{position:absolute;top:196px;left:29px;right:29px;height:400px;direction:ltr}.floor{position:absolute;width:100%;height:78px;transition:opacity .3s,filter .3s}.platform{position:absolute;bottom:0;width:100%;height:55px;object-fit:fill}.floor-label{position:absolute;left:24px;top:30px;font-size:13px;font-weight:800;color:#726342;background:#fff9e9e8;padding:4px 9px;border-radius:12px;z-index:2}.door{position:absolute;top:-13px;width:66px;height:76px;background:none;border:0;padding:0;transition:filter .3s,transform .3s}.door img{width:100%;height:100%;object-fit:contain}.door:nth-of-type(1){left:155px}.door:nth-of-type(2){left:258px}.door span{position:absolute;inset:26px 0 0;font-size:19px;color:white;text-shadow:0 2px 3px #24629e}.floor.waiting{opacity:.55;filter:saturate(.5)}.floor.cleared{opacity:.55;filter:saturate(.55)}.floor.current,.floor.ready{opacity:1;filter:none}.floor.current .platform{filter:drop-shadow(0 0 8px #fff0ac)}.floor.current .door:not(:disabled){filter:drop-shadow(0 0 5px #f8e5a8);animation:breathe 2.1s ease-in-out infinite}.door.safe img{filter:saturate(.5) brightness(1.05)}.door.miss img{filter:grayscale(.8) brightness(.7)}.door.safe span{color:#fff8a5;font-size:26px}.door.chosen{transform:none}#cat{position:absolute;width:89px;height:89px;object-fit:contain;left:99px;top:466px;z-index:3;filter:drop-shadow(0 4px 3px #5b83ad50);transition:top .65s cubic-bezier(.2,.7,.2,1),transform .4s,filter .4s;pointer-events:none}#cat.lost{transform:rotate(-5deg);filter:saturate(.7) drop-shadow(0 4px 3px #5b83ad50)}#cat.won{transform:scale(1.06)}#sparkles{position:absolute;top:590px;width:100%;text-align:center;color:#fff0a2;font-size:24px;opacity:0;transition:opacity .3s}.celebrate #sparkles{opacity:1}.feedback{position:absolute;top:612px;left:24px;right:24px;min-height:82px;background:#fffaf0e8;border:1px solid #fff;border-radius:22px;padding:12px;box-shadow:0 5px 15px #4a7a991a;text-align:center}.feedback>div{display:flex;align-items:center;justify-content:center;gap:10px;font-size:11px}.feedback b{font-size:19px;color:#947038;font-variant-numeric:tabular-nums}.feedback p{font-size:13px;margin:8px 0 0;line-height:1.4;min-height:18px}footer{position:absolute;top:710px;left:20px;right:20px;text-align:center}.actions{display:flex;gap:9px}.actions button,#cashout{flex:1;border:2px solid #fff7db;border-radius:18px;padding:10px 6px;background:linear-gradient(#ffffff44,transparent),var(--primary);color:#fff;box-shadow:0 4px 0 #45668e,0 8px 14px #537da533;text-shadow:0 1px 1px #0003}.actions button:nth-child(2){background-color:var(--secondary)}.actions button:nth-child(3){background-color:var(--tertiary)}.actions span,.actions b{display:block;font-size:13px}.actions b{font-size:16px;margin-top:3px}footer>small{display:block;font-size:9px;margin-top:13px;color:var(--captionInk,#52677f)}.actions button:disabled{opacity:.6}#cashout{width:90%;min-height:44px;font-size:16px}#cashout:disabled{background:#9eafbe;box-shadow:0 3px 0 #8397a8}#hint{font-size:10px;margin:6px 0 0}#retry{position:absolute;top:690px;left:190px;z-index:5}dialog{width:min(92vw,420px);max-height:80vh;border:1px solid #d4bb8e;border-radius:22px;background:var(--panel,#fff8e9);color:var(--ink,#304763);padding:25px;box-shadow:0 20px 60px #183d5b44}dialog::backdrop{background:#1e3c586b;backdrop-filter:blur(4px)}dialog h2{font-size:22px}dialog p{white-space:pre-line;line-height:1.8;font-size:14px}#close{float:right;background:none;border:0;font-size:25px}button:focus-visible,a:focus-visible{outline:3px solid #c99837;outline-offset:3px}[hidden]{display:none!important}@keyframes breathe{50%{filter:drop-shadow(0 0 10px #ffe48c)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

body{background:radial-gradient(ellipse at top,var(--outsideTop,#dce9fa),var(--outsideBottom,#a4c2df));height:100svh}#stage{position:absolute;left:calc(50% - 225px)}

/* Keep the active choice dominant; completed doors are only a quiet breadcrumb. */
.floor.current{z-index:2}.floor.current .floor-label{background:var(--panel);color:var(--ink);border:1px solid var(--accent);box-shadow:0 2px 8px #806b3230}.floor.current .door span{color:#fff7d0;text-shadow:0 1px 4px #264e75}.floor.current .door::after{content:'⌄';position:absolute;top:-19px;left:24px;width:18px;font-size:23px;font-weight:800;color:var(--accent);text-shadow:0 1px 0 #fff}.floor.current .platform{filter:drop-shadow(0 2px 5px #c1a14d80)}.floor.cleared .door.safe span{font-size:20px;color:#fff}.platform{pointer-events:none}.door{filter:drop-shadow(2px 3px 2px #42627d33)}#catShadow{position:absolute;left:118px;top:543px;width:51px;height:9px;z-index:2;border-radius:50%;background:radial-gradient(ellipse,#52647766,transparent 72%);transition:top .65s cubic-bezier(.2,.7,.2,1);pointer-events:none}.feedback p{max-width:100%;text-wrap:pretty}.wallet{gap:4px}#hint{font-size:11px}#cat.won{transform-origin:50% 88%}

/* Cloudcat visual pass: rounded clay surfaces, a compact pair of doors. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;border:0}.heading{top:62px;height:118px;display:flex;align-items:center;justify-content:center}#titleArt{width:390px;height:118px;object-fit:contain}.door:nth-of-type(1){left:164px}.door:nth-of-type(2){left:236px}.door{width:70px;height:78px;top:-11px}.door span{inset:32px 0 0;font-size:16px;opacity:.9}.floor-label{left:12px;top:39px;background:#fff8e9;color:#4b5268;border:1px solid #d7c7ae;box-shadow:0 2px 3px #6b829333;padding:5px 9px;min-width:55px;text-align:center}.floor.waiting{opacity:.8;filter:saturate(.7)}.floor.cleared{opacity:.64;filter:saturate(.5)}.floor.current .floor-label{background:#fff1cc;color:#51452e;box-shadow:0 2px 5px #96774744}.floor.current .door::after{left:27px;top:-15px;font-size:21px}.door.safe img{filter:saturate(.65)}.door.miss img{filter:grayscale(.8) brightness(.7)}.platform{height:56px}.floor.current .platform{filter:drop-shadow(0 3px 4px #7297af44)}#cat{left:99px;filter:drop-shadow(0 2px 2px #637b9233)}#cat.lost{opacity:0;transform:translateY(380px);transition:none}#cat.lost.falling{animation:cloudFall 1.05s cubic-bezier(.4,.03,.85,.65) forwards}.feedback{background:linear-gradient(145deg,var(--surfaceTop,#fffef7),var(--surfaceBottom,#f3e8d7));border:3px solid var(--surfaceEdge,#fffdf4);box-shadow:inset 0 -4px 0 #decdb44d,0 5px 0 #c2b49e66,0 9px 16px #7393af22;border-radius:24px}.feedback b{color:var(--rewardInk,#715639)}.feedback p{color:var(--ink,#455971)}.actions button,#cashout{border:3px solid #fff7e6;border-radius:20px;background:linear-gradient(165deg,var(--buttonTop,#e8f5fc) 0%,var(--buttonMiddle,#a1cce2) 42%,var(--buttonBottom,#7babcc) 100%);color:var(--buttonInk,#304e69);text-shadow:0 1px #ffffff80;box-shadow:inset 0 3px 3px #fff9,inset 0 -5px 0 #527c9c33,0 5px 0 #7994aa,0 8px 13px #557f9826;font-weight:700}.actions button:nth-child(2){background:linear-gradient(165deg,var(--buttonTwoTop,#f4edff),var(--buttonTwoMiddle,#c4b5df) 45%,var(--buttonTwoBottom,#a291c9));box-shadow:inset 0 3px 3px #fff9,inset 0 -5px 0 #745c9033,0 5px 0 #9789ad,0 8px 13px #557f9826}.actions button:nth-child(3){background:linear-gradient(165deg,var(--buttonThreeTop,#fff0e5),var(--buttonThreeMiddle,#e9bca7) 45%,var(--buttonThreeBottom,#d69b88));box-shadow:inset 0 3px 3px #fff9,inset 0 -5px 0 #975c4e33,0 5px 0 #b38f80,0 8px 13px #557f9826}#cashout:disabled{background:linear-gradient(#edf0ef,#c3cfd3);color:#71828d;box-shadow:0 4px 0 #a4b4bc}header>a,nav button,.wallet{background:linear-gradient(145deg,var(--surfaceTop,#fffdf6),var(--surfaceBottom,#e9eff1));border:2px solid #fff9;box-shadow:inset 0 -2px 0 #bdc7cb44,0 3px 6px #7692aa33}.wallet{padding:5px 9px}#hint{color:var(--captionInk,#3f526a);font-weight:500}dialog{background:linear-gradient(145deg,var(--surfaceTop,#fffdf6),var(--surfaceBottom,#f1e6d5));border:3px solid #fff9}@keyframes cloudFall{0%{opacity:1;transform:translateY(0) rotate(0)}20%{opacity:1;transform:translateY(-9px) rotate(-6deg)}70%{opacity:.9;transform:translateY(130px) rotate(12deg)}100%{opacity:0;transform:translateY(380px) rotate(20deg)}}@media(prefers-reduced-motion:reduce){#cat.lost.falling{animation:none;opacity:0}}
.platform{height:75px;bottom:-4px}.door{height:82px;top:-29px}.floor.current .door::after{top:-10px}.door span{inset:38px 0 0}.floor-label{top:43px}

/* Floors stack from back/top to front/bottom; the hero stays in front. */
#cat{z-index:7}#catShadow{z-index:6}

footer small.round-deadline{font-size:10px;line-height:1.4;margin-top:5px;overflow-wrap:anywhere}
