/* gameaday.fun — global styles */
:root {
  --bg: #faf8f4;
  --surface: #fff;
  --surface-alt: #f2efe8;
  --border: #e4dfd4;
  --text: #1a1a1a;
  --text-dim: #8a8478;
  --accent: #ff5c00;
  --accent-soft: #fff0e8;
  --success: #1a8c5e;
  --radius-lg: 14px;
  --radius-md: 8px;
  --radius-pill: 100px;
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  --font: 'Figtree', system-ui, sans-serif;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
}

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  border-bottom: 1.5px solid var(--border);
  border-top: 3px solid var(--accent);
  background: var(--surface);
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
}
.site-logo .tld { color: var(--accent); }

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.date-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--surface-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}

.streak-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
}

/* ─── Main content ────────────────────────────────────────────────────────── */
.site-main {
  flex: 1;
}

/* ─── Game frame ──────────────────────────────────────────────────────────── */
.game-frame {
  width: 100%;
  border: none;
  display: block;
  height: calc(100dvh - 52px);
  overflow: hidden;
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1.5px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-dim);
  background: var(--surface);
}

.site-footer a {
  color: var(--text-dim);
  text-decoration: none;
}
.site-footer a:hover { color: var(--accent); }

/* ─── Archive page ────────────────────────────────────────────────────────── */
.page-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 20px;
}

.page-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.page-subtitle {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.archive-list {
  display: flex;
  flex-direction: column;
}

.archive-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: color 0.15s;
}
.archive-item:first-child { border-top: 1px solid var(--border); }
.archive-item:hover .archive-title { color: var(--accent); }

.archive-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

.archive-title { font-size: 15px; font-weight: 600; }

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.page-btn {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ─── Error page ──────────────────────────────────────────────────────────── */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 40px 20px;
}
.error-emoji { font-size: 64px; margin-bottom: 16px; }
.error-title { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.error-text { font-size: 16px; color: var(--text-dim); max-width: 360px; line-height: 1.6; }

/* ─── Loading state ───────────────────────────────────────────────────────── */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--text-dim);
  font-size: 14px;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
