:root {
  --emerald: #a855f7;
  --emerald-dark: #7e22ce;
  --emerald-light: #c084fc;
  --gold: #eab308;
  --gold-light: #fbbf24;
  --ink: #0c0618;
  --panel: rgba(12, 6, 24, 0.88);
  --text: #ecfdf5;
  --muted: #c4b5fd;
  --border: rgba(167, 139, 250, 0.45);
  --shadow: 0 0 24px rgba(245, 158, 11, 0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--ink);
  color: var(--text);
  overflow-x: hidden;
}

a { color: var(--gold-light); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ===== RAIN + SHARK BACKGROUND ===== */
.blue-shark-effect {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12, 6, 24, 0.35), rgba(12, 6, 24, 0.75)),
    radial-gradient(circle at 20% 10%, rgba(124, 58, 237, 0.35), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.12), transparent 35%),
    #0c0618;
  overflow: hidden;
}

.rain-line {
  position: absolute;
  top: -20%;
  width: 1px;
  height: 120%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.18), transparent);
  animation: rainFall linear infinite;
}

@keyframes rainFall {
  from { transform: translateY(-10%); }
  to { transform: translateY(10%); }
}

.shark-fly {
  position: absolute;
  font-size: 28px;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
  animation: sharkFly linear infinite;
  opacity: 0.85;
}

@keyframes sharkFly {
  0% { transform: translateY(110vh) rotate(-8deg); opacity: 0; }
  10% { opacity: 0.9; }
  90% { opacity: 0.9; }
  100% { transform: translateY(-20vh) rotate(8deg); opacity: 0; }
}

/* ===== WRAP ===== */
#wrap {
  position: relative;
  z-index: 1;
  max-width: 1425px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* ===== TOP BAR ===== */
.top-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 16px 0 20px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(12, 6, 24, 0.82);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 13px;
}

.top-stats .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  white-space: nowrap;
}

.top-stats .btn-top-login {
  margin-left: auto;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--emerald-light), var(--emerald-dark));
  border: 1px solid var(--gold);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

/* ===== HEADER NAV ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.site-logo img {
  width: min(220px, 55vw);
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

/* ===== HERO GRID ===== */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr);
  gap: 20px;
  margin-bottom: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.banner-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.banner-main {
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 320px;
}

.banner-main a {
  display: block;
  width: 100%;
  height: 100%;
}

.banner-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.banner-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
}

.banner-thumbs img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  background: #0c0618;
  border-radius: 8px;
  border: 1px solid var(--border);
  opacity: 0.75;
  cursor: pointer;
  flex: 0 0 auto;
}

@media (min-width: 901px) {
  .banner-main {
    min-height: 420px;
  }
}

@media (min-width: 1200px) {
  .banner-main {
    min-height: 520px;
  }
}

.banner-thumbs img.active { opacity: 1; border-color: var(--gold); }

/* ===== INFO CARD (สล็อตเว็บตรง-card) ===== */
.สล็อตเว็บตรง-card,
.slot-card {
  background: linear-gradient(145deg, rgba(12, 6, 24, 0.95), rgba(91, 33, 182, 0.92));
  border: 2px solid var(--gold);
  border-radius: 22px;
  padding: 22px 20px;
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.35), inset 0 0 18px rgba(255,255,255,0.04);
}

.slot-card-head h2 {
  margin: 0 0 16px;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.35;
  color: #fff;
  text-align: center;
}

.info-container {
  background: linear-gradient(145deg, var(--emerald-light), var(--emerald-dark));
  border: 1px solid var(--emerald-light);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.45);
}

.info-head {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.info-head h3 {
  margin: 0;
  font-size: 16px;
  text-align: center;
  color: #fff;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.info-row:last-child { border-bottom: none; }

.info-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.info-text { font-weight: 600; }

.info-number {
  background: linear-gradient(180deg, #fff3c4, #ffe082);
  color: #111;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #ffd54f;
}

.bonus-wrap {
  background: rgba(12, 6, 24, 0.55);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}

.bonus-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.bonus-head h3 { margin: 0; font-size: 15px; color: var(--gold-light); }

.bonus-item {
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border-left: 3px solid var(--gold);
  font-size: 14px;
}

.cta-buttons-gold {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-gold {
  display: inline-block;
  min-width: 140px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--gold);
}

.btn-login-gold {
  background: transparent;
  color: #fff;
}

.btn-register-gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #111;
}

/* ===== RTP SLOT BAR ===== */
.rtp-section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}

.section-title {
  margin: 0 0 14px;
  font-size: 20px;
  text-align: center;
  color: #fff;
}

.rtp-game-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.rtp-game-name { font-size: 14px; font-weight: 600; }

.rtp-bar-wrap {
  grid-column: 1 / -1;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.rtp-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, var(--gold-light));
  width: 0;
  transition: width 1.2s ease;
}

.rtp-pct {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-light);
}

/* ===== RTP CALENDAR ===== */
.rtp-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 22px;
}

@media (max-width: 760px) {
  .rtp-calendar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.rtp-day {
  background: rgba(12, 6, 24, 0.85);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}

.rtp-day .date { font-size: 12px; color: var(--muted); }
.rtp-day .val { font-size: 18px; font-weight: 800; margin: 4px 0; }
.rtp-day .tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.2);
  color: #ddd6fe;
}

/* ===== STAT CARDS ROW ===== */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 24px;
}

@media (max-width: 760px) {
  .stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.stat-card {
  background: #fff;
  color: #111;
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.stat-card .label {
  font-size: 13px;
  color: #6d28d9;
  font-weight: 700;
}

.stat-card .value {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 800;
}

/* ===== ARTICLE BOX ===== */
.article-box {
  background: linear-gradient(145deg, rgba(12, 6, 24, 0.95), rgba(126, 34, 206, 0.9));
  border: 2px solid var(--emerald-light);
  border-radius: 18px;
  padding: 24px 20px;
  margin-bottom: 24px;
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.35);
}

.article-meta-time time { color: #c4b5fd; }

.article-box h1 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.35;
  text-align: center;
}

.article-box h2 {
  margin: 24px 0 12px;
  font-size: 22px;
  color: var(--gold-light);
  padding-left: 12px;
  border-left: 4px solid var(--gold);
}

.article-box p {
  color: #ede9fe;
  line-height: 1.75;
  font-size: 15px;
  text-align: justify;
}

.highlight-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin: 16px 0;
}

/* ===== FAQ ===== */
.faq-wrap h2 {
  text-align: center;
  margin: 0 0 14px;
  font-size: 22px;
}

.faq-item {
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(12, 6, 24, 0.75);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(124, 58, 237, 0.12);
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.open { max-height: 220px; }

.faq-answer p {
  margin: 0;
  padding: 14px 16px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

/* ===== REVIEWS ===== */
.reviews-section h2 {
  text-align: center;
  margin: 28px 0 16px;
  font-size: 22px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

.review-card {
  background: rgba(12, 6, 24, 0.82);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 16px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.review-name { font-weight: 700; }
.review-stars { color: var(--gold-light); letter-spacing: 1px; }
.review-text { color: #ede9fe; font-size: 14px; line-height: 1.65; font-style: italic; margin: 8px 0; }
.review-date { font-size: 12px; color: var(--muted); }

/* ===== FEATURE BAR ===== */
.feature-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(4,21,16,.9), rgba(6,95,70,.85), rgba(245,158,11,.25));
  border: 1px solid var(--border);
}

@media (max-width: 760px) {
  .feature-bar { grid-template-columns: 1fr 1fr; }
}

.feature-item {
  text-align: center;
  padding: 10px;
}

.feature-item .icon { font-size: 28px; margin-bottom: 6px; }
.feature-item h3 { margin: 0 0 6px; font-size: 14px; }
.feature-item p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ===== FOOTER ===== */
.site-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.footer-col h4 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--gold-light);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 6px; }

.footer-col a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: var(--muted);
}

.footer-bottom a { color: var(--muted); }

/* ===== LIVE FEED ===== */
.live-feed {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 50;
  max-width: 280px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(12, 6, 24, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.45;
  animation: feedIn 0.4s ease;
}

@keyframes feedIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== WELCOME POPUP (delay 4s, close visible) ===== */
.welcome-popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  padding: 16px;
}

.welcome-popup.show { display: flex; }

.welcome-card {
  position: relative;
  width: min(680px, 96vw);
  background: linear-gradient(145deg, #5b21b6, #0c0618);
  border: 2px solid var(--gold);
  border-radius: 18px;
  padding: 0 0 20px;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.25);
  overflow: hidden;
}

.welcome-banner {
  background: #000;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}

.welcome-banner a {
  display: block;
  width: 100%;
}

.welcome-banner img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
}

.welcome-body {
  padding: 18px 20px 0;
}

.welcome-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(12, 6, 24, 0.82);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.welcome-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  text-align: center;
}

.welcome-card p {
  margin: 0 0 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.welcome-card .cta-buttons-gold {
  padding: 0 20px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.game-cat-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 8px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); }
.game-cat-row span:last-child { font-size: 12px; color: var(--gold-light); font-weight: 700; }
.cat-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 22px; }
.cat-pill { padding: 10px 16px; border-radius: 999px; background: rgba(124,58,237,0.15); border: 1px solid var(--border); color: var(--text); font-size: 14px; font-weight: 600; }
