:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #1d1b18;
  --ink-soft: #4a4640;
  --muted: #7a746b;
  --line: #e7e1d6;
  --accent: #1f5d4c;
  --gold: #c8902e;
  --gold-soft: #fbf3e2;
  --gold-line: #e6c88b;
  --star: #c9a24c;
  --star-off: #ddd6c8;
  --pro: #2f7a52;
  --con: #a5523a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(30, 25, 15, 0.05), 0 6px 20px rgba(30, 25, 15, 0.06);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15140f;
    --surface: #1e1c17;
    --ink: #f1ece2;
    --ink-soft: #cfc8bb;
    --muted: #9a9387;
    --line: #34302a;
    --accent: #6fc2a6;
    --gold: #e0b057;
    --gold-soft: #2a2316;
    --gold-line: #6b5427;
    --star: #d9b25c;
    --star-off: #4a453c;
    --pro: #7cc79e;
    --con: #e09a82;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 780px; }

/* Header / footer */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand-mark { color: var(--gold); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.92rem; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); }
.nav a[aria-current='page'] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 32px 0 48px; font-size: 0.9rem; }
.site-footer p { margin: 0 0 8px; }

/* Post header */
.post-header { padding-top: 40px; padding-bottom: 8px; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.post-header h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.kicker { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--gold); margin: 0 0 8px; }
.subtitle { font-size: 1.15rem; color: var(--ink-soft); margin: 12px 0 0; line-height: 1.5; }
.byline span { white-space: nowrap; }
.byline { color: var(--muted); font-size: 0.9rem; margin: 14px 0 0; }

.prose > p { margin: 0 0 1.1em; color: var(--ink-soft); }
.prose h2 { font-size: 1.5rem; margin: 0 0 12px; }
.prose section { margin-top: 40px; }

/* Ratings: deliberately small and quiet */
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.stars { position: relative; display: inline-block; line-height: 1; letter-spacing: 1px; font-size: 0.82rem; }
.stars-bg { color: var(--star-off); }
.stars-fg { position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; color: var(--star); }
.rating-num { font-variant-numeric: tabular-nums; }

/* #1 callout */
.top-callout {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  margin: 28px 0 8px; padding: 20px 22px;
  background: var(--gold-soft); border: 1px solid var(--gold-line); border-left: 5px solid var(--gold);
  border-radius: var(--radius);
}
.top-callout-text { flex: 1 1 280px; }
.top-callout p { margin: 0; }
.top-callout-kicker { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--gold); }
.top-callout-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; line-height: 1.25; }
.top-callout-desc { color: var(--ink-soft); font-size: 0.95rem; }
.top-callout-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* At a glance */
.glance { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.glance h2 { font-size: 1.25rem; margin-bottom: 10px; }
.glance-list { list-style: none; margin: 0; padding: 0; }
.glance-list li {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: 'rank name rating' 'rank best best';
  column-gap: 12px; padding: 10px 8px; border-top: 1px solid var(--line); align-items: baseline;
}
.glance-list li:first-child { border-top: 0; }
.glance-rank { grid-area: rank; font-family: var(--serif); font-weight: 700; color: var(--muted); }
.glance-name { grid-area: name; font-weight: 600; color: var(--ink); text-decoration: none; }
.glance-name:hover { text-decoration: underline; }
.glance-best { grid-area: best; font-size: 0.85rem; color: var(--muted); line-height: 1.4; }
.glance-rating { grid-area: rating; }
.glance-list li.glance-top { background: var(--gold-soft); border-radius: 10px; border-top-color: transparent; }
.glance-list li.glance-top + li { border-top-color: transparent; }
.glance-top .glance-rank { color: var(--gold); }
.glance-top .glance-name { font-size: 1.05rem; }

/* Entries */
.entries { margin-top: 48px; display: grid; gap: 28px; }
.entries-heading { font-size: 1.6rem; margin: 0 0 -4px; }
.footer-links a { color: var(--ink-soft); }
.entry { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); scroll-margin-top: 80px; }
.entry-head { display: flex; gap: 16px; align-items: flex-start; }
.rank {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.15rem; background: var(--bg); border: 1px solid var(--line); color: var(--ink-soft);
}
.entry-title { min-width: 0; }
.entry-title h2 { font-size: 1.6rem; }
.entry-title h2 a { color: var(--ink); text-decoration: none; }
.entry-title h2 a:hover { text-decoration: underline; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; font-size: 0.82rem; color: var(--muted); }
.entry-meta .dot { color: var(--line); }
.entry-meta .domain { color: var(--muted); }
.verdict { font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; margin: 18px 0 0; color: var(--ink); }
.entry-body { margin-top: 16px; }
.gallery + .entry-body { margin-top: 0; }
.entry-body p { margin: 0 0 1em; color: var(--ink-soft); }

/* Featured #1 entry */
.entry-featured {
  border: 2px solid var(--gold); background: linear-gradient(180deg, var(--gold-soft), var(--surface) 340px);
  padding: 30px; box-shadow: 0 2px 4px rgba(200, 144, 46, 0.08), 0 14px 40px rgba(200, 144, 46, 0.16);
}
.entry-featured .rank { width: 56px; height: 56px; font-size: 1.5rem; background: var(--gold); border-color: var(--gold); color: #fff; }
.entry-featured .entry-title h2 { font-size: 2.1rem; }
.entry-featured .verdict { font-size: 1.25rem; }

/* Galleries */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 22px; }
.gallery-featured { grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; }
.gallery-featured .shot:first-child { grid-row: span 2; }
.shot { margin: 0; min-width: 0; }
.shot-btn { all: unset; display: block; cursor: zoom-in; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); aspect-ratio: 16 / 10; width: 100%; }
.gallery-featured .shot:first-child .shot-btn { aspect-ratio: auto; height: calc(100% - 26px); }
.shot-btn img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.25s ease; }
.gallery-featured .shot:first-child img { object-fit: cover; object-position: top; }
.shot-btn:hover img { transform: scale(1.02); }
.shot-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.shot figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 6px; line-height: 1.3; }

/* Facts + pros/cons */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 6px 0 18px; padding: 16px 18px; background: var(--bg); border-radius: 10px; }
.facts div { min-width: 0; }
.facts dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-size: 0.92rem; line-height: 1.45; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 20px; }
.proscons h3 { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.proscons ul { margin: 0; padding: 0; list-style: none; font-size: 0.92rem; line-height: 1.5; }
.proscons li { padding-left: 22px; position: relative; margin-bottom: 4px; color: var(--ink-soft); }
.pros li::before { content: '+'; position: absolute; left: 4px; color: var(--pro); font-weight: 700; }
.cons li::before { content: '–'; position: absolute; left: 4px; color: var(--con); font-weight: 700; }

/* Buttons */
.play {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; background: var(--surface);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.play:hover { border-color: var(--ink-soft); transform: translateY(-1px); }
.play-featured { background: var(--gold); border-color: var(--gold); color: #fff; padding: 12px 22px; font-size: 1rem; box-shadow: 0 4px 14px rgba(200, 144, 46, 0.35); }
.play-featured:hover { border-color: var(--gold); filter: brightness(1.05); }
.text-link { font-weight: 600; font-size: 0.92rem; }

/* FAQ / outro / related */
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }
.outro p { color: var(--ink-soft); }
.related { margin-top: 40px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.related-kicker { margin: 0 0 4px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.related-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.related-list li { display: grid; gap: 2px; }
.related-list a { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.related-list span { font-size: 0.88rem; color: var(--muted); line-height: 1.45; }

/* Simple pages */
.simple-page { padding-top: 48px; }
.simple-page h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 8px; }
.simple-page h2 { font-size: 1.3rem; margin: 32px 0 8px; }
.simple-page p { color: var(--ink-soft); }
.lede { font-size: 1.12rem; color: var(--ink-soft); margin: 14px 0 0; }

/* Guide pages: tips and game cards */
.prose section > p { color: var(--ink-soft); }
.tips { list-style: none; counter-reset: tip; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.tips li { counter-increment: tip; position: relative; padding: 18px 20px 18px 64px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tips li::before { content: counter(tip); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; background: var(--bg); border: 1px solid var(--line); color: var(--ink-soft); }
.tips h3 { font-size: 1.1rem; margin-bottom: 4px; }
.tips p { margin: 0; color: var(--ink-soft); }
.game-cards { display: grid; gap: 16px; margin-top: 20px; }
.game-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.game-card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.game-card-body { padding: 18px 20px 20px; }
.game-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.game-card h3 a { color: var(--ink); text-decoration: none; }
.game-card h3 a:hover { text-decoration: underline; }
.game-card-genre { font-family: var(--sans); font-size: 0.8rem; font-weight: 500; color: var(--muted); margin-left: 6px; }
.game-card-body p { margin: 0 0 14px; color: var(--ink-soft); }
.game-card-featured { border: 2px solid var(--gold); background: linear-gradient(180deg, var(--gold-soft), var(--surface)); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 8, 5, 0.85); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox-caption { color: #eee; text-align: center; font-size: 0.9rem; margin: 10px 0 0; }
.lightbox-close { position: fixed; top: 14px; right: 18px; background: rgba(255, 255, 255, 0.15); color: #fff; border: 0; width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { gap: 12px; font-size: 0.85rem; }
  .entry { padding: 18px; }
  .entry-featured { padding: 20px; }
  .entry-title h2 { font-size: 1.35rem; }
  .entry-featured .entry-title h2 { font-size: 1.7rem; }
  .gallery, .gallery-featured {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin-left: -18px; margin-right: -18px; padding: 0 18px 4px;
  }
  .gallery .shot { flex: 0 0 82%; scroll-snap-align: start; }
  .gallery-featured .shot:first-child .shot-btn { aspect-ratio: 16 / 10; height: auto; }
  .facts, .proscons { grid-template-columns: 1fr; }
  .tips li { padding: 16px 16px 16px 58px; }
  .tips li::before { left: 14px; }
  .glance { padding: 16px; }
}

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: 2px 16px; padding-top: 10px; padding-bottom: 10px; }
  .nav { width: 100%; }
}

@media (max-width: 520px) {
  .header-inner { flex-wrap: wrap; gap: 2px 16px; padding-top: 10px; padding-bottom: 10px; }
  .site-header { position: static; }
  .nav { width: 100%; gap: 2px 16px; line-height: 1.6; }
  .byline time, .byline { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
