/* ==========================================================================
   PANDA CASINO — общий стиль сайта
   ========================================================================== */

:root {
  --bg-0: #0b0d14;
  --bg-1: #12151f;
  --bg-2: #181c29;
  --bg-card: #1b2030;
  --bg-card-hover: #222840;
  --border: #2a3049;
  --white: #f5f6fa;
  --muted: #a4abc4;
  --muted-2: #767d99;
  --gold: #ffc94d;
  --gold-2: #ffb020;
  --red: #ff4d5e;
  --green: #3ddc97;
  --bamboo: #6fcf6f;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 0 1px rgba(255, 201, 77, 0.15), 0 10px 40px rgba(255, 176, 32, 0.12);
  --container: 1180px;
  --font-head: "Manrope", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(ellipse at top, #171b2a 0%, var(--bg-0) 55%) fixed;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { padding-left: 1.2em; }
li { margin-bottom: 0.4em; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 800;
}
h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); margin-top: 2.2em; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); margin-top: 1.6em; color: var(--gold); }
p { color: var(--muted); margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 201, 77, 0.12);
  border: 1px solid rgba(255, 201, 77, 0.35);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #241a02;
  box-shadow: 0 8px 24px rgba(255, 176, 32, 0.35);
}
.btn-primary:hover { filter: brightness(1.07); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--white);
}
.btn-block { width: 100%; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-sm { padding: 9px 18px; font-size: 0.82rem; }

/* ---------- Top strip ---------- */
.top-strip {
  background: #05060a;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  font-size: 0.85rem;
}
.ticker-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
}
.ticker-label {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px 0 20px;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-right: 1px solid var(--border);
}
.ticker-viewport { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track {
  display: flex;
  gap: 34px;
  white-space: nowrap;
  width: max-content;
  animation: ticker-scroll 32s linear infinite;
}
.ticker-track span { color: var(--muted); }
.ticker-track b { color: var(--white); }
.ticker-track em { color: var(--green); font-style: normal; font-weight: 700; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 20, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  flex: none;
}
.logo img { width: 42px; height: 42px; object-fit: contain; }
.logo .logo-text b { color: var(--gold); }
.logo .logo-sub { display: block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.16em; color: var(--muted-2); text-transform: uppercase; }

.main-nav { display: flex; gap: 4px; margin: 0 auto; }
.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,0.06); color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.burger { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { content: ""; display: block; width: 20px; height: 2px; background: var(--white); position: relative; transition: 0.2s; }
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 40px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 420px;
  background: radial-gradient(ellipse at 30% 0%, rgba(255, 176, 32, 0.16), transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(111, 207, 111, 0.10), transparent 55%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 30px; align-items: center; position: relative; }
.hero-copy .badge { margin-bottom: 16px; }
.hero-copy h1 { margin-bottom: 14px; }
.hero-copy .lead { font-size: 1.08rem; color: var(--muted); max-width: 54ch; }
.hero-cta { display: flex; gap: 14px; margin: 26px 0 22px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-family: var(--font-head); font-size: 1.4rem; color: var(--gold); }
.hero-stats .stat span { font-size: 0.82rem; color: var(--muted-2); }
.hero-media { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-media img { width: min(420px, 100%); filter: drop-shadow(0 30px 40px rgba(0,0,0,0.55)); animation: float-y 5s ease-in-out infinite; }
.hero-media .coin { position: absolute; font-size: 2rem; animation: spin-coin 6s linear infinite; }
.hero-media .coin.c1 { top: 6%; left: 4%; animation-delay: 0.4s; }
.hero-media .coin.c2 { bottom: 10%; right: 2%; animation-delay: 1.2s; }
.hero-media .coin.c3 { top: 40%; right: -4%; animation-delay: 2s; }
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin-coin { 0% { transform: rotateY(0deg); } 100% { transform: rotateY(360deg); } }

.live-count {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(61, 220, 151, 0.1);
  border: 1px solid rgba(61, 220, 151, 0.3);
  color: var(--green);
  padding: 6px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 700;
  margin-bottom: 18px;
}
.live-count .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(61,220,151,0.6); animation: pulse-dot 1.6s infinite; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(61,220,151,0.55); } 70% { box-shadow: 0 0 0 8px rgba(61,220,151,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); } }

/* ---------- Sections ---------- */
.section { padding: 54px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { margin: 0; max-width: 60ch; }
.section-tight h2 { margin-top: 0; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 0; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,201,77,0.35); background: linear-gradient(180deg, var(--bg-card-hover) 0%, var(--bg-1) 100%); }
.card .icon-badge { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; background: rgba(255,201,77,0.12); margin-bottom: 14px; }
.card h3 { margin-top: 0; color: var(--white); font-size: 1.1rem; }
.card p { font-size: 0.92rem; margin-bottom: 0; }

/* Game card */
.game-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
}
.game-thumb {
  height: 130px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
  position: relative;
}
.game-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.25)); }
.game-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-body h3 { margin: 0; font-size: 1rem; color: var(--white); }
.game-meta { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted-2); }
.game-tag { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.55); color: var(--gold); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 4px 9px; border-radius: 999px; z-index: 2; }
.game-rtp { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.55); color: var(--green); font-size: 0.68rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; z-index: 2; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-2);
  font-size: 0.85rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: 0.15s;
}
.chip.active, .chip:hover { border-color: var(--gold); color: var(--gold); background: rgba(255,201,77,0.08); }

/* ---------- Winners feed ---------- */
.winners-panel {
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}
.winners-panel .section-head { margin-bottom: 18px; }
#winners-feed { display: flex; flex-direction: column; gap: 10px; }
.winner-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  animation: winner-in 0.5s ease;
}
@keyframes winner-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.winner-row .avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; background: rgba(255,201,77,0.14); flex: none; }
.winner-row .info { flex: 1; min-width: 0; }
.winner-row .info b { color: var(--white); }
.winner-row .info span { display: block; font-size: 0.8rem; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.winner-row .amount { font-family: var(--font-head); font-weight: 800; color: var(--green); flex: none; }
.winner-row .time { font-size: 0.72rem; color: var(--muted-2); flex: none; width: 58px; text-align: right; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 54px; margin-bottom: 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #241a02;
  font-family: var(--font-head); font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.step h3 { margin: 0 0 4px; color: var(--white); }
.step p { margin: 0; }

/* ---------- Bonus cards ---------- */
.bonus-card { position: relative; overflow: hidden; }
.bonus-card .ribbon { position: absolute; top: 14px; right: -34px; transform: rotate(35deg); background: var(--red); color: #fff; font-size: 0.7rem; font-weight: 800; padding: 4px 40px; text-transform: uppercase; }
.bonus-card .pct { font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; color: var(--gold); margin: 10px 0 4px; }
.bonus-terms { list-style: none; padding: 0; margin: 14px 0 0; font-size: 0.85rem; }
.bonus-terms li { display: flex; gap: 8px; margin-bottom: 8px; color: var(--muted); }
.bonus-terms li::before { content: "✓"; color: var(--green); font-weight: 800; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { background: var(--bg-2); color: var(--gold); font-family: var(--font-head); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; }
tr:last-child td { border-bottom: none; }
td { color: var(--muted); }

/* ---------- FAQ accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-card); overflow: hidden; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px; cursor: pointer; font-family: var(--font-head); font-weight: 700; color: var(--white);
  background: none; border: none; width: 100%; text-align: left; font-size: 1rem;
}
.faq-q .plus { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); display: flex; align-items: center; justify-content: center; transition: transform 0.25s; font-size: 1.1rem; }
.faq-item.open .faq-q .plus { transform: rotate(135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a-inner { padding: 0 22px 20px; color: var(--muted); font-size: 0.94rem; }
.faq-a-inner ul { margin: 10px 0 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, #201603 0%, #1a1206 60%, #0b0d14 100%);
  border: 1px solid rgba(255,201,77,0.25);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-banner h2 { margin: 0 0 6px; }
.cta-banner p { margin: 0; }

/* ---------- Article / SEO text ---------- */
.article { max-width: 840px; }
.article h2:first-child { margin-top: 0; }
.article ul, .article ol { color: var(--muted); }
.article strong { color: var(--white); }
.toc { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px 24px; margin-bottom: 30px; }
.toc p { margin: 0 0 8px; color: var(--gold); font-weight: 700; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.04em; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 30px; }
.toc a { color: var(--muted); font-size: 0.92rem; }
.toc a:hover { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: #05060a; border-top: 1px solid var(--border); padding: 50px 0 22px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 34px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-head); color: var(--white); font-size: 0.92rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a { color: var(--muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold); }
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.footer-badges span { border: 1px solid var(--border); border-radius: 8px; padding: 5px 10px; font-size: 0.72rem; color: var(--muted-2); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 0.78rem; color: var(--muted-2); }
.disclaimer { font-size: 0.76rem; color: var(--muted-2); line-height: 1.7; max-width: 980px; margin: 0 0 20px; }
.age-flag { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid var(--muted-2); font-weight: 800; font-size: 0.8rem; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
.muted { color: var(--muted-2); }
.gold { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 320px; margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toc ol { columns: 1; }
}
@media (max-width: 760px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .header-actions .btn-outline { display: none; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; }
  .cta-banner { flex-direction: column; text-align: center; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-header.nav-open .main-nav {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-1); padding: 12px 20px 20px; border-bottom: 1px solid var(--border);
  }
}
@media (max-width: 520px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}
