/* ==============================================
   NanaCasino – Custom CSS
   Prime Fortune Theme: Deep Emerald & Gold
   ============================================== */

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background-color: #071a0e;
  color: #d1fae5;
  word-break: break-word;
}

* {
  box-sizing: border-box;
}

/* ---- CSS Variables ---- */
:root {
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-700: #047857;
  --casino-dark: #071a0e;
  --casino-deeper: #0a2414;
  --casino-bg: #0d2b19;
  --casino-card: #0f3520;
  --casino-border: #1a5c35;
}

/* ---- Scrollable Table Wrapper ---- */
.prose-casino .prose-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 1.5em 0;
  border-radius: 0.5rem;
}

.prose-casino .prose-table-scroll table {
  margin-top: 0;
  margin-bottom: 0;
}

/* ---- Hero Section ---- */
.hero-section {
  background-color: var(--casino-dark);
  min-height: 100vh;
}

/* ---- Bonus Glow ---- */
.bonus-glow {
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.3), 0 0 60px rgba(251, 191, 36, 0.1);
  animation: bonusGlow 3s ease-in-out infinite alternate;
}

@keyframes bonusGlow {
  0%   { box-shadow: 0 0 20px rgba(251, 191, 36, 0.25), 0 0 40px rgba(251, 191, 36, 0.08); }
  100% { box-shadow: 0 0 40px rgba(251, 191, 36, 0.5),  0 0 80px rgba(251, 191, 36, 0.2); }
}

/* ---- CTA Pulse ---- */
.cta-pulse {
  animation: ctaPulse 2.5s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.5); }
  50%  { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

/* ---- Floating Particles ---- */
.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-400);
  opacity: 0;
  animation: floatParticle 6s ease-in-out infinite;
  pointer-events: none;
}

.particle-1 { left: 10%; top: 20%; animation-delay: 0s;   animation-duration: 7s;  background: var(--gold-400); }
.particle-2 { left: 25%; top: 60%; animation-delay: 1.5s; animation-duration: 9s;  background: var(--emerald-400); width: 4px; height: 4px; }
.particle-3 { left: 70%; top: 30%; animation-delay: 3s;   animation-duration: 8s;  background: var(--gold-500); }
.particle-4 { left: 85%; top: 70%; animation-delay: 0.8s; animation-duration: 10s; background: var(--emerald-300); width: 5px; height: 5px; }
.particle-5 { left: 50%; top: 80%; animation-delay: 2.2s; animation-duration: 6.5s;background: var(--gold-400); }

@keyframes floatParticle {
  0%   { opacity: 0; transform: translateY(0) scale(0.5); }
  20%  { opacity: 0.8; }
  80%  { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-120px) scale(1.2); }
}

/* ---- Parallax Hint ---- */
.hero-section img {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ---- Step Badge ---- */
.step-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--casino-dark);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
  border: 2px solid var(--casino-dark);
  z-index: 10;
}

.step-card {
  margin-top: 20px;
}

/* ---- Promo Cards ---- */
.promo-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(251, 191, 36, 0.15);
}

/* ---- Game Cards ---- */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(4, 120, 87, 0.3);
}

/* ---- Provider Tags ---- */
.provider-tag {
  transition: all 0.2s ease;
  display: inline-block;
}

.provider-tag:hover {
  background-color: rgba(251, 191, 36, 0.1);
}

/* ---- Marquee Animation ---- */
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-track {
  display: inline-flex;
  animation: marqueeScroll 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- FAQ ---- */
.faq-icon {
  transition: transform 0.3s ease;
}

.faq-toggle:focus {
  outline: 2px solid var(--gold-400);
  outline-offset: -2px;
}

/* ---- Prose Styling ---- */
.prose-casino {
  color: #d1fae5;
  line-height: 1.8;
  word-break: break-word;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4 {
  color: var(--gold-400);
  font-weight: 800;
  margin-top: 1em;
  margin-bottom: 0.6em;
  line-height: 1.3;
}

.prose-casino h1 { font-size: 1.875rem; }
.prose-casino h2 { font-size: 1.5rem; }
.prose-casino h3 { font-size: 1.25rem; }

.prose-casino p {
  color: #a7f3d0;
  margin-bottom: 1em;
}

.prose-casino a {
  color: var(--gold-400);
  text-decoration: underline;
  transition: color 0.2s;
}

.prose-casino a:hover {
  color: var(--gold-500);
}

.prose-casino ul,
.prose-casino ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
  color: #a7f3d0;
}

.prose-casino li {
  margin-bottom: 0.4em;
}

.prose-casino strong {
  color: #fde68a;
  font-weight: 700;
}

.prose-casino blockquote {
  border-left: 4px solid var(--gold-500);
  padding-left: 1em;
  color: var(--emerald-300);
  font-style: italic;
  background: rgba(4, 120, 87, 0.1);
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.5em 0;
}

.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--casino-card);
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose-casino thead {
  background: var(--casino-deeper);
}

.prose-casino th {
  color: var(--gold-400);
  font-weight: 700;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--casino-border);
}

.prose-casino td {
  color: #a7f3d0;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--casino-border);
}

.prose-casino tr:last-child td {
  border-bottom: none;
}

.prose-casino tr:hover {
  background: rgba(26, 92, 53, 0.3);
}

.prose-casino code {
  background: rgba(4, 120, 87, 0.2);
  color: var(--emerald-300);
  padding: 0.15em 0.45em;
  border-radius: 0.3em;
  font-size: 0.88em;
}

.prose-casino pre {
  background: var(--casino-deeper);
  padding: 1em 1.25em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose-casino hr {
  border-color: var(--casino-border);
  margin: 2em 0;
}

/* ---- Scrollbars ---- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--casino-darker, #0a2414);
}

::-webkit-scrollbar-thumb {
  background: var(--casino-border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--emerald-700);
}

/* ---- SVG Background Pattern ---- */
.svg-pattern-bg {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a5c35' fill-opacity='0.15'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ---- Responsive Utility ---- */
@media (max-width: 640px) {
  .bonus-glow {
    padding: 1.25rem 1.5rem;
  }
  .step-card {
    margin-top: 24px;
  }
}

/* ---- Overflow for all tables ---- */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
