:root {
  --bg-page: #faf8f5;
  --bg-card: #ffffff;
  --ink: #1a1f24;
  --ink-muted: #5c6670;
  --line: #e4e0d8;
  --accent: #0d5c63;
  --accent-soft: #e6f3f4;
  --accent-2: #c45c4a;
  --shadow: 0 12px 40px rgba(13, 92, 99, 0.08);
  --radius: 14px;
  --font: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg-page);
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #094850;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 10000;
  padding: 0.65rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font-size: 0.95rem;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.site-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.35rem 0.2rem;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.hero {
  position: relative;
  min-height: 320px;
  display: grid;
  align-items: end;
  padding: 2.75rem 1.25rem 3rem;
  background-color: var(--accent-soft);
  background-image: url("../assets/hero-bg.png");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(250, 248, 245, 0.15) 0%,
    rgba(250, 248, 245, 0.88) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 18ch;
}

.hero p {
  margin: 0;
  max-width: 52ch;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
}

.section-title {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 1.75rem;
  color: var(--ink-muted);
  max-width: 65ch;
}

.disclosure-strip {
  margin-top: -1rem;
  margin-bottom: 2rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.casino-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.casino-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.25rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
  min-height: 100%;
}

.casino-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(13, 92, 99, 0.12);
  border-color: #cfd9db;
}

.casino-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.casino-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.casino-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 16px;
  background: #f6f4f0;
  padding: 10px;
  border: 1px solid var(--line);
}

.casino-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.casino-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}

.pill {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.pill-alt {
  background: #fdecea;
  color: #a33b2d;
}

.casino-desc {
  flex: 1;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
  text-align: center;
}

.rating-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
}

.score {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.score span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.stars {
  color: #d4a017;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.cta-line {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-2);
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.panel h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.panel p:last-child,
.panel ul:last-child {
  margin-bottom: 0;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  background: #fdfcfa;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

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

.faq details[open] {
  background: #fff;
}

.reg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.reg-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: #fff;
  text-align: center;
}

.reg-card img {
  height: 48px;
  width: auto;
  margin: 0 auto 0.85rem;
  object-fit: contain;
}

.reg-card img.reg-logo-img {
  max-width: 100%;
}

.reg-card img.reg-logo-img--wide {
  height: 40px;
  width: auto;
  max-width: min(240px, 100%);
}

.reg-card p {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin: 0 0 0.75rem;
}

.reg-card a {
  font-weight: 700;
  font-size: 0.95rem;
}

.reg-card--inverse {
  background: #0a0a0a;
  border-color: #2a2a2a;
}

.reg-card--inverse p {
  color: #b4bcc4;
}

.reg-card--inverse a {
  color: #e8eef3;
}

.reg-card--inverse a:hover {
  color: #ffffff;
}

.reg-card--inverse img.reg-logo-img--ukgc {
  height: 52px;
  max-width: min(280px, 100%);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 2.5rem 1.25rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-small {
  font-size: 0.88rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.prose h1 {
  font-size: 2rem;
  margin-top: 0;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(26, 31, 36, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.overlay[hidden] {
  display: none !important;
}

.modal {
  background: #fff;
  border-radius: var(--radius);
  max-width: 420px;
  width: 100%;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.modal h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 0.65rem 1.1rem;
  font-weight: 700;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #094850;
}

.btn-ghost {
  background: #f0ebe3;
  color: var(--ink);
}

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1500;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 1rem 1.25rem;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-bar[hidden] {
  display: none !important;
}

.cookie-bar p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.age-line {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 0.75rem;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: #fff;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .site-nav.is-open {
    max-height: 320px;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 0.75rem 1.25rem 1rem;
    align-items: flex-start;
  }
}
