/**
 * arionplay casino - Theme Stylesheet
 * Prefix: g373-
 * Color palette: #0F0F23 (bg), #FF69B4 (primary), #FFDFBA (text), #FFB3FF (accent), #3CB371 (green)
 * Mobile-first, max-width: 430px, root font: 62.5%
 */

/* === CSS Variables === */
:root {
  --g373-primary: #FF69B4;
  --g373-bg: #0F0F23;
  --g373-bg-light: #1a1a3e;
  --g373-bg-card: #16163a;
  --g373-text: #FFDFBA;
  --g373-text-light: #e8d4b0;
  --g373-accent: #FFB3FF;
  --g373-green: #3CB371;
  --g373-border: #2a2a5a;
  --g373-radius: 8px;
  --g373-shadow: 0 2px 12px rgba(255, 105, 180, 0.15);
  font-size: 62.5%;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5rem;
  background-color: var(--g373-bg);
  color: var(--g373-text);
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

a {
  color: var(--g373-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--g373-accent);
}

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

/* === Header === */
.g373-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  z-index: 1000;
  background: linear-gradient(135deg, #0F0F23 0%, #1a1a3e 100%);
  border-bottom: 1px solid var(--g373-border);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.g373-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.g373-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.g373-logo-area span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--g373-primary);
  letter-spacing: 0.5px;
}

.g373-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.g373-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  min-height: 32px;
}

.g373-btn-register {
  background: linear-gradient(135deg, var(--g373-green), #2ea060);
  color: #fff;
}

.g373-btn-register:hover {
  background: linear-gradient(135deg, #2ea060, var(--g373-green));
  transform: scale(1.05);
}

.g373-btn-login {
  background: linear-gradient(135deg, var(--g373-primary), #e0509a);
  color: #fff;
}

.g373-btn-login:hover {
  background: linear-gradient(135deg, #e0509a, var(--g373-primary));
  transform: scale(1.05);
}

.g373-menu-toggle {
  background: none;
  border: none;
  color: var(--g373-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

/* === Mobile Menu === */
.g373-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 15, 35, 0.97);
  z-index: 9999;
  display: none;
  flex-direction: column;
  padding: 6rem 2rem 2rem;
  overflow-y: auto;
}

.g373-menu-active {
  display: flex !important;
}

.g373-mobile-menu a {
  display: block;
  padding: 1.2rem 1rem;
  color: var(--g373-text);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--g373-border);
  transition: all 0.2s;
}

.g373-mobile-menu a:hover {
  color: var(--g373-primary);
  padding-left: 1.5rem;
  background: var(--g373-bg-light);
}

.g373-menu-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--g373-text);
  font-size: 2.4rem;
  cursor: pointer;
}

/* === Main Content === */
.g373-main {
  padding-top: 5.6rem;
  min-height: 100vh;
}

.g373-container {
  width: 100%;
  padding: 0 1rem;
  max-width: 430px;
  margin: 0 auto;
}

/* === Carousel === */
.g373-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--g373-radius);
  margin-bottom: 1.5rem;
}

.g373-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.g373-slide img {
  width: 100%;
  border-radius: var(--g373-radius);
  aspect-ratio: 16/9;
  object-fit: cover;
}

.g373-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.g373-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 223, 186, 0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.g373-dot-active {
  background: var(--g373-primary) !important;
}

/* === Section Headings === */
.g373-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g373-primary);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--g373-border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.g373-section-title i,
.g373-section-title .material-icons {
  font-size: 2rem;
}

/* === Game Grid === */
.g373-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.g373-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--g373-bg-card);
  border-radius: var(--g373-radius);
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.g373-game-card:hover {
  border-color: var(--g373-primary);
  transform: translateY(-2px);
  box-shadow: var(--g373-shadow);
}

.g373-game-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  margin-bottom: 0.3rem;
}

.g373-game-card span {
  font-size: 1rem;
  color: var(--g373-text-light);
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* === Content Modules === */
.g373-module {
  background: var(--g373-bg-card);
  border-radius: var(--g373-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--g373-border);
}

.g373-module h2 {
  font-size: 1.7rem;
  color: var(--g373-accent);
  margin-bottom: 1rem;
}

.g373-module h3 {
  font-size: 1.5rem;
  color: var(--g373-primary);
  margin: 1rem 0 0.5rem;
}

.g373-module p {
  color: var(--g373-text-light);
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.g373-module ul, .g373-module ol {
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;
}

.g373-module li {
  color: var(--g373-text-light);
  line-height: 1.8;
  margin-bottom: 0.3rem;
}

/* === CTA / Promo Button === */
.g373-cta-btn {
  display: block;
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(135deg, var(--g373-primary), #e0509a);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  margin: 1.5rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.g373-cta-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

/* === Promo Link === */
.g373-promo-link {
  color: var(--g373-primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.g373-promo-link:hover {
  color: var(--g373-accent);
}

/* === Footer === */
.g373-footer {
  background: var(--g373-bg-light);
  padding: 2rem 1rem 6rem;
  border-top: 1px solid var(--g373-border);
}

.g373-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.g373-footer-brand p {
  color: var(--g373-text-light);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.g373-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.g373-footer-links a {
  color: var(--g373-text);
  font-size: 1.1rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--g373-border);
  border-radius: 4px;
  transition: all 0.2s;
}

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

.g373-footer-copyright {
  text-align: center;
  color: rgba(255, 223, 186, 0.5);
  font-size: 1.1rem;
}

/* === Bottom Navigation === */
.g373-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  z-index: 1000;
  height: 60px;
  background: linear-gradient(180deg, #1a1a3e 0%, #0F0F23 100%);
  border-top: 1px solid var(--g373-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.3rem;
}

.g373-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--g373-text);
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0.3rem;
  border-radius: 8px;
}

.g373-nav-btn i,
.g373-nav-btn .material-icons,
.g373-nav-btn ion-icon,
.g373-nav-btn bi {
  font-size: 22px;
  margin-bottom: 2px;
}

.g373-nav-btn span {
  font-size: 10px;
  line-height: 1.2;
}

.g373-nav-btn:hover,
.g373-nav-active {
  color: var(--g373-primary);
  transform: scale(1.1);
}

.g373-nav-btn:active {
  transform: scale(0.95);
}

/* === Responsive === */
@media (min-width: 769px) {
  body {
    max-width: 430px;
  }
  .g373-bottom-nav {
    display: none;
  }
  .g373-main {
    padding-bottom: 0;
  }
}

@media (max-width: 768px) {
  .g373-main {
    padding-bottom: 80px;
  }
}

/* === Utilities === */
.g373-text-center { text-align: center; }
.g373-text-pink { color: var(--g373-primary); }
.g373-text-green { color: var(--g373-green); }
.g373-text-accent { color: var(--g373-accent); }
.g373-mt-1 { margin-top: 1rem; }
.g373-mb-1 { margin-bottom: 1rem; }
.g373-mb-2 { margin-bottom: 2rem; }
.g373-hidden { display: none; }
