/* ============================================================
 * d9d9 game - theme.css
 * All custom classes use the v13d- prefix.
 * Palette: #F0E68C | #BDB76B | #FFB347 | #2C3E50
 * Mobile-first. Root font 62.5% (1rem = 10px).
 * =========================================================== */

:root {
  --v13d-primary: #FFB347;
  --v13d-secondary: #F0E68C;
  --v13d-accent: #BDB76B;
  --v13d-bg: #2C3E50;
  --v13d-bg-deep: #1c2a38;
  --v13d-bg-card: #34495e;
  --v13d-text: #f4f4f0;
  --v13d-text-muted: #c9d1d8;
  --v13d-border: rgba(240, 230, 140, 0.18);
  --v13d-radius: 12px;
  --v13d-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--v13d-bg);
  color: var(--v13d-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--v13d-secondary); text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.5; font-weight: 700; }

/* ---------- Layout ---------- */
.v13d-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.v13d-wrapper { padding-top: 5.6rem; padding-bottom: 8rem; min-height: 100vh; }
main { padding-bottom: 80px; }

/* ---------- Header ---------- */
.v13d-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, #1c2a38 0%, #2C3E50 60%, #34495e 100%);
  border-bottom: 1px solid var(--v13d-border);
  box-shadow: var(--v13d-shadow);
}
.v13d-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1rem; gap: 0.6rem;
}
.v13d-logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; color: var(--v13d-text); font-size: 1.5rem; }
.v13d-logo img { width: 26px; height: 26px; border-radius: 6px; }
.v13d-logo .v13d-logo-accent { color: var(--v13d-primary); }

.v13d-header-actions { display: flex; align-items: center; gap: 0.4rem; }
.v13d-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700;
  padding: 0.5rem 1rem; border-radius: 999px;
  border: none; cursor: pointer; transition: transform 0.15s, opacity 0.15s;
  min-height: 32px; line-height: 1;
}
.v13d-btn:active { transform: scale(0.96); }
.v13d-btn-login { background: transparent; color: var(--v13d-text); border: 1px solid var(--v13d-secondary); }
.v13d-btn-register { background: linear-gradient(135deg, #FFB347, #f09941); color: #1c2a38; }
.v13d-btn-cta { background: linear-gradient(135deg, #FFB347, #f09941); color: #1c2a38; font-size: 1.3rem; padding: 0.7rem 1.6rem; }
.v13d-btn-outline { background: transparent; color: var(--v13d-secondary); border: 1px solid var(--v13d-secondary); }

.v13d-menu-toggle {
  background: transparent; border: none; color: var(--v13d-text);
  font-size: 2rem; cursor: pointer; padding: 0.2rem 0.6rem; min-width: 36px; min-height: 36px;
}

/* ---------- Mobile slide menu ---------- */
.v13d-mobile-menu {
  position: fixed; top: 5.6rem; left: 0; right: 0; z-index: 9999;
  background: var(--v13d-bg-deep);
  border-bottom: 1px solid var(--v13d-border);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  box-shadow: var(--v13d-shadow);
}
.v13d-mobile-menu.v13d-menu-open { max-height: 460px; }
.v13d-mobile-menu ul { padding: 0.6rem 1rem; }
.v13d-mobile-menu li { border-bottom: 1px solid rgba(240, 230, 140, 0.08); }
.v13d-mobile-menu li:last-child { border-bottom: none; }
.v13d-mobile-menu a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 1rem 0.4rem; color: var(--v13d-text); font-size: 1.35rem; font-weight: 500;
}
.v13d-mobile-menu a i.material-icons,
.v13d-mobile-menu a i.fas { color: var(--v13d-primary); font-size: 1.8rem; }

/* ---------- Hero carousel ---------- */
.v13d-hero { margin-top: 1rem; border-radius: var(--v13d-radius); overflow: hidden; box-shadow: var(--v13d-shadow); }
.v13d-carousel { position: relative; }
.v13d-slide {
  display: none; cursor: pointer; position: relative;
}
.v13d-slide.v13d-slide-active { display: block; }
.v13d-slide img { width: 100%; height: 180px; object-fit: cover; }
.v13d-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(28,42,56,0.95));
  padding: 1rem; color: var(--v13d-text);
}
.v13d-slide-overlay h2 { font-size: 1.6rem; margin-bottom: 0.3rem; }
.v13d-slide-overlay p { font-size: 1.2rem; color: var(--v13d-text-muted); }
.v13d-dots { display: flex; justify-content: center; gap: 0.5rem; padding: 0.6rem 0; background: var(--v13d-bg-deep); }
.v13d-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(240,230,140,0.3); cursor: pointer; }
.v13d-dot.v13d-dot-active { background: var(--v13d-primary); }

/* ---------- Section + headings ---------- */
.v13d-section { margin: 2rem 0; }
.v13d-section-title {
  font-size: 1.6rem; margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--v13d-primary);
  display: flex; align-items: center; gap: 0.6rem;
}
.v13d-section-title i { color: var(--v13d-primary); }
.v13d-section-title .v13d-more { margin-left: auto; font-size: 1.2rem; color: var(--v13d-secondary); font-weight: 500; }

.v13d-h1 {
  font-size: 1.9rem; margin: 1.2rem 0; line-height: 1.4;
  background: linear-gradient(90deg, #F0E68C, #FFB347);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ---------- Filter chips ---------- */
.v13d-chips { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.4rem 0 1rem; }
.v13d-chip {
  flex: 0 0 auto; padding: 0.4rem 1rem; border-radius: 999px;
  background: var(--v13d-bg-card); color: var(--v13d-text);
  font-size: 1.2rem; cursor: pointer; border: 1px solid var(--v13d-border);
  white-space: nowrap;
}
.v13d-chip.v13d-chip-active { background: var(--v13d-primary); color: #1c2a38; border-color: var(--v13d-primary); font-weight: 700; }

/* ---------- Game grid ---------- */
.v13d-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.v13d-card {
  background: var(--v13d-bg-card); border-radius: var(--v13d-radius);
  overflow: hidden; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
  border: 1px solid var(--v13d-border); text-align: center;
}
.v13d-card:active { transform: scale(0.96); }
.v13d-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #1c2a38; }
.v13d-card-name { font-size: 1.1rem; padding: 0.4rem 0.3rem 0.6rem; color: var(--v13d-text); line-height: 1.3; min-height: 3rem; }

/* ---------- Reveal animation ---------- */
.v13d-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.v13d-revealed { opacity: 1; transform: translateY(0); }

/* ---------- Info / features cards ---------- */
.v13d-info-grid { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
.v13d-info-card {
  background: var(--v13d-bg-card); padding: 1.1rem; border-radius: var(--v13d-radius);
  border-left: 4px solid var(--v13d-primary);
}
.v13d-info-card h3 { font-size: 1.35rem; margin-bottom: 0.5rem; color: var(--v13d-secondary); }
.v13d-info-card p { font-size: 1.25rem; color: var(--v13d-text-muted); line-height: 1.6; }

/* ---------- Prominent promo text links ---------- */
.v13d-promo-link { color: var(--v13d-primary); font-weight: 700; border-bottom: 1px dashed var(--v13d-primary); cursor: pointer; }
.v13d-promo-block {
  background: linear-gradient(135deg, rgba(255,179,71,0.18), rgba(240,230,140,0.08));
  border: 1px solid var(--v13d-border); border-radius: var(--v13d-radius);
  padding: 1.2rem; margin: 1rem 0; text-align: center;
}
.v13d-promo-block h3 { color: var(--v13d-primary); font-size: 1.5rem; margin-bottom: 0.5rem; }
.v13d-promo-block p { font-size: 1.25rem; color: var(--v13d-text); margin-bottom: 0.8rem; }

/* ---------- Testimonials ---------- */
.v13d-testimonial { background: var(--v13d-bg-card); padding: 1rem; border-radius: var(--v13d-radius); margin-bottom: 0.8rem; border-left: 3px solid var(--v13d-secondary); }
.v13d-testimonial p { font-size: 1.22rem; color: var(--v13d-text); line-height: 1.55; font-style: italic; }
.v13d-testimonial .v13d-author { display: block; margin-top: 0.4rem; color: var(--v13d-primary); font-size: 1.15rem; font-weight: 700; font-style: normal; }

/* ---------- Winners ---------- */
.v13d-winner-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid rgba(240,230,140,0.08); font-size: 1.2rem; }
.v13d-winner-row span:first-child { color: var(--v13d-text-muted); }
.v13d-winner-row span:last-child { color: var(--v13d-primary); font-weight: 700; }

/* ---------- Payment / category badges ---------- */
.v13d-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.v13d-badge { background: var(--v13d-bg-card); padding: 0.5rem 0.9rem; border-radius: 8px; font-size: 1.1rem; color: var(--v13d-secondary); border: 1px solid var(--v13d-border); }

/* ---------- Footer ---------- */
.v13d-footer {
  background: var(--v13d-bg-deep); border-top: 1px solid var(--v13d-border);
  padding: 2rem 1rem 9rem; margin-top: 2rem;
}
.v13d-footer-brand { font-size: 1.2rem; color: var(--v13d-text-muted); line-height: 1.6; margin-bottom: 1rem; }
.v13d-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin-bottom: 1rem; }
.v13d-footer-links a { color: var(--v13d-secondary); font-size: 1.15rem; }
.v13d-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.v13d-footer-copy { font-size: 1.1rem; color: var(--v13d-text-muted); border-top: 1px solid var(--v13d-border); padding-top: 1rem; }

/* ---------- Mobile bottom nav ---------- */
.v13d-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: 60px; background: linear-gradient(180deg, #34495e 0%, #1c2a38 100%);
  border-top: 1px solid var(--v13d-border);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.4);
}
.v13d-bottomnav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; color: var(--v13d-text-muted); font-size: 1rem;
  cursor: pointer; min-width: 60px; min-height: 60px;
  background: transparent; border: none; transition: color 0.15s, transform 0.15s;
  text-decoration: none;
}
.v13d-bottomnav-btn:active { transform: scale(0.92); }
.v13d-bottomnav-btn .material-icons,
.v13d-bottomnav-btn .fas,
.v13d-bottomnav-btn .far,
.v13d-bottomnav-btn ion-icon { font-size: 22px; }
.v13d-bottomnav-btn ion-icon { font-size: 24px; }
.v13d-bottomnav-btn span { font-size: 1rem; line-height: 1; }
.v13d-bottomnav-active { color: var(--v13d-primary); }
.v13d-bottomnav-active span { color: var(--v13d-primary); font-weight: 700; }
.v13d-bottomnav-promo { color: var(--v13d-primary); }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .v13d-container { max-width: 760px; }
  .v13d-grid { grid-template-columns: repeat(5, 1fr); }
  .v13d-info-grid { grid-template-columns: repeat(2, 1fr); }
  .v13d-bottomnav { display: none; }
  main { padding-bottom: 0; }
  .v13d-footer { padding-bottom: 2rem; }
  .v13d-wrapper { padding-bottom: 2rem; }
}

/* ---------- Desktop nav (visible > 768px) ---------- */
.v13d-desktop-nav { display: none; }
@media (min-width: 769px) {
  .v13d-desktop-nav {
    display: flex; gap: 1.2rem; align-items: center;
  }
  .v13d-desktop-nav a { color: var(--v13d-text); font-size: 1.25rem; font-weight: 500; }
  .v13d-desktop-nav a:hover { color: var(--v13d-primary); }
  .v13d-menu-toggle { display: none; }
}
