:root {
  color-scheme: dark;
  --ink: #f7f1e9;
  --muted: #d1c8d6;
  --surface: #21192c;
  --surface-raised: #2b2137;
  --surface-deep: #191321;
  --line: #51435f;
  --accent: #e2b86d;
  --accent-ink: #201827;
  --focus: #ffe2a5;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  margin: 0;
  position: relative;
  isolation: isolate;
  min-width: 320px;
  background: transparent;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: url("/images/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
a { color: #f4cb85; text-underline-offset: .18em; }
a:hover { color: #ffe5b0; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
button, input { font: inherit; }
.site-frame { width: min(1280px, calc(100% - 40px)); margin: 20px auto 36px; }
.topbar, .hero-stage, .section-heading, .results-note, .no-results, .game-card,
.panel, .site-footer, .category-tools, .noscript-note {
  background-color: var(--surface);
}
.topbar {
  min-height: 74px;
  padding: 10px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand-logo { display: block; width: 176px; height: 52px; object-fit: contain; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color .16s ease, transform .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--accent-ink); background: var(--accent); }
.button-primary:hover { color: var(--accent-ink); background: #f0cb89; }
.button-secondary { color: var(--ink); background: #40324e; border-color: #655575; }
.hero-stage {
  margin-top: 16px;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  align-items: stretch;
  position: relative;
}
.hero-copy {
  width: 58%;
  padding: 24px 40px;
  position: relative;
  z-index: 1;
  align-self: center;
}
.eyebrow {
  margin: 0 0 8px;
  color: #e4c386;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
.hero-copy h1 {
  max-width: 620px;
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 3vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}
.entity-name { font-weight: 400 !important; font-style: normal !important; }
.hero-intro { max-width: 540px; margin: 0 0 16px; color: var(--muted); }
.hero-offer {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 12px 18px;
  border: 1px solid #67543c;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #2a2230;
}
.offer-label { display: block; color: var(--ink); font-weight: 700; }
.bonus-figure {
  display: block;
  color: #ffe0a2;
  font-size: clamp(2.5rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.hero-offer p { margin: 5px 0 0; color: var(--muted); font-size: .92rem; }
.hero-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 36%;
  background-color: var(--surface);
  background-image:
    linear-gradient(90deg, var(--surface) 0%, rgba(33,25,44,.94) 5%, rgba(33,25,44,.45) 25%, transparent 57%),
    linear-gradient(0deg, var(--surface) 0%, transparent 14%, transparent 88%, var(--surface) 100%),
    url("/image.jpg");
  background-size: 100% 100%, 100% 100%, cover;
  background-position: center, center, 62% top;
  background-repeat: no-repeat;
}
.games-section { margin-top: 16px; }
.category-tools {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: #897593 #2b2137;
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
  padding: 2px;
}
.filter-button {
  flex: 0 0 132px;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid #594a66;
  border-radius: 7px;
  background: #30253d;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.filter-button:hover { background: #40324e; }
.filter-button.is-selected { background: #d9b36e; color: #201827; border-color: #d9b36e; }
.search-line { display: flex; width: 100%; flex: 0 0 auto; justify-content: flex-end; gap: 8px; align-items: center; margin: 0; }
.search-field { display: flex; flex-direction: row; align-items: center; gap: 8px; color: var(--ink); font-size: .88rem; font-weight: 700; white-space: nowrap; }
.search-field input {
  width: min(190px, 18vw);
  min-height: 44px;
  padding: 8px 12px;
  color: var(--ink);
  background: #18131f;
  border: 1px solid #655575;
  border-radius: 7px;
}
.search-field input::placeholder { color: #c3b7ca; opacity: 1; }
.games-heading {
  margin: 10px 0 10px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.games-heading .eyebrow { margin-bottom: 2px; }
.games-heading h2 { margin: 0 0 4px; font-size: 1.4rem; line-height: 1.25; }
.games-heading > p:last-child { margin: 0; max-width: 860px; color: var(--muted); }
.results-note, .no-results, .noscript-note {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.results-note { margin: 0 0 10px; }
.no-results { margin: 0 0 12px; }
.game-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.game-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
  transition: border-color .15s ease, transform .15s ease;
}
.game-card:hover { border-color: #b99c6e; transform: translateY(-2px); }
.game-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--ink);
  text-decoration: none;
  border-radius: inherit;
}
.game-link:focus-visible { outline-offset: -4px; }
.button .entity-name { margin-left: .24em; }
.game-link img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.game-caption {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  min-height: 76px;
  padding: 10px 12px;
  background: var(--surface-raised);
}
.game-name { font-weight: 700; line-height: 1.3; }
.game-category { color: var(--muted); font-size: .88rem; }
[hidden] { display: none !important; }
.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.support-section { margin-top: 18px; scroll-margin-top: 16px; }
.support-section h2 { margin: 0 0 12px; font-size: 1.55rem; line-height: 1.25; }
.support-section h3 { margin: 18px 0 6px; font-size: 1.08rem; }
.support-section p { color: var(--muted); }
.support-section p:last-child { margin-bottom: 0; }
.bonus-panel { border-top: 3px solid var(--accent); }
.offer-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.offer-detail {
  padding: 14px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.offer-detail p { margin: 4px 0 0; }
.bonus-figure.inline { display: inline; font-size: 1.12em; line-height: inherit; letter-spacing: 0; }
.fact-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); }
.fact-table { width: 100%; border-collapse: collapse; min-width: 540px; }
.fact-table th, .fact-table td { padding: 13px 15px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.fact-table tr:last-child th, .fact-table tr:last-child td { border-bottom: 0; }
.fact-table th { width: 32%; color: var(--ink); font-weight: 700; }
.fact-table td { color: var(--muted); }
.steps { margin: 0; padding-left: 1.35rem; }
.steps li { padding: 0 0 12px 5px; color: var(--muted); }
.steps li:last-child { padding-bottom: 0; }
.steps li::marker { color: var(--accent); font-weight: 700; }
.faq-list { display: grid; gap: 10px; }
.faq-item { padding: 16px 18px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 8px; }
.faq-item h3 { margin: 0 0 6px; }
.faq-item p { margin: 0; }
.inline-link { font-weight: 700; }
.about-brand { display: flex; align-items: center; gap: 20px; margin: 14px 0; padding: 14px 18px; background: var(--surface-raised); border-radius: 8px; }
.about-brand .brand-logo { flex: 0 0 150px; width: 150px; height: 44px; }
.site-footer {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  scroll-margin-top: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 20px; }
.footer-brand p { margin: 0; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; }
.footer-note, .legal-line { margin: 10px 0 0; padding: 12px 14px; background: var(--surface-raised); border-radius: 7px; color: var(--muted); }
.legal-line { color: var(--ink); }
.noscript-note { margin-top: 12px; }
@media (max-width: 1000px) {
  .site-frame { width: min(100% - 28px, 900px); margin-top: 14px; }
  .hero-stage { min-height: 360px; }
  .hero-copy { width: 62%; padding: 28px 24px; }
  .hero-art { width: 44%; }
  .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .filter-button { flex-basis: 106px; }
}
@media (max-width: 680px) {
  .site-frame { width: calc(100% - 24px); margin: 12px auto 24px; }
  .topbar { min-height: 66px; padding: 7px 12px; border-radius: 11px; }
  .brand-logo { width: 140px; height: 44px; }
  .header-cta { min-height: 44px; padding: 9px 12px; font-size: .88rem; }
  .hero-stage { min-height: 0; flex-direction: column; }
  .hero-art {
    position: relative;
    order: 0;
    width: 100%;
    height: min(95vw, 360px);
    flex: 0 0 auto;
    background-image:
      linear-gradient(0deg, var(--surface) 0%, rgba(33,25,44,.82) 8%, transparent 42%, var(--surface) 100%),
      url("/image.jpg");
    background-size: 100% 100%, cover;
    background-position: center, 62% top;
  }
  .hero-copy { order: 1; width: 100%; padding: 6px 22px 24px; }
  .hero-copy h1 { font-size: clamp(1.9rem, 8vw, 2.35rem); }
  .hero-offer { padding: 10px 14px; }
  .bonus-figure { font-size: clamp(2.45rem, 8vw, 2.7rem); }
  .games-section { margin-top: 12px; }
  .category-tools { align-items: stretch; flex-direction: column; padding: 8px; }
  .filter-button { flex-basis: 122px; }
  .search-line { justify-content: stretch; align-items: end; }
  .search-field { flex: 1; flex-direction: column; align-items: stretch; gap: 4px; white-space: normal; }
  .search-field input { width: 100%; }
  .search-line .button { padding-inline: 14px; }
  .games-heading { padding: 13px 15px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .game-caption { min-height: 74px; padding: 9px; }
  .game-name { font-size: .94rem; }
  .game-category { font-size: .82rem; }
  .panel { padding: 18px; }
  .support-section h2 { font-size: 1.4rem; }
  .offer-details { grid-template-columns: 1fr; }
  .about-brand { align-items: flex-start; flex-direction: column; gap: 10px; }
  .footer-brand { align-items: flex-start; flex-direction: column; gap: 12px; }
  .site-footer { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
