/* Bober Casino: one dark theme (forest green, gold and wood, taken from the Bober imagery) */

:root {
  --bg: #08180f;
  --bg-2: #0c2318;
  --panel: #102c1f;
  --panel-2: #153826;
  --line: rgba(232, 190, 92, .28);
  --line-strong: rgba(232, 190, 92, .6);
  --gold: #f0c35a;
  --gold-2: #ffe29a;
  --gold-dark: #a8741c;
  --green: #1f9a55;
  --green-2: #29c06b;
  --wood: #5a321a;
  --wood-2: #7a4626;
  --text: #f3efe2;
  --muted: #b9c6b8;
  --dim: #7f9484;
  --radius: 14px;
  --header-h: 68px;
  --side-w: 248px;
  --side-w-closed: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; min-height: 100vh; font: 400 15px/1.6 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--text);
  background: radial-gradient(1200px 600px at 70% -10%, rgba(240, 195, 90, .08), transparent 60%),
    radial-gradient(900px 500px at 0% 30%, rgba(31, 154, 85, .10), transparent 60%), var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; font-weight: 800; letter-spacing: .01em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h3 { font-size: 1.1rem; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin: .25em 0; }
strong { color: #fff; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: #1b1203; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: 10px; border: 1px solid transparent; font: 800 .9rem/1 'Poppins', sans-serif; text-transform: uppercase;
  letter-spacing: .03em; cursor: pointer; white-space: nowrap; transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn img { width: 30px; height: 30px; margin: -4px 0; }
.btn-gold { background: linear-gradient(180deg, #ffe08a, #f0b93e 55%, #c98a1f); color: #2a1803; border-color: #ffe9a8; box-shadow: 0 4px 16px rgba(240, 185, 62, .25); }
.btn-gold:hover { color: #2a1803; }
.btn-green { background: linear-gradient(180deg, #2bb867, #17803f); color: #fff; border-color: #4fd88a; }
.btn-green:hover { color: #fff; }
.btn-wood { background: linear-gradient(180deg, var(--wood-2), var(--wood)); color: var(--gold-2); border-color: var(--line-strong); }
.btn-wood:hover { color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { color: #fff; border-color: var(--line-strong); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h); display: flex; align-items: center; gap: 14px; padding: 0 18px;
  background: linear-gradient(180deg, #0d2a1c, #0a2016); border-bottom: 1px solid var(--line);
}
.side-toggle-btn {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--gold);
}
.side-toggle-btn .chev-l { width: 10px; height: 10px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateX(2px) rotate(45deg); transition: transform .2s; }
.side-toggle-btn .burger { display: none; }
.sidebar-collapsed .side-toggle-btn .chev-l { transform: translateX(-2px) rotate(-135deg); }
.burger span { display: block; width: 20px; height: 2px; margin: 4px 0; background: currentColor; border-radius: 2px; }
.site-header .logo img { height: 50px; width: auto; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; padding: 4px; border-radius: 10px; cursor: pointer; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.icon-btn img { width: 30px; height: 30px; }
.search-panel {
  position: absolute; top: calc(100% + 8px); right: 18px; width: min(460px, calc(100vw - 32px)); display: flex; align-items: center; gap: 10px;
  padding: 10px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
.search-panel[hidden] { display: none; }
.search-panel img { width: 28px; height: 28px; flex: none; }
.search-panel { flex-wrap: wrap; }
.search-drop { flex-basis: 100%; max-height: min(420px, calc(100vh - var(--header-h) - 110px)); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--gold-dark) transparent; }
.search-drop[hidden] { display: none; }
.search-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.search-list a { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 8px; color: var(--text); }
.search-list a:hover, .search-list a:focus-visible { background: rgba(255, 255, 255, .06); color: #fff; }
.search-panel .search-list img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.search-list span { display: grid; min-width: 0; }
.search-list strong { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-list small { font-size: .75rem; color: var(--muted); }
.search-empty { margin: 4px 8px; font-size: .88rem; }
.search-all { display: block; margin-top: 6px; padding: 10px 8px 4px; border-top: 1px solid var(--line); text-align: center; font-weight: 700; font-size: .9rem; }
.search-panel input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }

/* ---------- Shell and sidebar ---------- */
.shell { display: flex; align-items: flex-start; }
.sidebar {
  position: sticky; top: var(--header-h); flex: none; width: var(--side-w); height: calc(100vh - var(--header-h)); overflow-y: auto; overflow-x: hidden;
  padding: 14px 10px 30px; background: linear-gradient(180deg, #0c2318, #08180f); border-right: 1px solid var(--line);
  scrollbar-width: thin; scrollbar-color: var(--gold-dark) transparent; transition: width .2s;
}
.side-nav { display: grid; gap: 7px; }
.side-link {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 5px 10px; border-radius: 10px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); color: var(--text);
  font: 700 .92rem/1.2 'Poppins', sans-serif; text-align: left; cursor: pointer;
}
.side-link:hover, .side-group.open > .side-link { border-color: var(--line-strong); color: #fff; }
.side-group.open > .side-link { background: linear-gradient(180deg, #2a6a40, #1b4a2d); }
.side-link img { width: 34px; height: 34px; flex: none; }
.side-label { flex: 1; min-width: 0; }
.chev { width: 8px; height: 8px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); transition: transform .2s; flex: none; }
.side-group.open .chev { transform: rotate(45deg); }
.soon-tag { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 6px; background: rgba(240, 195, 90, .16); color: var(--gold-2); }
.side-sub { list-style: none; margin: 6px 0 4px; padding: 0 0 0 4px; }
.side-sub a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: .88rem; }
.side-sub a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.side-sub img { width: 24px; height: 24px; }
.side-sep { border: 0; border-top: 1px solid var(--line); margin: 16px 6px; }

/* Desktop: collapsed sidebar shows icons only */
@media (min-width: 1024px) {
  .sidebar-collapsed .sidebar { width: var(--side-w-closed); }
  .sidebar-collapsed .side-label, .sidebar-collapsed .chev, .sidebar-collapsed .soon-tag, .sidebar-collapsed .side-sub { display: none; }
  .sidebar-collapsed .side-link { justify-content: center; padding: 5px; }
  .sidebar-collapsed .side-link img { width: 38px; height: 38px; }
}
.page { flex: 1; min-width: 0; }
.main { padding: 22px 26px 40px; max-width: 1500px; margin: 0 auto; }
.sidebar-backdrop { display: none; }

/* ---------- Generic blocks ---------- */
.section { margin: 0 0 40px; }
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.section-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: clamp(1.15rem, 2vw, 1.45rem); text-transform: uppercase; }
.section-head h2 img { width: 36px; height: 36px; }
.section-head .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.see-all { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line-strong); color: #fff; font-weight: 700; font-size: .85rem; }
.see-all:hover { background: rgba(240, 195, 90, .1); color: #fff; }
.arrow { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line-strong); background: transparent; color: var(--gold); cursor: pointer; display: grid; place-items: center; }
.arrow::before { content: ''; width: 9px; height: 9px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateX(2px) rotate(45deg); }
.arrow.next::before { transform: translateX(-2px) rotate(-135deg); }
.arrow:disabled { opacity: .35; cursor: default; }
.panel { background: linear-gradient(180deg, var(--panel), #0c2419); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.lead { font-size: 1.05rem; color: var(--muted); }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.crumbs { font-size: .85rem; color: var(--dim); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { margin: 0 6px; }

/* ---------- Hero carousel ---------- */
.hero { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong); background: #061209; }
.carousel-track { display: flex; transition: transform .5s ease; }
.slide { position: relative; flex: 0 0 100%; display: block; }
.slide img { width: 100%; aspect-ratio: 1344 / 576; object-fit: cover; }
.slide-cta { position: absolute; left: 4.4%; bottom: 9%; }
.hero .prev, .hero .next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(8, 24, 15, .7); }
.hero .prev { left: 10px; } .hero .next { right: 10px; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots button { width: 9px; height: 9px; padding: 0; border-radius: 9px; border: 0; background: rgba(255, 255, 255, .25); cursor: pointer; transition: width .2s; }
.dots button[aria-current="true"] { width: 30px; background: var(--gold); }

/* Intro under the hero (H1) */
.intro { display: flex; align-items: center; gap: 18px; margin: 22px 0 18px; }
.intro h1 { margin: 0 0 4px; }
.intro p { margin: 0; color: var(--muted); }

/* Category menu under the hero */
.cat-menu { position: relative; display: flex; gap: 8px; margin-bottom: 26px; padding-bottom: 12px; }
.cat-scroll { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-scroll.has-more { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.cat-menu a {
  flex: 0 0 auto; min-width: 104px; display: grid; justify-items: center; align-content: center; gap: 4px; padding: 8px 12px; border-radius: 10px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: .82rem; text-align: center; white-space: nowrap;
}
.cat-menu a:hover { border-color: var(--line-strong); color: #fff; }
.cat-menu a.active { background: linear-gradient(180deg, #1f5a3a, #164a2f); border-color: var(--gold); color: #fff; box-shadow: inset 0 0 0 1px rgba(240, 195, 90, .25); }
.cat-menu img { width: 32px; height: 32px; }
.cat-menu .cat-pin { margin-left: 8px; }
.cat-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .06); }
.cat-progress[hidden] { display: none; }
.cat-progress span { display: block; height: 100%; width: 30%; border-radius: 3px; background: linear-gradient(90deg, var(--gold-dark), var(--gold)); }

/* ---------- Game rows and tiles ---------- */
.games-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 14px) / 6); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.games-row::-webkit-scrollbar { display: none; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.tile { scroll-snap-align: start; display: grid; gap: 2px; padding: 8px 8px 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--text); min-width: 0; }
.tile:hover { border-color: var(--line-strong); color: #fff; }
.tile-img { position: relative; display: block; border-radius: 9px; overflow: hidden; }
.tile-img img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .25s; }
.tile:hover .tile-img img { transform: scale(1.05); }
.tile-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 24, 15, .55); opacity: 0; transition: opacity .2s; }
.tile-play::before { content: ''; width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(180deg, #ffe08a, #e0a52f) center / 100% no-repeat; box-shadow: 0 0 0 4px rgba(255, 226, 154, .25); }
.tile-play::after { content: ''; position: absolute; border-left: 16px solid #2a1803; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 5px; }
.tile:hover .tile-play, .tile:focus-visible .tile-play { opacity: 1; }
.badge { position: absolute; top: 6px; right: 6px; padding: 2px 8px; border-radius: 6px; font-size: .7rem; font-weight: 800; }
.badge-hot { background: #d8452b; color: #fff; }
.badge-new { background: var(--green); color: #fff; }
.badge-fs { background: var(--gold); color: #2a1803; }
.tile-name { margin-top: 6px; font-weight: 700; font-size: .9rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-prov { font-size: .74rem; color: var(--dim); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Providers strip */
.providers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.providers li { margin: 0; display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 96px; padding: 10px 8px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); text-align: center; }
.providers img { width: auto; max-width: 96px; height: 40px; object-fit: contain; }
.providers span { font-size: .72rem; color: var(--muted); line-height: 1.2; }
.providers-wrap { position: relative; max-height: 330px; overflow: hidden; }
.providers-wrap.expanded { max-height: none; }
.providers-wrap:not(.expanded)::after { content: ''; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.center { text-align: center; margin-top: 14px; }


/* ---------- Welcome-bonus popup ---------- */
.popup { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(2, 10, 6, .75); backdrop-filter: blur(3px); }
.popup[hidden] { display: none; }
.popup-open { overflow: hidden; }
.popup-box {
  position: relative; display: grid; grid-template-columns: 45% 1fr; width: min(880px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
.popup-art { position: relative; min-height: 100%; }
.popup-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.popup-badge {
  position: absolute; left: 6%; right: 6%; bottom: 6%; padding: 12px 14px; text-align: center; border-radius: 12px;
  background: rgba(8, 24, 15, .82); border: 1px solid var(--line-strong);
}
.popup-badge span { display: block; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; color: #fff; }
.popup-badge strong { display: block; margin-top: 4px; font-size: clamp(1.15rem, 2.4vw, 1.6rem); line-height: 1.15; font-weight: 800; color: var(--gold-2); }
.popup-body { display: flex; flex-direction: column; gap: 12px; padding: 30px 28px 24px; }
.popup-body h2 { margin: 0; padding-right: 40px; }
.popup-body p { margin: 0; }
.popup-close {
  position: absolute; z-index: 1; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
  background: rgba(8, 24, 15, .85); border: 1px solid var(--line-strong); color: var(--gold);
}
.popup-close::before, .popup-close::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.popup-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.popup-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.popup-close:hover { color: #fff; }
.popup-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.popup-steps li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.popup-steps span { font-size: .85rem; color: var(--muted); }
.popup-steps b { color: var(--gold-2); text-align: right; }
.popup-cta { width: 100%; margin-top: 4px; }
.popup-login { text-align: center; }
.popup-note { text-align: center; font-size: .78rem; }

/* ---------- Loading screen (logical links) ---------- */
/* --s is the scale of the background image under background-size: cover, so the circle sits inside the image's golden ring */
.loader {
  --s: max(100vw / 2560, 100vh / 1440);
  position: fixed; inset: 0; z-index: 200; overflow: hidden; background: #020a06 url(/assets/brand/preloader-bg.webp) center / cover no-repeat;
}
.loader-ring {
  position: absolute; left: 50%; top: calc(50% - 125 * var(--s)); transform: translate(-50%, -50%); width: min(calc(720 * var(--s)), 86vw); aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5%;
}
.loader-logo { width: 42%; height: auto; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .6)); }
.loader-circle { position: relative; width: 40%; aspect-ratio: 1; }
.loader-circle svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.loader-track { fill: rgba(2, 10, 6, .55); stroke: rgba(240, 195, 90, .18); stroke-width: 7; }
.loader-bar { fill: none; stroke: var(--gold); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 6px rgba(240, 195, 90, .7)); }
.loader-pct { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: clamp(1.2rem, calc(60 * var(--s)), 2.4rem); color: var(--gold-2); }
.loader-text { margin: 0; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: clamp(.9rem, calc(30 * var(--s)), 1.2rem); letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.loader-noscript { position: fixed; left: 0; right: 0; bottom: 10%; text-align: center; }

/* ---------- Bonus page: banner cards with terms popups ---------- */
.bonus-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.bonus-card { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); background: var(--panel); scroll-margin-top: calc(var(--header-h) + 16px); }
.bonus-card > img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.bonus-actions { position: absolute; left: 5%; bottom: 7%; display: flex; flex-wrap: wrap; gap: 10px; }
.bonus-actions .btn-ghost { background: rgba(4, 16, 10, .72); backdrop-filter: blur(4px); }
.terms-modal { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line-strong); border-radius: 16px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); color: var(--text); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.terms-modal::backdrop { background: rgba(2, 10, 6, .75); backdrop-filter: blur(3px); }
.terms-box { position: relative; padding: 26px 26px 22px; }
.terms-box h2 { margin: 6px 44px 14px 0; font-size: 1.3rem; }
.terms-box h3 { margin: 18px 0 8px; font-size: 1rem; color: var(--gold-2); }
.terms-box ol, .terms-box ul:not(.facts) { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 4px; }
.terms-box .note { margin: 14px 0 0; }
.terms-box .table-wrap { margin: 14px 0 0; }
.terms-box .step { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); font-weight: 800; }
.terms-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 10px; cursor: pointer; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-strong); color: var(--gold); }
.terms-close::before, .terms-close::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.terms-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.terms-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.terms-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ---------- Cashback page ---------- */
.cb-banner { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); }
.cb-banner img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.cb-banner-cta { position: absolute; left: 6%; bottom: 9%; }
.cb-intro { margin-top: 26px; }
.cb-intro h1 { margin: 0 0 12px; }
.cb-intro p { color: var(--muted); max-width: 80ch; }
.cb-levels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.cb-levels li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.cb-levels span { font-size: .8rem; color: var(--muted); }
.cb-levels b { font-size: 1.4rem; color: var(--gold-2); font-weight: 800; }
.cb-levels small { font-size: .78rem; color: var(--text); }
.cb-steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: cb; }
.cb-steps li { counter-increment: cb; display: flex; align-items: center; gap: 14px; font-size: .98rem; }
.cb-steps li::before {
  content: counter(cb); flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; font: 800 1.25rem 'Poppins', sans-serif; color: #2a1803;
  background: radial-gradient(circle at 35% 30%, #ffe9a8, #f0b93e 60%, #c98a1f); box-shadow: 0 0 0 3px rgba(240, 195, 90, .25), 0 6px 16px rgba(0, 0, 0, .4);
}
.cb-cta { display: flex; width: 100%; }
.cb-terms { border-radius: 12px; border: 1px solid var(--line-strong); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.cb-terms > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-weight: 800; }
.cb-terms > summary::-webkit-details-marker { display: none; }
.cb-terms > summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform .2s; }
.cb-terms[open] > summary::after { transform: rotate(-135deg); }
.cb-terms > .prose { padding: 0 20px 20px; }

/* ---------- Promo cards ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promo-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.promo-card > img, .promo-card > .promo-art { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.promo-art { position: relative; overflow: hidden; background: radial-gradient(circle at 75% 35%, rgba(240, 195, 90, .35), transparent 55%), linear-gradient(135deg, #0f3a24, #06170d); }
.promo-art strong { position: absolute; z-index: 1; left: 6%; top: 50%; transform: translateY(-50%); width: 52%; font-size: clamp(1.05rem, 1.7vw, 1.5rem); line-height: 1.15; color: var(--gold-2); text-shadow: 0 2px 0 #5b3a07; font-weight: 800; }
.promo-art strong small { display: block; font-size: .62em; color: #fff; text-shadow: none; font-weight: 700; margin-top: 8px; }
.promo-art img { position: absolute; right: 2%; bottom: 0; height: 96%; width: auto; }
.promo-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.promo-body h3 { margin: 0; }
.promo-body .step { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); font-weight: 800; }
.promo-body .offer { font-size: 1.15rem; font-weight: 800; color: #fff; margin: 0; }
.promo-body .btn { margin-top: auto; align-self: flex-start; }
.facts { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 4px; font-size: .88rem; color: var(--muted); }
.facts li { margin: 0; display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed rgba(232, 190, 92, .15); padding-bottom: 4px; }
.facts li b { color: #fff; font-weight: 700; text-align: right; }

.wide-banner { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); }
.wide-banner img { width: 100%; aspect-ratio: 1344 / 576; object-fit: cover; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: center; }

/* Levels */
.levels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.level { display: grid; justify-items: center; gap: 4px; padding: 12px 10px 14px; border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); text-align: center; }
.level img { height: 150px; width: auto; }
.level h3 { margin: 6px 0 0; font-size: .98rem; }
.level .pts { font-size: .78rem; color: var(--muted); }
.level .cb { font-weight: 800; color: var(--gold); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border-radius: 12px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid rgba(232, 190, 92, .14); }
th { background: var(--panel-2); color: var(--gold-2); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td:not(:first-child), th:not(:first-child) { white-space: nowrap; }

/* Long text (terms, policies, SEO copy) */
.prose { max-width: 900px; }
.prose > h2:first-child, .prose > h1:first-child { margin-top: 0; }
.panel.prose { max-width: none; }
.prose h2 { margin-top: 1.8em; padding-top: .2em; }
.prose h3 { margin-top: 1.4em; color: var(--gold-2); }
.prose p, .prose li { color: #dfe6da; }
.prose ol, .prose ul { margin-bottom: 1.1em; }
.prose .note { padding: 12px 16px; border-left: 3px solid var(--gold); background: rgba(240, 195, 90, .06); border-radius: 0 10px 10px 0; }
.prose .meta-line { color: var(--dim); font-size: .9rem; }
.toc { columns: 2; column-gap: 28px; padding: 16px 20px 16px 38px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 1.5em; }
.toc li { break-inside: avoid; }
.game-list { columns: 3; column-gap: 24px; font-size: .9rem; }
.game-list p { break-inside: avoid; margin: 0 0 .8em; }
.page-hero { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-bottom: 26px; }
.page-hero img { width: 180px; height: auto; }
.page-hero p { color: var(--muted); max-width: 70ch; }
.code-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 8px; border: 1px dashed var(--gold); background: rgba(240, 195, 90, .08); color: var(--gold-2); font-weight: 800; letter-spacing: .06em; cursor: pointer; }
.code-chip.copied::after { content: '✓ skopiowano'; font-size: .72rem; font-weight: 600; letter-spacing: 0; color: var(--green-2); }

/* Feature list */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature { padding: 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.feature img { width: 56px; height: 56px; margin-bottom: 8px; }
.feature h3 { font-size: 1rem; margin-bottom: .3em; }
.feature p { color: var(--muted); font-size: .9rem; margin: 0; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq-item { border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary { list-style: none; cursor: pointer; padding: 14px 48px 14px 18px; font-weight: 700; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ''; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { padding: 0 18px 16px; color: #dfe6da; }
.faq-a p:last-child { margin: 0; }

/* Error pages (403, 404): standalone, centred on the screen without header, sidebar or footer */
.error-body { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.error-shell { width: min(1240px, 100%); }
.error-shell .error-page { margin: 0; }
.error-page {
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; margin: 26px 0 10px; padding: 36px 40px; border-radius: 20px; border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 78% 40%, rgba(240, 195, 90, .18), transparent 55%), linear-gradient(135deg, #0f3a24, #06170d);
}
.error-number { width: min(360px, 100%); height: auto; margin-bottom: 10px; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .5)); }
.error-page h1 { margin: 0 0 10px; }
.error-page .lead { margin: 0 0 16px; }
.error-tips { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.error-tips li { position: relative; padding-left: 22px; color: var(--muted); }
.error-tips li::before { content: ''; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold); }
.error-page .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.error-art { width: min(340px, 30vw); height: auto; animation: bob 4s ease-in-out infinite; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); }

/* Coming soon */
.soon { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; padding: 34px; border-radius: 20px; border: 1px solid var(--line-strong);
  background: radial-gradient(500px 300px at 15% 40%, rgba(240, 195, 90, .18), transparent 70%), linear-gradient(135deg, #0f3a24, #07170e); }
.soon-art { width: 300px; height: 300px; animation: bob 4s ease-in-out infinite; }
.soon-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 30px; background: rgba(240, 195, 90, .12); border: 1px solid var(--line-strong); color: var(--gold-2); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.soon-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(240, 195, 90, .7); animation: pulse 1.8s infinite; }
.progress { height: 12px; border-radius: 12px; background: rgba(255, 255, 255, .08); overflow: hidden; margin: 18px 0 6px; max-width: 460px; border: 1px solid var(--line); }
.progress span { display: block; height: 100%; width: 70%; border-radius: 12px; background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-2)); background-size: 200% 100%; animation: shine 2.5s linear infinite; }
.soon .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(240, 195, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 195, 90, 0); } }
@keyframes shine { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .error-art, .soon-art, .soon-status::before, .progress span { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, #0a2016, #061209); padding: 40px 26px 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 26px; max-width: 1500px; margin: 0 auto; }
.footer-brand img { height: 64px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--dim); font-size: .88rem; max-width: 280px; }
.footer-col h2 { font-size: 1rem; margin-bottom: 1em; color: #fff; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 0 0 .7em; }
.footer-col a { color: var(--muted); font-size: .93rem; }
.footer-col a:hover { color: var(--gold-2); }
.footer-bottom { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: start; max-width: 1500px; margin: 34px auto 0; padding-top: 24px; border-top: 1px solid rgba(232, 190, 92, .14); }
.footer-18 { width: 44px; height: 44px; }
.footer-legal p { color: var(--dim); font-size: .78rem; margin: 0 0 .6em; max-width: 900px; }
.footer-support { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; }
.footer-support-ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--panel); }
.footer-support-ic img { width: 32px; height: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .games-row { grid-auto-columns: calc((100% - 4 * 14px) / 5); }
  .levels { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .cb-levels { grid-template-columns: repeat(3, 1fr); }
  .cb-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1023px) {
  .side-toggle-btn .chev-l { display: none; }
  .side-toggle-btn .burger { display: block; }
  .sidebar { position: fixed; z-index: 60; left: 0; top: var(--header-h); transform: translateX(-100%); transition: transform .25s; box-shadow: 10px 0 30px rgba(0, 0, 0, .5); }
  .sidebar-open .sidebar { transform: none; }
  .sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: var(--header-h) 0 0; z-index: 50; background: rgba(0, 0, 0, .55); }
  .games-row { grid-auto-columns: calc((100% - 3 * 12px) / 4); gap: 12px; }
  .promo-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --header-h: 60px; }
  body { font-size: 14.5px; }
  .site-header { gap: 8px; padding: 0 10px; }
  .site-header .logo img { height: 38px; }
  .btn-bonuses { display: none; }
  .header-right { gap: 6px; }
  .header-right .btn { padding: 0 11px; font-size: .74rem; min-height: 40px; }
  .icon-btn { width: 40px; height: 40px; }
  .main { padding: 14px 16px 30px; }
  .games-row { grid-auto-columns: calc((100% - 2 * 10px) / 2.6); gap: 10px; }
  .promo-grid { grid-template-columns: 1fr; }
  .levels { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .intro { flex-direction: column; align-items: flex-start; }
  .bonus-grid { grid-template-columns: 1fr; }
  .bonus-actions { position: static; padding: 12px; }
  .bonus-actions .btn { flex: 1; }
  .terms-box { padding: 20px 16px 18px; }
  .cb-banner-cta { position: static; display: flex; margin: 12px; }
  .cb-levels { grid-template-columns: repeat(2, 1fr); }
  .cb-steps { grid-template-columns: 1fr; gap: 12px; }
  .error-page { grid-template-columns: 1fr; padding: 24px 18px; text-align: center; justify-items: center; }
  .error-art { order: -1; width: min(240px, 64vw); }
  .error-tips { text-align: left; }
  .error-page .actions { justify-content: center; }
  .cat-menu a { min-width: 78px; padding: 7px 8px; font-size: .74rem; }
  .cat-menu img { width: 28px; height: 28px; }
  .cat-menu .cat-pin { margin-left: 4px; }
  .promo-art strong { font-size: 1.4rem; }
  .popup-box { grid-template-columns: 1fr; }
  .popup-art { height: 190px; min-height: 0; }
  .popup-body { padding: 20px 18px 18px; }
  .section-head .see-all { display: none; }
  .slide-cta { left: 50%; transform: translateX(-50%); bottom: 6%; }
  .slide-cta.btn { min-height: 34px; padding: 0 12px; font-size: .7rem; }
  .hero .prev, .hero .next { display: none; }
  .page-hero { grid-template-columns: 1fr; }
  .page-hero img { width: 120px; order: -1; }
  .soon { grid-template-columns: 1fr; padding: 22px; text-align: center; justify-items: center; }
  .soon-art { width: 200px; height: 200px; }
  .soon .actions { justify-content: center; }
  .toc, .game-list { columns: 1; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-bottom { grid-template-columns: 1fr; }
  .site-footer { padding: 30px 16px 24px; }
}
@media (max-width: 380px) {
  .btn-login { display: none; }
}
/* Mobile minimums: text at least 12px, tap targets at least ~44px, nothing wider than the screen */
@media (max-width: 720px) {
  .header-right .btn, .cat-menu a, .tile-prov, .providers span, .badge, .slide-cta.btn { font-size: .75rem; }
  .soon-tag { font-size: .75rem; }
  .btn { white-space: normal; text-align: center; line-height: 1.15; }
  .header-right .btn, .slide-cta.btn { white-space: nowrap; }
  .badge { white-space: nowrap; }
  /* Slider dots keep their look; an invisible 25x44 area around each one takes the tap */
  .dots { gap: 16px; margin-top: 4px; }
  .dots button { position: relative; }
  .dots button::after { content: ''; position: absolute; inset: -17px -8px; }
  .footer-col li { margin: 0; }
  .footer-col a { display: inline-block; min-width: 44px; padding: 11px 0; }
  .toc li { margin: 0; }
  .toc a { display: inline-block; padding: 12px 0; }
}
.chip { display: inline-block; padding: 4px 12px; border-radius: 30px; background: rgba(240, 195, 90, .12); border: 1px solid var(--line-strong); color: var(--gold-2); font-weight: 800; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
