/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: #ffc400; }
a:hover, a:focus { color: #ffc400; }
ul, ol { list-style: none; margin: 0; padding: 0; }

/* Typography */
html {
  font-family: Arial, Helvetica, Verdana, sans-serif;
  color: #ffffff;
  background-color: #111214;
  line-height: 1.5;
  font-size: 16px;
}
body {
  font-family: Arial, Helvetica, Verdana, sans-serif;
  background-color: #111214;
  color: #ffffff;
}
h1, h2, h3, h4, h5, h6 {
  font-family: Arial, Helvetica, Verdana, sans-serif;
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }

/* Layout container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: Arial, Helvetica, Verdana, sans-serif;
  font-weight: bold;
  text-align: center;
  padding: 10px 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn--primary {
  background-color: #ffe600;
  color: #090909;
}
.btn--primary:hover, .btn--primary:focus {
  background-color: #ffe600;
  color: #090909;
}
.btn--secondary {
  background-color: #333333;
  color: #ffffff;
}
.btn--secondary:hover, .btn--secondary:focus {
  background-color: #333333;
  color: #ffffff;
}

/* Surfaces / borders */
.surface {
  background-color: #333333;
  border: 1px solid #404040;
}

/* Header */
.site-header {
  background-color: #111214;
  border-bottom: 1px solid #404040;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.site-header__home {
  display: inline-flex;
  align-items: center;
}
.site-header__logo {
  height: 40px;
  width: auto;
}
.site-header__cta {
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  background-color: #333333;
  border-top: 1px solid #404040;
  margin-top: 32px;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
  text-align: center;
}
.site-footer__home {
  display: inline-flex;
}
.site-footer__logo {
  height: 32px;
  width: auto;
}
.site-footer__legal {
  color: #ffffff;
  font-size: 0.875rem;
  margin: 0;
}

/* Tablet */
@media (min-width: 600px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .site-header__logo { height: 48px; }
}

/* 404 page */
.not-found {
  display: flex;
  align-items: center;
  justify-content: center;
}
.not-found__inner {
  text-align: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.not-found__code {
  margin: 0 0 8px;
  font-size: 3.5rem;
  font-weight: bold;
  color: #bc8e35;
  line-height: 1;
}


/* Page-specific additions (Hahaspin review page) */
.page { overflow-x: hidden; }

.section { padding-top: 32px; padding-bottom: 32px; border-bottom: 1px solid #404040; }
.section:last-of-type { border-bottom: none; }
.section h2 { font-size: 1.5rem; margin-bottom: 0.6em; }
.section > p { max-width: 80ch; }

/* Hero */
.hero { position: relative; margin-bottom: 24px; }
.hero__media { width: 100%; max-height: 220px; overflow: hidden; }
.hero__image { width: 100%; height: 220px; object-fit: cover; opacity: 0.35; }
.hero__tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: -140px;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .hero__tiles { grid-template-columns: repeat(3, 1fr); margin-top: -160px; }
}
.hero-tile {
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-tile__title { font-size: 1.1rem; margin: 0; }
.hero-tile .btn { margin-top: auto; align-self: flex-start; }

/* Page title / byline / TOC */
.page-title { padding-top: 32px; }
.page-title h1 { font-size: 2rem; }
.badge {
  display: inline-block;
  background-color: #bc8e35;
  color: #090909;
  font-weight: bold;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.byline {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.byline p { margin-bottom: 0.6em; }
.byline p:last-child { margin-bottom: 0; }

.toc {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 8px;
}
.toc__title { font-weight: bold; margin: 0 0 8px; color: #ffffff; }
.toc__list { display: grid; grid-template-columns: 1fr; gap: 6px; }
@media (min-width: 640px) {
  .toc__list { grid-template-columns: 1fr 1fr; }
}
.toc__list a { color: #ffc400; }
.toc__list a:hover { color: #ffc400; text-decoration: underline; }

/* Intro + promo banner */
.intro { padding-top: 24px; padding-bottom: 24px; }
.promo-banner { display: block; margin-top: 16px; border-radius: 8px; overflow: hidden; }
.promo-banner img { width: 100%; height: auto; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 16px 0; }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #404040;
  font-size: 0.95rem;
}
th { background-color: #333333; color: #ffffff; }
td { background-color: #111214; }

/* Lists */
.list { margin: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.list li { padding-left: 18px; position: relative; }
.list li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: #bc8e35;
}
.steps { margin: 16px 0; display: flex; flex-direction: column; gap: 12px; counter-reset: step; }
.steps li {
  padding-left: 36px;
  position: relative;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #ffe600;
  color: #090909;
  font-weight: bold;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Section images */
.section-image { width: 100%; max-width: 480px; border-radius: 8px; margin: 12px 0; }
.game-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}
@media (min-width: 640px) {
  .game-gallery { grid-template-columns: repeat(6, 1fr); }
}
.game-gallery img {
  background-color: #333333;
  border: 1px solid #404040;
  border-radius: 6px;
  padding: 8px;
  height: 80px;
  width: 100%;
  object-fit: contain;
}

/* CTA */
.cta-center { display: block; width: fit-content; margin: 16px auto 0; }

/* Accordion */
.accordion { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.accordion__item {
  background-color: #333333;
  border: 1px solid #404040;
  border-radius: 8px;
  padding: 12px 16px;
}
.accordion__item summary {
  cursor: pointer;
  font-weight: bold;
  color: #ffffff;
  list-style: none;
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary::after {
  content: "+";
  float: right;
  color: #ffc400;
}
.accordion__item[open] summary::after { content: "\2212"; }
.accordion__item p { margin-top: 10px; margin-bottom: 0; }

/* Sticky promo bar */
.sticky-promo {
  position: sticky;
  bottom: 0;
  background-color: #333333;
  border-top: 1px solid #404040;
  z-index: 10;
}
.sticky-promo__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}
.sticky-promo__text { font-size: 0.85rem; color: #ffffff; }