:root {
  --blue: #0051fd;
  --dark: #010630;
  --black: #000000;
  --white: #ffffff;
  --soft: #eef3ff;
  --line: #d8e1ff;
  --muted: #62708d;
  --shadow: 0 18px 45px rgba(1, 6, 48, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 46%, #ffffff 100%);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 5px 25px rgba(1, 6, 48, 0.12);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 58px;
  padding: 0 8%;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--dark));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  background: var(--white);
  color: var(--blue);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  font-size: 22px;
  line-height: 1;
}

.brand small {
  font-weight: 800;
  opacity: 0.8;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(360px, 42vw);
  margin-left: auto;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  font: inherit;
}

.search input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.language {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 8%;
  background: var(--white);
}

.nav a {
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--black);
  font-weight: 800;
  font-size: 14px;
}

.nav a:hover {
  color: var(--blue);
  background: var(--soft);
  text-decoration: none;
}

main {
  width: min(1200px, calc(100% - 32px));
  margin: 22px auto 96px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #f3f7ff 0%, #ffffff 48%, #e9efff 100%);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 81, 253, 0.18), rgba(1, 6, 48, 0));
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
}

h2 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
}

.hero p {
  max-width: 780px;
}

.hero-badge {
  position: absolute;
  right: 32px;
  top: 30px;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--dark));
  transform: rotate(6deg);
}

.hero-badge span {
  font-size: 38px;
  font-weight: 900;
}

.hero-badge strong {
  font-size: 12px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 24px;
  padding: 14px;
  border-radius: 7px;
  background: rgba(0, 81, 253, 0.09);
}

.toc strong {
  width: 100%;
  color: var(--dark);
}

.section-heading {
  margin: 32px 0 18px;
}

.section-heading p {
  color: var(--muted);
}

.admin-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.2fr);
  gap: 24px;
  margin: 0 0 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(1, 6, 48, 0.08);
}

.admin-panel form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-panel label {
  display: grid;
  gap: 6px;
  color: var(--dark);
  font-weight: 800;
  font-size: 14px;
}

.admin-panel input {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  font: inherit;
}

.admin-panel button,
.form-status {
  align-self: end;
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

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

.casino-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(1, 6, 48, 0.08);
}

.casino-summary {
  display: grid;
  grid-template-columns: 130px minmax(190px, 1fr) minmax(210px, 1fr) 110px 180px;
  align-items: center;
  gap: 22px;
  padding: 20px;
}

.casino-logo {
  display: grid;
  place-items: center;
  min-height: 90px;
  border-radius: 6px;
  color: var(--white);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.casino-logo strong {
  display: block;
  font-size: 16px;
}

.casino-logo.dark {
  background: linear-gradient(160deg, #000000, var(--dark));
}

.casino-logo.blue {
  background: linear-gradient(160deg, var(--blue), #023099);
}

.casino-logo.gradient {
  background: linear-gradient(160deg, var(--dark), var(--blue));
}

.offer {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #edf1fa;
}

.offer p {
  margin: 0;
  font-size: 18px;
}

.coin {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
  font-weight: 900;
}

.checks {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li::before {
  content: "\2713";
  margin-right: 8px;
  color: var(--blue);
  font-weight: 900;
}

.rating {
  color: var(--blue);
  font-size: 22px;
  letter-spacing: 1px;
  white-space: nowrap;
}

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

.play-button,
.secondary-button,
.cookie-bar button,
.admin-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 7px;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(0, 81, 253, 0.24);
  font-weight: 900;
  text-align: center;
  cursor: pointer;
}

.play-button:hover,
.secondary-button:hover,
.cookie-bar button:hover {
  background: var(--dark);
  text-decoration: none;
}

.secondary-button {
  min-height: 38px;
  background: var(--dark);
}

.play-button.small {
  min-height: 38px;
  padding-inline: 14px;
}

.quick-toggle {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #edf1fa;
  color: var(--black);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.terms {
  margin: -6px 20px 16px;
  color: var(--muted);
  font-size: 11px;
}

.quick-view {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(280px, 1.05fr) minmax(240px, 0.95fr);
  gap: 20px;
  margin: 0 20px 20px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.quick-view[hidden] {
  display: none;
}

.author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--dark));
  font-weight: 900;
}

.facts dl,
.facts-table dl {
  display: grid;
  grid-template-columns: minmax(120px, 0.65fr) 1fr;
  margin: 0;
  overflow: hidden;
  border-radius: 7px;
}

.facts dt,
.facts dd,
.facts-table dt,
.facts-table dd {
  margin: 0;
  padding: 9px 10px;
  background: #edf1fa;
  border-bottom: 1px solid var(--white);
}

.facts dt,
.facts-table dt {
  font-weight: 800;
}

.facts dd:nth-of-type(even),
.facts dt:nth-of-type(even),
.facts-table dd:nth-of-type(even),
.facts-table dt:nth-of-type(even) {
  background: #f7f9ff;
}

.bonus-box > div {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 7px;
  background: #edf1fa;
}

.bonus-box p {
  margin-bottom: 2px;
}

.review-page {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.review-page.standalone {
  margin-top: 0;
  border-top: 0;
}

.review-page > p {
  max-width: 850px;
}

.casino-card.compact {
  margin-bottom: 26px;
}

.facts-table {
  max-width: 850px;
  margin-top: 24px;
}

.bottom-offer {
  margin: 28px 0;
}

.muted {
  color: var(--muted);
}

.cookie-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-top: 2px solid var(--blue);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -10px 30px rgba(1, 6, 48, 0.12);
  text-align: center;
}

.cookie-bar button {
  min-height: 34px;
  padding-inline: 12px;
}

.age-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(1, 6, 48, 0.82);
}

.age-modal.is-visible {
  display: grid;
}

.age-card {
  width: min(480px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--dark));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.age-card .eyebrow {
  color: var(--white);
  opacity: 0.8;
}

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

.age-actions .play-button {
  background: var(--white);
  color: var(--blue);
}

.age-actions .secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 980px) {
  .topbar {
    padding-inline: 20px;
  }

  .nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-inline: 20px;
  }

  .nav a {
    white-space: nowrap;
  }

  .hero-badge {
    opacity: 0.18;
  }

  .casino-summary {
    grid-template-columns: 110px 1fr;
    gap: 16px;
  }

  .checks,
  .rating,
  .actions {
    grid-column: 2;
  }

  .quick-view {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 12px;
  }

  .search {
    order: 3;
    width: 100%;
    margin: 0;
  }

  .language {
    margin-left: auto;
  }

  main {
    width: min(100% - 20px, 1200px);
    margin-top: 14px;
  }

  .hero {
    padding: 22px 18px;
  }

  .hero-badge {
    display: none;
  }

  .toc {
    display: grid;
  }

  .admin-panel,
  .admin-panel form {
    grid-template-columns: 1fr;
  }

  .casino-summary {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .casino-logo {
    min-height: 76px;
  }

  .checks,
  .rating,
  .actions {
    grid-column: auto;
  }

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

  .quick-view {
    margin: 0 12px 14px;
    padding: 16px;
  }

  .facts dl,
  .facts-table dl {
    grid-template-columns: 1fr;
  }

  .facts dd,
  .facts-table dd {
    padding-top: 0;
  }

  .cookie-bar {
    align-items: stretch;
    flex-direction: column;
    font-size: 14px;
  }
}
