:root {
  --bg: #f5f8fb;
  --bg-alt: #fff4ee;
  --paper: #fffdfb;
  --paper-strong: #fff7f1;
  --text: #14364c;
  --text-soft: #4f6a79;
  --line: rgba(20, 54, 76, 0.12);
  --coral: #ea7a67;
  --navy: #15425d;
  --marine: #1d8495;
  --mint: #daf0ec;
  --shadow: 0 14px 28px rgba(16, 55, 80, 0.08);
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shell-header: 1220px;
  --shell-mixed: 1080px;
  --shell-wide: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Source Sans Pro", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(120deg, rgba(234, 122, 103, 0.08), transparent 36%),
    linear-gradient(180deg, #f7fbfd 0%, #f4f9fb 52%, #fdf4ee 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  flex: 1 0 auto;
}

.shell {
  width: min(calc(100% - 28px), var(--shell-header));
  margin: 0 auto;
}

.shell-header {
  width: min(calc(100% - 28px), var(--shell-header));
}

.shell-mixed {
  width: min(calc(100% - 28px), var(--shell-mixed));
}

.shell-wide {
  width: min(calc(100% - 28px), var(--shell-wide));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 251, 253, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(20, 54, 76, 0.08);
}

.header-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.header-topline p {
  margin: 0;
}

.header-core {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 0 0 14px;
}

.brandmark {
  display: inline-block;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.header-nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.header-nav a {
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(20, 54, 76, 0.08);
  font-weight: 700;
  color: var(--navy);
}

.hero-compact {
  padding: 34px 0 18px;
}

.eyebrow,
.section-kicker,
.footer-kicker {
  margin: 0 0 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--coral);
  font-weight: 800;
}

.hero-compact h1,
.section-heading h2,
.paper-panel h2,
.page-hero h1,
.page-section h2,
.game-page-hero h1,
.page-callout h2,
.site-footer h2 {
  font-family: "Poppins", "Segoe UI", sans-serif;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
}

.hero-compact h1 {
  max-width: 720px;
  font-size: clamp(2.4rem, 6vw, 4.3rem);
}

.hero-lead {
  max-width: 720px;
  margin: 16px 0 0;
  font-size: 1.05rem;
  color: var(--text-soft);
}

.hero-actions,
.stack-row__body ul,
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 18px;
}

.cta-primary,
.cta-link,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 800;
}

.cta-primary {
  background: var(--navy);
  color: white;
}

.cta-link {
  color: var(--marine);
  padding-left: 0;
  padding-right: 0;
}

.cta-secondary {
  background: rgba(29, 132, 149, 0.1);
  color: var(--navy);
}

.thumb-burst {
  padding: 6px 0 30px;
}

.thumb-burst .shell-wide {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr) 1.05fr;
  gap: 14px;
  align-items: stretch;
}

.thumb-card {
  position: relative;
  overflow: hidden;
  min-height: 182px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  background: #dbe6eb;
}

.thumb-card--large {
  min-height: 230px;
}

.thumb-card--tall {
  min-height: 230px;
}

.thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-card span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 253, 251, 0.9);
  color: var(--navy);
  font-weight: 800;
}

.featured-map {
  padding: 0 0 18px;
}

.featured-map__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.featured-copy,
.feature-tags article,
.stack-row,
.paper-panel,
.page-hero,
.page-section,
.page-callout,
.game-frame,
.game-page-hero {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.featured-copy,
.paper-panel,
.page-hero,
.page-section,
.page-callout,
.game-page-hero {
  padding: 24px;
  border-radius: 20px;
}

.feature-tags {
  display: grid;
  gap: 12px;
}

.feature-tags article {
  padding: 18px;
  border-radius: 16px;
}

.feature-tags strong {
  display: block;
  font-size: 1.02rem;
}

.feature-tags p {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.game-stack {
  padding: 20px 0 18px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  max-width: 780px;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.section-heading p:last-child,
.paper-panel p,
.stack-row__body p,
.page-section p,
.page-hero p,
.page-callout p,
.site-footer p,
.site-footer li {
  color: var(--text-soft);
}

.stack-row {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 18px;
}

.stack-row__media {
  position: relative;
  overflow: hidden;
  min-height: 165px;
  border-radius: 14px;
}

.stack-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-chip {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stack-row__body h3 {
  margin: 0;
  font-size: 1.45rem;
}

.stack-row__body p {
  margin: 8px 0 10px;
}

.stack-row__body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}

.stack-row__body li {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--mint);
  color: var(--navy);
  font-weight: 700;
}

.support-columns {
  padding: 12px 0 46px;
}

.support-columns__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.site-footer {
  margin-top: auto;
  padding: 22px 0 34px;
  background: #123247;
  color: rgba(247, 252, 255, 0.92);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 18px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.site-footer li + li {
  margin-top: 8px;
}

.footer-kicker {
  color: #9fe0ed;
}

.page-shell {
  width: min(calc(100% - 28px), 1120px);
  margin: 0 auto;
  padding: 28px 0 54px;
}

.page-grid,
.game-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
}

.page-stack {
  display: grid;
  gap: 18px;
}

.page-callout {
  position: sticky;
  top: 148px;
  align-self: start;
}

.page-callout ul,
.site-footer ul {
  list-style: none;
}

.page-callout ul {
  padding: 0;
  margin: 10px 0 0;
}

.page-callout li + li {
  margin-top: 10px;
}

.game-page-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  margin: 0 0 18px;
}

.game-page-hero__media {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  border-radius: 16px;
}

.game-page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-frame {
  padding: 12px;
  border-radius: 18px;
}

.game-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px;
  background: #111;
}

.micro-notes {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.micro-notes article {
  padding: 14px;
  border-radius: 14px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
}

.micro-notes h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

@media (max-width: 1100px) {
  .header-core,
  .featured-map__grid,
  .support-columns__grid,
  .footer-grid,
  .page-grid,
  .game-page-grid,
  .game-page-hero {
    grid-template-columns: 1fr;
  }

  .thumb-burst .shell-wide {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-callout {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-topline {
    display: grid;
    gap: 4px;
  }

  .thumb-burst .shell-wide,
  .stack-row {
    grid-template-columns: 1fr;
  }

  .stack-row__media {
    min-height: 210px;
  }

  .site-header {
    position: static;
  }
}
