/* ==========================================================================
   PowerUp Casino DE — "pu-" namespaced retro-arcade / neon theme.
   Mobile-first. Namespace prefix is mandatory anti-footprint (see brief).
   ========================================================================== */

:root {
  /* Spacing scale — 4/8/12/16/24/32/48/64 */
  --pu-space-1: 4px;
  --pu-space-2: 8px;
  --pu-space-3: 12px;
  --pu-space-4: 16px;
  --pu-space-6: 24px;
  --pu-space-8: 32px;
  --pu-space-12: 48px;
  --pu-space-16: 64px;

  /* Color system — dark arcade cabinet + neon accents */
  --pu-bg: #0b0d16;
  --pu-bg-alt: #12162590;
  --pu-surface: #171b2c;
  --pu-surface-2: #1f2438;
  --pu-border: #2c3350;
  --pu-text: #f2f3f8;
  --pu-text-muted: #a7adc7;
  --pu-neon-pink: #ff3ea5;
  --pu-neon-cyan: #35f0d0;
  --pu-neon-purple: #9b5cff;
  --pu-neon-yellow: #ffd23f;
  --pu-danger: #ff6b6b;
  --pu-success: #35f0a5;

  /* Named z-index layers — see css-layout skill, no magic numbers */
  --pu-z-sticky: 20;
  --pu-z-nav: 50;
  --pu-z-dropdown: 150;

  --pu-radius: 14px;
  --pu-radius-sm: 8px;
  --pu-header-h: 64px;
  --pu-max-width: 1180px;
  --pu-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--pu-font);
  background: var(--pu-bg);
  color: var(--pu-text);
  line-height: 1.6;
  font-size: 16px;
  /* No overflow-x:hidden on body — would disable position:sticky on .pu-header (css-layout skill §3). */
}

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

a { color: var(--pu-neon-cyan); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

/* Scroll offset for in-page anchors under sticky header */
[id] { scroll-margin-top: calc(var(--pu-header-h) + var(--pu-space-4)); }

.pu-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;
}

.pu-skip-link {
  position: absolute;
  left: var(--pu-space-4);
  top: -60px;
  background: var(--pu-neon-purple);
  color: #fff;
  padding: var(--pu-space-2) var(--pu-space-4);
  border-radius: var(--pu-radius-sm);
  z-index: 500;
  transition: top .15s ease;
}
.pu-skip-link:focus { top: var(--pu-space-2); }

/* ==========================================================================
   Buttons / CTA
   ========================================================================== */

.pu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--pu-space-2);
  min-height: 44px;
  padding: var(--pu-space-3) var(--pu-space-6);
  border-radius: var(--pu-radius-sm);
  background: linear-gradient(135deg, var(--pu-neon-pink), var(--pu-neon-purple));
  color: #fff;
  font-weight: 700;
  letter-spacing: .02em;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 8px 24px -8px rgba(255,62,165,.6);
  transition: transform .15s ease, box-shadow .15s ease;
}
.pu-btn:hover, .pu-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 12px 28px -6px rgba(255,62,165,.75);
  text-decoration: none;
}
.pu-btn-header { display: none; }
.pu-btn-hero { margin-top: var(--pu-space-4); }

/* ==========================================================================
   Header + navigation (single <nav>, burger toggles visibility/layout)
   ========================================================================== */

.pu-header {
  position: sticky;
  top: 0;
  z-index: var(--pu-z-nav);
  background: rgba(11,13,22,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--pu-border);
}

.pu-header-inner {
  max-width: var(--pu-max-width);
  margin: 0 auto;
  height: var(--pu-header-h);
  padding: 0 var(--pu-space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pu-space-4);
}

.pu-brand { display: inline-flex; align-items: center; }
.pu-brand-logo { height: 32px; width: auto; }

.pu-nav { position: relative; }

.pu-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--pu-border);
  border-radius: var(--pu-radius-sm);
  cursor: pointer;
}
.pu-nav-toggle-bars,
.pu-nav-toggle-bars::before,
.pu-nav-toggle-bars::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--pu-text);
  border-radius: 2px;
  position: relative;
}
.pu-nav-toggle-bars::before { position: absolute; top: -6px; }
.pu-nav-toggle-bars::after { position: absolute; top: 6px; }

.pu-nav-list {
  list-style: none;
  margin: 0;
  padding: var(--pu-space-2);
  display: none;
  flex-direction: column;
  gap: var(--pu-space-1);
  position: absolute;
  top: calc(100% + var(--pu-space-2));
  right: 0;
  min-width: 220px;
  background: var(--pu-surface);
  border: 1px solid var(--pu-border);
  border-radius: var(--pu-radius);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.6);
  z-index: var(--pu-z-dropdown);
}
.pu-nav-list.is-open { display: flex; }

.pu-nav-link {
  display: block;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: var(--pu-space-2) var(--pu-space-4);
  color: var(--pu-text);
  border-radius: var(--pu-radius-sm);
}
.pu-nav-link:hover, .pu-nav-link:focus-visible { background: var(--pu-surface-2); text-decoration: none; }
.pu-nav-link[aria-current="page"] { color: var(--pu-neon-cyan); font-weight: 700; }

@media (min-width: 860px) {
  .pu-nav-toggle { display: none; }
  .pu-nav-list {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: var(--pu-space-2);
  }
  .pu-btn-header { display: inline-flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.pu-hero { position: relative; overflow: hidden; }
.pu-hero-inner { position: relative; max-width: var(--pu-max-width); margin: 0 auto; min-height: 320px; display: flex; align-items: center; }
/* Decorative background — wrapped in a referral link (aria-hidden, the real
   labelled CTA sits in .pu-hero-content on top); link takes over the
   positioning the <img> used to have, image just fills it. */
.pu-hero-link {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}
.pu-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.45) saturate(1.2);
}
.pu-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,13,22,.2) 0%, rgba(11,13,22,.95) 100%);
  z-index: 0;
  pointer-events: none; /* let clicks fall through to .pu-hero-link underneath */
}
.pu-hero-content {
  position: relative;
  z-index: 1;
  padding: var(--pu-space-12) var(--pu-space-4) var(--pu-space-8);
  max-width: 760px;
}
.pu-hero-title {
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 var(--pu-space-3);
  text-shadow: 0 0 24px rgba(255,62,165,.5);
}
.pu-hero-desc {
  color: var(--pu-text-muted);
  font-size: clamp(.95rem, 2vw, 1.05rem);
  margin: 0;
}

/* ==========================================================================
   Casino-lobby showcase (homepage only, src/templates/lobby.js) — conversion
   chrome between the hero and the SEO review body. "Alive" purely via CSS
   (pulsing LIVE dot, marquee ticker, hover glow, staggered appear) — no gifs,
   no fake live counters (see brief). Full kill-switch under
   prefers-reduced-motion at the very end of this file.
   ========================================================================== */

.pu-lobby {
  background: radial-gradient(120% 160% at 15% -10%, rgba(155,92,255,.25), transparent 60%),
    radial-gradient(120% 160% at 100% 0%, rgba(255,62,165,.18), transparent 55%),
    var(--pu-surface);
  border-bottom: 1px solid var(--pu-border);
}

.pu-lobby-inner {
  max-width: var(--pu-max-width);
  margin: 0 auto;
  padding: var(--pu-space-8) var(--pu-space-4);
}

.pu-lobby-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--pu-space-4);
  margin-bottom: var(--pu-space-4);
}
.pu-lobby-eyebrow {
  margin: 0 0 var(--pu-space-1);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--pu-neon-yellow);
}
.pu-lobby-title {
  margin: 0;
  font-size: clamp(1.3rem, 3.6vw, 2rem);
  color: #fff;
}
.pu-lobby-auth { display: flex; gap: var(--pu-space-2); flex-wrap: wrap; }
.pu-btn-ghost {
  background: transparent;
  box-shadow: none;
  border: 1px solid var(--pu-border);
  color: var(--pu-text);
}
.pu-btn-ghost:hover, .pu-btn-ghost:focus-visible { border-color: var(--pu-neon-cyan); color: var(--pu-neon-cyan); }

/* Ticker — two identical spans scroll left in a seamless loop; the second is
   aria-hidden (decorative repeat, not new content) and the whole track just
   sits still, wrapped, under reduced motion (see the kill-switch below). */
.pu-ticker {
  overflow: hidden;
  border: 1px solid var(--pu-border);
  border-radius: var(--pu-radius-sm);
  background: var(--pu-surface-2);
  padding: var(--pu-space-2) 0;
  margin-bottom: var(--pu-space-6);
}
.pu-ticker-track {
  display: flex;
  width: max-content;
  gap: var(--pu-space-12);
  animation: pu-marquee 22s linear infinite;
}
.pu-ticker-item {
  padding: 0 var(--pu-space-6);
  white-space: nowrap;
  font-size: .85rem;
  font-weight: 600;
  color: var(--pu-neon-cyan);
}
@keyframes pu-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Lobby tile grid — denser/larger than the review-body .pu-game-grid (min
   180px vs 140px), per "крупнее чем обычные тайлы". Explicit column counts
   (not auto-fill) so the last row is always predictable: 2 -> 3 -> 4 -> 5
   columns. buildLobbyTiles() always emits exactly 20 tiles (10 live + 10
   slot, see src/data/inventory.js), which divides evenly by 2/4/5 — the
   3-column band is the only one where 20 doesn't fill full rows (20/3 has a
   remainder), so it trims to the last full row of 18 via nth-child, scoped
   to that band only. Zero empty cells on any breakpoint. */
.pu-lobby-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--pu-space-4);
}
@media (min-width: 560px) and (max-width: 859px) {
  .pu-lobby-grid { grid-template-columns: repeat(3, 1fr); }
  .pu-lobby-tile:nth-child(n+19) { display: none; }
}
@media (min-width: 860px) and (max-width: 1099px) {
  .pu-lobby-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) {
  .pu-lobby-grid { grid-template-columns: repeat(5, 1fr); }
}

.pu-lobby-tile {
  display: flex;
  flex-direction: column;
  color: var(--pu-text);
  opacity: 0;
  animation: pu-tile-in .5s ease forwards;
  animation-delay: var(--pu-lobby-delay, 0ms);
}
@keyframes pu-tile-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.pu-lobby-tile-frame {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--pu-border);
  border-radius: var(--pu-radius);
  background: var(--pu-surface);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.pu-lobby-tile-frame img { width: 100%; height: 100%; object-fit: cover; }
.pu-lobby-tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 13, 22, .74);
  color: #fff;
  font-weight: 700;
  letter-spacing: .03em;
  opacity: 0;
  transition: opacity .18s ease;
}
.pu-lobby-tile-name {
  margin-top: var(--pu-space-2);
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.25;
}
.pu-lobby-tile-provider { font-size: .72rem; color: var(--pu-text-muted); }

@media (hover: hover) and (pointer: fine) {
  .pu-lobby-tile:hover .pu-lobby-tile-frame,
  .pu-lobby-tile:focus-visible .pu-lobby-tile-frame {
    border-color: var(--pu-neon-cyan);
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px var(--pu-neon-cyan), 0 16px 32px -12px rgba(53,240,208,.45);
  }
  .pu-lobby-tile:hover .pu-lobby-tile-overlay,
  .pu-lobby-tile:focus-visible .pu-lobby-tile-overlay { opacity: 1; }
}
.pu-lobby-tile:focus-visible { outline: 2px solid var(--pu-neon-cyan); outline-offset: 2px; border-radius: var(--pu-radius); }

/* Badges — LIVE pulses (real state, not a fake number), HOT/NEU are static accents. */
.pu-lobby-badge {
  position: absolute;
  top: var(--pu-space-2);
  left: var(--pu-space-2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #fff;
  z-index: 1;
}
.pu-lobby-badge--live { background: rgba(255,62,165,.92); }
.pu-lobby-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pu-pulse 1.4s ease-in-out infinite;
}
@keyframes pu-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.4); }
}
.pu-lobby-badge--hot { background: rgba(255,107,107,.92); }
.pu-lobby-badge--new { background: rgba(53,240,165,.92); color: #06110c; }

.pu-lobby-foot { display: flex; justify-content: center; margin-top: var(--pu-space-6); }
.pu-btn-lobby-cta { min-width: 220px; font-size: 1rem; }

/* ==========================================================================
   Live-casino full grid (16 tiles, {#live-casino}) — reuses .pu-game-tile
   from the review body, adds a small category badge in the frame corner.
   ========================================================================== */
.pu-game-tile { position: relative; }
.pu-game-tile-category {
  position: absolute;
  top: var(--pu-space-2);
  left: var(--pu-space-2);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(11,13,22,.78);
  border: 1px solid var(--pu-neon-cyan);
  color: var(--pu-neon-cyan);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  z-index: 1;
}

/* ==========================================================================
   Sportwetten icon row ({#sportwetten}) — icon card + label, whole card is
   the referral click target (betting intent).
   ========================================================================== */
.pu-sport-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: var(--pu-space-3);
  margin: var(--pu-space-4) 0 var(--pu-space-6);
}
.pu-sport-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--pu-space-2);
  padding: var(--pu-space-3) var(--pu-space-2);
  border: 1px solid var(--pu-border);
  border-radius: var(--pu-radius);
  background: var(--pu-surface);
  color: var(--pu-text);
  text-align: center;
  min-height: 44px;
  transition: border-color .15s ease, transform .15s ease;
}
.pu-sport-tile:hover, .pu-sport-tile:focus-visible {
  border-color: var(--pu-neon-purple);
  transform: translateY(-2px);
  text-decoration: none;
}
.pu-sport-tile img { width: 100%; max-width: 84px; height: auto; }
.pu-sport-tile-label { font-size: .78rem; font-weight: 600; }

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.pu-breadcrumb { margin: var(--pu-space-4) 0; font-size: .875rem; }
.pu-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--pu-space-2); margin: 0; padding: 0; color: var(--pu-text-muted); }
.pu-breadcrumb a { color: var(--pu-text-muted); }
.pu-breadcrumb li[aria-current="page"] { color: var(--pu-text); }
.pu-breadcrumb-sep { opacity: .5; }

/* ==========================================================================
   Main content typography
   ========================================================================== */

/* padding-top: separates .pu-main from whatever sits directly above it (the
   casino-lobby showcase on the homepage, the hero everywhere else) — was 0,
   left content glued to the lobby's "Jetzt spielen" CTA with no gap. */
.pu-main { max-width: var(--pu-max-width); margin: 0 auto; padding: var(--pu-space-8) var(--pu-space-4) var(--pu-space-16); }
.pu-content { max-width: 820px; }

/* ==========================================================================
   Sticky right sidebar — one <div class="pu-sidebar"> in the DOM (see
   partials.js renderSidebar), rendered once. Mobile: the layout is a single
   flex column and the sidebar flattens via display:contents so each of its
   five modules gets its own `order` and interleaves with the article content
   at the exact points the brief asks for — nothing is duplicated, only
   reordered. Desktop (>=1100px): the sidebar becomes one real sticky box
   next to the content column (see css-layout skill §4/§5 — same "one
   instance, CSS repositions it" pattern used for nav/tables here).
   ========================================================================== */

.pu-layout {
  display: flex;
  flex-direction: column;
  gap: var(--pu-space-6);
}

.pu-content-a { order: 1; }
.pu-sidebar { display: contents; }
.pu-toc { order: 2; }
.pu-sidebar-bonus { order: 3; }
.pu-sidebar-facts { order: 4; }
.pu-content-b { order: 5; }
.pu-sidebar-sport { order: 6; }
.pu-sidebar-crypto { order: 7; }
.pu-content-c { order: 8; }

@media (min-width: 1100px) {
  .pu-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    column-gap: var(--pu-space-8);
    align-items: start;
  }
  .pu-content-a { grid-column: 1; grid-row: 1; }
  .pu-content-b { grid-column: 1; grid-row: 2; }
  .pu-content-c { grid-column: 1; grid-row: 3; }

  /* Not display:contents anymore — one real box, natural child order
     (toc, bonus, facts, sport, crypto) stacked top to bottom. */
  .pu-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--pu-space-4);
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: start;
    position: sticky;
    top: calc(var(--pu-header-h) + var(--pu-space-4));
    /* Safety net (see css-layout skill overflow diagnosis): if the five
       modules together are taller than the viewport slot under the header,
       the sidebar scrolls internally instead of clipping the bottom
       module — it never gets cut off, just needs a small scroll. */
    max-height: calc(100vh - var(--pu-header-h) - var(--pu-space-4) * 2);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: var(--pu-z-sticky);
  }
}

/* Table of contents — collapsed <details> by default (mobile requirement).
   pu-arcade.js force-opens it above the sidebar breakpoint via matchMedia
   and locks the summary so it reads as a plain box, not a toggle. */
.pu-toc {
  border: 1px solid var(--pu-border);
  border-radius: var(--pu-radius);
  background: var(--pu-surface);
}
.pu-toc-summary {
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: var(--pu-space-3) var(--pu-space-4);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pu-neon-cyan);
}
.pu-toc-summary::-webkit-details-marker { display: none; }
.pu-toc-summary::after { content: '+'; margin-left: auto; }
.pu-toc[open] .pu-toc-summary::after { content: '\2212'; }
.pu-toc.pu-locked-open .pu-toc-summary { cursor: default; pointer-events: none; }
.pu-toc.pu-locked-open .pu-toc-summary::after { content: ''; }
/* Desktop only (locked-open, see pu-arcade.js): the 14-item list on the
   homepage would otherwise push the bonus/facts/sport/crypto cards below the
   sticky viewport slot before the user ever scrolls. Capping it keeps the
   conversion cards visible; the fade mask signals there is more to scroll. */
.pu-toc.pu-locked-open .pu-toc-list {
  max-height: 132px;
  overflow-y: auto;
  mask-image: linear-gradient(to bottom, #000 calc(100% - 20px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 20px), transparent 100%);
}
.pu-toc-list {
  margin: 0;
  padding: 0 var(--pu-space-4) var(--pu-space-4);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pu-toc-link {
  display: block;
  min-height: 32px;
  padding: var(--pu-space-1) var(--pu-space-2);
  border-radius: var(--pu-radius-sm);
  color: var(--pu-text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}
.pu-toc-link:hover, .pu-toc-link:focus-visible { background: var(--pu-surface-2); color: var(--pu-text); text-decoration: none; }
.pu-toc-link.is-active { color: var(--pu-neon-cyan); font-weight: 700; }

/* Sidebar promo cards — bonus / quick facts / sportsbook / crypto. Same
   visual family (surface + border + radius) as .pu-tile / .pu-faq-item. */
.pu-sidebar-card {
  border: 1px solid var(--pu-border);
  border-radius: var(--pu-radius);
  background: var(--pu-surface);
  padding: var(--pu-space-4);
}
.pu-sidebar-card-eyebrow {
  margin: 0 0 var(--pu-space-2);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pu-neon-yellow);
}
.pu-sidebar-bonus {
  background: linear-gradient(160deg, var(--pu-surface-2), var(--pu-surface));
  border-color: var(--pu-neon-pink);
}
.pu-sidebar-card-amount { margin: 0 0 var(--pu-space-1); font-size: 1.15rem; font-weight: 700; color: #fff; }
.pu-sidebar-card-meta { margin: 0 0 var(--pu-space-3); font-size: 0.78rem; color: var(--pu-text-muted); }
.pu-sidebar-card-text { margin: 0 0 var(--pu-space-3); font-size: 0.85rem; color: var(--pu-text-muted); }
.pu-sidebar-cta { width: 100%; }

.pu-sidebar-fact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--pu-space-2); }
.pu-sidebar-fact-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--pu-space-3);
  padding-bottom: var(--pu-space-2);
  border-bottom: 1px dashed var(--pu-border);
  font-size: 0.85rem;
}
.pu-sidebar-fact-list li:last-child { border-bottom: none; padding-bottom: 0; }
.pu-sidebar-fact-label { color: var(--pu-text-muted); }
.pu-sidebar-fact-value { color: #fff; font-weight: 700; text-align: right; }

.pu-sidebar-crypto-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--pu-space-2);
  margin-bottom: var(--pu-space-2);
}
/* padding-block pads the tap target up toward the 44px minimum without
   growing the visible logo (icons stay the same visual size). */
.pu-crypto-link { display: block; padding-block: var(--pu-space-2); transition: transform .15s ease; }
.pu-crypto-link:hover, .pu-crypto-link:focus-visible { transform: translateY(-1px); }
.pu-sidebar-crypto-grid img {
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: 4px;
  padding: 3px;
}
.pu-sidebar-card-caption { margin: 0; font-size: 0.75rem; color: var(--pu-text-muted); text-align: right; }

.pu-content h2 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin: var(--pu-space-12) 0 var(--pu-space-4);
  padding-top: var(--pu-space-2);
  border-top: 1px solid var(--pu-border);
  color: var(--pu-neon-cyan);
}
.pu-content h2:first-child { border-top: none; margin-top: var(--pu-space-4); }
.pu-content h3 {
  font-size: 1.15rem;
  margin: var(--pu-space-6) 0 var(--pu-space-2);
  color: var(--pu-neon-yellow);
}
.pu-content p { margin: 0 0 var(--pu-space-4); color: var(--pu-text); }
.pu-content ul, .pu-content ol { margin: 0 0 var(--pu-space-4); padding-left: 1.3em; }
.pu-content li { margin-bottom: var(--pu-space-1); }
.pu-content strong { color: #fff; }

/* ==========================================================================
   Tables — one <table>, cards on mobile via data-label, no duplication
   ========================================================================== */

.pu-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  margin: 0 0 var(--pu-space-6);
  border: 1px solid var(--pu-border);
  border-radius: var(--pu-radius);
}

.pu-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  background: var(--pu-surface);
}
.pu-table th, .pu-table td {
  text-align: left;
  padding: var(--pu-space-3) var(--pu-space-4);
  border-bottom: 1px solid var(--pu-border);
}
.pu-table thead th {
  background: var(--pu-surface-2);
  color: var(--pu-neon-cyan);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pu-table tbody tr:last-child td { border-bottom: none; }
.pu-table tbody tr:hover { background: var(--pu-bg-alt); }

@media (max-width: 640px) {
  .pu-table-wrap { overflow-x: visible; border: none; }
  .pu-table { min-width: 0; }
  .pu-table thead {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .pu-table, .pu-table tbody, .pu-table tr, .pu-table td { display: block; width: 100%; }
  .pu-table tr {
    margin-bottom: var(--pu-space-3);
    border: 1px solid var(--pu-border);
    border-radius: var(--pu-radius);
    padding: var(--pu-space-2) var(--pu-space-4);
    background: var(--pu-surface);
  }
  .pu-table td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--pu-space-4);
    border: 0;
    border-bottom: 1px dashed var(--pu-border);
    padding: var(--pu-space-2) 0;
    text-align: right;
  }
  .pu-table tr td:last-child { border-bottom: none; }
  .pu-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--pu-text-muted);
    text-align: left;
    padding-right: var(--pu-space-4);
  }
}

/* ==========================================================================
   Payment method icons — inline in table cells + standalone logo grids
   ========================================================================== */

/* Small icon next to the method name inside a payment table cell. Name text
   stays in the DOM (SEO/a11y) — the icon is additive, never a replacement. */
.pu-pay-cell {
  display: inline-flex;
  align-items: center;
  gap: var(--pu-space-2);
  min-width: 0;
}
.pu-pay-cell-icon {
  flex: none;
  height: 20px;
  width: auto;
  max-width: 32px;
  background: #fff;
  border-radius: 4px;
  padding: 2px 3px;
}
.pu-pay-cell-name { min-width: 0; }

/* Compact grid of payment/crypto logos under the payment section — CSS
   grid (not flex), items share equal visual weight regardless of each
   logo's native aspect ratio (frames are 160x100, transparent bg). */
.pu-pay-logos { margin: 0 0 var(--pu-space-6); }
.pu-pay-logos-caption {
  margin: 0 0 var(--pu-space-3);
  font-size: .85rem;
  color: var(--pu-text-muted);
}
.pu-pay-logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: var(--pu-space-3);
}
.pu-pay-logo-item {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--pu-border);
  border-radius: var(--pu-radius-sm);
  padding: var(--pu-space-2);
  transition: border-color .15s ease, transform .15s ease;
}
.pu-pay-logo-item:hover { border-color: var(--pu-neon-purple); transform: translateY(-1px); }
.pu-pay-link { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.pu-pay-logo-item img { max-width: 100%; height: 28px; width: auto; }

/* ==========================================================================
   Tile grids — games / providers, plate/card layout
   ========================================================================== */

.pu-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--pu-space-4);
  margin: var(--pu-space-4) 0 var(--pu-space-6);
}
@media (min-width: 560px) {
  .pu-tile-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 860px) {
  .pu-tile-grid { grid-template-columns: repeat(4, 1fr); }
}

.pu-tile {
  margin: 0;
  background: var(--pu-surface);
  border: 1px solid var(--pu-border);
  border-radius: var(--pu-radius);
  padding: var(--pu-space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  transition: border-color .15s ease, transform .15s ease;
}
.pu-tile:hover { border-color: var(--pu-neon-purple); transform: translateY(-2px); }
.pu-tile-link { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.pu-tile img { max-height: 40px; width: auto; margin: 0 auto; }

/* Game grids — dense casino-lobby tiles (slots/live, see markdown.js insertGameGrids).
   Cover + small name/provider only, no description paragraph. auto-fill/minmax alone
   drives the column count at every width (2 @375px, ~4 @tablet, 5 @desktop content
   column) — no per-breakpoint column overrides needed. */
.pu-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--pu-space-3);
  margin: var(--pu-space-4) 0 var(--pu-space-6);
}
.pu-game-tile {
  display: flex;
  flex-direction: column;
  color: var(--pu-text);
}
.pu-game-tile-frame {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--pu-border);
  border-radius: var(--pu-radius-sm);
  background: var(--pu-surface);
  transition: border-color .15s ease, transform .15s ease;
}
.pu-game-tile-frame img { width: 100%; height: 100%; object-fit: cover; }
.pu-game-tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 13, 22, .72);
  color: #fff;
  font-weight: 700;
  letter-spacing: .03em;
  opacity: 0;
  transition: opacity .15s ease;
}
.pu-game-tile-name {
  margin-top: var(--pu-space-2);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.25;
}
.pu-game-tile-provider { font-size: .72rem; color: var(--pu-text-muted); }

/* Hover only on devices that actually have hover (mouse/trackpad) — on touch
   the tile just navigates on tap, no stuck hover state (css-layout skill §1). */
@media (hover: hover) and (pointer: fine) {
  .pu-game-tile:hover .pu-game-tile-frame,
  .pu-game-tile:focus-visible .pu-game-tile-frame {
    border-color: var(--pu-neon-purple);
    transform: translateY(-2px);
  }
  .pu-game-tile:hover .pu-game-tile-overlay,
  .pu-game-tile:focus-visible .pu-game-tile-overlay { opacity: 1; }
}
.pu-game-tile:focus-visible { outline: 2px solid var(--pu-neon-cyan); outline-offset: 2px; border-radius: var(--pu-radius-sm); }
.pu-tile-caption { display: none; } /* alt text still present for a11y/SEO; provider logos are self-explanatory visually */

.pu-figure {
  margin: var(--pu-space-4) 0 var(--pu-space-6);
  border: 1px solid var(--pu-border);
  border-radius: var(--pu-radius);
  overflow: hidden;
  background: var(--pu-surface);
  max-width: 420px;
}
.pu-figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.pu-figure-caption {
  padding: var(--pu-space-2) var(--pu-space-4);
  font-size: .85rem;
  color: var(--pu-text-muted);
}

/* Bonus banners (powerup-banner-*.webp, 1200x600 / 2:1): headline, amount and CTA are
   baked INTO the artwork, so unlike the square screenshot/tile figures above, these must
   NEVER be cropped with object-fit:cover — that clips the text at the edges (e.g. only
   "NSANGEBOT" left of "KRYPTO-WILLKOMMENSANGEBOT"). Rule: banners always render whole.
   width:100% + height:auto takes the ratio straight from the file, no forced aspect-ratio
   fighting the real 2:1 image. */
.pu-figure--banner {
  max-width: 100%;
}
.pu-figure--banner img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

/* ==========================================================================
   Pros / Cons
   ========================================================================== */

.pu-proscons {
  border-radius: var(--pu-radius);
  padding: var(--pu-space-4) var(--pu-space-6);
  margin: 0 0 var(--pu-space-4);
  border: 1px solid var(--pu-border);
}
.pu-pros { border-left: 4px solid var(--pu-success); }
.pu-cons { border-left: 4px solid var(--pu-danger); }
.pu-proscons-title { margin: 0 0 var(--pu-space-2); }
.pu-proscons-list { margin: 0; padding-left: 1.2em; }

/* ==========================================================================
   FAQ accordion — native <details>, no JS gap-trap
   ========================================================================== */

.pu-faq { margin: var(--pu-space-4) 0 var(--pu-space-6); display: flex; flex-direction: column; gap: var(--pu-space-2); }
.pu-faq-item {
  border: 1px solid var(--pu-border);
  border-radius: var(--pu-radius);
  background: var(--pu-surface);
  padding: 0;
}
.pu-faq-q {
  cursor: pointer;
  list-style: none;
  padding: var(--pu-space-4);
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 700;
  gap: var(--pu-space-2);
}
.pu-faq-q::-webkit-details-marker { display: none; }
.pu-faq-q::after {
  content: '+';
  margin-left: auto;
  color: var(--pu-neon-cyan);
  font-size: 1.2rem;
}
.pu-faq-item[open] .pu-faq-q::after { content: '\2212'; }
.pu-faq-a { padding: 0 var(--pu-space-4) var(--pu-space-4); color: var(--pu-text-muted); }
.pu-faq-a p:last-child { margin-bottom: 0; }

/* ==========================================================================
   404 — not found page (src/templates/not-found.js). Standalone block,
   header/footer shared with the rest of the site (same header/footer
   markup, one <nav> — see css-layout skill §4).
   ========================================================================== */

.pu-404 {
  max-width: var(--pu-max-width);
  margin: 0 auto;
  padding: var(--pu-space-16) var(--pu-space-4);
  text-align: center;
}
.pu-404-code {
  margin: 0;
  font-size: clamp(3rem, 12vw, 5rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--pu-neon-pink), var(--pu-neon-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pu-404-title {
  margin: var(--pu-space-4) 0 var(--pu-space-3);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  color: var(--pu-text);
}
.pu-404-text {
  max-width: 560px;
  margin: 0 auto var(--pu-space-6);
  color: var(--pu-text-muted);
}
.pu-404-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--pu-space-3) var(--pu-space-6);
  list-style: none;
  margin: 0 0 var(--pu-space-8);
  padding: 0;
}
.pu-404-links a {
  color: var(--pu-neon-cyan);
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.pu-footer { border-top: 1px solid var(--pu-border); margin-top: var(--pu-space-16); }
.pu-footer-inner { max-width: var(--pu-max-width); margin: 0 auto; padding: var(--pu-space-8) var(--pu-space-4); color: var(--pu-text-muted); font-size: .85rem; }
.pu-footer-disclaimer { margin: 0 0 var(--pu-space-3); }
.pu-footer-copy { margin: 0; opacity: .7; }

/* Links to the dedicated review subpages (no longer in the top nav — see
   site-config.js footerPages / partials.js renderFooterPages) — kept for
   internal linking/indexing. */
.pu-footer-pages {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--pu-space-2) var(--pu-space-6);
  margin: 0 0 var(--pu-space-4);
  padding: 0;
}
.pu-footer-pages a {
  color: var(--pu-text-muted);
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.pu-footer-pages a:hover, .pu-footer-pages a:focus-visible { color: var(--pu-neon-cyan); }

/* ==========================================================================
   CTA link inline inside prose (from `[CTA: ...]{data-go="powerup"}`)
   ========================================================================== */

.pu-content .pu-cta { margin: var(--pu-space-2) 0; }

/* Баннер / одиночная декоративная фигура целиком кликабельны — рекламный
   креатив и просто иллюстративная картинка одинаково ведут на бренд. */
.pu-banner-link,
.pu-figure-link {
  display: block;
  border-radius: inherit;
  transition: transform .18s ease, filter .18s ease;
}
.pu-banner-link:hover,
.pu-banner-link:focus-visible,
.pu-figure-link:hover,
.pu-figure-link:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

/* ==========================================================================
   prefers-reduced-motion — global kill-switch (MANDATORY, see brief).
   Freezes/removes every animation and transition site-wide, not just the
   lobby ones: smooth in-page scroll (nav anchors / TOC / footnote links)
   becomes instant, the ticker marquee stops and wraps as static text
   (duplicate half already aria-hidden, see lobby.js), the LIVE pulse dot and
   tile appear/hover animations all freeze on their end state.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .pu-lobby-tile { opacity: 1; }
  .pu-ticker { overflow-x: auto; }
  .pu-ticker-track { width: auto; flex-wrap: wrap; }
  .pu-ticker-item[aria-hidden="true"] { display: none; }
}
