/* ── Reset & Base ────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a1a;
  --bg-elev: #11112a;
  --bg-card: #161635;
  --accent: #f7971e;
  --accent-glow: #ffd200;
  --text: #e0e0f0;
  --text-dim: #8888aa;
  --border: rgba(255,255,255,0.08);
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ──────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: linear-gradient(180deg, rgba(10,10,26,0.95) 60%, transparent);
  backdrop-filter: blur(12px);
}

.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
}
.logo .claw { color: var(--text); }
.logo .play {
  background: linear-gradient(135deg, var(--accent), var(--accent-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s;
}
nav a:hover { color: var(--accent); text-decoration: none; }

/* ── Hero ────────────────────────────────────── */
.hero {
  padding: 120px 32px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.badge {
  background: linear-gradient(135deg, var(--accent), var(--accent-glow));
  color: var(--bg);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.date {
  color: var(--text-dim);
  font-size: 14px;
}

.game-showcase {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.game-preview {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
}

.game-preview canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,26,0.6);
  opacity: 0;
  transition: opacity 0.3s;
}

.game-preview:hover .play-overlay {
  opacity: 1;
}

.play-btn {
  padding: 14px 36px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-glow));
  color: var(--bg);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
  box-shadow: 0 4px 20px rgba(247,151,30,0.3);
}

.play-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.game-info h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}

.tagline {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.twist-badge {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card);
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.twist-icon {
  font-size: 24px;
  line-height: 1;
}

.twist-text {
  font-size: 15px;
  color: var(--text);
  font-style: italic;
}

.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Archive ──────────────────────────────────── */
.archive {
  padding: 60px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.archive h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
}

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

.game-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  border-color: rgba(247,151,30,0.3);
}

.game-card .thumb {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--bg-elev);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}

.game-card .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,10,26,0.8));
}

.game-card.upcoming .thumb {
  opacity: 0.5;
}

.game-card.upcoming {
  cursor: default;
  opacity: 0.7;
}

.game-card.upcoming:hover {
  transform: none;
  border-color: var(--border);
}

.today-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-glow));
  color: var(--bg);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  z-index: 2;
}

.soon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,26,0.7);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  z-index: 3;
}

.game-card .card-info {
  padding: 16px 20px;
}

.game-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.game-card p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.game-card .card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.game-card .card-date {
  font-size: 12px;
  color: var(--text-dim);
}

.game-card .card-tag {
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(247,151,30,0.15);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}

/* ── About ───────────────────────────────────── */
.about {
  padding: 60px 32px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.about p {
  color: var(--text-dim);
  margin-bottom: 12px;
}

/* ── Footer ─────────────────────────────────── */
footer {
  padding: 40px 32px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  border-top: 1px solid var(--border);
}

/* ── Modal ───────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,10,26,0.95);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 960px;
  height: 90vh;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background: rgba(255,50,50,0.6);
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  header { padding: 12px 20px; }
  nav { gap: 16px; }
  nav a { font-size: 12px; }
  
  .hero { padding: 100px 20px 40px; }
  .game-showcase { grid-template-columns: 1fr; }
  .game-info h1 { font-size: 32px; }
  
  .archive { padding: 40px 20px; }
  .game-grid { grid-template-columns: 1fr; }
  
  .modal-content { height: 95vh; border-radius: 12px; }
}
