/* Tamabet Core Stylesheet - All classes use s20d- prefix */
/* Color palette: #FFB74D | #FF8000 | #00CED1 | #0D1117 | #FFCCCB */

:root {
  --s20d-primary: #FF8000;
  --s20d-secondary: #00CED1;
  --s20d-accent: #FFB74D;
  --s20d-bg: #0D1117;
  --s20d-bg-light: #161b22;
  --s20d-bg-card: #1c2333;
  --s20d-text: #ffffff;
  --s20d-text-muted: #8b949e;
  --s20d-text-link: #FFB74D;
  --s20d-border: #30363d;
  --s20d-danger: #FFCCCB;
  --s20d-success: #00CED1;
  --s20d-radius: 8px;
  --s20d-radius-lg: 12px;
  --s20d-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --s20d-header-h: 56px;
  --s20d-bottom-h: 60px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background-color: var(--s20d-bg);
  color: var(--s20d-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--s20d-text-link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === Header === */
.s20d-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--s20d-header-h);
  background: var(--s20d-bg-light);
  border-bottom: 1px solid var(--s20d-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
}

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

.s20d-logo img {
  width: 28px;
  height: 28px;
}

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

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

.s20d-btn-register, .s20d-btn-login {
  padding: 0.5rem 1.2rem;
  border-radius: var(--s20d-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.s20d-btn-register {
  background: var(--s20d-primary);
  color: #fff;
}

.s20d-btn-register:hover {
  background: #e67300;
  transform: scale(1.03);
}

.s20d-btn-login {
  background: transparent;
  color: var(--s20d-secondary);
  border: 1px solid var(--s20d-secondary);
}

.s20d-btn-login:hover {
  background: var(--s20d-secondary);
  color: var(--s20d-bg);
}

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

/* === Mobile Menu === */
.s20d-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  display: none;
}

.s20d-overlay-active { display: block; }

.s20d-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100vh;
  background: var(--s20d-bg-light);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.s20d-menu-active { right: 0; }

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

.s20d-mobile-menu ul {
  list-style: none;
  margin-top: 3rem;
}

.s20d-mobile-menu li {
  border-bottom: 1px solid var(--s20d-border);
}

.s20d-mobile-menu a {
  display: block;
  padding: 1.2rem 0;
  font-size: 1.4rem;
  color: var(--s20d-text);
}

.s20d-mobile-menu a:hover {
  color: var(--s20d-primary);
}

/* === Main Content === */
.s20d-main {
  padding-top: var(--s20d-header-h);
  min-height: 100vh;
}

/* === Carousel === */
.s20d-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16/7;
  background: var(--s20d-bg-card);
}

.s20d-slide {
  display: none;
  width: 100%;
  height: 100%;
}

.s20d-slide-active { display: block; }

.s20d-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

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

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

.s20d-dot-active { background: var(--s20d-primary); }

/* === Container / Wrapper === */
.s20d-container {
  width: 100%;
  padding: 0 1.2rem;
}

.s20d-section {
  padding: 2rem 0;
}

.s20d-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--s20d-accent);
  border-left: 3px solid var(--s20d-primary);
  padding-left: 1rem;
}

/* === Game Grid === */
.s20d-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--s20d-secondary);
  margin: 1.5rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.s20d-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.s20d-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.s20d-game-item:hover {
  transform: scale(1.05);
}

.s20d-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--s20d-radius);
  object-fit: cover;
  background: var(--s20d-bg-card);
}

.s20d-game-item span {
  font-size: 1.1rem;
  color: var(--s20d-text-muted);
  text-align: center;
  margin-top: 0.3rem;
  line-height: 1.3rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === Cards === */
.s20d-card {
  background: var(--s20d-bg-card);
  border-radius: var(--s20d-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--s20d-border);
}

.s20d-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--s20d-accent);
}

.s20d-card p {
  color: var(--s20d-text-muted);
  font-size: 1.3rem;
  line-height: 1.6rem;
}

/* === Promo CTA === */
.s20d-cta {
  background: linear-gradient(135deg, var(--s20d-primary), #ff9500);
  border-radius: var(--s20d-radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
  cursor: pointer;
}

.s20d-cta h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.s20d-cta p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
}

/* === Promo Link Button === */
.s20d-promo-btn {
  display: inline-block;
  background: var(--s20d-primary);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: var(--s20d-radius);
  font-weight: 600;
  font-size: 1.3rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.s20d-promo-btn:hover {
  background: #e67300;
  transform: scale(1.03);
  text-decoration: none;
}

.s20d-promo-text {
  color: var(--s20d-primary);
  font-weight: 700;
  cursor: pointer;
}

.s20d-promo-text:hover {
  text-decoration: underline;
}

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

.s20d-footer-brand {
  font-size: 1.2rem;
  color: var(--s20d-text-muted);
  line-height: 1.6rem;
  margin-bottom: 1.2rem;
}

.s20d-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.s20d-footer-links a {
  background: var(--s20d-bg-card);
  color: var(--s20d-text);
  padding: 0.5rem 1rem;
  border-radius: var(--s20d-radius);
  font-size: 1.1rem;
  transition: background 0.2s;
}

.s20d-footer-links a:hover {
  background: var(--s20d-primary);
  text-decoration: none;
}

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

/* === Bottom Navigation === */
.s20d-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--s20d-bottom-h);
  background: var(--s20d-bg-light);
  border-top: 1px solid var(--s20d-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.s20d-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  color: var(--s20d-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  gap: 2px;
}

.s20d-bottom-btn i,
.s20d-bottom-btn .material-icons,
.s20d-bottom-btn ion-icon {
  font-size: 22px;
  transition: all 0.2s;
}

.s20d-bottom-btn span {
  font-size: 1rem;
  line-height: 1.2rem;
}

.s20d-bottom-btn:hover,
.s20d-bottom-btn:focus {
  color: var(--s20d-primary);
}

.s20d-bottom-btn:hover i,
.s20d-bottom-btn:hover .material-icons,
.s20d-bottom-btn:hover ion-icon {
  transform: scale(1.15);
}

.s20d-bottom-active {
  color: var(--s20d-primary) !important;
}

/* === Responsive === */
@media (min-width: 769px) {
  .s20d-bottom-nav { display: none; }
  .s20d-menu-toggle { display: none; }
}

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

/* === Helpers === */
.s20d-text-center { text-align: center; }
.s20d-mt-1 { margin-top: 1rem; }
.s20d-mt-2 { margin-top: 2rem; }
.s20d-mb-1 { margin-bottom: 1rem; }
.s20d-mb-2 { margin-bottom: 2rem; }
.s20d-hidden { display: none; }
.s20d-divider {
  height: 1px;
  background: var(--s20d-border);
  margin: 1.5rem 0;
}

/* === Testimonials === */
.s20d-testimonial {
  background: var(--s20d-bg-card);
  border-radius: var(--s20d-radius);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--s20d-secondary);
}

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

.s20d-testimonial-text {
  font-size: 1.2rem;
  color: var(--s20d-text-muted);
  margin-top: 0.4rem;
  line-height: 1.5rem;
}

/* === Winners === */
.s20d-winners-item {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--s20d-border);
  font-size: 1.2rem;
}

.s20d-winners-name { color: var(--s20d-text); }
.s20d-winners-game { color: var(--s20d-text-muted); }
.s20d-winners-amount { color: var(--s20d-primary); font-weight: 600; }

/* === Payment === */
.s20d-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.s20d-payment-item {
  background: var(--s20d-bg-card);
  border-radius: var(--s20d-radius);
  padding: 0.8rem 1.2rem;
  font-size: 1.2rem;
  color: var(--s20d-text-muted);
  border: 1px solid var(--s20d-border);
}

/* === Features List === */
.s20d-feature-list {
  list-style: none;
}

.s20d-feature-list li {
  padding: 0.6rem 0;
  font-size: 1.3rem;
  color: var(--s20d-text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.s20d-feature-list li i {
  color: var(--s20d-secondary);
  margin-top: 0.2rem;
}

/* === FAQ === */
.s20d-faq-item {
  margin-bottom: 1rem;
}

.s20d-faq-q {
  font-weight: 600;
  color: var(--s20d-accent);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.s20d-faq-a {
  color: var(--s20d-text-muted);
  font-size: 1.2rem;
  line-height: 1.6rem;
  padding-left: 1rem;
}
