/* JackpotHrone — Home / Swiss Broadsheet style (Refero) */

:root {
  --color-highlighter: #fff824;
  --color-ink: #151515;
  --color-canvas: #f3f3f3;
  --color-paper: #e5e5e5;
  --color-pure-black: #000000;
  --color-white: #ffffff;
  --font-main: "Inter", "Neue Haas Grotesk", system-ui, sans-serif;
  --max-width: 1280px;
  --border: 1px solid var(--color-ink);
  --section-gap: 48px;
  --card-height: 420px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.17;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  background: var(--color-canvas);
  -webkit-font-smoothing: antialiased;
}

/* Responsible gambling strip */
.rg-strip {
  background: var(--color-white);
  border-bottom: var(--border);
  padding: 10px 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rg-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
}

.rg-strip a {
  text-decoration: none;
  font-weight: 700;
}

.rg-strip a:hover {
  background: var(--color-highlighter);
}

.rg-strip-sep {
  opacity: 0.4;
}

.sponsored-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  opacity: 0.75;
}

.licence-info {
  font-size: 11px;
  line-height: 1.45;
  margin-top: 8px;
  opacity: 0.85;
}

.licence-info a {
  font-weight: 700;
}

.geo-notice {
  font-size: 12px;
  margin-top: 12px;
  padding: 10px 14px;
  border: var(--border);
  background: var(--color-paper);
}

.rating-note {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 4px;
}

/* Legal pages */
.legal-page {
  padding: 48px 0 64px;
}

.legal-page h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.96;
  margin-bottom: 12px;
}

.legal-page h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 12px;
}

.legal-page p,
.legal-page li {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 12px;
  max-width: 72ch;
}

.legal-page ul {
  margin-left: 24px;
  margin-bottom: 16px;
}

.legal-updated {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-bottom: 24px;
}

.legal-page .comparison-table {
  margin-top: 16px;
}

.legal-page .cookie-table {
  margin: 16px 0 24px;
}

.footer-legal ul {
  list-style: none;
}

.footer-legal li {
  margin-bottom: 8px;
}

.footer-legal a {
  color: var(--color-white);
  font-size: 14px;
  text-decoration: none;
}

.footer-legal a:hover {
  background: var(--color-highlighter);
  color: var(--color-ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

a:hover {
  background: var(--color-highlighter);
  text-decoration: none;
}

.container {
  width: min(100% - 40px, var(--max-width));
  margin-inline: auto;
}

/* Disclosure bar */
.disclosure-bar {
  background: var(--color-ink);
  color: var(--color-white);
  font-size: 12px;
  line-height: 1.4;
  padding: 10px 20px;
  text-align: center;
}

.disclosure-bar a {
  color: var(--color-highlighter);
  font-weight: 700;
}

.disclosure-bar a:hover {
  color: var(--color-ink);
}

/* Header */
.site-header {
  border-bottom: var(--border);
  background: var(--color-canvas);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
}

.logo:hover {
  background: transparent;
}

.logo-mark {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo-name {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
}

.nav-list a {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.nav-list a:hover {
  background: var(--color-highlighter);
}

.menu-toggle {
  display: none;
  background: none;
  border: var(--border);
  padding: 8px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: var(--border);
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--color-ink);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-highlighter);
  color: var(--color-ink);
}

.btn-highlight {
  background: var(--color-highlighter);
  color: var(--color-ink);
}

.btn-highlight:hover {
  background: var(--color-ink);
  color: var(--color-white);
}

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

.btn-ghost:hover {
  background: var(--color-paper);
}

/* Hero */
.hero {
  padding: 48px 0 var(--section-gap);
  border-bottom: var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--color-highlighter);
  padding: 4px 10px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 18px;
  max-width: 52ch;
  margin-bottom: 28px;
}

.hero-meta {
  font-size: 12px;
  color: var(--color-ink);
  opacity: 0.75;
  margin-top: 16px;
}

.hero-feature {
  border: var(--border);
  background: var(--color-white);
  padding: 28px;
}

.hero-feature-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--color-highlighter);
  padding: 4px 8px;
  margin-bottom: 16px;
}

.hero-feature-logo {
  height: 56px;
  width: auto;
  margin-bottom: 20px;
}

.hero-feature h2 {
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
}

.hero-feature p {
  font-size: 15px;
  margin-bottom: 20px;
}

.hero-feature-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: var(--border);
  padding-top: 16px;
  margin-bottom: 20px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.hero-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Section common */
.section {
  padding: var(--section-gap) 0;
  border-bottom: var(--border);
}

.section-header {
  margin-bottom: 32px;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.section-intro {
  margin-top: 16px;
  max-width: 65ch;
  font-size: 16px;
}

.update-date {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: var(--border);
  padding: 4px 10px;
  margin-top: 12px;
}

/* Why 888 */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.why-card {
  border: var(--border);
  background: var(--color-white);
  padding: 24px;
}

.why-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.why-card p {
  font-size: 15px;
  line-height: 1.4;
}

.comparison-table-wrap {
  overflow-x: auto;
  border: var(--border);
  background: var(--color-white);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  border: var(--border);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--color-paper);
}

.comparison-table .col-highlight {
  background: rgba(255, 248, 36, 0.25);
  font-weight: 700;
}

.comparison-table .check {
  font-weight: 700;
}

.table-note {
  font-size: 12px;
  margin-top: 12px;
  opacity: 0.8;
}

/* Casino cards */
.casino-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.casino-card {
  border: var(--border);
  background: var(--color-white);
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: var(--card-height);
}

.casino-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: auto;
  padding: 32px;
  border-width: 2px;
  background: var(--color-white);
  position: relative;
}

.casino-card--featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--color-highlighter);
}

.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--color-highlighter);
  padding: 4px 8px;
  margin-bottom: 12px;
}

.casino-logo {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  margin-bottom: 16px;
}

.casino-card--featured .casino-logo {
  height: 52px;
  max-width: 160px;
  margin-bottom: 0;
}

.casino-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.casino-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.rating-score {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.rating-stars {
  color: var(--color-ink);
  font-size: 14px;
  letter-spacing: 2px;
}

.casino-desc {
  font-size: 14px;
  line-height: 1.4;
  flex: 1;
  margin-bottom: 16px;
}

.casino-meta {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  opacity: 0.7;
}

.casino-card-footer {
  margin-top: auto;
}

.license-note {
  font-size: 11px;
  margin-top: 8px;
  opacity: 0.75;
}

/* Featured offers */
.offers-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
}

.offer-card {
  border: var(--border);
  background: var(--color-white);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.offer-card--primary {
  border-width: 2px;
  background: var(--color-white);
}

.offer-card--primary .offer-tag {
  background: var(--color-highlighter);
}

.offer-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-block;
  padding: 4px 8px;
  border: var(--border);
  margin-bottom: 14px;
  align-self: flex-start;
}

.offer-logo {
  height: 36px;
  margin-bottom: 14px;
}

.offer-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.offer-text {
  font-size: 14px;
  flex: 1;
  margin-bottom: 16px;
}

.offer-terms {
  font-size: 11px;
  opacity: 0.75;
  margin-top: 10px;
}

/* Game categories */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  border: var(--border);
  background: var(--color-white);
  padding: 24px;
  text-align: center;
}

.category-icon {
  font-size: 32px;
  margin-bottom: 12px;
  line-height: 1;
}

.category-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.category-card p {
  font-size: 13px;
  line-height: 1.35;
}

/* Regulators */
.regulators-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.regulator-card {
  border: var(--border);
  background: var(--color-white);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.regulator-logo {
  height: 48px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.regulator-card p {
  font-size: 13px;
  line-height: 1.35;
}

/* FAQ */
.faq-list {
  border: var(--border);
  background: var(--color-white);
}

.faq-item {
  border-bottom: var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question:hover {
  background: var(--color-paper);
}

.faq-icon {
  font-size: 20px;
  font-weight: 400;
  flex-shrink: 0;
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.45;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

/* Responsible gambling */
.rg-block {
  border: var(--border);
  background: var(--color-white);
  padding: 32px;
}

.rg-block h3 {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.rg-block p {
  font-size: 15px;
  margin-bottom: 12px;
  max-width: 70ch;
}

.rg-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.rg-links a {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.affiliate-disclosure {
  margin-top: 32px;
  padding-top: 24px;
  border-top: var(--border);
}

.affiliate-disclosure h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

/* Footer */
.site-footer {
  background: var(--color-ink);
  color: var(--color-white);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand .logo-name {
  color: var(--color-white);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.85;
}

.footer-nav h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  color: var(--color-highlighter);
}

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

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  color: var(--color-white);
  font-size: 14px;
  text-decoration: none;
}

.footer-nav a:hover {
  background: var(--color-highlighter);
  color: var(--color-ink);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  opacity: 0.75;
}

.site-footer a {
  color: var(--color-highlighter);
}

.site-footer a:hover {
  color: var(--color-ink);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(21, 21, 21, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: var(--color-white);
  border: var(--border);
  max-width: 480px;
  width: 100%;
  padding: 32px;
}

.modal h2 {
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 16px;
}

.modal p {
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.45;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.modal-small {
  font-size: 12px;
  margin-top: 16px;
  opacity: 0.75;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-ink);
  color: var(--color-white);
  padding: 20px;
  z-index: 999;
  border-top: 3px solid var(--color-highlighter);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-inner {
  width: min(100% - 40px, var(--max-width));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-inner p {
  font-size: 13px;
  flex: 1;
  min-width: 240px;
}

.cookie-inner a {
  color: var(--color-highlighter);
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .casino-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .casino-card--featured {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .casino-card--featured .casino-logo {
    margin-inline: auto;
  }

  .offers-grid {
    grid-template-columns: 1fr;
  }

  .categories-grid,
  .regulators-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-canvas);
    border-bottom: var(--border);
    padding: 20px;
  }

  .main-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
  }

  .site-header .container {
    position: relative;
  }

  .casino-grid {
    grid-template-columns: 1fr;
  }

  .hero-feature-stats {
    grid-template-columns: 1fr;
  }

  .categories-grid,
  .regulators-grid {
    grid-template-columns: 1fr;
  }
}
