/* ============================================================
   casino-project / assets/css/main.css
   Last updated: 2026
============================================================ */

/* ============================================================
   1. CSS VARIABLES & RESET
============================================================ */
:root {
  --clr-bg:          #0b0f1a;
  --clr-surface:     #111827;
  --clr-surface-2:   #1a2235;
  --clr-border:      #1e2d47;
  --clr-gold:        #f5c842;
  --clr-gold-light:  #ffe07a;
  --clr-accent:      #3b82f6;
  --clr-accent-dark: #1d4ed8;
  --clr-green:       #22c55e;
  --clr-text:        #e2e8f0;
  --clr-muted:       #94a3b8;
  --clr-white:       #ffffff;
  --radius:          10px;
  --shadow:          0 4px 24px rgba(0,0,0,.45);
  --font-body:       'Raleway', sans-serif;
  --font-display:    'DM Serif Display', serif;
  --header-h:        70px;
  --container-pad:   20px;
}

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

/* ── Global overflow fix — prevents ANY element from causing horizontal scroll */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;   /* clips overflow at viewport level */
}

body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;   /* belt-and-suspenders: also clips at body */
  max-width: 100vw;     /* ensures body never exceeds viewport width */
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ============================================================
   2. LAYOUT UTILITIES
============================================================ */
.gx-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
  /* Safety: container never exceeds viewport */
  box-sizing: border-box;
  width: 100%;
}

/* ============================================================
   3. BUTTONS
============================================================ */
.ux-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .5px;
  cursor: pointer;
  transition: all .2s;
  text-transform: uppercase;
  text-align: center;
  border: none;
  outline: none;
}

.ux-btn--gold {
  background: var(--clr-gold);
  color: #111;
}
.ux-btn--gold:hover {
  background: var(--clr-gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,200,66,.35);
}

/* Play button — full width, centered text */
.ux-btn--go {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--clr-green);
  color: #fff;
  border-radius: 6px;
  padding: 13px 20px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  transition: background .2s, transform .2s, box-shadow .2s;
  border: none;
  cursor: pointer;
}
.ux-btn--go:hover {
  background: #16a34a;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(34,197,94,.3);
}

/* ============================================================
   4. HEADER
============================================================ */
.pg-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  height: var(--header-h);
}

.pg-bar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.pg-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}
.pg-brand .pg-brand__img {
  height: 34px;
  width: auto;
  display: block;
  object-fit: contain;
}
/* Footer logo slightly smaller */
.pg-foot__brand .pg-brand .pg-brand__img { height: 30px; }

/* Desktop Nav */
.pg-nav { display: flex; align-items: center; gap: 4px; }

.pg-nav__node { position: relative; }
.pg-nav__node > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-muted);
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.pg-nav__node > a:hover,
.pg-nav__node > a.active { color: var(--clr-white); background: var(--clr-border); }
.pg-nav__node.has-children > a::after {
  content: '▾';
  font-size: 10px;
  margin-left: 2px;
}

/* Dropdown */
.pg-nav__sub {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 6px 0;
  box-shadow: var(--shadow);
  z-index: 100;
}
.pg-nav__node:hover .pg-nav__sub { display: block; }
.pg-nav__sub li a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--clr-muted);
  transition: color .15s, background .15s;
}
.pg-nav__sub li a:hover { color: var(--clr-white); background: var(--clr-border); }

.pg-bar__end { display: flex; align-items: center; gap: 8px; }

/* Burger */
.pg-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.pg-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all .3s;
}

/* ============================================================
   5. MOBILE MENU
============================================================ */
.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 2000;
}
.drawer-backdrop.open { display: block; }

.drawer-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: var(--clr-surface);
  border-right: 1px solid var(--clr-border);
  z-index: 2001;
  transform: translateX(-100%);
  transition: transform .3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.drawer-panel.open { transform: translateX(0); }

.drawer-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--clr-border);
  flex-shrink: 0;
}
.drawer-panel__close {
  background: none;
  border: none;
  color: var(--clr-muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}
.drawer-panel__close:hover { color: var(--clr-white); }

.drawer-nav { flex: 1; }
.drawer-nav li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--clr-text);
  border-bottom: 1px solid var(--clr-border);
  transition: color .15s, background .15s;
}
.drawer-nav li a:hover { color: var(--clr-gold); background: var(--clr-surface-2); }
.drawer-nav li.sub a {
  padding-left: 36px;
  font-size: 14px;
  font-weight: 400;
  color: var(--clr-muted);
  background: var(--clr-surface-2);
}

/* ============================================================
   6. HERO SECTION
============================================================ */
.lp-hero {
  background: linear-gradient(135deg, #0d1b2e 0%, #0b0f1a 60%, #0d1b2e 100%);
  border-bottom: 1px solid var(--clr-border);
  padding: 48px 0 0;
}

.lp-hero__row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.lp-hero__copy { flex: 1; min-width: 0; }

.pg-trail {
  font-size: 12px;
  color: var(--clr-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pg-trail a { color: var(--clr-accent); transition: color .15s; }
.pg-trail a:hover { color: var(--clr-white); }

.lp-hero__h {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 40px);
  color: var(--clr-white);
  line-height: 1.2;
  margin-bottom: 16px;
}
.lp-hero__h em { color: var(--clr-gold); font-style: normal; }

.lp-hero__lead {
  color: var(--clr-muted);
  font-size: 15px;
  max-width: 560px;
  margin-bottom: 24px;
}

.lp-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.lp-chip {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--clr-muted);
}
.lp-chip.green { color: var(--clr-green); border-color: var(--clr-green); }

/* Featured Casino Card */
.featured-slot {
  width: 300px;
  flex-shrink: 0;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.featured-slot__img {
  background: #fff;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
}
.featured-slot__img img {
  max-height: 70px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.img-stub {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--clr-accent-dark);
  text-align: center;
}

.rt-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--clr-surface);
}
.rt-row__val {
  font-weight: 800;
  font-size: 18px;
  color: var(--clr-gold);
}
.rt-row__stars { color: var(--clr-gold); letter-spacing: 2px; }

.slot-specs {
  padding: 14px 16px;
  border-top: 1px solid var(--clr-border);
}
.slot-specs__row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid var(--clr-border);
}
.slot-specs__row:last-child { border-bottom: none; }
.slot-specs__key { color: var(--clr-muted); }
.slot-specs__val { font-weight: 600; color: var(--clr-white); }

.slot-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px;
  border-top: 1px solid var(--clr-border);
}
.pay-tag {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--clr-muted);
}

.featured-slot__act { padding: 14px 16px 16px; }
.cta-note {
  font-size: 11px;
  color: var(--clr-muted);
  text-align: center;
  margin-top: 8px;
}

/* Hero footer bar */
.lp-hero__foot {
  margin-top: 36px;
  border-top: 1px solid var(--clr-border);
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--clr-muted);
  flex-wrap: wrap;
}
.lp-hero__foot .meta-updated { color: var(--clr-green); font-weight: 600; }
.lp-hero__sep {
  color: var(--clr-border);
  user-select: none;
  flex-shrink: 0;
}

/* ============================================================
   7. MAIN LAYOUT (content + sidebar)
============================================================ */
.gx-body {
  display: flex;
  gap: 30px;
  padding: 40px 0;
  align-items: flex-start;
}

.gx-main { flex: 1; min-width: 0; }

.gx-aside {
  width: 270px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

/* ============================================================
   8. SECTION HEADERS
============================================================ */
.blk-head {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--clr-white);
  margin-bottom: 8px;
}
.blk-sub {
  color: var(--clr-muted);
  font-size: 14px;
  margin-bottom: 16px;
}
.blk-rule {
  height: 2px;
  background: linear-gradient(90deg, var(--clr-gold), transparent);
  margin-bottom: 24px;
  border-radius: 2px;
}

/* ============================================================
   9. CASINO GRID — 3 columns
============================================================ */
.picks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.pick-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.pick-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(245,200,66,.12);
  border-color: var(--clr-gold);
}

.pick-card__img {
  background: #fff;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}
.pick-card__img img {
  max-height: 64px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.pick-card__rt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--clr-surface-2);
  font-size: 13px;
}
.pick-card__rt .rt-score {
  font-weight: 800;
  color: var(--clr-gold);
  font-size: 16px;
}

.pick-card__body {
  padding: 12px;
  border-top: 1px solid var(--clr-border);
  font-size: 12px;
  text-align: center;
  color: var(--clr-muted);
  line-height: 1.8;
  flex: 1;
}
.pick-card__body strong { color: var(--clr-white); display: block; margin-bottom: 4px; }

.pick-card__pay {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  padding: 10px 12px;
  border-top: 1px solid var(--clr-border);
}
.pick-card__pay .pay-pill {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 10px;
  color: var(--clr-muted);
}

.pick-card__cta { padding: 12px; border-top: 1px solid var(--clr-border); }

/* ============================================================
   10. CASINO LIST (archive)
============================================================ */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.rank-row {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.rank-row:hover {
  border-color: var(--clr-gold);
  box-shadow: 0 4px 20px rgba(245,200,66,.1);
}

.rank-row__num {
  width: 44px;
  background: var(--clr-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: var(--clr-gold);
  border-right: 1px solid var(--clr-border);
  flex-shrink: 0;
}

.rank-row__img {
  width: 130px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-right: 1px solid var(--clr-border);
  flex-shrink: 0;
}
.rank-row__img img {
  max-height: 52px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.rank-row__img .img-stub {
  font-size: 13px;
  color: var(--clr-accent-dark);
  font-weight: 700;
  text-align: center;
}

.rank-row__data {
  flex: 1;
  min-width: 0;         /* дозволяє flex-елементу стискатись нижче свого контенту */
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.rank-row__title {
  font-weight: 700;
  font-size: 16px;
  color: var(--clr-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-row__offer {
  font-size: 13px;
  color: var(--clr-gold);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.rank-tag {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  color: var(--clr-muted);
}

.rank-row__rt {
  width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-left: 1px solid var(--clr-border);
  border-right: 1px solid var(--clr-border);
  flex-shrink: 0;
}
.rank-row__rt .rt-score {
  font-size: 24px;
  font-weight: 800;
  color: var(--clr-gold);
  line-height: 1;
}
.rank-row__rt .rt-row__stars { font-size: 11px; margin-top: 5px; }

.rank-row__end {
  width: 170px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.rank-row__pay {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-bottom: 1px solid var(--clr-border);
}
.rank-row__cta { padding: 10px 12px; }

/* ============================================================
   11. ARTICLE CONTENT
============================================================ */
.prose {
  color: var(--clr-text);
  line-height: 1.8;
  min-width: 0;       /* дозволяє стискатись у flex/grid контексті */
  max-width: 100%;    /* ніколи не виходить за батька */
  overflow-wrap: break-word;  /* переноси довгих слів/URLs */
  word-break: break-word;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--clr-white);
  margin: 36px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--clr-border);
}
.prose h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--clr-white);
  margin: 24px 0 10px;
}
.prose p { margin-bottom: 14px; color: var(--clr-muted); }
.prose ul,
.prose ol {
  margin: 0 0 14px 20px;
  color: var(--clr-muted);
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--clr-accent); text-decoration: underline; }
.prose a:hover { color: var(--clr-white); }
.prose strong { color: var(--clr-white); }

.callout {
  background: var(--clr-surface-2);
  border-left: 3px solid var(--clr-gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--clr-muted);
}
.callout strong {
  color: var(--clr-gold);
  display: block;
  margin-bottom: 6px;
}

.verdict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
.verdict-pro, .verdict-con {
  background: var(--clr-surface-2);
  border-radius: var(--radius);
  padding: 16px;
}
.verdict-pro { border: 1px solid #166534; }
.verdict-con { border: 1px solid #7f1d1d; }
.verdict-pro h4 { color: var(--clr-green); margin-bottom: 10px; font-size: 14px; }
.verdict-con h4 { color: #f87171; margin-bottom: 10px; font-size: 14px; }
.verdict-pro ul, .verdict-con ul { list-style: none; margin: 0; }
.verdict-pro li,
.verdict-con li {
  font-size: 13px;
  padding: 4px 0 4px 18px;
  position: relative;
  color: var(--clr-muted);
}
.verdict-pro li::before { content: '✓'; position: absolute; left: 0; color: var(--clr-green); font-weight: 700; }
.verdict-con li::before { content: '✗'; position: absolute; left: 0; color: #f87171; font-weight: 700; }

/* FAQ */
.qna-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.qna-item {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.qna-item__q {
  background: var(--clr-surface-2);
  padding: 14px 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .2s;
  user-select: none;
  color: var(--clr-white);
}
.qna-item__q:hover { background: var(--clr-border); }
.qna-item__ico {
  font-size: 20px;
  color: var(--clr-gold);
  transition: transform .3s;
  flex-shrink: 0;
  margin-left: 12px;
  line-height: 1;
}
.qna-item.open .qna-item__ico { transform: rotate(45deg); }
.qna-item__a {
  display: none;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--clr-muted);
  background: var(--clr-surface);
  line-height: 1.7;
}
.qna-item.open .qna-item__a { display: block; }

/* ============================================================
   11b. ARTICLE IMAGES
============================================================ */

/* Base — всі зображення в контенті */
.prose img {
  max-width: 100%;
  width: 100%;       /* явно 100% контейнера, не intrinsic width */
  height: auto;
  border-radius: var(--radius);
  display: block;
}

/* Повна ширина з підписом */
.fig-block {
  margin: 28px 0;
  max-width: 100%;
  overflow: hidden;
}
.fig-block img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--clr-border);
  display: block;
}
.fig-cap {
  margin-top: 8px;
  font-size: 12px;
  color: var(--clr-muted);
  text-align: center;
  font-style: italic;
  line-height: 1.5;
}

/* Float right — текст обтікає зліва */
.fig-right {
  float: right;
  margin: 4px 0 20px 28px;
  max-width: 340px;
  width: 45%;
  overflow: hidden;   /* зображення не виходить за межі обгортки */
}
.fig-right img {
  width: 100%;
  height: auto;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  display: block;
}
.fig-right .fig-cap { text-align: left; }

/* Float left — текст обтікає справа */
.fig-left {
  float: left;
  margin: 4px 28px 20px 0;
  max-width: 340px;
  width: 45%;
  overflow: hidden;
}
.fig-left img {
  width: 100%;
  height: auto;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  display: block;
}

/* Clearfix після float */
.fig-clear::after {
  content: '';
  display: table;
  clear: both;
}

.img-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
  max-width: 100%;    /* ніколи не виходить за батьківський контейнер */
  overflow: hidden;
}
/* min-width:0 на grid-дітях — інакше grid-item може розпирати сітку */
.img-grid-2 > * {
  min-width: 0;
  overflow: hidden;
}
.img-grid-2 img {
  width: 100%;
  height: auto;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  display: block;
}
/* Caption всередині img-grid-2 */
.img-grid-2 .fig-cap { text-align: left; }

/* Адаптив для зображень */
@media (max-width: 768px) {
  .fig-right,
  .fig-left {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 20px 0;
  }
  /* На мобільних img-grid-2 одразу 1 колонка —
     2 колонки по ~190px занадто вузькі для читання */
  .img-grid-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .fig-block { margin: 20px 0; }
}

/* ============================================================
   11c. TABLES
============================================================ */

.prose table,
.data-tbl {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  /* border-radius on table with border-collapse is broken in Firefox —
     radius is applied on .tbl-scroll instead */
  border: 1px solid var(--clr-border);
}

/* Header row */
.prose thead th,
.data-tbl thead th {
  background: var(--clr-surface-2);
  color: var(--clr-white);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--clr-gold);
  white-space: nowrap;
}

/* Перша колонка заголовків — золота */
.prose thead th:first-child,
.data-tbl thead th:first-child {
  color: var(--clr-gold);
}

/* Рядки тіла */
.prose tbody tr,
.data-tbl tbody tr {
  border-bottom: 1px solid var(--clr-border);
  transition: background .15s;
}
.prose tbody tr:last-child,
.data-tbl tbody tr:last-child {
  border-bottom: none;
}
.prose tbody tr:hover,
.data-tbl tbody tr:hover {
  background: var(--clr-surface-2);
}

/* Зебра */
.prose tbody tr:nth-child(even),
.data-tbl tbody tr:nth-child(even) {
  background: rgba(30, 45, 71, .35);
}
.prose tbody tr:nth-child(even):hover,
.data-tbl tbody tr:nth-child(even):hover {
  background: var(--clr-surface-2);
}

/* Клітинки */
.prose td,
.data-tbl td {
  padding: 11px 16px;
  color: var(--clr-muted);
  vertical-align: middle;
}

/* Перша колонка td — виділена */
.prose td:first-child,
.data-tbl td:first-child {
  font-weight: 600;
  color: var(--clr-text);
}

/* Бейджі всередині таблиці */
.data-tbl .td-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.td-badge.green { background: rgba(34,197,94,.15); color: var(--clr-green); border: 1px solid rgba(34,197,94,.3); }
.td-badge.gold  { background: rgba(245,200,66,.15); color: var(--clr-gold);  border: 1px solid rgba(245,200,66,.3); }
.td-badge.muted { background: var(--clr-surface-2); color: var(--clr-muted); border: 1px solid var(--clr-border); }

/* Адаптивні таблиці — горизонтальний скрол */
.tbl-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);  /* border-radius lives here, not on <table> */
  border: 1px solid var(--clr-border);
  margin: 24px 0;
}
/* Scroll hint shadow on the right when overflowing */
.tbl-scroll::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 24px;
  background: linear-gradient(to right, transparent, rgba(11,15,26,.6));
  pointer-events: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  opacity: 0;
  transition: opacity .2s;
}
.tbl-scroll { position: relative; }
.tbl-scroll.is-scrollable::after { opacity: 1; }

.tbl-scroll table,
.tbl-scroll .data-tbl {
  margin: 0;
  border: none;       /* border is now on .tbl-scroll */
  min-width: 480px;
}

/* ============================================================
   12. SIDEBAR
============================================================ */
.aside-box {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.aside-box__head {
  background: var(--clr-surface-2);
  padding: 12px 16px;
  font-weight: 700;
  font-size: 12px;
  color: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
  text-transform: uppercase;
  letter-spacing: .8px;
}

/* TOC */
.nav-toc { padding: 8px 0; }
.nav-toc li a {
  display: block;
  padding: 7px 16px;
  font-size: 13px;
  color: var(--clr-muted);
  transition: color .15s, background .15s, border-color .15s;
  border-left: 2px solid transparent;
}
.nav-toc li a:hover,
.nav-toc li a.active {
  color: var(--clr-white);
  background: var(--clr-surface-2);
  border-left-color: var(--clr-gold);
}
.nav-toc li.sub a { padding-left: 28px; font-size: 12px; }

/* Sidebar casino list */
.aside-ranks { padding: 4px 0; }
.aside-ranks__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--clr-border);
  transition: background .15s;
}
.aside-ranks__row:last-child { border-bottom: none; }
.aside-ranks__row:hover { background: var(--clr-surface-2); }
.aside-ranks__num {
  font-size: 16px;
  font-weight: 800;
  color: var(--clr-gold);
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.aside-ranks__img {
  width: 48px;
  height: 34px;
  background: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
  overflow: hidden;
}
.aside-ranks__img img {
  max-width: 100%;
  max-height: 26px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.aside-ranks__img .img-stub {
  font-size: 9px;
  font-weight: 800;
  color: var(--clr-accent-dark);
  text-align: center;
  line-height: 1.2;
}
.aside-ranks__info { flex: 1; min-width: 0; }
.aside-ranks__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--clr-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aside-ranks__offer { font-size: 11px; color: var(--clr-gold); }
.aside-ranks__score {
  font-size: 14px;
  font-weight: 800;
  color: var(--clr-gold);
  flex-shrink: 0;
}

/* Responsible gambling widget */
.safety-box { padding: 14px 16px; }
.safety-box p {
  font-size: 13px;
  color: var(--clr-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}
.safety-box a {
  display: block;
  text-align: center;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 6px;
  padding: 9px;
  color: var(--clr-muted);
  font-size: 12px;
  font-weight: 600;
  transition: border-color .2s, color .2s;
}
.safety-box a:hover { border-color: var(--clr-green); color: var(--clr-green); }

/* ============================================================
   13. FOOTER
============================================================ */
.pg-foot {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: 48px 0 24px;
  margin-top: 60px;
}

.warn-bar {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 12px;
  color: var(--clr-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}
.warn-bar strong { color: var(--clr-white); }

.pg-foot__row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.pg-foot__brand .pg-brand { margin-bottom: 14px; display: inline-flex; }
.pg-foot__desc {
  font-size: 13px;
  color: var(--clr-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}
.pg-foot__social { display: flex; gap: 10px; }
.soc-btn {
  width: 36px;
  height: 36px;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--clr-muted);
  transition: all .2s;
}
.soc-btn:hover { background: var(--clr-gold); color: #111; border-color: var(--clr-gold); }

.pg-foot__col h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--clr-white);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 16px;
}
.pg-foot__col ul { display: flex; flex-direction: column; gap: 9px; }
.pg-foot__col ul a {
  font-size: 13px;
  color: var(--clr-muted);
  transition: color .15s;
}
.pg-foot__col ul a:hover { color: var(--clr-white); }

.pg-foot__bar {
  border-top: 1px solid var(--clr-border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.pg-foot__bar p { font-size: 12px; color: var(--clr-muted); }
.pg-foot__seals { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.seal-tag {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--clr-muted);
}

/* ============================================================
   14. RESPONSIVE
============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .pg-foot__row { grid-template-columns: 1fr 1fr; }
  .picks-grid { grid-template-columns: 1fr 1fr; }
  .gx-aside { width: 240px; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --container-pad: 16px; }

  /* Header */
  .pg-nav { display: none; }
  .pg-toggle { display: flex; }

  /* Hero */
  .lp-hero { padding: 28px 0 0; }
  .lp-hero__row { flex-direction: column; }
  .featured-slot { width: 100%; }

  /* Layout */
  .gx-body {
    flex-direction: column;
    padding: 28px 0;
  }
  /* ВАЖЛИВО: в column flex-контексті flex:1 керує висотою, не шириною.
     Без явного width:100% content-area може бути ширшим за viewport! */
  .gx-main {
    width: 100%;
    min-width: 0;
    flex: none;
  }
  .gx-aside {
    width: 100%;
    position: static;
  }

  /* Grid */
  .picks-grid { grid-template-columns: 1fr 1fr; }

  /* ── Casino list — мобільний layout ──
     Рядок 1: [num 36] [logo 70] [data flex] [rt 56]
     Рядок 2: [pay flex] | [cta 100]
  */
  .rank-row {
    flex-wrap: wrap;
    flex-direction: row;
    max-width: 100%;
    overflow: hidden;
  }

  .rank-row__num {
    width: 36px;
    min-width: 36px;
    max-width: 36px;
    flex-shrink: 0;
    font-size: 15px;
  }

  .rank-row__img {
    width: 70px;
    min-width: 70px;
    max-width: 70px;
    flex-shrink: 0;
    padding: 8px;
    border-right: 1px solid var(--clr-border);
  }

  .rank-row__data {
    flex: 1;
    min-width: 0;
    padding: 10px 10px;
    overflow: hidden;
  }
  .rank-row__title {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .rank-row__offer {
    font-size: 11px;
    white-space: normal;
    line-height: 1.4;
    overflow: visible;
    text-overflow: unset;
  }
  .rank-row__tags { display: none; }

  .rank-row__rt {
    width: 56px;
    min-width: 56px;
    max-width: 56px;
    flex-shrink: 0;
    border-left: 1px solid var(--clr-border);
    border-right: none;
    padding: 10px 6px;
  }
  .rank-row__rt .rt-score { font-size: 17px; }
  .rank-row__rt .rt-row__stars { font-size: 9px; margin-top: 4px; letter-spacing: 0; }

  .rank-row__end {
    width: 100%;
    flex-direction: row;
    border-top: 1px solid var(--clr-border);
    min-height: 44px;
  }
  .rank-row__pay {
    flex: 1;
    min-width: 0;
    border-bottom: none;
    border-right: 1px solid var(--clr-border);
    padding: 8px 10px;
    flex-wrap: wrap;
    gap: 4px;
  }
  .rank-row__cta {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 6px 8px;
  }
  .rank-row__cta .ux-btn--go {
    width: 100%;
    font-size: 12px;
    padding: 10px 6px;
    letter-spacing: 0.5px;
  }

  /* Article */
  .verdict-grid { grid-template-columns: 1fr; }

  /* Tables — менший padding на мобільних */
  .prose td,
  .data-tbl td {
    padding: 9px 12px;
    font-size: 13px;
  }
  .prose thead th,
  .data-tbl thead th {
    padding: 10px 12px;
    font-size: 11px;
  }

  /* Footer */
  .pg-foot__row { grid-template-columns: 1fr 1fr; gap: 24px; }
  .pg-foot__bar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  :root { --container-pad: 12px; }

  .lp-hero__h { font-size: 22px; }

  /* Casino grid — 1 колонка */
  .picks-grid { grid-template-columns: 1fr; }

  /* Casino list — ще компактніше на < 480px */
  .rank-row__num  { width: 30px; min-width: 30px; max-width: 30px; font-size: 13px; }
  .rank-row__img  { width: 58px; min-width: 58px; max-width: 58px; padding: 6px; }
  .rank-row__rt   { width: 50px; min-width: 50px; max-width: 50px; padding: 8px 4px; }
  .rank-row__rt .rt-score { font-size: 15px; }
  .rank-row__rt .rt-row__stars { font-size: 8px; letter-spacing: 0; }
  .rank-row__title { font-size: 13px; }
  .rank-row__offer { font-size: 11px; }
  .rank-row__cta  { width: 88px; min-width: 88px; max-width: 88px; padding: 5px 6px; }
  .rank-row__cta .ux-btn--go { font-size: 11px; padding: 9px 4px; letter-spacing: 0; }

  /* Footer */
  .pg-foot__row { grid-template-columns: 1fr; }
}

/* ============================================================
   15. AUTHOR INLINE LINK (hero footer bar)
============================================================ */
.meta-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--clr-accent);
  font-weight: 600;
  transition: color .15s;
}
.meta-author:hover { color: var(--clr-white); }
.meta-author__img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--clr-border);
  vertical-align: middle;
  flex-shrink: 0;
}

/* ============================================================
   16. INNER PAGE — shared hero (Privacy, simple text pages)
============================================================ */
.pg-hero {
  background: linear-gradient(135deg, #0d1b2e 0%, #0b0f1a 70%);
  border-bottom: 1px solid var(--clr-border);
  padding: 48px 0 40px;
}
.inner-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--clr-gold);
  margin-bottom: 14px;
}
.inner-hero-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 42px);
  color: var(--clr-white);
  line-height: 1.15;
  margin-bottom: 14px;
}
.inner-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--clr-muted);
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--clr-border);
}
.inner-hero-meta span { display: flex; align-items: center; gap: 5px; }
.inner-hero-meta strong { color: var(--clr-text); }

/* Simple (no-sidebar) layout for text pages */
.pg-content {
  padding: 48px 0 60px;
}
.inner-content {
  max-width: 800px;
  width: 100%;  /* запобігає overflow якщо max-width більший за viewport */
}

/* ============================================================
   17. AUTHOR PAGE
============================================================ */

/* Author hero — card layout */
.bio-hero {
  background: linear-gradient(135deg, #0d1b2e 0%, #0b0f1a 60%, #0d1b2e 100%);
  border-bottom: 1px solid var(--clr-border);
  padding: 56px 0 48px;
}
.bio-hero__row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Avatar block */
.bio-avatar { flex-shrink: 0; text-align: center; }
.bio-avatar__img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--clr-gold);
  box-shadow: 0 0 0 6px rgba(245,200,66,.12);
  display: block;
  margin-bottom: 16px;
}
.bio-avatar__stub {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--clr-surface-2);
  border: 3px solid var(--clr-gold);
  box-shadow: 0 0 0 6px rgba(245,200,66,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  margin-bottom: 16px;
}
.bio-social {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.bio-social__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--clr-muted);
  transition: all .2s;
}
.bio-social__btn:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
}

/* Author info */
.bio-info { flex: 1; min-width: 0; }
.bio-role {
  display: inline-block;
  background: rgba(245,200,66,.12);
  border: 1px solid rgba(245,200,66,.3);
  color: var(--clr-gold);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.bio-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  color: var(--clr-white);
  line-height: 1.1;
  margin-bottom: 12px;
}
.bio-tagline {
  font-size: 16px;
  color: var(--clr-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Stats row */
.bio-stats {
  display: flex;
  gap: 0;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
}
.bio-stat {
  flex: 1;
  padding: 16px 14px;
  text-align: center;
  border-right: 1px solid var(--clr-border);
  background: var(--clr-surface-2);
}
.bio-stat:last-child { border-right: none; }
.bio-stat__val {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--clr-gold);
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}
.bio-stat__key {
  font-size: 11px;
  color: var(--clr-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* Expertise badges */
.bio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bio-tag {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--clr-muted);
  transition: border-color .2s, color .2s;
}
.bio-tag:hover { border-color: var(--clr-gold); color: var(--clr-gold); }

/* Author page layout */
.bio-layout {
  padding: 48px 0 60px;
}
.bio-content {
  max-width: 780px;
  width: 100%;
}

/* Review card — recent articles / reviews section */
.bio-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.bio-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color .2s, transform .2s;
}
.bio-card:hover {
  border-color: var(--clr-gold);
  transform: translateY(-2px);
}
.bio-card__cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--clr-gold);
  margin-bottom: 8px;
}
.bio-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1.4;
  margin-bottom: 8px;
}
.bio-card__meta {
  font-size: 12px;
  color: var(--clr-muted);
}

/* Methodology steps */
.method-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}
.method-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.method-item__num {
  width: 36px;
  height: 36px;
  background: rgba(245,200,66,.1);
  border: 1px solid rgba(245,200,66,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--clr-gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.method-item__body { flex: 1; }
.method-item__title {
  font-weight: 700;
  font-size: 15px;
  color: var(--clr-white);
  margin-bottom: 4px;
}
.method-item__desc { font-size: 13px; color: var(--clr-muted); line-height: 1.6; }

/* Author responsive — see section 19 below */

/* ============================================================
   18. 404 PAGE
============================================================ */
.err-page {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px var(--container-pad);
  background: var(--clr-bg);
}
.err-page__body {
  text-align: center;
  max-width: 560px;
  width: 100%;
}
.err-code {
  font-family: var(--font-display);
  font-size: clamp(80px, 18vw, 160px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--clr-border);
  background: linear-gradient(135deg, var(--clr-gold) 0%, transparent 60%);
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 0;
  display: block;
  user-select: none;
}
.err-icon {
  font-size: 48px;
  margin: 8px 0 20px;
  display: block;
}
.err-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 32px);
  color: var(--clr-white);
  margin-bottom: 14px;
}
.err-desc {
  color: var(--clr-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.err-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.err-links-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 700;
  color: var(--clr-muted);
  margin-bottom: 16px;
}
.err-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.err-pill {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-muted);
  transition: border-color .2s, color .2s;
}
.err-pill:hover { border-color: var(--clr-gold); color: var(--clr-gold); }

/* Author responsive */
@media (max-width: 768px) {
  .bio-hero__row { flex-direction: column; align-items: center; text-align: center; }
  .bio-tags { justify-content: center; }
  .bio-cards { grid-template-columns: 1fr; }
  .bio-stats { flex-wrap: wrap; }
  .bio-stat { min-width: 50%; border-bottom: 1px solid var(--clr-border); }
  /* author avatar smaller */
  .bio-avatar__img,
  .bio-avatar__stub { width: 120px; height: 120px; }
  .bio-avatar__stub { font-size: 40px; }
}

@media (max-width: 480px) {
  .bio-stat { min-width: 50%; }
  .bio-name { font-size: 26px; }
  .bio-social { flex-wrap: wrap; justify-content: center; }
}

/* ============================================================
   19. INNER PAGE — no-sidebar layout responsive
============================================================ */
@media (max-width: 768px) {
  .pg-hero { padding: 32px 0 28px; }
  .pg-content { padding: 32px 0 40px; }
  .bio-hero { padding: 36px 0 32px; }
  .bio-layout { padding: 32px 0 40px; }

  /* word-break для довгих слів у статтях (URLs, технічні терміни) */
  .prose p,
  .prose li,
  .prose td {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* pro-con grid для внутрішніх сторінок */
  .verdict-grid { grid-template-columns: 1fr; }
}
