/* ============================================================
   GlobleAnswer — styled to match Globle's dark-navy globe look
   Primary: deep navy sky
   Accent : warm "hot" red/orange (proximity cue)
   Detail : soft cedar green (nod to the country of the day)
   ============================================================ */

:root {
  --bg: #0a1a33;
  --bg-2: #0e2143;
  --bg-3: #132a55;
  --surface: #14305f;
  --surface-2: #1a3a72;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #eaf1ff;
  --text-muted: #9fb3d1;
  --text-dim: #6f86a8;

  --hot: #ff4d4d;        /* closest — deep red */
  --warm: #ff8a3d;       /* medium — orange */
  --cool: #ffd36e;       /* far — pale yellow */
  --accent: #ffb23d;     /* primary CTA / amber */
  --accent-strong: #ffc657;
  --success: #3ecf8e;    /* correct answer green (like Globle) */

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 800px at 80% -10%, #1c3e82 0%, transparent 60%),
              radial-gradient(900px 600px at -10% 20%, #15326a 0%, transparent 55%),
              linear-gradient(180deg, #07132a 0%, #0a1a33 40%, #081428 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img { max-width: 100%; display: block; }

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.muted { color: var(--text-muted); }
.small { font-size: 0.875rem; }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(10, 26, 51, 0.75);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--text);
}
.logo-globe {
  width: 34px; height: 34px;
  filter: drop-shadow(0 2px 8px rgba(255, 178, 61, 0.35));
}
.globe-body { fill: #0e2143; stroke: var(--accent); stroke-width: 2.5; }
.globe-lines { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0.7; }
.globe-hot { fill: var(--hot); opacity: 0.9; }
.globe-warm { fill: var(--warm); opacity: 0.85; }

.logo-text { font-size: 1.2rem; }
.logo-accent { color: var(--accent); margin-left: 2px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.site-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--text); }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--hot), var(--warm));
  color: #1a0a00;
  box-shadow: 0 10px 24px rgba(255, 77, 77, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 14px 32px rgba(255, 77, 77, 0.5);
  color: #1a0a00;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===================== HERO ===================== */
.hero {
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(255, 178, 61, 0.35);
  border-radius: 999px;
  background: rgba(255, 178, 61, 0.08);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--accent); }

.hero-lead {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 52ch;
  margin: 0 0 1.8rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 1.4rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Globe visual */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.globe-wrap {
  position: relative;
  width: min(420px, 90%);
  aspect-ratio: 1;
}

.globe {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #2b5cb0 0%, #12357a 35%, #071a42 75%, #03091e 100%);
  box-shadow:
    inset -20px -30px 60px rgba(0, 0, 0, 0.55),
    inset 20px 20px 50px rgba(120, 180, 255, 0.12),
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  animation: spin 30s linear infinite;
}

.globe-grid {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-linear-gradient(0deg, transparent 0 24px, rgba(255, 255, 255, 0.08) 24px 25px),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(255, 255, 255, 0.06) 24px 25px);
  mask: radial-gradient(circle at 50% 50%, black 62%, transparent 72%);
}

.hotspot {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
  mix-blend-mode: screen;
}
.hotspot-target {
  width: 14px; height: 14px;
  top: 38%; left: 58%;
  background: var(--hot);
  box-shadow: 0 0 0 6px rgba(255, 77, 77, 0.35), 0 0 30px rgba(255, 77, 77, 0.7);
  animation: pulse 2s ease-in-out infinite;
}
.hotspot-hot {
  width: 60px; height: 60px;
  top: 32%; left: 50%;
  background: radial-gradient(circle, rgba(255, 77, 77, 0.55), transparent 70%);
}
.hotspot-warm {
  width: 90px; height: 90px;
  top: 48%; left: 40%;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.35), transparent 70%);
}
.hotspot-cool {
  width: 110px; height: 110px;
  top: 18%; left: 22%;
  background: radial-gradient(circle, rgba(255, 211, 110, 0.18), transparent 70%);
}

.globe-shadow {
  position: absolute;
  left: 10%; right: 10%; bottom: -8%;
  height: 30px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 70%);
  filter: blur(6px);
  z-index: -1;
}

@keyframes spin {
  from { background-position: 0 0; }
  to   { background-position: 200px 0; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.3); opacity: 0.75; }
}

/* ===================== SECTIONS ===================== */
.section {
  padding: 4rem 0;
}
.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.section-head p {
  max-width: 62ch;
  margin: 0 auto;
}
.section-foot {
  text-align: center;
  margin-top: 2rem;
}

/* ===================== ANSWER CARD ===================== */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.card-header h2 { margin: 0 0 0.4rem; font-size: 1.6rem; letter-spacing: -0.01em; }
.card-header .muted { margin: 0 0 1.4rem; }

.hints-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}

.hint {
  position: relative;
  padding: 1.2rem 0.9rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 112px;
  font: inherit;
  overflow: hidden;
}
.hint::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(255, 178, 61, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.hint:hover { transform: translateY(-2px); border-color: rgba(255, 178, 61, 0.45); }
.hint:hover::before { opacity: 1; }

.hint-num {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.hint-label {
  font-weight: 700;
  font-size: 1.05rem;
}
.hint-peek {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: auto;
}
.hint.revealed {
  background: linear-gradient(180deg, rgba(255, 77, 77, 0.18), rgba(255, 138, 61, 0.06));
  border-color: rgba(255, 138, 61, 0.55);
}
.hint.revealed .hint-peek {
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
}

/* Heat gradient on the hints row — mirrors the game's proximity scale */
.hint:nth-child(1) .hint-num { color: #ffd36e; }
.hint:nth-child(2) .hint-num { color: #ffb23d; }
.hint:nth-child(3) .hint-num { color: #ff8a3d; }
.hint:nth-child(4) .hint-num { color: #ff6a4d; }
.hint:nth-child(5) .hint-num { color: #ff4d4d; }

/* Answer reveal */
.answer-reveal {
  text-align: center;
  padding: 1.6rem 0 0;
}
.answer-reveal h3 {
  font-size: 1.2rem;
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-weight: 600;
}

.answer-box {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(62, 207, 142, 0.08), rgba(255, 178, 61, 0.06));
  border: 2px dashed rgba(62, 207, 142, 0.35);
  cursor: pointer;
  color: var(--text);
  font: inherit;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.answer-box:hover {
  border-color: var(--success);
  transform: translateY(-2px);
}

.answer-hidden {
  display: block;
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.answer-shown { display: none; }

.answer-box.revealed {
  background: linear-gradient(135deg, rgba(62, 207, 142, 0.18), rgba(62, 207, 142, 0.05));
  border-style: solid;
  border-color: var(--success);
  box-shadow: 0 0 0 6px rgba(62, 207, 142, 0.15), 0 16px 40px rgba(62, 207, 142, 0.25);
}
.answer-box.revealed .answer-hidden { display: none; }
.answer-box.revealed .answer-shown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.flag {
  font-size: 2.5rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}
.answer-name {
  font-size: 2rem;
  font-weight: 800;
  color: var(--success);
  letter-spacing: -0.01em;
}
.answer-sub {
  width: 100%;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 0.2rem;
}

.answer-note {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ===================== COUNTDOWN ===================== */
.countdown-card {
  text-align: center;
  padding: 2.2rem 1.4rem;
  background: linear-gradient(180deg, rgba(255, 178, 61, 0.08), rgba(255, 77, 77, 0.04));
  border: 1px solid rgba(255, 178, 61, 0.22);
  border-radius: var(--radius-lg);
}
.countdown-card h2 { margin: 0 0 0.4rem; }
.countdown {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.4rem;
}
.cd-unit {
  min-width: 92px;
  padding: 1rem 0.8rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cd-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}
.cd-label {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cd-sep {
  font-size: 1.8rem;
  color: var(--text-dim);
  font-weight: 700;
}

/* ===================== ARCHIVE ===================== */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.archive-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.archive-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 178, 61, 0.45);
  background: linear-gradient(180deg, rgba(255, 178, 61, 0.08), rgba(255, 255, 255, 0.02));
  color: var(--text);
}

.archive-num {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #2b5cb0, #0e2143);
  border: 1px solid rgba(255, 178, 61, 0.35);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent-strong);
}

/* Tear-off calendar tile used in archive cards (replaces the number badge) */
.archive-date {
  flex-shrink: 0;
  width: 58px;
  min-height: 64px;
  border-radius: 12px;
  background: linear-gradient(180deg, #112a57 0%, #0a1a33 100%);
  border: 1px solid rgba(255, 178, 61, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.2rem;
  gap: 0.1rem;
  overflow: hidden;
  position: relative;
}
.archive-date::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--hot), var(--warm));
  opacity: 0.9;
}
.ad-month {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
  margin-top: 0.3rem;
}
.ad-day {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Subtitle-style date inside hero H1 (home + detail) */
.h1-date {
  display: inline-block;
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
}

.archive-body { min-width: 0; flex: 1; }
.archive-body .top {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.badge-latest {
  background: linear-gradient(135deg, var(--hot), var(--warm));
  color: #1a0a00;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.archive-body .title {
  font-weight: 600;
  margin-top: 0.15rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.archive-body .title .flag-mini { font-size: 1.1rem; }
.archive-arrow { color: var(--text-dim); font-size: 1.2rem; }
.archive-card:hover .archive-arrow { color: var(--accent); }

/* ===================== STEPS ===================== */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--hot), var(--warm));
  color: #1a0a00;
  font-weight: 800;
}

/* ===================== FEATURES ===================== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.feature {
  padding: 1.6rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 178, 61, 0.45);
}
.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}
.feature h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.feature p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* ===================== FAQ ===================== */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 0.7rem;
}
.faq details {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  transition: border-color 0.2s ease;
}
.faq details[open] { border-color: rgba(255, 178, 61, 0.45); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 700;
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0.7rem 0 0; color: var(--text-muted); }

/* ===================== CTA ===================== */
.cta-card {
  text-align: center;
  padding: 3rem 1.5rem;
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(255, 77, 77, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}
.cta-card h2 { margin: 0 0 0.5rem; }
.cta-card p { color: var(--text-muted); margin: 0 0 1.4rem; }
.cta-card .hero-actions { justify-content: center; }

/* ===================== FOOTER ===================== */
.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.55));
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.site-footer h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 0.7rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}
.site-footer ul a {
  color: var(--text-muted);
  font-size: 0.92rem;
}
.site-footer ul a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
}

/* ===================== DETAIL PAGE (archive.html / individual) ===================== */
.detail-hero {
  padding: 3rem 0 1rem;
  text-align: center;
}
.detail-hero .eyebrow { margin-bottom: 0.8rem; }
.detail-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 0.6rem; }

/* Daily answer page (per-puzzle) */
.puzzle-hero {
  padding: 3rem 0 1.5rem;
  text-align: center;
}
.puzzle-hero h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin: 0.4rem 0 0.6rem;
  letter-spacing: -0.01em;
}
.puzzle-hero .muted { max-width: 60ch; margin: 0.4rem auto 0; }

.puzzle-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 1.8rem;
}
.puzzle-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.puzzle-pill strong { color: var(--text); font-weight: 600; }

.mini-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  max-width: 880px;
  margin: 1.5rem auto 0;
}
.mini-feature {
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  text-align: left;
}
.mini-feature h3 {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
  color: var(--accent);
}
.mini-feature p { margin: 0; color: var(--text-muted); font-size: 0.88rem; }

/* Byline */
.byline {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.92rem;
  margin: 2rem 0 0.5rem;
}
.byline strong { color: var(--text-muted); font-weight: 600; }

/* Article / analysis prose */
.article {
  max-width: 780px;
  margin: 0 auto;
}
.article h2 {
  font-size: 1.8rem;
  margin: 2.6rem 0 0.8rem;
  letter-spacing: -0.01em;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 0.8rem;
}
.article h3 {
  font-size: 1.2rem;
  margin: 2rem 0 0.6rem;
  color: var(--accent-strong);
}
.article p {
  color: var(--text-muted);
  margin: 0.9rem 0;
  line-height: 1.75;
}
.article p strong { color: var(--text); font-weight: 600; }
.article ul { color: var(--text-muted); padding-left: 1.3rem; }
.article ul li { margin: 0.35rem 0; line-height: 1.7; }
.article .pullquote {
  margin: 1.4rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--hot);
  background: linear-gradient(90deg, rgba(255, 77, 77, 0.08), transparent 80%);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  font-weight: 500;
}

.verdict {
  margin: 1.8rem 0;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(135deg, rgba(62, 207, 142, 0.16), rgba(62, 207, 142, 0.04));
  border: 1px solid rgba(62, 207, 142, 0.45);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.verdict-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--success);
  font-weight: 700;
}
.verdict-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}
.verdict-value .flag { font-size: 1.6rem; margin-right: 0.4rem; }

/* Clues breakdown table */
.clue-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 0.6rem;
  font-size: 0.95rem;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
}
.clue-table thead {
  background: rgba(255, 178, 61, 0.08);
}
.clue-table th {
  text-align: left;
  padding: 0.8rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  border-bottom: 1px solid var(--border-strong);
}
.clue-table td {
  padding: 0.9rem 1rem;
  vertical-align: top;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}
.clue-table td:first-child {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.clue-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

/* Mini FAQ inside article */
.article-faq { margin: 1.4rem 0; }
.article-faq details {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  margin: 0.5rem 0;
}
.article-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 700;
}
.article-faq details[open] summary::after { content: "−"; }
.article-faq p { margin: 0.6rem 0 0; color: var(--text-muted); font-size: 0.95rem; }

/* Prev/next pager */
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 3rem auto 0;
  max-width: 780px;
}
.pager a, .pager span {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  display: block;
}
.pager a:hover {
  border-color: rgba(255, 178, 61, 0.45);
  background: rgba(255, 178, 61, 0.05);
  color: var(--text);
  transform: translateY(-2px);
}
.pager .pager-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}
.pager .pager-title { font-weight: 600; }
.pager .pager-next { text-align: right; }
.pager span { opacity: 0.4; cursor: not-allowed; }

/* "Puzzle ended" banner */
.ended-banner {
  text-align: center;
  padding: 1.8rem 1.4rem;
  margin-top: 3rem;
  background: linear-gradient(135deg, rgba(255, 77, 77, 0.12), rgba(255, 138, 61, 0.06));
  border: 1px solid rgba(255, 138, 61, 0.35);
  border-radius: var(--radius-lg);
}
.ended-banner h3 { margin: 0 0 0.5rem; color: var(--text); }
.ended-banner p { margin: 0 0 1rem; color: var(--text-muted); }

/* Recent answers (bottom of detail page) */
.recent-list {
  display: grid;
  gap: 0.5rem;
  max-width: 780px;
  margin: 0 auto;
}
.recent-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color 0.2s ease;
}
.recent-list a:hover { border-color: rgba(255, 178, 61, 0.45); color: var(--text); }
.recent-list .r-date { color: var(--text-dim); font-size: 0.85rem; white-space: nowrap; }

@media (max-width: 900px) {
  .mini-features { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager .pager-next { text-align: left; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .globe-wrap { width: min(280px, 80%); }

  .hints-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-nav a:not(.btn) { display: none; }
  .hero { padding: 2.5rem 0 2rem; }
  .section { padding: 3rem 0; }
  .card { padding: 1.4rem; }
  .hints-grid { grid-template-columns: 1fr 1fr; }
  .cd-unit { min-width: 72px; padding: 0.8rem 0.6rem; }
  .cd-num { font-size: 1.8rem; }
  .countdown { gap: 0.5rem; }
  .footer-cols { grid-template-columns: 1fr; }
}
