:root {
  --ink: #14180f;
  --navy: #1e2616;
  --panel: #2a3320;
  --mahogany: #3d291c;
  --lime: #c5d315;
  --lime-deep: #9aa80f;
  --ivory: #f3f0e2;
  --muted: #d9d6c6;
  --line: rgba(197, 211, 21, 0.34);
  --header: 76px;
  --max: 1080px;
  --measure: 66ch;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --text: "Newsreader", "Palatino Linotype", serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  scroll-padding-top: calc(var(--header) + env(safe-area-inset-top));
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.7;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(197, 211, 21, 0.28);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
  scroll-margin-top: calc(var(--header) + 16px);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 12px; }
h3 { font-size: 1.35rem; margin: 0 0 8px; }

p { max-width: var(--measure); }
.section:has(.games) p { max-width: none; width: 100%; }

a { color: var(--lime); }
a:hover { color: #fff6df; }

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

img { max-width: 100%; height: auto; display: block; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--lime);
  color: var(--ink);
  padding: 10px 14px;
  z-index: 30;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(20, 24, 15, 0.94);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}

.header-row {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo img { width: 150px; height: auto; }

.nav-toggle {
  margin-left: auto;
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--navy);
  color: var(--ivory);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-left: auto;
  align-items: center;
}

.nav a {
  color: var(--ivory);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 6px 2px;
}

.nav a.btn { color: var(--ink); }
.nav a.btn:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  background: linear-gradient(180deg, #e8f56c 0%, #c5d315 46%, #a3b10f 100%);
  color: #14180f;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.05rem;
  border: 1px solid #f4f8b4;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 18px rgba(0, 0, 0, 0.38);
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  background: linear-gradient(180deg, #f4ffa0 0%, #d4e24a 42%, #b4c214 100%);
  color: #14180f;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 14px 24px rgba(0, 0, 0, 0.42);
}

.btn-line {
  background: rgba(20, 24, 15, 0.45);
  color: var(--ivory);
  border: 1px solid #c5d315;
  box-shadow: inset 0 0 0 1px rgba(197, 211, 21, 0.28), 0 8px 18px rgba(0, 0, 0, 0.28);
}

.btn-line:hover {
  background: #c5d315;
  color: #14180f;
  border-color: #f4f8b4;
}

.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: end;
  margin: 0 0 28px;
}

.hero a.shot { display: block; }
.hero img { width: 100%; height: 72vh; object-fit: cover; }

.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 0 32px;
  background: linear-gradient(transparent, rgba(20, 24, 15, 0.94) 42%);
}

.hero-copy p { color: var(--muted); font-size: 1.2rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

.section { padding: 28px 0; }

.section-lead {
  margin: 12px 0 8px;
  padding: 42px 36px 36px;
  background-color: #14180f;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px var(--line);
}

.section-lead h1,
.section-lead p,
.section-lead .toc-title { color: #f7f4ea; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65); }

.lead-kod { background-image: linear-gradient(105deg, rgba(10, 12, 8, 0.94) 0%, rgba(10, 12, 8, 0.82) 46%, rgba(10, 12, 8, 0.62) 100%), url("../images/tw-vegas-floor.webp"); }
.lead-bonus { background-image: linear-gradient(105deg, rgba(10, 12, 8, 0.94) 0%, rgba(10, 12, 8, 0.84) 50%, rgba(10, 12, 8, 0.66) 100%), url("../images/tw-macro-chips.webp"); }
.lead-opinie { background-image: linear-gradient(105deg, rgba(10, 12, 8, 0.94) 0%, rgba(10, 12, 8, 0.84) 50%, rgba(10, 12, 8, 0.66) 100%), url("../images/tw-live-dealer.webp"); }
.lead-spiny { background-image: linear-gradient(105deg, rgba(10, 12, 8, 0.94) 0%, rgba(10, 12, 8, 0.84) 50%, rgba(10, 12, 8, 0.66) 100%), url("../images/tw-macro-roulette.webp"); }
.lead-login { background-image: linear-gradient(105deg, rgba(10, 12, 8, 0.94) 0%, rgba(10, 12, 8, 0.84) 50%, rgba(10, 12, 8, 0.66) 100%), url("../images/tw-vegas-glass.webp"); }
.lead-app { background-image: linear-gradient(105deg, rgba(10, 12, 8, 0.94) 0%, rgba(10, 12, 8, 0.84) 50%, rgba(10, 12, 8, 0.66) 100%), url("../images/tw-vip-hands.webp"); }

.shot {
  display: block;
  margin: 8px 0 18px;
  border: 1px solid var(--line);
}

.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.games {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 10px;
}

.games li {
  display: flex;
  min-height: 0;
}

.games a {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: var(--ivory);
  background: var(--navy);
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.25;
}

.games img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  flex: 0 0 auto;
  object-fit: cover;
}

.games a span {
  display: flex;
  align-items: flex-end;
  flex: 1 1 auto;
  min-height: calc(1.25em * 3);
  padding: 10px 12px 12px;
}

.games a:hover { background: var(--mahogany); color: var(--lime); }

.toc {
  width: 100%;
  margin: 4px 0 28px;
  padding: 16px 18px 6px;
  border: 1px solid var(--line);
  background: var(--navy);
}

.toc-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.2;
}

.toc ol {
  margin: 0;
  padding: 0 0 10px 1.25rem;
  columns: 2;
  column-gap: 32px;
}

.toc li { break-inside: avoid; }

.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.toc a:hover { text-decoration: underline; text-underline-offset: 3px; }

.takeaways {
  border-left: 3px solid var(--lime);
  padding: 4px 0 4px 16px;
  margin: 8px 0 20px;
}

.takeaways li { margin: 6px 0; }

.table-wrap { overflow-x: auto; margin: 12px 0 18px; }

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-variant-numeric: tabular-nums;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th { color: var(--lime); font-family: var(--serif); font-weight: 560; }

.crumbs { color: var(--muted); font-size: 1rem; margin: 18px 0 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.crumbs a { color: var(--muted); }

details.faq {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

details.faq summary {
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
  font-family: var(--serif);
}

details.faq summary h3 { margin: 0; font-size: 1.15rem; }

.band {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 22px;
  background: var(--mahogany);
  margin: 20px 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 calc(32px + env(safe-area-inset-bottom));
  color: var(--muted);
}

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.site-footer a { color: var(--ivory); }

.age {
  width: 44px;
  height: 44px;
  border: 2px solid var(--lime);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--lime);
  font-family: var(--serif);
}

.note { color: var(--muted); font-size: 1rem; }

.opinions {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

a.opinion {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0;
  padding: 14px 16px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ivory);
  text-decoration: none;
}

a.opinion:hover { border-color: var(--lime); }

.opinion img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.opinion-copy { min-width: 0; }

.opinion p { margin: 0; }

.opinion-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.opinion-name {
  font-family: var(--serif);
  color: var(--ivory);
}

.opinion-stars {
  color: var(--lime);
  letter-spacing: 0.08em;
  font-size: 1rem;
}

.star-off { color: rgba(243, 240, 226, 0.35); }

.gift {
  position: fixed;
  z-index: 40;
  right: max(18px, env(safe-area-inset-right));
  top: 42%;
  width: 84px;
  height: 84px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.45));
}

.gift svg { width: 100%; height: 100%; display: block; }

.gift-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #14180f;
  color: var(--lime);
  border: 2px solid var(--lime);
  font-family: var(--serif);
  font-size: 0.8rem;
  line-height: 18px;
  text-align: center;
}

.bonus-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  background: rgba(8, 10, 6, 0.62);
}

.bonus-layer[hidden] { display: none; }

.bonus-dialog {
  width: min(420px, 100%);
  position: relative;
  padding: 22px 22px 18px;
  border-radius: 18px;
  background: #102218;
  color: #f7f4ea;
  border: 1px solid rgba(197, 211, 21, 0.45);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.bonus-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #f7f4ea;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.bonus-kicker {
  margin: 0 0 6px;
  max-width: none;
  color: var(--lime);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 560;
}

.bonus-sub,
.bonus-offer,
.bonus-timer { max-width: none; }

.bonus-sub { margin: 0 0 12px; color: #d9d6c6; }

.bonus-offer {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  line-height: 1.15;
  font-weight: 560;
}

.bonus-timer {
  margin: 0 0 16px;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.bonus-timer time { font-weight: 560; }

.bonus-dialog .btn { width: 100%; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--header) + env(safe-area-inset-top));
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    overscroll-behavior: contain;
  }
  .nav.is-open { display: flex; }
  .nav a { width: 100%; }
  .games { grid-template-columns: 1fr 1fr; }
  .footer-grid, .band { display: grid; }
}

@media (max-width: 640px) {
  .hero, .hero img { min-height: 86vh; height: 86vh; }
  .games { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .opinions { grid-template-columns: 1fr; }
  .opinion img { width: 64px; height: 64px; }
  .gift {
    top: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 68px;
    height: 68px;
  }
  .bonus-dialog { padding: 20px 16px 16px; border-radius: 16px; }
}

@media (pointer: fine) {
  html { overscroll-behavior: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; transform: none; }
  .gift { filter: none; }
}
