/* ONLYCS: переключатель режимов над шапкой и своя шапка у каждого режима (PUBG / PUBLIC / FUN) */

/* ---- переключатель ---- */
html body.cms-body .ocs-mode-bar{display:flex;justify-content:flex-start;margin:0 0 14px}
html body.cms-body .ocs-mode-bar .ocs-categories{gap:6px;padding:5px;border-radius:14px}
html body.cms-body .ocs-mode-bar .ocs-category{padding:11px 26px!important;font-size:14px!important;letter-spacing:1px;border-radius:10px!important}
html body.cms-body .ocs-mode-bar .ocs-category[data-category="PUBLIC"].is-active{background:#5ebcff!important;color:#06121d!important}
html body.cms-body .ocs-mode-bar .ocs-category[data-category="FUN"].is-active{background:#b06eff!important;color:#12061f!important}
@media(max-width:640px){html body.cms-body .ocs-mode-bar .ocs-categories{width:100%}html body.cms-body .ocs-mode-bar .ocs-category{padding:10px 4px!important;font-size:12px!important}}

/* ---- слайды ---- */
html body.cms-body .ocs-main-banner{container-type:inline-size}
html body.cms-body .ocs-main-banner .ocs-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .45s ease,visibility 0s linear .45s}
html body.cms-body .ocs-main-banner .ocs-slide.is-on{opacity:1;visibility:visible;transition:opacity .45s ease,visibility 0s}
/* персонажи въезжают заново при каждом переключении */
html body.cms-body .ocs-main-banner .ocs-slide:not(.is-on) img.ocs-hero-char{animation:none!important;opacity:0}
html body.cms-body .ocs-main-banner[data-mode="PUBLIC"]::before{background:radial-gradient(28% 90% at 85% 85%,rgba(94,188,255,.22),transparent 70%)}
html body.cms-body .ocs-main-banner[data-mode="FUN"]::before{background:radial-gradient(40% 100% at 50% 100%,rgba(176,110,255,.22),transparent 70%)}
html body.cms-body .ocs-slide[data-slide="PUBLIC"] img.ocs-hero-char{filter:drop-shadow(0 0 1px rgba(94,188,255,.9)) drop-shadow(0 14px 28px rgba(0,0,0,.65))}

/* ---- текст шапки ---- */
html body.cms-body .ocs-btext{position:absolute;z-index:3;left:50%;top:50%;transform:translate(-50%,-52%);display:flex;flex-direction:column;align-items:center;text-align:center;pointer-events:none;
 --acc:#ffca18;font-family:"Montserrat","Poppins","Arial Black",var(--ocs-display),sans-serif;color:#fff;white-space:nowrap}
html body.cms-body .ocs-btext.is-public{--acc:#5ebcff;left:44%}
html body.cms-body .ocs-btext.is-fun{--acc:#c08aff}
html body.cms-body .ocs-btext .ocs-bk{display:flex;align-items:center;gap:1.4cqw;color:var(--acc);font:800 1.15cqw/1 var(--ocs-font);letter-spacing:.55em;margin-bottom:1.2cqw}
html body.cms-body .ocs-btext .ocs-bk::before,html body.cms-body .ocs-btext .ocs-bk::after{content:"";width:6cqw;height:2px;background:linear-gradient(90deg,transparent,var(--acc))}
html body.cms-body .ocs-btext .ocs-bk::after{background:linear-gradient(90deg,var(--acc),transparent)}
html body.cms-body .ocs-btext strong{display:block;font-weight:900;font-style:italic;font-size:7.6cqw;line-height:.95;letter-spacing:-.02em;text-transform:uppercase;text-shadow:0 .4cqw 2cqw rgba(0,0,0,.55)}
html body.cms-body .ocs-btext .ocs-bs{display:block;margin-top:.9cqw;font-weight:900;font-style:italic;font-size:3.3cqw;line-height:1;text-transform:uppercase;letter-spacing:.01em;text-shadow:0 .3cqw 1.4cqw rgba(0,0,0,.5)}
html body.cms-body .ocs-btext .ocs-bs b{color:var(--acc)}
html body.cms-body .ocs-btext .ocs-bline{display:block;width:34cqw;height:.45cqw;margin-top:1.6cqw;border-radius:2px;background:linear-gradient(90deg,transparent,var(--acc) 20%,var(--acc) 80%,transparent);box-shadow:0 0 1.4cqw var(--acc)}
html body.cms-body .ocs-btext.is-fun strong{font-size:8cqw;text-shadow:0 0 2.4cqw rgba(176,110,255,.75),0 .4cqw 2cqw rgba(0,0,0,.55);animation:ocs-pulse 3s ease-in-out infinite}
html body.cms-body .ocs-btext.is-fun .ocs-bs{font-size:2.4cqw}
@keyframes ocs-pulse{0%,100%{text-shadow:0 0 1.6cqw rgba(176,110,255,.55),0 .4cqw 2cqw rgba(0,0,0,.55)}50%{text-shadow:0 0 3.2cqw rgba(176,110,255,.95),0 .4cqw 2cqw rgba(0,0,0,.55)}}

/* ---- FUN: способности ---- */
html body.cms-body .ocs-fun-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:.6cqw;margin-top:1.6cqw;max-width:56cqw}
html body.cms-body .ocs-fun-chip{display:inline-flex;align-items:center;gap:.5cqw;padding:.35cqw .9cqw .35cqw .35cqw;border-radius:99px;background:rgba(20,16,32,.72);border:1px solid rgba(192,138,255,.35);font:800 1cqw/1 var(--ocs-font);letter-spacing:.02em;color:#efe6ff;font-style:normal}
html body.cms-body .ocs-fun-chip i,html body.cms-body .ocs-fun-float i{display:block;border-radius:50%;background:var(--c,#b06eff);position:relative}
html body.cms-body .ocs-fun-chip i{width:1.6cqw;height:1.6cqw}
html body.cms-body .ocs-fun-chip i::after,html body.cms-body .ocs-fun-float i::after{content:"";position:absolute;inset:20%;background:#0f0c18;-webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat}
html body.cms-body .is-bhop{--c:#3f8cff}html body.cms-body .is-wallhack{--c:#ff4d5e}html body.cms-body .is-medic{--c:#2fd67a}html body.cms-body .is-ghost{--c:#a77bff}
html body.cms-body .is-rambo{--c:#ff8a3d}html body.cms-body .is-dwarf{--c:#ffd23f}html body.cms-body .is-chicken{--c:#f6f1e4}

html body.cms-body .ocs-fun-float{position:absolute;z-index:2;padding:.5cqw;border-radius:50%;background:rgba(255,255,255,.05);box-shadow:0 0 2.4cqw color-mix(in srgb,var(--c) 45%,transparent);animation:ocs-float 5s ease-in-out infinite}
html body.cms-body .ocs-fun-float i{width:100%;height:100%}
html body.cms-body .ocs-fun-float.f0{left:6%;top:16%;width:7cqw;height:7cqw}
html body.cms-body .ocs-fun-float.f1{left:17%;top:52%;width:5.4cqw;height:5.4cqw;animation-delay:-1.2s}
html body.cms-body .ocs-fun-float.f2{left:4%;top:62%;width:4.2cqw;height:4.2cqw;animation-delay:-2.6s}
html body.cms-body .ocs-fun-float.f3{right:7%;top:14%;width:7cqw;height:7cqw;animation-delay:-.6s}
html body.cms-body .ocs-fun-float.f4{right:18%;top:56%;width:5cqw;height:5cqw;animation-delay:-3.1s}
html body.cms-body .ocs-fun-float.f5{right:4%;top:62%;width:4.4cqw;height:4.4cqw;animation-delay:-1.8s}
html body.cms-body .ocs-fun-float.f6{left:22%;top:12%;width:3.6cqw;height:3.6cqw;animation-delay:-4s}
@keyframes ocs-float{0%,100%{transform:translateY(0) rotate(-4deg)}50%{transform:translateY(-9%) rotate(4deg)}}

/* ---- PUBLIC: снег ---- */
html body.cms-body .ocs-snow{position:absolute;inset:0;z-index:1;pointer-events:none;
 background-image:radial-gradient(2px 2px at 20px 30px,#fff,transparent),radial-gradient(1.5px 1.5px at 80px 120px,#fff,transparent),radial-gradient(2.5px 2.5px at 160px 60px,#e8f6ff,transparent),radial-gradient(1.5px 1.5px at 230px 160px,#fff,transparent),radial-gradient(2px 2px at 300px 20px,#fff,transparent),
  radial-gradient(1px 1px at 50px 180px,#fff,transparent),radial-gradient(2px 2px at 120px 220px,#dff2ff,transparent),radial-gradient(1.5px 1.5px at 270px 240px,#fff,transparent);
 background-size:320px 260px;opacity:.75;animation:ocs-snow 14s linear infinite}
html body.cms-body .ocs-snow::after{content:"";position:absolute;inset:0;background-image:inherit;background-size:210px 180px;opacity:.6;animation:ocs-snow2 9s linear infinite}
@keyframes ocs-snow{from{background-position:0 0}to{background-position:60px 260px}}
@keyframes ocs-snow2{from{background-position:0 0}to{background-position:-40px 180px}}

@media(max-width:520px){html body.cms-body .ocs-btext.is-public{left:50%}html body.cms-body .ocs-btext strong{font-size:13cqw}html body.cms-body .ocs-btext.is-fun strong{font-size:12cqw}html body.cms-body .ocs-btext .ocs-bs{font-size:5.2cqw}html body.cms-body .ocs-btext.is-fun .ocs-bs{font-size:4.2cqw}html body.cms-body .ocs-btext .ocs-bk{font-size:2.4cqw}html body.cms-body .ocs-btext .ocs-bline{width:60cqw;height:.8cqw}html body.cms-body .ocs-fun-float{display:none}html body.cms-body .ocs-fun-chips{max-width:90cqw}html body.cms-body .ocs-fun-chip{font-size:2cqw}html body.cms-body .ocs-fun-chip i{width:3cqw;height:3cqw}}
@media(prefers-reduced-motion:reduce){html body.cms-body .ocs-snow,html body.cms-body .ocs-snow::after,html body.cms-body .ocs-fun-float,html body.cms-body .ocs-btext.is-fun strong{animation:none!important}}

/* ---- выбор режима при входе ---- */
html body.cms-body main.ocs-home.ocs-picking .ocs-mode-bar,
html body.cms-body main.ocs-home.ocs-picking .ocs-hero-media,
html body.cms-body main.ocs-home.ocs-picking #servers,
html body.cms-body main.ocs-home.ocs-picking .ocs-steps,
html body.cms-body main.ocs-home.ocs-picking #ow-community-chat{display:none!important}
html body.cms-body main.ocs-home:not(.ocs-picking) .ocs-picker-wrap{display:none}
html body.cms-body .ocs-picker-wrap{padding:6px 0 26px}
html body.cms-body .ocs-picker-title{text-align:center;margin:4px 0 18px;color:#fff;font:600 clamp(22px,2.4vw,32px)/1 var(--ocs-display);text-transform:uppercase;letter-spacing:.5px}
html body.cms-body .ocs-picker-title em{font-style:normal;color:var(--ocs-accent)}
html body.cms-body .ocs-picker{display:grid;grid-template-columns:repeat(3,minmax(0,270px));justify-content:center;gap:18px}
html body.cms-body .ocs-pick{--acc:#ffca18;position:relative;display:block;aspect-ratio:5/9;padding:0!important;margin:0;overflow:hidden;isolation:isolate;cursor:pointer;text-align:left;min-height:0!important;
 border-radius:18px!important;border:1px solid var(--ocs-line-2,#2a313c)!important;color:#fff!important;
 background:radial-gradient(90% 55% at 50% 100%,color-mix(in srgb,var(--acc) 34%,transparent),transparent 70%),linear-gradient(180deg,#10141b 0%,#121721 50%,color-mix(in srgb,var(--acc) 14%,#10141b) 100%)!important;
 transition:transform .35s cubic-bezier(.2,.8,.2,1),border-color .3s,box-shadow .3s}
html body.cms-body .ocs-pick::before{content:"";position:absolute;inset:0;z-index:-1;opacity:.6;pointer-events:none;
 background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:28px 28px;
 -webkit-mask-image:linear-gradient(180deg,#000,transparent 70%);mask-image:linear-gradient(180deg,#000,transparent 70%)}
html body.cms-body .ocs-pick::after{content:"";position:absolute;inset:auto 0 0 0;height:48%;z-index:2;pointer-events:none;background:linear-gradient(0deg,rgba(8,10,14,.92) 10%,transparent)}
html body.cms-body .ocs-pick.is-fun{--acc:#b06eff}
html body.cms-body .ocs-pick.is-public{--acc:#5ebcff}
html body.cms-body .ocs-pick .ocs-pick-text::before{content:"";display:block;width:36px;height:3px;margin:0 auto 12px;border-radius:2px;background:var(--acc);box-shadow:0 0 12px var(--acc)}
html body.cms-body .ocs-pick:hover,html body.cms-body .ocs-pick:focus-visible{transform:translateY(-6px);border-color:var(--acc)!important;box-shadow:0 18px 50px -18px color-mix(in srgb,var(--acc) 70%,transparent),0 0 0 1px var(--acc) inset;outline:none}
html body.cms-body .ocs-pick-online{position:absolute;top:14px;right:14px;z-index:3;display:inline-flex;align-items:center;gap:7px;padding:5px 10px;border-radius:99px;background:rgba(0,0,0,.35);font:800 12px/1 var(--ocs-font);color:#fff}
html body.cms-body .ocs-pick-online i{width:7px;height:7px;border-radius:50%;background:var(--ocs-ok,#3fe08f);box-shadow:0 0 0 3px rgba(63,224,143,.18)}
html body.cms-body .ocs-pick img.ocs-pick-art{position:absolute;z-index:1;left:50%;bottom:-4%;width:auto!important;height:82%!important;max-width:none;object-fit:contain!important;transform:translateX(-50%);transform-origin:50% 100%;
 filter:brightness(.78) saturate(.9) drop-shadow(0 12px 24px rgba(0,0,0,.6));transition:transform .5s cubic-bezier(.2,.8,.2,1),filter .4s}
html body.cms-body .ocs-pick.is-public img.ocs-pick-art{height:72%!important}
html body.cms-body .ocs-pick:hover img.ocs-pick-art{transform:translateX(-50%) scale(1.05);filter:brightness(1) saturate(1) drop-shadow(0 0 1px var(--acc)) drop-shadow(0 14px 26px rgba(0,0,0,.6))}
html body.cms-body .ocs-pick-text{position:absolute;z-index:3;left:0;right:0;bottom:7%;display:flex;flex-direction:column;align-items:center;text-align:center;padding:0 10px}
html body.cms-body .ocs-pick-name{font:900 italic clamp(26px,3.2vw,46px)/1 "Montserrat","Poppins","Arial Black",var(--ocs-display),sans-serif;text-transform:uppercase;letter-spacing:-.01em;text-shadow:0 4px 18px rgba(0,0,0,.6)}
html body.cms-body .ocs-pick-sub{margin-top:8px;color:var(--acc);font:800 11px/1.2 var(--ocs-font);letter-spacing:1.4px;text-transform:uppercase}
html body.cms-body .ocs-pick .ocs-snow{z-index:1;opacity:.5}
/* FUN: облако способностей вместо персонажа */
html body.cms-body .ocs-pick-icons{position:absolute;inset:7% 0 40% 0;z-index:0;opacity:.85}
html body.cms-body .ocs-pick.is-fun img.ocs-pick-art{height:86%!important;bottom:-10%}
html body.cms-body .ocs-pick-ico{position:absolute;padding:5%;border-radius:50%;background:rgba(255,255,255,.05);box-shadow:0 0 26px color-mix(in srgb,var(--c) 45%,transparent);animation:ocs-float 5s ease-in-out infinite;transition:transform .4s}
html body.cms-body .ocs-pick-ico i{display:block;width:100%;height:100%;border-radius:50%;background:var(--c);position:relative}
html body.cms-body .ocs-pick-ico i::after{content:"";position:absolute;inset:20%;background:#0f0c18;-webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat}
html body.cms-body .ocs-pick-ico.p0{left:40%;top:2%;width:20%;aspect-ratio:1}
html body.cms-body .ocs-pick-ico.p1{left:8%;top:6%;width:24%;aspect-ratio:1;animation-delay:-1s}
html body.cms-body .ocs-pick-ico.p2{right:8%;top:10%;width:22%;aspect-ratio:1;animation-delay:-2.2s}
html body.cms-body .ocs-pick-ico.p3{left:6%;top:52%;width:20%;aspect-ratio:1;animation-delay:-3s}
html body.cms-body .ocs-pick-ico.p4{right:6%;top:56%;width:20%;aspect-ratio:1;animation-delay:-.5s}
html body.cms-body .ocs-pick-ico.p5{right:22%;top:32%;width:14%;aspect-ratio:1;animation-delay:-4s}
html body.cms-body .ocs-pick-ico.p6{left:22%;top:30%;width:14%;aspect-ratio:1;animation-delay:-2.8s}

@media(max-width:700px){
 html body.cms-body .ocs-picker{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 html body.cms-body .ocs-pick{border-radius:14px;aspect-ratio:3/5}
 html body.cms-body .ocs-pick-name{font-size:clamp(18px,6vw,28px)}
 html body.cms-body .ocs-pick-sub{font-size:9px;letter-spacing:.6px}
 html body.cms-body .ocs-pick-online{top:8px;right:8px;padding:4px 7px;font-size:11px}
 html body.cms-body .ocs-mode-bar{flex-wrap:nowrap}
}
@media(prefers-reduced-motion:reduce){html body.cms-body .ocs-pick-ico{animation:none!important}}
