/* ═══════════════════════════════════════════════
   STRANGE HOUR GAMES — STYLESHEET
   Dark arena aesthetic. Bebas Neue + Crimson Pro.
   ═══════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────── */
:root {
  --bg:          #07070f;
  --surface:     #0e0e1c;
  --surface-2:   #141428;
  --border:      rgba(255, 255, 255, 0.07);
  --border-hot:  rgba(232, 168, 50, 0.25);

  --amber:       #e8a832;
  --amber-glow:  rgba(232, 168, 50, 0.18);
  --amber-dim:   rgba(232, 168, 50, 0.08);
  --ember:       #ff5c2a;

  --text:        #f0ede8;
  --text-muted:  #7a748e;
  --text-dim:    #3d3a52;

  --font-display: 'Bebas Neue', 'Arial Narrow', Arial, sans-serif;
  --font-body:    'Crimson Pro', Georgia, 'Times New Roman', serif;

  --transition:  0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --radius:      6px;
}

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Grain Overlay ──────────────────────────── */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── Pulse Dot ──────────────────────────────── */
.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--amber);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2.2s ease-in-out infinite;
}
.pulse-dot-green { background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, 0.5); }
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--amber-glow); }
  50%       { opacity: 0.6; box-shadow: 0 0 0 5px transparent; }
}

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--amber);
  color: #0a0a14;
  font-weight: 700;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
}
.btn-primary:hover {
  background: #f0b840;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 168, 50, 0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-dim);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 9px 18px;
  font-size: 0.95rem;
}
.btn-icon { font-size: 0.8em; }

/* ══════════════════════════════════════════════
   NAV
══════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 7, 15, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color var(--transition);
}
.nav-logo:hover { color: var(--amber); }
.nav-logo-icon { font-size: 1.2em; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 7px 14px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: color var(--transition);
}
.nav-link:hover { color: var(--text); }
.nav-cta {
  color: var(--amber);
  border: 1px solid var(--border-hot);
  padding: 7px 16px;
}
.nav-cta:hover {
  background: var(--amber-dim);
  color: var(--amber);
}

/* Mobile nav toggle */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(7, 7, 15, 0.97);
  border-top: 1px solid var(--border);
  padding: 8px 0 16px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-link {
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-mobile-link:hover { color: var(--amber); }

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 32px 80px;
  overflow: hidden;
}

/* Atmospheric background glow */
.hero-bg-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(
    ellipse at 50% 40%,
    rgba(232, 168, 50, 0.09) 0%,
    rgba(255, 92, 42, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* Subtle grid lines */
.hero-grid-lines {
  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: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
}

/* Live badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  background: rgba(232, 168, 50, 0.08);
  border: 1px solid rgba(232, 168, 50, 0.2);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--amber);
  margin-bottom: 36px;
  animation: fadeInDown 0.8s ease both;
}

/* Title */
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
  line-height: 0.88;
  animation: fadeInUp 0.8s ease 0.15s both;
}
.hero-title-top {
  font-family: var(--font-display);
  font-size: clamp(72px, 12vw, 148px);
  letter-spacing: 0.04em;
  color: var(--text);
  display: block;
}
.hero-title-bottom {
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 176px);
  letter-spacing: 0.04em;
  color: var(--amber);
  display: block;
  position: relative;
  text-shadow: 0 0 80px rgba(232, 168, 50, 0.3);
}

/* Tagline */
.hero-tagline {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 44px;
  font-weight: 300;
  animation: fadeInUp 0.8s ease 0.3s both;
}

/* CTAs */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  animation: fadeInUp 0.8s ease 0.45s both;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color var(--transition);
  animation: fadeIn 1.2s ease 1s both;
  z-index: 1;
}
.hero-scroll-hint:hover { color: var(--text-muted); }
.hero-scroll-hint svg {
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ══════════════════════════════════════════════
   GAMES SECTION
══════════════════════════════════════════════ */
.games-section {
  padding: 120px 32px;
  position: relative;
}
.section-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Section header */
.section-header { margin-bottom: 16px; }
.section-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
  font-weight: 400;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: 0.03em;
  line-height: 1.05;
  color: var(--text);
}

/* ── Game Card Base ─────────────────────────── */
.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.game-card:hover {
  border-color: rgba(232, 168, 50, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ── Featured Card (Gladiator 3D) ───────────── */
.game-card-featured {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 420px;
}
.game-card-media {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* GIF placeholder grid */
.game-gif-grid {
  display: grid;
  grid-template-rows: 1fr 1fr;
  height: 100%;
  gap: 3px;
}
.game-gif-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 16px;
  min-height: 150px;
  overflow: hidden;
}
/* Arena GIF placeholder */
.game-gif-arena {
  background: linear-gradient(155deg, #160808 0%, #3a1005 45%, #1c0a08 100%);
}
.game-gif-arena::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(255, 92, 42, 0.2) 0%, transparent 70%),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.015) 0px,
      rgba(255,255,255,0.015) 1px,
      transparent 1px,
      transparent 40px
    );
}
/* Combat GIF placeholder */
.game-gif-combat {
  background: linear-gradient(155deg, #0a0e1a 0%, #1a2240 45%, #0c1120 100%);
}
.game-gif-combat::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 30% 70%, rgba(232, 168, 50, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 30%, rgba(255, 92, 42, 0.1) 0%, transparent 60%);
}

/* Actual images/GIFs drop in as siblings to the placeholder styles */
.game-gif-grid img,
.game-gif-grid video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  font-weight: 300;
}
.placeholder-hint {
  position: relative;
  z-index: 1;
  font-family: monospace;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.15);
  margin-top: 4px;
}

/* Game card info panel */
.game-card-info {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

/* Status badges */
.game-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  font-weight: 400;
  width: fit-content;
}
.game-status-live {
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
  color: #4ade80;
}
.game-status-wip {
  background: rgba(165, 148, 249, 0.08);
  border: 1px solid rgba(165, 148, 249, 0.2);
  color: #a594f9;
}
.wip-icon { font-size: 0.9em; }

/* Game name */
.game-name {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1;
}

/* Game pitch */
.game-pitch {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
}

/* Tags */
.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  padding: 4px 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 400;
}

/* Game CTA buttons */
.game-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

/* ── Secondary Card (Sakura Shadows) ────────── */
.game-card-secondary {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  min-height: 300px;
}
.game-img-single {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 16px;
  overflow: hidden;
  min-height: 240px;
}
.game-img-sakura {
  background: linear-gradient(155deg, #080a1a 0%, #160c28 35%, #2a1240 65%, #1a0a20 100%);
}
.game-img-sakura::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 60%, rgba(200, 100, 180, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 20% 30%, rgba(100, 80, 220, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 80% 80%, rgba(255, 180, 200, 0.08) 0%, transparent 50%);
}
.game-img-sakura::after {
  content: '🌸';
  position: absolute;
  font-size: 64px;
  opacity: 0.06;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  filter: blur(2px);
}
.game-img-single img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Future Teaser ──────────────────────────── */
.future-teaser {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 56px 40px;
  text-align: center;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 30px,
    rgba(255,255,255,0.008) 30px,
    rgba(255,255,255,0.008) 60px
  );
  transition: border-color var(--transition);
}
.future-teaser:hover { border-color: var(--border-hot); }
.future-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.future-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: futurePulse 2.5s ease-in-out infinite;
}
.future-dot:nth-child(2) { animation-delay: 0.3s; }
.future-dot:nth-child(3) { animation-delay: 0.6s; }
@keyframes futurePulse {
  0%, 100% { background: var(--text-dim); }
  50%       { background: var(--amber); }
}
.future-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.future-sub {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.future-follow {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 32px 48px;
  background: var(--surface);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: var(--text);
}
.footer-tagline {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Social links in footer */
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
  max-width: 540px;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.footer-social-link:hover {
  color: var(--amber);
  background: var(--amber-dim);
}
.footer-social-link svg { flex-shrink: 0; }

/* Footer bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer-email {
  margin-left: auto;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-email:hover { color: var(--amber); }

/* ══════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* Hero animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .game-card-featured {
    grid-template-columns: 1fr;
  }
  .game-gif-grid {
    grid-template-rows: none;
    grid-template-columns: 1fr 1fr;
    height: 220px;
  }
  .game-card-secondary {
    grid-template-columns: 1fr;
  }
  .game-img-single { min-height: 200px; }
  .footer-socials { justify-content: flex-start; }
  .footer-email { margin-left: 0; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }

  .hero { padding: 100px 20px 70px; }
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
  .hero-ctas .btn { width: 100%; max-width: 320px; justify-content: center; }

  .games-section { padding: 80px 20px; }
  .game-card-info { padding: 28px 24px; }
  .game-gif-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    height: 240px;
  }

  .future-teaser { padding: 40px 24px; }
  .footer { padding: 48px 20px 36px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .footer-email { margin-left: 0; }
}

@media (max-width: 400px) {
  .hero-title-top  { font-size: 60px; }
  .hero-title-bottom { font-size: 72px; }
}
