@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@400;600;700;800&display=swap');

/* === SPINAWAY EN2: WHEEL & DROPS PORTAL === */
:root {
  --en2-bg: #140F2D;
  --en2-surface: #251E4B;
  --en2-surface-soft: #1C163A;
  --en2-text: #F5F3FF;
  --en2-muted: #BEB7E0;
  --en2-accent: #2EE5B5;
  --en2-secondary: #A22687;
  --bg-primary: #140F2D;
  --bg-surface: #251E4B;
  --text-primary: #F5F3FF;
  --text-muted: #BEB7E0;
  --accent-primary: #2EE5B5;
  --accent-secondary: #A22687;
  --font-heading: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  min-width: 0;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  background: radial-gradient(circle at 76% 14%, rgba(162, 38, 135, 0.22), transparent 40%), var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

p, li, td, th, dd, dt {
  color: var(--text-primary);
  text-align: left;
  hyphens: auto;
  overflow-wrap: break-word;
}

p {
  margin-top: 0;
  margin-bottom: 1.15rem;
}

main a:not(.btn):not(.cta):not(.en2-poster-btn),
.en2-footer a:not(.en2-brand) {
  color: #5CF2C9;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(92, 242, 201, 0.55);
  font-weight: 700;
}

main a:not(.btn):not(.cta):not(.en2-poster-btn):hover,
.en2-footer a:not(.en2-brand):hover {
  color: #FFFFFF;
}

h1, h2, h3, h4, h5, h6, nav a, .btn, .cta, button {
  hyphens: manual !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.4vw, 2.85rem);
  font-weight: 700;
  line-height: 1.14;
  color: var(--text-primary);
  text-align: left;
  margin: 0 0 0.85rem;
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
  font-weight: 700;
  line-height: 1.22;
  color: var(--text-primary);
  text-align: left;
  border-bottom: 2px solid var(--accent-secondary);
  padding-bottom: 0.45rem;
  margin: 2.25rem 0 1.2rem;
}

h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.12rem, 1.6vw, 1.38rem);
  line-height: 1.28;
  color: var(--accent-primary);
  margin: 0 0 0.6rem;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-lines {
  position: relative;
  border-left: 1px dashed rgba(165, 158, 201, 0.22);
  border-right: 1px dashed rgba(165, 158, 201, 0.22);
  padding-bottom: 3rem;
}

.container-lines::before,
.container-lines::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent-primary);
  background: var(--bg-primary);
  top: 0;
  z-index: 2;
}

.container-lines::before { left: -3px; }
.container-lines::after { right: -3px; }

.halftone-surface {
  background-image: radial-gradient(rgba(165, 158, 201, 0.12) 1px, transparent 1px);
  background-size: 16px 16px;
}

/* Btn_09_Neon_Border_Pulse */
.btn, .cta {
  background: var(--accent-primary);
  color: #140F2D;
  border: 2px solid var(--accent-secondary);
  border-radius: 999px;
  padding: 0.78rem 1.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 0 16px rgba(46, 229, 181, 0.28);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover, .cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(46, 229, 181, 0.45);
}

.en2-btn-outline {
  background: rgba(37, 30, 75, 0.85);
  color: #FFFFFF;
  border: 2px solid var(--accent-primary);
  box-shadow: none;
}

.en2-btn-outline:hover {
  background: rgba(46, 229, 181, 0.18);
}

/* === Shell_2_Floating_Pill_Navbar === */
.en2-header {
  max-width: 1220px;
  margin: 14px auto 6px;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: rgba(37, 30, 75, 0.92);
  color: var(--text-primary);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(165, 158, 201, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.en2-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.en2-brand img {
  width: 158px;
  height: 36px;
  object-fit: contain;
}

.en2-header nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.en2-header nav a {
  flex-shrink: 0;
  white-space: nowrap;
  color: #E9E4FF;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: background 0.18s ease, color 0.18s ease;
}

.en2-header nav a:hover,
.en2-header nav a.active {
  background: rgba(46, 229, 181, 0.16);
  color: var(--accent-primary);
}

@media (max-width: 768px) {
  .en2-header {
    border-radius: 20px;
    margin: 8px 10px 6px;
    padding: 0.65rem 0.85rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.4rem;
  }

  .en2-brand {
    order: 1;
    flex: 0 0 auto;
  }

  .en2-brand img {
    width: 128px;
    height: auto;
  }

  .en2-header .header-cta {
    order: 2;
    margin-left: auto;
    flex: 0 0 auto;
    padding: 0.46rem 0.9rem;
    font-size: 0.82rem;
    min-height: 36px;
  }

  .en2-header nav {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin-top: 0.15rem;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(165, 158, 201, 0.15);
  }
}

/* === Hero_10_HUD_Command_Deck (Compact: H1 + CTA + Banner visible on 390px first screen) === */
.en2-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.9rem;
  padding: 1.35rem 1.5rem;
  margin-top: 1.15rem;
  border: 1px solid rgba(46, 229, 181, 0.45);
  background: linear-gradient(145deg, rgba(37, 30, 75, 0.78), rgba(20, 15, 45, 0.88));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 22px;
  box-shadow: 0 18px 38px rgba(162, 38, 135, 0.18);
}

.en2-hero-top {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.en2-hud-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #D7D1F5;
  padding: 0.42rem 0.85rem;
  border-radius: 10px;
  background: rgba(15, 18, 42, 0.72);
  border: 1px solid rgba(46, 229, 181, 0.3);
}

.en2-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.en2-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  background: rgba(162, 38, 135, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FDE8FF;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
}

.en2-hero-banner {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(46, 229, 181, 0.32);
}

.en2-hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.en2-hero-banner .en2-hero-actions {
  position: absolute;
  left: clamp(0.85rem, 3vw, 2.25rem);
  bottom: clamp(0.75rem, 2.5vw, 1.75rem);
  z-index: 3;
}

@media (max-width: 640px) {
  .en2-hero {
    padding: 0.95rem 1rem;
    gap: 0.75rem;
    border-radius: 16px;
    margin-top: 0.75rem;
  }

  .en2-hero h1 {
    font-size: 1.55rem;
    margin-bottom: 0.25rem;
  }

  .en2-hero-banner .en2-hero-actions {
    left: 0.65rem;
    bottom: 0.55rem;
  }

  .en2-hero-banner .en2-hero-actions .btn {
    padding: 0.45rem 0.95rem;
    font-size: 0.76rem;
    min-height: 36px;
  }
}

/* === Material_4_Frosted_Liquid_Glass Cards === */
.en2-card, .card {
  border-radius: 20px;
  background: linear-gradient(rgba(37, 30, 75, 0.68), rgba(24, 18, 56, 0.78)) padding-box,
              linear-gradient(135deg, var(--accent-primary), rgba(255, 255, 255, 0.16), var(--accent-secondary)) border-box;
  border: 1px solid transparent;
  color: var(--text-primary);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(162, 38, 135, 0.14);
  padding: 1.45rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* === Topology_6_Numbered_Spine_Timeline (01..07 Sections) === */
.en2-spine-stream {
  position: relative;
  margin-top: 2rem;
  padding-left: 2.25rem;
  border-left: 2px solid rgba(46, 229, 181, 0.45);
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.en2-spine-section {
  position: relative;
}

.en2-spine-node {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 18, 42, 0.9);
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.55rem;
}

.en2-spine-section h2 {
  margin-top: 0;
}

@media (max-width: 640px) {
  .en2-spine-stream {
    padding-left: 1.15rem;
  }
}

.en2-card:hover, .card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px var(--accent-secondary);
}

/* === Bonus Cards Grid === */
.en2-bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 960px) {
  .en2-bonus-grid {
    grid-template-columns: 1fr;
  }
}

.en2-bonus-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
}

.en2-bonus-amount {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 700;
  color: var(--accent-primary);
}

/* === Slot Posters Grid === */
.en2-poster-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
  .en2-poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

.en2-poster-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid rgba(165, 158, 201, 0.25);
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.en2-poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.en2-poster-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 3;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  background: #140F2D;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}

.en2-poster-badge.badge-new {
  background: var(--accent-secondary);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.35);
}

.en2-poster-badge.badge-jackpot {
  background: #F59E0B;
  color: #140F2D;
  border-color: #FEF3C7;
}

.en2-poster-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(180deg, rgba(20, 15, 45, 0.2) 0%, rgba(20, 15, 45, 0.94) 74%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.9rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.en2-poster-card:hover .en2-poster-overlay,
.en2-poster-card:focus-within .en2-poster-overlay,
.en2-poster-card.tap-active .en2-poster-overlay {
  opacity: 1;
}

.en2-poster-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.en2-poster-actions {
  display: flex;
  gap: 0.5rem;
}

.en2-poster-btn {
  flex: 1 1 auto;
  min-height: 38px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
  background: var(--accent-primary);
  color: #140F2D;
}

.en2-poster-btn.demo {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* === DataViz_02_Bullet_Benchmark_Bars === */
.en2-bullet-chart {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding: 1.35rem;
  border-radius: 20px;
  background: var(--en2-surface-soft);
  border: 1px solid rgba(165, 158, 201, 0.22);
}

.en2-bullet-row-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.en2-bullet-track {
  position: relative;
  height: 14px;
  background: rgba(165, 158, 201, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.en2-bullet-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 999px;
}

/* === Topology_6_Numbered_Spine_Timeline (Signup Steps 1 -> 2 -> 3) === */
.en2-timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--accent-primary);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.en2-timeline-step {
  position: relative;
}

.en2-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-secondary);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

/* === Pros & Cons Pair === */
.en2-pros-cons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

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

.en2-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .en2-two-col {
    grid-template-columns: 1fr;
  }
}

.en2-pros-card {
  border-top: 4px solid var(--accent-primary);
}

.en2-cons-card {
  border-top: 4px solid var(--accent-secondary);
}

.en2-check-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.6rem;
}

/* === Cashier Logo Grid (All Visible, No Tabs) + Variant_E_Metric_Pills === */
.en2-cashier-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 900px) {
  .en2-cashier-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .en2-cashier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.en2-pay-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 0.6rem;
  background: rgba(15, 18, 42, 0.88);
  color: #F5F3FF;
  border-radius: 14px;
  border: 1px solid rgba(46, 229, 181, 0.45);
  min-height: 76px;
}

.en2-pay-card img {
  width: 56px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.en2-pay-card span {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: #F5F3FF;
}

.en2-metric-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.en2-metric-pill {
  flex: 1 1 200px;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid rgba(46, 229, 181, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.en2-metric-pill strong {
  color: var(--accent-primary);
  font-family: var(--font-heading);
}

/* === FAQ Tabbed Categories === */
.en2-faq-tabs {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.en2-faq-tab-btn {
  padding: 0.55rem 1.15rem;
  min-height: 44px;
  border-radius: 999px;
  background: var(--bg-surface);
  color: #E9E4FF;
  border: 1px solid rgba(165, 158, 201, 0.28);
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
}

.en2-faq-tab-btn.active {
  background: var(--accent-primary);
  color: #140F2D;
  border-color: var(--accent-primary);
}

.en2-faq-tab-panel {
  display: none;
  gap: 0.75rem;
}

.en2-faq-tab-panel.active {
  display: grid;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid rgba(165, 158, 201, 0.22);
  border-radius: 14px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  color: #FFFFFF;
  border: none;
  padding: 0.95rem 1.2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  min-height: 48px;
}

.faq-question::after {
  content: '+';
  color: var(--accent-primary);
  font-size: 1.25rem;
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  display: none;
  padding: 0 1.2rem 1rem;
}

.faq-item.open .faq-answer {
  display: block;
}

/* === Subpage Table & Grid Compatibility === */
.table-wrap, .table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}

table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: var(--bg-surface);
}

th, td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(165, 158, 201, 0.16);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

/* === Footer === */
.en2-footer {
  background: var(--en2-surface-soft);
  border-top: 1px solid rgba(165, 158, 201, 0.2);
  padding: 2.25rem 0 1.75rem;
  margin-top: 2.5rem;
}

.en2-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .en2-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .en2-footer-grid {
    grid-template-columns: 1fr;
  }
}

.en2-footer-col h4 {
  font-family: var(--font-heading);
  color: var(--accent-primary);
  margin: 0 0 0.75rem;
}

.en2-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
