:root {
  --bg-base: #fffbf2;
  --bg-alt: #f5ecd7;
  --bg-card: #ffffff;
  --ink-primary: #3d2516;
  --ink-secondary: #6e4f3a;
  --border-wood: #4a2e1b;
  --clay-orange: #f26419;
  --clay-orange-dark: #c94708;
  --clay-orange-hover: #e0520b;
  --clay-aqua: #16a3b8;
  --clay-aqua-dark: #0f7a8a;
  --clay-yellow: #f6c945;
  --clay-pink: #ef6ca8;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow-card: 0 8px 0 rgba(74, 46, 27, 0.14);
  --shadow-btn: 0 5px 0 var(--clay-orange-dark);
  --max-width: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: "M PLUS Rounded 1c", "Fredoka", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--ink-primary);
  background-color: var(--bg-base);
  background-image: radial-gradient(rgba(74, 46, 27, 0.05) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(100% - 32px, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 251, 242, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid rgba(74, 46, 27, 0.14);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

.header-logo {
  height: 44px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 800;
  font-size: 0.95rem;
}

.header-nav a {
  padding: 6px 4px;
  transition: color 0.15s ease;
}

.header-nav a:hover {
  color: var(--clay-orange);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  background: var(--bg-alt);
  border: 2px solid var(--border-wood);
  border-radius: 999px;
  padding: 2px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-btn.is-active {
  background: var(--border-wood);
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 900;
  border-radius: 999px;
  cursor: pointer;
  border: 3px solid var(--border-wood);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.15s ease;
  text-align: center;
  line-height: 1.2;
}

.btn:active {
  transform: translateY(3px);
}

.btn-primary {
  background: var(--clay-orange);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--clay-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 0 var(--clay-orange-dark);
}

.btn-primary:active {
  box-shadow: 0 2px 0 var(--clay-orange-dark);
}

.btn-secondary {
  background: #fff;
  color: var(--ink-primary);
  box-shadow: 0 5px 0 rgba(74, 46, 27, 0.22);
}

.btn-secondary:hover {
  background: #fff7e2;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--ink-primary);
  border: 2.5px solid var(--border-wood);
  padding: 13px 20px;
  font-size: 0.95rem;
}

.btn-outline:hover {
  background: var(--bg-alt);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.88rem;
  border-width: 2.5px;
  box-shadow: 0 3px 0 var(--clay-orange-dark);
}

.btn-lg {
  padding: 16px 26px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.steam-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.play-triangle {
  font-size: 0.85em;
  color: var(--clay-orange);
}

/* Hero */
.hero {
  padding: 44px 0 64px;
  background:
    radial-gradient(circle at 85% 18%, rgba(22, 163, 184, 0.16), transparent 42%),
    radial-gradient(circle at 12% 75%, rgba(246, 201, 69, 0.24), transparent 45%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 40px;
}

.hero-logo {
  width: min(360px, 85%);
  height: auto;
  margin-bottom: 16px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3.1vw, 2.55rem);
  line-height: 1.24;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.hero-lead {
  margin: 0 0 26px;
  font-size: 1.02rem;
  color: var(--ink-secondary);
  font-weight: 700;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.hero-note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-secondary);
  font-weight: 700;
  text-wrap: pretty;
}

.hero-copy,
.hero-media,
.feature-media,
.feature-body,
.squad-copy,
.squad-gallery,
.map-media,
.map-info,
.spec-left,
.spec-right {
  min-width: 0;
}

.video-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid var(--border-wood);
  box-shadow: 0 12px 0 rgba(74, 46, 27, 0.18);
  background: #1a2433;
  aspect-ratio: 16 / 9;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
}

.media-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(61, 37, 22, 0.86);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 6px 13px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.media-pill:hover {
  background: var(--clay-orange);
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 3px solid rgba(74, 46, 27, 0.1);
  border-bottom: 3px solid rgba(74, 46, 27, 0.1);
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 44px;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1.3;
  font-weight: 900;
  text-wrap: balance;
}

.section-desc {
  margin: 0;
  color: var(--ink-secondary);
  font-weight: 700;
  font-size: 1rem;
  text-wrap: balance;
}

/* Feature cards */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.feature-card {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: 32px;
  background: var(--bg-card);
  border: 3.5px solid var(--border-wood);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.feature-card.is-reverse {
  grid-template-columns: 0.95fr 1.15fr;
}

.feature-card.is-reverse .feature-media {
  order: 2;
}

.feature-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 3px solid var(--border-wood);
  aspect-ratio: 16 / 9;
  background: #232a36;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.zoomable-img {
  cursor: zoom-in;
}

.feature-media:hover img {
  transform: scale(1.02);
}

.feature-body {
  padding: 6px 10px;
}

.feature-body h3 {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  line-height: 1.35;
  font-weight: 900;
}

.feature-body p {
  margin: 0;
  color: var(--ink-secondary);
  font-weight: 700;
  font-size: 0.98rem;
}

/* Squad section */
.squad-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  align-items: center;
  gap: 36px;
}

.squad-text {
  margin: 0 0 20px;
  color: var(--ink-secondary);
  font-weight: 700;
}

.squad-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.squad-points li {
  position: relative;
  padding: 12px 16px 12px 42px;
  background: var(--bg-card);
  border: 2.5px solid var(--border-wood);
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.95rem;
}

.squad-points li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--clay-aqua);
  border: 2px solid var(--border-wood);
  transform: translateY(-50%);
}

.squad-gallery {
  display: grid;
  gap: 16px;
}

.gallery-main,
.gallery-sub {
  width: 100%;
  border-radius: var(--radius-md);
  border: 3.5px solid var(--border-wood);
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Maps */
.map-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.map-tab {
  font-family: inherit;
  font-weight: 900;
  font-size: 0.98rem;
  padding: 11px 22px;
  border-radius: 999px;
  border: 3px solid var(--border-wood);
  background: #fff;
  color: var(--ink-primary);
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(74, 46, 27, 0.16);
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.map-tab:hover {
  transform: translateY(-1px);
}

.map-tab.is-active {
  background: var(--clay-aqua);
  color: #fff;
  box-shadow: 0 4px 0 var(--clay-aqua-dark);
}

.map-stage {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  align-items: center;
  gap: 28px;
  background: var(--bg-card);
  border: 3.5px solid var(--border-wood);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.map-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 3px solid var(--border-wood);
  aspect-ratio: 16 / 10;
  background: #1d2838;
}

.map-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-info {
  padding: 8px;
}

.map-info h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 900;
}

.map-info p {
  margin: 0;
  color: var(--ink-secondary);
  font-weight: 700;
}

/* Spec & Final CTA */
.spec-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  background: var(--bg-card);
  border: 4px solid var(--border-wood);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.spec-table {
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}

.spec-table > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px dashed rgba(74, 46, 27, 0.16);
}

.spec-table > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.spec-table dt {
  font-weight: 900;
  color: var(--ink-secondary);
}

.spec-table dd {
  margin: 0;
  font-weight: 800;
}

.spec-right {
  background: #fff6df;
  border: 3px solid var(--border-wood);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.final-cta-title {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.35;
  font-weight: 900;
}

.final-cta-desc {
  margin: 0 0 6px;
  font-size: 0.94rem;
  color: var(--ink-secondary);
  font-weight: 700;
}

/* Footer */
.site-footer {
  padding: 28px 0 40px;
  border-top: 3px solid rgba(74, 46, 27, 0.12);
  background: var(--bg-base);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-brand {
  margin: 0;
  font-weight: 900;
}

.footer-copy {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-secondary);
  font-weight: 700;
}

/* Mobile Sticky CTA */
.mobile-sticky-bar {
  display: none;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 15, 9, 0.78);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  background: #141414;
  border: 4px solid #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.modal-video-dialog video {
  width: 100%;
  max-height: 82vh;
  background: #000;
}

.modal-image-dialog img {
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
  background: #141414;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  background: rgba(61, 37, 22, 0.9);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 960px) {
  .header-nav {
    display: none;
  }

  .hero-grid,
  .feature-card,
  .feature-card.is-reverse,
  .squad-grid,
  .map-stage,
  .spec-card {
    grid-template-columns: 1fr;
  }

  .feature-card.is-reverse .feature-media {
    order: 0;
  }

  .hero {
    padding: 28px 0 48px;
  }

  .hero-media {
    order: -1;
  }

  .hero-logo {
    width: min(280px, 78%);
  }

  .spec-card {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 84px;
  }

  .header-actions .steam-cta {
    display: none;
  }

  .header-logo {
    height: 36px;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .section {
    padding: 52px 0;
  }

  .spec-table > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .mobile-sticky-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 251, 242, 0.96);
    border-top: 3px solid var(--border-wood);
    backdrop-filter: blur(8px);
    transform: translateY(110%);
    transition: transform 0.22s ease;
  }

  .mobile-sticky-bar.is-visible {
    transform: translateY(0);
  }
}
