/* Shared styles for subpages (game guides). The home page keeps its own inline styles. */
:root {
  --bg:        #08090f;
  --card:      #131728;
  --border:    rgba(255,200,70,0.15);
  --gold:      #f5c842;
  --gold-dim:  #c49a20;
  --amber:     #e8901a;
  --cream:     #f0e6c8;
  --muted:     #b0b8d8;
  --text:      #d8dfff;
  --white:     #ffffff;
}

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

body {
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(40,30,90,0.35) 0%, transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── NAV ─── */
body > nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(8,9,15,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links { display: flex; gap: 1.6rem; list-style: none; flex-wrap: wrap; margin: 0; }
.nav-links li { margin: 0; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold); }

/* ─── PAGE HERO ─── */
.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  padding: 6rem 2rem 3rem;
  background-size: cover;
  background-position: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8,9,15,0.45) 0%, rgba(8,9,15,0.78) 55%, var(--bg) 100%);
}
.page-hero-inner { position: relative; max-width: 860px; margin: 0 auto; width: 100%; }
.crumbs { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.8rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.sec-label {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
h1 {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.6rem);
  color: var(--white);
  line-height: 1.1;
  text-shadow: 0 2px 30px rgba(0,0,0,0.7);
}
.lead {
  margin-top: 1rem;
  max-width: 640px;
  font-size: 1.1rem;
  color: var(--cream);
  font-style: italic;
}
.hero-actions { margin-top: 1.8rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--amber), var(--gold));
  color: #1a0c00;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  padding: 0.9rem 2.2rem;
  border-radius: 3px;
  text-decoration: none;
  box-shadow: 0 0 30px rgba(245,200,66,0.3), 0 4px 20px rgba(0,0,0,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 50px rgba(245,200,66,0.5), 0 8px 30px rgba(0,0,0,0.5); }
.btn-ghost {
  display: inline-block;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  padding: calc(0.9rem - 1px) 2rem;
  border: 1px solid rgba(245,200,66,0.55);
  border-radius: 3px;
  background: rgba(8,9,15,0.55);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.btn-ghost:hover { background: rgba(245,200,66,0.12); border-color: var(--gold); }

/* ─── ARTICLE ─── */
main.article {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
}
.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 2.5rem;
}
.toc strong { display: block; font-family: 'Cinzel', serif; color: var(--gold); font-size: 0.95rem; margin-bottom: 0.4rem; }
.toc ol { margin: 0 0 0 1.2rem; columns: 2; column-gap: 2rem; }
.toc li { font-size: 0.9rem; margin-bottom: 0.2rem; break-inside: avoid; }
h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  color: var(--white);
  margin: 3rem 0 1rem;
  line-height: 1.25;
  scroll-margin-top: 5rem;
}
h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
  margin: 1.8rem 0 0.6rem;
}
p, li, td, th, dd { font-size: 1rem; }
p { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.3rem; }
li { margin-bottom: 0.4rem; }
li::marker { color: var(--gold); }
strong { color: var(--cream); font-weight: 700; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--cream); }
kbd {
  font-family: inherit;
  font-size: 0.85em;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px;
  padding: 0 0.35rem;
  color: var(--text);
  white-space: nowrap;
}
figure { margin: 2rem 0; }
figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
figcaption { font-size: 0.85rem; color: var(--muted); font-style: italic; margin-top: 0.6rem; text-align: center; }

.fig-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 2rem 0; }
.fig-row figure { margin: 0; }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
table { width: 100%; border-collapse: collapse; min-width: 480px; }
th, td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-family: 'Cinzel', serif; font-size: 0.85rem; color: var(--gold); font-weight: 600; letter-spacing: 0.03em; }
td { font-size: 0.93rem; }
tbody tr:hover { background: rgba(255,255,255,0.02); }

.tip {
  background: rgba(245,200,66,0.06);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.3rem;
  margin: 1.5rem 0;
}
.tip p:last-child { margin-bottom: 0; }

.faq dt { font-weight: 700; color: var(--cream); margin-top: 1.2rem; }
.faq dd { margin: 0.3rem 0 0; color: var(--text); }

.cta-box {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.2rem 1.5rem;
  margin-top: 3.5rem;
}
.cta-box h2 { margin-top: 0; }
.cta-box p { color: var(--muted); }

.more-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1rem; }
.more-games a {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s, border-color 0.25s;
}
.more-games a:hover { transform: translateY(-4px); border-color: rgba(245,200,66,0.35); }
.more-games img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.more-games span { display: block; padding: 0.7rem 1rem; font-family: 'Cinzel', serif; color: var(--gold); font-size: 0.95rem; }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem 2.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a, .footer-links button {
  color: var(--muted);
  text-decoration: none;
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.footer-links a:hover, .footer-links button:hover { color: var(--gold); }
.footer-note { font-size: 0.82rem; color: rgba(138,145,180,0.6); font-style: italic; }
.footer-note strong { color: var(--gold-dim); font-style: normal; }

@media (max-width: 768px) {
  body > nav { padding: 0.8rem 1.25rem; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .nav-logo { font-size: 0.95rem; }
  .nav-links { gap: 0.4rem 1.1rem; }
  .nav-links a { font-size: 0.74rem; }
  .page-hero { padding: 4rem 1.25rem 2rem; min-height: 38vh; }
  main.article { padding: 1.5rem 1.25rem 4rem; }
  .toc ol { columns: 1; }
}

.fig-narrow { max-width: 380px; margin-left: auto; margin-right: auto; }

/* ─── DEVLOG ─── */
.post-meta { margin-top: 0.9rem; font-size: 0.85rem; color: var(--muted); }
.post-meta strong { color: var(--cream); }
pre {
  background: #0b0d18;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  margin: 1.2rem 0 1.5rem;
  font-size: 0.85rem;
  line-height: 1.35;
  color: #ece2c6;
}
code { font-family: Consolas, 'Courier New', monospace; }
p code, li code { background: rgba(255,255,255,0.06); padding: 0 0.3rem; border-radius: 3px; font-size: 0.9em; }
.post-list { display: grid; gap: 1.5rem; margin-top: 1rem; }
.post-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.4rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s, border-color 0.25s;
}
.post-card:hover { transform: translateY(-4px); border-color: rgba(245,200,66,0.35); }
.post-card img { width: 100%; height: 100%; min-height: 160px; object-fit: cover; display: block; }
.post-card div { padding: 1.2rem 1.4rem 1.2rem 0; }
.post-card h2 { margin: 0.2rem 0 0.5rem; font-size: 1.25rem; }
.post-card p { font-size: 0.92rem; color: var(--muted); margin: 0; }
.post-card .post-meta { margin: 0; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dim); }
@media (max-width: 640px) {
  .post-card { grid-template-columns: 1fr; gap: 0; }
  .post-card img { aspect-ratio: 16 / 9; min-height: 0; }
  .post-card div { padding: 1rem 1.2rem 1.3rem; }
}
