/* Self-hosted fonts — fixes CLS, removes Google Fonts dependency */
@font-face {
  font-family: 'Bungee';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('/assets/fonts/Bungee-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bungee';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('/assets/fonts/Bungee-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('/assets/fonts/Manrope-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('/assets/fonts/Manrope-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url('/assets/fonts/Manrope-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url('/assets/fonts/Manrope-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url('/assets/fonts/Manrope-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url('/assets/fonts/Manrope-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: optional;
  src: url('/assets/fonts/Manrope-800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: optional;
  src: url('/assets/fonts/Manrope-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================
   Chicken Road PL — Stylesheet 2026
   Dark · Amber accent · Mobile-first · SEO-ready
   ============================================ */

:root {
  --bg: #07070d;
  --bg-elev: #11111c;
  --bg-card: #161624;
  --bg-card-2: #1d1d2e;
  --border: #262638;
  --border-bright: #353550;

  --text: #f8f8fc;
  --text-soft: #cfcfdc;
  --text-dim: #9a9ab0;

  --accent: #fbbf24;
  --accent-2: #f59e0b;
  --accent-soft: #fde047;
  --accent-glow: rgba(251, 191, 36, .35);
  --hot: #f97316;
  --hot-2: #ea580c;
  --danger: #ef4444;
  --success: #10b981;
  --info: #38bdf8;

  --grad-accent: linear-gradient(135deg, #fde047 0%, #fbbf24 45%, #f97316 100%);
  --grad-card: linear-gradient(180deg, rgba(255,255,255,.025) 0%, rgba(255,255,255,0) 100%);
  --grad-hero: radial-gradient(60% 80% at 20% 0%, rgba(251,191,36,.16) 0%, rgba(251,191,36,0) 60%),
               radial-gradient(60% 80% at 100% 100%, rgba(249,115,22,.12) 0%, rgba(249,115,22,0) 60%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.25);
  --shadow: 0 12px 32px rgba(0,0,0,.45);
  --shadow-glow: 0 0 36px rgba(251,191,36,.25);

  --wrap: 1200px;
  --gutter: clamp(1rem, 3vw, 1.75rem);

  --ff-head: 'Bungee', Impact, 'Arial Black', sans-serif;
  --ff-body: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-body);
  background:
    var(--grad-hero),
    radial-gradient(40% 60% at 50% 0%, #161628 0%, var(--bg) 70%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><circle cx='1' cy='1' r='1' fill='%23fbbf24' opacity='.06'/></svg>");
  background-size: 40px 40px;
  pointer-events: none; z-index: 0;
}
main { position: relative; z-index: 1; }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-soft); }
/* Inline content links — underlined for non-color-dependent recognition (WCAG 1.4.1) */
p a, li a, .faq-answer a, .responsible a, .info-card p a, .footer-about p a {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(251,191,36,.5);
}
p a:hover, li a:hover, .faq-answer a:hover {
  text-decoration-color: var(--accent);
}

::selection { background: var(--accent); color: #0a0a12; }

h1, h2, h3, h4 { font-family: var(--ff-head); font-weight: 400; line-height: 1.15; color: #fff; letter-spacing: .5px; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.4rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 1.2rem 0 .7rem; }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); margin: 1rem 0 .5rem; }
h2 + h3, h2 + p, h3 + p, h2 + .table-wrap, h2 + ul, h2 + ol { margin-top: .5rem; }
section > h2:first-child, section > h3:first-child { margin-top: 0; }

p { margin: 0 0 1rem; }
strong { color: #fff; font-weight: 700; }
ul, ol { padding-left: 1.4rem; margin: 0 0 1.2rem; }
li { margin: .35rem 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }

/* ============================================ HEADER */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,7,13,.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; gap: 1rem; }
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo img {
  width: auto;
  height: 48px;
  max-width: 180px;
  filter: drop-shadow(0 2px 8px rgba(251,191,36,.25));
  transition: filter .15s, transform .15s;
}
.logo:hover img { filter: drop-shadow(0 3px 12px rgba(251,191,36,.45)); transform: translateY(-1px); }
.site-footer .logo img { height: 42px; }
@media (max-width: 640px) {
  .logo img { height: 40px; }
}

.nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.nav a {
  color: var(--text-soft);
  padding: .55rem .85rem;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: .92rem;
  transition: background .15s, color .15s;
}
.nav a:hover, .nav a[aria-current="page"] {
  background: rgba(251,191,36,.12);
  color: var(--accent);
}
.nav-toggle {
  display: none; background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text); font-size: 1.4rem;
  width: 42px; height: 42px;
  cursor: pointer;
}

/* ============================================ HEADER PLAY CTA */
.cta-header {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-left: auto; /* push CTA + nav group to right edge */
  padding: .55rem 1.1rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #2EE59D 0%, #1FB375 100%);
  color: #06140d;
  font-weight: 800;
  font-size: .94rem;
  text-decoration: none;
  letter-spacing: .02em;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  box-shadow:
    0 4px 14px rgba(46,229,157,.35),
    inset 0 -2px 0 rgba(0,0,0,.18);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.cta-header::before {
  content: '▶';
  font-size: .72em;
  display: inline-block;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.25));
}
.cta-header:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:
    0 8px 22px rgba(46,229,157,.5),
    inset 0 -2px 0 rgba(0,0,0,.18);
}
.cta-header:active { transform: translateY(0); filter: brightness(.95); }
.cta-header:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Тонкий pulse-ring для привлечения внимания */
.cta-header::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(46,229,157,.6);
  pointer-events: none;
  animation: cta-pulse 2.8s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes cta-pulse {
  0%   { transform: scale(1);    opacity: .85; }
  70%  { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-header::after { animation: none; opacity: 0; }
}
/* На мобилах кнопка между логотипом и гамбургером */
@media (max-width: 820px) {
  .cta-header { margin-left: auto; margin-right: .1rem; }
}
@media (max-width: 480px) {
  .cta-header { padding: .5rem .9rem; font-size: .86rem; }
}
@media (max-width: 360px) {
  .cta-header .cta-label { display: none; }
  .cta-header { padding: .55rem .8rem; min-width: 42px; justify-content: center; }
}

/* ============================================ HERO */
.hero {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(251,191,36,.12);
  color: var(--accent);
  padding: .4rem .85rem;
  border-radius: var(--radius-pill);
  font-size: .78rem; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(251,191,36,.25);
}
.hero h1 {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 30px rgba(251,191,36,.15);
}
.hero-lead { font-size: clamp(1rem, 1.7vw, 1.15rem); color: var(--text-soft); margin-bottom: 1.6rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-art { position: relative; }
.hero-art img { width: 100%; max-width: 500px; margin: 0 auto; filter: drop-shadow(0 20px 50px rgba(251,191,36,.25)); animation: floaty 5s ease-in-out infinite; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .8rem;
  margin-top: 2rem;
}
.hero-stats > div {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem .7rem;
  text-align: center;
  display: flex; flex-direction: column;
}
.stat-num { font-family: var(--ff-head); font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--accent); }
.stat-lbl { font-size: .72rem; color: var(--text-dim); letter-spacing: 1px; text-transform: uppercase; margin-top: 2px; }

/* ============================================ BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--ff-head);
  font-size: .95rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-accent);
  color: #0a0a12;
  box-shadow: 0 6px 24px rgba(251,191,36,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(251,191,36,.5); color: #0a0a12; }
.btn-secondary {
  background: rgba(251,191,36,.1);
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn-secondary:hover { background: rgba(251,191,36,.18); color: var(--accent-soft); }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-bright);
}
.btn-ghost:hover { color: var(--accent-soft); border-color: var(--accent); }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ============================================ SECTIONS */
section { padding: clamp(.6rem, 1.4vw, 1rem) 0; }
section + section { padding-top: clamp(.8rem, 1.6vw, 1.2rem); }
.divider { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border-bright), transparent); margin: .5rem 0; }

/* ============================================ BREADCRUMBS */
.breadcrumbs { font-size: .85rem; color: var(--text-dim); padding: 1rem 0 0; }
.breadcrumbs a { color: var(--text-soft); }
.breadcrumbs a:hover { color: var(--accent); }
.bc-sep { margin: 0 .4rem; color: var(--text-dim); }
.breadcrumbs [aria-current="page"] { color: var(--text); }

/* ============================================ TLDR */
.tldr {
  background: linear-gradient(135deg, rgba(251,191,36,.07), rgba(249,115,22,.04));
  border: 1px solid rgba(251,191,36,.2);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
  display: flex; gap: .9rem;
}
.tldr-icon {
  font-size: 1.8rem; line-height: 1;
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

/* ============================================ DIFFICULTY TABLE (color-coded by risk) */
.difficulty-table { font-size: .92rem; }
.difficulty-table th { white-space: nowrap; font-size: .82rem; }
.difficulty-table td:first-child { font-family: var(--ff-head); font-size: 1rem; letter-spacing: .03em; }
.difficulty-table tr.lvl-easy td:first-child     { color: #2EE59D; }
.difficulty-table tr.lvl-medium td:first-child   { color: #FFD43B; }
.difficulty-table tr.lvl-hard td:first-child     { color: #FF8C42; }
.difficulty-table tr.lvl-hardcore td:first-child { color: #FF3B5C; }
.difficulty-table tr.lvl-easy     { background: linear-gradient(90deg, rgba(46,229,157,.06), transparent 60%); }
.difficulty-table tr.lvl-medium   { background: linear-gradient(90deg, rgba(255,212,59,.07), transparent 60%); }
.difficulty-table tr.lvl-hard     { background: linear-gradient(90deg, rgba(255,140,66,.08), transparent 60%); }
.difficulty-table tr.lvl-hardcore { background: linear-gradient(90deg, rgba(255,59,92,.09), transparent 60%); }
.table-footnote { margin-top: .5rem; color: var(--text-dim); font-size: .85rem; }
.table-footnote small { font-size: inherit; }

/* ============================================ INFO TABLE */
.table-wrap { overflow-x: auto; margin: 1.2rem 0 1.6rem; border-radius: var(--radius); border: 1px solid var(--border); }
.info-table, .data-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card);
}
.info-table td, .info-table th,
.data-table td, .data-table th {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: .94rem;
}
.info-table th, .data-table th {
  background: var(--bg-card-2);
  font-family: var(--ff-head);
  font-weight: 400;
  letter-spacing: 1px;
  font-size: .8rem;
  color: var(--accent);
  text-transform: uppercase;
}
.info-table tr:last-child td, .data-table tr:last-child td { border-bottom: 0; }
.info-table td:first-child { font-weight: 700; color: var(--text); width: 38%; }

/* ============================================ DEMO IFRAME */
.demo-frame {
  margin: 1.5rem 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  position: relative;
}
.demo-stage {
  position: relative;
  background: #07070d;
  line-height: 0; /* убираем зазор под inline iframe */
}
.demo-iframe {
  display: block;
  width: 100%;
  height: min(80vh, 760px);
  min-height: 560px;
  border: 0;
  background: #07070d;
}
/* Кнопка fullscreen в углу iframe */
.demo-fs-btn {
  position: absolute;
  top: .55rem;
  right: .55rem;
  z-index: 5;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(7,7,13,.72);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  backdrop-filter: blur(8px) saturate(150%);
  color: #fff;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.demo-fs-btn:hover {
  background: rgba(20,20,32,.92);
  border-color: rgba(255,255,255,.35);
  transform: scale(1.05);
}
.demo-fs-btn:active { transform: scale(.95); }
.demo-fs-btn:focus-visible { outline: 2px solid var(--accent, #fbbf24); outline-offset: 2px; }
/* Большая мобильная CTA — скрыта по умолчанию (видна на узких экранах) */
.demo-fs-cta { display: none; }

.demo-actions {
  display: flex; gap: .8rem; flex-wrap: wrap;
  justify-content: center;
  padding: 1rem;
  background: var(--bg-card-2);
  border-top: 1px solid var(--border);
}

/* Native fullscreen — iframe-контейнер заполняет весь экран */
.demo-frame:fullscreen,
.demo-frame:-webkit-full-screen {
  background: #000;
  border: none;
  border-radius: 0;
  margin: 0;
}
.demo-frame:fullscreen .demo-iframe,
.demo-frame:-webkit-full-screen .demo-iframe {
  height: 100vh;
  height: 100dvh;
  max-height: none;
  min-height: 0;
}
.demo-frame:fullscreen .demo-actions,
.demo-frame:-webkit-full-screen .demo-actions { display: none; }

/* iOS Safari emulated fullscreen (Fullscreen API недоступен на iframe-контейнере) */
.demo-frame.demo-ios-fs {
  position: fixed;
  inset: 0;
  z-index: 9999;
  margin: 0;
  border: none;
  border-radius: 0;
  background: #000;
}
.demo-frame.demo-ios-fs .demo-iframe {
  height: 100vh;
  height: 100dvh;
  max-height: none;
  min-height: 0;
}
.demo-frame.demo-ios-fs .demo-actions { display: none; }
/* Кнопка выхода в emulated-fullscreen */
.demo-frame.demo-ios-fs .demo-fs-btn { top: max(.55rem, env(safe-area-inset-top)); right: max(.55rem, env(safe-area-inset-right)); }
body.demo-fs-active { overflow: hidden; }

@media (max-width: 900px) {
  .demo-iframe { height: 78vh; min-height: 520px; }
}
@media (max-width: 640px) {
  /* Iframe ломает .wrap-паддинг — берёт всю ширину viewport */
  .demo-frame {
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
    border-left: none;
    border-right: none;
    border-radius: 0;
  }
  .demo-iframe {
    /* 100dvh корректно учитывает динамическую address-bar в iOS Safari */
    height: calc(100dvh - 64px);
    max-height: 920px;
    min-height: 560px;
  }
  .demo-fs-btn { width: 44px; height: 44px; top: .5rem; right: .5rem; }
  .demo-fs-cta {
    display: inline-flex;
    flex: 1 1 100%;
    justify-content: center;
    font-size: 1rem;
    padding: .95rem 1.2rem;
  }
  .demo-actions { padding: .85rem; gap: .65rem; }
  .demo-actions .btn:not(.demo-fs-cta) {
    flex: 1 1 calc(50% - .65rem);
    font-size: .92rem;
    justify-content: center;
    text-align: center;
  }
}
@media (max-width: 380px) {
  .demo-actions .btn:not(.demo-fs-cta) { flex: 1 1 100%; }
}

/* ============================================ CASINO CARDS */
.casinos { display: grid; gap: 1rem; margin: 1.4rem 0; }

/* Casino showcase — featured placement directly under the hero */
.kasyna-showcase {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1.6rem 1.4rem 1.2rem;
  border-radius: var(--radius-lg, 24px);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(251,191,36,.08), transparent 55%),
    radial-gradient(100% 100% at 100% 0%, rgba(46,229,157,.06), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  border: 1px solid rgba(251,191,36,.18);
  position: relative;
}
.kasyna-showcase > h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin: 0 0 .6rem;
}
.kasyna-showcase > .section-lead {
  color: var(--text-soft);
  font-size: .98rem;
  margin: 0 0 1rem;
  max-width: 78ch;
}
.kasyna-showcase .casinos { margin: .8rem 0 0; }
@media (max-width: 640px) {
  .kasyna-showcase { padding: 1.1rem .9rem .9rem; margin-top: 1rem; }
  .kasyna-showcase > .section-lead { font-size: .92rem; }
}
.casino {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 1.2rem;
  background: var(--bg-card);
  background-image: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.casino:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}
.casino-rank {
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--ff-head);
  font-size: 1.6rem;
  color: var(--accent);
}
.casino-rank .stars { font-size: .72rem; color: var(--text-soft); margin-top: .25rem; letter-spacing: 1px; }
.casino-body h3 { margin: 0 0 .35rem; font-size: 1.25rem; color: #fff; }
.casino-bonus { font-weight: 700; color: var(--accent); margin-bottom: .35rem; font-size: .98rem; }
.casino-meta { display: flex; gap: .4rem; flex-wrap: wrap; font-size: .78rem; }
.casino-meta span {
  background: rgba(251,191,36,.08);
  border: 1px solid rgba(251,191,36,.2);
  color: var(--accent);
  padding: .15rem .55rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
}
.casino-action { display: flex; flex-direction: column; align-items: stretch; gap: .4rem; min-width: 180px; }
.casino-action small { color: var(--text-dim); font-size: .7rem; text-align: center; }
.casino-action .btn { justify-content: center; text-align: center; }

/* Brand logo block (replaces .casino-rank visually when used) */
.casino-logo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .55rem;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #2A3142 0%, #15192a 100%);
  border: 1px solid var(--border);
}
.casino-logo .brand-mark {
  font-family: var(--ff-head);
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  text-align: center;
  letter-spacing: .03em;
  line-height: 1.05;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.casino-logo .brand-mark sup {
  display: inline-block;
  font-size: .55em;
  vertical-align: super;
  margin-left: .1em;
}
.casino-rating {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .04em;
}
.casino-headline {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  margin-bottom: .35rem;
  flex-wrap: wrap;
}
.casino-headline h3 { margin: 0; font-size: 1.2rem; color: #fff; }

/* Brand color modifiers */
.casino--totalcasino .casino-logo {
  background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
  border-color: #FFD700;
  box-shadow: 0 0 0 1px rgba(255,215,0,.25);
}
.casino--totalcasino .casino-logo::before {
  content: "🇵🇱";
  position: absolute;
  top: .25rem;
  left: .35rem;
  font-size: 1rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.5));
}
.casino--totalcasino .casino-logo .brand-mark {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
/* Highlight the Polish-licensed card with a subtle "official" ribbon */
.casino--totalcasino { position: relative; border-color: rgba(255,215,0,.45); }
.casino--totalcasino::after {
  content: "Lic. PL";
  position: absolute;
  top: -10px;
  right: 14px;
  background: linear-gradient(135deg, #FFD700, #C9A400);
  color: #2a1900;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  padding: .25rem .55rem;
  border-radius: 99px;
  text-transform: uppercase;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(255,215,0,.3);
}

.casino--mostbet .casino-logo { background: linear-gradient(135deg, #1A89F1 0%, #0D5DC9 100%); border-color: rgba(255,179,0,.4); }
.casino--mostbet .casino-logo::before {
  content: "★";
  position: absolute;
  top: .35rem; left: .45rem;
  color: #FFB300;
  font-size: 1rem;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.casino--pinup .casino-logo { background: linear-gradient(135deg, #FF1744 0%, #B71C1C 100%); border-color: rgba(0,200,180,.45); }
.casino--pinup .casino-logo::after {
  content: "";
  position: absolute;
  bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 70%; height: 6px;
  background: #00C8B4;
  border-radius: 4px 4px 0 0;
}
.casino--1win .casino-logo { background: linear-gradient(135deg, #1B4FC8 0%, #0F328A 100%); border-color: rgba(46,229,157,.35); }
.casino--1win .casino-logo .brand-mark sup { color: #2EE59D; }
.casino--1xbet .casino-logo { background: linear-gradient(135deg, #1E73E8 0%, #003B71 100%); border-color: rgba(255,255,255,.18); }
.casino--1xbet .casino-logo .brand-mark sup { color: #FFB300; }
.casino--stake .casino-logo { background: linear-gradient(135deg, #1A1F2D 0%, #060810 100%); border-color: #2EE59D; }
.casino--stake .casino-logo .brand-mark { color: #2EE59D; text-shadow: 0 0 8px rgba(46,229,157,.4); }

/* Mobile-friendly responsive layout */
@media (max-width: 720px) {
  .casino { grid-template-columns: 80px 1fr; gap: .9rem; padding: 1rem 1.1rem; }
  .casino-action { grid-column: 1 / -1; min-width: 0; flex-direction: row; flex-wrap: wrap; justify-content: stretch; }
  .casino-action .btn { flex: 1 1 calc(50% - .4rem); font-size: .85rem; padding: .65rem .8rem; }
  .casino-action small { flex: 1 1 100%; }
  .casino-logo .brand-mark { font-size: .92rem; }
  .casino-headline h3 { font-size: 1.05rem; }
  .casino-bonus { font-size: .9rem; }
}
@media (max-width: 420px) {
  .casino-action .btn { flex: 1 1 100%; }
}

/* ============================================ STEPS */
.steps { display: grid; gap: 1rem; margin: 1.5rem 0; }
.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  transition: border-color .15s;
}
.step:hover { border-color: var(--accent); }
.step-num {
  font-family: var(--ff-head);
  font-size: 1.8rem;
  color: var(--accent);
  text-align: center;
  line-height: 1;
  padding-top: .2rem;
  filter: drop-shadow(0 0 10px var(--accent-glow));
}
.step h3 { margin: 0 0 .35rem; }

/* ============================================ FEATURE GRID */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1.4rem 0;
}
.feature {
  flex: 1 1 240px;
  max-width: 280px;
  background: var(--bg-card);
  background-image: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  transition: transform .15s, border-color .15s;
}
.feature:hover { transform: translateY(-3px); border-color: var(--accent); }
.feature-icon {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  font-size: 1.5rem;
  background: rgba(251,191,36,.12);
  border-radius: 12px;
  margin-bottom: .8rem;
}
.feature h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.feature p { font-size: .9rem; color: var(--text-soft); margin: 0; }

/* ============================================ PROS / CONS */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.4rem 0; }
.proscons-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.proscons-box h3 { margin-top: 0; }
.proscons-box ul { list-style: none; padding: 0; }
.proscons-box li { padding-left: 1.6rem; position: relative; }
.proscons-box.pros li::before { content: "✓"; color: var(--success); position: absolute; left: 0; font-weight: 800; }
.proscons-box.cons li::before { content: "✗"; color: var(--danger); position: absolute; left: 0; font-weight: 800; }

/* ============================================ FAQ */
.faq { display: grid; gap: .6rem; margin: 1.2rem 0; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .2rem 0;
  transition: border-color .15s;
}
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.3rem;
  font-weight: 700;
  font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center;
  color: #fff;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 800;
  transition: transform .15s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.3rem 1rem; color: var(--text-soft); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ============================================ RESPONSIBLE */
.responsible {
  display: flex; gap: 1rem;
  background: linear-gradient(135deg, rgba(239,68,68,.08), rgba(251,191,36,.04));
  border: 1px solid rgba(239,68,68,.3);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin: 2rem 0 1rem;
}
.responsible-icon {
  font-size: 2rem; line-height: 1;
  flex-shrink: 0;
}
.responsible h3 { margin-top: 0; color: var(--danger); }
.responsible p { margin: 0; font-size: .9rem; color: var(--text-soft); }
.age-badge {
  display: inline-block;
  background: #b91c1c;
  color: #fff;
  padding: .1rem .55rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: .8rem;
  margin-right: .35rem;
  letter-spacing: .5px;
}

/* ============================================ FOOTER */
.site-footer {
  margin-top: 4rem;
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 { font-family: var(--ff-head); color: var(--accent); margin: 0 0 .8rem; font-weight: 400; letter-spacing: 1.5px; font-size: .9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a { color: var(--text-soft); font-weight: 600; font-size: .92rem; }
.footer-col a:hover { color: var(--accent); }
.footer-col li { margin: .35rem 0; }
.footer-about p { font-size: .88rem; color: var(--text-soft); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
  font-size: .82rem;
  color: var(--text-dim);
  text-align: center;
}

/* ============================================ COOKIE */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  display: none;
  z-index: 100;
  box-shadow: var(--shadow);
}
.cookie-banner.show { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.cookie-banner p { margin: 0; flex: 1 1 280px; font-size: .88rem; color: var(--text-soft); }
.cookie-banner-actions { display: flex; gap: .5rem; }

/* ============================================ TOC / SIDEBAR */
details.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 1.5rem 0;
  transition: border-color .15s;
}
details.toc[open] { border-color: var(--accent); }
details.toc > summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.3rem;
  font-family: var(--ff-head);
  font-size: 1.05rem;
  letter-spacing: .5px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  user-select: none;
}
details.toc > summary::-webkit-details-marker { display: none; }
details.toc > summary::before {
  content: "📑";
  font-size: 1.1rem;
}
details.toc > summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.55rem;
  font-weight: 800;
  margin-left: auto;
  transition: transform .2s;
}
details.toc[open] > summary::after { transform: rotate(45deg); }
details.toc ol {
  padding: 0 1.4rem 1.1rem 2.4rem;
  margin: 0;
  columns: 2;
  column-gap: 1.4rem;
}
details.toc ol li { margin: .3rem 0; break-inside: avoid; }
details.toc a { color: var(--text-soft); font-weight: 600; }
details.toc a:hover { color: var(--accent); }
@media (max-width: 640px) {
  details.toc ol { columns: 1; padding-left: 2rem; }
}

/* Legacy non-details TOC (kept for safety) */
.toc:not(details) {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
}

/* ============================================ HIGHLIGHT BLOCK */
.callout {
  border-left: 4px solid var(--accent);
  background: rgba(251,191,36,.05);
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.callout strong { color: var(--accent); }

/* ============================================ COMPARISON */
.compare th { color: var(--accent); }
.compare td:not(:first-child) { font-weight: 600; }
.check-list { list-style: none; padding-left: 0; }
.check-list li { padding-left: 1.6rem; position: relative; }
.check-list li::before { content: "✓"; color: var(--success); position: absolute; left: 0; font-weight: 800; }

/* ============================================ KEYWORD CHIPS */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.chip {
  font-size: .8rem; padding: .25rem .7rem;
  background: rgba(251,191,36,.08);
  border: 1px solid rgba(251,191,36,.2);
  color: var(--accent); border-radius: var(--radius-pill);
}

/* ============================================ REVIEW STARS */
.rating { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; }
.rating .stars-bar { color: var(--accent); letter-spacing: 2px; }
.rating .num { color: var(--text); }

/* ============================================ COMPACT HERO */
.hero-compact { padding: 2rem 0 1rem; }
.hero-compact h1 { margin-bottom: .6rem; }

/* ============================================ GRID 2 */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.2rem 0; }
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.info-card h3 { margin-top: 0; color: var(--accent); }

/* ============================================ TESTIMONIAL CARDS */
.testimonial { padding: 1.2rem 1.4rem; }
.testimonial .t-head {
  display: flex; align-items: center; gap: .9rem;
  margin-bottom: .8rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--border);
}
.testimonial .t-head img {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 14px rgba(251,191,36,.18);
}
.testimonial .t-meta {
  display: flex; flex-direction: column;
  line-height: 1.3;
}
.testimonial .t-name {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
.testimonial .t-sub {
  font-size: .78rem;
  color: var(--text-dim);
  letter-spacing: .3px;
}
.testimonial .t-stars { color: var(--accent); letter-spacing: 2px; font-size: .9rem; margin-top: 1px; }
.testimonial > p { margin: 0; font-style: italic; color: var(--text-soft); }
.testimonial > p::before { content: "« "; color: var(--accent); }
.testimonial > p::after { content: " »"; color: var(--accent); }

/* Author byline at top of articles */
.author-byline {
  display: flex; align-items: center; gap: .8rem;
  margin: 1.2rem 0 1.5rem;
  padding: .7rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  width: fit-content;
}
.author-byline img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}
.author-byline .a-text { display: flex; flex-direction: column; line-height: 1.3; }
.author-byline .a-name { color: #fff; font-weight: 700; font-size: .92rem; }
.author-byline .a-meta { color: var(--text-dim); font-size: .76rem; }

/* ============================================ RESPONSIVE */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 380px; margin: 0 auto; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
         flex-direction: column; gap: 0; background: var(--bg-elev);
         border-bottom: 1px solid var(--border); padding: .75rem; }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: .8rem 1rem; border-radius: var(--radius-sm); }
  .header-inner { position: relative; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .casino { grid-template-columns: 70px 1fr; }
  .casino-action { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; min-width: 0; }
  .step { grid-template-columns: 50px 1fr; gap: .9rem; }
  .proscons { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
}

/* ============================================ PRINT */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .cookie-banner, .hero-cta { display: none; }
  a { color: #000; text-decoration: underline; }
}

/* ============================================ CONTENT IMAGES */
.content-figure {
  margin: 1.6rem auto 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(60% 80% at 50% 30%, rgba(251,191,36,.06), transparent 70%),
    var(--bg-card);
  position: relative;
  max-width: 760px;
}
.content-figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 440px;
  display: block;
  margin: 0 auto;
  padding: 1.4rem 1rem;
  object-fit: contain;
}
.content-figure figcaption {
  padding: .7rem 1.1rem;
  font-size: .82rem;
  color: var(--text-dim);
  background: var(--bg-card-2);
  border-top: 1px solid var(--border);
  text-align: center;
}
.content-figure.tight img { max-height: 360px; padding: 1rem; }
.content-figure.square { max-width: 520px; }
.content-figure.square img { max-height: 460px; }
.content-figure.wide { max-width: 100%; }
.content-figure.wide img { max-height: 380px; }

/* Floating image-card alongside text */
.img-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: var(--shadow);
}
.img-card img { width: 100%; height: auto; display: block; }

/* ============================================ DISTINCTIVE HERO (frontend-design) */
.hero { isolation: isolate; position: relative; }
.hero::before {
  content: "";
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(45% 55% at 18% 25%, rgba(251,191,36,.18), transparent 65%),
    radial-gradient(40% 45% at 88% 75%, rgba(249,115,22,.12), transparent 65%);
  z-index: -2;
  pointer-events: none;
}

/* Hero h1 staggered reveal */
.hero h1, .hero-lead, .hero-cta, .hero-stats {
  opacity: 0; transform: translateY(8px);
  animation: heroIn .7s ease-out forwards;
}
.hero h1 { animation-delay: .05s; }
.hero-lead { animation-delay: .2s; }
.hero-cta { animation-delay: .35s; }
.hero-stats { animation-delay: .5s; }
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Casino card "winning glow" on top 3 */
.casino:nth-child(1) { border-color: rgba(251,191,36,.45); }
.casino:nth-child(1)::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent) 0%, transparent 40%, transparent 60%, var(--hot) 100%);
  z-index: -1;
  opacity: .25;
  pointer-events: none;
}
.casino { position: relative; }

/* Scrolled header */
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.4); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition: none !important; }
  .hero::after { animation: none; }
}
