/* ViralScope Hub polish: navy + neon cyan, shared chrome, games, tools. */
:root{--bg:#f4f8fb;--fg:#07111f;--muted:#3e5568;--card:#fff;--soft:#e7f1f6;--border:#d3e2ec;--primary:#0e7490;--primary-h:#155e75;--on-primary:#fff;--good:#0f766e;--bad:#9f1239;--warn:#9a3412;--shadow:0 1px 2px rgba(7,17,31,.06),0 10px 28px rgba(7,17,31,.06);--vsh-navy:#06101c;--vsh-cyan:#22e7ff;--vsh-ink:#04121c}
:root[data-theme=dark]{--bg:#06101c;--fg:#e7f6fb;--muted:#9ec3d1;--card:#0c1c2e;--soft:#12283a;--border:#1e3d52;--primary:#22e7ff;--primary-h:#8ef6ff;--on-primary:#04121c;--good:#5eead4;--bad:#fda4af;--warn:#fdba74;--shadow:0 1px 2px rgba(0,0,0,.35)}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#06101c;--fg:#e7f6fb;--muted:#9ec3d1;--card:#0c1c2e;--soft:#12283a;--border:#1e3d52;--primary:#22e7ff;--primary-h:#8ef6ff;--on-primary:#04121c;--good:#5eead4;--bad:#fda4af;--warn:#fdba74}}
html{scroll-behavior:smooth}
body{font-family:"Segoe UI",ui-sans-serif,system-ui,-apple-system,sans-serif;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
h1,h2,h3{text-wrap:balance;letter-spacing:-.02em}
p,.prose{text-wrap:pretty}
:focus-visible{outline:2px solid var(--vsh-cyan);outline-offset:2px}
.skip,.skip-link{position:absolute;left:12px;top:-40px;background:var(--vsh-cyan);color:var(--vsh-ink);padding:8px 12px;z-index:10000;border-radius:8px;font-weight:700}
.skip:focus,.skip-link:focus{top:12px}
.site-header{background:var(--vsh-navy);color:#e7f6fb;border-bottom:1px solid rgba(34,231,255,.28);position:sticky;top:0;z-index:40}
.site-header .logo-text,.site-header #site-nav a,.site-header .icon-btn{color:#e7f6fb}
.site-header #site-nav a:hover{background:rgba(34,231,255,.12);color:#fff}
.site-header .icon-btn{border-color:rgba(34,231,255,.35)}
.vsh-hex{color:var(--vsh-cyan);display:block;flex:0 0 auto}
.logo{display:inline-flex;align-items:center;gap:10px;color:#e7f6fb;text-decoration:none}
.site-footer,footer.site-foot{background:#041018;color:#c5dde6}
.site-footer a,footer.site-foot a{color:#8ef6ff}
.vsh-sitenav{background:#041018;border-bottom:1px solid rgba(34,231,255,.2)}
.vsh-sitenav ul{list-style:none;display:flex;flex-wrap:wrap;gap:6px 14px;margin:0 auto;padding:8px 16px;max-width:1100px}
.vsh-sitenav a{color:#d7f7ff;text-decoration:none;font-weight:650;font-size:.92rem;min-height:44px;display:inline-flex;align-items:center}
.vsh-sitenav a[aria-current="page"]{color:var(--vsh-cyan)}
@media (max-width:900px){
  header.site-header .menu-btn{display:inline-flex!important;align-items:center;justify-content:center;min-width:44px;min-height:44px}
  header.site-header #site-nav{display:none;position:absolute;left:0;right:0;top:100%;background:#07111f;border-bottom:1px solid rgba(34,231,255,.3);flex-direction:column;padding:8px 12px 14px;z-index:50;max-height:calc(100vh - 64px);overflow:auto}
  header.site-header #site-nav.open{display:flex}
  header.site-header #site-nav a{min-height:44px;display:flex;align-items:center;padding:10px 12px}
  .top .nav-toggle{display:inline-flex}
  .top-nav{display:none}
  .top-nav.open{display:flex;flex-direction:column;position:absolute;left:0;right:0;top:100%;background:#07111f;padding:8px 12px 14px;z-index:50}
  .top-nav a{min-height:44px;display:flex;align-items:center}
}
.top{position:sticky;top:0;z-index:40;background:#06101c;color:#e7f6fb}
.hub-visual img,.shot img,img{max-width:100%;height:auto}
.hub-visual img{aspect-ratio:16/10;object-fit:cover;background:#0c1c2e}
.ad-slot:empty{display:none!important}
.ad-slot:not(:has(iframe)):not(:has(ins)):not(:has(script)){display:none!important}
.ad-rail:empty{display:none!important}
body[data-tool-cat="games"]{--bg:#06101c;--fg:#e7f6fb;--muted:#9ec3d1;--card:#0c1c2e;--soft:#12283a;--border:#1e3d52;--primary:#22e7ff;--primary-h:#8ef6ff;--on-primary:#04121c;background:#06101c;color:#e7f6fb}
body[data-tool-cat="games"] .card-box,body[data-tool-cat="games"] .tool{background:#0c1c2e;border-color:#1e3d52}
body[data-tool-cat="games"] .b2048{background:#0a2230;border:1px solid rgba(34,231,255,.35)}
body[data-tool-cat="games"] .b2048 .t{background:#102838;color:#d7f7ff;border-radius:8px;font-weight:750}
body[data-tool-cat="games"] .t2{background:#134e5e;color:#e7f6fb}
body[data-tool-cat="games"] .t4{background:#0e7490;color:#e7f6fb}
body[data-tool-cat="games"] .t8{background:#0891b2;color:#04121c}
body[data-tool-cat="games"] .t16{background:#22d3ee;color:#04121c}
body[data-tool-cat="games"] .t32{background:#67e8f9;color:#04121c}
body[data-tool-cat="games"] .t64,body[data-tool-cat="games"] .t128,body[data-tool-cat="games"] .t256,body[data-tool-cat="games"] .t512,body[data-tool-cat="games"] .t1024,body[data-tool-cat="games"] .t2048,body[data-tool-cat="games"] .tbig{background:#22e7ff;color:#04121c}
body[data-tool-cat="games"] .ttt .cell,body[data-tool-cat="games"] .chess .sq{min-height:44px}
body[data-tool-cat="games"] .game-bar .btn,body[data-tool-cat="games"] .g-tb{background:#0e7490;color:#e7f6fb;border:1px solid rgba(34,231,255,.4)}
.game-shell{max-width:100%}
.g-stage,.g-fit,.g-main{max-width:100%}
#game canvas,.game canvas{max-width:100%;height:auto;touch-action:none;border-radius:12px;background:#071422}
#game button,.g-pad button,.dpad button,.g-tb{min-height:44px;min-width:44px;touch-action:manipulation}
.dpad{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:12px}
.dpad button,.g-pad button{font-size:1.15rem}
.vsh-overlay{position:absolute;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(4,12,20,.78);backdrop-filter:blur(6px)}
.g-main,.game-shell{position:relative}
.vsh-card{width:min(440px,100%);background:#0c1c2e;color:#e7f6fb;border:1px solid rgba(34,231,255,.45);border-radius:18px;padding:22px 20px 18px;box-shadow:0 18px 60px rgba(0,0,0,.35);text-align:center}
.vsh-card h2{margin:.35em 0 .2em;font-size:1.7rem}
.vsh-card p{margin:.35em 0;color:#c5e4ee}
.vsh-mark{color:#22e7ff;display:flex;justify-content:center}
.vsh-mark svg{width:54px;height:54px}
.vsh-card ol{text-align:left;margin:12px auto;padding-left:1.2em;max-width:34ch}
.vsh-card li{margin:.28em 0}
.vsh-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:14px}
.vsh-actions button,.vsh-go{appearance:none;border:0;cursor:pointer;background:#22e7ff;color:#04121c;font-weight:750;border-radius:999px;min-height:52px;padding:12px 22px;font-size:1.05rem}
.vsh-actions .vsh-ghost{background:transparent;color:#e7f6fb;border:1px solid rgba(34,231,255,.5)}
.vsh-best{font-variant-numeric:tabular-nums;color:#8ef6ff;font-weight:700}
.vsh-steps{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 16px;padding:0;list-style:none;counter-reset:vsh}
.vsh-steps li{counter-increment:vsh;flex:1 1 180px;background:var(--card);border:1px solid var(--border);border-radius:12px;padding:10px 12px 10px 42px;position:relative;font-size:.95rem;line-height:1.35}
.vsh-steps li:before{content:counter(vsh);position:absolute;left:10px;top:10px;width:24px;height:24px;border-radius:50%;background:#22e7ff;color:#04121c;font-weight:800;display:grid;place-items:center;font-size:.85rem}
body[data-tool-cat="games"] .vsh-steps{display:none}
.tool input,.tool select,.tool textarea,#tool input,#tool select,#tool textarea{font-size:16px}
.tool .drop,.vsh-drop{min-height:200px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:2px dashed #22e7ff;border-radius:18px;background:rgba(34,231,255,.06);padding:22px 16px;text-align:center;cursor:pointer}
.tool .drop .drop-title{font-size:1.25rem;font-weight:750}
.vsh-more{margin:12px 0;border:1px solid var(--border);border-radius:12px;padding:8px 12px;background:var(--soft)}
.vsh-more summary{cursor:pointer;font-weight:750;min-height:44px;display:flex;align-items:center}
.vsh-progress{margin:10px 0}
.vsh-progress[hidden]{display:none}
.vsh-progress-bar{height:8px;border-radius:99px;background:linear-gradient(90deg,#0e7490,#22e7ff);background-size:200% 100%;animation:vshload 1s linear infinite}
.vsh-progress-label{margin:.4em 0 0;font-size:.92rem}
@keyframes vshload{from{background-position:0 0}to{background-position:200% 0}}
.tool .results,.tool #result,.big-answer,.tool .stat-value{font-size:1.35rem;font-weight:700}
.tool .actions .btn,.vsh-go,#merge,#download,a[download].btn,button.vsh-go{min-height:52px;font-size:1.05rem;padding:12px 20px;border-radius:999px}
@media (max-width:720px){
  .tool .actions .btn,.vsh-go,#merge,#download,button.vsh-go{width:100%}
  .wrap{padding-left:14px;padding-right:14px}
  h1{font-size:1.7rem}
}
#tool label[class*="min-h"]{min-height:220px}
#tool .vsh-steps{margin-top:0}
.prose{max-width:68ch}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
a.nav-games{display:inline-flex;align-items:center;gap:6px;background:#22e7ff;color:#04121c!important;border-radius:999px;font-weight:800;letter-spacing:0;text-transform:none;text-decoration:none;padding:6px 12px;min-height:40px;line-height:1}
a.nav-games:hover{background:#8ef6ff;color:#04121c!important}
a.nav-games .nav-pad{flex:none;display:block}
.vsh-sitenav a.nav-games{min-height:40px}
header.site-header .nav-games-bar,header.top .nav-games-bar{display:none}
@media (max-width:900px){
  header.site-header .nav-games-bar,header.top .nav-games-bar{display:inline-flex!important;margin-left:auto}
}
@media (max-width:520px){
  header.site-header .hbar{gap:6px;min-width:0}
  header.site-header .logo{min-width:0}
  header.site-header .nav-games-bar span{
    position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
    clip:rect(0,0,0,0);white-space:nowrap;border:0;
  }
}
.vsh-biggames,.vsh-moregames{margin:10px 0 18px}
.vsh-big-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 8px}
.vsh-big-head h2,.vsh-big-head .vsh-as-h2{margin:0;font-size:1.2rem;font-weight:750}
.tool-form h2.tool-subh{font-size:1.05rem;margin:12px 0 6px;font-weight:700}
.vsh-depth{margin:1.25rem 0}
.vsh-depth h2{font-size:1.35rem}
.vsh-depth h3{font-size:1.05rem;margin:1rem 0 .35rem}
.vsh-hub-extra{margin:1rem 0 1.5rem}
.vsh-game-about{max-width:42rem;margin:1.5rem auto;padding:0 1rem 2rem;line-height:1.55}
.vsh-big-head a{color:var(--primary);font-weight:700;text-decoration:none}
.vsh-big-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(148px,1fr);gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding:0 0 8px;-webkit-overflow-scrolling:touch}
.vsh-big-card{scroll-snap-align:start;display:flex;flex-direction:column;min-width:0;background:#071422;color:#e7f6fb;border:1px solid rgba(34,231,255,.28);border-radius:14px;overflow:hidden}
.vsh-big-hit{color:inherit;text-decoration:none;display:flex;flex-direction:column;min-width:0}
.vsh-big-card img{width:100%;aspect-ratio:16/10;height:auto;object-fit:cover;display:block;background:#0c1c2e}
.vsh-big-name{display:block;font-weight:750;font-size:.88rem;line-height:1.25;padding:8px 8px 0}
a.vsh-play{display:flex;align-items:center;justify-content:center;margin:8px;min-height:40px;border-radius:999px;background:#22e7ff;color:#04121c;font-weight:800;text-decoration:none}
a.vsh-play:hover{background:#8ef6ff}
@media (max-width:800px){
  .vsh-big-row{grid-auto-columns:72vw}
}
@media (min-width:1100px){
  .vsh-biggames .vsh-big-row{grid-auto-columns:minmax(0,1fr);overflow:visible}
}
.vsh-moregames{margin-top:28px;padding-top:14px;border-top:1px solid var(--border)}
@media (min-width:800px){
  .vsh-moregames .vsh-big-row{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-flow:row;grid-auto-columns:auto;overflow:visible}
}
body[data-mood="hub"] .vsh-hub-first{padding-top:14px}
body[data-mood="hub"] .hub-hero{padding-top:16px}
body[data-mood="hub"] .hub-hero h1{font-size:clamp(2rem,5vw,3.2rem);text-transform:none;max-width:22ch}
.hub-visual img{height:100%!important;object-fit:cover}
@media (max-width:900px){
  body[data-mood="hub"] #featured .hub-grid{display:flex!important;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;padding-bottom:12px;-webkit-overflow-scrolling:touch}
  body[data-mood="hub"] #featured .hub-card{flex:0 0 min(78vw,320px);scroll-snap-align:start}
}
.vsh-show{display:flex;flex-direction:column;gap:14px}
.vsh-banner,.vsh-hero,.vsh-home-card{--tone:#102033;--accent:#22e7ff;background:linear-gradient(165deg,var(--tone),#06101c 78%);color:#f4fbff;border:1px solid color-mix(in srgb,var(--accent) 50%,transparent);border-radius:18px;overflow:hidden}
.vsh-banner{display:grid;grid-template-columns:1.35fr .9fr}
.vsh-banner-copy,.vsh-hero-body,.vsh-home-body{padding:14px 14px 16px}
.vsh-kicker{margin:0 0 6px;font-size:.78rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--accent)}
.vsh-banner h3,.vsh-hero h3{margin:0 0 6px;font-size:1.45rem;line-height:1.15}
.vsh-banner h3 a,.vsh-hero h3 a{color:inherit;text-decoration:none}
.vsh-pitch{margin:0;line-height:1.4;font-size:1rem}
.vsh-badges{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:10px 0 12px;padding:0}
.vsh-badges li{display:inline-flex;align-items:center;gap:5px;background:rgba(255,255,255,.08);border-radius:999px;padding:4px 9px;font-size:.8rem;font-weight:700}
.vsh-badges svg{width:14px;height:14px;flex:none}
a.vsh-go{display:flex;align-items:center;justify-content:center;min-height:52px;border-radius:999px;background:#22e7ff;color:#04121c;font-weight:800;font-size:1.05rem;text-decoration:none}
a.vsh-go:hover{background:#8ef6ff}
a.vsh-go:focus-visible,.vsh-filters button:focus-visible,.vsh-shot:focus-visible{outline:3px solid #fff;outline-offset:3px}
.vsh-about{display:inline-block;margin-top:8px;color:var(--accent);font-weight:700}
.vsh-shot{position:relative;display:block;color:inherit;text-decoration:none}
.vsh-shot img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;display:block;background:#0c1c2e}
.vsh-shot video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0}
.vsh-shot.is-playing video{opacity:1}
.vsh-genre{position:absolute;left:10px;top:10px;background:color-mix(in srgb,var(--tone) 82%,#000);color:#fff;border:1px solid var(--accent);border-radius:999px;padding:4px 10px;font-size:.78rem;font-weight:800}
.vsh-how{background:#0b1830;border:1px solid rgba(34,231,255,.28);border-radius:16px;padding:12px 14px}
.vsh-how h3{margin:0 0 8px;font-size:1.05rem}
.vsh-how-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.vsh-how p{margin:0;line-height:1.45}
.vsh-filters{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;-webkit-overflow-scrolling:touch}
.vsh-filters button{border:1px solid rgba(34,231,255,.4);background:transparent;color:#e7f6fb;border-radius:999px;min-height:42px;padding:0 14px;font-weight:800;white-space:nowrap}
.vsh-filters button[aria-pressed="true"]{background:#22e7ff;color:#04121c;border-color:#22e7ff}
.vsh-hero-grid{display:grid;grid-template-columns:1fr;gap:14px}
.vsh-home-row{display:grid;grid-auto-flow:column;grid-auto-columns:min(86vw,320px);gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:0 0 10px;-webkit-overflow-scrolling:touch}
.vsh-home-card{scroll-snap-align:start;display:flex;flex-direction:column;min-width:0}
.vsh-home-name{display:block;font-weight:800;font-size:1.05rem;margin:0 0 4px}
.vsh-home-card .vsh-pitch{font-size:.92rem}
.vsh-home-card a.vsh-go{margin-top:auto}
@media (min-width:720px){
  .vsh-hero-grid{grid-template-columns:1fr 1fr}
}
@media (min-width:1100px){
  .vsh-hero-grid{grid-template-columns:1fr 1fr 1fr}
  .vsh-home-row{grid-auto-columns:300px}
}
@media (max-width:800px){
  .vsh-banner,.vsh-how-grid{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  .vsh-shot video{display:none}
}

/* Reserved ads. Zero size until html.ads-on (set by /assets/ads-config.js). */
html:not(.ads-on) .vsh-ad,
html:not(.ads-on) .ad-rail,
html:not(.ads-on) .ad-column,
html:not(.ads-on) .ad-slot-left,
html:not(.ads-on) .ad-slot-right,
html:not(.ads-on) .ad-slot-side,
html:not(.ads-on) .ad-slot-bottom,
html:not(.ads-on) .ad-banner,
html:not(.ads-on) .ad-bottom,
html:not(.ads-on) #ad-title,
html:not(.ads-on) #ad-pause,
html:not(.ads-on) .g-stage.theater .ad-rail{
  display:none !important;
  width:0 !important;
  height:0 !important;
  min-width:0 !important;
  min-height:0 !important;
  max-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  flex:0 0 0px !important;
  overflow:hidden !important;
  position:absolute !important;
  inset:auto !important;
  visibility:hidden !important;
}
html:not(.ads-on) .ad-slot:before,
html:not(.ads-on) .ad-slot:after{content:none !important}
html:not(.ads-on) .vsh-play-wrap{display:contents}
html:not(.ads-on) body.vsh-big-play #app,
html:not(.ads-on) body.vsh-big-play #frame{
  grid-template-columns:minmax(0,1fr) !important;
}
html.ads-on .vsh-ad{box-sizing:border-box;overflow:hidden}
html.ads-on .vsh-ad-label{
  margin:0 0 4px;
  font:700 11px/1.2 "Segoe UI",system-ui,sans-serif;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#5b6679;
}
html.ads-on .vsh-ad-article{
  display:block;
  clear:both;
  min-height:280px;
  margin:32px 0;
}
html.ads-on .vsh-ad-side,
html.ads-on .vsh-ad-anchor,
html.ads-on .vsh-ad-rail{display:none}
html.ads-on .vsh-ad-below,
html.ads-on .ad-slot-bottom.vsh-ad,
html.ads-on .ad-banner.vsh-ad,
html.ads-on .ad-bottom.vsh-ad{
  display:block !important;
  position:relative !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  height:auto !important;
  min-height:100px !important;
  margin:36px 0 28px !important;
  flex:0 0 auto !important;
  visibility:visible !important;
  grid-column:1 / -1;
}
@media (min-width:1024px){
  html.ads-on body.vsh-with-side{padding-right:184px}
  html.ads-on body.vsh-with-side .vsh-ad-side{
    display:block;
    position:fixed;
    top:84px;
    right:12px;
    width:160px;
    min-height:600px;
    margin:0;
    z-index:25;
    visibility:visible;
  }
  html.ads-on body.vsh-with-anchor .vsh-ad-anchor{
    display:none !important;
    height:0 !important;
    min-height:0 !important;
  }
}
@media (min-width:1500px){
  html.ads-on body.vsh-with-side{padding-right:328px}
  html.ads-on body.vsh-with-side .vsh-ad-side{width:300px}
}
@media (max-width:1023px){
  html.ads-on body.vsh-with-anchor{padding-bottom:108px}
  html.ads-on body.vsh-with-anchor .vsh-ad-anchor{
    display:block;
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    width:auto;
    min-height:90px;
    margin:0;
    padding:6px 8px calc(6px + env(safe-area-inset-bottom));
    background:#06101c;
    z-index:35;
    visibility:visible;
  }
  html.ads-on .vsh-ad-side{display:none !important;min-height:0 !important;height:0 !important}
}
html.ads-on .vsh-play-wrap{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:16px;
  align-items:start;
  margin:8px 0 20px;
}
html.ads-on .vsh-play-main{min-width:0;position:relative;z-index:1}
@media (max-width:1279px){
  html.ads-on .vsh-ad-rail,
  html.ads-on .ad-column.vsh-ad,
  html.ads-on .ad-rail.vsh-ad,
  html.ads-on .ad-slot-side.vsh-ad,
  html.ads-on .ad-slot-left.vsh-ad,
  html.ads-on .ad-slot-right.vsh-ad{
    display:none !important;
    width:0 !important;
    min-width:0 !important;
    min-height:0 !important;
    flex:0 0 0 !important;
  }
  html.ads-on body.vsh-big-play #app{
    grid-template-columns:minmax(0,1fr) !important;
  }
}
@media (min-width:1280px){
  html.ads-on .vsh-play-wrap{
    grid-template-columns:160px minmax(0,1fr) 160px;
    grid-template-areas:"left main right" "below below below";
  }
  html.ads-on .vsh-play-wrap > .vsh-ad-rail-left{grid-area:left}
  html.ads-on .vsh-play-wrap > .vsh-play-main{grid-area:main}
  html.ads-on .vsh-play-wrap > .vsh-ad-rail-right{grid-area:right}
  html.ads-on .vsh-play-wrap > .vsh-ad-below{grid-area:below}
  html.ads-on .vsh-ad-rail,
  html.ads-on .ad-column.vsh-ad,
  html.ads-on .ad-rail.vsh-ad,
  html.ads-on .ad-slot-side.vsh-ad,
  html.ads-on .ad-slot-left.vsh-ad,
  html.ads-on .ad-slot-right.vsh-ad{
    display:flex !important;
    flex-direction:column;
    width:160px !important;
    min-width:160px !important;
    max-width:160px !important;
    min-height:600px !important;
    height:auto !important;
    flex:0 0 160px !important;
    position:sticky;
    top:12px;
    align-self:start;
    overflow:hidden;
    visibility:visible !important;
    z-index:2;
    margin:0 !important;
  }
  html.ads-on body.vsh-big-play #app{
    grid-template-columns:160px minmax(0,1fr) 160px !important;
  }
  html.ads-on body.vsh-about-ads{padding-left:176px;padding-right:176px}
  html.ads-on body.vsh-about-ads .vsh-ad-rail{position:fixed !important;top:72px !important}
  html.ads-on body.vsh-about-ads .vsh-ad-rail-left{left:8px !important;right:auto !important}
  html.ads-on body.vsh-about-ads .vsh-ad-rail-right{right:8px !important;left:auto !important}
}
@media (min-width:1680px){
  html.ads-on .vsh-play-wrap{grid-template-columns:300px minmax(0,1fr) 300px}
  html.ads-on .vsh-ad-rail,
  html.ads-on .ad-column.vsh-ad,
  html.ads-on .ad-rail.vsh-ad,
  html.ads-on .ad-slot-side.vsh-ad,
  html.ads-on .ad-slot-left.vsh-ad,
  html.ads-on .ad-slot-right.vsh-ad{
    width:300px !important;
    min-width:300px !important;
    max-width:300px !important;
    flex-basis:300px !important;
  }
  html.ads-on body.vsh-big-play #app{
    grid-template-columns:300px minmax(0,1fr) 300px !important;
  }
  html.ads-on body.vsh-about-ads{padding-left:316px;padding-right:316px}
}
html.ads-on .vsh-ad .ad-slot:before,
html.ads-on .ad-slot.vsh-ad:before,
html.ads-on .vsh-ad:before{content:none !important}
html.ads-on body.vsh-fs-ads{--vsh-rail-w:0px;--vsh-below-h:100px}
html.ads-on body.vsh-fs-ads .vsh-ad-below{
  position:fixed !important;
  left:0;
  right:0;
  bottom:0;
  z-index:9;
  margin:0 !important;
  height:100px !important;
  min-height:100px !important;
  max-height:100px !important;
  background:#06101c;
}
html.ads-on body.vsh-fs-ads :is(#view,#frame,canvas,.viewport,.view,.ui,#hud,#menu,#boot,#title,#cine,#ui,#flash,#letterbox,#map-wrap,#app){
  top:0 !important;
  left:var(--vsh-rail-w) !important;
  right:auto !important;
  bottom:auto !important;
  width:calc(100vw - (2 * var(--vsh-rail-w))) !important;
  height:calc(100dvh - var(--vsh-below-h)) !important;
  max-width:none !important;
  max-height:none !important;
}
html.ads-on body.vsh-fs-ads #touch{
  top:auto !important;
  left:var(--vsh-rail-w) !important;
  right:var(--vsh-rail-w) !important;
  bottom:var(--vsh-below-h) !important;
  width:auto !important;
  height:auto !important;
}
@media (min-width:1280px){
  html.ads-on body.vsh-fs-ads{--vsh-rail-w:160px}
  html.ads-on body.vsh-fs-ads .vsh-ad-rail{
    position:fixed !important;
    top:0 !important;
    left:auto !important;
    bottom:auto !important;
    height:calc(100dvh - var(--vsh-below-h)) !important;
    min-height:0 !important;
    max-height:none !important;
    z-index:8;
  }
  html.ads-on body.vsh-fs-ads .vsh-ad-rail-left{left:0 !important;right:auto !important}
  html.ads-on body.vsh-fs-ads .vsh-ad-rail-right{right:0 !important;left:auto !important}
}
@media (min-width:1680px){
  html.ads-on body.vsh-fs-ads{--vsh-rail-w:300px}
}
body.vsh-game-play .vsh-ad-anchor,
body.vsh-about-ads .vsh-ad-anchor,
body.vsh-fs-ads .vsh-ad-anchor{display:none !important}
/* Sky Strike sets #stage to nearly the full viewport and centers it.
   With the below-game slot reserved, that box crosses the banner.
   Shrink only that stage, and only on the wide landscape layout. */
@media (min-width:1024px) and (orientation:landscape){
  html.ads-on #app:has(#ad-slot-bottom) #stage{
    height:min(calc(100dvh - 188px),760px) !important;
    max-height:calc(100dvh - 188px) !important;
    width:min(42vw, calc(min(calc(100dvh - 188px),760px) * .5625)) !important;
  }
  html.ads-on #ad-slot-bottom.vsh-ad{
    flex:0 0 100px !important;
    height:100px !important;
    min-height:100px !important;
    max-height:100px !important;
    margin:8px 0 0 !important;
  }
}

/* games hub: readable heading + genre chips on any page background (2026-10-15) */
.vsh-hub-first .block-head{background:#0b1726;border-radius:14px;padding:14px 18px;margin-bottom:12px}
.vsh-hub-first .block-head h1{color:#f2fbff}.vsh-hub-first .block-head h2{color:#7fe9ff}.vsh-hub-first .block-head .lede{color:#c9dde6}
.vsh-hub-first .vsh-filters{background:#0b1726;border-radius:999px;padding:6px}
.vsh-hub-first .vsh-filters button{color:#e7f6fb;border-color:rgba(34,231,255,.55)}

/* vsh-fix: hamburger contrast */
header.site-header .menu-btn,#nav-toggle{background:#ffffff!important;color:#0b1220!important;border:1px solid #0b1220!important;font-size:1.35rem!important;font-weight:700;line-height:1;opacity:1!important}
:root[data-theme=dark] header.site-header .menu-btn,:root[data-theme=dark] #nav-toggle{background:#f1f5f9!important;color:#020617!important;border-color:#f1f5f9!important}
header.site-header .menu-btn:focus-visible{outline:3px solid #facc15;outline-offset:2px}

/* ===== 2026-10-20 QA fixes ===== */
/* Skip link: visually hidden until keyboard focus */
.skip,.skip-link{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;padding:0!important}
.skip:focus,.skip-link:focus,.skip:focus-visible,.skip-link:focus-visible{left:12px!important;top:12px!important;width:auto!important;height:auto!important;overflow:visible!important;clip:auto;clip-path:none;padding:8px 12px!important;z-index:10000}
/* Desktop header: logo + buttons on row 1, full menu on row 2 (no overflow, no squashed labels) */
@media (min-width:901px){
  header.site-header .hbar{flex-wrap:wrap;row-gap:0}
  header.site-header #site-nav{order:10;flex:1 0 100%;flex-wrap:wrap;justify-content:center;gap:2px 4px;padding:0 0 8px}
  header.site-header #site-nav a{white-space:nowrap;padding:6px 10px;font-size:.9rem;min-height:36px;display:inline-flex;align-items:center}
  header.site-header #ss-open{margin-left:auto}
}
/* Games pill highlighted only on games pages; plain menu item elsewhere */
#site-nav a.nav-games{background:transparent;color:#e7f6fb!important;font-weight:600;min-height:36px;padding:6px 10px}
#site-nav a.nav-games:hover{background:rgba(34,231,255,.12)}
#site-nav a.nav-games[aria-current="page"],body[data-tool-cat="games"] #site-nav a.nav-games,body.vsh-game-play #site-nav a.nav-games{background:#22e7ff;color:#04121c!important;font-weight:800}
header.site-header a.nav-games-bar{background:transparent;color:#e7f6fb!important;border:1.5px solid rgba(34,231,255,.55)}
body[data-tool-cat="games"] header.site-header a.nav-games-bar,body.vsh-game-play header.site-header a.nav-games-bar,header.site-header a.nav-games-bar[aria-current="page"]{background:#22e7ff;color:#04121c!important;border-color:#22e7ff}
@media (max-width:900px){header.site-header #site-nav a.nav-games{color:#e7f6fb!important}}
/* "AI tools" readable on the dark header everywhere (books page included) */
.site-header #site-nav a.nav-ai,.top-nav a.nav-ai{color:#f5e9ff!important;background:rgba(192,38,211,.22)!important;border:1px solid rgba(232,121,249,.55)!important}
/* Travelpayouts widgets: placeholder while loading, dropdowns not clipped */
.tp-widget,.tp-slot,[data-tp-widget]{overflow:visible!important;position:relative}
[data-tp-widget]{min-height:220px;background-image:linear-gradient(100deg,rgba(127,127,127,.06) 30%,rgba(127,127,127,.16) 50%,rgba(127,127,127,.06) 70%);background-size:220% 100%;animation:vshSk 1.4s linear infinite}
[data-tp-widget]:has(iframe),[data-tp-widget]:has(script~div),[data-tp-widget]:has(script~form){background-image:none;animation:none}
@keyframes vshSk{0%{background-position:120% 0}100%{background-position:-120% 0}}
@media (prefers-reduced-motion:reduce){[data-tp-widget]{animation:none}}
/* Hindi label on news cards */
.vsh-lang-badge{display:inline-block;font-size:.72rem;font-weight:700;line-height:1;padding:3px 7px;border-radius:999px;background:#fff3e0;color:#9a3412;border:1px solid #fdba74;margin:0 6px 4px 0;vertical-align:middle}
@media (min-width:901px){
  header.top{flex-wrap:wrap!important;row-gap:4px}
  header.top .top-nav{order:10;flex:1 0 100%!important;display:flex!important;flex-wrap:wrap!important;justify-content:center;gap:2px 8px;margin:0!important}
  header.top .top-nav a{white-space:nowrap;font-size:.8rem;display:inline-flex;align-items:center;min-height:34px}
}
/* 2026-10-20: league/match labels wrap instead of truncating */
.ls-gleague,.ls-gname,.ls-league{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;line-height:1.3}

/* VSH logo v3 (2026-10-20) */
.logo .vsh-hex{display:none}
.logo::before{content:"";flex:0 0 auto;width:36px;height:36px;border-radius:9px;background:#04061a url(/brand/vsh-mark-64.webp) center/cover no-repeat;box-shadow:0 0 10px rgba(0,230,220,.35)}
.logo:has(img)::before{display:none}
