:root {
  --ink: #102433;
  --harbour: #0e2a44;
  --delft: #1b4f8c;
  --delft-deep: #143a68;
  --brass: #c4a35a;
  --brass-deep: #9a7c3a;
  --porcelain: #eef4f8;
  --paper: #f7fafc;
  --foam: #ffffff;
  --line: rgba(16, 36, 51, 0.12);
  --ok: #2d7a58;
  --warn: #8c3a3a;
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --ui: "Outfit", "Avenir Next", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --header-h: 74px;
  --edge: 28px;
  --shadow: 0 18px 40px rgba(14, 42, 68, 0.08);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  max-width: 100%;
  overflow-x: clip;
}
::selection { background: #1b4f8c; color: #fff; }
body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  color: var(--ink);
  background:
    linear-gradient(180deg, #e8f0f6 0%, var(--porcelain) 28%, var(--paper) 100%);
  font-family: var(--ui);
  line-height: 1.62;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--delft); text-underline-offset: 3px; }
a:hover { color: var(--delft-deep); }
button, .btn { font-family: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}
.skip:focus { left: 12px; background: #fff; padding: 8px 12px; z-index: 80; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 20px;
  background: rgba(247, 250, 252, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.brand-logo {
  height: 46px;
  width: auto;
  max-width: min(240px, 56vw);
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 10px;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--delft);
  color: var(--delft);
  border-radius: 8px;
  padding: 8px 12px;
}
.site-header > .mobile-header-cta { display: none !important; }
.nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
}
.nav a, .nav summary {
  color: var(--harbour);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 8px;
  list-style: none;
  cursor: pointer;
}
.nav > details > summary::after {
  content: "⌄";
  display: inline-block;
  margin-left: 6px;
  color: var(--brass-deep);
}
.nav > a:hover,
.nav > summary:hover,
.nav > a.is-active {
  background: rgba(27, 79, 140, 0.08);
  color: var(--delft);
}
.nav details { position: relative; z-index: 50; }
.nav details ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 240px;
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  margin: 0;
  list-style: none;
  box-shadow: var(--shadow);
}
.nav details a { color: var(--ink); display: block; }
.nav details a:hover,
.nav details a.is-active { background: #e8eef6; color: var(--delft); }
.badge-18 {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  border: 1px solid var(--delft);
  color: var(--delft);
  padding: 4px 8px;
  border-radius: 999px;
}
.btn,
.nav > a.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--delft);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  padding: 10px 16px;
  border: 0;
  white-space: nowrap;
}
.btn:hover,
.nav > a.header-cta:hover {
  background: var(--delft-deep);
  color: #fff;
}
.btn-primary { background: var(--delft); color: #fff; }
.footer-cta { margin-top: 12px; }
.site-footer a.footer-cta { color: #fff; }

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  gap: 32px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 80px;
}
.anchor-nav { order: 2; }
#main { order: 1; min-width: 0; max-width: 100%; }
.anchor-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  padding: 14px 0 14px 18px;
  border-left: 3px solid var(--brass);
  max-height: calc(100vh - var(--header-h) - 2rem);
  overflow-y: auto;
}
.anchor-nav p {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--delft);
}
.anchor-nav a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 7px 0;
  opacity: 0.62;
}
.anchor-nav a.is-current {
  opacity: 1;
  font-weight: 600;
  color: var(--delft);
}
.anchor-nav a[data-i]::after {
  content: attr(data-i);
  float: right;
  font-family: var(--mono);
  font-size: 0.64rem;
  opacity: 0.45;
}

.hero, .section, .note, .faq details {
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 40px 36px;
  background: var(--harbour);
  color: #f4f7fb;
  min-height: 320px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(14, 42, 68, 0.94) 0%, rgba(14, 42, 68, 0.78) 46%, rgba(14, 42, 68, 0.28) 100%);
}
.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 62% center;
}
.hero > :not(.hero-background) { position: relative; z-index: 2; }
.kicker {
  font-family: var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--brass);
  margin: 0 0 12px;
}
.hero h1, .section h1, .section h2 {
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 16px;
}
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); max-width: 16ch; }
.lede { font-size: 1.12rem; max-width: 48ch; opacity: 0.94; }
.section { padding: var(--edge) var(--edge) calc(var(--edge) + 4px); margin-top: 18px; }
.section h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); }

.berth-stack { display: grid; gap: 12px; }
.berth {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px 16px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--brass);
  border-radius: 2px;
}
.berth-index {
  flex: 0 0 auto;
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--delft);
  line-height: 1;
  min-width: 2.4rem;
}
.berth-brand {
  flex: 0 0 9.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}
.berth-logo-link {
  display: block;
  line-height: 0;
  text-decoration: none;
  color: inherit;
}
.berth-id {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  width: 100%;
}
.berth h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.2;
}
.berth-stars {
  display: flex;
  gap: 0.08rem;
  font-size: 0.8rem;
  line-height: 1;
}
.berth-star { color: #c8d0d8; }
.berth-star.is-on { color: var(--brass-deep, var(--brass)); }
.berth-features {
  flex: 1 1 9rem;
  min-width: 0;
}
.berth-pays {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 7rem;
}
.berth-pays img {
  display: block;
  width: 3rem;
  height: 1.85rem;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.1rem 0.12rem;
}
.berth-bonus {
  flex: 1 1 9rem;
  margin: 0;
  font-weight: 700;
  color: var(--delft);
  min-width: 0;
}
.berth-bonus .bonus-prefix {
  display: block;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.5;
  margin-bottom: 4px;
}
.berth-cta {
  flex: 0 0 auto;
  align-self: center;
  margin-left: auto;
}
.berth-cta .btn { min-width: 7.5rem; }
.berth p { margin: 0; font-size: 0.9rem; opacity: 0.8; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0; }
.tag {
  font-size: 0.74rem;
  background: #e4edf6;
  color: var(--harbour);
  padding: 3px 8px;
  border-radius: 999px;
}
.criteria-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 8px;
}
.criteria-strip span {
  display: inline-flex;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  background: #eef3f8;
  font-size: 0.8rem;
}
.criteria-strip b { color: var(--brass-deep); font-family: var(--mono); font-size: 0.68rem; }

.table-scroll {
  display: block;
  width: 100%;
  overflow-x: auto;
  margin-top: 18px;
}
.pay-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 0.92rem;
}
.pay-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--delft);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.pay-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.pay-table tr.is-current td { background: #e8eef6; font-weight: 600; }
.yes { color: var(--ok); font-weight: 600; }

.note { padding: 16px 18px; margin-top: 16px; background: #f4eee0; }
.author-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 22px;
  background: var(--foam);
  border: 1px solid var(--line);
}
.author-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid var(--brass);
}
.author-card h3 { font-family: var(--display); margin: 0 0 6px; }
.author-card p { margin: 0; }
.profile-lead {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: start;
}
.profile-lead img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  border: 3px solid var(--brass);
}

.faq details { padding: 4px 18px; margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
.faq p { margin: 0 0 14px; }

.article-figure {
  margin: 22px 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.article-figure img { width: 100%; height: auto; }
.article-figure figcaption { padding: 8px 4px 0; font-size: 0.78rem; opacity: 0.7; }

.prose p { max-width: none; }
.prose h3 { margin: 1.4em 0 0.55em; font-family: var(--display); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose .content-table {
  display: table;
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.prose .content-table th,
.prose .content-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.prose .content-table th {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--delft);
  background: #eef3f8;
}

.site-footer {
  background: var(--harbour);
  color: #d7e4f0;
  width: 100%;
  padding: 48px 28px 28px;
  margin-top: 20px;
}
.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}
.footer-logo {
  width: min(220px, 100%);
  height: auto;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 12px;
}
.site-footer a { color: #c9d9ea; }
.site-footer a:hover { color: #fff; }
.site-footer h4 { font-family: var(--display); margin: 0 0 10px; color: #fff; }
.legal-line {
  max-width: 1180px;
  margin: 28px auto 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 16px;
  font-size: 0.82rem;
  opacity: 0.75;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 4px;
  background: var(--delft);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }

@media (max-width: 980px) {
  .page {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 16px 56px;
  }
  .anchor-nav, #main { order: 0; }
  .hero { min-height: 0; padding: 24px 20px 28px; }
  .hero h1 { font-size: clamp(1.7rem, 8vw, 2.35rem); max-width: none; }
  .section { padding: 22px 18px 24px; }
  .site-header > .mobile-header-cta {
    display: inline-flex !important;
    margin-left: auto;
    padding: 8px 12px;
    font-size: 0.78rem;
  }
  .nav-toggle { display: block; margin-left: 0; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #f7fafc;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav details ul { position: static; box-shadow: none; }
  .berth {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    text-align: center;
    gap: 10px 12px;
    padding: 14px 14px 16px;
  }
  .berth-index {
    position: absolute;
    top: 10px;
    left: 12px;
    font-size: 1.1rem;
    min-width: 0;
    z-index: 1;
  }
  .berth-brand {
    grid-column: 1 / -1;
    align-items: center;
    width: 100%;
    padding-top: 0.2rem;
  }
  .berth-logo-link { margin-inline: auto; }
  .berth-id { align-items: center; }
  .berth h3 { width: 100%; text-align: center; }
  .berth-stars { justify-content: center; }
  .berth-features { display: none; }
  .berth-pays {
    grid-column: 1;
    flex: none;
    justify-content: flex-start;
  }
  .berth-bonus {
    grid-column: 2;
    flex: none;
    text-align: left;
    font-size: 0.9rem;
  }
  .berth-cta {
    grid-column: 1 / -1;
    width: 100%;
    margin-left: 0;
  }
  .berth-cta .btn { width: 100%; min-width: 0; }
  .author-card, .profile-lead, .footer-grid { grid-template-columns: 1fr; }
  .brand-logo { height: 36px; max-width: min(140px, 38vw); }
}

@media (max-width: 860px) {
  .anchor-nav { display: none !important; }
  :root { --edge: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Payment brand marks from D:\\NL\\image-bank (no uniqueify) */
.pay-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
  padding: 0;
  list-style: none;
}
.pay-logos[data-grid-count="10"] {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.pay-logos[data-grid-count="6"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pay-logos[data-grid-count="9"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 700px) {
  .pay-logos,
  .pay-logos[data-grid-count="10"],
  .pay-logos[data-grid-count="6"],
  .pay-logos[data-grid-count="9"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.pay-logo {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid var(--hairline, var(--line, #d9ddd8));
  background: #fff;
}
.pay-logo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 120 / 80;
  object-fit: contain;
  background: #fff;
}
.pay-logo figcaption {
  padding: 0.35rem 0.4rem 0.5rem;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}
.pay-logo-link,
.berth-pay-link,
.pay-aff {
  display: block;
  text-decoration: none;
  color: inherit;
  line-height: 0;
  cursor: pointer;
}
.pay-logo-link figcaption {
  line-height: 1.2;
}
.berth-pay-link {
  flex: 0 0 auto;
}
.pay-method .pay-aff {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.45rem;
}
.pay-method {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pay-method img {
  display: block;
  width: 4.5rem;
  height: 3rem;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--hairline, var(--line, #d9ddd8));
  flex: 0 0 auto;
}
.casino-logo,
.berth-logo {
  display: block;
  width: 6.5rem;
  height: 3.25rem;
  margin: 0 0 0.35rem;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--hairline, var(--line, #d9ddd8));
}

/* Popular slots lobby — full art (no crop); cols depend on TOC layout */
.slots-lobby {
  background: #12171f;
  color: #f4f6f8;
  border-radius: 4px;
  padding: 1.35rem 1.25rem 1.5rem;
  margin-top: 1.25rem;
  overflow: visible;
}
.slots-lobby .kicker { color: var(--brass, #c4a35a); }
.slots-lobby h2 { color: #fff; margin-bottom: 0.4rem; }
.slots-lobby > p { color: rgba(244, 246, 248, 0.78); max-width: 54ch; }
.slots-lobby__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.1rem 0 1.15rem;
}
.slots-lobby__tab {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--sans, var(--font, Outfit, sans-serif));
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.15rem;
  border-radius: 0.65rem;
  background: #e87722;
  color: #111;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.slots-lobby__tab:hover { filter: brightness(1.06); transform: translateY(-1px); }
.slots-lobby__tab.is-active {
  background: #fff;
  color: #111;
  outline: 2px solid #e87722;
  outline-offset: 1px;
}
.slots-lobby__grid {
  /* Side TOC: 3 cols × 3 rows. Header/top TOC: 4 cols × 3 rows. Set via data-toc + JS. */
  --slot-cols: 3;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--slot-cols), minmax(0, 1fr));
  gap: 1rem 0.9rem;
  overflow: visible;
}
.slots-lobby__grid[data-toc="top"] { --slot-cols: 4; }
.slots-lobby__grid[data-toc="side"] { --slot-cols: 3; }
.slots-lobby__item[hidden] { display: none !important; }
.slot-tile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
  border-radius: 0.75rem;
  transition: transform 0.2s ease;
  transform-origin: center center;
}
.slot-tile:hover,
.slot-tile:focus-visible {
  transform: scale(1.05);
  z-index: 3;
}
.slot-tile:active {
  transform: scale(1.08);
}
.slot-tile__media {
  display: block;
  overflow: visible;
  border-radius: 0.85rem;
  background: #1a222c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 0;
  padding: 0.4rem;
}
.slot-tile__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0.55rem;
  /* Never cover/crop — full artwork visible */
  transform: none !important;
}
.slot-tile__name {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 0 0.15rem;
  color: #fff;
}
/* Mobile / narrow: always 2 cols; tabs scroll horizontally with visible scrollbar */
@media (max-width: 980px) {
  .slots-lobby__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #e87722 rgba(255, 255, 255, 0.12);
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    padding: 0.15rem 0.25rem 0.55rem;
  }
  .slots-lobby__tabs::-webkit-scrollbar {
    height: 6px;
  }
  .slots-lobby__tabs::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
  }
  .slots-lobby__tabs::-webkit-scrollbar-thumb {
    background: #e87722;
    border-radius: 999px;
  }
  .slots-lobby__grid,
  .slots-lobby__grid[data-toc="top"],
  .slots-lobby__grid[data-toc="side"] {
    --slot-cols: 2 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .slot-tile,
  .slots-lobby__tab {
    transition: none;
  }
  .slot-tile:hover,
  .slot-tile:focus-visible,
  .slot-tile:active {
    transform: none;
  }
}
