/* ==========================================================================
   Teen Patti Master - Design System & Stylesheet
   Pure Vanilla CSS Architecture
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Premium Luxury Felt & Gold Theme */
  --bg-dark: #071510;
  --bg-primary: #0b1e17;
  --bg-surface: #11281f;
  --bg-surface-elevated: #18352a;
  --bg-surface-hover: #204537;
  
  --gold-primary: #f4c453;
  --gold-light: #ffdf85;
  --gold-dark: #cc9b25;
  --gold-glow: rgba(244, 196, 83, 0.25);
  
  --emerald-primary: #10b981;
  --emerald-light: #34d399;
  --ruby-red: #f43f5e;
  --club-black: #111827;
  
  --text-primary: #f3f7f5;
  --text-secondary: #a7bbb3;
  --text-muted: #6b857c;
  --text-inverse: #071510;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(244, 196, 83, 0.3);
  --border-gold-strong: rgba(244, 196, 83, 0.6);

  /* Typography */
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout & Spacing */
  --container-max-width: 1200px;
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Shadows & Glassmorphism */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 25px rgba(244, 196, 83, 0.15);

  --glass-bg: rgba(17, 40, 31, 0.75);
  --glass-border: rgba(255, 255, 255, 0.1);
  --backdrop-blur: blur(12px);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 80% 50%, rgba(244, 196, 83, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--gold-primary);
  color: var(--text-inverse);
  padding: 12px 20px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top var(--transition-fast);
  text-decoration: none;
}

.skip-link:focus {
  top: 20px;
  outline: 3px solid #ffffff;
}

/* Focus Visible Accessibility */
:focus-visible {
  outline: 3px solid var(--gold-primary);
  outline-offset: 3px;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

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

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: color var(--transition-fast), text-decoration var(--transition-fast);
}

p a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

p a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

a:hover {
  color: var(--gold-light);
}

ul, ol {
  list-style: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --------------------------------------------------------------------------
   3. Header & Sticky Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(7, 21, 16, 0.85);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: background var(--transition-normal), border-color var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(7, 21, 16, 0.95);
  border-bottom-color: var(--border-gold);
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo .logo-suit {
  color: var(--gold-primary);
  font-size: 1.5rem;
  text-shadow: 0 0 10px var(--gold-glow);
}

.brand-logo .logo-accent {
  color: var(--gold-primary);
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.925rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-primary);
  transition: width var(--transition-fast);
  border-radius: var(--radius-pill);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Header CTA Button */
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  color: var(--text-inverse) !important;
  box-shadow: 0 3px 12px rgba(244, 196, 83, 0.35);
  border: 1px solid var(--gold-light);
  transition: all var(--transition-bounce);
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-btn::after {
  display: none !important;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(244, 196, 83, 0.55);
  color: var(--text-inverse) !important;
}

/* Mobile Nav Toggle Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  padding: 0;
  z-index: 1010;
}

.hamburger-bar {
  width: 100%;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: var(--radius-pill);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

/* Hamburger Active State */
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   4. Buttons & UI Components
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: all var(--transition-bounce);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  color: var(--text-inverse);
  box-shadow: 0 4px 15px rgba(244, 196, 83, 0.3);
  border: 1px solid var(--gold-light);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(244, 196, 83, 0.45);
  color: var(--text-inverse);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: var(--backdrop-blur);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-gold);
  color: var(--gold-primary);
  transform: translateY(-2px);
}

.card-surface {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.card-surface:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-primary);
  background: rgba(244, 196, 83, 0.1);
  border: 1px solid var(--border-gold);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   5. Hero Section & CSS Playing Cards
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 5rem 0 6rem 0;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--emerald-light);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--emerald-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald-light);
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #d1ded9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  line-height: 1.6;
}

.hero-lead strong {
  color: var(--gold-primary);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Visual Showcase - Pure CSS Cards */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cards-fan {
  position: relative;
  width: 280px;
  height: 320px;
  margin-bottom: 1.5rem;
  perspective: 1000px;
}

/* Individual CSS Playing Card Styling */
.playing-card {
  position: absolute;
  width: 170px;
  height: 245px;
  background: linear-gradient(135deg, #ffffff 0%, #f4f4f6 100%);
  border-radius: 12px;
  box-shadow: -4px 8px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
  transition: transform var(--transition-normal);
}

.card-corner {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  font-weight: 800;
}

.card-corner.top-left {
  align-self: flex-start;
}

.card-corner.bottom-right {
  align-self: flex-end;
  transform: rotate(180deg);
}

.card-rank {
  font-size: 1.4rem;
  color: var(--club-black);
}

.card-suit {
  font-size: 1.2rem;
}

.card-suit.spade, .card-suit.club {
  color: var(--club-black);
}

.card-suit.heart, .card-suit.diamond {
  color: var(--ruby-red);
}

.card-center {
  align-self: center;
  font-size: 3.5rem;
  line-height: 1;
}

.card-center.spade, .card-center.club {
  color: var(--club-black);
}

.card-center.heart, .card-center.diamond {
  color: var(--ruby-red);
}

/* Card Fan Positions */
.card-1 {
  left: 20px;
  top: 30px;
  transform: rotate(-15deg);
  z-index: 1;
}

.card-2 {
  left: 55px;
  top: 10px;
  transform: rotate(0deg) translateY(-10px);
  z-index: 2;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.card-3 {
  left: 90px;
  top: 30px;
  transform: rotate(15deg);
  z-index: 3;
}

.cards-fan:hover .card-1 {
  transform: rotate(-22deg) translateX(-15deg);
}

.cards-fan:hover .card-2 {
  transform: rotate(0deg) translateY(-20px);
}

.cards-fan:hover .card-3 {
  transform: rotate(22deg) translateX(15deg);
}

.hero-card-caption {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-gold);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-primary);
  box-shadow: var(--shadow-sm);
}

.caption-icon {
  color: var(--gold-primary);
}

/* --------------------------------------------------------------------------
   6. Content Sections
   -------------------------------------------------------------------------- */
.content-section {
  padding: 5rem 0;
  position: relative;
}

.highlight-bg {
  background-color: rgba(17, 40, 31, 0.5);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.info-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--gold-primary);
}

/* Features Grid (What Is Teen Patti) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   7. How to Play - Steps
   -------------------------------------------------------------------------- */
.steps-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.step-item {
  display: flex;
  gap: 1.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: border-color var(--transition-normal);
}

.step-item:hover {
  border-color: var(--border-gold);
}

.step-number {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--gold-primary);
  background: rgba(244, 196, 83, 0.1);
  border: 1px solid var(--border-gold);
  width: 60px;
  min-width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: auto;
}

.step-content h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step-content ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  list-style-type: disc;
}

.step-content li {
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.callout-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: rgba(244, 196, 83, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.callout-icon {
  font-size: 1.75rem;
}

.callout-text {
  color: var(--text-secondary);
  font-size: 0.975rem;
}

.callout-text strong {
  color: var(--gold-primary);
}

/* --------------------------------------------------------------------------
   8. Hand Rankings Showcase & Table
   -------------------------------------------------------------------------- */
.rankings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

.ranking-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all var(--transition-normal);
}

.ranking-card.top-rank {
  border-color: var(--border-gold-strong);
  background: linear-gradient(145deg, var(--bg-surface-elevated) 0%, var(--bg-surface) 100%);
  box-shadow: var(--shadow-gold);
}

.ranking-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
}

.rank-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  background: rgba(244, 196, 83, 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  align-self: flex-start;
  margin-bottom: 1rem;
}

.rank-info h3 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.rank-desc {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.rank-visual {
  display: flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  justify-content: center;
}

.mini-card {
  width: 44px;
  height: 60px;
  background: #ffffff;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.mini-card .rank {
  font-size: 0.9rem;
  color: var(--club-black);
  line-height: 1;
}

.mini-card .suit {
  font-size: 1rem;
  line-height: 1;
}

.mini-card .suit.spade, .mini-card .suit.club { color: var(--club-black); }
.mini-card .suit.heart, .mini-card .suit.diamond { color: var(--ruby-red); }

/* Comparison Table */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.rankings-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.rankings-table caption {
  caption-side: top;
  text-align: left;
  padding: 1.25rem;
  font-weight: 700;
  color: var(--gold-primary);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
}

.rankings-table th,
.rankings-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.rankings-table th {
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
  font-weight: 700;
}

.rankings-table tr:last-child td {
  border-bottom: none;
}

.rankings-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* --------------------------------------------------------------------------
   9. Glossary Section
   -------------------------------------------------------------------------- */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.glossary-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: border-color var(--transition-fast);
}

.glossary-item:hover {
  border-color: var(--border-gold);
}

.glossary-item dt {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.glossary-item dd {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   10. Strategy Tips & Common Mistakes
   -------------------------------------------------------------------------- */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.tip-card {
  position: relative;
  padding-top: 2.5rem;
}

.tip-number {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.5rem;
  font-weight: 900;
  color: rgba(244, 196, 83, 0.25);
}

.tip-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--gold-primary);
}

.mistake-card {
  border-left: 4px solid var(--ruby-red);
}

.mistake-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.mistake-icon {
  font-size: 1.5rem;
}

.mistake-header h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   11. Online Safety & Compliance Section
   -------------------------------------------------------------------------- */
.safety-section {
  padding: 4rem 0;
}

.safety-card {
  background: linear-gradient(135deg, #162a22 0%, #0d1e18 100%);
  border: 1px solid var(--emerald-primary);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.safety-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--emerald-light);
  background: rgba(16, 185, 129, 0.15);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

.safety-card h2 {
  font-size: 2.25rem;
  margin-bottom: 2rem;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.safety-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.safety-item p {
  font-size: 0.95rem;
}

.responsible-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

.responsible-footer strong {
  color: var(--gold-primary);
}

.link-light {
  color: var(--emerald-light);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   12. FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-accordion {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-gold);
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.35rem 1.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  transition: color var(--transition-fast);
}

.faq-trigger:hover {
  color: var(--gold-primary);
}

.faq-icon {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold-primary);
  transition: transform var(--transition-normal);
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
}

.faq-panel:not([hidden]) {
  max-height: 300px;
}

.faq-content {
  padding: 0 1.75rem 1.5rem 1.75rem;
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #040d0a;
  border-top: 1px solid var(--border-subtle);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 380px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-primary);
  background: rgba(244, 196, 83, 0.1);
  border: 1px solid var(--border-gold);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
}

.footer-col h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.footer-links a:hover {
  color: var(--gold-primary);
}

.footer-bottom {
  background: #020705;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.disclaimer-text strong {
  color: var(--text-secondary);
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   14. Responsive Breakpoints & Mobile Styles
   -------------------------------------------------------------------------- */
@media (min-width: 999px) {
  .nav-menu {
    position: static !important;
    transform: none !important;
    visibility: visible !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    overflow: visible !important;
    box-shadow: none !important;
  }

  .nav-toggle {
    display: none !important;
  }

  .nav-list {
    flex-direction: row !important;
  }
}

@media (max-width: 1200px) and (min-width: 999px) {
  .nav-list {
    gap: 0.85rem !important;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .brand-logo {
    font-size: 1.15rem;
  }
}

@media (max-width: 998px) {
  :root {
    --header-height: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-dark);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2.5rem 1.5rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--transition-normal), visibility var(--transition-normal);
    border-top: 1px solid var(--border-subtle);
    overflow-y: auto;
  }

  .nav-menu.is-active {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3.5rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .brand-col {
    grid-column: span 2;
  }

  .step-item {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.95rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cards-fan {
    width: 240px;
    height: 280px;
  }

  .playing-card {
    width: 140px;
    height: 200px;
  }

  .card-center {
    font-size: 2.5rem;
  }

  .rankings-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   15. Accessibility & Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .cards-fan:hover .card-1,
  .cards-fan:hover .card-2,
  .cards-fan:hover .card-3 {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   16. Back to Top Button & Mobile Sticky Bottom Bar
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(244, 196, 83, 0.4);
  border: 1px solid var(--gold-light);
  cursor: pointer;
  z-index: 995;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(244, 196, 83, 0.6);
}

/* Mobile Sticky Bottom Bar */
.mobile-sticky-bar {
  display: none;
}

@media (max-width: 998px) {
  .mobile-sticky-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(7, 21, 16, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-gold-strong);
    padding: 0.6rem 0.85rem;
    z-index: 990;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  }

  .mobile-sticky-content {
    display: flex;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
  }

  .mobile-app-info {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex-shrink: 1;
  }

  .mobile-app-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--text-inverse);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
  }

  .mobile-app-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
    min-width: 0;
  }

  .mobile-app-title {
    font-weight: 800;
    font-size: 0.875rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-app-subtitle {
    font-size: 0.7rem;
    color: var(--gold-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-sticky-bar .btn-sm {
    width: auto !important;
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: 0.825rem;
    white-space: nowrap;
  }

  .site-footer {
    padding-bottom: 85px;
  }

  .back-to-top {
    bottom: 92px;
    right: 18px;
    width: 42px;
    height: 42px;
    z-index: 1000;
  }
}
