/* The landing page's sky (overseer-sky.js): the hero is the view from the ground of any Hawkes Gen world, dark like the
   game, and the page descends from it into the light. */

.sky { position: relative; min-height: max(640px, 100svh); max-height: 980px; overflow: hidden; background: #03050c; color: #eaf3ff; isolation: isolate; }
.sky canvas { position: absolute; inset: 0; display: block; z-index: 0; }
.sky::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 72px; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, rgba(247,248,251,0), var(--bg)); }
.sky-inner { position: relative; z-index: 2; min-height: inherit; max-height: inherit; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--sky-top, 120px) 24px max(15vh, 96px); max-width: 1180px; margin: 0 auto; box-sizing: border-box; }
.sky-eyebrow { font: 500 11.5px/1 var(--mono); letter-spacing: .28em; text-transform: uppercase; color: #8fd8ff; margin-bottom: 18px; }
.sky h1 { font: 700 clamp(40px, 6.4vw, 84px)/0.98 var(--sans); letter-spacing: -0.035em; color: #fff; margin: 0; max-width: 11em; text-shadow: 0 2px 40px rgba(3,5,12,.6); }
.sky h1 em { font-style: normal; color: #bfe9ff; }
.sky .lede { font-size: clamp(15px, 1.5vw, 18px); line-height: 1.55; color: #cfe0f3; max-width: 34em; margin: 20px 0 26px; }
.sky-wish { display: flex; gap: 8px; max-width: 540px; padding: 6px; border-radius: 16px; background: rgba(8,16,34,.62); border: 1px solid rgba(143,216,255,.38); backdrop-filter: blur(10px); box-shadow: 0 0 0 4px rgba(143,216,255,.06), 0 20px 60px rgba(0,0,0,.35); }
.sky-wish:focus-within { border-color: #8fd8ff; box-shadow: 0 0 0 4px rgba(143,216,255,.16), 0 20px 60px rgba(0,0,0,.35); }
.sky-wish input { flex: 1; min-width: 0; min-height: 44px; background: transparent; border: 0; outline: 0; color: #fff; font: 500 16px var(--sans); padding: 12px 14px; }
.sky-wish input::placeholder { color: #a9bdd6; }
.sky-wish button { flex: none; border: 0; border-radius: 11px; padding: 0 20px; min-height: 44px; font: 600 14.5px var(--sans); color: #05101f; background: linear-gradient(180deg, #ffffff, #bfe9ff); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.sky-wish button:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(143,216,255,.45); }
.sky-label { display: block; font: 500 12.5px var(--sans); color: #b4c8e2; margin: 0 0 8px 4px; }
.sky-reply { margin: 12px 0 0 4px; font: 500 14px var(--sans); color: #bfe9ff; opacity: 0; transform: translateY(4px); transition: opacity .5s, transform .5s; }
.sky-reply.on { opacity: 1; transform: none; }
.sky-reply a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.5); }
.sky .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; align-items: center; }
.sky .btn-play { background: #fff; color: #05101f; border-color: #fff; }
.sky .btn-play:hover { background: #bfe9ff; border-color: #bfe9ff; color: #05101f; }
.sky .btn-ghostlight { background: transparent; color: #eaf3ff; border-color: rgba(234,243,255,.4); }
.sky .btn-ghostlight:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.sky .fine { color: #aebfd6; max-width: 46em; }
.sky .fine a { color: #bfe9ff; }

.sky-say { position: absolute; z-index: 2; transform: translateX(-50%); width: min(80vw, 360px); text-align: center; font: italic 500 clamp(14px, 1.3vw, 17px)/1.4 Georgia, 'Times New Roman', serif; color: #dff3ff; text-shadow: 0 0 18px rgba(143,216,255,.7); opacity: 0; transition: opacity .6s; pointer-events: none; }
.sky-say.on { opacity: .95; }

/* a thing that was just beamed in: it assembles from the ground up under the light */
.sky-cards { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.sky-thing { position: absolute; transform: translate(-50%, -100%); display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: center; max-width: 220px; padding: 10px 14px 10px 10px; border-radius: 10px; background: rgba(8,16,34,.78); border: 1px solid rgba(143,216,255,.6); box-shadow: 0 0 30px rgba(143,216,255,.35); color: #fff; clip-path: inset(100% 0 0 0); animation: sky-assemble 1.4s .45s cubic-bezier(.2,.7,.2,1) forwards; transition: opacity .7s, filter .7s; }
.sky-thing i { position: absolute; left: 0; right: 0; height: 2px; background: #fff; box-shadow: 0 0 12px 3px #8fd8ff; top: 100%; animation: sky-scan 1.4s .45s cubic-bezier(.2,.7,.2,1) forwards; }
.sky-thing b { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font: 700 17px var(--sans); color: #05101f; background: linear-gradient(135deg, #fff, #8fd8ff); }
.sky-thing span { font: 500 13.5px/1.25 var(--sans); overflow-wrap: anywhere; }
.sky-thing.still { animation: none; clip-path: none; }
.sky-thing.still i { display: none; }
.sky-thing.gone { opacity: 0; filter: blur(6px); }
@keyframes sky-assemble { from { clip-path: inset(100% 0 0 0); filter: brightness(3); } to { clip-path: inset(0 0 0 0); filter: brightness(1); } }
@keyframes sky-scan { from { top: 100%; opacity: 1; } to { top: 0; opacity: 0; } }

/* the page's header floats over the sky, then settles into the light page */
body.landing .hg-navbar { position: fixed; left: 0; right: 0; transition: background .3s, border-color .3s, backdrop-filter .3s; }
body.landing.at-sky .hg-navbar { background: rgba(3,5,12,.35); backdrop-filter: blur(10px); border-bottom-color: rgba(143,216,255,.14); }
body.landing.at-sky .hg-brand, body.landing.at-sky .hg-brand .wordmark { color: #fff; }
body.landing.at-sky .hg-nav-links a { color: #bdd0e6; }
body.landing.at-sky .hg-nav-links a:hover, body.landing.at-sky .hg-nav-links a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.1); }
body.landing.at-sky .hg-nav-actions .btn-ghost { color: #dff3ff; }
body.landing.at-sky .hg-nav-actions .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
body.landing.at-sky .hg-nav-actions .btn-primary { background: #fff; border-color: #fff; color: #05101f; }
body.landing.at-sky .site-menu-btn { color: #fff; border-color: rgba(255,255,255,.3); }

/* how a thing appears: the four steps, told in the Overseer's terms */
.descent .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.descent .step { position: relative; padding: 22px 20px 20px; border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); }
.descent .step::before { counter-increment: s; content: counter(s); position: absolute; top: -14px; left: 18px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--mono); color: #05101f; background: linear-gradient(135deg, #fff, #8fd8ff); box-shadow: 0 0 0 4px var(--bg), 0 0 18px rgba(143,216,255,.8); }
.descent .step b { display: block; font: 600 16px/1.3 var(--sans); color: var(--heading); margin-bottom: 6px; }
.descent .step span { font-size: 14px; color: var(--fg-2); }
@media (max-width: 900px) { .descent .steps { grid-template-columns: 1fr 1fr; row-gap: 26px; } }
@media (max-width: 560px) { .descent .steps { grid-template-columns: 1fr; } }

/* later sections arrive: a short light sweep, then they are there */
.js .beam-in { opacity: 0; transform: translateY(18px); filter: blur(3px); transition: opacity .8s ease, transform .8s ease, filter .8s ease; }
.js .beam-in.in { opacity: 1; transform: none; filter: none; }

@media (max-width: 820px) {
  /* on a phone the hero grows with its text and keeps the top (--sky-top, set by overseer-sky.js) for the Overseer */
  .sky { max-height: none; }
  .sky-inner { max-height: none; padding-bottom: 96px; justify-content: flex-start; }
  .sky-eyebrow { display: none; }
  .sky h1 { max-width: 9em; }
  .sky-wish button { padding: 0 14px; }
}
/* a phone's first screen holds all of it: the Overseer, the headline, the wish box, its card and both buttons */
@media (max-width: 560px) {
  .sky-inner { padding-left: 16px; padding-right: 16px; padding-bottom: 24px; }
  .sky h1 { font-size: 38px; }
  .sky .lede { display: none; }
  .sky h1 { margin-bottom: 18px; }
  .sky .actions { margin-top: 16px; gap: 10px; }
  .sky .actions .btn-lg { padding: 12px 18px; flex: 1 1 0; min-width: 0; }
  .sky .fine { font-size: 12px; line-height: 1.45; margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .sky-thing, .sky-thing i { animation: none; clip-path: none; }
  .js .beam-in { opacity: 1; transform: none; filter: none; transition: none; }
  .sky-reply, .sky-say { transition: none; }
}

/* /games: the same sky, with each featured game as a planet orbiting in front of it */
.sky-games { min-height: 0; max-height: none; }
.sky-games .sky-inner { min-height: 0; max-height: none; justify-content: flex-start; padding-bottom: 88px; }
.sky-games h1 { font-size: clamp(40px, 5.4vw, 72px); }
.sky-games .lede { margin-bottom: 30px; max-width: 30em; }
.planets { display: flex; flex-wrap: wrap; gap: 28px 34px; max-width: 660px; --pd: 132px; }
.planet-wrap { width: 168px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.orbit { padding: 10px; animation: planet-orbit 22s linear infinite; animation-delay: calc(var(--i, 0) * -7s); }
.planet { position: relative; display: grid; place-items: center; width: var(--pd); height: var(--pd); padding: 0; border: 0; border-radius: 50%; overflow: hidden; cursor: pointer; color: #fff;
  background: radial-gradient(circle at 35% 30%, hsl(var(--hue) 70% 62%), hsl(var(--hue) 60% 30%) 55%, hsl(var(--hue) 55% 12%));
  box-shadow: 0 0 0 1px rgba(143,216,255,.75), 0 0 26px 3px rgba(143,216,255,.38), 0 0 70px 8px hsl(var(--hue) 80% 60% / .22); transition: transform .25s, box-shadow .25s; }
.planet:hover, .planet:focus-visible { transform: scale(1.05); box-shadow: 0 0 0 2px #fff, 0 0 34px 6px rgba(143,216,255,.6), 0 0 80px 10px hsl(var(--hue) 80% 60% / .35); outline: 0; }
.planet img { width: 100%; height: 100%; object-fit: cover; display: block; }
.planet .glyph { font: 700 46px/1 var(--sans); text-shadow: 0 2px 14px rgba(0,0,0,.4); }
.planet .rim { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.22), rgba(255,255,255,0) 40%), radial-gradient(circle at 50% 50%, rgba(3,5,12,0) 58%, rgba(143,216,255,.35) 100%); box-shadow: inset -16px -12px 30px rgba(3,5,12,.72); }
.planet-name { font: 600 16px/1.2 var(--sans); color: #fff; }
.planet-live, .planet-by { font: 500 12px/1.3 var(--sans); color: #8aa4c4; min-height: 16px; }
.planet-blurb { font: 400 12.5px/1.4 var(--sans); color: #bdd0e6; min-height: 2.8em; }
.planet-wrap .actions { margin-top: 4px; gap: 8px; }
.planet-wrap .live-now { display: inline-flex; align-items: center; gap: 6px; color: #b8f5cf; font-weight: 600; }
.planet-wrap .live-now i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.3); }
.sky-count { margin-top: 26px; font: 500 13px var(--sans); color: #8fd8ff; min-height: 18px; }
.gallery-title { font: 700 24px/1.2 var(--sans); margin: 0; }
@keyframes planet-orbit { 0% { transform: translate(0, 0); } 25% { transform: translate(7px, -6px); } 50% { transform: translate(0, -10px); } 75% { transform: translate(-7px, -6px); } 100% { transform: translate(0, 0); } }
@media (max-width: 820px) {
  .sky-games .sky-inner { padding-bottom: 72px; }
  .planets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 6px; --pd: 88px; max-width: none; }
  .planet-wrap { width: auto; min-width: 0; }
  .orbit { padding: 6px; }
  .planet .glyph { font-size: 32px; }
  .planet-name { font-size: 13.5px; }
  .planet-blurb { display: none; }
  .planet-wrap .actions { flex-direction: column; width: 100%; gap: 6px; }
  .planet-wrap .actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .orbit { animation: none; }
  .planet { transition: none; }
}

/* keyboard focus: a ring on everything the sky offers (the wish box shows it on its frame) */
.sky a:focus-visible, .sky button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px #0b66d6; }
.sky-wish:focus-within { outline: 3px solid #fff; outline-offset: 2px; }
body.landing.at-sky .hg-navbar a:focus-visible, body.landing.at-sky .hg-navbar button:focus-visible { outline-color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .sky-say, .sky-reply, .sky-thing, .sky-wish button, body.landing .hg-navbar { transition: none; }
  .sky-thing { animation: none; clip-path: none; }
  .sky-thing i { display: none; }
  .sky-say.on { opacity: .95; }
}
