/* Strata9 Games
   Full-bleed art hero, one gold CTA, dark studio chrome.
   Brand: STRATA9 wordmark in Inter Display SemiBold, steel text, amber 9. */

@font-face {
  font-family: "Inter Display";
  src: url("/assets/InterDisplay-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter Display";
  src: url("/assets/InterDisplay-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --ink: #0b0f1c;
  --ink-2: #10152a;
  --panel: #141b31;
  --line: rgba(232, 237, 242, 0.10);
  --steel: #e8edf2;
  --steel-dim: #b9c2cf;
  --muted: #7c8a96;
  --amber: #de8639;
  --gold: #f2b134;
  --gold-light: #ffd36b;
  --radius: 18px;
  --font: "Inter Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.55;
  color: var(--steel);
  background: var(--ink);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 .4em; letter-spacing: -0.015em; text-wrap: balance; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 6.2vw, 4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: .7em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; font-weight: 600; }

.wrap {
  width: 100%; max-width: 1140px; margin-inline: auto;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--gold); color: #1a1206; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 8px; }

/* Header: transparent over the hero, blurred when scrolled (via position sticky) */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--steel); }
.wm { font-weight: 600; font-size: 1.55rem; letter-spacing: 0.045em; line-height: 1; }
.wm .nine { color: var(--amber); }
.wm-sub { font-weight: 600; font-size: .95rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel-dim); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--steel); text-decoration: none; white-space: nowrap; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; padding: 10px 12px; border-radius: 10px; }
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.site-nav .nav-cta {
  margin-left: 6px; background: linear-gradient(180deg, var(--gold-light), var(--amber));
  color: #1a1206; border-radius: 999px; padding: 10px 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 16px rgba(0,0,0,.35);
}
.site-nav .nav-cta:hover { filter: brightness(1.06); color: #1a1206; background: linear-gradient(180deg, var(--gold-light), var(--amber)); }

/* Hero */
.hero { position: relative; min-height: clamp(560px, 82vh, 860px); display: grid; align-items: end; overflow: hidden; background: var(--ink); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,15,28,.55) 0%, rgba(11,15,28,0) 22%, rgba(11,15,28,0) 42%, rgba(11,15,28,.92) 78%, var(--ink) 100%);
}
.hero-inner { position: relative; z-index: 2; text-align: center; padding-block: 48px 64px; max-width: 880px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--gold-light); margin-bottom: 12px; }
.hero h1 { text-shadow: 0 4px 24px rgba(0,0,0,.6); }
.lede { color: var(--steel-dim); max-width: 60ch; margin-inline: auto; font-size: 1.05rem; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.hero-cta { margin-top: 22px; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 10px 24px; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  background: linear-gradient(180deg, var(--gold-light), var(--amber));
  color: #1a1206;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 10px 24px rgba(0,0,0,.4);
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.06); color: #1a1206; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--steel); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { background: rgba(255,255,255,.06); color: #fff; }
.btn-small { min-height: 42px; padding: 6px 16px; font-size: .95rem; }
.btn-play { padding: 8px 22px 8px 16px; text-align: left; }
.btn-play-text { display: flex; flex-direction: column; line-height: 1.05; }
.btn-play-text small { font-size: .62rem; letter-spacing: .1em; opacity: .85; }
.btn-play-text strong { font-size: 1.1rem; }
.btn-play[disabled], .btn-play[aria-disabled="true"] {
  cursor: default; background: rgba(20, 27, 49, .85); color: var(--steel); border: 1px dashed rgba(232,237,242,.35);
  box-shadow: none; filter: none;
}
.notify { color: var(--gold-light); font-weight: 600; }

/* Sections */
.section { padding-block: clamp(40px, 6vw, 80px); }
.section + .section { border-top: 1px solid var(--line); }

/* Game card(s). One card sits at a comfortable width; three fill a row. */
.game-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.game-card {
  display: grid; grid-template-columns: 84px 1fr; gap: 10px 18px; align-items: center;
  padding: 20px; border-radius: var(--radius);
  background: linear-gradient(180deg, #182040, var(--panel));
  border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(0,0,0,.35);
  transition: transform .15s ease, border-color .15s ease;
}
.game-card:hover { transform: translateY(-2px); border-color: rgba(242,177,52,.45); }
.game-icon { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 8px 18px rgba(0,0,0,.45); }
.game-body h3 { margin-bottom: 2px; }
.game-tagline { color: var(--steel-dim); margin: 0 0 8px; }
.game-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.game-links:empty { display: none; }
.status { display: inline-block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.status-live { background: rgba(46,204,113,.14); color: #7ff0b0; border: 1px solid rgba(46,204,113,.4); }
.status-soon { background: rgba(242,177,52,.12); color: var(--gold-light); border: 1px solid rgba(242,177,52,.4); }

/* Screenshot strip */
.shots .wrap h2 { margin-bottom: .5em; }
.shot-strip {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px max(18px, env(safe-area-inset-right, 0px)) 16px max(18px, env(safe-area-inset-left, 0px));
  -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #2a3558 transparent;
}
.shot-strip figure { margin: 0; flex: 0 0 auto; width: min(66vw, 240px); scroll-snap-align: center; }
.shot-strip img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 14px 30px rgba(0,0,0,.45); background: var(--panel); }
.shot-strip figcaption { font-size: .9rem; color: var(--steel-dim); text-align: center; margin-top: 8px; }

/* About, Contact */
.about-inner { max-width: 64ch; }
.about p { color: var(--steel-dim); }
.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(135deg, rgba(222,134,57,.22), rgba(242,177,52,.10));
  border: 1px solid rgba(242,177,52,.35); border-radius: var(--radius); padding: 24px;
}
.contact-card h2 { margin-bottom: .2em; }
.contact-card p { margin: 0; color: var(--steel-dim); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 22px 40px; color: var(--muted); font-size: .92rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; }
.footer-row p { margin: 0; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-row a { color: var(--steel-dim); text-decoration: none; }
.footer-row a:hover { color: #fff; text-decoration: underline; }

/* Breakpoints */
@media (min-width: 620px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .game-grid[data-count="1"] { grid-template-columns: minmax(0, 600px); }
}
@media (min-width: 920px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .game-grid[data-count="1"] { grid-template-columns: minmax(0, 600px); }
  .game-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 540px)); }
  .shot-strip { padding-left: calc((100vw - 1140px) / 2 + 18px); }
}
@media (max-width: 560px) {
  .header-row { padding-block: 12px; gap: 8px; }
  .wm { font-size: 1.3rem; }
  .wm-sub { display: none; }
  .site-nav a { padding: 8px 8px; font-size: .8rem; white-space: nowrap; }
  .site-nav .nav-cta { padding: 8px 12px; }
  .hero { min-height: 92svh; }
  .hero-bg img { object-position: 62% 20%; }
}
