/* ============================================
   DUEL CASINO — DARK PREMIUM THEME
   Optimized for Core Web Vitals (CLS=0)
   ============================================ */

:root {
  --bg-primary: #060a13;
  --bg-secondary: #0d1421;
  --bg-card: #111a2c;
  --bg-elevated: #18243a;
  --border: #1f2c44;
  --border-light: #2a3a56;
  --text-primary: #e8eef9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #00ff88;
  --accent-dim: #00cc6a;
  --accent-glow: rgba(0, 255, 136, 0.35);
  --gold: #fbbf24;
  --danger: #ef4444;
  --shadow-glow: 0 0 24px rgba(0, 255, 136, 0.25);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);
  --radius: 12px;
  --radius-lg: 18px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(0, 255, 136, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(0, 200, 255, 0.04) 0%, transparent 40%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.85;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin: 2.5rem 0 1rem;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin: 1.5rem 0 0.75rem;
}

h4 {
  font-size: 1.125rem;
  margin: 1rem 0 0.5rem;
  color: var(--accent);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

strong {
  color: var(--text-primary);
  font-weight: 700;
}

.accent-text {
  color: var(--accent);
}

.highlight {
  background: linear-gradient(120deg, transparent 0%, transparent 60%, var(--accent-glow) 60%, var(--accent-glow) 100%);
  padding: 0 4px;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

main {
  padding-bottom: 100px; /* Space for sticky CTA on mobile */
}

section {
  padding: 2.5rem 0;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 10, 19, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  display: block;
  filter: drop-shadow(0 0 8px var(--accent-glow));
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { filter: drop-shadow(0 0 8px var(--accent-glow)); }
  50% { filter: drop-shadow(0 0 14px rgba(0, 255, 136, 0.6)); }
}

.lang-switcher {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.lang-switcher a {
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.lang-switcher a:hover,
.lang-switcher a.active {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  opacity: 1;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 3rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.4;
  z-index: -1;
  filter: blur(40px);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-content {
  min-width: 0;
}

.hero-art {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin-left: auto;
  filter: drop-shadow(0 10px 40px rgba(0, 255, 136, 0.18));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .hero-art {
    max-width: 320px;
    margin: 0 auto;
    order: -1;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.tag {
  padding: 0.4rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tag-accent {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================
   BUTTONS / CTA
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(0, 255, 136, 0.5);
  opacity: 1;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  opacity: 1;
}

.btn-large {
  padding: 1.1rem 2rem;
  font-size: 1.1rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ============================================
   STICKY MOBILE CTA
   ============================================ */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0.65rem 1rem;
  background: rgba(6, 10, 19, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: none;
}

.sticky-cta .btn {
  width: 100%;
}

@media (max-width: 768px) {
  .sticky-cta {
    display: block;
  }
}

/* ============================================
   CARDS / SECTIONS
   ============================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.card-elevated {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-light);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.feature-icon img,
.feature-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.feature-item:hover .feature-icon {
  background: rgba(0, 255, 136, 0.18);
  border-color: var(--accent);
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 480px;
}

thead {
  background: var(--bg-elevated);
}

th {
  padding: 0.95rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-light);
}

td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

tbody tr:hover {
  background: var(--bg-secondary);
}

tbody tr:last-child td {
  border-bottom: none;
}

td strong {
  color: var(--text-primary);
}

/* ============================================
   PROMO CODE COPY BLOCK
   ============================================ */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.promo-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.promo-card .promo-title {
  flex: 1;
}

.promo-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 50%);
  opacity: 0.15;
  pointer-events: none;
}

.promo-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.promo-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.promo-code-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-primary);
  border: 1px dashed var(--accent);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 1;
}

.promo-code {
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.promo-cta {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-glow);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.promo-cta:hover {
  background: #fff;
  transform: translateY(-1px);
  opacity: 1;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.5rem 0;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: inherit;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--accent);
  border-radius: 1px;
}

.faq-icon::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
}

.faq-icon::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon::after {
  transform: translateX(-50%) scaleY(0);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 1.25rem 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

/* ============================================
   ARTICLE / LONGREAD
   ============================================ */
.article-body {
  font-size: 1rem;
  line-height: 1.75;
}

.article-body p {
  margin-bottom: 1rem;
}

.article-body ul,
.article-body ol {
  margin: 1rem 0;
  padding-left: 1.25rem;
}

.article-body li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.article-body li::marker {
  color: var(--accent);
}

.callout {
  background: rgba(0, 255, 136, 0.05);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.callout p {
  margin: 0;
  color: var(--text-primary);
}

/* ============================================
   PROS/CONS
   ============================================ */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (max-width: 600px) {
  .pros-cons {
    grid-template-columns: 1fr;
  }
}

.pros-cons-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.pros-card {
  background: rgba(0, 255, 136, 0.04);
  border-color: rgba(0, 255, 136, 0.25);
}

.cons-card {
  background: rgba(239, 68, 68, 0.04);
  border-color: rgba(239, 68, 68, 0.25);
}

.pros-cons-card h4 {
  margin-top: 0;
}

.pros-card h4 {
  color: var(--accent);
}

.cons-card h4 {
  color: var(--danger);
}

.pros-cons-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pros-cons-card li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pros-card li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
}

.cons-card li::before {
  content: '✕';
  color: var(--danger);
  font-weight: 800;
  flex-shrink: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  margin-top: 3rem;
  padding: 2rem 0 1.5rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-section h4 {
  color: var(--text-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 0.4rem;
}

.footer-section a {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.disclaimer {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav {
    padding: 0.65rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .lang-switcher a {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }

  section {
    padding: 1.75rem 0;
  }

  .hero {
    padding: 2rem 0 1.5rem;
  }

  .cta-row .btn {
    width: 100%;
  }
}
