:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#fffaf0;background:#0b2526;font-size:16px}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 90% 0%,#264e45 0,transparent 38%),#0b2526;color:#fffaf0}button,select,input,textarea{font:inherit}button{cursor:pointer}a{color:#ffe4a0}.wrap{width:min(1480px,calc(100% - 30px));margin:auto}.topbar{background:#0a1d1eeb;border-bottom:1px solid #dab36677;position:sticky;top:0;z-index:15;backdrop-filter:blur(12px)}.topbar .wrap{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:65px}.brand{font-family:Georgia,serif;color:#f5cd82;font-size:23px;letter-spacing:1px;font-weight:700}.back{color:#f8e4a6;background:#18413d;border:1px solid #d4b77177;border-radius:8px;padding:10px 15px;text-decoration:none;font-size:14px}.back:hover{background:#315f59}.hero{position:relative;background:linear-gradient(90deg,#081e21ee 2%,#081e2185 75%),url('assets/winter-playfield.webp') center 47% /cover;border-bottom:2px solid #cf9f5d;padding:35px 0 34px}.hero .eyebrow,.eyebrow{letter-spacing:2px;color:#f9d591;font-size:11px;font-weight:800;text-transform:uppercase}.hero h1{font:700 clamp(30px,4.1vw,57px)/1.04 Georgia,serif;max-width:950px;margin:12px 0 11px;text-shadow:0 2px 12px #0009}.hero p{color:#f9f3e6;max-width:810px;line-height:1.65}.tabnav{display:flex;gap:9px;flex-wrap:wrap;padding:20px 0 14px}.tab{border:1px solid #ac9671;background:#16403d;color:white;border-radius:999px;padding:12px 17px;font-weight:800;min-height:46px}.tab[aria-selected=true]{background:#f5d185;color:#163333;box-shadow:0 3px 0 #a67928}.workspace{display:grid;grid-template-columns:minmax(290px,375px) minmax(0,1fr);align-items:start;gap:20px;padding-bottom:45px}.editor,.play-panel{background:#143735;border:1px solid #beab7d66;border-radius:17px;overflow:hidden;box-shadow:0 13px 28px #06141366}.editor{padding:20px}.editor h2,.play-head h2{font:700 27px Georgia,serif;margin:0 0 6px;color:#fbe0a3}.editor .help{color:#d6e3dd;font-size:13px;line-height:1.55;margin:5px 0 15px}.field{margin:14px 0}.field label,.field-title{display:block;font-weight:750;color:#f7dfac;font-size:13px;margin-bottom:7px}.field input,.field textarea,.field select,.editor input,.editor textarea,.editor select{width:100%;border-radius:9px;background:#f9f7f0;border:2px solid transparent;min-height:43px;padding:9px 11px;color:#213b35}.field textarea{min-height:78px;resize:vertical}.field input:focus,.field textarea:focus,.field select:focus{outline:3px solid #e9bc6d}.hint{color:#b7ccc7;font-size:12px;line-height:1.45;margin-top:6px}.file-label{display:block;border:1px dashed #dec59080;padding:15px;border-radius:10px;cursor:pointer;background:#264e48;margin-top:8px;color:#fff;text-align:center}.file-label input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}.preview-row{display:flex;flex-wrap:wrap;gap:9px;margin-top:10px}.preview-photo{width:65px;height:65px;object-fit:cover;border:2px solid #eed59c;border-radius:10px}.preview-item{position:relative}.preview-remove{position:absolute;right:-5px;top:-5px;border:0;border-radius:50%;background:#b53c37;color:white;width:20px;height:20px;line-height:20px;font-weight:900}.section-creator{border-top:1px solid #f8e2ab44;margin-top:14px;padding-top:10px}.section-creator[hidden]{display:none}.smallbtn{background:#285b53;color:#fff;border:1px solid #b4c7b4;border-radius:8px;padding:9px 12px;font-size:13px;min-height:38px}.smallbtn:focus-visible,.tab:focus-visible,.bigbtn:focus-visible{outline:3px solid #fff}.question-form{border:1px solid #9aab93;border-radius:10px;padding:11px;background:#214640;margin:10px 0}.question-form .four{display:grid;grid-template-columns:1fr 1fr;gap:7px}.question-form input{font-size:13px;margin-bottom:7px}.question-form .correct{display:flex;gap:7px;align-items:center;margin-top:5px}.question-form .correct select{width:auto;flex:1}.question-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px}.question-head strong{font-size:13px}.question-head button{border:0;background:#8d3733;border-radius:6px;color:white;padding:3px 8px}.actions{display:grid;gap:9px;margin-top:18px}.bigbtn{min-height:49px;border-radius:10px;border:1px solid #e4b973;padding:10px 15px;background:#e9c479;color:#163431;font-weight:900}.bigbtn.dark{background:#20554e;color:white}.bigbtn.secondary{background:transparent;color:#f6dcaf}.play-head{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:18px 20px;background:#082c2a}.play-head small{display:block;color:#cbdcd2;line-height:1.4}.play-head h2{margin:3px 0}.score{background:#533d1c;border:1px solid #d4b679;border-radius:10px;padding:12px;white-space:nowrap;color:#ffe4a8;font-weight:800;font-size:14px}.game-stage{position:relative;overflow:hidden;min-height:510px;background:#142d2f url('assets/winter-playfield.webp') center center/cover}.game-stage:focus{outline:2px solid #ffe18a;outline-offset:-2px}.stage-inner{position:relative;height:100%;min-height:510px}.status{padding:14px 20px;background:#0d2b2a;min-height:56px;line-height:1.45;color:#fff1ce;font-size:14px}.memory-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;width:min(690px,calc(100% - 28px));margin:20px auto;padding:14px;border-radius:15px;background:#08292dbd;box-shadow:0 14px 30px #0009}.memory-card{position:relative;height:clamp(85px,10.7vw,143px);border:3px solid #d8b46a;border-radius:12px;background:linear-gradient(130deg,#9a2c33,#541721);color:#fce9b5;overflow:hidden;display:grid;place-items:center;font:700 37px Georgia;box-shadow:inset 0 0 0 5px #fff3,0 6px 7px #0008;transition:transform .17s}.memory-card:not(.open):hover{transform:translateY(-3px)}.memory-card img{width:100%;height:100%;object-fit:cover;display:none}.memory-card.open img{display:block}.memory-card.open{background:#fff}.memory-card.done{border-color:#7ee3b5;box-shadow:0 0 0 2px #71cfac}.memory-card.open .backmark{display:none}.memory-card .backmark{font-size:42px;text-shadow:0 2px 5px #0006}.trivia-wrap{padding:30px clamp(14px,5vw,52px);min-height:510px;background:linear-gradient(110deg,#071e23e8,#092a33c8),url('assets/winter-playfield.webp') center/cover}.trivia-board{max-width:760px;margin:0 auto;border:2px solid #ead09a;background:linear-gradient(145deg,#162f40ee,#0c222cee);border-radius:16px;box-shadow:0 10px 38px #0009;padding:clamp(17px,4vw,30px)}.trivia-board h3{font:700 clamp(22px,3vw,35px)/1.26 Georgia,serif;margin:15px 0 19px;color:#fff5d5}.answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.answer-btn{color:white;min-height:58px;text-align:left;padding:12px 15px;font-weight:800;background:linear-gradient(150deg,#9e3838,#52252b);border:1px solid #e6bd8d;border-radius:10px}.answer-btn.good{background:#21785e;border-color:#bff0b0}.answer-btn.bad{background:#732e34;border-color:#e1a4a4;opacity:.78}.quiz-next{margin-top:19px}.catch-stage{position:relative;height:510px;background:linear-gradient(0deg,#112c42a3 0,transparent 50%),url('assets/winter-playfield.webp') center 48%/cover;overflow:hidden;touch-action:pan-y;cursor:crosshair}.catch-item{position:absolute;width:clamp(49px,7vw,78px);height:clamp(49px,7vw,78px);object-fit:contain;transform:translate(-50%,-50%);filter:drop-shadow(0 3px 5px #0009);pointer-events:none}.catch-basket{position:absolute;bottom:6px;width:clamp(90px,16vw,165px);height:86px;border:5px solid #7a431c;border-top:10px solid #e1b574;border-radius:18px 18px 45% 45%;background:repeating-linear-gradient(30deg,#b37d40,#d6b378 8px,#8a5e2c 13px,#e8bd77 16px);transform:translateX(-50%);box-shadow:inset 0 10px 9px #0007,0 8px 7px #0007;display:flex;justify-content:center;align-items:center;color:#482706;font:900 16px Georgia;pointer-events:none}.catch-basket:after{content:'✦';color:#a8212e;font-size:32px}.catch-stage .instruction{position:absolute;left:15px;top:15px;max-width:330px;background:#102d2de0;border-radius:10px;padding:9px 15px;font-weight:800;color:#fff1d2;pointer-events:none}.snow-stage{position:relative;height:510px;overflow:hidden;background:linear-gradient(0deg,#06202fb0,transparent 35%),url('assets/winter-playfield.webp') center/cover;cursor:crosshair;touch-action:manipulation}.snow-target{position:absolute;width:clamp(85px,14vw,144px);height:clamp(91px,14vw,150px);transform:translate(-50%,-50%);object-fit:contain;filter:drop-shadow(0 7px 8px #000b);pointer-events:none}.snow-target.user-face{object-fit:cover;border:4px solid #fff;border-radius:50%;height:100px;width:100px;box-shadow:0 5px 12px #0008}.snow-projectile{position:absolute;width:43px;height:43px;border-radius:50%;background:radial-gradient(circle at 30% 20%,#fff,#d3e3ec 70%,#91b7c3);box-shadow:0 0 12px #fff5;pointer-events:none;z-index:8}.snow-pop{position:absolute;pointer-events:none;color:#fff;font-size:45px;font-weight:900;text-shadow:0 2px 8px #000;transform:translate(-50%,-50%);animation:popout .64s ease forwards}@keyframes popout{to{opacity:0;transform:translate(-50%,-100%) scale(1.5)}}.snow-help{position:absolute;left:15px;bottom:14px;right:15px;background:#09232edc;color:#fcedc9;padding:9px 13px;border-radius:9px;text-align:center;font-weight:800;pointer-events:none}.maze-stage{position:relative;min-height:570px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:17px;background:linear-gradient(#05272cb6,#05272cbb),url('assets/winter-playfield.webp') center/cover}.maze-board{display:grid;grid-template-columns:repeat(var(--maze-cols),minmax(0,1fr));width:min(750px,100%);aspect-ratio:1.45;border:4px solid #e7c284;box-shadow:0 14px 30px #000b;background:#f2f6ee;border-radius:10px;overflow:hidden}.maze-cell{position:relative;display:grid;place-items:center;min-width:0;background:linear-gradient(140deg,#c6e4db,#9dd3ca);border:1px solid #427f6c33}.maze-cell.wall{background:linear-gradient(135deg,#687e7c,#425b56 45%,#789086);border:1px solid #b1c7c145;box-shadow:inset 0 0 0 2px #e1e9e455}.maze-cell.gift{background:radial-gradient(circle,#e9f3e7,#a7d6c7)}.maze-face{width:90%;height:90%;max-width:56px;max-height:56px;object-fit:cover;border-radius:50%;border:3px solid white;box-shadow:0 3px 7px #0008;position:relative;z-index:2}.maze-villain{width:88%;height:88%;max-width:55px;max-height:55px;object-fit:contain;filter:drop-shadow(0 2px 4px #000a)}.maze-gift{width:78%;height:78%;object-fit:contain;filter:drop-shadow(0 1px 3px #0004)}.maze-controls{display:grid;grid-template-areas:'. up .' 'left joy right' '. down .';grid-template-columns:53px 92px 53px;align-items:center;justify-content:center;gap:6px}.control-dir{width:53px;height:53px;border:1px solid #f1d18d;border-radius:12px;color:#fff9e2;background:#205e53;font-size:23px}.control-dir[data-dir=up]{grid-area:up}.control-dir[data-dir=left]{grid-area:left}.control-dir[data-dir=down]{grid-area:down}.control-dir[data-dir=right]{grid-area:right}.joystick{grid-area:joy;display:grid;place-items:center;width:92px;height:92px;border:3px solid #bca873;border-radius:50%;background:radial-gradient(circle,#52756a,#24433b);touch-action:none;user-select:none;position:relative}.joystick-knob{width:42px;height:42px;border-radius:50%;border:3px solid #f3dc9c;box-shadow:0 3px 8px #0006;background:linear-gradient(130deg,#c89849,#746039)}.maze-note{color:#fbe5b4;font-size:13px;text-align:center;max-width:750px}.reward{position:absolute;inset:0;display:grid;place-items:center;z-index:50;background:#061c23e9;padding:25px}.reward[hidden]{display:none}.reward-card{background:linear-gradient(#19483b,#0b292e);border:3px solid #e4c07b;color:#fff7d8;border-radius:22px;max-height:94%;overflow:auto;width:min(500px,95%);text-align:center;padding:27px;box-shadow:0 0 50px #000c}.reward-card h3{font:700 clamp(26px,4vw,39px) Georgia;margin:10px 0;color:#ffdf9b}.reward-card p{line-height:1.6;white-space:pre-line}.reward-card img{max-width:100%;max-height:200px;object-fit:contain;border:2px solid #ebcc83;border-radius:14px}.reward-link{display:block;margin:14px auto;background:#f0cb83;padding:12px;color:#1b3930;border-radius:8px;font-weight:900;text-decoration:none}.reward-btns{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.reward-btns button{border:1px solid #f1cd8d;padding:11px 17px;border-radius:10px;background:#216653;color:white;font-weight:900}.result-help{color:#d8efdf;text-align:center;font-size:13px;padding:12px 18px;border-top:1px solid #658d82}.export-mode .workspace{display:block;max-width:1100px}.export-mode .editor,.export-mode .tabnav,.export-mode .hero p.export-hide{display:none}.export-mode .play-panel{width:100%}.export-mode .hero{padding:26px 0}.export-mode .topbar .back{display:none}.export-mode .game-stage{min-height:550px}@media(max-width:950px){.workspace{grid-template-columns:1fr}.editor{order:2}.play-panel{order:1}.hero{padding:20px 0}.hero h1{font-size:33px}.game-stage,.stage-inner{min-height:430px}.trivia-wrap{min-height:440px}}@media(max-width:570px){.wrap{width:min(100% - 16px,1480px)}.topbar .wrap{min-height:59px}.brand{font-size:17px}.back{padding:8px;font-size:12px}.tabnav{padding:12px 0}.tab{flex:1 1 44%;font-size:13px;padding:9px 8px}.editor{padding:14px}.score{font-size:11px;padding:9px}.play-head h2{font-size:22px}.game-stage{min-height:360px}.memory-board{gap:6px;padding:8px}.memory-card{height:84px}.answer-grid{grid-template-columns:1fr}.catch-stage,.snow-stage{height:370px}.maze-stage{min-height:480px;padding:10px}.maze-board{aspect-ratio:1.25}.maze-cell{border-width:0}.maze-face{border-width:2px}.maze-controls{transform:scale(.83);margin:-13px 0}.reward-card{padding:15px}}

/* Photo-textured maze tiles, using real winter village detail. */
.maze-cell:not(.wall){background:linear-gradient(135deg,#d5f1e9cc,#c1e6db6b),url('assets/snow-floor.webp') center/cover;border:1px solid #a0d3c076}
.maze-cell.wall{background:linear-gradient(130deg,#30534997,#516b688c),url('assets/stone-wall.webp') center/cover;border:1px solid #e5efe2aa;box-shadow:inset 0 0 0 2px #e9f6eb50,0 1px 3px #10332d70}
.maze-face{outline:2px solid #ffd785;box-shadow:0 0 12px 3px #fbd87892,0 3px 7px #0008}
.maze-gift{filter:drop-shadow(0 0 8px #fff9) drop-shadow(0 2px 3px #0006)}

/* Per-recipient headshot adjustment. Original photos remain browser-local. */
.avatar-adjust{display:grid;gap:9px;border:1px solid #bcac80;background:#193d39;border-radius:13px;padding:13px;margin:12px 0;color:#f7eed2}.avatar-adjust[hidden]{display:none}.avatar-adjust p{font-size:13px;color:#d9eee1;margin:0;line-height:1.45}.avatar-adjust canvas{width:220px;height:220px;max-width:100%;border-radius:50%;border:5px solid #efcd8e;object-fit:cover;cursor:grab;touch-action:none;margin:auto;box-shadow:0 0 0 3px #204e40}.avatar-adjust canvas:active{cursor:grabbing}.avatar-adjust label{display:grid;gap:6px;color:#f1e1b3;font-weight:800}.avatar-adjust input[type=range]{width:100%;accent-color:#f4d083}

/* Distinct ISN Gift Trail identity: photo explorer in a snowflake badge, original villain portraits, and gift boxes. */
.maze-cell:has(.maze-face){isolation:isolate; background:radial-gradient(circle,#e5f9ff,#8bc4bd)}
.maze-face{border-radius:24%;outline:3px solid #ffe9aa;border:3px solid #143e48;box-shadow:0 0 0 3px #d6efdf,0 5px 11px #051d2799;transform:rotate(-3deg);}
.maze-cell:has(.maze-face)::after{content:'✦';position:absolute;z-index:3;right:0;bottom:0;color:#9f283c;background:#ffdf8f;border-radius:50%;padding:1px 4px;font-size:12px;line-height:17px;box-shadow:0 1px 3px #001b2188}
.maze-villain{max-width:65px;max-height:65px;object-fit:contain;filter:drop-shadow(0 3px 5px #0008)}

/* Snowball Showdown v2: real photographic hide-and-seek playfield, barriers, throwing arm. */
.showdown-stage{height:clamp(500px,54vw,630px);min-height:500px;position:relative;isolation:isolate;overflow:hidden;background:#122b36;cursor:crosshair;touch-action:manipulation;user-select:none}
.showdown-backdrop,.showdown-foreground{position:absolute;width:100%;height:100%;inset:0;object-fit:cover;pointer-events:none;user-select:none}
.showdown-backdrop{z-index:0}.showdown-foreground{z-index:6}
.showdown-cover-left{clip-path:polygon(0 39%,22% 39%,22% 52%,31% 55%,31% 99%,0 99%)}
.showdown-cover-fence{clip-path:polygon(21% 35%,57% 32%,57% 47%,21% 47%)}
.showdown-cover-mound{clip-path:polygon(27% 53%,36% 44%,50% 43%,63% 55%,63% 69%,27% 69%)}
.showdown-cover-stone{clip-path:polygon(54% 33%,83% 33%,83% 61%,54% 61%)}
.showdown-cover-logs{clip-path:polygon(61% 59%,92% 55%,99% 76%,99% 88%,60% 88%)}
.showdown-villain{--vsize:clamp(88px,10vw,128px);position:absolute;width:var(--vsize);height:calc(var(--vsize)*1.45);transform:translate(-50%,-10%);z-index:3;pointer-events:none;transition:left .8s cubic-bezier(.3,.12,.3,1),top .8s cubic-bezier(.3,.12,.3,1),opacity .28s,transform .35s ease;filter:drop-shadow(0 8px 13px #0009)}
.showdown-villain[data-state=hidden]{opacity:0;transform:translate(-50%,55%) scale(.78)}.showdown-villain[data-state=ducking]{opacity:.65;transform:translate(-50%,30%) scale(.89)}.showdown-villain[data-state=running]{opacity:1;transform:translate(-50%,0%) rotate(-9deg)}.showdown-villain[data-state=peeking]{opacity:1;transform:translate(-50%,-25%)}.showdown-villain[data-state=tagged]{opacity:.9;transform:translate(-50%,-40%) rotate(24deg) scale(.83)}
.showdown-coat{position:absolute;left:11%;top:49%;width:78%;height:60%;border:3px solid #e4d1a4;border-radius:38% 38% 8% 8%;background:linear-gradient(118deg,#672a2b,#a34b3b 42%,#2a392e);box-shadow:inset 0 6px 15px #0008}.showdown-coat:after{content:'';position:absolute;inset:0 36%;border-radius:2px;background:linear-gradient(#ead7ae,#7c3137)}
.showdown-face{position:absolute;width:90%;height:64%;top:0;left:5%;object-fit:cover;border-radius:48%;border:3px solid #fff2cf;box-shadow:0 1px 0 #fff8,inset 0 0 5px #fffb,0 5px 17px #14272edd;user-select:none}.showdown-user-photo .showdown-face{object-fit:cover}
.showdown-hud{position:absolute;z-index:13;top:10px;left:12px;right:12px;display:flex;align-items:center;flex-wrap:wrap;gap:8px;pointer-events:none}
.showdown-hud>*{color:#fff7df;background:linear-gradient(#16393ded,#071e29eb);padding:7px 12px;border:1px solid #ffe3a5;border-radius:12px;box-shadow:0 3px 12px #061b259a;font-size:14px;text-shadow:0 1px 3px #001}
.showdown-brand strong{display:block;font:900 clamp(15px,2.2vw,24px)/1.1 Georgia,serif;color:#fce6ad}.showdown-brand small{display:block;color:#e5dcc0;font-size:9px;letter-spacing:2px}.showdown-counter b{font-size:17px;color:#f5d27e}
.showdown-hud .showdown-restart{pointer-events:auto;cursor:pointer;font:800 13px system-ui;background:#8a2f37ef;min-height:39px;margin-left:auto}
.showdown-arm{position:absolute;z-index:12;right:-4%;bottom:-5%;width:clamp(230px,33%,440px);height:auto;max-height:70%;object-fit:contain;transform-origin:75% 94%;pointer-events:none;filter:drop-shadow(0 6px 14px #0006)}
.showdown-arm.throwing{animation:showdown-throw .48s cubic-bezier(.14,.65,.38,1) both}
@keyframes showdown-throw{0%{transform:translate(0,3%) rotate(5deg)}33%{transform:translate(-18%,-25%) rotate(-24deg)}63%{transform:translate(-16%,-19%) rotate(-13deg)}100%{transform:translate(0,0) rotate(0deg)}}
.showdown-projectile{position:absolute;width:clamp(27px,5vw,46px);height:clamp(27px,5vw,46px);border-radius:50%;z-index:16;pointer-events:none;background:radial-gradient(circle at 30% 25%,#fff,#edf6f9 45%,#a3c9d1 90%);box-shadow:0 0 13px #fff,0 3px 8px #0016}
.showdown-reticle{position:absolute;left:52%;top:52%;z-index:14;pointer-events:none;border:2px solid #e83d36;box-shadow:0 0 4px #fff8,0 0 0 1px white inset;width:31px;height:31px;border-radius:50%;transform:translate(-50%,-50%);opacity:0}.showdown-stage:hover .showdown-reticle,.showdown-reticle.showdown-aim-on{opacity:1}
.showdown-reticle:before,.showdown-reticle:after{content:'';position:absolute;background:#fff;box-shadow:0 0 3px #811}.showdown-reticle:before{height:2px;left:-8px;right:-8px;top:50%}.showdown-reticle:after{width:2px;top:-8px;bottom:-8px;left:50%}
.showdown-tip{position:absolute;left:2%;bottom:16px;max-width:49%;z-index:13;background:#071e27db;color:#fff6d6;border:1px solid #e6c27c;padding:11px 12px;border-radius:10px;font-size:clamp(11px,1.3vw,14px);font-weight:750;pointer-events:none}
.showdown-snowballs{position:absolute;z-index:10;bottom:8px;right:9%;color:white;text-shadow:0 2px 7px #223b48;font-size:clamp(18px,2vw,29px);pointer-events:none}
.showdown-hitburst{position:absolute;z-index:20;pointer-events:none;font:900 clamp(22px,3vw,35px) Georgia,serif;color:#fff6d3;text-shadow:0 2px 8px #0d2028,0 0 10px #b91f25;transform:translate(-50%,-50%);animation:showdown-burst .8s ease-out both}@keyframes showdown-burst{to{opacity:0;transform:translate(-50%,-165%) scale(1.4)}}
.showdown-flash{position:absolute;inset:0;z-index:18;opacity:0;background:rgba(255,255,255,.17);pointer-events:none}.showdown-flash-on{animation:showdown-flash .23s ease both}@keyframes showdown-flash{0%{opacity:0}40%{opacity:1}100%{opacity:0}}
.showdown-win{position:absolute;z-index:25;inset:16% 12%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;text-align:center;border:3px solid #f7cf77;border-radius:18px;background:linear-gradient(#071e2bec,#183e43f7);box-shadow:0 18px 45px #071b27bb;padding:24px}.showdown-win h3{font:700 clamp(27px,4vw,52px) Georgia,serif;margin:0;color:#fce5a6}.showdown-win p{max-width:510px;font-size:16px;line-height:1.5}.showdown-next{background:#b4333f;color:white;border:2px solid #e8c17e;border-radius:12px;padding:12px 26px;font-weight:900;min-height:45px}
@media(max-width:720px){.showdown-stage{min-height:490px;height:68vh;max-height:640px}.showdown-hud{left:7px;right:7px;gap:4px}.showdown-hud>*{padding:5px 7px;font-size:11px}.showdown-brand small{display:none}.showdown-hud .showdown-restart{margin-left:0}.showdown-villain{--vsize:clamp(68px,16vw,92px)}.showdown-arm{width:48%;right:-11%;bottom:-3%}.showdown-tip{max-width:60%;left:5px;bottom:6px}.showdown-snowballs{display:none}}
@media(prefers-reduced-motion:reduce){.showdown-arm.throwing{animation-duration:.1s}.showdown-villain{transition-duration:.1s}.showdown-hitburst{animation-duration:.1s}}

.showdown-coat{display:none}

/* Original photographic Christmas Gift Chase (no borrowed franchise appearance). */
.maze-stage{background:linear-gradient(0deg,#071d25b8,#061d254f),url('assets/showdown-courtyard.webp') center/cover;min-height:630px}.maze-board{border:8px solid #e5c38a;border-radius:15px;box-shadow:0 16px 30px #000b,0 0 0 5px #153a3a;aspect-ratio:1.55;width:min(850px,100%)}.maze-cell{background:linear-gradient(#eefaff50,#a5d7df50),url('assets/snow-floor.webp') center/cover;border:1px solid #eaf4e559}.maze-cell.wall{background:linear-gradient(#294a4499,#1e3b3a88),url('assets/stone-wall.webp') center/cover;border:1px solid #d1e5e2aa;box-shadow:inset 0 2px 6px #071b206e}.maze-face{filter:drop-shadow(0 2px 3px #082633ad);border:3px solid #f3da96;object-fit:cover}.maze-villain{filter:drop-shadow(0 4px 9px #091e25bc);border-radius:42%;border:2px solid #e8d1b2}.maze-gift{filter:drop-shadow(0 3px 4px #062b31bd)}

/* Clear end-of-round feedback for Catch the Celebration: no frozen playfield. */
.catch-stage{position:relative;isolation:isolate}
.catch-live-hud{position:absolute;z-index:10;right:12px;top:10px;background:#092f35e8;color:#fff5d6;border:2px solid #f2d48c;border-radius:9px;padding:10px 14px;font-size:clamp(13px,1.5vw,17px);font-weight:800;text-shadow:0 1px 2px #13262f;pointer-events:none}
.catch-result-overlay{position:absolute;inset:0;z-index:40;display:grid;place-items:center;background:rgba(3,19,26,.80);padding:14px;backdrop-filter:blur(5px)}
.catch-result-panel{width:min(520px,96%);padding:clamp(20px,3vw,35px);background:linear-gradient(148deg,#123d42,#0e272d);border:3px solid #f1d38d;border-radius:22px;box-shadow:0 20px 65px #000c;text-align:center;color:#fff8e5}
.catch-result-eyebrow{font:700 11px/1.4 system-ui;letter-spacing:.16em;color:#f1cb85}
.catch-result-panel h2{font:900 clamp(34px,5vw,58px)/1.1 Georgia,serif;color:#ffdfa2;margin:12px 0}
.catch-result-panel p{font:500 16px/1.5 system-ui;color:#fff6e6;margin:8px auto}
.catch-result-score{margin:17px 0;padding:11px;border-radius:10px;background:#fff2cc18;color:#ffeaac;font-weight:700}
.catch-result-buttons{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}
.catch-result-buttons button{background:#b52c35;color:white;border:2px solid #efd18e;border-radius:10px;min-height:46px;padding:12px 17px;cursor:pointer;font-weight:800}
.catch-result-buttons button:hover{background:#d14142}

/* Use the winter stone and portrait artwork in a high-contrast corridor maze. */
.maze-board{background:#071b24;border-color:#dcb475}
.maze-cell:not(.wall){background:linear-gradient(#163d4be0,#0b2935dc),url('assets/snow-floor.webp') center/cover;border-color:#70b4bf26}
.maze-cell.wall{background:linear-gradient(#2c6577b3,#133d54bb),url('assets/stone-wall.webp') center/cover;border-color:#6ec6d497;box-shadow:inset 0 0 0 1px #79d1e44d,inset 0 0 10px #53adc269}
.maze-cell:has(.maze-face){background:radial-gradient(circle,#629994,#154356)}
.maze-gift{filter:drop-shadow(0 0 5px #ffcb68ad) drop-shadow(0 2px 3px #000a)}
