/* The main page (Owl). The owl keeps watch over floating windows at night;
   below it the games are those windows. Each window keeps its game's own art
   and colour: the colour glows around the frame and fills its button, so a
   new game adds a window without touching the brand. */
.hub section{padding-block:0}

/* ── the owl at its desk ──────────────────────────────────────────────── */
.hub-hero,.hub-close{position:relative;isolation:isolate;display:flex;align-items:center}
.hub .hub-hero{min-height:min(84vh,720px);margin-top:-66px;padding-block:clamp(120px,14vw,170px) clamp(40px,6vw,72px)}
.hub-art{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:72% 50%}
/* Night on the type's side and along the seam into the page; the owl and
   its windows on the right stay clear. */
.hub-hero::before,.hub-close::before{content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(90deg,var(--paper) 0,rgba(var(--paper-rgb),.92) 30%,rgba(var(--paper-rgb),.3) 56%,rgba(var(--paper-rgb),0) 72%),
             linear-gradient(0deg,var(--paper) 0,rgba(var(--paper-rgb),0) 24%)}
.hub-copy{width:100%}
.hub-copy > *{max-width:560px}
.hub-hero .d1{margin:14px 0 18px;text-wrap:balance}
.hub-hero .lede{margin:0}
.hub-acts{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}

/* ── the windows ──────────────────────────────────────────────────────── */
.hub-games-wrap{margin-top:clamp(28px,5vw,56px)}
.hub-games-h{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:12px 32px;margin-bottom:26px}
.hub-games-h p{max-width:42ch;margin:0;color:var(--ink-2)}
.hub-games{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}
.hg{--glow:rgba(240,181,74,.45);position:relative;overflow:hidden;isolation:isolate;display:flex;flex-direction:column;justify-content:flex-end;min-height:480px;padding:24px;border-radius:32px;color:#fff;background:#0b1114;
  box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.26),0 0 0 6px var(--paper),0 0 60px -10px var(--glow),0 30px 70px -36px var(--glow)}
.hg>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform .6s var(--ease)}
.hg::after{content:"";position:absolute;inset:0;z-index:-1}
.hg-as{--glow:rgba(232,137,44,.6)}
.hg-as>img{object-position:70% 20%}
.hg-as::after{background:linear-gradient(180deg,rgba(8,12,14,0) 22%,rgba(8,12,14,.93) 74%)}
.hg-wo{--glow:rgba(140,185,235,.55);background:#10233d}
.hg-wo>img{object-position:60% 50%}
.hg-wo::after{background:linear-gradient(180deg,rgba(10,22,40,0) 26%,rgba(10,22,40,.92) 76%)}
.hg-ks{--glow:rgba(217,96,76,.5);background:#12192e}
.hg-ks>img{object-position:78% 20%}
.hg-ks::after{background:linear-gradient(180deg,rgba(11,15,28,0) 14%,rgba(11,15,28,.55) 40%,rgba(11,15,28,.95) 66%)}
.hg-ks .hg-tag{background:#d9604c;color:#1b0906}
.hg-ks .hg-b1{background:#e7826f;color:#1b0906}
.hg-bcn{--glow:rgba(247,154,58,.5);background:#0a1430}
.hg-bcn>img{object-position:50% 30%}
.hg-bcn::after{background:linear-gradient(180deg,rgba(10,20,48,0) 30%,rgba(10,20,48,.6) 54%,rgba(10,20,48,.96) 74%)}
.hg-bcn .hg-tag{background:#f79a3a;color:#1f0f02}
.hg-bcn .hg-b1{background:#ffb25c;color:#1f0f02}
.hg-aos{--glow:rgba(229,72,58,.5);background:#0a0806}
.hg-aos>img{object-position:50% 40%}
.hg-aos::after{background:linear-gradient(180deg,rgba(10,8,6,0) 30%,rgba(10,8,6,.6) 54%,rgba(10,8,6,.96) 74%)}
.hg-aos .hg-tag{background:#e5483a;color:#1b0503}
.hg-aos .hg-b1{background:#f39a2b;color:#1c0e02}
.hg-soon{--glow:rgba(170,180,210,.32);background:var(--surface)}
.hg-soon>img{object-position:60% 40%}
.hg-soon::after{background:linear-gradient(180deg,rgba(14,19,34,0) 36%,rgba(14,19,34,.94) 78%)}
.hg-tag{position:absolute;top:22px;left:22px;font:600 11px/1 var(--f-mono);letter-spacing:.1em;text-transform:uppercase;padding:7px 10px;border-radius:999px;background:#e8892c;color:#1b1206}
.hg h3{margin:0 0 6px;font:800 28px/1.05 var(--f-display);letter-spacing:-.025em;color:#fff}
.hg p{margin:0 0 14px;max-width:44ch;color:rgba(255,255,255,.84);font-size:15px}
.hg-pts{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 18px;padding:0;list-style:none}
.hg-pts li{font-size:12.5px;padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.13)}
.hg-acts{display:flex;flex-wrap:wrap;gap:10px}
.hg-acts a{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 18px;border-radius:14px;font-weight:600;font-size:15px;text-decoration:none}
/* each window in its own game's colour, not the brand's */
.hg-b1{background:var(--ember-fill);color:var(--on-ember)}
.hg-as .hg-b1{background:#e8892c;color:#1b1206}
.hg-wo .hg-b1{background:#9CC3EE;color:#0A1A2E}
.hg-b1:hover{filter:brightness(1.07)}
.hg-b2{border:1px solid rgba(255,255,255,.38);color:#fff}
.hg-b2:hover{background:rgba(255,255,255,.08)}
@media (prefers-reduced-motion:no-preference){.hg:hover>img{transform:scale(1.03)}}

/* ── how it works ─────────────────────────────────────────────────────── */
.hub .hub-how{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:clamp(48px,7vw,80px)}
.hub-how div{padding:22px;border-radius:22px;background:var(--surface)}
.hub-how i{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--ember-tint);color:var(--ember-ink);font:800 16px/1 var(--f-display);font-style:normal}
.hub-how b{display:block;margin:14px 0 6px;font:700 19px/1.2 var(--f-display);color:var(--ink)}
.hub-how span{font-size:15px;color:var(--ink-2)}

/* ── the morning after ────────────────────────────────────────────────── */
.hub .hub-close{min-height:clamp(340px,40vw,460px);margin-top:clamp(48px,7vw,88px);padding-block:56px}
.hub-close .hub-art{object-position:85% 50%}
.hub-close::before{background:linear-gradient(90deg,var(--paper) 0,rgba(var(--paper-rgb),.9) 30%,rgba(var(--paper-rgb),0) 62%),
  linear-gradient(180deg,var(--paper),rgba(var(--paper-rgb),0) 18%,rgba(var(--paper-rgb),0) 82%,var(--paper))}
.hub-close .d2{max-width:14ch}
.hub-close .t1{margin-top:14px;max-width:40ch;color:var(--ink-2)}

/* three games and the empty window: it takes the row under them */
.hg-soon{grid-column:1/-1;min-height:300px}
@media (max-width:980px){
  .hub-games{grid-template-columns:1fr 1fr}
  .hg-ks{grid-column:span 2;min-height:420px}
}
@media (max-width:720px){
  .hub .hub-hero{min-height:0;padding-top:min(86vw,400px)}
  .hub-hero .hub-art{height:min(92vw,460px);object-position:78% 50%}
  .hub-hero::before{background:linear-gradient(0deg,var(--paper) 0,var(--paper) 40%,rgba(var(--paper-rgb),0) 70%)}
  .hub-games{grid-template-columns:1fr}
  .hg-soon,.hg-ks{grid-column:auto}
  .hg{min-height:400px;padding:20px}
  .hg h3{font-size:24px}
  .hub .hub-how{grid-template-columns:1fr}
  .hub .hub-close{padding-top:min(48vw,240px);align-items:flex-end}
  .hub-close .hub-art{height:min(56vw,280px);object-position:80% 50%}
  .hub-close::before{background:linear-gradient(0deg,var(--paper) 0,var(--paper) 46%,rgba(var(--paper-rgb),0) 78%)}
}
