/* Hell Spin Australia — shared stylesheet. Dark theme only. */

:root {
  --bg: #0d0f14;
  --surface: #161a22;
  --surface-2: #1b202a;
  --border: #242a35;
  --accent: #e8b64c;
  --accent-dark: #c2942f;
  --text: #e6e9ef;
  --muted: #93a0b4;
  --radius: 10px;
  --container: 1180px;
  --prose: 78ch;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; }

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

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

.prose { max-width: var(--prose); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 15, 20, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.site-header.is-stuck { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo .logo-mark {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), #7a3b1d);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #14161c;
  font-size: 14px;
  font-weight: 800;
}
.logo .logo-accent { color: var(--accent); }

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

.header-actions { display: flex; gap: 8px; align-items: center; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; border-color: #333b4a; }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #14161c;
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn-lg { padding: 13px 26px; font-size: 16px; }

/* ---------- Hero ---------- */

.hero {
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 320px at 12% -10%, rgba(232, 182, 76, 0.10), transparent 60%),
    linear-gradient(180deg, #11141b, var(--bg));
}
.hero-inner { padding: 40px 0 36px; }

h1 {
  font-size: clamp(27px, 5vw, 40px);
  line-height: 1.22;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.lead {
  font-size: 17px;
  color: #cfd6e2;
  max-width: var(--prose);
  margin: 0 0 20px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.age-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}
.hero-fact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.hero-fact b { display: block; font-size: 19px; color: var(--accent); }
.hero-fact span { font-size: 13px; color: var(--muted); }

/* ---------- Typography ---------- */

h2 {
  font-size: clamp(22px, 3.2vw, 28px);
  line-height: 1.3;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
h3 { font-size: 18px; line-height: 1.4; margin: 26px 0 10px; }
h4 { font-size: 16px; margin: 20px 0 8px; }

p { max-width: var(--prose); margin: 0 0 14px; }

ul, ol { max-width: var(--prose); padding-left: 22px; margin: 0 0 16px; }
li { margin-bottom: 7px; }

.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps > li {
  position: relative;
  padding-left: 44px;
  margin-bottom: 14px;
  min-height: 30px;
}
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

section { padding: 34px 0; border-top: 1px solid var(--border); }
section:first-of-type { border-top: 0; }

.section-note {
  color: var(--muted);
  font-size: 14px;
  max-width: var(--prose);
}

.readmore { font-weight: 600; }

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  font-size: 14px;
  color: var(--muted);
  padding: 14px 0 0;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
}
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; color: #55617a; }

/* ---------- Table of contents ---------- */

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin: 22px 0 0;
}
.toc-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 12px;
}
.toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
}
.toc li { margin: 0; }
.toc a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: #c3ccdb;
  font-size: 14px;
}
.toc a:hover { text-decoration: none; border-color: #3a4354; color: var(--text); }
.toc a.is-active { border-color: var(--accent); color: var(--accent); }

/* ---------- Tables ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0 0 18px;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 520px;
}
thead th {
  position: sticky;
  top: 0;
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: #d6dce7;
}
tbody tr:nth-child(odd) { background: rgba(255, 255, 255, 0.018); }
tbody tr:last-child td { border-bottom: 0; }
tbody th {
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td .num, .num { color: var(--accent); font-weight: 600; }

/* ---------- Lobby ---------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.tab {
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.tab[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #14161c;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.game-cover {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.c1 { background: linear-gradient(135deg, #3b2a5e, #1d2340); }
.c2 { background: linear-gradient(135deg, #5e3a2a, #2a1d18); }
.c3 { background: linear-gradient(135deg, #204d46, #14252b); }
.c4 { background: linear-gradient(135deg, #4d2036, #251426); }
.c5 { background: linear-gradient(135deg, #2a3f5e, #161f2e); }
.c6 { background: linear-gradient(135deg, #5a4a1e, #2a2413); }
.c7 { background: linear-gradient(135deg, #2f5326, #17281a); }
.c8 { background: linear-gradient(135deg, #45305e, #1e1a2c); }
.game-meta { padding: 10px 12px 12px; }
.game-meta b { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.game-meta span { font-size: 12px; color: var(--muted); }

/* ---------- Provider grid ---------- */

.provider-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 20px;
}
.provider-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #cbd3e0;
}

/* ---------- Cards / grids ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 8px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 16px; }
.card p { margin: 0; font-size: 14px; color: #c6cede; max-width: none; }

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.two-col ul { max-width: none; }

.pros-cons h3 { margin-top: 0; }
.pros li::marker { color: #3ea76a; }
.cons li::marker { color: #d1694f; }

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0 0 18px;
  max-width: var(--prose);
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Ratings ---------- */

.rating-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.rating-score { font-size: 38px; font-weight: 800; color: var(--accent); line-height: 1; }
.stars { color: var(--accent); letter-spacing: 2px; }

.review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.review-head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.review-head b { font-size: 15px; }
.review-head time { font-size: 13px; color: var(--muted); }
.review p { margin: 0; font-size: 15px; color: #c9d1df; }

/* ---------- FAQ ---------- */

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  max-width: var(--prose);
}
.faq summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 11px;
  color: var(--accent);
  font-size: 20px;
  font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details > p, .faq details > ul, .faq details > .table-wrap {
  padding: 0 16px 14px;
  margin: 0;
  color: #c9d1df;
  max-width: none;
}
.faq details > ul { padding-left: 38px; padding-bottom: 14px; }

/* ---------- CTA banner ---------- */

.cta-banner {
  background: linear-gradient(135deg, #1c2130, #14171f);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 8px 0 34px;
}
.cta-title { margin: 0 0 6px; font-size: 21px; font-weight: 700; line-height: 1.3; }
.cta-banner p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Related pages ---------- */

.related a.card { display: block; color: var(--text); }
.related a.card:hover { border-color: #3a4354; text-decoration: none; }
.related .card h3 { color: var(--accent); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: #0b0d12;
  padding: 34px 0 26px;
  font-size: 14px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-grid h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b3bdcd;
  margin: 0 0 10px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; max-width: none; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--text); }
.footer-grid p { max-width: 46ch; margin-bottom: 10px; }

.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: space-between;
}
.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  border: 2px solid #d1694f;
  color: #d1694f;
  font-weight: 800;
  font-size: 13px;
}
.footer-legal p { max-width: 84ch; margin: 0 0 8px; font-size: 13px; line-height: 1.6; }
.footer-legal .legal-text { flex: 1 1 420px; }

/* ---------- Legal pages ---------- */

.legal-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}
.legal h2 { font-size: 21px; }
.legal ol.clauses { padding-left: 20px; }
.legal ol.clauses > li { margin-bottom: 10px; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .provider-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    order: 3;
    width: 100%;
    margin-left: 0;
    padding-bottom: 12px;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 2px; }
  .main-nav a { display: block; padding: 8px 0; font-size: 16px; }
  .header-inner { flex-wrap: wrap; }
  .header-actions { display: none; }
  .header-actions.is-open { display: flex; order: 4; width: 100%; padding-bottom: 12px; }
  .two-col { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  section { padding: 28px 0; }
}

@media (max-width: 520px) {
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .game-cover { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  table { min-width: 460px; }
}
