/**
 * Spin Time - Core Stylesheet
 * All classes use w0d4f- prefix for namespace isolation
 * Color palette: #CED4DA | #2E8B57 | #90EE90 | #5D5D5D | #FFB74D | #333333
 * @version 1.0.0
 */

:root {
  --w0d4f-primary: #2E8B57;
  --w0d4f-primary-dark: #236B43;
  --w0d4f-primary-light: #90EE90;
  --w0d4f-bg-dark: #333333;
  --w0d4f-bg-darker: #1A1A2E;
  --w0d4f-bg-card: #2A2A3E;
  --w0d4f-bg-surface: #3A3A4E;
  --w0d4f-text-light: #CED4DA;
  --w0d4f-text-white: #F0F0F0;
  --w0d4f-accent: #FFB74D;
  --w0d4f-accent-glow: #FFD54F;
  --w0d4f-muted: #5D5D5D;
  --w0d4f-border: rgba(206,212,218,0.15);
  --w0d4f-radius: 8px;
  --w0d4f-radius-lg: 12px;
  --w0d4f-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

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

a {
  color: var(--w0d4f-accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--w0d4f-accent-glow); }

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

/* === HEADER === */
.w0d4f-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, var(--w0d4f-bg-darker) 0%, #16213E 100%);
  z-index: 1000;
  border-bottom: 2px solid var(--w0d4f-primary);
  padding: 0 1rem;
}

.w0d4f-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.w0d4f-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.w0d4f-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.w0d4f-logo-area span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w0d4f-accent);
  letter-spacing: 0.5px;
}

.w0d4f-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.w0d4f-btn-register {
  background: linear-gradient(135deg, var(--w0d4f-primary) 0%, #3CB371 100%);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--w0d4f-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.w0d4f-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(46,139,87,0.5);
}

.w0d4f-btn-login {
  background: transparent;
  color: var(--w0d4f-accent);
  border: 1.5px solid var(--w0d4f-accent);
  padding: 5px 13px;
  border-radius: var(--w0d4f-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.w0d4f-btn-login:hover {
  background: var(--w0d4f-accent);
  color: var(--w0d4f-bg-darker);
}

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

/* === MOBILE MENU === */
.w0d4f-mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  background: var(--w0d4f-bg-darker);
  border-top: 1px solid var(--w0d4f-border);
}

.w0d4f-mobile-menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--w0d4f-text-light);
  font-size: 1.3rem;
  border-bottom: 1px solid var(--w0d4f-border);
  transition: background 0.2s;
}
.w0d4f-mobile-menu a:hover {
  background: rgba(46,139,87,0.15);
  color: var(--w0d4f-accent);
}

/* === MAIN CONTENT === */
.w0d4f-main {
  padding-top: 52px;
}

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

/* === CAROUSEL === */
.w0d4f-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16/7;
}

.w0d4f-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.w0d4f-carousel-slide {
  min-width: 100%;
  height: 100%;
  cursor: pointer;
}

.w0d4f-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w0d4f-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.w0d4f-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.w0d4f-dot-active {
  background: var(--w0d4f-accent);
}

/* === SECTION TITLES === */
.w0d4f-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w0d4f-accent);
  padding: 1.2rem 1rem 0.6rem;
  border-left: 4px solid var(--w0d4f-primary);
  margin: 1rem 1rem 0.5rem;
}

.w0d4f-section-subtitle {
  font-size: 1.4rem;
  color: var(--w0d4f-text-light);
  margin: 0 1rem 0.5rem;
  opacity: 0.8;
}

/* === GAME GRID === */
.w0d4f-game-section {
  padding: 0.5rem 0;
}

.w0d4f-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 10px;
}

.w0d4f-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s;
  border-radius: var(--w0d4f-radius);
  padding: 6px 4px;
  background: var(--w0d4f-bg-card);
  border: 1px solid var(--w0d4f-border);
}
.w0d4f-game-item:hover {
  transform: translateY(-2px);
  border-color: var(--w0d4f-primary);
}

.w0d4f-game-item img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  margin-bottom: 4px;
  object-fit: cover;
}

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

/* === CONTENT BLOCKS === */
.w0d4f-content-block {
  padding: 1rem;
  margin: 0.5rem 1rem;
  background: var(--w0d4f-bg-card);
  border-radius: var(--w0d4f-radius-lg);
  border: 1px solid var(--w0d4f-border);
}

.w0d4f-content-block h2 {
  font-size: 1.6rem;
  color: var(--w0d4f-accent);
  margin-bottom: 0.6rem;
}

.w0d4f-content-block h3 {
  font-size: 1.4rem;
  color: var(--w0d4f-primary-light);
  margin: 0.8rem 0 0.4rem;
}

.w0d4f-content-block p {
  font-size: 1.3rem;
  line-height: 1.6rem;
  color: var(--w0d4f-text-light);
  margin-bottom: 0.6rem;
}

.w0d4f-content-block ul {
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
}

.w0d4f-content-block li {
  font-size: 1.3rem;
  line-height: 1.5rem;
  color: var(--w0d4f-text-light);
  margin-bottom: 0.3rem;
}

/* === PROMO BUTTON === */
.w0d4f-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--w0d4f-primary), #3CB371);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--w0d4f-radius);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.w0d4f-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(46,139,87,0.4);
}

.w0d4f-promo-text {
  color: var(--w0d4f-accent);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}
.w0d4f-promo-text:hover {
  color: var(--w0d4f-accent-glow);
  text-decoration: underline;
}

/* === CTA SECTION === */
.w0d4f-cta-section {
  text-align: center;
  padding: 1.5rem 1rem;
  margin: 1rem;
  background: linear-gradient(135deg, var(--w0d4f-bg-card), var(--w0d4f-bg-surface));
  border-radius: var(--w0d4f-radius-lg);
  border: 1px solid var(--w0d4f-primary);
}

.w0d4f-cta-section h2 {
  font-size: 1.8rem;
  color: var(--w0d4f-accent);
  margin-bottom: 0.8rem;
}

.w0d4f-cta-section p {
  font-size: 1.3rem;
  color: var(--w0d4f-text-light);
  margin-bottom: 1rem;
}

/* === STATS GRID === */
.w0d4f-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 1rem;
}

.w0d4f-stat-card {
  background: var(--w0d4f-bg-card);
  border: 1px solid var(--w0d4f-border);
  border-radius: var(--w0d4f-radius);
  padding: 1rem;
  text-align: center;
}

.w0d4f-stat-card .w0d4f-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--w0d4f-accent);
}

.w0d4f-stat-card .w0d4f-stat-label {
  font-size: 1.1rem;
  color: var(--w0d4f-text-light);
  margin-top: 4px;
}

/* === TESTIMONIALS === */
.w0d4f-testimonial {
  background: var(--w0d4f-bg-card);
  border: 1px solid var(--w0d4f-border);
  border-radius: var(--w0d4f-radius);
  padding: 1rem;
  margin: 0.5rem 1rem;
}

.w0d4f-testimonial-name {
  font-weight: 600;
  color: var(--w0d4f-accent);
  font-size: 1.3rem;
}

.w0d4f-testimonial-text {
  font-size: 1.2rem;
  color: var(--w0d4f-text-light);
  margin-top: 4px;
  font-style: italic;
}

/* === FOOTER === */
.w0d4f-footer {
  background: var(--w0d4f-bg-darker);
  border-top: 2px solid var(--w0d4f-primary);
  padding: 1.5rem 1rem 2rem;
  margin-top: 1rem;
}

.w0d4f-footer-brand {
  font-size: 1.3rem;
  color: var(--w0d4f-text-light);
  line-height: 1.6rem;
  margin-bottom: 1rem;
}

.w0d4f-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
}

.w0d4f-footer-links a {
  background: var(--w0d4f-bg-surface);
  color: var(--w0d4f-text-light);
  padding: 6px 12px;
  border-radius: var(--w0d4f-radius);
  font-size: 1.1rem;
  border: 1px solid var(--w0d4f-border);
  transition: background 0.2s, color 0.2s;
}
.w0d4f-footer-links a:hover {
  background: var(--w0d4f-primary);
  color: #fff;
}

.w0d4f-footer-copy {
  font-size: 1.1rem;
  color: var(--w0d4f-muted);
  text-align: center;
  border-top: 1px solid var(--w0d4f-border);
  padding-top: 1rem;
}

/* === BOTTOM NAV === */
.w0d4f-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #16213E 0%, var(--w0d4f-bg-darker) 100%);
  border-top: 2px solid var(--w0d4f-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 4px;
}

.w0d4f-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  color: var(--w0d4f-text-light);
  cursor: pointer;
  transition: transform 0.15s, color 0.15s;
  border-radius: var(--w0d4f-radius);
  padding: 4px;
}

.w0d4f-bottom-nav-btn:hover,
.w0d4f-bottom-nav-active {
  color: var(--w0d4f-accent);
  transform: scale(1.08);
}

.w0d4f-bottom-nav-btn .w0d4f-bnav-icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 2px;
}

.w0d4f-bottom-nav-btn .w0d4f-bnav-label {
  font-size: 10px;
  line-height: 1.2;
}

@media (min-width: 769px) {
  .w0d4f-bottom-nav { display: none; }
}

/* === DESKTOP NAV === */
.w0d4f-desktop-nav {
  display: none;
}

@media (min-width: 769px) {
  .w0d4f-desktop-nav {
    display: flex;
    gap: 1rem;
  }
  .w0d4f-desktop-nav a {
    color: var(--w0d4f-text-light);
    font-size: 1.3rem;
    padding: 4px 8px;
    border-radius: var(--w0d4f-radius);
    transition: background 0.2s;
  }
  .w0d4f-desktop-nav a:hover {
    background: rgba(46,139,87,0.2);
    color: var(--w0d4f-accent);
  }
}

/* === WINNER MARQUEE === */
.w0d4f-winner-bar {
  background: var(--w0d4f-bg-card);
  padding: 6px 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  border-bottom: 1px solid var(--w0d4f-border);
}

.w0d4f-winner-bar span {
  font-size: 1.1rem;
  color: var(--w0d4f-accent);
  white-space: nowrap;
  font-weight: 600;
}

.w0d4f-winner-tag {
  background: rgba(255,183,77,0.15);
  color: var(--w0d4f-accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
}

/* === PAYMENT ICONS === */
.w0d4f-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 0.5rem 0;
}

.w0d4f-payment-item {
  background: var(--w0d4f-bg-surface);
  border: 1px solid var(--w0d4f-border);
  padding: 8px 14px;
  border-radius: var(--w0d4f-radius);
  font-size: 1.2rem;
  color: var(--w0d4f-text-light);
}

/* === RTP TABLE === */
.w0d4f-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}

.w0d4f-rtp-table th {
  background: var(--w0d4f-primary);
  color: #fff;
  padding: 6px 8px;
  text-align: left;
  font-weight: 600;
}

.w0d4f-rtp-table td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--w0d4f-border);
  color: var(--w0d4f-text-light);
}

.w0d4f-rtp-table tr:nth-child(even) td {
  background: rgba(0,0,0,0.15);
}

/* === FEATURE CARDS === */
.w0d4f-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 1rem;
}

.w0d4f-feature-card {
  background: var(--w0d4f-bg-card);
  border: 1px solid var(--w0d4f-border);
  border-radius: var(--w0d4f-radius);
  padding: 1rem;
  text-align: center;
  transition: border-color 0.2s;
}
.w0d4f-feature-card:hover {
  border-color: var(--w0d4f-primary);
}

.w0d4f-feature-card i {
  font-size: 2.4rem;
  color: var(--w0d4f-primary);
  margin-bottom: 6px;
}

.w0d4f-feature-card h3 {
  font-size: 1.3rem;
  color: var(--w0d4f-accent);
  margin-bottom: 4px;
}

.w0d4f-feature-card p {
  font-size: 1.1rem;
  color: var(--w0d4f-text-light);
}

/* === HELP CONTENT === */
.w0d4f-help-section {
  padding: 1rem;
  margin: 0.5rem 1rem;
  background: var(--w0d4f-bg-card);
  border-radius: var(--w0d4f-radius-lg);
  border: 1px solid var(--w0d4f-border);
}

.w0d4f-help-section h2 {
  font-size: 1.6rem;
  color: var(--w0d4f-accent);
  margin-bottom: 0.6rem;
}

.w0d4f-help-section h3 {
  font-size: 1.4rem;
  color: var(--w0d4f-primary-light);
  margin: 0.6rem 0 0.3rem;
}

.w0d4f-help-section p {
  font-size: 1.3rem;
  line-height: 1.6rem;
  color: var(--w0d4f-text-light);
  margin-bottom: 0.5rem;
}

.w0d4f-help-section ol,
.w0d4f-help-section ul {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.w0d4f-help-section li {
  font-size: 1.3rem;
  line-height: 1.5rem;
  color: var(--w0d4f-text-light);
  margin-bottom: 0.3rem;
}

/* === FAQ ITEM === */
.w0d4f-faq-item {
  background: var(--w0d4f-bg-card);
  border: 1px solid var(--w0d4f-border);
  border-radius: var(--w0d4f-radius);
  padding: 1rem;
  margin: 0.5rem 1rem;
}

.w0d4f-faq-item h3 {
  font-size: 1.3rem;
  color: var(--w0d4f-accent);
  margin-bottom: 0.4rem;
}

.w0d4f-faq-item p {
  font-size: 1.2rem;
  color: var(--w0d4f-text-light);
  line-height: 1.5rem;
}

/* === APP DOWNLOAD === */
.w0d4f-app-cta {
  text-align: center;
  padding: 1.5rem 1rem;
  margin: 1rem;
  background: linear-gradient(135deg, var(--w0d4f-primary-dark), var(--w0d4f-primary));
  border-radius: var(--w0d4f-radius-lg);
}

.w0d4f-app-cta h2 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.w0d4f-app-cta p {
  font-size: 1.3rem;
  color: var(--w0d4f-primary-light);
  margin-bottom: 1rem;
}

.w0d4f-app-cta .w0d4f-promo-btn {
  background: var(--w0d4f-accent);
  color: var(--w0d4f-bg-darker);
  font-size: 1.5rem;
  padding: 12px 32px;
}

/* === UTILITY === */
.w0d4f-text-center { text-align: center; }
.w0d4f-mt-1 { margin-top: 1rem; }
.w0d4f-mb-1 { margin-bottom: 1rem; }
.w0d4f-hidden { display: none; }
