/* ==========================================================================
   Panda Casino — общие стили сайта
   ========================================================================== */

:root {
  --bg-0: #0a0c10;
  --bg-1: #12151b;
  --bg-2: #181c24;
  --bg-card: #1b202a;
  --bg-card-hover: #212736;
  --line: #2a3140;
  --text-0: #f3f5f8;
  --text-1: #c3cad6;
  --text-2: #8a93a3;
  --gold: #f7c948;
  --gold-2: #ffe08a;
  --bamboo: #4fd17a;
  --bamboo-2: #2fa85a;
  --red: #ff5470;
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --container: 1180px;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 15% -10%, #1c2436 0%, transparent 60%),
    radial-gradient(1000px 600px at 100% 0%, #17231d 0%, transparent 55%),
    var(--bg-0);
  color: var(--text-1);
  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;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  color: var(--text-0);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(28px, 4.2vw, 46px);
}

h2 {
  font-size: clamp(22px, 3vw, 32px);
  margin-top: 46px;
}

h3 {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--gold-2);
}

p {
  margin: 0 0 16px;
}

.lead {
  font-size: 18px;
  color: var(--text-1);
}

.section {
  padding: 56px 0;
}

.section--tight {
  padding: 30px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(247, 201, 72, 0.12);
  color: var(--gold);
  border: 1px solid rgba(247, 201, 72, 0.3);
}

.badge--green {
  background: rgba(79, 209, 122, 0.12);
  color: var(--bamboo);
  border-color: rgba(79, 209, 122, 0.3);
}

.badge--red {
  background: rgba(255, 84, 112, 0.12);
  color: var(--red);
  border-color: rgba(255, 84, 112, 0.3);
}

/* ---------- Top notice bar ---------- */
.top-bar {
  background: linear-gradient(90deg, #171b23, #1d2330);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}

.top-bar strong {
  color: var(--gold);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10, 12, 16, 0.78);
  border-bottom: 1px solid var(--line);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text-0);
  white-space: nowrap;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 2px solid var(--gold);
}

.logo span.accent {
  color: var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
  justify-content: center;
}

.nav a {
  font-weight: 600;
  color: var(--text-1);
  font-size: 15px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--gold-2);
  border-color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-0);
  font-size: 20px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #23180a;
  box-shadow: 0 10px 24px rgba(247, 201, 72, 0.25);
}

.btn--ghost {
  background: transparent;
  color: var(--text-0);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-2);
}

.btn--green {
  background: linear-gradient(135deg, var(--bamboo), var(--bamboo-2));
  color: #05210f;
  box-shadow: 0 10px 24px rgba(79, 209, 122, 0.25);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 13px;
}

.btn--block {
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0 40px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 30px;
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-stats {
  display: flex;
  gap: 26px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-stats div {
  min-width: 110px;
}

.hero-stats strong {
  display: block;
  font-size: 24px;
  color: var(--gold-2);
  font-weight: 800;
}

.hero-stats span {
  font-size: 13px;
  color: var(--text-2);
}

.hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-media img {
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
  animation: float 5s ease-in-out infinite;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(circle, rgba(247, 201, 72, 0.18), transparent 65%);
  z-index: -1;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Cards / grid ---------- */
.grid {
  display: grid;
  gap: 20px;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(247, 201, 72, 0.35);
  background: linear-gradient(180deg, var(--bg-card-hover), var(--bg-2));
}

.card .icon {
  font-size: 30px;
  margin-bottom: 12px;
  display: inline-block;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--text-2);
  margin-bottom: 0;
  font-size: 15px;
}

/* Game tile */
.game-tile {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-card);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.game-tile:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.game-tile .thumb {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  background: linear-gradient(135deg, #202636, #12151b);
  position: relative;
}

.game-tile .thumb .tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  text-transform: uppercase;
}

.game-tile .info {
  padding: 12px 14px 16px;
}

.game-tile .info strong {
  color: var(--text-0);
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.game-tile .info span {
  font-size: 12px;
  color: var(--text-2);
}

.game-tile .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 16, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.game-tile:hover .play {
  opacity: 1;
}

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

.steps li {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 20px 20px 60px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #23180a;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ---------- Table ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  min-width: 520px;
}

th, td {
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--gold-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-2);
}

tr:last-child td {
  border-bottom: none;
}

/* ---------- Winners feed (in-page widget) ---------- */
.winners-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.winners-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.winners-panel__head h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255, 84, 112, 0.6);
  animation: pulse 1.6s infinite;
  display: inline-block;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 84, 112, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 84, 112, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 84, 112, 0); }
}

#winners-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#winners-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: 14px;
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

#winners-list .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--bamboo));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

#winners-list .who {
  flex: 1;
  min-width: 0;
}

#winners-list .who strong {
  color: var(--text-0);
  display: block;
  font-size: 13.5px;
}

#winners-list .who span {
  color: var(--text-2);
  font-size: 12px;
}

#winners-list .amount {
  color: var(--bamboo);
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
}

.online-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.online-counter strong {
  color: var(--gold-2);
}

/* ---------- Toast winners popup ---------- */
#winners-toast-root {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
}

.winner-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(24, 28, 36, 0.96);
  border: 1px solid var(--line);
  border-left: 3px solid var(--bamboo);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.45s ease, toastOut 0.5s ease 5.5s forwards;
}

.winner-toast .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--gold);
}

.winner-toast .txt {
  font-size: 13px;
  color: var(--text-1);
  line-height: 1.4;
}

.winner-toast .txt strong {
  color: var(--text-0);
}

.winner-toast .txt .amt {
  color: var(--bamboo);
  font-weight: 800;
}

.winner-toast .close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  font-size: 16px;
  padding: 2px 4px;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); height: auto; }
  to { opacity: 0; transform: translateX(-24px); }
}

/* ---------- FAQ accordion ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  color: var(--text-0);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-body {
  padding: 0 22px 20px;
  color: var(--text-1);
  font-size: 15px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, #1c2436, #202f24);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  margin: 0 0 6px;
}

.cta-banner p {
  margin: 0;
  color: var(--text-2);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: 13px;
  color: var(--text-2);
  padding: 18px 0 0;
}

.breadcrumbs a {
  color: var(--text-2);
}

.breadcrumbs a:hover {
  color: var(--gold-2);
}

/* ---------- Disclaimer ---------- */
.disclaimer {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  font-size: 12.5px;
  color: var(--text-2);
}

.disclaimer .container {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.disclaimer .age {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--red);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 46px 0 26px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 26px;
  margin-bottom: 30px;
}

.footer-grid h4 {
  color: var(--text-0);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-grid ul a {
  color: var(--text-2);
  font-size: 14px;
}

.footer-grid ul a:hover {
  color: var(--gold-2);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-2);
}

.social-row {
  display: flex;
  gap: 10px;
}

.social-row a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-row a:hover {
  border-color: var(--gold);
  color: var(--gold-2);
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.section-title {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}
.section-title p { color: var(--text-2); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; width: 100%; }
  .hero-media img { max-width: 280px; width: 60%; min-width: 190px; margin: 0 auto; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-1);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px 24px;
    gap: 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-actions .btn--ghost { display: none; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .top-bar .container { font-size: 12px; }
}
