/* ==========================================================================
   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; }
.pu-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.45) saturate(1.2);
  z-index: 0;
}
.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;
}
.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;
}

/* ==========================================================================
   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
   ========================================================================== */

.pu-main { max-width: var(--pu-max-width); margin: 0 auto; padding: 0 var(--pu-space-4) var(--pu-space-16); }
.pu-content { max-width: 820px; }

.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);
}
.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 img { max-height: 40px; width: auto; margin: 0 auto; }
.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);
}

/* ==========================================================================
   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; }

/* ==========================================================================
   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; }

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

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