:root {
  --ink: #17202a;
  --muted: #5e6b78;
  --line: #d9e2e7;
  --paper: #f6f8f7;
  --surface: #ffffff;
  --green: #14745f;
  --teal: #0b8a96;
  --gold: #d99522;
  --red: #b8453f;
  --blue: #285b8f;
  --shadow: 0 18px 40px rgba(22, 35, 49, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.top-warning {
  background: var(--ink);
  color: #fff;
  font-size: .9rem;
  padding: .55rem 1rem;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 850;
  font-size: 1.08rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green), var(--gold));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: .95rem;
}

.nav-links a {
  text-decoration: none;
  color: #24313d;
}

.nav-links a:hover { color: var(--green); }

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  font-size: 1.3rem;
}

.hero {
  background:
    linear-gradient(90deg, rgba(13, 30, 45, .88), rgba(17, 84, 80, .66)),
    url("images/hero.svg") center/cover no-repeat;
  color: #fff;
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 440px;
  padding: 70px 0 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .7fr);
  gap: 38px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-weight: 800;
  color: #ffe0a8;
  text-transform: uppercase;
  font-size: .8rem;
}

h1, h2, h3 { line-height: 1.12; margin: 0 0 16px; }
h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); max-width: 820px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); }
h3 { font-size: 1.24rem; }
p { margin: 0 0 14px; }

.hero p {
  font-size: 1.08rem;
  max-width: 720px;
  color: #edf7f5;
}

.hero-panel {
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.hero-panel strong { display: block; margin-bottom: 8px; }
.hero-panel ul { margin: 0; padding-left: 18px; color: var(--muted); }

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.section-tight { padding: 34px 0; }
.lead { color: var(--muted); max-width: 860px; font-size: 1.04rem; }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0 18px;
  flex-wrap: wrap;
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  background: #e7eeee;
  border-radius: 8px;
}

.segmented button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #33414c;
  font-weight: 750;
  padding: 9px 12px;
  cursor: pointer;
}

.segmented button.active {
  background: #fff;
  color: var(--green);
  box-shadow: 0 3px 10px rgba(21, 38, 50, .1);
}

.casino-list {
  display: grid;
  gap: 16px;
}

.casino-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(24, 42, 55, .07);
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 210px;
  gap: 20px;
  padding: 20px;
  align-items: center;
}

.rank {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rank-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eaf3ef;
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.operator-logo {
  width: 116px;
  min-height: 58px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 10px;
  color: #fff;
  font-weight: 900;
  text-align: center;
  line-height: 1.05;
}

.logo-codere { background: linear-gradient(135deg, #123a6d, #1c8e6f); }
.logo-betfun { background: linear-gradient(135deg, #7b1b4b, #df8d2d); }
.logo-cba { background: linear-gradient(135deg, #1d1f27, #b88a2c); }

.rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  font-weight: 850;
  padding: 5px 10px;
  font-size: .9rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.tag {
  background: #edf3f5;
  color: #314452;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 750;
  padding: 5px 9px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.fact {
  border-left: 3px solid var(--gold);
  padding-left: 10px;
  color: var(--muted);
  font-size: .9rem;
}

.fact strong { display: block; color: var(--ink); }

.actions {
  display: grid;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 850;
  border: 1px solid transparent;
  text-align: center;
}

.button-primary { background: var(--gold); color: #251a07; }
.button-primary:hover { background: #efb14d; }
.button-secondary { border-color: var(--line); color: var(--ink); background: #fff; }
.button-secondary:hover { border-color: var(--green); color: var(--green); }

.small-note {
  color: var(--muted);
  font-size: .8rem;
  margin: 8px 0 0;
}

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

.info-card, .legal-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.info-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #e9f4f2;
  color: var(--green);
  font-weight: 900;
  margin-bottom: 14px;
}

.comparison-table {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

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

th { background: #edf4f2; font-size: .9rem; }
tr:last-child td { border-bottom: 0; }

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

.article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 42px);
}

.article h1 { font-size: clamp(2rem, 4vw, 3.5rem); color: var(--ink); }
.article h2 { margin-top: 30px; font-size: 1.55rem; }
.article ul { padding-left: 20px; }
.article li { margin-bottom: 8px; }

.sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 16px;
}

.notice {
  border-left: 4px solid var(--green);
  background: #eef7f4;
  padding: 16px;
  border-radius: 8px;
}

.notice.warn {
  border-left-color: var(--red);
  background: #fff1f0;
}

.footer {
  background: #101820;
  color: #f4f7f6;
  margin-top: 34px;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(160px, .7fr));
  gap: 28px;
}

.footer a { color: #d8e9e4; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer h3 { font-size: 1rem; }
.footer p, .footer li { color: #c7d1d5; font-size: .93rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 18px;
  grid-column: 1 / -1;
  font-size: .84rem;
  color: #c7d1d5;
}

.age-modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 15, 20, .78);
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
}

.age-modal.show { display: grid; }

.age-box {
  max-width: 520px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 28px;
  text-align: center;
}

.age-symbol {
  width: 68px;
  height: 68px;
  border: 3px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-weight: 950;
  font-size: 1.4rem;
}

.age-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.page-title {
  background: #eaf2ef;
  border-bottom: 1px solid var(--line);
}

.page-title .section { padding: 46px 0; }
.page-title h1 { color: var(--ink); font-size: clamp(2.2rem, 5vw, 4rem); }
.muted { color: var(--muted); }

@media (max-width: 900px) {
  .menu-button { display: block; }
  .nav-links {
    position: absolute;
    top: 77px;
    left: 0;
    right: 0;
    display: none;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .hero-inner, .content-layout, .footer-inner { grid-template-columns: 1fr; }
  .hero-inner { min-height: 0; padding-top: 50px; }
  .casino-card { grid-template-columns: 1fr; }
  .rank { justify-content: space-between; }
  .facts, .grid-3 { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 560px) {
  .nav { width: min(100% - 20px, 1180px); }
  .section { width: min(100% - 20px, 1180px); padding: 40px 0; }
  .hero-inner { width: min(100% - 20px, 1180px); }
  .toolbar { align-items: stretch; }
  .segmented { grid-auto-flow: row; width: 100%; }
  .segmented button { width: 100%; }
  .age-actions { grid-template-columns: 1fr; }
}
