/* ===========================================================
 * Orion Game - Core Stylesheet (css/theme.css)
 * All custom classes use the "s01e-" prefix.
 * Palette: #00BFFF | #0E1621 | #B0E0E6 | #CD853F | #DAA520
 * Mobile-first: primary layout max-width 430px, scales up.
 * =========================================================== */

:root {
  --s01e-primary: #00BFFF; --s01e-bg: #0E1621; --s01e-bg-2: #15202e;
  --s01e-bg-3: #1d2c3e; --s01e-text: #B0E0E6; --s01e-text-strong: #ffffff;
  --s01e-muted: #8aa3b5; --s01e-accent: #CD853F; --s01e-gold: #DAA520;
  --s01e-radius: 14px; --s01e-radius-lg: 22px;
  --s01e-shadow: 0 8px 24px rgba(0,0,0,0.35);
  --s01e-shadow-glow: 0 0 24px rgba(0,191,255,0.35);
}

/* Reset & base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Helvetica Neue","Segoe UI",Roboto,Arial,sans-serif;
  background: radial-gradient(circle at 20% 0%, #15243a 0%, var(--s01e-bg) 55%);
  color: var(--s01e-text); font-size: 1.5rem; line-height: 1.5;
  min-height: 100vh; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--s01e-primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.material-symbols-outlined { vertical-align: middle; }

/* Layout helpers */
.s01e-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }
.s01e-section { padding: 26px 0; }
.s01e-hidden { display: none !important; }

/* Headings */
.s01e-h1, .s01e-h2, .s01e-h3 { color: var(--s01e-text-strong); line-height: 1.25; }
.s01e-h1 { font-size: 2.6rem; margin: 8px 0; }
.s01e-h2 {
  font-size: 2rem; margin-bottom: 12px; padding-left: 12px;
  border-left: 4px solid var(--s01e-primary);
}
.s01e-h3 { font-size: 1.7rem; margin: 14px 0 8px; color: var(--s01e-gold); }
.s01e-eyebrow {
  display: inline-block; font-size: 1.15rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--s01e-gold); margin-bottom: 6px;
}
.s01e-lead { font-size: 1.55rem; color: var(--s01e-text); }
.s01e-muted { color: var(--s01e-muted); }

/* Promo text links */
.s01e-link {
  color: var(--s01e-primary); font-weight: 700;
  border-bottom: 2px dashed rgba(0,191,255,0.5); padding-bottom: 1px;
}
.s01e-link-gold { color: var(--s01e-gold); font-weight: 700; }

/* Buttons */
.s01e-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  font-size: 1.4rem; font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.s01e-btn:active { transform: scale(0.96); }
.s01e-btn-primary {
  background: linear-gradient(135deg, var(--s01e-primary), #0095d1);
  color: #06223a; box-shadow: var(--s01e-shadow-glow);
}
.s01e-btn-gold { background: linear-gradient(135deg, var(--s01e-gold), var(--s01e-accent)); color: #2a1a05; }
.s01e-btn-ghost {
  background: rgba(0,191,255,0.08);
  border: 1px solid rgba(0,191,255,0.4); color: var(--s01e-text-strong);
}
.s01e-btn-block { display: flex; width: 100%; }

/* Header */
.s01e-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(14,22,33,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,191,255,0.18);
}
.s01e-header-inner {
  max-width: 430px; margin: 0 auto; padding: 8px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.s01e-logo { display: flex; align-items: center; gap: 8px; min-width: 0; }
.s01e-logo-img {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--s01e-primary), var(--s01e-gold));
  display: grid; place-items: center; color: #06223a; font-weight: 900; font-size: 1.5rem;
}
.s01e-logo-text { font-size: 1.7rem; font-weight: 800; color: var(--s01e-text-strong); }
.s01e-logo-text span { color: var(--s01e-primary); }
.s01e-header-actions { display: flex; align-items: center; gap: 8px; }
.s01e-header-actions .s01e-btn { padding: 7px 14px; min-height: 36px; font-size: 1.25rem; }
.s01e-menu-btn {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; font-size: 1.9rem;
  background: rgba(0,191,255,0.1); color: var(--s01e-text-strong);
}
.s01e-menu-btn.s01e-active { background: var(--s01e-primary); color: #06223a; }

/* Mobile slide-in menu */
.s01e-menu-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 9998;
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease;
}
.s01e-menu-backdrop.s01e-active { opacity: 1; visibility: visible; }
.s01e-mobile-menu {
  position: fixed; top: 0; right: -86%; width: 86%; max-width: 320px; height: 100vh;
  background: var(--s01e-bg-2); z-index: 9999; padding: 80px 18px 24px;
  overflow-y: auto; transition: right 0.3s ease; border-left: 1px solid rgba(0,191,255,0.18);
}
.s01e-mobile-menu.s01e-menu-open { right: 0; }
.s01e-mobile-menu h4 {
  color: var(--s01e-gold); font-size: 1.35rem; margin: 14px 0 6px;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.s01e-mobile-menu a, .s01e-mobile-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 12px 12px; font-size: 1.4rem; color: var(--s01e-text);
  border-radius: 10px; text-align: left; min-height: 44px;
}
.s01e-mobile-menu a:active, .s01e-mobile-menu button:active { background: rgba(0,191,255,0.1); }

/* Hero / Carousel */
.s01e-main { padding-top: 60px; }
.s01e-carousel {
  position: relative; border-radius: var(--s01e-radius-lg);
  overflow: hidden; box-shadow: var(--s01e-shadow); margin: 14px 0;
}
.s01e-carousel-track { position: relative; height: 200px; }
.s01e-carousel-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.6s ease; cursor: pointer;
}
.s01e-carousel-slide.s01e-active { opacity: 1; }
.s01e-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.s01e-carousel-caption {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  background: linear-gradient(transparent, rgba(14,22,33,0.85));
  color: var(--s01e-text-strong); padding: 24px 12px 8px;
  border-radius: 0 0 var(--s01e-radius-lg) var(--s01e-radius-lg);
}
.s01e-carousel-caption strong { color: var(--s01e-primary); font-size: 1.6rem; display: block; }
.s01e-carousel-caption span { font-size: 1.3rem; color: var(--s01e-text); }
.s01e-carousel-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.s01e-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35); cursor: pointer; }
.s01e-carousel-dot.s01e-active { background: var(--s01e-primary); width: 22px; border-radius: 4px; }
.s01e-hero-cta { display: flex; gap: 8px; margin: 14px 0 4px; }
.s01e-hero-cta .s01e-btn { flex: 1; }

/* Section header */
.s01e-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.s01e-section-head .s01e-h2 { margin: 0; }

/* Game grid */
.s01e-game-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.s01e-game-card {
  background: var(--s01e-bg-2); border: 1px solid rgba(0,191,255,0.12);
  border-radius: var(--s01e-radius); padding: 8px; text-align: center; cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease; min-width: 0;
}
.s01e-game-card:active { transform: scale(0.96); border-color: var(--s01e-primary); }
.s01e-game-thumb {
  width: 100%; aspect-ratio: 1/1; border-radius: 10px; object-fit: cover;
  background: #0a1422; margin-bottom: 6px;
}
.s01e-game-name {
  font-size: 1.15rem; color: var(--s01e-text-strong); font-weight: 600; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.s01e-game-tag { display: inline-block; font-size: 1rem; color: var(--s01e-gold); margin-top: 2px; }

/* Cards */
.s01e-card {
  background: var(--s01e-bg-2); border: 1px solid rgba(0,191,255,0.12);
  border-radius: var(--s01e-radius-lg); padding: 16px; margin-bottom: 12px;
  box-shadow: var(--s01e-shadow);
}
.s01e-card p { margin-bottom: 8px; }
.s01e-card p:last-child { margin-bottom: 0; }

/* Steps */
.s01e-steps { list-style: none; counter-reset: step; }
.s01e-steps li {
  position: relative; padding: 10px 10px 10px 44px; margin-bottom: 8px;
  background: var(--s01e-bg-3); border-radius: 12px; counter-increment: step; font-size: 1.4rem;
}
.s01e-steps li::before {
  content: counter(step); position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--s01e-primary), var(--s01e-gold));
  color: #06223a; font-weight: 800; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.3rem;
}

/* Feature grid */
.s01e-feature-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.s01e-feature {
  background: var(--s01e-bg-2); border: 1px solid rgba(0,191,255,0.12);
  border-radius: var(--s01e-radius); padding: 12px; text-align: center;
}
.s01e-feature i, .s01e-feature .material-symbols-outlined { font-size: 2.6rem; color: var(--s01e-primary); margin-bottom: 4px; }
.s01e-feature h3 { font-size: 1.35rem; color: var(--s01e-text-strong); margin-bottom: 4px; }
.s01e-feature p { font-size: 1.2rem; color: var(--s01e-muted); }

/* RTP / stat table */
.s01e-stat-table { width: 100%; border-collapse: collapse; font-size: 1.25rem; }
.s01e-stat-table th, .s01e-stat-table td {
  padding: 8px 6px; text-align: left; border-bottom: 1px solid rgba(0,191,255,0.1);
}
.s01e-stat-table th { color: var(--s01e-gold); font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.05em; }
.s01e-stat-table td.s01e-num { color: var(--s01e-primary); font-weight: 700; text-align: right; }
.s01e-rtp-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.08); overflow: hidden; margin-top: 4px; }
.s01e-rtp-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--s01e-primary), var(--s01e-gold)); }

/* FAQ */
.s01e-faq { margin-bottom: 8px; background: var(--s01e-bg-2); border-radius: 12px; overflow: hidden; border: 1px solid rgba(0,191,255,0.1); }
.s01e-faq summary {
  padding: 12px 14px; font-size: 1.4rem; font-weight: 700; color: var(--s01e-text-strong);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.s01e-faq summary::-webkit-details-marker { display: none; }
.s01e-faq summary::after { content: "+"; color: var(--s01e-primary); font-size: 1.8rem; }
.s01e-faq[open] summary::after { content: "-"; }
.s01e-faq-body { padding: 0 14px 14px; font-size: 1.3rem; color: var(--s01e-text); }

/* Testimonials */
.s01e-testimonial-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.s01e-testimonial {
  background: var(--s01e-bg-2); border-left: 3px solid var(--s01e-gold);
  border-radius: 12px; padding: 12px 14px;
}
.s01e-testimonial-stars { color: var(--s01e-gold); font-size: 1.3rem; margin-bottom: 4px; }
.s01e-testimonial p { font-size: 1.3rem; margin-bottom: 6px; }
.s01e-testimonial cite { font-size: 1.15rem; color: var(--s01e-primary); font-style: normal; font-weight: 700; }

/* App download */
.s01e-app-card {
  background: linear-gradient(135deg, rgba(0,191,255,0.12), rgba(218,165,32,0.1));
  border: 1px solid rgba(0,191,255,0.25); border-radius: var(--s01e-radius-lg);
  padding: 18px; text-align: center;
}
.s01e-app-card h3 { color: var(--s01e-gold); }

/* Payment chips */
.s01e-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.s01e-chip {
  background: var(--s01e-bg-3); border-radius: 999px; padding: 6px 12px;
  font-size: 1.15rem; color: var(--s01e-text-strong);
  display: inline-flex; align-items: center; gap: 6px;
}

/* Footer */
.s01e-footer {
  background: linear-gradient(180deg, var(--s01e-bg-2), #08111a);
  border-top: 1px solid rgba(0,191,255,0.18); padding: 22px 0 130px;
}
.s01e-footer-brand { font-size: 1.3rem; color: var(--s01e-muted); margin-bottom: 12px; }
.s01e-footer-links { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-bottom: 14px; }
.s01e-footer-links a, .s01e-footer-links button { font-size: 1.2rem; color: var(--s01e-text); text-align: left; padding: 6px 0; }
.s01e-footer-promos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.s01e-footer-promos .s01e-btn { flex: 1 1 auto; min-height: 40px; padding: 8px 12px; font-size: 1.2rem; }
.s01e-footer-copy { font-size: 1.1rem; color: var(--s01e-muted); border-top: 1px solid rgba(255,255,255,0.05); padding-top: 10px; }

/* Mobile bottom nav */
.s01e-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: 62px;
  background: linear-gradient(180deg, var(--s01e-bg-2), #06101a);
  border-top: 1px solid rgba(0,191,255,0.2);
  display: flex; justify-content: space-around; align-items: stretch;
  z-index: 1000; padding-bottom: env(safe-area-inset-bottom);
}
.s01e-bottom-nav button, .s01e-bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--s01e-muted); font-size: 1.05rem; min-width: 60px; min-height: 60px;
  transition: color 0.15s ease, transform 0.15s ease; text-decoration: none;
}
.s01e-bottom-nav button:active, .s01e-bottom-nav a:active { transform: scale(0.92); }
.s01e-bottom-nav .s01e-bn-icon { font-size: 2.2rem; line-height: 1; }
.s01e-bottom-nav .s01e-bn-icon .material-symbols-outlined { font-size: 2.4rem; }
.s01e-bottom-nav .s01e-active-nav { color: var(--s01e-primary); }
.s01e-bottom-nav .s01e-bn-promo { color: var(--s01e-gold); }

/* Back to top */
.s01e-back-top {
  position: fixed; right: 14px; bottom: 76px; width: 44px; height: 44px;
  border-radius: 50%; background: var(--s01e-primary); color: #06223a;
  display: grid; place-items: center; font-size: 1.9rem;
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 999; box-shadow: var(--s01e-shadow-glow);
}
.s01e-back-top.s01e-visible { opacity: 1; visibility: visible; }

/* Desktop: hide bottom nav, widen container */
@media (min-width: 769px) {
  .s01e-bottom-nav { display: none; }
  .s01e-container { max-width: 960px; }
  .s01e-game-grid { grid-template-columns: repeat(6,1fr); }
  .s01e-feature-grid { grid-template-columns: repeat(4,1fr); }
  .s01e-testimonial-grid { grid-template-columns: repeat(2,1fr); }
  .s01e-carousel-track { height: 320px; }
  .s01e-footer { padding-bottom: 30px; }
}

/* Small phone safety */
@media (max-width: 360px) {
  .s01e-h1 { font-size: 2.2rem; }
  .s01e-game-grid { grid-template-columns: repeat(2,1fr); }
  .s01e-feature-grid { grid-template-columns: 1fr; }
}

/* Bottom padding so content is never hidden behind fixed nav */
@media (max-width: 768px) { body { padding-bottom: 80px; } main { padding-bottom: 80px; } }
