:root {
  --bg: #130b07;
  --panel: #21140e;
  --panel-soft: #322216;
  --text: #f7eee1;
  --muted: #b9a58e;
  --gold: #d89b32;
  --gold-2: #f2d083;
  --green: #178b36;
  --line: #4b321f;
  --content: #170e09;
  --ink: #f4e8d3;
  --body: #d5c6b3;
  --max: 1360px;
  --radius: 8px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--body);
  background: var(--content);
  line-height: 1.65;
  text-rendering: optimizeSpeed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 28% 0, rgba(196, 123, 44, .16), transparent 34%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 22px),
    #130b07;
}

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

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background:
    linear-gradient(180deg, rgba(44, 27, 17, .96), rgba(22, 13, 8, .98)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 18px);
  border-bottom: 1px solid #5b3b21;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}

.header-inner {
  max-width: var(--max);
  min-height: 64px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  width: 128px;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.7));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.site-nav a {
  text-decoration: none;
  color: #d6c5ae;
}

.site-nav a:hover {
  color: #fff2bf;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.btn,
.header-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 4px;
  border: 1px solid #8b5a21;
  background: linear-gradient(#2dad4d, #116d2e);
  color: #fff;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.25), 0 3px 0 #4d2d16;
  text-shadow: 0 2px 1px rgba(0,0,0,.55);
}

.btn-dark {
  background: linear-gradient(#3b2618, #1d110b);
  border-color: #7b5227;
  color: #fff8e9;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
}

.menu-toggle span {
  display: block;
  height: 3px;
  margin: 7px 6px;
  background: currentColor;
}

.hero {
  background: #100905;
  color: #fff;
  border-bottom: 1px solid #3b2517;
}

.hero-inner {
  min-height: 520px;
  margin: 0 auto;
  padding: 84px max(24px, calc((100vw - var(--max)) / 2)) 72px;
  display: grid;
  grid-template-columns: minmax(300px, 520px) 1fr;
  align-items: center;
  gap: 30px;
  background:
    linear-gradient(90deg, rgba(14,8,5,.92), rgba(14,8,5,.72) 33%, rgba(14,8,5,.18) 68%),
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(17,9,5,.96)),
    url("/assets/img/fat-pirate-hero.webp") center top / cover no-repeat;
}

.hero-kicker {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 18px;
  color: var(--ink);
  line-height: 1.15;
}

.hero h1 {
  color: #fff;
  font-size: clamp(34px, 3vw, 50px);
  max-width: 680px;
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(0,0,0,.55);
}

.hero p {
  max-width: 560px;
  margin: 0 0 26px;
  color: #e8e8e8;
  font-size: 18px;
  font-family: Arial, Helvetica, sans-serif;
}

.section {
  padding: 64px 20px;
  background: transparent;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.review-content,
.side-box,
.faq .container {
  color: var(--body);
}

.content-layout {
  padding-top: 10px;
}

.section h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.games {
  background: #170e09;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.game-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #120a06;
  border: 2px solid #6b3f21;
  aspect-ratio: 3 / 4;
  color: #050505;
  text-decoration: none;
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .18s ease, transform .18s ease;
}

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .42);
  opacity: 0;
  transition: opacity .18s ease;
}

.game-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -42%);
  min-width: 92px;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: linear-gradient(#2dad4d, #116d2e);
  border: 1px solid #6faa36;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.5);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
}

.game-card:hover img,
.game-card:focus-visible img {
  filter: brightness(.62);
  transform: scale(1.03);
}

.game-card:hover::after,
.game-card:focus-visible::after,
.game-card:hover .game-play,
.game-card:focus-visible .game-play {
  opacity: 1;
}

.game-card:hover .game-play,
.game-card:focus-visible .game-play {
  transform: translate(-50%, -50%);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  align-items: start;
}

.review-content,
.side-box {
  min-width: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
}

.review-content p,
.review-content li {
  font-size: 18px;
  font-family: Arial, Helvetica, sans-serif;
}

.review-content h2,
.review-content h3 {
  scroll-margin-top: 96px;
}

.review-content h2:not(:first-of-type) {
  margin-top: 48px;
}

.review-content h3 {
  margin-top: 30px;
  font-size: 26px;
}

.review-content ol,
.review-content ul {
  padding-left: 24px;
}

.review-content li + li {
  margin-top: 8px;
}

.table-wrap {
  width: 100%;
  margin: 26px 0;
  overflow-x: auto;
  border: 1px solid #5b351d;
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

.review-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  table-layout: fixed;
}

.review-content th {
  background: linear-gradient(90deg, #2d1b10, #3b2517);
  color: var(--gold);
  text-align: left;
}

.review-content th,
.review-content td {
  padding: 16px;
  border-bottom: 1px solid #382215;
  overflow-wrap: anywhere;
}

.note,
.side-box,
.author-box {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #20130d;
  padding: 20px;
}

.note {
  border-color: var(--gold);
  background: #27190f;
}

.toc-box {
  position: sticky;
  top: 96px;
}

.toc-nav {
  display: grid;
  gap: 10px;
  margin: 14px 0 22px;
}

.toc-nav a {
  color: #e2d0b8;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

.toc-nav a:hover {
  color: var(--gold-2);
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pros-cons ul {
  margin: 0;
  padding-left: 22px;
}

.faq {
  background: #130b07;
}

.faq-list {
  border-top: 1px solid #3a2417;
}

.faq-item {
  border-bottom: 1px solid #3a2417;
}

.faq-question {
  width: 100%;
  padding: 24px 0;
  border: 0;
  background: transparent;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.faq-answer {
  display: none;
  padding: 0 0 24px;
}

.faq-item.is-open .faq-answer { display: block; }

.author-box {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 34px;
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #1a1a1a url("/assets/img/author-daniel-carter.webp") center / cover no-repeat;
}

.author-links {
  display: flex;
  gap: 14px;
  color: #8a650c;
  font-weight: 800;
}

.site-footer {
  background: #0d0805;
  color: #aa9a85;
  padding: 44px 20px 22px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.trust-row,
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 28px;
}

.trust-badge {
  padding: 7px 12px;
  border: 1px solid #3b2517;
  border-radius: 999px;
  color: #d8c8ae;
  font-size: 13px;
}

.footer-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  border-top: 1px solid #312014;
  padding-top: 28px;
}

.copyright {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #312014;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .side-box {
    width: 100%;
  }

  .toc-box {
    position: static;
    order: -1;
  }
}

@media (max-width: 900px) {
  .header-inner { min-height: 68px; }
  .logo img { width: 128px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    display: none;
    padding: 18px 20px;
    background: #170e09;
    border-top: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav.is-open { display: flex; }
  .header-actions { display: none; }
  .hero-inner {
    min-height: 640px;
    grid-template-columns: 1fr;
    align-items: end;
    padding-top: 80px;
    background:
      linear-gradient(180deg, rgba(19,11,7,.22), rgba(19,11,7,.96)),
      url("/assets/img/fat-pirate-hero.webp") center / cover no-repeat;
  }
  .hero h1 { font-size: 42px; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .pros-cons,
  .footer-copy { grid-template-columns: 1fr; }
  .review-content table {
    min-width: 620px;
    table-layout: auto;
  }
  .author-box { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .section { padding: 46px 18px; }
  .hero-inner { min-height: 580px; }
  .hero h1 { font-size: 34px; }
  .hero p,
  .review-content p,
  .review-content li { font-size: 16px; }
  .faq-question { font-size: 18px; }
}
