/* ============================================================
   THROWDOWN GAMES — Main Stylesheet
   Retro arcade studio aesthetic
   ============================================================ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { text-decoration: none; }

/* ── DESIGN TOKENS ── */
:root {
  --bg:         #08080f;
  --surface:    #0e0e1a;
  --card:       #141427;
  --border:     rgba(230, 60, 20, 0.22);
  --border-sub: rgba(255, 255, 255, 0.05);

  --fire:  #e63c14;
  --gold:  #ffb700;
  --cyan:  #00deff;
  --white: #f0f0f0;
  --muted: #6e6e90;

  --fire-glow: rgba(230, 60, 20, 0.35);
  --gold-glow: rgba(255, 183, 0, 0.3);
  --cyan-glow: rgba(0, 222, 255, 0.25);

  --px: 'Press Start 2P', monospace;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* ── SCANLINES ── */
.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.065) 3px,
    rgba(0, 0, 0, 0.065) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ── LAYOUT ── */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 36px;
}

/* ════════════════════════════════════
   HEADER
════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(8, 8, 15, 0.97);
  border-bottom: 2px solid var(--fire);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hdr-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 13px;
  padding-bottom: 13px;
}

.hdr-logo img {
  height: 76px;
  width: auto;
  filter: drop-shadow(0 0 12px var(--fire-glow));
  transition: filter 0.25s;
}
.hdr-logo:hover img {
  filter: drop-shadow(0 0 22px rgba(230, 60, 20, 0.65));
}

.hdr-nav {
  display: flex;
  gap: 40px;
  align-items: center;
}

.hdr-nav a {
  font-family: var(--px);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.14em;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.hdr-nav a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ════════════════════════════════════
   TICKER
════════════════════════════════════ */
.ticker {
  background: var(--fire);
  height: 36px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker-roll 30s linear infinite;
  font-family: var(--px);
  font-size: 8px;
  color: #fff;
  letter-spacing: 0.14em;
}

.ticker-track span { padding: 0 20px; }
.ticker-track .sep { color: var(--gold); padding: 0 6px; }

@keyframes ticker-roll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ════════════════════════════════════
   HERO
════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Pixel grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

/* Radial glows */
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 65% at 28% 55%, rgba(230, 60, 20, 0.09) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 72% 28%, rgba(255, 183, 0, 0.055) 0%, transparent 65%);
  pointer-events: none;
}

.hero-wrap {
  position: relative;
  z-index: 2;
  padding-top: 90px;
  padding-bottom: 90px;
}

.hero-eyebrow {
  font-family: var(--px);
  font-size: 9px;
  color: var(--cyan);
  letter-spacing: 0.26em;
  margin-bottom: 38px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--cyan);
  flex-shrink: 0;
}

.hero-h1 {
  font-family: var(--px);
  font-size: clamp(20px, 4.2vw, 50px);
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 30px;
}

.hero-h1 em {
  font-style: normal;
  color: var(--fire);
  text-shadow:
    4px 4px 0 var(--gold),
    0 0 48px rgba(230, 60, 20, 0.45);
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 56px;
  letter-spacing: 0.04em;
}

/* Bottom zigzag decor */
.hero-zigzag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}

/* ════════════════════════════════════
   BUTTONS
════════════════════════════════════ */
.btn {
  display: inline-block;
  font-family: var(--px);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 17px 30px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, color 0.15s, background 0.15s;
}

.btn-fire {
  background: var(--fire);
  color: #fff;
  border: 2px solid var(--fire);
  box-shadow: 5px 5px 0 var(--gold);
}
.btn-fire:hover {
  background: #c93510;
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--gold);
}
.btn-fire:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--gold);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--muted);
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.07);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(255, 183, 0, 0.28);
}

.btn-steam {
  background: #1b2838;
  color: #c7d5e0;
  border: 2px solid #4c6b8a;
  box-shadow: 4px 4px 0 #4c6b8a;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-steam-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}
.btn-steam:hover {
  background: #2a475e;
  border-color: #66c0f4;
  color: #fff;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #66c0f4;
}

/* ════════════════════════════════════
   SECTION COMMONS
════════════════════════════════════ */
section { padding: 104px 0; }

.sec-hdr { margin-bottom: 56px; }

.sec-label {
  font-family: var(--px);
  font-size: 9px;
  color: var(--fire);
  letter-spacing: 0.28em;
  display: block;
  margin-bottom: 16px;
}

.sec-title {
  font-family: var(--px);
  font-size: clamp(16px, 2.4vw, 26px);
  color: var(--white);
  line-height: 1.5;
}

/* ════════════════════════════════════
   GAMES SECTION
════════════════════════════════════ */
.games-section {
  background: var(--surface);
  border-top: 1px solid var(--border-sub);
  border-bottom: 1px solid var(--border-sub);
}

/* Game card */
.game-card {
  display: grid;
  grid-template-columns: 380px 1fr;
  background: var(--card);
  border: 2px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.game-card:hover {
  border-color: var(--fire);
  box-shadow:
    0 0 70px rgba(230, 60, 20, 0.1),
    8px 8px 0 var(--gold);
}

/* Top gradient accent bar */
.gc-accent-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--fire) 0%, var(--gold) 100%);
  z-index: 1;
}

/* Logo side */
.gc-logo {
  background: #090912;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 48px;
  border-right: 2px solid var(--border);
  margin: 0;
}
.gc-logo img {
  max-width: 270px;
  width: 100%;
  filter: drop-shadow(0 0 28px rgba(20, 100, 230, 0.38));
  transition: filter 0.3s, transform 0.35s;
}
.game-card:hover .gc-logo img {
  filter: drop-shadow(0 0 44px rgba(30, 140, 255, 0.58));
  transform: scale(1.05);
}

/* Info side */
.gc-body {
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gc-status {
  font-family: var(--px);
  font-size: 8px;
  color: var(--gold);
  letter-spacing: 0.22em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pulse-dot {
  display: block;
  width: 9px;
  height: 9px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 183, 0, 0.6); }
  50%       { opacity: 0.65; box-shadow: 0 0 0 6px rgba(255, 183, 0, 0); }
}

.gc-name {
  font-family: var(--px);
  font-size: clamp(20px, 2.8vw, 32px);
  color: var(--white);
  line-height: 1.3;
}

.gc-sub {
  font-family: var(--px);
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 0.18em;
  margin-top: -12px;
}

.gc-desc {
  color: var(--muted);
  line-height: 1.8;
  max-width: 480px;
  font-size: 14.5px;
}

.gc-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  font-family: var(--px);
  font-size: 7px;
  padding: 7px 13px;
  border: 1px solid rgba(0, 222, 255, 0.3);
  color: var(--cyan);
  letter-spacing: 0.1em;
  background: rgba(0, 222, 255, 0.04);
}

.games-footnote {
  margin-top: 36px;
  font-family: var(--px);
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-align: center;
}
.games-footnote span {
  color: var(--fire);
}

/* ════════════════════════════════════
   STUDIO SECTION
════════════════════════════════════ */
.studio-section {
  background: var(--bg);
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.studio-text p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 22px;
}
.studio-text p:last-child { margin-bottom: 0; }
.studio-text strong {
  color: var(--fire);
  font-weight: 700;
}

/* Stats grid */
.studio-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.stat-box {
  background: var(--card);
  border: 1px solid var(--border-sub);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.stat-box:hover {
  border-color: rgba(230, 60, 20, 0.4);
  box-shadow: 3px 3px 0 var(--gold);
}

.stat-num {
  font-family: var(--px);
  font-size: 28px;
  color: var(--fire);
  text-shadow: 2px 2px 0 var(--gold);
  line-height: 1;
}

.stat-lbl {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ════════════════════════════════════
   CONTACT SECTION
════════════════════════════════════ */
.contact-section {
  background: var(--surface);
  border-top: 1px solid var(--border-sub);
}

.contact-inner {
  text-align: center;
}

.contact-inner .sec-title {
  margin-top: 0;
  margin-bottom: 0;
}

.contact-sub {
  color: var(--muted);
  font-size: 16px;
  margin: 22px auto 44px;
  max-width: 400px;
  letter-spacing: 0.04em;
}

/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
.site-footer {
  background: #040409;
  border-top: 2px solid var(--fire);
  padding: 36px 0;
}

.ftr-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ftr-logo {
  height: 38px;
  width: auto;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.ftr-logo:hover { opacity: 1; }

.ftr-copy {
  font-family: var(--px);
  font-size: 7px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.ftr-links {
  display: flex;
  gap: 28px;
}
.ftr-links a {
  font-family: var(--px);
  font-size: 7px;
  color: var(--muted);
  letter-spacing: 0.1em;
  transition: color 0.2s;
}
.ftr-links a:hover { color: var(--gold); }

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 960px) {
  .game-card {
    grid-template-columns: 1fr;
  }
  .gc-logo {
    border-right: none;
    border-bottom: 2px solid var(--border);
    padding: 48px 32px;
  }
  .gc-body {
    padding: 40px 36px;
  }
  .studio-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }
}

@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  section { padding: 72px 0; }

  .hdr-logo img { height: 42px; }
  .hdr-nav { gap: 20px; }
  .hdr-nav a { font-size: 7px; }

  .hero-h1 { font-size: 18px; }
  .hero-sub { font-size: 15px; }

  .studio-stats { grid-template-columns: 1fr 1fr; }

  .ftr-wrap {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

@media (max-width: 420px) {
  .studio-stats { grid-template-columns: 1fr; }
  .hdr-nav { gap: 14px; }
}
