/* ===========================
   NIGHTIME GAMES — STYLESHEET
   =========================== */

:root {
  --black:     #070709;
  --deep:      #0d0d11;
  --surface:   #111116;
  --surface2:  #18181f;
  --border:    rgba(255,255,255,0.06);
  --gold:      #c9a84c;
  --gold-dim:  #8a6f2e;
  --gold-glow: rgba(201,168,76,0.15);
  --text:      #e8e4dc;
  --text-muted: #7a7570;
  --text-dim:  #3a3835;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --radius: 4px;
  --radius-lg: 10px;
  --max-w: 960px;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--black);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- UTILITY ---- */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- HERO ---- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, rgba(201,168,76,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(13,13,17,0.8) 0%, transparent 60%),
    linear-gradient(180deg, var(--black) 0%, var(--deep) 100%);
  z-index: 0;
}

/* subtle card-felt texture overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.008) 2px,
      rgba(255,255,255,0.008) 4px
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.logo-mark {
  width: 64px;
  height: 64px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
  box-shadow: 0 0 32px var(--gold-glow), inset 0 0 20px rgba(201,168,76,0.05);
  margin-bottom: 8px;
}

.studio-name {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--text);
  text-shadow: 0 2px 40px rgba(0,0,0,0.8);
}

.tagline {
  font-family: var(--font-sans);
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  text-decoration: none;
  opacity: 0.4;
  animation: bob 2.5s ease-in-out infinite;
  z-index: 1;
  transition: opacity 0.2s;
}
.scroll-hint:hover { opacity: 0.8; }

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ---- SECTIONS ---- */

.section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.section--subtle {
  padding: 64px 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--deep) 100%);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
  margin-bottom: 48px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.section-title--small {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.section-title--small::after { display: none; }

/* ---- GAMES GRID ---- */

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.game-card {
  position: relative;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  cursor: default;
}

.game-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}

.game-card:hover .game-card-glow {
  opacity: 1;
}

.game-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--gold-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.game-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1a1a22, #0e0e14);
  border: 1px solid rgba(201,168,76,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.card-suit {
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 16px var(--gold-glow);
}

.game-info {
  position: relative;
  z-index: 1;
}

.game-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.game-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.game-badge {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 100px;
  padding: 3px 10px;
  display: inline-block;
}

/* ---- UTILS ---- */

.utils-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-weight: 300;
  letter-spacing: 0.05em;
  max-width: 400px;
}

/* ---- FOOTER ---- */

.footer {
  border-top: 1px solid var(--border);
  background: var(--black);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 48px;
  padding-bottom: 48px;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand { display: flex; flex-direction: column; gap: 4px; }

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}

.footer-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--gold); }
.footer-link--dim { color: var(--text-dim); font-size: 0.78rem; }
.footer-link--dim:hover { color: var(--text-muted); }

.footer-copy {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}

.footer-copy p {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { align-items: flex-start; }
}
