/* Arion Play Theme CSS */
/* All classes use prefix 'v341-' for namespace isolation */

/* CSS Variables */
:root {
  --v341-primary: #9966CC;
  --v341-bg: #0D1117;
  --v341-text: #E9ECEF;
  --v341-text-secondary: #8B949E;
  --v341-border: #30363D;
  --v341-accent: #58A6FF;
  --v341-success: #238636;
  --v341-warning: #F85149;
  --v341-gradient: linear-gradient(135deg, #9966CC 0%, #7C4DFF 100%);
  --v341-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  --v341-radius: 8px;
  --v341-transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--v341-text);
  background-color: var(--v341-bg);
  overflow-x: hidden;
  position: relative;
  padding-bottom: 8rem; /* Space for bottom nav */
}

body.menu-open {
  overflow: hidden;
}

body.loaded {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Typography */
.v341-h1, .v341-h2, .v341-h3, .v341-h4, .v341-h5, .v341-h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.v341-h1 { font-size: 2.4rem; }
.v341-h2 { font-size: 2rem; }
.v341-h3 { font-size: 1.8rem; }
.v341-h4 { font-size: 1.6rem; }
.v341-h5 { font-size: 1.4rem; }
.v341-h6 { font-size: 1.2rem; }

.v341-text-primary { color: var(--v341-primary); }
.v341-text-secondary { color: var(--v341-text-secondary); }
.v341-text-accent { color: var(--v341-accent); }

/* Layout */
.v341-container {
  width: 100%;
  max-width: 43rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.v341-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.v341-main {
  flex: 1;
  padding-top: 6rem; /* Space for fixed header */
}

.v341-grid {
  display: grid;
  gap: 1.5rem;
}

.v341-flex {
  display: flex;
}

.v341-flex-col { flex-direction: column; }
.v341-flex-between { justify-content: space-between; }
.v341-flex-center { justify-content: center; align-items: center; }
.v341-flex-wrap { flex-wrap: wrap; }

.v341-gap-1 { gap: 0.5rem; }
.v341-gap-2 { gap: 1rem; }
.v341-gap-3 { gap: 1.5rem; }

/* Header */
.v341-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--v341-border);
  transition: var(--v341-transition);
}

.v341-header.scrolled {
  background: rgba(13, 17, 23, 0.98);
  box-shadow: var(--v341-shadow);
}

.v341-header.hide-header {
  transform: translateY(-100%);
}

.v341-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  height: 6rem;
}

.v341-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--v341-text);
}

.v341-logo-icon {
  width: 2.8rem;
  height: 2.8rem;
  background: var(--v341-gradient);
  border-radius: var(--v341-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.6rem;
}

.v341-logo-text {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--v341-primary);
}

.v341-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.v341-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  font-size: 1.4rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: var(--v341-radius);
  cursor: pointer;
  transition: var(--v341-transition);
  white-space: nowrap;
  min-height: 4.4rem; /* Touch-friendly */
}

.v341-btn-primary {
  background: var(--v341-gradient);
  color: white;
  box-shadow: var(--v341-shadow);
}

.v341-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(153, 102, 204, 0.4);
}

.v341-btn-secondary {
  background: transparent;
  color: var(--v341-text);
  border: 1px solid var(--v341-border);
}

.v341-btn-secondary:hover {
  background: var(--v341-border);
  border-color: var(--v341-primary);
}

.v341-menu-toggle {
  width: 4.4rem;
  height: 4.4rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--v341-border);
  border-radius: var(--v341-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: var(--v341-transition);
}

.v341-menu-toggle span {
  width: 2rem;
  height: 0.2rem;
  background: var(--v341-text);
  transition: var(--v341-transition);
}

.v341-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.v341-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.v341-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

/* Mobile Menu */
.v341-mobile-menu {
  position: fixed;
  top: 6rem;
  right: -100%;
  width: 80%;
  max-width: 30rem;
  height: calc(100vh - 6rem);
  background: var(--v341-bg);
  border-left: 1px solid var(--v341-border);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.v341-mobile-menu.active {
  right: 0;
}

.v341-menu-overlay {
  position: fixed;
  top: 6rem;
  left: 0;
  width: 100%;
  height: calc(100vh - 6rem);
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--v341-transition);
}

.v341-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.v341-menu-list {
  list-style: none;
  padding: 1.5rem;
}

.v341-menu-item {
  border-bottom: 1px solid var(--v341-border);
}

.v341-menu-link {
  display: block;
  padding: 1.5rem 1rem;
  color: var(--v341-text);
  text-decoration: none;
  font-size: 1.6rem;
  transition: var(--v341-transition);
}

.v341-menu-link:hover {
  color: var(--v341-primary);
  background: rgba(153, 102, 204, 0.1);
}

/* Carousel */
.v341-carousel {
  position: relative;
  width: 100%;
  height: 20rem;
  overflow: hidden;
  border-radius: var(--v341-radius);
  margin: 2rem 0;
}

.v341-carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.v341-carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.v341-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v341-carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 2rem 1.5rem 1.5rem;
  color: white;
}

.v341-carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
}

.v341-carousel-btn {
  width: 4rem;
  height: 4rem;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  pointer-events: all;
  transition: var(--v341-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.v341-carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.v341-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.v341-carousel-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--v341-transition);
}

.v341-carousel-dot.active {
  background: var(--v341-primary);
  width: 2rem;
  border-radius: 0.4rem;
}

/* Cards */
.v341-card {
  background: rgba(30, 36, 46, 0.8);
  border: 1px solid var(--v341-border);
  border-radius: var(--v341-radius);
  padding: 1.5rem;
  transition: var(--v341-transition);
}

.v341-card:hover {
  border-color: var(--v341-primary);
  box-shadow: var(--v341-shadow);
}

/* Game Components */
.v341-game-section {
  margin: 3rem 0;
}

.v341-game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.v341-game-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--v341-primary);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.v341-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 1rem;
}

.v341-game-card {
  background: rgba(30, 36, 46, 0.8);
  border: 1px solid var(--v341-border);
  border-radius: var(--v341-radius);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--v341-transition);
  position: relative;
  overflow: hidden;
}

.v341-game-card:hover {
  transform: translateY(-0.3rem);
  border-color: var(--v341-primary);
  box-shadow: var(--v341-shadow);
}

.v341-game-icon {
  width: 100%;
  height: 6rem;
  object-fit: contain;
  margin-bottom: 0.8rem;
  border-radius: 0.4rem;
}

.v341-game-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--v341-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sections */
.v341-section {
  margin: 3rem 0;
}

.v341-section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.v341-section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--v341-primary);
  margin-bottom: 0.5rem;
}

.v341-section-subtitle {
  font-size: 1.4rem;
  color: var(--v341-text-secondary);
}

/* Bottom Navigation */
.v341-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6rem;
  background: var(--v341-bg);
  border-top: 1px solid var(--v341-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.5rem 0;
}

.v341-bottom-nav-item {
  flex: 1;
  text-align: center;
  position: relative;
}

.v341-bottom-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.5rem;
  color: var(--v341-text-secondary);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--v341-transition);
  min-height: 5rem;
  border-radius: var(--v341-radius);
}

.v341-bottom-nav-link:hover {
  color: var(--v341-primary);
  background: rgba(153, 102, 204, 0.1);
}

.v341-bottom-nav-item.active .v341-bottom-nav-link {
  color: var(--v341-primary);
}

.v341-bottom-nav-icon {
  font-size: 2.4rem;
  transition: var(--v341-transition);
}

.v341-bottom-nav-item.clicked .v341-bottom-nav-icon {
  transform: scale(0.9);
}

/* Footer */
.v341-footer {
  background: rgba(10, 14, 20, 0.8);
  border-top: 1px solid var(--v341-border);
  padding: 3rem 0 2rem;
  margin-bottom: 6rem; /* Space for bottom nav */
}

.v341-footer-content {
  margin-bottom: 2rem;
}

.v341-footer-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--v341-primary);
  margin-bottom: 1rem;
}

.v341-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.v341-footer-link {
  color: var(--v341-text-secondary);
  text-decoration: none;
  font-size: 1.3rem;
  transition: var(--v341-transition);
}

.v341-footer-link:hover {
  color: var(--v341-primary);
}

.v341-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
}

.v341-partner-icon {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--v341-transition);
}

.v341-partner-icon:hover {
  opacity: 1;
}

.v341-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--v341-text-secondary);
  padding-top: 2rem;
  border-top: 1px solid var(--v341-border);
}

/* Utility Classes */
.v341-text-center { text-align: center; }
.v341-text-left { text-align: left; }
.v341-text-right { text-align: right; }

.v341-mb-1 { margin-bottom: 0.5rem; }
.v341-mb-2 { margin-bottom: 1rem; }
.v341-mb-3 { margin-bottom: 1.5rem; }
.v341-mb-4 { margin-bottom: 2rem; }

.v341-mt-1 { margin-top: 0.5rem; }
.v341-mt-2 { margin-top: 1rem; }
.v341-mt-3 { margin-top: 1.5rem; }
.v341-mt-4 { margin-top: 2rem; }

.v341-p-1 { padding: 0.5rem; }
.v341-p-2 { padding: 1rem; }
.v341-p-3 { padding: 1.5rem; }
.v341-p-4 { padding: 2rem; }

.v341-hidden { display: none; }
.v341-visible { display: block; }

/* Responsive Design */
@media (max-width: 768px) {
  .v341-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
  }

  .v341-carousel {
    height: 18rem;
  }

  .v341-h1 { font-size: 2rem; }
  .v341-h2 { font-size: 1.8rem; }
  .v341-h3 { font-size: 1.6rem; }
}

@media (min-width: 769px) {
  .v341-bottom-nav {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  .v341-footer {
    margin-bottom: 0;
  }
}

/* Loading States */
.v341-loading {
  position: relative;
  overflow: hidden;
}

.v341-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 0.6rem;
}

::-webkit-scrollbar-track {
  background: var(--v341-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--v341-primary);
  border-radius: 0.3rem;
}

::-webkit-scrollbar-thumb:hover {
  background: #7C4DFF;
}

/* App Page Specific Styles */
.v341-app-hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(153, 102, 204, 0.1) 0%, rgba(13, 17, 23, 0) 100%);
}

.v341-app-showcase {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.v341-app-mockup {
  flex: 1;
  text-align: center;
}

.v341-app-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--v341-radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.v341-app-info {
  flex: 1;
}

.v341-app-subtitle {
  font-size: 1.6rem;
  color: var(--v341-text-secondary);
  margin-bottom: 2rem;
}

.v341-app-features {
  list-style: none;
  margin-bottom: 3rem;
}

.v341-app-features li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.v341-app-features i {
  color: var(--v341-success);
  width: 2rem;
}

.v341-app-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.v341-app-version {
  font-size: 1.2rem;
  color: var(--v341-text-secondary);
}

.v341-download-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.v341-step {
  text-align: center;
}

.v341-step-number {
  width: 4rem;
  height: 4rem;
  background: var(--v341-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin: 0 auto 1rem;
}

.v341-screenshot-gallery {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0;
}

.v341-screenshot {
  width: 20rem;
  height: auto;
  border-radius: var(--v341-radius);
  box-shadow: var(--v341-shadow);
  flex-shrink: 0;
}

.v341-provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 2rem;
  text-align: center;
}

.v341-provider-item {
  padding: 1.5rem;
  border: 1px solid var(--v341-border);
  border-radius: var(--v341-radius);
  transition: var(--v341-transition);
}

.v341-provider-item:hover {
  border-color: var(--v341-primary);
  transform: translateY(-2px);
}

.v341-provider-logo {
  width: 8rem;
  height: 4rem;
  object-fit: contain;
  margin-bottom: 1rem;
}

.v341-promo-card {
  border: 2px solid var(--v341-primary);
  position: relative;
}

.v341-promo-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: var(--v341-gradient);
  border-radius: var(--v341-radius);
  z-index: -1;
}

.v341-review {
  border-left: 4px solid var(--v341-primary);
}

.v341-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.v341-review-rating {
  color: #FFD700;
}

.v341-review-name {
  font-weight: 600;
  color: var(--v341-text-secondary);
}

.v341-jackpot-amount {
  font-size: 2.4rem;
  font-weight: bold;
  color: var(--v341-primary);
  margin: 1rem 0;
}

.v341-rtp-table {
  display: grid;
  gap: 1rem;
}

.v341-rtp-header {
  display: grid;
  grid-template-columns: 4rem 1fr 8rem 8rem 8rem;
  gap: 1rem;
  padding: 1rem;
  background: rgba(153, 102, 204, 0.1);
  border-radius: var(--v341-radius);
  font-weight: 600;
}

.v341-rtp-row {
  display: grid;
  grid-template-columns: 4rem 1fr 8rem 8rem 8rem;
  gap: 1rem;
  padding: 1rem;
  background: rgba(30, 36, 46, 0.5);
  border-radius: var(--v341-radius);
  align-items: center;
  transition: var(--v341-transition);
}

.v341-rtp-row:hover {
  background: rgba(153, 102, 204, 0.1);
}

.v341-rtp-icon {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  margin-right: 1rem;
}

.v341-rtp-game {
  display: flex;
  align-items: center;
}

.v341-rtp-value {
  font-weight: bold;
  color: var(--v341-success);
}

.v341-rtp-category-avg {
  font-size: 2.4rem;
  font-weight: bold;
  color: var(--v341-primary);
  margin: 1rem 0;
}

.v341-update-info {
  background: rgba(153, 102, 204, 0.1);
  padding: 1.5rem;
  border-radius: var(--v341-radius);
  border-left: 4px solid var(--v341-primary);
}

.v341-faq-list {
  display: grid;
  gap: 2rem;
}

.v341-faq-item {
  padding: 1.5rem;
  background: rgba(30, 36, 46, 0.5);
  border-radius: var(--v341-radius);
  border-left: 4px solid var(--v341-primary);
}

.v341-game-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.v341-game-media {
  text-align: center;
}

.v341-game-main-image {
  width: 100%;
  max-width: 30rem;
  height: auto;
  border-radius: var(--v341-radius);
  box-shadow: var(--v341-shadow);
}

.v341-game-rating {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.v341-rating-stars {
  color: #FFD700;
}

.v341-rating-text {
  color: var(--v341-text-secondary);
}

.v341-game-stats {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
}

.v341-stat-item {
  text-align: center;
}

.v341-stat-label {
  display: block;
  color: var(--v341-text-secondary);
  font-size: 1.2rem;
}

.v341-stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--v341-primary);
}

.v341-game-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.v341-btn-large {
  padding: 1.2rem 2.4rem;
  font-size: 1.6rem;
}

.v341-featured {
  border: 2px solid var(--v341-primary);
  position: relative;
}

.v341-featured::after {
  content: 'FEATURED';
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--v341-gradient);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: bold;
}

.v341-new {
  position: relative;
  overflow: hidden;
}

.v341-game-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--v341-warning);
  color: white;
  padding: 0.2rem 0.8rem;
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: bold;
}

@media (max-width: 768px) {
  .v341-app-showcase {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .v341-app-buttons {
    flex-direction: column;
    align-items: center;
  }

  .v341-game-showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .v341-game-stats {
    justify-content: center;
    flex-wrap: wrap;
  }

  .v341-game-buttons {
    flex-direction: column;
  }

  .v341-screenshot-gallery {
    justify-content: flex-start;
  }

  .v341-rtp-header,
  .v341-rtp-row {
    grid-template-columns: 4rem 1fr 8rem 8rem;
  }

  .v341-rtp-row > div:last-child {
    display: none;
  }
}