:root{--night:#0b1026;--deep:#141a3a;--card:#1d1f45;--line:#f3c66a44;--gold:#f6cd72;--cream:#fff6e6;--muted:#c9c3dc;--red:#b4163a;--red2:#7d0f2b;--green:#1f7a58}
*{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none!important}
body{background:radial-gradient(1200px 700px at 50% -10%,#2a2f66 0,var(--night) 60%) fixed,var(--night);color:var(--cream);font:16px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;padding-bottom:calc(78px + env(safe-area-inset-bottom));overflow-x:hidden;min-height:100vh}
h1,h2,h3{font-family:Georgia,"Times New Roman",serif;color:var(--gold);line-height:1.2}
h1{font-size:clamp(28px,6vw,50px)}h2{font-size:23px;margin:20px 0 8px}h3{font-size:18px;margin-bottom:6px}
p{margin:6px 0}
ul,ol{margin:6px 0 6px 20px}
img{max-width:100%;display:block}
a{color:var(--gold)}
button,input,select,textarea{font:inherit;color:inherit}
button,.btn{cursor:pointer;border:1px solid var(--line);background:linear-gradient(180deg,var(--red),var(--red2));border-radius:14px;padding:10px 15px;min-height:44px;font-weight:600;text-decoration:none;color:var(--cream);display:inline-flex;align-items:center;justify-content:center;gap:6px;text-align:center}
button.gold,.btn.gold{background:linear-gradient(180deg,#ffe6a3,#eab04a);color:#3b1604;border:0}
button.ghost,.btn.ghost{background:#ffffff10}
button.green{background:linear-gradient(180deg,#27906a,#17604a)}
button.small{min-height:36px;padding:5px 11px;font-size:14px}
button:disabled{opacity:.5;cursor:default}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
input,select,textarea{width:100%;background:#0e1230;border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin-top:4px;min-height:44px}
input[type=checkbox]{width:20px;height:20px;min-height:0;margin:2px 10px 0 0;flex:none}
textarea{min-height:88px;resize:vertical}
label{display:block;margin:10px 0;font-size:15px}
label.check{display:flex;align-items:flex-start}
header{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:8px;padding:9px 14px;background:#0b1026ee;border-bottom:1px solid var(--line)}
.logo{font:italic 700 21px Georgia,serif;color:var(--gold);text-decoration:none;margin-right:auto;white-space:nowrap}
header button,header .btn{flex:none;padding:6px 11px;min-height:38px;font-size:14px}
.garland{height:10px;background:repeating-linear-gradient(90deg,transparent 0 14px,#ff5d6c 14px 20px,transparent 20px 34px,#ffd36b 34px 40px,transparent 40px 54px,#5ee0a0 54px 60px,transparent 60px 74px,#6db8ff 74px 80px);-webkit-mask:radial-gradient(circle 4px at 7px 5px,#000 98%,#0000) 10px 0/20px 10px;mask:radial-gradient(circle 4px at 7px 5px,#000 98%,#0000) 10px 0/20px 10px;animation:twinkle 6s ease-in-out infinite alternate}
@keyframes twinkle{to{filter:brightness(1.25)}}
#snow{position:fixed;inset:0;pointer-events:none;z-index:15}
.shell{max-width:760px;margin:0 auto;padding:0 14px}
.center{min-width:0}
#side,#right{display:none}
.center-text{text-align:center}
.notice{margin:10px 0;border-radius:14px;padding:11px 13px;background:#5a2a0c88;border:1px solid #f6a84a88;font-size:14.5px}
.hero{position:relative;margin:12px 0;border-radius:24px;overflow:hidden;border:1px solid var(--line);min-height:min(66vh,540px);display:flex;align-items:flex-end}
.hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero .over{position:relative;width:100%;padding:90px 16px 18px;background:linear-gradient(transparent,#0b1026dd 35%,#0b1026);text-align:center}
.count{display:flex;gap:8px;justify-content:center;margin:12px 0}
.count div{min-width:62px;padding:7px 4px;border-radius:12px;background:#ffffff14;border:1px solid var(--line)}
.count b{display:block;font-size:23px;color:var(--gold);font-variant-numeric:tabular-nums}
.count span{font-size:12px;color:var(--muted)}
.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.banner{width:100%;aspect-ratio:21/9;max-height:300px;object-fit:cover;border-radius:20px;border:1px solid var(--line);margin:12px 0}
/* зал славы показывается целиком: Байтерек и пьедестал не обрезаются */
.banner[src$="hall.webp"]{aspect-ratio:16/9;max-height:none}
.chips{display:flex;gap:8px;overflow-x:auto;padding:4px 0 8px;scrollbar-width:none;margin:6px 0}
.chips a,.chips button{white-space:nowrap;background:#ffffff10;padding:7px 14px;min-height:40px;font-size:14.5px;border-radius:14px;border:1px solid var(--line);text-decoration:none;color:var(--cream);display:inline-flex;align-items:center;font-weight:600}
.chips [aria-current=true]{background:var(--gold);color:#3b1604}
.card{background:linear-gradient(180deg,#252652aa,#1a1c3f);border:1px solid var(--line);border-radius:18px;padding:15px;margin:10px 0;overflow-wrap:anywhere;min-width:0}
.grid{display:grid;grid-template-columns:minmax(0,1fr);gap:0 12px;align-items:start}
.row{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.row>*{flex:1 1 140px}
.muted{color:var(--muted);font-size:13.5px}
.tag{display:inline-block;font-size:11.5px;border:1px solid var(--line);border-radius:99px;padding:1px 8px;color:var(--muted);margin:0 3px 3px 0}
.tag.ok{border-color:#3fbf8a;color:#9ff0cd}.tag.wait{border-color:#f6a84a;color:#ffd29a}.tag.bad{border-color:#ff6b7f;color:#ffb3bd}
.warn{background:#5a2a0c88;border:1px solid #f6a84a88;border-radius:14px;padding:11px 13px;margin:10px 0;font-size:14.5px}
.num{font:700 23px ui-monospace,Consolas,monospace;text-align:center;padding:14px;border:1px dashed var(--gold);border-radius:14px;margin:10px 0;user-select:all;overflow-wrap:anywhere}
.ad{display:flex;gap:12px;align-items:center;border:1px dashed #f6cd7288;border-radius:16px;padding:12px;margin:12px 0;background:#ffffff0a;min-width:0}
.ad .ico{font-size:32px}
.ad>div:nth-child(2){min-width:0;overflow-wrap:anywhere}
.ad button{margin-left:auto}
nav#nav{position:fixed;bottom:0;left:0;right:0;z-index:25;display:grid;grid-template-columns:repeat(4,1fr);background:#0b1026f7;border-top:1px solid var(--line);padding:6px 4px calc(6px + env(safe-area-inset-bottom))}
#nav a{text-align:center;text-decoration:none;color:var(--muted);font-size:13.5px;font-weight:600;padding:4px 0;border-radius:12px;position:relative}
#nav a b{display:block;font-size:25px;line-height:1.3}
#nav a[aria-current=page]{color:var(--gold);background:#f6cd721a}
.dot{position:absolute;top:2px;right:18%;min-width:18px;height:18px;border-radius:9px;background:#e0314f;color:#fff;font:700 11px/18px system-ui;padding:0 4px}
footer{text-align:center;padding:24px 8px 14px;font-size:14px;color:var(--muted)}
footer a{display:inline-block;margin:5px 8px}
dialog{margin:auto;width:min(94vw,540px);max-height:90vh;overflow:auto;background:var(--deep);color:var(--cream);border:1px solid var(--gold);border-radius:20px;padding:18px;overflow-wrap:anywhere}
dialog::backdrop{background:#05071acc}
.x{float:right;background:#ffffff14;min-height:36px;padding:4px 12px;margin:0 0 6px 8px}
#toast{position:fixed;left:50%;bottom:96px;transform:translateX(-50%);z-index:60;background:var(--gold);color:#3b1604;font-weight:600;padding:10px 16px;border-radius:12px;width:max-content;max-width:90vw;display:none;text-align:center}
.prod{display:flex;gap:12px;align-items:center}
.prod .ico{font-size:34px}
.prod button{margin-left:auto}
.rank{display:flex;align-items:center;gap:10px;padding:8px 4px;border-bottom:1px solid #ffffff14}
.rank b{width:30px;color:var(--gold)}.rank span{margin-left:auto;color:var(--muted)}
.rank.me{background:#f6cd721c;border-radius:10px}
.cups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.cups a{border:1px solid var(--line);border-radius:16px;padding:10px 4px;text-align:center;text-decoration:none;color:var(--cream);font-size:13px;background:#ffffff0a}
.cups a b{display:block;font-size:30px}
.cups a[aria-current=true]{border-color:var(--gold);background:#f6cd7226}
.items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}
.items button{flex-direction:column;gap:0;background:#ffffff10;padding:8px 4px;font-size:12.5px}
.items button b{font-size:28px}
.items button[aria-pressed=true]{background:#f6cd7233;border-color:var(--gold)}
.tree{position:relative;border-radius:20px;overflow:hidden;border:1px solid var(--line);margin:10px 0}
.tree img{width:100%;aspect-ratio:3/2;object-fit:cover}
.ribbon{position:absolute;width:20px;height:46px;min-height:0;padding:0;border-radius:3px 3px 9px 9px;border:1px solid #fff8;animation:sway 2.6s ease-in-out infinite alternate;transform-origin:top}
@keyframes sway{from{transform:rotate(-8deg)}to{transform:rotate(8deg)}}
.c-red{background:#d11f46}.c-gold{background:#e6a82e}.c-green{background:#25a06f}.c-blue{background:#3b7fe0}
.days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.days button{padding:0;min-height:46px;background:#ffffff10;flex-direction:column;gap:0;line-height:1.1}
.days button small{font-size:15px}
.days button.today{background:var(--gold);color:#3b1604;animation:pulse 1.2s ease-in-out infinite alternate}
.days button.open{background:var(--green)}
@keyframes pulse{to{box-shadow:0 0 16px 3px #f6cd72}}
.giftbox{position:relative;width:170px;height:170px;margin:34px auto 10px;cursor:pointer;border:0;background:none;display:block;padding:0}
.giftbox .box{position:absolute;left:15px;right:15px;bottom:0;height:100px;background:linear-gradient(90deg,#8c1230,#c21d45 45%,#8c1230);border-radius:8px}
.giftbox .lid{position:absolute;left:5px;right:5px;bottom:96px;height:34px;background:linear-gradient(90deg,#a3163a,#e02b55 45%,#a3163a);border-radius:8px;transition:transform .8s cubic-bezier(.2,1.6,.4,1),opacity .8s;transform-origin:left bottom}
.giftbox .box::after,.giftbox .lid::after{content:"";position:absolute;top:0;bottom:0;left:50%;width:22px;margin-left:-11px;background:linear-gradient(90deg,#eab04a,#ffe6a3,#eab04a)}
.giftbox .bow{position:absolute;bottom:126px;left:0;right:0;font-size:34px;text-align:center;transition:transform .8s,opacity .8s}
.giftbox.shake{animation:shake .6s ease-in-out}
@keyframes shake{20%,60%{transform:rotate(-7deg)}40%,80%{transform:rotate(7deg)}}
.giftbox.opened .lid{transform:translate(-46px,-70px) rotate(-38deg);opacity:.85}
.giftbox.opened .bow{transform:translate(-66px,-96px) rotate(-30deg);opacity:0}
.giftbox .glow{position:absolute;left:30px;right:30px;bottom:70px;height:80px;border-radius:50%;background:radial-gradient(#fff3c4,#f6cd7200 70%);opacity:0;transition:opacity .6s .3s}
.giftbox.opened .glow{opacity:1}
.confetti{position:fixed;top:-12px;width:9px;height:14px;z-index:70;pointer-events:none;animation:fall 2.4s ease-in forwards}
@keyframes fall{to{transform:translateY(105vh) rotate(720deg)}}
.reveal-text{animation:rise .7s ease-out both;animation-delay:.5s;text-align:center;font-size:18px}
@keyframes rise{from{opacity:0;transform:translateY(24px) scale(.9)}}
canvas.preview,video.preview{width:100%;max-width:330px;margin:10px auto;display:block;border-radius:14px;border:1px solid var(--line)}
.swipe{display:grid;grid-auto-flow:column;grid-auto-columns:92%;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px;align-items:start}
.swipe>*{scroll-snap-align:center}
.stickergrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.stickergrid button{background:#ffffff0c;padding:4px;flex-direction:column;gap:2px;font-size:10.5px;line-height:1.2;font-weight:400;position:relative}
.stickergrid svg{width:100%;max-width:70px;height:auto}
.stickergrid .lock{opacity:.4}
.st svg{width:34px;height:34px;display:inline-block;vertical-align:middle}
details{border-bottom:1px solid #ffffff14;padding:8px 0}
summary{cursor:pointer;color:var(--gold);min-height:32px}

/* чат */
.chat{display:grid;grid-template-columns:minmax(0,1fr);border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#101434;height:calc(100dvh - 172px);min-height:430px;margin:8px 0}
.rooms{overflow-y:auto;min-height:0}
.rooms input{border-radius:0;margin:0;border-width:0 0 1px}
.room{display:flex;gap:10px;align-items:center;padding:10px 12px;border-bottom:1px solid #ffffff12;text-decoration:none;color:var(--cream)}
.room[aria-current=true]{background:#f6cd721f}
.ava{width:40px;height:40px;border-radius:50%;flex:none;display:grid;place-items:center;font-weight:700;color:#fff;font-size:17px}
.ava.decor{box-shadow:0 0 0 2px var(--gold),0 0 10px var(--gold)}
.room div:nth-child(2){min-width:0;flex:1}
.room b,.room small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.room small{color:var(--muted)}
.conv{display:none;flex-direction:column;min-height:0;min-width:0}
.chat.opened .rooms{display:none}.chat.opened .conv{display:flex}
.convhead{display:flex;align-items:center;gap:10px;padding:8px 10px;border-bottom:1px solid var(--line);background:#161b40}
.convhead b{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.msgs{flex:1;overflow-y:auto;padding:10px;display:flex;flex-direction:column;gap:5px;min-height:0;background:radial-gradient(#ffffff0c 1px,transparent 1.5px) 0 0/22px 22px}
.day{align-self:center;font-size:12px;background:#0008;border-radius:99px;padding:2px 10px;color:var(--muted);margin:6px 0}
.line{display:flex;gap:7px;align-items:flex-end;max-width:88%}
.line .ava{width:28px;height:28px;font-size:13px}
.line.me{align-self:flex-end;flex-direction:row-reverse}
.bubble{background:#262b57;border-radius:16px 16px 16px 4px;padding:6px 11px;min-width:80px;overflow-wrap:anywhere;white-space:pre-wrap;cursor:pointer;border:0;text-align:left;display:block;font-weight:400;min-height:0;color:var(--cream)}
.line.me .bubble{background:#7d0f2b;border-radius:16px 16px 4px 16px}
.bubble .who{display:block;color:var(--gold);font-size:13px;font-weight:700}
.bubble .quote{display:block;border-left:3px solid var(--gold);padding-left:7px;font-size:13px;color:var(--muted);margin:2px 0;max-height:40px;overflow:hidden}
.bubble .meta{display:block;font-size:11px;color:#ffffff99;text-align:right}
.bubble.sticker{background:transparent!important;text-align:center}
.bubble.sticker svg{width:110px;height:110px}
.bubble.sticker .cap{display:block;font-size:12.5px;color:var(--gold);font-weight:700}
.reacts{display:flex;gap:4px;flex-wrap:wrap;margin-top:3px}
.reacts span{font-size:12.5px;background:#0006;border-radius:99px;padding:0 7px}
.quick{display:flex;gap:6px;overflow-x:auto;padding:6px 8px 0;scrollbar-width:none}
.quick button{min-height:32px;padding:3px 10px;font-size:13px;white-space:nowrap;background:#ffffff10;flex:none}
.compose{display:flex;gap:6px;padding:8px;align-items:flex-end}
.compose textarea{margin:0;min-height:44px;height:44px;max-height:110px;resize:none}
.compose button{flex:none;padding:8px 12px}
.replybar{display:flex;align-items:center;gap:8px;padding:5px 10px;border-top:1px solid var(--line);font-size:13px}
.replybar span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

@media(min-width:760px){
 .chat{grid-template-columns:250px minmax(0,1fr)}
 .chat .rooms{display:block!important;border-right:1px solid var(--line)}
 .chat .conv{display:flex}
 .back{display:none!important}
}
/* широкий экран: меню слева, содержимое, справа лента и реклама */
@media(min-width:1100px){
 body{padding-bottom:20px}
 nav#nav{display:none}
 .shell{max-width:1480px;display:grid;grid-template-columns:210px minmax(0,1fr) 270px;gap:20px;align-items:start;padding:0 20px}
 #side,#right{display:block;position:sticky;top:76px;max-height:calc(100vh - 90px);overflow-y:auto;padding:12px 0}
 #side a{display:flex;gap:10px;padding:9px 12px;border-radius:12px;text-decoration:none;color:var(--cream);position:relative}
 #side a[aria-current=page]{background:#f6cd7222;color:var(--gold)}
 #side .dot{position:static;margin-left:auto}
 .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .hero{min-height:480px}
 .chat{height:calc(100vh - 140px);grid-template-columns:290px minmax(0,1fr)}
 .narrow{max-width:720px;margin-left:auto;margin-right:auto}
 .stickergrid{grid-template-columns:repeat(6,minmax(0,1fr))}
 #toast{bottom:30px}
}
@media(min-width:1500px){.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}}
#right .ad{flex-direction:column;text-align:center}#right .ad button{margin:0}
@media(max-width:430px){
 .logo{font-size:17px}header{gap:5px;padding:8px}header button{padding:5px 8px;min-width:38px}
}
@media(max-width:380px){
 .logo{font-size:16px}header{gap:3px;padding:7px 6px}header button,header .btn{padding:5px 6px;min-width:0;font-size:13px}
 .count{gap:4px}.count div{min-width:0;flex:1}.two button{padding:9px 6px;font-size:14px}
 h1{font-size:25px}#nav a{font-size:10.5px}.shell{padding:0 9px}.days{gap:3px}
}
/* анимированные стикеры */
[class^="an-"]{transform-box:fill-box;transform-origin:center}
.an-steam{animation:anSteam 2s ease-in-out infinite}
.an-flame{transform-origin:50% 100%;animation:anFlame .7s ease-in-out infinite alternate}
.an-glow{animation:anGlow 1.4s ease-in-out infinite alternate}
.an-snow{animation:anSnow 2.8s linear infinite}
.an-rock{animation:anRock 2.6s ease-in-out infinite alternate}
.an-twinkle{animation:anTwinkle 1.2s ease-in-out infinite alternate}
.an-swing{transform-origin:50% 100%;animation:anRock 1.3s ease-in-out infinite alternate}
.an-window{animation:anWindow 1.8s steps(2,end) infinite}
.an-smoke{animation:anSmoke 2.4s ease-out infinite}
[class^="an-"].d2{animation-delay:-.8s}[class^="an-"].d3{animation-delay:-1.6s}
@keyframes anSteam{0%{transform:translateY(8px);opacity:0}50%{opacity:.9}100%{transform:translateY(-8px);opacity:0}}
@keyframes anFlame{from{transform:scale(.88,1.1) rotate(-4deg)}to{transform:scale(1.1,.92) rotate(4deg)}}
@keyframes anGlow{from{opacity:.12;transform:scale(.9)}to{opacity:.45;transform:scale(1.1)}}
@keyframes anSnow{0%{transform:translateY(-6px);opacity:0}20%{opacity:1}100%{transform:translateY(34px);opacity:0}}
@keyframes anRock{from{transform:rotate(-9deg)}to{transform:rotate(9deg)}}
@keyframes anTwinkle{from{opacity:.25;transform:scale(.6)}to{opacity:1;transform:scale(1.15)}}
@keyframes anWindow{50%{opacity:.35}}
@keyframes anSmoke{0%{transform:translateY(8px) scale(.6);opacity:0}30%{opacity:.8}100%{transform:translate(8px,-12px) scale(1.3);opacity:0}}
.logo small{display:block;font:600 11px/1.2 system-ui,sans-serif;color:var(--muted)}
.second{font:italic 400 .62em Georgia,serif;color:var(--cream);display:block;margin-top:4px}
#bgm[aria-pressed=true]{background:var(--gold)}
/* V13 */
.ribbon.mine{box-shadow:0 0 10px 3px #ffe08acc;border-color:#fff3c4}
.ribbon.lit{z-index:3;animation:sway 2.6s ease-in-out infinite alternate,lit 1.1s ease-in-out 5 alternate}
@keyframes lit{from{box-shadow:0 0 8px 2px #ffe08a;filter:brightness(1.1)}to{box-shadow:0 0 26px 12px #fff0b8;filter:brightness(1.8)}}
.flyer{position:absolute;width:20px;height:46px;margin:-23px 0 0 -10px;border-radius:3px 3px 9px 9px;border:1px solid #fff;box-shadow:0 0 20px 7px #ffe08a;z-index:60;pointer-events:none}
.spark{position:absolute;width:7px;height:7px;margin:-3px;border-radius:50%;background:#fff3c4;box-shadow:0 0 8px 3px #f6cd72;z-index:60;pointer-events:none}
.mini{flex:none;width:16px;height:40px;border-radius:3px 3px 8px 8px;border:1px solid #fff8;display:block}
.bell{position:relative}
.bell .dot{position:absolute;top:-4px;right:-4px;min-width:17px;height:17px;border-radius:9px;background:#d11f46;color:#fff;font-size:11px;line-height:17px;padding:0 4px}
.bar{height:12px;border-radius:8px;background:#ffffff18;overflow:hidden}
.bar i{display:block;height:100%;background:linear-gradient(90deg,#e6a82e,#fff0b8);box-shadow:0 0 10px #f6cd72}
.kzmap{width:100%;height:auto;display:block;margin:8px 0}
.kzmap polygon{fill:#1b2558;stroke:#f6cd7288;stroke-width:1.5;stroke-linejoin:round}
.kzmap g{cursor:pointer}
.kzmap .hit{fill:transparent}
.kzmap .off{fill:#7d86b8}
.kzmap .on{fill:#ffd36b;stroke:#fff6d0;stroke-width:1}
.kzmap .halo{fill:#ffd36b;opacity:.25;animation:halo 1.6s ease-in-out infinite alternate}
@keyframes halo{to{opacity:.55}}
.kzmap text{fill:#fff6e6;font-size:13px;text-anchor:middle;paint-order:stroke;stroke:#101434;stroke-width:3px}
.kzmap text.mine{fill:#ffd36b;font-weight:700}
@media(max-width:600px){.kzmap text{font-size:23px;stroke-width:5px}.kzmap text.minor{display:none}}
.book{background:linear-gradient(90deg,#f3e2b8,#fff8e6 12%,#fff8e6 88%,#f3e2b8);color:#3b2410;border-radius:6px 18px 18px 6px;border-left:10px solid #8c1230;padding:14px 18px;margin:12px 0;box-shadow:0 8px 24px #0006}
.book h3{color:#8c1230;margin:0 0 6px}
.book .page{min-height:110px;font-family:Georgia,serif;font-size:18px;animation:turn .45s ease-out}
.book .muted{color:#6b5235}
.book button{color:#8c1230;border-color:#8c1230;flex:none;min-width:54px}
.book .row{align-items:center;justify-content:space-between}
.book .row span{flex:1}
@keyframes turn{from{opacity:0;transform:translateX(24px)}}
#fireworks{position:fixed;inset:0;z-index:65;pointer-events:none}
/* V14: церемония капсулы */
#seal{position:fixed;inset:0;z-index:64;display:flex;overflow:auto;padding:16px;background:radial-gradient(circle at 50% 30%,#3a1b52f2,#05071af7);text-align:center}
.sealbox{margin:auto;width:min(94vw,440px);animation:sealIn .5s ease-out}
.sealbox h2{color:var(--gold);margin:14px 0 4px}
.sealbox p{margin:6px 0}
.sealbox .seal-date{font-size:22px}
.sealbox .seal-date b{color:var(--gold)}
.sealbox button{margin-top:10px;min-width:180px;justify-content:center}
.scene{position:relative}
.scene img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:18px;border:1px solid var(--gold);box-shadow:0 0 40px #ffd36b55;display:block}
.scene .letter{position:absolute;left:50%;top:42%;font-size:54px;opacity:0;animation:drop 1.1s .35s ease-in both}
@keyframes drop{0%{opacity:0;transform:translate(-50%,-150px) rotate(-18deg) scale(1.5)}30%{opacity:1}80%{opacity:1}100%{opacity:0;transform:translate(-50%,20px) rotate(8deg) scale(.4)}}
.wax{display:grid;place-items:center;width:52px;height:52px;flex:none;border-radius:50%;font-style:normal;font-size:24px;background:radial-gradient(circle at 35% 30%,#e0415f,#8c0f2c 70%);border:3px double #ffd36b}
.scene .stamp{position:absolute;right:14px;bottom:-18px;width:70px;height:70px;font-size:32px;animation:stamp .45s 1.35s cubic-bezier(.2,2,.4,1) both}
@keyframes stamp{from{opacity:0;transform:scale(3)}to{opacity:1;transform:scale(1)}}
@keyframes sealIn{from{opacity:0;transform:translateY(20px)}}
.steps{margin:6px 0 10px 20px}
.steps li{margin:5px 0}
button.danger,button.small.danger{background:#5a0d1d;border-color:#ff5d6c}
@media(prefers-reduced-motion:reduce){.scene .letter{display:none}}
/* V14: монитор и режим снижения нагрузки */
.gauges{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.gauges .card{margin:0}
.gauges .rank{border:0;padding:0 0 6px;justify-content:space-between}
.gauges .rank b{width:auto}.gauges .rank span{white-space:nowrap}
.gauge .bar i{background:#3ecf8e;box-shadow:none}
.gauge.l1 .bar i{background:#f6cd72}
.gauge.l2 .bar i{background:#ff9d42}
.gauge.l3 .bar i{background:#ff4d62}
.spark-line{width:100%;height:60px;background:#ffffff0a;border-radius:8px}
.spark-line polyline{fill:none;stroke:var(--gold);stroke-width:1.6;vector-effect:non-scaling-stroke}
body.saver #snow,body.saver .confetti{display:none}
body.saver .ribbon{animation:none!important}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}#snow,.confetti{display:none}}

/* V15: вход через Google и по почте */
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.btn.google{display:flex;width:100%;background:#fff;color:#1f1f1f;border:0}
.or{text-align:center;color:var(--muted);font-size:13px;margin:8px 0}
#modal .chips{flex-wrap:wrap;overflow:visible}
#modal form[data-f=signup-code] button{width:100%}
#app [data-a=logout]{white-space:nowrap;flex:0 0 auto}

/* V16: крупно и просто */
.home{max-width:640px;margin:0 auto}
.bigbtns{display:grid;gap:12px;margin-top:6px}
.bigbtns>*{min-height:68px;font-size:21px;border-radius:18px;width:100%}
.wide{display:flex;width:100%;min-height:56px;font-size:18px;margin:10px 0;border-radius:16px}
.home .count{margin:8px 0 10px;gap:6px}
.home .count div{min-width:56px;padding:3px 4px}
.home .count b{font-size:18px}
.home .count span{font-size:11px}
details.more{border:0;padding:0;margin:14px 0}
details.more>summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:10px;min-height:60px;border-radius:16px;border:1px solid var(--gold);background:#f6cd7214;font-size:20px;font-weight:700}
details.more>summary::-webkit-details-marker{display:none}
details.more>summary::after{content:"▾"}
details.more[open]>summary::after{content:"▴"}
.menu{display:grid;gap:8px;margin-top:10px}
.menu>a,.menu>button{display:flex;justify-content:flex-start;align-items:center;gap:14px;min-height:60px;padding:10px 16px;border-radius:16px;border:1px solid var(--line);background:#ffffff0c;color:var(--cream);font-size:18px;font-weight:600;text-decoration:none;text-align:left;position:relative}
.menu span[aria-hidden]{font-size:26px;width:32px;text-align:center;flex:none}
.menu .dot{position:static;margin-left:auto}
.tabs3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}
.tabs3 a{display:flex;align-items:center;justify-content:center;text-align:center;min-height:52px;border-radius:14px;border:1px solid var(--line);background:#ffffff10;color:var(--cream);text-decoration:none;font-weight:700;font-size:16px}
.tabs3 a[aria-current=true]{background:var(--gold);color:#3b1604;border-color:var(--gold)}
details.wishmore{border:0;padding:4px 0 0}
details.wishmore>summary{font-size:14px;color:var(--muted);min-height:40px;display:flex;align-items:center;gap:6px}
details.wishmore>summary::before{content:"⋯"}
details.wishmore .row{margin-top:4px}
#side details{border:0;padding:0}
#side summary{padding:9px 12px;cursor:pointer}
@media(min-width:1100px){
 #side button{display:flex;justify-content:flex-start;gap:10px;width:100%;padding:7px 12px;min-height:40px;border:0;background:none;font-weight:400;color:var(--cream);text-align:left}
 #side a b{font-weight:400}
 #side details a{font-size:14.5px}
}
@media(max-width:380px){.bigbtns>*{min-height:58px;font-size:18px}.home .hero .over{padding-top:50px}}
@media(min-width:1100px){.home .hero{min-height:min(76vh,660px)}}
@media(max-width:380px){.tabs3{gap:5px}.tabs3 a{font-size:14px}}
.tabs3+.chips{flex-wrap:wrap;overflow:visible}
.tabs3+.chips a{white-space:normal}

/* ================= V17: сказка ================= */
/* небо: фейерверки и мерцающие звёзды поверх картинок */
canvas.sky{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.glints{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.glints i{position:absolute;width:var(--s);height:var(--s);margin:calc(var(--s)/-2);background:radial-gradient(circle,#fff 0 18%,#ffe9a8 42%,#ffd36b00 72%);clip-path:polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%);animation:glint 2s ease-in-out infinite;filter:drop-shadow(0 0 4px #fff2b0);scale:1.7}
@keyframes glint{0%,100%{opacity:0;transform:scale(.3) rotate(0)}50%{opacity:1;transform:scale(1) rotate(45deg)}}
.heart{position:fixed;z-index:80;pointer-events:none;font-style:normal;font-size:24px;filter:drop-shadow(0 0 6px #fff8)}
.garland{animation:twinkle 1.1s ease-in-out infinite alternate}
.garland::after{content:"";display:block;height:100%;background:inherit}
@keyframes twinkle{from{filter:brightness(.9) hue-rotate(0)}to{filter:brightness(1.7) hue-rotate(35deg)}}

/* заголовки и крупные кнопки */
.magic-title{text-align:center;margin:16px 0 8px;font-size:clamp(28px,7vw,44px);background:linear-gradient(100deg,#f6cd72 20%,#fffbe8 40%,#f6cd72 60%,#ffb8c9 80%,#f6cd72);background-size:220% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:shimmer 4.5s linear infinite;filter:drop-shadow(0 0 14px #f6cd7255)}
@keyframes shimmer{to{background-position:-220% 0}}
.lead{font-size:18px;line-height:1.45}
.big{display:flex;width:100%;min-height:58px;font-size:19px;margin:10px 0;border-radius:18px}
.shine{position:relative;overflow:hidden}
.shine::after{content:"";position:absolute;top:-20%;bottom:-20%;width:34%;left:-60%;background:linear-gradient(100deg,transparent,#ffffffa8,transparent);transform:skewX(-18deg);animation:sweep 3.2s ease-in-out infinite}
.bigbtns>.shine:nth-child(2)::after{animation-delay:1.6s}
@keyframes sweep{0%{left:-60%}45%,100%{left:140%}}
.bigbtns>*{box-shadow:0 0 22px #f6cd7266,0 8px 18px #0007}
.bigbtns .red{background:linear-gradient(180deg,#e0325a,#8c0f2c);border:1px solid #ffd36b}
button.flag{background:none;border:0;color:var(--muted);font-weight:400;font-size:13px;min-height:34px;padding:4px 6px;text-decoration:underline}

/* новогодние друзья */
.friend{position:relative;display:block;flex:none;padding:0;margin:0;border:0;background:none;min-height:0;height:170px;border-radius:0;cursor:pointer;animation:bob 3.4s ease-in-out infinite;transform-origin:50% 100%;-webkit-tap-highlight-color:transparent}
.friend img{height:100%;width:auto;max-width:none;filter:drop-shadow(0 8px 14px #000a) drop-shadow(0 0 12px #bfe0ff66)}
.friend .wink{position:absolute;left:0;top:0;opacity:0}
.friend.winking .wink{opacity:1}
.friend.winking{animation:peek .65s ease-in-out}
.friend .say{position:absolute;bottom:calc(100% - 8px);left:0;width:max-content;max-width:170px;background:#fff8ec;color:#5a0d1d;font:700 13px/1.25 system-ui,sans-serif;padding:7px 11px;border-radius:14px;box-shadow:0 4px 14px #0008;opacity:0;transform:translateY(8px) scale(.8);transition:.25s;pointer-events:none;z-index:3}
.friend.talk .say{opacity:1;transform:none}
.friend.right .say,.friend.gnome .say,.friend.snowman .say{left:auto;right:0}
@keyframes bob{0%,100%{transform:translateY(0) rotate(-1.2deg)}50%{transform:translateY(-8px) rotate(1.6deg)}}
@keyframes peek{40%{transform:rotate(-6deg) scale(1.05)}70%{transform:rotate(4deg)}}

/* главная */
.home .hero{flex-direction:column;justify-content:flex-end;align-items:stretch;min-height:max(620px,calc(100svh - 150px));box-shadow:0 0 40px #6db8ff40}
.hero picture.bg{position:absolute;inset:0}
.hero picture.bg img{width:100%;height:100%;object-fit:cover;object-position:50% 0}
.hero .stage{position:relative;display:flex;justify-content:space-between;align-items:flex-end;padding:0 4px;margin-bottom:-26px;z-index:2;pointer-events:none}
.stage .friend{pointer-events:auto;height:168px}
.stage .friend.gnome{height:138px}
.home .hero .over{position:relative;z-index:1;padding:34px 14px 16px;background:linear-gradient(transparent,#0b1026cc 22%,#0b1026f2 60%)}
.hero h1{font-size:clamp(23px,6vw,38px);text-shadow:0 0 18px #0b1026,0 2px 4px #000}
.friendsline{display:grid;grid-template-columns:1fr 1fr;align-items:end;margin:22px 0 4px}
.friendsline .friend{height:150px;justify-self:start}
.friendsline .friend.snowman{justify-self:end;grid-column:2;grid-row:1}
.friendsline .adslot{grid-column:1/-1;grid-row:2;min-width:0}

/* дерево желаний */
.tree{margin:10px 0;border:1px solid #9fe8ff88;box-shadow:0 0 34px #5ee0c066,0 0 90px #6db8ff40}
.tree img{display:block;width:100%;height:auto;aspect-ratio:896/1200;object-fit:cover;animation:aura 3.6s ease-in-out infinite alternate}
@keyframes aura{from{filter:brightness(1) saturate(1.05)}to{filter:brightness(1.14) saturate(1.28)}}
.ribbon{width:34px;height:40px;margin-left:-17px;min-height:0;padding:0;border:0;background:none!important;z-index:2;animation:sway 2.6s ease-in-out infinite alternate}
.ribbon svg,.flyer svg{width:100%;height:100%;display:block;stroke:#fff;stroke-width:1.1;filter:drop-shadow(0 0 5px #fff) drop-shadow(0 0 9px #ffe08a)}
.c-red svg{fill:#ff2f5c}.c-gold svg{fill:#ffbe2e}.c-green svg{fill:#1fd08a}.c-blue svg{fill:#3d9bff}
.ribbon.mine{box-shadow:none}
.ribbon.mine::before{content:"";position:absolute;inset:-8px;border-radius:50%;background:radial-gradient(#fff3c4aa,#fff3c400 68%);animation:pulseGlow 1.3s ease-in-out infinite alternate;z-index:-1}
@keyframes pulseGlow{from{transform:scale(.8);opacity:.5}to{transform:scale(1.35);opacity:1}}
.ribbon.lit{animation:sway 2.6s ease-in-out infinite alternate,litBow .55s ease-in-out 9 alternate;box-shadow:none}
@keyframes litBow{to{scale:1.7;filter:brightness(1.7) drop-shadow(0 0 14px #fff)}}
.flyer{position:absolute;width:34px;height:40px;margin:0;border:0;background:none!important;box-shadow:none;z-index:66;pointer-events:none}
.flyer svg{filter:drop-shadow(0 0 8px #fff) drop-shadow(0 0 18px #ffd36b)}
.flash{position:absolute;width:12px;height:12px;margin:-6px;border-radius:50%;background:radial-gradient(#fff 0 25%,#fff3c4cc 45%,#ffd36b00 70%);z-index:66;pointer-events:none;animation:flash 1.1s ease-out forwards}
@keyframes flash{20%{transform:scale(16);opacity:1}100%{transform:scale(26);opacity:0}}
.spark{z-index:66}
.tree .down{position:absolute;left:50%;bottom:12px;translate:-50% 0;white-space:nowrap;z-index:3;box-shadow:0 0 24px #ffd36baa}
.picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0}
.pick{flex-direction:column;gap:4px;background:#ffffff10;padding:10px 2px;font-size:13px}
.pick svg{width:48px;height:55px;stroke:#fff;stroke-width:1;filter:drop-shadow(0 0 7px #ffe08a);animation:sway 2.2s ease-in-out infinite alternate;transform-origin:top}
.pick:nth-child(2n) svg{animation-delay:-1.1s}
.bigbow{width:88px;margin:0 auto 4px;background:none!important}.bigbow svg{width:100%;height:auto;filter:drop-shadow(0 0 12px #ffe08a)}
#askers{text-align:center;scroll-margin-top:70px;margin-top:26px}

/* желания и «Исполнить мечту» */
.card.wish{box-shadow:0 0 18px #6db8ff26;border-color:#f6cd7277}
.wishtext{font-size:17px}
button.dream{display:flex;width:100%;min-height:54px;font-size:18px;margin-top:10px;animation:dream 1.5s ease-in-out infinite alternate}
@keyframes dream{from{box-shadow:0 0 6px #f6cd7255}to{box-shadow:0 0 22px #f6cd72cc}}
.way{border:1px solid var(--line);border-radius:16px;padding:12px;background:#ffffff08}
.sums{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0}
.sums button[aria-pressed=true]{background:var(--gold);color:#3b1604}
.way form>button,#modal .way .gold,#modal [data-f=ribbon] .gold,#modal [data-f=wish] .gold,#modal [data-f=thanks] .gold{width:100%}
#rev .num{font-size:26px}
.shoplist{display:grid;gap:8px;margin:10px 0}
button.shop{justify-content:flex-start;text-align:left;gap:12px;min-height:62px;width:100%}
button.shop .ico{font-size:30px}
button.shop small{display:block;font-weight:400;color:var(--muted);font-size:12.5px}
a.btn.big{display:flex}
.num.link{font-size:15px}

/* Санта */
.santapic{position:relative;border-radius:18px;overflow:hidden;border:1px solid var(--gold);margin:6px 0}
.santapic img{width:100%;height:min(46vh,340px);object-fit:cover;object-position:50% 28%}
.santastage{position:relative;max-width:560px;margin:12px auto;border-radius:26px;overflow:hidden;border:1px solid var(--gold);box-shadow:0 0 40px #ffd36b66}
.santastage img{width:100%;aspect-ratio:896/1200;object-fit:cover}
.santastage::after{content:"";position:absolute;left:50%;top:67%;width:46%;aspect-ratio:1;translate:-50% -50%;border-radius:50%;background:radial-gradient(#fff3c4aa,#ffd36b00 65%);animation:pulseGlow 1.1s ease-in-out infinite alternate;pointer-events:none;mix-blend-mode:screen}

/* шапки разделов и рекламодатели */
.scenehead{position:relative;border-radius:22px;overflow:hidden;border:1px solid var(--line);margin:12px 0;box-shadow:0 0 30px #ffd36b33}
.scenehead img{width:100%;aspect-ratio:4/3;max-height:420px;object-fit:cover}
.scenehead .over{position:absolute;left:0;right:0;bottom:0;padding:44px 14px 12px;text-align:center;background:linear-gradient(transparent,#0b1026ee)}
.scenehead h1{font-size:clamp(26px,6vw,40px);text-shadow:0 2px 8px #000}
body[data-page=ads]::before{content:"";position:fixed;inset:0;z-index:-1;background:linear-gradient(#0b102688,#0b1026cc),url(img/market.webp) center/cover}
.card.glass{background:linear-gradient(180deg,#1c1e48d9,#121433e8);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 10px 30px #0008}
.card.glass textarea{background:#0e1230cc}

/* зал славы: площадь победителя и пьедестал */
.citysquare{position:relative;border-radius:24px;overflow:hidden;border:2px solid var(--line);margin:12px 0}
.citysquare img{width:100%;aspect-ratio:4/3;max-height:480px;object-fit:cover;filter:saturate(.65) brightness(.7)}
.citysquare.lit{border-color:#ffe39a;animation:squareGlow 1.4s ease-in-out infinite alternate}
.citysquare.lit img{animation:squareLight 1.4s ease-in-out infinite alternate;filter:none}
@keyframes squareGlow{from{box-shadow:0 0 24px #ffd36b88}to{box-shadow:0 0 60px 10px #ffd36bdd}}
@keyframes squareLight{from{filter:brightness(1.05) saturate(1.15)}to{filter:brightness(1.35) saturate(1.4)}}
.beam{position:absolute;bottom:0;width:34%;height:120%;transform-origin:50% 100%;background:linear-gradient(0deg,#fff2b088,#fff2b000 85%);clip-path:polygon(46% 100%,54% 100%,100% 0,0 0);mix-blend-mode:screen;pointer-events:none;animation:beam 4s ease-in-out infinite alternate}
.beam.b1{left:-6%}.beam.b2{left:33%;animation-delay:-1.3s}.beam.b3{right:-6%;animation-delay:-2.6s}
@keyframes beam{from{transform:rotate(-22deg)}to{transform:rotate(22deg)}}
.plate{position:absolute;left:50%;bottom:10px;translate:-50% 0;text-align:center;padding:6px 22px 8px;border-radius:16px;background:#0b1026cc;border:1px solid var(--gold);white-space:nowrap;box-shadow:0 0 24px #ffd36b88}
.plate small{display:block;color:var(--cream);font-size:12.5px}
.plate b{display:block;font:700 26px Georgia,serif;color:var(--gold)}
.podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;align-items:end;margin:22px 0 6px}
.step{text-align:center;min-width:0}
.step .who b{display:block;color:var(--gold);font:700 clamp(14px,3.8vw,20px) Georgia,serif;overflow-wrap:anywhere;line-height:1.15}
.step .who span{display:block;font-size:12.5px;color:var(--muted);margin:2px 0 6px}
.step .block{display:flex;align-items:flex-start;justify-content:center;padding-top:6px;font-size:34px;border-radius:14px 14px 4px 4px;border:1px solid #ffe39a;background:linear-gradient(180deg,#ffe6a3,#c8891f 60%,#8a5a12)}
.step.p1 .block{height:128px;animation:squareGlow 1.4s ease-in-out infinite alternate;font-size:46px}
.step.p2 .block{height:92px;background:linear-gradient(180deg,#f2f6ff,#9aa7c8 60%,#65719a);border-color:#fff}
.step.p3 .block{height:68px;background:linear-gradient(180deg,#ffd2a8,#b86d3c 60%,#7d4522);border-color:#ffd2a8}
.step.empty{opacity:.6}
.kzmap .star{fill:#ffe39a;stroke:#fff;stroke-width:.8;transform-box:fill-box;transform-origin:center;animation:starTwinkle 1.1s ease-in-out infinite alternate;filter:drop-shadow(0 0 5px #ffd36b)}
@keyframes starTwinkle{from{transform:scale(.75) rotate(-8deg);opacity:.75}to{transform:scale(1.25) rotate(8deg);opacity:1}}

/* меню */
nav#nav{grid-template-columns:repeat(5,minmax(0,1fr))}
#nav a{font-size:11.5px;line-height:1.15;display:flex;flex-direction:column;align-items:center;min-width:0;overflow-wrap:anywhere}
#nav a b{font-size:23px}
header .btn.me{text-decoration:none}
.tabs3.two-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
footer button.flag{display:inline-block;margin:0 6px;font-size:14px}
#side .friend{margin:14px auto 0}
#right .friend{margin:0 auto 22px}
@media(max-width:380px){
 .stage .friend{height:138px}.stage .friend.gnome{height:114px}
 .friendsline .friend{height:122px}
 #nav a{font-size:10px}
}
@media(max-width:360px){header .logo small{display:none}}
@media(min-width:760px){.home .hero{min-height:min(78vh,640px)}.hero picture.bg img{object-position:50% 40%}.scenehead img{aspect-ratio:16/9}.citysquare img{aspect-ratio:16/9}}
@media(min-width:1100px){
 body[data-page=home] .stage,body[data-page=home] .friendsline .friend{display:none}
 body[data-page=home] .friendsline{display:block}
 .home{max-width:760px}
 #side>.friend.maiden{height:270px}#side>.friend.deer{height:150px}
 #right>.friend.gnome{height:270px;margin-top:20px}#right>.friend.snowman{height:250px}
 body[data-page=home] #side,body[data-page=home] #right{overflow:visible}
 #side .friend .say,#right .friend .say{left:50%;right:auto;translate:-50% 0}
}
@media(min-width:1100px) and (max-height:820px){#side>.friend.maiden{height:190px}#side>.friend.deer{height:110px}#right>.friend.gnome,#right>.friend.snowman{height:200px}}

/* отдых: режим нагрузки и «уменьшить движение» */
body.saver .glints,body.saver canvas.sky,body.saver .beam,body.saver .heart,body.saver .santastage::after{display:none}
body.saver .friend,body.saver .tree img,body.saver .citysquare,body.saver .citysquare img,body.saver .shine::after,body.saver .magic-title,body.saver .garland{animation:none!important}
@media(prefers-reduced-motion:reduce){.glints,canvas.sky,.beam,.heart,.shine::after{display:none}}
#side .ad{flex-direction:column;text-align:center;padding:10px 8px}
#side .ad button,#side .ad a.btn{margin:0;display:inline-flex;justify-content:center;width:auto;min-height:36px;border:1px solid var(--line);background:linear-gradient(180deg,var(--red),var(--red2));color:var(--cream);font-weight:600;padding:5px 11px}
@media(min-width:760px){
 .hero picture.bg img{filter:brightness(1.18) saturate(1.2)}
 .home .hero .over{padding-top:20px;background:linear-gradient(transparent,#0b102699 28%,#0b1026cc 70%,#0b1026ee)}
}
@media(min-width:1100px){.home .hero{min-height:calc(100vh - 118px)}}
/* невысокие телефоны: обе кнопки должны быть видны без прокрутки */
@media(max-width:759px) and (max-height:740px){
 .home .hero{min-height:calc(100svh - 150px)}
 .stage .friend{height:116px}.stage .friend.gnome{height:96px}
 .home .hero .stage{margin-bottom:-30px}
 .home .hero .over{padding:24px 10px 10px}
 .home .hero h1{font-size:21px}
 .home .count{margin:5px 0 7px}.home .count span{font-size:10px}
 .bigbtns{gap:8px}.bigbtns>*{min-height:50px;font-size:17px}
}
#side>.friend.maiden{margin-top:52px}

/* V18: новогодние друзья крупнее и ближе к середине */
.stage .friend{height:clamp(200px,31svh,260px)}
.stage .friend.gnome{height:clamp(164px,25.5svh,214px)}
.hero .stage{padding:0}
.friendsline .friend{height:190px}
@media(max-width:380px){.stage .friend{height:196px}.stage .friend.gnome{height:160px}.friendsline .friend{height:160px}}
@media(min-width:760px) and (max-width:1099px){.stage .friend{height:clamp(240px,40vh,330px)}.stage .friend.gnome{height:clamp(196px,33vh,270px)}.friendsline .friend{height:240px}}
@media(max-width:759px) and (max-height:740px){.stage .friend{height:150px}.stage .friend.gnome{height:124px}}
@media(min-width:1100px) and (max-width:1249px){
 body[data-page=home] #right>.friend.gnome,body[data-page=home] #right>.friend.snowman{height:min(40vh,330px)}
}
@media(min-width:1250px){
 body[data-page=home]{--mid:clamp(500px,40vw,700px);--col:calc((min(100vw,1760px) - 64px - var(--mid)) / 2)}
 body[data-page=home] .shell{max-width:1760px;grid-template-columns:minmax(0,1fr) var(--mid) minmax(0,1fr);gap:12px}
 body[data-page=home] #side,body[data-page=home] #right{height:calc(100vh - 90px);max-height:none}
 body[data-page=home] #side>a,body[data-page=home] #side>button:not(.friend),body[data-page=home] #side>.ad{width:190px}
 #side>button.friend{width:auto;padding:0;gap:0}
 body[data-page=home] #side>.friend{position:absolute;margin:0;bottom:0}
 body[data-page=home] #side>.friend.maiden{right:-8px;height:min(60vh,520px,calc((var(--col) - 180px) * 1.9))}
 body[data-page=home] #side>.friend.deer{left:4px;height:min(27vh,260px)}
 body[data-page=home] #right{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start}
 body[data-page=home] #right>.friend{margin:0}
 body[data-page=home] #right>.friend.gnome,body[data-page=home] #right>.friend.snowman{height:min(42vh,430px)}
 body[data-page=home] #right>.friend.snowman{margin-left:48px}
 body[data-page=home] #right>.ad{width:260px}
}

/* V20: Санта в центре главной, заголовок и кнопки на спокойном фоне, без реплик */
.friend .say{display:none}
.shero{max-width:560px;margin:10px auto 0;text-align:center}
.shero .shot{position:relative;height:clamp(230px,calc(100svh - 492px),600px);border-radius:24px;overflow:hidden;border:1px solid #f6cd7288;box-shadow:0 0 34px #ffd36b40}
.shero .shot>img{width:100%;height:100%;object-fit:cover;object-position:50% 34%}
.shero h1{margin:12px 6px 0;font-size:clamp(21px,5.6vw,30px);line-height:1.2;color:var(--gold);text-shadow:none}
.shero h1 span{display:block}
.shero h1 .second{margin-top:3px;font-size:.66em;font-style:italic;font-weight:400;color:var(--cream)}
.shero .count{margin:9px 0 11px}
.shero .bigbtns{margin:0;gap:10px}
.shero .bigbtns>*{min-height:58px;font-size:19px}
.home .friendsline .friend{grid-row:auto;grid-column:auto;height:170px}
.home .friendsline .friend.gnome{height:140px;justify-self:end}
.home .friendsline .friend.snowman{justify-self:end}
.home .friendsline .adslot{grid-column:1/-1;grid-row:auto}
@media(max-width:759px) and (max-height:700px){.shero h1{font-size:19px;margin-top:8px}.shero .count{margin:5px 0 7px}.shero .bigbtns{gap:8px}.shero .bigbtns>*{min-height:48px;font-size:17px}.shero .shot{height:clamp(170px,calc(100svh - 440px),600px)}}
@media(min-width:1100px){.shero .shot{height:clamp(260px,calc(100vh - 420px),640px)}body[data-page=home] .home .friendsline .friend{display:none}}

/* один общий чат: без списка комнат */
.chat.single{grid-template-columns:minmax(0,1fr)}
