/* Phone layout: dedicated room route and full-screen game panels. */
.mobile-intro,.mobile-bar,.mobile-card-content{display:none}
@media(min-width:0px){
 html{scroll-padding-top:20px}body{background:#0d1218;padding-bottom:calc(86px + env(safe-area-inset-bottom));-webkit-text-size-adjust:100%}body:has(dialog[open]){overflow:hidden}
 .demo,.map,.bottom,.desktop-room-label{display:none!important}
 .mobile-intro{display:block;padding:0 20px}.mobile-brand{display:flex;align-items:center;justify-content:space-between;padding:22px 0 20px;border-bottom:1px solid #ffffff15}.mobile-brand img{width:105px;height:69px;object-fit:contain}.mobile-brand>span{font-size:10px;line-height:1.7;letter-spacing:1.3px;color:#aab4be;text-align:right}
 .mobile-hero{position:relative;padding:27px 0 16px;isolation:isolate}.mobile-hero:before{content:'';position:absolute;width:200px;height:220px;right:-20px;top:0;background:radial-gradient(ellipse,#d9802520,transparent 68%);z-index:-1}.mobile-label{display:inline-block;background:#ffdf00;color:#111;font-size:11px;font-weight:900;padding:6px 9px;letter-spacing:.8px;transform:rotate(-2deg)}
 .mobile-hero h1{font-size:clamp(32px,9vw,47px);line-height:1.1;letter-spacing:-.7px;margin:21px 0 13px;position:relative;z-index:1}.mobile-hero h1 em{font-style:normal;color:#ffdf00;font-size:1.35em}.mobile-hero p{font-size:14px;line-height:1.6;max-width:82%;margin:0 0 23px;color:#b1bec9}.hero-pumpkin{position:absolute;right:-4px;top:132px;font-size:72px;transform:rotate(12deg);filter:drop-shadow(0 10px 22px #d56a0030);z-index:-1}.mobile-hero>.primary{display:flex;align-items:center;justify-content:space-between;min-height:56px;margin-bottom:0;border-radius:14px;font-size:16px;box-shadow:0 5px 0 #907c00}.mobile-how{display:block;margin:10px auto 0;padding:14px 20px;min-height:48px;border:0;background:none;color:#b8c5cf;text-decoration:underline;text-underline-offset:4px;font-size:13px}
 .mobile-route-heading{display:flex;align-items:center;justify-content:space-between;margin-top:20px;gap:10px}.mobile-route-heading span{font-size:10px;letter-spacing:2px;color:#939fab}.mobile-route-heading h2{font-size:18px;line-height:1.3;margin:8px 0 14px}.mobile-route-heading b{font:700 23px Oswald,Arial;color:#ffdf00}.mobile-meter{height:4px;background:#ffffff12;border-radius:6px;overflow:hidden;margin-bottom:18px}.mobile-meter i{display:block;height:100%;background:#ffdf00;transition:width .3s}
 #rooms{display:flex;flex-direction:column;padding:0 20px 24px;gap:14px}#rooms>.room-card{width:100%;display:block;border:1px solid #ffffff20;border-radius:19px;padding:0;color:#fff;background:linear-gradient(120deg,var(--room-shade),#151d26 75%);overflow:hidden;position:relative;min-height:190px}#rooms>.room-card.active{border-color:#ffffff25}#rooms>.room-card.done{border-color:#62c6a1}.room-card.amber{--room-color:#f5c865;--room-shade:#332a20}.room-card.violet{--room-color:#c9a5fb;--room-shade:#2c243d}.room-card.mint{--room-color:#79dfbd;--room-shade:#19382f}.room-card.blue{--room-color:#8bbffb;--room-shade:#1e2b40}.room-card.orange{--room-color:#ffaa6b;--room-shade:#3b2922}
 .mobile-card-content{display:block}.room-topline{display:flex;align-items:center;justify-content:space-between;padding:15px 17px 0;font-size:10px;letter-spacing:1.3px;color:#a5b1bd}.room-status{font-size:9px;letter-spacing:.5px;background:#ffffff0b;border-radius:30px;padding:5px 8px;color:var(--room-color)}.room-main{display:flex;gap:14px;align-items:center;padding:13px 17px 16px}.room-illustration{display:grid;place-items:center;flex:0 0 70px;height:80px;font-size:55px;filter:drop-shadow(0 7px 8px #0005);transform:rotate(-7deg)}.room-copy{display:flex;flex-direction:column;gap:5px;min-width:0}.room-copy small{font-size:8px;color:var(--room-color);letter-spacing:1px}.room-copy strong{font:700 24px/1.15 Oswald,Arial;color:#fff}.room-copy>span{font-size:12px;line-height:1.55;color:#abb9c6;font-weight:400}.room-enter{display:flex;align-items:center;justify-content:space-between;margin:0 17px;padding:12px 0 14px;border-top:1px solid #ffffff12;color:var(--room-color);font-size:12px}.room-enter>span{font-size:20px;line-height:1}
 .mobile-bar{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:10;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:#121a23f5;backdrop-filter:blur(18px);border-top:1px solid #ffffff1c;gap:8px}.mobile-bar button{flex:1;min-height:55px;background:none;border:0;border-radius:12px;color:#bfccd6;font-size:11px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.mobile-bar button:first-child{background:#ffdf0010;color:#ffdf00}.mobile-bar button>span{font-size:21px;line-height:1}
 dialog{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:0 20px calc(30px + env(safe-area-inset-bottom));background:radial-gradient(ellipse at 100% 0,#263544,#111922 50%);overscroll-behavior:contain;scrollbar-width:thin;box-shadow:none}
 dialog>.close{position:sticky;display:block;top:0;left:auto;right:auto;margin:0 -20px 16px;width:calc(100% + 40px);height:calc(58px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 20px 0;text-align:left;background:#111922f5;backdrop-filter:blur(12px);border-bottom:1px solid #ffffff15;color:#fff;z-index:5;font-size:0}.close:before{content:'← К комнатам';font-size:14px;font-weight:700}
 #content{max-width:520px;margin:0 auto;padding-bottom:10px}#content h1{font-size:32px;line-height:1.14;margin:12px 0 18px;overflow-wrap:anywhere}#content p{font-size:15px;line-height:1.6;overflow-wrap:anywhere}#content .eyebrow{font-size:10px;letter-spacing:1.3px}#content .character{font-size:58px;margin:15px 0}.speech{padding:14px 15px;margin:16px 0;font-size:14px;line-height:1.5;background:#263544}.primary,.choice{min-height:54px;font-size:16px;line-height:1.4;padding:15px 17px;border-radius:13px;text-decoration:none;touch-action:manipulation}.choice{margin:12px 0;background:#202e3c;border-color:#43515e}.boxes{gap:10px}.boxes button{min-height:82px;padding:12px 5px;font-size:38px;touch-action:manipulation}.boxes button:disabled{opacity:.65;background:#203c34;border-color:#477e68}.reward{padding:16px;margin:18px 0;overflow-wrap:anywhere}.reward strong{line-height:1.4}#content .note{font-size:12px;line-height:1.6}#content a:not(.primary){display:inline-block;padding:12px 0;min-height:48px;overflow-wrap:anywhere}input{min-height:58px;font-size:24px}.hint{min-height:48px;font-size:14px}.wheel-wrap{width:min(280px,calc(100vw - 64px));margin:28px auto}.fortune-wheel span{font-size:10px}
}
@media(max-width:350px){.mobile-intro{padding:0 16px}#rooms{padding-left:16px;padding-right:16px}.room-main{gap:9px;padding-left:13px;padding-right:13px}.room-illustration{flex-basis:55px;font-size:46px}.room-copy strong{font-size:22px}.hero-pumpkin{font-size:57px;top:140px}dialog{padding-left:16px;padding-right:16px}dialog>.close{margin-left:-16px;width:calc(100% + 32px)}#content h1{font-size:28px}}
@media(min-width:0px){body{overflow-x:clip}.mobile-hero:before{right:0}dialog{overflow-x:hidden;overflow-y:auto}}

/* Same illustrated warehouse as desktop, arranged as a vertical mobile route. */
@media(min-width:0px){
 .mobile-brand{padding:14px 0}.mobile-brand img{width:92px;height:60px}
 .mobile-hero{padding-top:24px}.mobile-hero h1{font-family:Oswald,Arial,sans-serif;font-style:italic;font-weight:700;font-size:clamp(32px,9.6vw,48px);line-height:1.06;text-shadow:0 3px 12px #000;letter-spacing:-.5px}.mobile-hero h1 em{font-size:1.45em}.mobile-hero p{max-width:100%;position:relative;z-index:1;margin-bottom:10px}
 .mobile-hero:before{inset:0 -20px auto;width:auto;height:360px;background:linear-gradient(180deg,#0d1218dd,#0d1218cc 60%,#0d1218),url('/halloween/assets/warehouse-v2.webp') 80% 15%/220% auto;opacity:.8}
 .mobile-warehouse{height:185px;margin:0 -20px -10px;background:linear-gradient(180deg,#0d1218,transparent 28%,transparent 72%,#0d1218),url('/halloween/assets/warehouse-v2.webp');background-size:100% 100%,150% auto;background-position:center,50% 100%;position:relative;z-index:-1}
 .mobile-hero>.primary{position:relative;margin-top:0}.mobile-route-heading{margin-top:8px}
 #rooms{gap:24px}#rooms>.room-card{background:#151e27;border-radius:13px;border-color:#59616a;box-shadow:0 12px 30px #0004}
 .room-topline{padding:12px 14px;background:#111922;border-bottom:2px solid var(--room-color);color:#e0e8ef}.room-status{background:none;padding:2px 0}
 .room-scene{display:block;position:relative;width:100%;overflow:hidden;background:#111922}.room-scene img{position:absolute;height:auto;display:block;pointer-events:none}.room-scene:after{content:'';position:absolute;inset:0;box-shadow:inset 0 -22px 25px -16px #151e27}
 .room-main{padding:13px 16px 8px}.room-copy{gap:7px}.room-copy strong{font-size:27px;text-transform:uppercase}.room-copy small{font-size:9px;letter-spacing:1.2px}.room-copy>span{font-size:13px}.room-enter{margin:0 16px;padding:14px 0 17px;font-size:14px}.mobile-bar{border-top-color:#ffe00045}
}
@media(max-width:350px){.mobile-warehouse{margin-left:-16px;margin-right:-16px;height:155px}.mobile-hero:before{left:-16px;right:-16px}.mobile-hero h1{font-size:32px}.room-copy strong{font-size:25px}}

@media(min-width:0px){.room-scene{height:0;aspect-ratio:auto;background-image:url("/halloween/assets/warehouse-v2.webp");background-repeat:no-repeat;background-color:#111922}.room-scene img{display:none}}

@media(min-width:761px){body{padding-bottom:100px}main{max-width:1180px}.mobile-intro{padding:0 32px}.mobile-brand{padding:20px 0}.mobile-brand img{width:112px;height:74px}.mobile-hero{padding:42px 0 20px;min-height:430px;max-width:none}.mobile-hero h1{font-size:64px;max-width:650px}.mobile-hero p{font-size:18px;max-width:550px}.mobile-hero>.primary{width:380px}.mobile-how{margin:12px 0;width:380px}.mobile-warehouse{position:absolute;right:-32px;top:50px;width:52%;height:360px;margin:0;opacity:.8;background-size:100% 100%,180% auto}.mobile-hero:before{height:440px;background-size:100% 100%,140% auto}.mobile-route-heading h2{font-size:26px}#rooms{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;padding:0 32px 32px;gap:22px}#rooms>.room-card:last-child{grid-column:auto}.room-card{align-self:stretch}.room-scene{background-size:var(--crop-size)!important;background-position:var(--crop-pos)!important}.room-copy strong{font-size:25px}.mobile-bar{left:50%;right:auto;transform:translateX(-50%);width:450px;border:1px solid #ffe00045;border-bottom:0;border-radius:20px 20px 0 0}.mobile-bar button{font-size:13px}dialog{inset:0;margin:auto;width:620px;max-width:94vw;height:auto;max-height:92dvh;border:1px solid #43515e;border-radius:22px;padding:0 30px 30px}dialog>.close{margin-left:-30px;width:calc(100% + 60px)}.daily-section{margin:16px 32px 34px!important}.daily-grid{grid-template-columns:repeat(4,1fr)!important}}
.daily-section{margin:8px 20px 28px;padding:20px;border:1px solid #d7a54766;background:linear-gradient(135deg,#2e2530,#15232b);border-radius:16px}.daily-section h2{font:700 28px Oswald,Arial;margin:5px 0 12px;text-transform:uppercase}.daily-section p{font-size:14px}.daily-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.daily-grid button{min-height:96px;padding:14px;border:1px solid #ffffff2b;border-radius:12px;background:#121c28;color:#fff;text-align:left;display:flex;flex-direction:column;gap:8px}.daily-grid button.today{border-color:#ffdf00;color:#ffdf00}.daily-grid strong{font-size:19px}.daily-grid span{font-size:12px;line-height:1.4}.daily-grid button:disabled{opacity:.55;cursor:default}

.fortune-wheel.five{background:conic-gradient(from -36deg,#e9b52f 0deg 72deg,#9b69c7 72deg 144deg,#49a89c 144deg 216deg,#376d96 216deg 288deg,#ba6743 288deg 360deg)}.fortune-wheel.five span{transform:rotate(calc(var(--i)*72deg)) translateY(-95px)}@media(max-width:370px){.fortune-wheel.five span{transform:rotate(calc(var(--i)*72deg)) translateY(-72px)}}
