:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-soft: #f4f8f6;
  --line: #dfe5e0;
  --line-strong: #cbd6d1;
  --ink: #101827;
  --muted: #5a6674;
  --teal: #075c63;
  --teal-2: #087f84;
  --green: #166a43;
  --amber: #b66d00;
  --red: #8a2635;
  --blue: #1d5fbf;
  --shadow: 0 18px 44px rgba(13, 38, 44, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 68px;
  padding: 10px 40px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 190px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e8f4f2;
  color: var(--teal);
  font-size: 15px;
  font-weight: 950;
}

.brand-name {
  display: grid;
  color: #082f36;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.brand-name b {
  color: #9a3b22;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.top-nav a {
  color: #162233;
  font-size: 15px;
  font-weight: 700;
  padding: 20px 0;
  border-bottom: 3px solid transparent;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.age-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #172033;
  font-size: 13px;
  font-weight: 700;
}

.age-note span,
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 2px solid #182232;
  border-radius: 50%;
  font-weight: 900;
}

.age-note p {
  margin: 0;
  line-height: 1.25;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

main {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 30px 40px 40px;
}

.hero {
  display: grid;
  gap: 20px;
  margin: 0 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 1040px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  color: #0f1728;
  font-size: clamp(36px, 3.3vw, 48px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.14;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.22;
  letter-spacing: 0;
}

.lead {
  max-width: 780px;
  margin: 0;
  color: #404c5c;
  font-size: 17px;
  line-height: 1.55;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 14px;
  width: min(100%, 720px);
}

.hero-points div {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 12px;
  align-items: center;
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
}

.hero-points i {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--teal);
  font-size: 27px;
}

[class^="ri-"]::before,
[class*=" ri-"]::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.ri-menu-line::before { content: "Menu"; font-size: 11px; }
.ri-shield-check-line::before,
.ri-shield-user-line::before { content: "Safe"; font-size: 11px; }
.ri-file-list-3-line::before,
.ri-file-search-line::before { content: "List"; font-size: 11px; }
.ri-user-heart-line::before,
.ri-user-check-line::before,
.ri-user-add-line::before { content: "18+"; font-size: 11px; }
.ri-compass-3-line::before { content: "OC"; font-size: 12px; }
.ri-wallet-3-line::before,
.ri-wallet-line::before,
.ri-wallet-2-line::before,
.ri-bank-card-line::before { content: "Pay"; font-size: 11px; }
.ri-gift-line::before,
.ri-gift-2-line::before { content: "Bonus"; font-size: 10px; }
.ri-gamepad-line::before { content: "Slot"; font-size: 11px; }
.ri-information-line::before { content: "i"; font-size: 13px; }
.ri-send-plane-line::before { content: "Start"; font-size: 10px; }
.ri-arrow-right-line::before { content: ">"; font-size: 13px; }
.ri-repeat-line::before { content: "Roll"; font-size: 11px; }
.ri-timer-flash-line::before,
.ri-timer-line::before,
.ri-time-line::before { content: "Time"; font-size: 11px; }
.ri-error-warning-line::before,
.ri-alarm-warning-line::before { content: "Risk"; font-size: 11px; }
.ri-percent-line::before { content: "RTP"; font-size: 11px; }
.ri-pulse-line::before { content: "Vol"; font-size: 11px; }

.hero-points strong {
  font-size: 15px;
}

.hero-points span {
  color: var(--muted);
  font-size: 13px;
}

.matrix-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.matrix-panel,
.start-panel,
.responsible-strip,
.path-card,
.article-card,
.support-box,
.toc-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.matrix-panel {
  overflow: hidden;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.matrix-panel .section-heading {
  padding: 20px 20px 0;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-btn {
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: #253245;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--teal);
  background: #eaf5f2;
  color: var(--teal);
}

.table-wrap {
  overflow-x: auto;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
  background: #fff;
}

.guide-table th {
  background: linear-gradient(180deg, #0b6068 0%, #074b54 100%);
  color: #fff;
  font-size: 14px;
  text-align: left;
  padding: 13px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.guide-table td {
  padding: 14px 16px;
  color: #263243;
  vertical-align: middle;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 14px;
}

.guide-table td:first-child {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #121c2d;
  font-size: 15px;
}

.topic-icon,
.cluster-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: #e8f4f2;
  color: var(--teal);
  font-size: 22px;
}

.topic-icon.amber,
.cluster-icon.amber {
  background: #fff3df;
  color: var(--amber);
}

.topic-icon.green,
.cluster-icon.green {
  background: #eef7ed;
  color: var(--green);
}

.topic-icon.red,
.cluster-icon.red {
  background: #faecef;
  color: var(--red);
}

.table-link,
.primary-link,
.text-link,
.path-card a,
.article-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-weight: 800;
}

.table-link {
  min-width: 132px;
  justify-content: center;
  padding: 9px 11px;
  border: 1px solid var(--teal);
  border-radius: var(--radius);
}

.table-link:hover,
.primary-link:hover,
.text-link:hover,
.path-card a:hover,
.article-card a:hover {
  color: var(--blue);
}

.matrix-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 13px 20px 16px;
  color: var(--muted);
  font-size: 14px;
}

.start-panel {
  padding: 21px;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.panel-head > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--teal-2);
  color: #fff;
  font-size: 28px;
}

.step-list {
  counter-reset: steps;
  display: grid;
  gap: 0;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.step-list li {
  counter-increment: steps;
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px 0 14px 54px;
  border-top: 1px solid var(--line);
}

.step-list li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal-2);
  color: #fff;
  font-weight: 900;
}

.step-list span {
  color: var(--muted);
  font-size: 14px;
}

.responsible-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin: 28px 0 36px;
  padding: 22px 24px;
  border-color: #efcf9a;
  background: #fffaf1;
}

.responsible-strip .age-badge {
  width: 64px;
  height: 64px;
  border: 0;
  background: var(--amber);
  color: #fff;
  font-size: 24px;
}

.responsible-strip h2 {
  margin-bottom: 4px;
  font-size: 23px;
}

.responsible-strip p {
  margin: 0;
  color: #4e5968;
}

.responsible-strip a {
  color: var(--teal);
  font-weight: 900;
}

.path-section,
.faq-section,
.article-grid-section {
  margin-top: 34px;
}

.path-grid,
.article-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.path-card,
.article-card {
  padding: 20px;
}

.path-card > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: #e8f4f2;
  color: var(--teal);
  font-size: 28px;
}

.path-card p,
.article-card p {
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 16px 20px;
  cursor: pointer;
  color: #101827;
  font-weight: 800;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--teal);
  font-size: 20px;
  font-weight: 900;
}

details[open] summary::after {
  content: "-";
}

details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  margin-top: 44px;
  padding: 28px 40px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer p {
  max-width: 760px;
  margin: 5px 0 0;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a {
  color: var(--teal);
  font-weight: 800;
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--teal);
  font-weight: 800;
}

.summary-panel,
.toc-panel {
  padding: 22px;
}

.summary-panel {
  border-left: 4px solid var(--teal);
  background: #f2f9f7;
}

.summary-panel h2,
.toc-panel h2 {
  font-size: 20px;
}

.fact-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.fact-list li {
  display: flex;
  gap: 10px;
  color: #273345;
}

.fact-list i {
  color: var(--teal);
  font-size: 20px;
}

.article-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.toc-panel {
  position: sticky;
  top: 100px;
}

.toc-panel nav {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.toc-panel a {
  color: var(--teal);
  font-weight: 800;
}

.article-body {
  max-width: 880px;
}

.article-body section {
  margin-bottom: 34px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.article-body h2 {
  font-size: 30px;
}

.article-body p,
.article-body li {
  color: #344052;
  font-size: 17px;
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
}

.article-body li + li {
  margin-top: 8px;
}

.callout {
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid #efcf9a;
  border-radius: var(--radius);
  background: #fffaf1;
  color: #3f3a2a;
}

.mini-matrix {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.mini-matrix th,
.mini-matrix td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.mini-matrix th {
  background: #f0f7f5;
  color: #14353b;
}

.related-guides {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.article-card {
  box-shadow: none;
}

.article-card .meta {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.support-box {
  margin-top: 22px;
  padding: 20px;
  background: #fffaf1;
  border-color: #efcf9a;
}

.support-box h2 {
  font-size: 22px;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
  }

  .top-nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: start;
    gap: 0;
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid var(--line);
  }

  .top-nav.open {
    display: flex;
  }

  .top-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .age-note {
    display: none;
  }

  .hero,
  .matrix-layout,
  .article-hero,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .hero-points {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .toc-panel {
    position: static;
  }

  .path-grid,
  .article-card-grid,
  .related-guides {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 10px 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand-name {
    font-size: 18px;
  }

  main {
    padding: 28px 18px;
  }

  .section-heading,
  .responsible-strip,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .filter-group {
    justify-content: start;
  }

  .guide-table {
    min-width: 0;
  }

  .guide-table thead {
    display: none;
  }

  .guide-table,
  .guide-table tbody,
  .guide-table tr,
  .guide-table td {
    display: block;
    width: 100%;
  }

  .guide-table tr {
    border-top: 1px solid var(--line);
  }

  .guide-table td {
    border: 0;
    padding: 10px 18px;
  }

  .guide-table td:first-child {
    padding-top: 18px;
  }

  .guide-table td:last-child {
    padding-bottom: 18px;
  }

  .responsible-strip {
    display: grid;
    text-align: left;
  }

  .path-grid,
  .article-card-grid,
  .related-guides {
    grid-template-columns: 1fr;
  }

  .site-footer {
    margin-top: 28px;
    padding: 24px 18px;
  }

  .site-footer nav {
    display: grid;
  }
}
