/* =========================================
   style.css — Chicken Road Kazino
   ========================================= */

:root {
  --color-bg:         #1A1520;
  --color-surface:    #2A2035;
  --color-primary:    #F5C518;
  --color-accent:     #FF6B1A;
  --color-text:       #F0EAD6;
  --color-text-muted: #9E93BB;
  --color-btn-text:   #1A1520;
  --font-display:     'Russo One', cursive;
  --font-body:        'Nunito', sans-serif;
  --transition-btn:   background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body), sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  padding-bottom: 60px;
  position: relative;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3 { font-family: var(--font-display), cursive; line-height: 1.2; }
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); margin-bottom: 0.75rem; color: var(--color-primary); }
h2 { font-size: clamp(1.25rem, 3.5vw, 2rem); margin-bottom: 0.75rem; color: var(--color-primary); }
h3 { font-size: clamp(1rem, 2.5vw, 1.35rem); margin-bottom: 0.5rem; color: var(--color-primary); }
p { margin-bottom: 1rem; }
p:last-of-type { margin-bottom: 0; }
strong { color: var(--color-primary); }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }

/* ===================== LAYOUT ===================== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-primary);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}
.header-logo img {
  height: 36px;
  width: auto;
  max-width: 140px;
  border-radius: 4px;
  object-fit: contain;
  display: block;
}
.header-logo span {
  font-family: var(--font-display), cursive;
  color: var(--color-primary);
  font-size: 1.05rem;
  white-space: nowrap;
}
.header-inner > nav {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  justify-content: center;
  margin-bottom: 0;
}
.header-nav li {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}
.header-nav a {
  color: var(--color-text);
  font-size: 0.88rem;
  transition: color 0.2s ease;
  text-decoration: none;
}
.header-nav a:hover { color: var(--color-primary); text-decoration: none; }
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.lang-switch { display: flex; gap: 4px; }
.lang-switch a {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--color-text-muted);
  color: var(--color-text-muted);
  transition: color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}
.lang-switch a:hover,
.lang-switch a.active {
  color: var(--color-primary);
  border-color: var(--color-primary);
  text-decoration: none;
}
@media (min-width: 768px) {
  .header-inner > nav { display: flex; }
}
@media (max-width: 480px) {
  .header-logo img { height: 28px; }
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-btn-text);
  font-family: var(--font-display), cursive;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  min-height: 48px;
  min-width: 160px;
  box-shadow: 0 0 24px rgba(245, 197, 24, 0.67);
  transition: var(--transition-btn);
}
.btn:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(245, 197, 24, 0.9);
  text-decoration: none;
  color: var(--color-btn-text);
  will-change: transform;
}
.header-cta { padding: 8px 16px; font-size: 0.85rem; min-height: 38px; min-width: auto; }

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* ===================== HERO ===================== */
#hero {
  padding: 52px 0 44px;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(255, 107, 26, 0.1) 0%, transparent 65%);
  pointer-events: none;
}
.hero-split {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 36px;
}
.hero-content { flex: 1; min-width: 0; }
.hero-visual { flex-shrink: 0; }
.hero-mascot {
  width: 260px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 28px rgba(255, 107, 26, 0.45));
  animation: heroFloat 3.5s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
.hero-title { font-size: clamp(1.5rem, 4.5vw, 2.45rem); margin-bottom: 12px; line-height: 1.2; }
.hero-sub   { color: var(--color-text-muted); font-size: 0.97rem; margin-bottom: 24px !important; line-height: 1.7; }
.hero-cta-wrap { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.btn-demo-link {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid rgba(245, 197, 24, 0.4);
  color: var(--color-primary);
  font-family: var(--font-display), cursive;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 8px;
  min-height: 48px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
  line-height: 1;
}
.btn-demo-link:hover {
  background: rgba(245, 197, 24, 0.1);
  border-color: var(--color-primary);
  text-decoration: none;
  color: var(--color-primary);
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-badge {
  background: rgba(245, 197, 24, 0.07);
  border: 1px solid rgba(245, 197, 24, 0.18);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.77rem;
  color: var(--color-text-muted);
}
@media (max-width: 640px) {
  .hero-split { flex-direction: column; gap: 20px; text-align: center; }
  .hero-visual { order: -1; }
  .hero-mascot { width: 170px; }
  .hero-cta-wrap { justify-content: center; }
  .hero-badges  { justify-content: center; }
}

/* ===================== SECTIONS ===================== */
.section {
  padding: 48px 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.section.is-visible { opacity: 1; transform: translateY(0); }
.section:nth-child(odd) { background: var(--color-bg); }
.section:nth-child(even) { background: var(--color-surface); }

/* ===================== TABLES ===================== */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  margin: 24px 0;
  border-radius: 8px;
}
table {
  min-width: 600px;
  border-collapse: collapse;
  width: 100%;
  background: var(--color-surface);
}
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(245, 197, 24, 0.15);
  font-size: 0.95rem;
  color: var(--color-text);
}
thead th {
  background: var(--color-primary);
  color: var(--color-btn-text);
  font-family: var(--font-display), cursive;
  font-weight: 400;
}
th[scope="row"] {
  background: rgba(245, 197, 24, 0.08);
  color: var(--color-text-muted);
  font-weight: 700;
  white-space: nowrap;
}
tr:last-child td,
tr:last-child th { border-bottom: none; }
tr:hover td { background: rgba(245, 197, 24, 0.04); }

/* ===================== REVIEW CARDS ===================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 24px 0 28px;
}
.review-card {
  background: var(--color-surface);
  border-radius: 14px;
  border: 1px solid rgba(245, 197, 24, 0.18);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 22px 22px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.review-card::before {
  content: '\201C';
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 2.8rem;
  line-height: 1;
  color: rgba(245, 197, 24, 0.12);
  font-family: Georgia, serif;
  pointer-events: none;
}
.review-stars { color: var(--color-accent); font-size: 0.95rem; letter-spacing: 2px; }
.review-body { color: var(--color-text-muted); font-size: 0.9rem; line-height: 1.65; flex: 1; margin: 0; }
.review-footer { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.review-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(245, 197, 24, 0.13);
  border: 1.5px solid rgba(245, 197, 24, 0.28);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.88rem;
  color: var(--color-primary); flex-shrink: 0;
}
.review-author { font-size: 0.84rem; font-weight: 600; color: var(--color-text); }
.review-card p { margin-bottom: 0; }

/* ===================== FAQ ===================== */
.faq-list { list-style: none; padding: 0; }
.faq-item { border-bottom: 1px solid rgba(245, 197, 24, 0.2); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 16px 0;
  color: var(--color-text);
  font-family: var(--font-body), sans-serif;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color 0.2s ease;
}
.faq-question:hover { color: var(--color-primary); }
.faq-icon {
  flex-shrink: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-primary);
  transition: transform 0.3s ease;
  display: inline-block;
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer p {
  padding-bottom: 16px;
  color: var(--color-text-muted);
  margin-bottom: 0;
}
.faq-item.is-open .faq-answer { max-height: 500px; }

/* ===================== POPUP ===================== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.popup-overlay.is-open { opacity: 1; pointer-events: all; }
.popup-inner {
  position: relative;
  max-width: 480px;
  width: calc(100% - 32px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(245, 197, 24, 0.4);
}
.popup-inner img { display: block; width: 100%; height: auto; }
.popup-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 24px;
  border-radius: 0;
  min-height: auto;
}
.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--color-text);
  z-index: 1;
  transition: background 0.2s ease;
}
.popup-close:hover { background: rgba(0, 0, 0, 0.85); }

@media (max-width: 480px) {
  .popup-inner { max-width: 100%; width: calc(100% - 24px); }
}

/* ===================== STICKY BOTTOM BAR ===================== */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 98;
  height: 60px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.5);
}
.sticky-bar.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.sticky-bar-img {
  height: 44px;
  width: auto;
  max-width: 120px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}
.sticky-bar-info {
  flex: 1;
  min-width: 0;
}
.sticky-bar-name {
  display: block;
  font-family: var(--font-display), cursive;
  font-size: 0.88rem;
  color: var(--color-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-bar-slogan {
  display: block;
  font-family: var(--font-display), cursive;
  font-size: 0.88rem;
  color: var(--color-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.sticky-bar .btn {
  padding: 8px 20px;
  min-width: auto;
  font-size: 0.85rem;
  min-height: 40px;
}

@media (max-width: 480px) {
  .sticky-bar { height: 56px; }
  .sticky-bar-slogan { max-width: 120px; font-size: 0.65rem; }
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid rgba(245, 197, 24, 0.2);
  padding: 32px 0;
  text-align: center;
}
.footer-lang { margin-bottom: 20px; }
.footer-lang a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0 8px;
  transition: color 0.2s ease;
}
.footer-lang a:hover,
.footer-lang a.active { color: var(--color-primary); text-decoration: none; }
.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto 20px;
  line-height: 1.65;
}
.footer-copy { font-size: 0.78rem; color: var(--color-text-muted); }

/* ===================== SECTION IMAGES ===================== */
.section-img {
  width: 100%;
  max-width: 520px;
  margin: 0 auto 28px;
  display: block;
  border-radius: 12px;
  box-shadow: 0 0 32px rgba(245, 197, 24, 0.2);
}

@media (min-width: 768px) {
  .section-img {
    float: right;
    width: 42%;
    max-width: 340px;
    margin: 4px 0 20px 32px;
  }
  .section .container::after {
    content: '';
    display: table;
    clear: both;
  }
}

/* ===================== POPUP TRIGGER MARKER ===================== */
.popup-trigger-marker {
  position: absolute;
  top: 50%;
  height: 1px;
  width: 1px;
  pointer-events: none;
  visibility: hidden;
}

/* ===================== BREAKPOINTS ===================== */
@media (min-width: 768px) {
  #hero { padding: 80px 0 64px; }
  .section { padding: 64px 0; }
  .sticky-bar { padding: 0 24px; }
}
@media (min-width: 1200px) {
  .container { padding: 0 24px; }
  .header-inner { padding: 10px 24px; }
}

/* ===================== DEMO WIDGET ===================== */
.demo-widget {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin: 28px 0;
  border: 1px solid rgba(245, 197, 24, 0.22);
  background: var(--color-surface);
}
.demo-placeholder {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.demo-placeholder-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) brightness(0.22) saturate(0.7);
  transform: scale(1.08);
  pointer-events: none;
}
.demo-placeholder-overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 44px 24px;
  width: 100%;
}
.demo-placeholder-title {
  font-family: var(--font-display), cursive;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1.2;
}
.demo-placeholder-sub {
  color: var(--color-text-muted);
  font-size: 0.93rem;
  margin-bottom: 28px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.demo-btn-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-try-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: var(--color-btn-text);
  font-family: var(--font-display), cursive;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  min-height: 52px;
  border-radius: 8px;
  border: 2px solid var(--color-accent);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-btn);
  line-height: 1.2;
}
.btn-try-demo:hover {
  background: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 197, 24, 0.45);
  text-decoration: none;
  color: var(--color-btn-text);
}
.btn-win-real {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display), cursive;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  min-height: 52px;
  border-radius: 8px;
  border: 2px solid rgba(255, 107, 26, 0.45);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-btn);
  line-height: 1.2;
}
.btn-win-real:hover {
  background: #e85c10;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 26, 0.45);
  text-decoration: none;
  color: #fff;
}
.demo-frame-wrap {
  position: relative;
  width: 100%;
  height: 540px;
  display: none;
}
.demo-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #000;
}
.demo-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.65);
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-family: var(--font-body), sans-serif;
  cursor: pointer;
  transition: background 0.2s ease;
}
.demo-close-btn:hover { background: rgba(0, 0, 0, 0.88); }
.demo-win-float {
  display: none;
  text-align: center;
  margin-top: 12px;
}
.demo-win-float .btn-win-real {
  width: 100%;
  max-width: 360px;
  justify-content: center;
  font-size: 1.1rem;
  padding: 16px 32px;
  min-height: 56px;
}
@media (max-width: 600px) {
  .demo-placeholder { min-height: 280px; }
  .demo-placeholder-overlay { padding: 32px 16px; }
  .demo-btn-group { flex-direction: column; align-items: center; }
  .btn-try-demo,
  .btn-win-real { width: 100%; max-width: 300px; justify-content: center; }
  .demo-frame-wrap { height: 380px; }
  .demo-win-float .btn-win-real { max-width: 100%; }
}
@media (max-width: 380px) {
  .demo-frame-wrap { height: 320px; }
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .section {
    opacity: 1 !important;
    transform: none !important;
  }
  .sticky-bar {
    opacity: 1;
    transform: none;
  }
  .popup-overlay { transition: none; }
  .faq-answer { transition: none; }
}
