/* 3.2.58: рамки більші (до 560 px), напис-накладку «Онлайн гра» прибрано, зверху сніг (canvas.pcm-snow). 3.2.57: чіткість, цілі пікселі. 3.2.55: меню по боках для ПК — зліва «MyTower PRO», справа «Online game». Розмір, шрифти й відступи масштабуються від ширини рамки (cqw). */
.pcm{display:none}
@media (min-width:1100px) and (min-aspect-ratio:4/5){
.pcm{--w0:min(calc((100vw - 470px)/2 - 36px),calc((100dvh - 28px)/1.78),560px);--w:var(--w0);display:block;position:fixed;z-index:2;top:calc((100dvh - var(--w)*1.76)/2);width:var(--w);aspect-ratio:1024/1536;container-type:inline-size;pointer-events:none;background:center/100% 100% no-repeat;filter:drop-shadow(0 10px 22px rgba(0,0,0,.55));-webkit-user-select:none;user-select:none}
#pcm-l{left:calc((100vw - 470px)/4 - var(--w)/2);background-image:url(images/pcmenu/pcm_left_hd.webp?v=3267)}
#pcm-r{right:calc((100vw - 470px)/4 - var(--w)/2);background-image:url(images/pcmenu/pcm_right_hd.webp?v=3267)}
@supports (width:round(down,10.5px,2px)){.pcm{--w:round(down,var(--w0),2px);top:round(down,calc((100dvh - var(--w)*1.76)/2),1px)}#pcm-l{left:round(down,calc((100vw - 470px)/4 - var(--w)/2),1px)}#pcm-r{right:round(down,calc((100vw - 470px)/4 - var(--w)/2),1px)}}
.pcm{transition:opacity .35s}
body.pcm-wait .pcm{opacity:0;visibility:hidden}
.pcm-ttl{display:none!important}
.pcm-snow{position:absolute;left:0;top:0;width:100%;height:100%;z-index:4;pointer-events:none}
.pcm-b{position:absolute;display:flex;align-items:center;gap:2.6cqw;margin:0;padding:0 2.6cqw 0 5.4cqw;box-sizing:border-box;border:0;border-radius:3.6cqw;background:transparent;color:#fff;cursor:pointer;text-align:left;pointer-events:auto;font-family:var(--display,"Russo One","Nunito",system-ui,sans-serif);font-size:4.7cqw;line-height:1;-webkit-tap-highlight-color:transparent;transition:transform .12s,filter .15s}
.pcm-b:hover{filter:brightness(1.16) saturate(1.1)}
.pcm-b:active{transform:scale(.97);filter:brightness(.95)}
.pcm-b:focus-visible{outline:.6cqw solid #ffd95a;outline-offset:-.6cqw}
.pcm-b.on{filter:brightness(1.12);box-shadow:inset 0 0 0 .7cqw #ffd95a,0 0 2.4cqw #ffd95a99}
.pcm-i{flex:none;width:8.2cqw;height:8.2cqw;object-fit:contain;filter:drop-shadow(0 .5cqw .5cqw rgba(0,0,0,.45));pointer-events:none}
.pcm-t{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--body,"Nunito",system-ui,sans-serif);font-weight:800;font-size:5.3cqw;letter-spacing:.005em;-webkit-text-stroke:0;text-shadow:none}
.pcm-bd{position:absolute;top:-1.2cqw;right:1.6cqw;z-index:3;min-width:5.4cqw;height:5.4cqw;padding:0 1.3cqw;box-sizing:border-box;display:grid;place-items:center;border:.6cqw solid #fff;border-radius:3cqw;background:var(--red,#e5342e);color:#fff;font:900 3.1cqw/1 var(--body,"Nunito",system-ui,sans-serif);-webkit-text-stroke:0;text-shadow:none;pointer-events:none;animation:1.6s infinite badgepop}
.pcm-bd[hidden],.pcm-pl[hidden]{display:none}
.pcm-pl{position:absolute;top:-1.4cqw;right:1.4cqw;z-index:3;width:6cqw;height:6cqw;object-fit:contain;filter:drop-shadow(0 .3cqw .6cqw rgba(0,0,0,.6));pointer-events:none}
}

/* 3.2.60: гірлянда зверху на ПК — від верхнього краю вікна (під адресним рядком), по боках від ігрової колонки; кожна лампочка плавно міняє колір із зсувом */
.pcg{display:none}
@media (min-width:1100px) and (min-aspect-ratio:4/5){
.pcg{display:block;position:fixed;top:0;height:44px;z-index:2;pointer-events:none;overflow:visible;transition:opacity .35s}
#pcg-l{left:0}#pcg-r{right:0}
body.pcm-wait .pcg{opacity:0;visibility:hidden}
.pcg svg{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible}
.pcg path{fill:none;stroke:#10261c;stroke-width:2.2;stroke-linecap:round;filter:drop-shadow(0 1px 1px rgba(0,0,0,.5))}
.pcg-b{position:absolute;width:10px;height:16px;margin-left:-5px;transform-origin:50% 0;color:#ff3b4a;animation:pcgc 8s linear infinite}
.pcg-b::before{content:"";position:absolute;left:50%;top:-2px;width:5px;height:5px;margin-left:-2.5px;border-radius:1px;background:#1b3a2a}
.pcg-b::after{content:"";position:absolute;left:0;top:3px;width:10px;height:13px;border-radius:50% 50% 52% 52%/38% 38% 62% 62%;background:radial-gradient(ellipse at 38% 30%,#fff 0,rgba(255,255,255,.55) 14%,transparent 38%),currentColor;box-shadow:0 0 7px 2px currentColor,0 0 16px 4px color-mix(in srgb,currentColor 45%,transparent)}
@keyframes pcgc{0%{color:#ff3b4a}14%{color:#ffa21f}28%{color:#ffe14a}43%{color:#3be06a}57%{color:#36d6ff}71%{color:#4b7bff}86%{color:#ff54c8}100%{color:#ff3b4a}}
}
@media (prefers-reduced-motion:reduce){.pcg-b{animation-duration:30s}}

/* 3.2.61: блоки «Спільнота Telegram» (під лівою рамкою) і «Спільнота в Instagram» (під правою) */
@media (min-width:1100px) and (min-aspect-ratio:4/5){
.pcm-soc{position:absolute;left:7%;right:7%;top:calc(100% + 3cqw);height:20cqw;display:flex;align-items:center;gap:3cqw;box-sizing:border-box;padding:0 4cqw 0 25cqw;border-radius:4.2cqw;text-decoration:none;color:#fff;pointer-events:auto;cursor:pointer;overflow:visible;
 background:linear-gradient(180deg,#1d5fd6 0,#0d3a9c 46%,#082a78 100%);
 border:.9cqw solid #0a2c80;box-shadow:0 0 0 .8cqw #ffc531,0 0 0 1.7cqw #0a2c80,inset 0 .8cqw 0 rgba(255,255,255,.28),inset 0 -1.2cqw 2cqw rgba(3,16,60,.55),0 1.4cqw 2.4cqw rgba(0,0,0,.5);
 font-family:var(--display,"Russo One","Nunito",system-ui,sans-serif);transition:transform .15s,filter .15s;-webkit-tap-highlight-color:transparent}
.pcm-soc:hover{transform:translateY(-.5cqw);filter:brightness(1.14) saturate(1.1)}
.pcm-soc:active{transform:scale(.97)}
.pcm-soc:focus-visible{outline:.7cqw solid #ffd95a;outline-offset:1.6cqw}
.pcm-soc::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;overflow:hidden;background:linear-gradient(105deg,transparent 38%,rgba(255,255,255,.34) 50%,transparent 62%) -160% 0/60% 100% no-repeat;animation:pcmshine 5.5s ease-in-out infinite}
@keyframes pcmshine{0%,62%{background-position:-160% 0}100%{background-position:260% 0}}
.pcm-soc-i{position:absolute;left:-1.5cqw;top:50%;width:23cqw;height:23cqw;margin-top:-11.5cqw;object-fit:contain;filter:drop-shadow(0 .8cqw .7cqw rgba(0,0,0,.5));pointer-events:none}
.pcm-soc-t{display:flex;flex-direction:column;justify-content:center;min-width:0;flex:1 1 auto;line-height:1.05;font-family:var(--body,"Nunito",system-ui,sans-serif);-webkit-text-stroke:0;text-shadow:none}
.pcm-soc-t small{display:block;font-size:4.9cqw;font-weight:800;color:#dcecff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pcm-soc-t b{display:block;font-size:7.8cqw;font-weight:900;color:#ffc531;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
@media (prefers-reduced-motion:reduce){.pcm-soc::after{animation:none}}

/* 3.2.66: заставка, вхід і реєстрація (#loader) на ПК — у тій самій «телефонній» рамці, що й сама гра (470 px, скруглення 26 px, золоте/синє обведення + кутики #pc-frame) */
@media (width>=620px) and (aspect-ratio>=4/5){
#loader{width:470px;max-width:470px;top:14px;bottom:14px;height:auto;border-radius:26px;box-shadow:0 0 0 2px #ffd66ed9,0 0 0 6px #0d1847,0 0 0 8px #78beff8c,0 0 40px 10px #3f96ff59,0 30px 80px #000000bf}
#loader:after{border-radius:26px}
body:has(#loader:not(.out)) #pc-frame{z-index:10000}
}

/* 3.2.67: з вимкненими анімаціями (#app.noanim гасить усі animation) біжучий рядок оголошень і банера корпорації все одно має рухатись */
#app.noanim .gb-run span:not(#car){animation:gbRun 16s linear infinite!important}
#app.noanim #c-banner .gb-run span:not(#car){animation-duration:18s!important}
