/* ============================================================
   Arion App - design-a550.css
   Mobile-first (max 430px) casino / gaming styles.
   All custom classes use the "g501-" prefix.
   Palette: #1E1E1E | #E0FFFF | #DC143C | #FA8072 | #FF4500
   ============================================================ */

:root {
  --g501-bg: #1E1E1E;
  --g501-bg-alt: #151515;
  --g501-card: #262626;
  --g501-text: #E0FFFF;
  --g501-muted: #9fb3b3;
  --g501-primary: #DC143C;
  --g501-accent: #FA8072;
  --g501-hot: #FF4500;
  --g501-border: rgba(224, 255, 255, 0.08);
  --g501-radius: 14px;
  --g501-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--g501-bg);
  color: var(--g501-text);
  line-height: 1.5;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--g501-accent); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }

.g501-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--g501-primary); color: #fff;
  padding: 8px 12px; z-index: 99999;
}
.g501-skip:focus { left: 0; }

/* ---------- Header ---------- */
.g501-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #161616 0%, #1E1E1E 100%);
  border-bottom: 1px solid var(--g501-border);
  box-shadow: var(--g501-shadow);
}
.g501-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1rem;
}
.g501-brand { display: flex; align-items: center; gap: 0.6rem; }
.g501-brand img { width: 28px; height: 28px; border-radius: 6px; }
.g501-brand-name {
  font-size: 1.7rem; font-weight: 800; letter-spacing: 0.3px;
  background: linear-gradient(90deg, #FF4500, #FA8072, #E0FFFF);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.g501-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.g501-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.3rem;
  border-radius: 30px;
  font-size: 1.35rem; font-weight: 700;
  min-height: 38px; min-width: 44px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.g501-btn:active { transform: scale(0.96); }
.g501-btn-login {
  background: transparent; color: var(--g501-text);
  border: 1px solid var(--g501-accent);
}
.g501-btn-register {
  background: linear-gradient(90deg, var(--g501-hot), var(--g501-primary));
  color: #fff; box-shadow: 0 4px 12px rgba(220, 20, 60, 0.45);
}
.g501-icon-btn {
  background: transparent; color: var(--g501-text);
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 2rem; display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Mobile nav drawer ---------- */
.g501-nav-drawer {
  position: fixed; top: 0; left: 0; right: 0;
  background: #111; padding: 6rem 1rem 2rem;
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 9999; border-bottom: 1px solid var(--g501-border);
}
.g501-nav-drawer.g501-nav-open { max-height: 80vh; overflow-y: auto; }
.g501-nav-list { list-style: none; }
.g501-nav-list li { border-bottom: 1px solid var(--g501-border); }
.g501-nav-list a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1.2rem 0.6rem;
  color: var(--g501-text); font-weight: 600;
}
.g501-nav-list a i { color: var(--g501-hot); width: 22px; text-align: center; }

/* ---------- Main layout ---------- */
.g501-main { padding-top: 6.2rem; padding-bottom: 8.5rem; }
.g501-section { padding: 1.6rem 1rem; }
.g501-section-alt { background: var(--g501-bg-alt); }

.g501-h1 {
  font-size: 2.1rem; font-weight: 800; margin-bottom: 0.6rem;
  background: linear-gradient(90deg, #FF4500, #E0FFFF);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.g501-h2 {
  font-size: 1.8rem; font-weight: 700; color: var(--g501-text);
  margin-bottom: 0.7rem; border-left: 4px solid var(--g501-hot);
  padding-left: 0.8rem;
}
.g501-h3 {
  font-size: 1.5rem; font-weight: 700; color: var(--g501-accent);
  margin: 1rem 0 0.4rem;
}
.g501-p { margin-bottom: 0.9rem; color: #d6f7f7; }
.g501-muted { color: var(--g501-muted); }

/* ---------- Carousel ---------- */
.g501-carousel {
  position: relative; border-radius: var(--g501-radius);
  overflow: hidden; margin-bottom: 1rem; box-shadow: var(--g501-shadow);
}
.g501-carousel-viewport { overflow: hidden; }
.g501-carousel-track {
  display: flex; transition: transform 0.5s ease;
}
.g501-carousel-slide {
  flex: 0 0 100%; position: relative; cursor: pointer;
}
.g501-carousel-slide img { width: 100%; height: 180px; object-fit: cover; }
.g501-carousel-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  padding: 1.4rem 1rem 0.8rem;
}
.g501-carousel-cap b { color: #FFD34D; }
.g501-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(220, 20, 60, 0.8); color: #fff;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.g501-carousel-arrow.g501-prev { left: 6px; }
.g501-carousel-arrow.g501-next { right: 6px; }
.g501-carousel-dots {
  display: flex; justify-content: center; gap: 6px; padding: 0.4rem 0;
}
.g501-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(224, 255, 255, 0.35);
}
.g501-carousel-dot.g501-dot-active { background: var(--g501-hot); }

/* ---------- CTA ---------- */
.g501-cta {
  display: block; width: 100%;
  background: linear-gradient(90deg, var(--g501-hot), var(--g501-primary));
  color: #fff; text-align: center;
  padding: 1.4rem; border-radius: var(--g501-radius);
  font-size: 1.7rem; font-weight: 800; margin: 1rem 0;
  box-shadow: 0 6px 18px rgba(255, 69, 0, 0.45);
}
.g501-cta:active { transform: scale(0.98); }
.g501-cta-inline { color: #FFD34D; font-weight: 700; text-decoration: underline; }

/* ---------- Filter tabs ---------- */
.g501-filter-row {
  display: flex; gap: 0.5rem; overflow-x: auto;
  padding: 0.4rem 0 1rem; -webkit-overflow-scrolling: touch;
}
.g501-filter-tab {
  flex: 0 0 auto; padding: 0.6rem 1.1rem;
  border-radius: 20px; background: var(--g501-card);
  color: var(--g501-text); font-size: 1.3rem; font-weight: 600;
  border: 1px solid var(--g501-border);
}
.g501-filter-tab.g501-tab-active {
  background: linear-gradient(90deg, var(--g501-hot), var(--g501-primary));
  border-color: transparent;
}

/* ---------- Game grid ---------- */
.g501-game-group { margin-bottom: 1.4rem; }
.g501-group-title {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1.6rem; font-weight: 700; margin: 0.4rem 0 0.8rem;
  color: var(--g501-text);
}
.g501-group-title i { color: var(--g501-hot); }
.g501-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.g501-game {
  display: flex; flex-direction: column; align-items: center;
  background: var(--g501-card); border-radius: 12px;
  padding: 0.55rem 0.35rem; text-align: center;
  border: 1px solid var(--g501-border);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.g501-game:active { transform: scale(0.96); border-color: var(--g501-hot); }
.g501-game img {
  width: 100%; height: 70px; object-fit: cover;
  border-radius: 8px; margin-bottom: 0.35rem;
}
.g501-game-name {
  font-size: 1.05rem; color: var(--g501-text); font-weight: 600;
  line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%;
}

/* ---------- Cards ---------- */
.g501-card {
  background: var(--g501-card); border-radius: var(--g501-radius);
  padding: 1.2rem; margin-bottom: 1rem;
  border: 1px solid var(--g501-border);
  box-shadow: var(--g501-shadow);
}
.g501-card-row { display: flex; gap: 0.9rem; align-items: flex-start; }
.g501-card-row i { color: var(--g501-hot); font-size: 1.8rem; margin-top: 2px; }
.g501-badge {
  display: inline-block; padding: 0.25rem 0.7rem;
  background: rgba(255, 69, 0, 0.18); color: var(--g501-hot);
  border-radius: 12px; font-size: 1.1rem; font-weight: 700;
  margin-right: 0.4rem;
}

/* ---------- RTP table ---------- */
.g501-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.25rem; }
.g501-rtp-table th, .g501-rtp-table td {
  padding: 0.7rem 0.5rem; text-align: left;
  border-bottom: 1px solid var(--g501-border);
}
.g501-rtp-table th { color: var(--g501-accent); }
.g501-rtp-table td.g501-rtp-high { color: #6BFF8E; font-weight: 700; }

/* ---------- Testimonials ---------- */
.g501-testi {
  background: var(--g501-card); border-radius: 12px;
  padding: 1rem; margin-bottom: 0.8rem;
  border-left: 3px solid var(--g501-accent);
}
.g501-testi b { color: var(--g501-hot); }
.g501-stars { color: #FFD34D; font-size: 1.2rem; }

/* ---------- Payment chips ---------- */
.g501-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.g501-chip {
  background: var(--g501-card); padding: 0.6rem 1rem;
  border-radius: 20px; font-size: 1.2rem; font-weight: 600;
  border: 1px solid var(--g501-border);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.g501-chip i { color: var(--g501-accent); }

/* ---------- Winners ticker ---------- */
.g501-winners {
  background: linear-gradient(90deg, #2a0a0a, #1E1E1E);
  border-radius: 10px; padding: 0.6rem 0.9rem;
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 0.5rem; font-size: 1.25rem;
}
.g501-winners b { color: #FFD34D; }
.g501-winners i { color: var(--g501-hot); }

/* ---------- FAQ ---------- */
.g501-faq-item {
  background: var(--g501-card); border-radius: 10px;
  padding: 0.9rem 1rem; margin-bottom: 0.6rem;
  border: 1px solid var(--g501-border);
}
.g501-faq-q { font-weight: 700; color: var(--g501-accent); margin-bottom: 0.3rem; }

/* ---------- Footer ---------- */
.g501-footer {
  background: #111; border-top: 1px solid var(--g501-border);
  padding: 1.6rem 1rem 2rem;
}
.g501-footer p { color: var(--g501-muted); font-size: 1.3rem; margin-bottom: 0.8rem; }
.g501-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem;
}
.g501-footer-links a {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.45rem 0.9rem; border-radius: 16px;
  background: var(--g501-card); color: var(--g501-text);
  font-size: 1.15rem; font-weight: 600;
  border: 1px solid var(--g501-border);
}
.g501-footer-links a i { color: var(--g501-hot); font-size: 1.2rem; }
.g501-footer-copy {
  color: #6f8a8a; font-size: 1.1rem; text-align: center;
  border-top: 1px solid var(--g501-border); padding-top: 0.9rem;
}

/* ---------- Mobile bottom nav ---------- */
.g501-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #1a1a1a 0%, #0c0c0c 100%);
  border-top: 1px solid var(--g501-border);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 62px;
}
.g501-bottom-nav a, .g501-bottom-nav button {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; color: var(--g501-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 1rem; font-weight: 600;
  border-right: 1px solid var(--g501-border);
  transition: color 0.15s ease, transform 0.15s ease;
}
.g501-bottom-nav a:last-child, .g501-bottom-nav button:last-child { border-right: none; }
.g501-bottom-nav a i, .g501-bottom-nav button i,
.g501-bottom-nav a span.material-symbols-outlined,
.g501-bottom-nav button span.material-symbols-outlined {
  font-size: 22px; line-height: 1;
}
.g501-bottom-nav a:active, .g501-bottom-nav button:active { transform: scale(0.92); }
.g501-bottom-nav .g501-active { color: var(--g501-hot); }
.g501-nav-badge {
  position: relative;
}
.g501-nav-badge::after {
  content: "5"; position: absolute; top: 6px; right: 18px;
  background: var(--g501-primary); color: #fff;
  font-size: 0.9rem; font-weight: 700;
  border-radius: 50%; width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  body { max-width: 430px; box-shadow: 0 0 30px rgba(0,0,0,0.5); }
  .g501-bottom-nav { display: none; }
  .g501-main { padding-bottom: 2rem; }
}

/* ---------- Utility ---------- */
.g501-text-center { text-align: center; }
.g501-row { display: flex; gap: 0.6rem; align-items: center; }
.g501-hidden { display: none !important; }
