/* hub-v2.css — ЧЕРНОВИК, сверить с продом (/games/games.css?v=4, /games/hub-catalog.css?v=1).
   Подключается только при ?hub=v2 / body.hub-v2. UTF-8. */
body.hub-v2{background:#faf9f6}
.hub-v2 .hub-grid{display:grid;grid-template-columns:1fr;gap:20px;margin:24px 0}
@media (min-width:768px){.hub-v2 .hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1200px){.hub-v2 .hub-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.hub-v2 .hub-card{min-width:0;display:flex;flex-direction:column;border-radius:26px;overflow:hidden;background:#fff;border:1px solid #e8e4dc;color:inherit;text-decoration:none;transition:transform .2s}
.hub-v2 .hub-card:hover{transform:translateY(-4px)}
.hub-v2 .hub-card:focus-visible{outline:3px solid #50756f;outline-offset:3px}
.hub-v2 .hub-card img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.hub-v2 .hub-card-copy{padding:20px 24px 24px;display:flex;flex-direction:column;gap:10px;flex:1}
.hub-v2 .hub-card h2{font-size:22px;line-height:1.2;margin:0}
.hub-v2 .hub-card p{font-size:17px;line-height:1.45;margin:0}
.hub-v2 .hub-cta{margin-top:auto;align-self:flex-start;display:inline-flex;align-items:center;min-height:44px;min-width:44px;padding:0 20px;border-radius:999px;background:#50756f;color:#fff;font-size:17px;font-weight:700}
.hub-v2 main a:not(.hub-card){color:#C8202E}
/* #F84953 не используется: в сетке 5 равных CTA, главного нет. */
.hub-v2 main,.hub-v2 .hub-grid{max-width:100%;overflow-x:clip}
@media (prefers-reduced-motion:reduce){
  .hub-v2 *,.hub-v2 *::before,.hub-v2 *::after{animation:none!important;transition:none!important}
  .hub-v2 .hub-card:hover,.game-card:hover{transform:none}
}
/* bake 28.10: флаг — без класса hub-v2 новый вид скрыт */
.hub-v2-only{display:none}
body.hub-v2 .hub-v2-only{display:block}
body.hub-v2 .hub-v2-only.hub-grid{display:grid}
body.hub-v2 header.shell.top,body.hub-v2 section.game-cards,body.hub-v2 section.hub-catalog{display:none}
/* A5: reduced motion для games.css / hub-catalog.css (и без флага) */
@media (prefers-reduced-motion:reduce){
  .game-card,.catalog-card,.pet-orbit,.puzzle-art,.puzzle-art *,.calm-icon,.small-note{animation:none!important;transition:none!important}
  .game-card:hover,.catalog-card:hover{transform:none!important}
}

/* --- гостевая нав (SEO 28.10) --- */
body.hub-v2 .sg-site-header{position:relative;z-index:50;background:#faf9f6}
body.hub-v2 .sg-site-header .sg-in{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:1244px;margin:0 auto;padding:12px 16px}
body.hub-v2 .sg-logo{display:block;flex:0 0 auto;width:9.25rem;min-width:9.25rem;overflow:hidden}
body.hub-v2 .sg-logo img{display:block;width:100%;height:auto}
body.hub-v2 .sg-nav{display:none;align-items:center;gap:8px;flex:0 0 auto}
body.hub-v2 .sg-nav a{flex:0 0 auto;white-space:nowrap;min-height:44px;display:inline-flex;align-items:center;padding:0 10px;font-size:16px;font-weight:700;color:#1a1a1a;text-decoration:none}
body.hub-v2 .sg-nav a[aria-current="page"]{color:#50756f}
body.hub-v2 .sg-nav-actions{display:flex;align-items:center;gap:8px}
body.hub-v2 .sg-login{display:none;align-items:center;min-height:44px;min-width:44px;padding:12px 20px;border-radius:999px;background:linear-gradient(110deg,#f84953,#ff9b73);color:#fff!important;font-size:16px;font-weight:700;text-decoration:none;box-shadow:0 10px 20px rgba(248,73,83,.25)}
body.hub-v2 .sg-menu-button{display:inline-flex;align-items:center;gap:8px;min-height:44px;min-width:44px;padding:8px 16px;border:0;border-radius:999px;background:#fff;font-size:16px;font-weight:700;color:#111;box-shadow:0 8px 20px rgba(0,0,0,.08);cursor:pointer}
body.hub-v2 .sg-burger{display:flex;flex-direction:column;gap:3px}
body.hub-v2 .sg-burger i{display:block;width:16px;height:2px;background:#111;border-radius:1px}
body.hub-v2 .sg-menu-backdrop{display:block;position:fixed;inset:0;z-index:80;border:0;padding:0;background:rgba(0,0,0,.3);cursor:pointer}
body.hub-v2 .sg-menu-panel{display:flex;flex-direction:column;gap:4px;position:fixed;z-index:90;top:5.25rem;left:0;right:0;background:#fff;padding:12px;box-shadow:0 25px 50px rgba(0,0,0,.25)}
body.hub-v2 .sg-menu-panel a{min-height:44px;display:flex;align-items:center;padding:10px 14px;border-radius:12px;font-size:16px;font-weight:700;color:#1a1a1a;text-decoration:none}
body.hub-v2 .sg-menu-panel a[aria-current="page"]{background:#eef3f1;color:#50756f}
body.hub-v2 .sg-login--panel{display:flex!important;justify-content:center;margin-top:4px}
body.hub-v2 .sg-header-open{z-index:100}
@media (min-width:1100px){
  body.hub-v2 .sg-logo{width:12.5rem;min-width:12.5rem}
  body.hub-v2 .sg-nav{display:flex}
  body.hub-v2 .sg-login{display:inline-flex}
  body.hub-v2 .sg-menu-button,body.hub-v2 .sg-menu-backdrop,body.hub-v2 .sg-menu-panel{display:none!important}
}
@media (prefers-reduced-motion:reduce){
  body.hub-v2 .sg-menu-backdrop,body.hub-v2 .sg-menu-panel{transition:none}
}

/* bake fix: [hidden] must beat display:flex/block */
body.hub-v2 .sg-menu-backdrop[hidden],body.hub-v2 .sg-menu-panel[hidden]{display:none!important}
