/* ============================================================
   INFINITE GRIND — Game Studio
   Palette:  ink #0A0A0C · white #F5F5F3 · red #E3242B (logo)
             gold #E8B84B · cyan #38E1DE
   Type:     Chakra Petch (display) · Playfair Display (serif)
             Inter (body)
   ============================================================ */

:root {
  --ink: #0a0a0c;
  --panel: #101014;
  --panel-2: #16161c;
  --white: #f5f5f3;
  --muted: #a2a2ab;
  --red: #e3242b;
  --red-deep: #a4121a;
  --gold: #e8b84b;
  --cyan: #38e1de;
  --line: rgba(245, 245, 243, 0.14);
  --glass: rgba(10, 10, 14, 0.55);
  --font-display: "Chakra Petch", sans-serif;
  --font-serif: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1340px, 93%); margin-inline: auto; }

/* Section eyebrow — claw-slash motif from the logo */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 10px;
  background: var(--red);
  clip-path: polygon(0 100%, 35% 0, 55% 0, 20% 100%, 0 100%),
    polygon(45% 100%, 80% 0, 100% 0, 65% 100%);
  clip-path: polygon(0% 100%, 30% 0%, 48% 0%, 18% 100%);
  flex: none;
}
.eyebrow::after {
  content: "";
  width: 16px;
  height: 10px;
  background: var(--red);
  clip-path: polygon(0% 100%, 30% 0%, 48% 0%, 18% 100%);
  flex: none;
  opacity: 0.55;
  margin-left: -6px;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.3;
}
.brand-name small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.42em;
  color: var(--muted);
  font-weight: 500;
}

/* Hamburger */
.nav-toggle {
  width: 48px;
  height: 48px;
  background: transparent;
  border: 0;
  display: grid;
  place-items: center;
  gap: 0;
}
.nav-toggle span {
  display: block;
  width: 30px;
  height: 2px;
  background: var(--white);
  margin: 4px 0;
  transition: transform 0.35s var(--ease), opacity 0.25s ease, width 0.35s var(--ease);
}
.nav-toggle span:nth-child(2) { width: 22px; margin-left: 8px; }
.nav-toggle:hover span { background: var(--red); }
.nav-toggle:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

/* ============================================================
   OFF-CANVAS MENU (slides in from the right)
   ============================================================ */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(5, 5, 7, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  width: min(420px, 88vw);
  background: linear-gradient(160deg, #141418 0%, #0b0b0e 70%);
  border-left: 1px solid var(--line);
  padding: 32px 44px 44px;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.55s var(--ease);
}
body.menu-open .menu-overlay { opacity: 1; visibility: visible; }
body.menu-open .menu-drawer { transform: translateX(0); }
body.menu-open { overflow: hidden; }

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8vh;
}
.menu-head img { width: 48px; height: 48px; }
.menu-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
}
.menu-close:hover { border-color: var(--red); color: var(--red); transform: rotate(90deg); }

.menu-nav { display: flex; flex-direction: column; gap: 6px; }
.menu-nav a {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 0;
  display: flex;
  align-items: baseline;
  gap: 16px;
  color: var(--white);
  opacity: 0;
  transform: translateX(40px);
  transition: color 0.25s ease, opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
body.menu-open .menu-nav a { opacity: 1; transform: none; }
body.menu-open .menu-nav a:nth-child(1) { transition-delay: 0.12s; }
body.menu-open .menu-nav a:nth-child(2) { transition-delay: 0.19s; }
body.menu-open .menu-nav a:nth-child(3) { transition-delay: 0.26s; }
body.menu-open .menu-nav a:nth-child(4) { transition-delay: 0.33s; }
.menu-nav a small {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--red);
  font-weight: 600;
}
.menu-nav a:hover { color: var(--red); }

.menu-foot {
  margin-top: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   SECTION 1 — HERO SLIDER
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s ease, visibility 1.1s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }

.hero-bg { position: absolute; inset: 0; transform: scale(1.06); transition: transform 7s linear; }
.hero-slide.is-active .hero-bg { transform: scale(1); }

/* Slide backgrounds — key art on top, gradient fallback beneath */
.bg-city {
  background:
    url("../images/Idle_Way_Banner_Slider.jpeg") center / cover no-repeat,
    linear-gradient(180deg, #1a2b4a 0%, #3a2c4e 45%, #6b3a35 78%, #201018 100%);
}
.bg-neon {
  background:
    url("../images/Space_Monster_Poster.jpeg") center / cover no-repeat,
    linear-gradient(180deg, #0b1220 0%, #101a30 55%, #050810 100%);
}
.bg-forest {
  background:
    url("../images/Hedge_Holes_Hero_Slider.jpeg") center / cover no-repeat,
    linear-gradient(180deg, #0d1a12 0%, #14261a 55%, #060b08 100%);
}
.hero-bg::after {
  /* subtle grain / vignette so text stays readable over any art */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 8, 0.62) 0%, rgba(5, 5, 8, 0.25) 45%, rgba(5, 5, 8, 0.05) 100%),
    linear-gradient(0deg, rgba(5, 5, 8, 0.65) 0%, transparent 30%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-h);
}

/* Glass card, as in reference 1 */
.hero-card {
  width: min(620px, 100%);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: clamp(28px, 4vw, 52px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  /* claw slash accent in the corner */
  content: "";
  position: absolute;
  top: -14px;
  right: -10px;
  width: 90px;
  height: 54px;
  background: var(--red);
  clip-path: polygon(20% 100%, 55% 0, 70% 0, 35% 100%);
  opacity: 0.85;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.hero-title .accent { color: var(--red); text-shadow: 0 0 34px rgba(227, 36, 43, 0.45); }
.hero-sub { margin-top: 16px; color: rgba(245, 245, 243, 0.85); max-width: 46ch; }

/* Store buttons */
.store-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #0b0b0e;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  padding: 10px 20px 10px 14px;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.store-btn:hover { transform: translateY(-3px); border-color: var(--white); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn .txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-btn .txt small { font-size: 10px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.store-btn .txt strong { font-family: var(--font-display); font-size: 16px; font-weight: 600; }

/* Feature badges row — centered under the title card */
.hero-badges-wrap {
  width: min(620px, 100%); /* same width as .hero-card */
  display: flex;
  justify-content: center;
  margin-top: clamp(24px, 4vh, 48px);
}
.hero-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
  background: rgba(10, 10, 14, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}
.badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
}
.badge + .badge { border-left: 1px solid rgba(255, 255, 255, 0.14); }
.badge svg { width: 34px; height: 34px; color: var(--gold); flex: none; }
.badge span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  text-transform: capitalize;
}

/* Slider dots */
.hero-dots {
  position: absolute;
  z-index: 5;
  right: clamp(18px, 4vw, 56px);
  bottom: 42px;
  display: flex;
  gap: 10px;
}
.hero-dots button {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.3s, width 0.3s var(--ease);
}
.hero-dots button.is-active { background: var(--red); width: 52px; }
.hero-dots button:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

/* ============================================================
   SECTION 2 — COMING SOON / COUNTDOWN  (reference 2)
   ============================================================ */
.coming {
  padding: clamp(80px, 12vh, 140px) 0;
  background: #050506;
}
.coming-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* Media / trailer placeholder with play button */
.coming-media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(600px 300px at 70% 30%, rgba(80, 120, 255, 0.35), transparent 60%),
    radial-gradient(500px 400px at 20% 80%, rgba(232, 184, 75, 0.25), transparent 55%),
    linear-gradient(200deg, #101528 0%, #0a0d1a 60%, #05060c 100%);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}
.coming-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%, transparent 100%);
}
.coming-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.coming-media.is-playing .play-btn { opacity: 0; pointer-events: none; }
.coming-media .play-btn { transition: transform 0.3s var(--ease), box-shadow 0.3s, opacity 0.3s ease; }
.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 0;
  background: var(--gold);
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  box-shadow: 0 0 0 0 rgba(232, 184, 75, 0.4);
}
.play-btn:hover { transform: scale(1.08); box-shadow: 0 0 0 18px rgba(232, 184, 75, 0.12); }
.play-btn svg { width: 30px; height: 30px; fill: #141414; margin-left: 4px; }

.coming-copy .eyebrow { margin-bottom: 18px; }
.coming-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.12;
  margin-bottom: 30px;
}

/* Countdown — cyan digits, gold unit labels, as in reference 2 */
.countdown { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 44px); margin-bottom: 34px; }
.count-unit { display: flex; align-items: baseline; gap: 10px; }
.count-unit b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 4.5vw, 56px);
  color: var(--cyan);
  line-height: 1;
  text-shadow: 0 0 30px rgba(56, 225, 222, 0.35);
  font-variant-numeric: tabular-nums;
}
.count-unit span {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--gold);
}

.coming-copy p { color: var(--muted); max-width: 62ch; }
.coming-copy p + p { margin-top: 18px; }

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 44px;
  margin-top: 40px;
}
.pillar { padding-right: 24px; }
.pillar + .pillar { border-left: 1px solid var(--gold); padding-left: 44px; padding-right: 0; }
.pillar h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.pillar:nth-child(1) h4 { color: var(--cyan); }
.pillar:nth-child(2) h4 { color: var(--gold); }
.pillar p { font-size: 15px; color: var(--muted); }

/* ============================================================
   SECTION — ABOUT US
   ============================================================ */
.about {
  padding: clamp(80px, 12vh, 140px) 0;
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(227, 36, 43, 0.08), transparent 60%),
    #0a0a0c;
  border-top: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.about-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 14px 0 26px;
}
.about-copy p { color: var(--muted); max-width: 60ch; }
.about-copy p + p { margin-top: 18px; }

.about-values { display: flex; flex-direction: column; gap: 20px; margin-top: 38px; }
.value { display: flex; gap: 16px; align-items: flex-start; }
.value-mark {
  flex: none;
  width: 20px;
  height: 26px;
  margin-top: 4px;
  background: var(--red);
  clip-path: polygon(0% 100%, 45% 0%, 75% 0%, 30% 100%);
}
.value h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.value p { font-size: 14px; color: var(--muted); }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.stat {
  background: var(--panel);
  padding: clamp(26px, 3vw, 40px) clamp(22px, 2.5vw, 34px);
  transition: background 0.3s ease;
}
.stat:hover { background: var(--panel-2); }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 700;
  color: var(--red);
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat span {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   SECTION 3 — GAMES COVERFLOW SLIDER  (reference 3)
   ============================================================ */
.games {
  padding: clamp(80px, 12vh, 140px) 0;
  background: #000;
  overflow: hidden;
}
.games-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(36px, 6vh, 64px);
}
.games-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 14px;
}

.coverflow {
  position: relative;
  height: clamp(340px, 48vw, 560px);
  perspective: 1400px;
}
.cf-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(560px, 62vw);
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease), opacity 0.7s ease, filter 0.7s ease;
  cursor: pointer;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cf-card:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

/* Hover effect: lift + glow, label slides up, side cards brighten */
.cf-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(56, 225, 222, 0);
  box-shadow: inset 0 0 0 rgba(56, 225, 222, 0);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  pointer-events: none;
}
.cf-card .cf-label { transform: translateY(10px); opacity: 0.9; transition: transform 0.45s var(--ease), opacity 0.45s ease; }
.cf-card .cf-label .tag { opacity: 0; transform: translateY(6px); transition: opacity 0.4s ease 0.08s, transform 0.4s var(--ease) 0.08s; }

.cf-card[data-pos="center"]:hover {
  transform: translateX(-50%) translateZ(40px) rotateY(0) scale(1.025);
  box-shadow: 0 50px 110px rgba(0, 0, 0, 0.75), 0 0 60px rgba(56, 225, 222, 0.12);
}
.cf-card[data-pos="center"]:hover::after {
  border-color: rgba(56, 225, 222, 0.55);
  box-shadow: inset 0 0 40px rgba(56, 225, 222, 0.08);
}
.cf-card:hover .cf-label { transform: translateY(0); opacity: 1; }
.cf-card:hover .cf-label .tag { opacity: 1; transform: none; }

.cf-card[data-pos="left"]:hover  { transform: translateX(-118%) translateZ(-240px) rotateY(34deg); filter: brightness(0.85); }
.cf-card[data-pos="right"]:hover { transform: translateX(18%)  translateZ(-240px) rotateY(-34deg); filter: brightness(0.85); }

/* Game key-art */
.art-hedge    { background: url("../images/Hedge_Holes.jpeg") center / cover no-repeat, #1c2a12; }
.art-monsters { background: url("../images/Spacemonster_UI.jpeg") center / cover no-repeat, #140b26; }
.art-idleway  { background: url("../images/Idle_Way_wallpaper.jpeg") center / cover no-repeat, #35233f; }

.cf-card .cf-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 60px 30px 24px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.cf-label h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cf-label .tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  white-space: nowrap;
}

/* Coverflow positions */
.cf-card[data-pos="center"] { transform: translateX(-50%) translateZ(0) rotateY(0); z-index: 3; opacity: 1; filter: brightness(1); }
.cf-card[data-pos="left"]   { transform: translateX(-118%) translateZ(-260px) rotateY(38deg); z-index: 2; opacity: 0.85; filter: brightness(0.6); }
.cf-card[data-pos="right"]  { transform: translateX(18%)  translateZ(-260px) rotateY(-38deg); z-index: 2; opacity: 0.85; filter: brightness(0.6); }
.cf-card[data-pos="hidden"] { transform: translateX(-50%) translateZ(-600px); opacity: 0; pointer-events: none; }

/* Cyan chevron arrows, as in reference 3 */
.cf-arrows { display: flex; gap: 12px; }
.cf-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(56, 225, 222, 0.5);
  background: rgba(56, 225, 222, 0.06);
  color: var(--cyan);
  display: grid;
  place-items: center;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.cf-arrow:hover {
  background: rgba(164, 18, 26, 0.16);
  border-color: #a4121a;
  color: #a4121a;
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(164, 18, 26, 0.35);
}
.cf-arrow svg { width: 20px; height: 20px; }

/* ============================================================
   SECTION 4 — CONTACT  (reference 4: split layout)
   ============================================================ */
.contact {
  position: relative;
  padding: clamp(90px, 14vh, 160px) 0;
  background:
    radial-gradient(1000px 500px at 80% 20%, rgba(90, 60, 120, 0.35), transparent 60%),
    radial-gradient(800px 600px at 60% 100%, rgba(227, 36, 43, 0.12), transparent 60%),
    linear-gradient(200deg, #17121f 0%, #0c0a12 55%, #060508 100%);
  overflow: hidden;
}
.contact::before {
  /* dim architectural texture layer, echoing the reference backdrop */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.025) 0 2px,
    transparent 2px 26px
  );
  mask-image: linear-gradient(90deg, transparent 30%, #000 70%);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 70%);
}
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 90px);
}
.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.8vw, 46px);
  font-weight: 700;
  color: var(--red);
  text-transform: capitalize;
  margin: 14px 0 40px;
}
.contact-info address {
  font-style: normal;
  color: var(--muted);
  max-width: 34ch;
  margin-bottom: 34px;
}
.contact-lines { display: flex; flex-direction: column; gap: 18px; }
.contact-lines a {
  font-size: 17px;
  color: var(--white);
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.contact-lines a:hover { color: var(--red); border-color: var(--red); }

/* Social media icons */
.socials { display: flex; gap: 12px; margin-top: 34px; }
.social {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  color: var(--white);
  transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.social svg { width: 20px; height: 20px; }
.social:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(227, 36, 43, 0.08);
  transform: translateY(-3px);
}

.contact-form h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 38px;
}
.field { margin-bottom: 40px; }
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 10px 2px;
  transition: border-color 0.3s;
  resize: vertical;
  min-height: 42px;
}
.field textarea { min-height: 110px; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--red); }

.send-btn {
  width: 100%;
  padding: 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  text-indent: 0.5em;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.send-btn:hover { background: var(--red); border-color: var(--red); }
.form-note { margin-top: 14px; font-size: 13px; color: var(--muted); min-height: 1.4em; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #050506; border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand img { width: 64px; height: 64px; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 34ch; }
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 15px; color: var(--white); transition: color 0.25s; }
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { color: var(--muted); transition: color 0.25s; }
.footer-legal a:hover { color: var(--red); }

/* ============================================================
   LEGAL PAGES (Privacy Policy / Terms of Use)
   ============================================================ */
.legal-hero {
  padding: calc(var(--header-h) + clamp(48px, 8vh, 90px)) 0 clamp(36px, 6vh, 64px);
  background:
    radial-gradient(900px 400px at 80% 0%, rgba(227, 36, 43, 0.1), transparent 60%),
    #0a0a0c;
  border-bottom: 1px solid var(--line);
}
.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 14px;
}
.legal-hero .updated {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal-body { padding: clamp(48px, 8vh, 90px) 0; }
.legal-body .container { max-width: 820px; }
.legal-body h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 44px 0 14px;
  padding-left: 18px;
  border-left: 3px solid var(--red);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--muted); }
.legal-body p + p { margin-top: 14px; }
.legal-body ul { margin: 14px 0 0 22px; display: flex; flex-direction: column; gap: 8px; }
.legal-body a { color: var(--white); border-bottom: 1px solid var(--red); }
.legal-body a:hover { color: var(--red); }
.legal-note {
  margin-top: 40px;
  padding: 18px 22px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: rgba(232, 184, 75, 0.06);
  color: var(--gold);
  font-size: 14px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .coming-grid, .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cf-card { width: min(480px, 74vw); }
  .cf-card[data-pos="left"]  { transform: translateX(-104%) translateZ(-300px) rotateY(42deg); }
  .cf-card[data-pos="right"] { transform: translateX(4%)   translateZ(-300px) rotateY(-42deg); }
}
@media (max-width: 640px) {
  .brand-name { display: none; }
  .hero-badges { border-radius: 14px; }
  .badge { padding: 14px 18px; gap: 10px; }
  .badge svg { width: 26px; height: 26px; }
  .badge span { font-size: 13px; }
  .pillars { grid-template-columns: 1fr; gap: 28px; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--gold); padding: 28px 0 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cf-card[data-pos="left"], .cf-card[data-pos="right"] { opacity: 0.4; }
  .games-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============================================================
   GAME SUBPAGES — universal template
   ============================================================ */
.game-hero {
  padding: calc(var(--header-h) + clamp(40px, 7vh, 80px)) 0 clamp(48px, 8vh, 90px);
  background:
    radial-gradient(1000px 480px at 85% 0%, rgba(232, 184, 75, 0.08), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(227, 36, 43, 0.08), transparent 60%),
    #0a0a0c;
  border-bottom: 1px solid var(--line);
}
.game-hero .eyebrow { margin-bottom: 22px; }
.game-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(32px, 4vw, 60px);
  align-items: stretch;
}
.game-hero-left { display: flex; flex-direction: column; }
.game-id { display: flex; align-items: center; gap: 18px; margin: 0 0 18px; }
.game-icon {
  width: 116px;
  height: 116px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  flex: none;
}
.game-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
}
.game-title small {
  display: block;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-weight: 600;
  margin-top: 6px;
}
.game-desc { color: var(--muted); max-width: 52ch; }

.spec-list { margin-top: 12px; display: flex; flex-direction: column; }
.spec {
  display: grid;
  grid-template-columns: 26px 130px 1fr;
  gap: 14px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(245, 245, 243, 0.08);
  font-size: 14px;
}
.spec:last-child { border-bottom: 0; }
.spec svg { width: 20px; height: 20px; color: var(--gold); }
.spec dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec dd { color: var(--white); }
.game-hero .store-row { margin-top: 20px; padding-top: 0; }

/* Gallery: featured image + thumbnail carousel */
.gallery-main {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  background: var(--panel);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.55);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.35s ease; }
.gallery-main img.is-fading { opacity: 0; }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.gallery-thumbs button {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: var(--panel);
  aspect-ratio: 16 / 10;
  opacity: 0.55;
  transition: opacity 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumbs button:hover { opacity: 0.85; transform: translateY(-2px); }
.gallery-thumbs button.is-active { opacity: 1; border-color: var(--gold); }
.gallery-thumbs button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Section 2 — gameplay / objective */
.game-about { padding: clamp(64px, 10vh, 120px) 0; background: #050506; }
.game-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: stretch;
}
.about-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(160deg, rgba(232, 184, 75, 0.05), transparent 45%), var(--panel);
}
.about-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gold);
  margin: 14px 0 18px;
}
.about-panel > p { color: var(--muted); }
.about-panel h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red);
  margin: 30px 0 14px;
}
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: baseline; color: var(--muted); }
.feature-list li::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: translateY(-1px) rotate(45deg);
}
.gp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.gp-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(22px, 2.6vw, 32px);
  background: var(--panel);
  transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
}
.gp-card:hover { border-color: var(--gold); transform: translateY(-4px); background: var(--panel-2); }
.gp-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}
.gp-card p { font-size: 14px; color: var(--muted); }

/* Section 3 — how the story begins */
.game-story { padding: clamp(64px, 10vh, 120px) 0; background: #000; }
.game-story .story-head { max-width: 70ch; margin-bottom: clamp(30px, 5vh, 52px); }
.game-story h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 14px 0 12px;
}
.game-story .story-head p { color: var(--muted); }
.story-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 22px); }
.story-card {
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 24px 22px 26px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.story-card:hover { transform: translateY(-6px); border-color: rgba(232, 184, 75, 0.6); }
.story-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
.story-card > p { font-size: 13.5px; color: rgba(245, 245, 243, 0.9); margin-top: auto; margin-bottom: 14px; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9); }
.story-card ul { list-style: none; margin-top: 0; display: flex; flex-direction: column; gap: 8px; }
.story-card li { display: flex; gap: 9px; align-items: baseline; font-size: 12.5px; color: rgba(245, 245, 243, 0.82); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }
.story-card li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg) translateY(-1px); }
/* Color tints layered over the shared background image (set inline per game) */
.sc-blue   { --sc-grad: linear-gradient(200deg, rgba(23, 48, 78, 0.45) 0%, rgba(10, 16, 26, 0.78) 100%); background-image: var(--sc-grad); }
.sc-violet { --sc-grad: linear-gradient(200deg, rgba(42, 27, 82, 0.45) 0%, rgba(13, 8, 24, 0.78) 100%); background-image: var(--sc-grad); }
.sc-green  { --sc-grad: linear-gradient(200deg, rgba(20, 56, 31, 0.45) 0%, rgba(7, 16, 8, 0.78) 100%); background-image: var(--sc-grad); }
.sc-gold   { --sc-grad: linear-gradient(200deg, rgba(74, 58, 18, 0.45) 0%, rgba(21, 16, 5, 0.78) 100%); background-image: var(--sc-grad); }

/* Section 4 — FAQ */
.game-faq { padding: clamp(64px, 10vh, 120px) 0; background: #050506; }
.faq-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(26px, 4vw, 52px);
  background: var(--panel);
}
.faq-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  text-transform: uppercase;
  margin: 14px 0 26px;
}
.faq-item { border: 1px solid rgba(245, 245, 243, 0.1); border-radius: 12px; background: var(--panel-2); overflow: hidden; }
.faq-item + .faq-item { margin-top: 12px; }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: transparent;
  border: 0;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  text-align: left;
  transition: color 0.25s;
}
.faq-q:hover { color: var(--gold); }
.faq-q .plus { position: relative; width: 16px; height: 16px; flex: none; }
.faq-q .plus::before, .faq-q .plus::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--faq-icon, var(--gold));
  transition: transform 0.35s var(--ease);
}
.faq-q .plus::before { width: 16px; height: 2px; }
.faq-q .plus::after { width: 2px; height: 16px; }
.faq-item.is-open .faq-q .plus::after { transform: rotate(90deg); }
.faq-item.is-open .faq-q { color: var(--gold); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq-a p { padding: 0 22px 20px; font-size: 14.5px; color: var(--muted); }

/* Section 5 — CTA */
.game-cta { position: relative; padding: clamp(80px, 13vh, 150px) 0; overflow: hidden; }
.game-cta .cta-bg { position: absolute; inset: 0; background-position: center; background-size: cover; filter: brightness(0.32) saturate(0.9); transform: scale(1.04); }
.game-cta .container { position: relative; text-align: center; }
.game-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.game-cta p { margin-top: 10px; color: rgba(245, 245, 243, 0.85); }
.game-cta .store-row { justify-content: center; margin-top: 30px; }

@media (max-width: 1020px) {
  .story-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .game-hero-grid, .game-about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .gallery-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .story-cards { grid-template-columns: 1fr; }
  .gp-cards { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 26px 110px 1fr; }
}

/* Slide-out menu social icons */
.menu-bottom{margin-top:auto;}
.menu-socials{display:flex;gap:24px;justify-content:flex-start;align-items:center;margin:0 0 16px;}
.menu-socials a{color:var(--white,#f5f5f3);opacity:.82;transition:opacity .2s ease, transform .2s ease;}
.menu-socials a:hover{opacity:1;transform:translateY(-2px);}
.menu-socials svg{width:22px;height:22px;display:block;}

/* ============================================================
   Admin-editable colours & sizes (CSS variables set inline)
   ============================================================ */

/* Hero badges — per-badge icon and text colour */
.badge .badge-ico { display: flex; flex: none; }
.badge .badge-ico svg { width: 34px; height: 34px; color: inherit; }

/* Countdown */
.countdown .count-unit b { color: var(--cd-digit, var(--cyan)); }
.countdown .count-unit span { color: var(--cd-label, var(--gold)); }

/* Trailer play button */
.play-btn { background: var(--play-bg, var(--gold)); color: var(--play-ico, #141414); }
.play-btn svg { fill: var(--play-ico, #141414); stroke: var(--play-ico, #141414); }
.play-btn svg[stroke] { fill: none; }

/* About values — optional icon instead of the slash mark */
.value-ico { flex: none; display: flex; margin-top: 2px; }
.value-ico svg { width: 26px; height: 26px; }

/* Coverflow — hover glow, card text, arrows */
.games .cf-card[data-pos="center"]:hover {
  transform: translateX(-50%) translateZ(40px) rotateY(0) scale(1.025) translateY(var(--cf-lift, -10px));
  box-shadow: 0 50px 110px rgba(0, 0, 0, 0.75), 0 0 60px var(--cf-glow, rgba(56, 225, 222, 0.12));
}
.games .cf-card[data-pos="center"]:hover::after {
  border-color: var(--cf-glow, rgba(56, 225, 222, 0.55));
  box-shadow: inset 0 0 40px var(--cf-glow, rgba(56, 225, 222, 0.08));
}
.games .cf-label h3 { color: var(--cf-card-title, var(--white)); }
.games .cf-label .tag { color: var(--cf-card-tag, var(--cyan)); }
.games .cf-arrow {
  width: var(--cf-arrow-size, 52px);
  height: var(--cf-arrow-size, 52px);
  color: var(--cf-arrow, var(--white));
  border-color: color-mix(in srgb, var(--cf-arrow-border, #38e1de) 50%, transparent);
}
.games .cf-arrow svg { width: calc(var(--cf-arrow-size, 52px) * 0.42); height: calc(var(--cf-arrow-size, 52px) * 0.42); }
.games .cf-arrow:hover {
  color: var(--cf-arrow-hover, #a4121a);
  border-color: var(--cf-arrow-hover, #a4121a);
  box-shadow: 0 0 24px color-mix(in srgb, var(--cf-arrow-hover, #a4121a) 35%, transparent);
}

/* Footer links — colour, hover, size */
.site-footer .footer-col ul a {
  color: var(--f-link, var(--muted));
  font-size: var(--f-size, 14px);
  transition: color 0.25s ease;
}
.site-footer .footer-col ul a:hover { color: var(--f-link-hover, var(--red)); }
.site-footer .footer-col h5 { color: var(--f-head, var(--white)); }

/* Game page — editable bullet colours */
.feature-list li::before { background: var(--fl-mark, var(--gold)); }
.story-card li::before { background: var(--sc-mark, var(--gold)); }

/* Coverflow: highlight-on-hover switched off in the admin panel */
.games.no-glow .cf-card[data-pos="center"]:hover {
  box-shadow: 0 50px 110px rgba(0, 0, 0, 0.75);
}
.games.no-glow .cf-card[data-pos="center"]:hover::after {
  border-color: rgba(0, 0, 0, 0);
  box-shadow: none;
}

/* Offset section jumps for the fixed header */
#about, #games, #release, #contact { scroll-margin-top: var(--header-h, 84px); }

/* ============================================================
   RESPONSIVE / MOBILE PASS
   ============================================================ */

/* Global safety: never allow sideways scrolling, keep media contained */
html, body { overflow-x: hidden; max-width: 100%; }
img, video, svg { max-width: 100%; }
.container { width: min(1240px, 92%); }

/* Tablet / large phone */
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .section-pad, section { }
  .hero-sub { max-width: 100%; }
  .store-row { gap: 10px; }
  .about-title, .games-head h2, .section-title { font-size: clamp(26px, 6vw, 40px); }
}

/* Phones */
@media (max-width: 600px) {
  :root { --header-h: 60px; }
  .container { width: 90%; }

  /* Hero */
  .hero { min-height: 560px; }
  .hero-card { padding: 22px 20px; border-radius: 14px; }
  .hero-title { font-size: clamp(28px, 8.5vw, 40px); }
  .hero-sub { font-size: 14px; margin-top: 12px; }
  .store-row { margin-top: 20px; }
  .store-btn { flex: 1 1 100%; justify-content: center; }
  .hero-badges-wrap { margin-top: 20px; }
  .hero-badges { flex-wrap: wrap; }

  /* Countdown — keep three units on one row on small screens */
  .countdown { gap: 14px; }
  .count-unit b { font-size: clamp(30px, 11vw, 44px); }
  .count-unit span { font-size: 11px; letter-spacing: 0.04em; }

  /* Coverflow — smaller, hide the angled side cards to avoid clutter/overflow */
  .coverflow { height: clamp(300px, 82vw, 420px); }
  .cf-card { width: min(340px, 82vw); }
  .cf-card[data-pos="left"], .cf-card[data-pos="right"] { opacity: 0; pointer-events: none; }
  .cf-arrows { gap: 10px; }

  /* About */
  .about-stats .stat b { font-size: clamp(26px, 9vw, 40px); }
  .value { gap: 12px; }

  /* Contact */
  .contact-form input, .contact-form textarea, .contact-form button { font-size: 16px; } /* 16px stops iOS zoom-on-focus */

  /* Section rhythm — a touch tighter vertically */
  .coming, .about, .games, .contacts, #release { padding-top: 56px; padding-bottom: 56px; }

  /* Footer */
  .footer-grid { gap: 26px; }

  /* Drawer menu links a bit smaller so long words fit */
  .menu-nav a { font-size: clamp(30px, 11vw, 44px); }
}

/* Small phones */
@media (max-width: 400px) {
  .hero-title { font-size: clamp(24px, 9vw, 32px); }
  .count-unit b { font-size: 28px; }
  .countdown { gap: 10px; }
  .badge { padding: 12px 14px; }
  .cf-card { width: 86vw; }
}

/* Coarse-pointer (touch) devices: give tap targets a comfortable minimum */
@media (hover: none) and (pointer: coarse) {
  .store-btn, .cf-arrow, .play-btn, .btn, .hamburger, .menu-close { min-height: 44px; }
  .cf-arrow { min-width: 44px; }
}

/* Game subpages + legal — phone refinements */
@media (max-width: 600px) {
  .game-title { font-size: clamp(30px, 9vw, 44px); }
  .game-icon { width: 84px; height: 84px; }
  .gallery-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .faq-item .faq-q { font-size: 15px; }
  .cta-panel, .game-cta { text-align: center; }
  .legal-hero h1 { font-size: clamp(28px, 8vw, 44px); }
  .legal-body { padding: 40px 0; }
  .legal-body h2 { font-size: 19px; }
}
@media (max-width: 460px) {
  .spec { grid-template-columns: 24px 1fr; row-gap: 2px; }  /* icon + label; value wraps below label */
  .spec dd { grid-column: 2; }
}
