/* Replay Poker Log In reference guide - Print direction */
:root {
  --stage: #0f1813;
  --stage-0: rgba(15, 24, 19, 0);
  --ink: #141a17;
  --muted: #4a5550;
  --paper: #ffffff;
  --tint: #f2f6f4;
  --tint-2: #e3ebe7;
  --rule: #cdd7d2;
  --field: #6f7d77;
  --theme: #1b4d3e;
  --theme-hi: #246552;
  --copper: #d9874a;
  --copper-hi: #e8a06a;
  --copper-ink: #93401a;
  --hero-ink: #f3eee6;
  --hero-muted: #c3cbc6;
  --hero-figure: #f0b27a;
  --focus: #1b4d3e;
  --gap: 24px;
  --gutter: 32px;
  --pad: 40px;
  --stage-h: min(510px, max(400px, calc(100vh - 390px)));
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, Helvetica, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: transparent;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("/images/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(8, 14, 11, 0.42);
  pointer-events: none;
}

[hidden] { display: none !important; }

img { max-width: 100%; }

.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(--theme); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.page {
  max-width: calc(1280px + 2 * var(--gutter));
  margin: 0 auto;
  padding: var(--gap) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

main {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

section, footer { scroll-margin-top: 24px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 2px;
  background: var(--copper);
  color: #111111;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.btn:hover { background: var(--copper-hi); text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-dark { background: var(--theme); color: #ffffff; }
.btn-dark:hover { background: var(--theme-hi); }

/* Hero stage */
.stage {
  --focus: #f0b27a;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: var(--stage-h);
  background: var(--stage);
  color: var(--hero-ink);
  border-radius: 2px;
  overflow: hidden;
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 40px;
}
.topbar .logo { display: block; height: 40px; width: auto; }

.hero-copy {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 76px 40px 32px;
}

.hero-copy h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.12;
  margin: 0 0 16px;
  max-width: 14em;
}

.offer-label {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 24px;
  color: var(--hero-ink);
}

.hero-copy .hero-figure {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(44px, 4.6vw, 64px);
  line-height: 1;
  color: var(--hero-figure);
  margin: 0 0 12px;
}

.hero-terms {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 22px;
  color: var(--hero-ink);
}
.hero-terms li + li { margin-top: 4px; }
.hero-terms .bonus-figure { font-size: 20px; color: var(--hero-figure); }

.hero-note {
  margin: 8px 0 20px;
  font-size: 15px;
  line-height: 20px;
  color: var(--hero-muted);
}

.btn-hero { min-height: 48px; padding: 0 28px; font-size: 17px; }

.hero-media {
  --pic: calc(var(--stage-h) * 1.5);
  --px: calc(50% - var(--pic) * 0.125);
  --py: 0px;
  --vfade: linear-gradient(to bottom, var(--stage) 0%, var(--stage-0) 6%, var(--stage-0) 82%, var(--stage) 100%);
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  background-color: var(--stage);
  background-image:
    var(--vfade),
    linear-gradient(to right, var(--stage) 0%, var(--stage-0) 16%),
    linear-gradient(to right, var(--stage) 0%, var(--stage-0) 14%, var(--stage-0) 88%, var(--stage) 100%),
    url("/image.jpg");
  background-size: 100% 100%, 100% 100%, var(--pic) var(--pic), auto 150%;
  background-position: 0 0, 0 0, var(--px) var(--py), var(--px) var(--py);
  background-repeat: no-repeat;
}

/* Generic bonus figure */
.bonus-figure {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3em;
  line-height: 1.1;
  color: var(--copper-ink);
}

/* Games */
.games {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.strip {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 10px 24px;
  background: var(--tint);
  border-radius: 2px;
}

.strip h2 {
  margin: 0;
  flex: none;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  white-space: nowrap;
}

.strip:not(.ready) .ctl { display: none !important; }

.filters {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-row {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filter-row::-webkit-scrollbar { display: none; }

.fbtn {
  flex: 0 0 112px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: var(--tint);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.fbtn:hover { background: var(--tint-2); }
.fbtn[aria-pressed="true"] { border-bottom-color: var(--theme); color: var(--theme); }
.fbtn:focus-visible { outline-offset: -3px; }

.arrow {
  flex: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 2px;
  background: var(--tint);
  color: var(--ink);
  cursor: pointer;
}
.arrow:hover:not(:disabled) { background: var(--tint-2); }
.arrow:disabled { color: #9aa49f; cursor: default; }
.arrow svg { width: 20px; height: 20px; }

.select-wrap { display: none; }

.search { flex: none; }

.field {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--field);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
}
.search .field { width: 13em; }
select.field { width: 100%; }

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.tile {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.tile:hover { border-color: var(--theme); text-decoration: none; }
.tile:focus-visible { outline-offset: 3px; }

.cover { display: block; overflow: hidden; aspect-ratio: 3 / 2; }
.cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  transition: transform 0.3s ease;
}
.tile:hover .cover img { transform: scale(1.03); }

.cap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-top: 1px solid var(--rule);
}
.cap .name { font-size: 15px; line-height: 20px; font-weight: 600; min-height: 40px; }
.cap .cat { font-size: 14px; line-height: 18px; color: var(--muted); }

.catalogue-foot {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 24px;
  background: var(--paper);
  border-radius: 2px;
}
.catalogue-foot p { margin: 0; }
.count { font-weight: 600; }
.no-results { color: var(--copper-ink); font-weight: 600; }
.btn-reset {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.btn-reset:hover { background: var(--tint); }

/* Supporting panels */
.panel {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  column-gap: 40px;
  row-gap: 16px;
  padding: var(--pad);
  background: var(--paper);
  border-radius: 2px;
}
.panel-tint { background: var(--tint); }

.panel > h2 {
  grid-column: 1;
  align-self: start;
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
}

.panel-body { grid-column: 2; min-width: 0; max-width: 780px; }
.panel-body > :first-child { margin-top: 0; }
.panel-body > :last-child { margin-bottom: 0; }
.panel-body p { margin: 0 0 16px; }
.panel-body h3 {
  margin: 28px 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
}

.offer-box {
  margin: 0 0 20px;
  padding: 8px 24px;
  background: var(--tint);
  border-radius: 2px;
}
.offer-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
}
.offer-row + .offer-row { border-top: 1px solid var(--rule); }
.offer-row dt { font-weight: 600; }
.offer-row dd { margin: 0; }
.offer-row .bonus-figure { display: block; font-size: 34px; margin-bottom: 4px; }
.offer-row .cond { display: block; }

.table-scroll { overflow-x: auto; margin: 0 0 16px; }
.ref-table { width: 100%; min-width: 440px; border-collapse: collapse; }
.ref-table caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 12px;
  color: var(--muted);
  font-weight: 400;
}
.ref-table th, .ref-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px 12px 0;
  border-top: 1px solid var(--rule);
}
.ref-table tr:last-child th, .ref-table tr:last-child td { border-bottom: 1px solid var(--rule); }
.ref-table th { width: 36%; font-weight: 600; }
.na { color: var(--muted); }

.steps { list-style: none; margin: 0 0 24px; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before {
  content: counter(step);
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  color: var(--theme);
}

.about-logo { display: block; height: 48px; width: auto; margin: 0 0 20px; }

.plain-list { margin: 0 0 16px; padding-left: 20px; }
.plain-list li + li { margin-top: 8px; }

.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
}
.faq details p { margin: 0 0 16px; }

/* Footer */
.site-footer {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding: var(--pad);
  background: var(--tint);
  border-radius: 2px;
  font-size: 16px;
}
.site-footer h2 {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.25;
}
.site-footer p { margin: 0 0 12px; }
.footer-logo { display: block; height: 40px; width: auto; margin: 0 0 16px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-legal {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 15px;
}
.footer-legal p:last-child { margin-bottom: 0; }
.age { color: var(--ink); font-weight: 600; }

/* Responsive */
@media (max-width: 1279px) {
  .strip h2 { font-size: 20px; }
}

@media (max-width: 1099px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  :root { --gutter: 24px; --pad: 24px; }

  .stage { display: flex; flex-direction: column; height: auto; }
  .topbar { height: 60px; padding: 8px 24px; }
  .topbar .logo { height: 32px; }
  .hero-media {
    order: -1;
    flex: none;
    height: 440px;
    --pic: 616px;
    --py: 40px;
    --vfade: linear-gradient(to bottom, var(--stage) 0, var(--stage) 40px, var(--stage-0) 76px, var(--stage-0) 80%, var(--stage) 100%);
    background-size: 100% 100%, 100% 100%, var(--pic) var(--pic), auto 140%;
  }
  .hero-copy { padding: 8px 24px 32px; }
  .hero-copy h1 { max-width: none; }

  .strip { height: auto; flex-wrap: wrap; padding: 12px 24px; row-gap: 8px; }
  .strip h2 { flex: 1 1 auto; }
  .filters { order: 3; flex: 1 1 100%; }

  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  .panel { grid-template-columns: minmax(0, 1fr); }
  .panel > h2, .panel-body { grid-column: 1; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; --gap: 16px; --pad: 16px; }

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

  .topbar { padding: 8px 16px; }
  .topbar .logo { height: 28px; }
  .topbar .btn { padding: 0 12px; font-size: 15px; }
  .hero-copy { padding: 8px 16px 24px; }
  .hero-copy .hero-figure { font-size: 38px; }

  .strip { padding: 12px 16px; gap: 12px; }
  .strip h2 { flex: 1 1 100%; }
  .filters { display: none !important; }
  .select-wrap { display: block; flex: 1 1 0; min-width: 0; }
  .search { flex: 1 1 0; min-width: 0; }
  .search .field { width: 100%; }

  .catalogue-foot { padding: 16px; }
  .offer-box { padding: 4px 16px; }
  .offer-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .offer-row .bonus-figure { font-size: 30px; }
  .panel > h2 { font-size: 26px; }

  .site-footer { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 559px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html, .filter-row { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .tile:hover .cover img { transform: none; }
}
