/* =========================================================
 * cardtime core stylesheet (class prefix v738-)
 * Mobile-first design, max viewport 430px primary.
 * Palette: #0D1117 | #000080 | #87CEFA | #8B4513 | #6F4E37
 * ========================================================= */

:root {
  --v738-bg: #0D1117;
  --v738-bg-alt: #11161f;
  --v738-bg-card: #161c28;
  --v738-primary: #000080;
  --v738-accent: #87CEFA;
  --v738-brown: #8B4513;
  --v738-coffee: #6F4E37;
  --v738-text: #EAF3FB;
  --v738-text-muted: #9DB1C6;
  --v738-gold: #F2C14E;
  --v738-border: rgba(135, 206, 250, 0.18);
  --v738-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  --v738-radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--v738-bg);
  color: var(--v738-text);
  line-height: 1.5;
  font-size: 1.5rem;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--v738-accent); text-decoration: none; }
ul { list-style: none; }

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

/* ============================ Header ============================ */
.v738-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, #000080 0%, #0D1117 100%);
  border-bottom: 1px solid var(--v738-border);
  box-shadow: var(--v738-shadow);
}
.v738-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 1rem; max-width: 430px; margin: 0 auto;
}
.v738-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.v738-logo img { width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--v738-border); }
.v738-logo-text { font-size: 1.8rem; font-weight: 800; color: var(--v738-accent); letter-spacing: 0.5px; }
.v738-header-actions { display: flex; align-items: center; gap: 0.5rem; }

.v738-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 36px; padding: 0 1.1rem; border: none; border-radius: 18px;
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: inherit;
}
.v738-btn:active { transform: scale(0.95); }
.v738-btn-register {
  background: linear-gradient(135deg, #F2C14E 0%, #8B4513 100%);
  color: #1A1208;
  box-shadow: 0 3px 10px rgba(242, 193, 78, 0.35);
}
.v738-btn-login { background: transparent; color: var(--v738-accent); border: 1px solid var(--v738-accent); }

.v738-menu-toggle {
  width: 40px; height: 40px; background: transparent;
  border: 1px solid var(--v738-border); border-radius: 10px;
  color: var(--v738-accent); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.v738-toggle-active { color: var(--v738-gold); border-color: var(--v738-gold); }

/* ============================ Mobile menu ============================ */
.v738-mobile-menu {
  position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px; height: 100vh;
  background: var(--v738-bg-alt); z-index: 9999; padding: 7rem 1.4rem 2rem;
  transition: right 0.3s ease; border-left: 1px solid var(--v738-border);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.55); overflow-y: auto;
}
.v738-mobile-menu.v738-menu-open { right: 0; }
.v738-menu-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 9998;
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease;
}
.v738-menu-overlay.v738-menu-open { opacity: 1; visibility: visible; }
.v738-menu-list li { margin-bottom: 0.7rem; }
.v738-menu-list a {
  display: flex; align-items: center; gap: 0.8rem; padding: 1.1rem 1rem;
  font-size: 1.4rem; font-weight: 600; color: var(--v738-text);
  border-radius: 10px; background: var(--v738-bg-card); border: 1px solid var(--v738-border);
}
.v738-menu-list a:active { border-color: var(--v738-gold); color: var(--v738-gold); }
.v738-menu-list .material-icons, .v738-menu-list i { font-size: 18px; color: var(--v738-accent); }

/* ============================ Main & Carousel ============================ */
.v738-main { padding-top: 64px; padding-bottom: 90px; min-height: 100vh; }

.v738-carousel {
  position: relative; border-radius: var(--v738-radius); overflow: hidden;
  margin: 1rem 0 1.5rem; box-shadow: var(--v738-shadow);
}
.v738-slides { position: relative; height: 185px; }
.v738-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; cursor: pointer; }
.v738-slide img { width: 100%; height: 100%; object-fit: cover; }
.v738-slide-active { opacity: 1; }
.v738-slide-caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 0.8rem 1.2rem;
  background: linear-gradient(transparent, rgba(13, 17, 23, 0.9));
  font-size: 1.4rem; font-weight: 700; color: var(--v738-accent);
}
.v738-carousel-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 5;
}
.v738-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(135, 206, 250, 0.5); cursor: pointer; border: none; padding: 0; }
.v738-dot-active { background: var(--v738-gold); width: 18px; border-radius: 4px; }

/* ============================ Sections & titles ============================ */
.v738-section { margin: 1.8rem 0; scroll-margin-top: 70px; }
.v738-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--v738-accent);
  margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem;
  padding-left: 0.6rem; border-left: 4px solid var(--v738-gold);
}
.v738-h1 { font-size: 2.1rem; font-weight: 800; color: #fff; margin: 1.2rem 0 0.4rem; text-align: center; line-height: 1.3; }
.v738-subtitle { text-align: center; color: var(--v738-text-muted); font-size: 1.35rem; margin-bottom: 1rem; padding: 0 0.5rem; }

/* ============================ Game grid ============================ */
.v738-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.v738-game-card {
  display: flex; flex-direction: column; align-items: center;
  background: var(--v738-bg-card); border-radius: 10px; padding: 0.5rem;
  border: 1px solid var(--v738-border); transition: transform 0.2s ease, border-color 0.2s ease;
  cursor: pointer; text-align: center; min-width: 44px; min-height: 44px;
  font-family: inherit;
}
.v738-game-card:active { transform: scale(0.95); border-color: var(--v738-gold); }
.v738-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; margin-bottom: 0.35rem; }
.v738-game-name {
  font-size: 1.12rem; font-weight: 600; color: var(--v738-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%;
}

/* ============================ Info cards & CTA ============================ */
.v738-info-card {
  background: var(--v738-bg-card); border-radius: var(--v738-radius); padding: 1.4rem;
  margin-bottom: 1rem; border: 1px solid var(--v738-border); box-shadow: var(--v738-shadow);
}
.v738-info-card h2 { font-size: 1.65rem; color: var(--v738-accent); margin-bottom: 0.6rem; }
.v738-info-card h3 { font-size: 1.35rem; color: var(--v738-gold); margin: 0.9rem 0 0.4rem; }
.v738-info-card p { color: var(--v738-text); margin-bottom: 0.6rem; font-size: 1.32rem; line-height: 1.55; }

.v738-promo-link { color: var(--v738-gold); font-weight: 700; cursor: pointer; text-decoration: underline; }

.v738-cta {
  display: block; text-align: center;
  background: linear-gradient(135deg, #F2C14E 0%, #8B4513 100%);
  color: #1A1208; padding: 1.2rem; border-radius: var(--v738-radius);
  font-size: 1.6rem; font-weight: 800; margin: 1.2rem 0; border: none;
  cursor: pointer; width: 100%; box-shadow: 0 4px 14px rgba(242, 193, 78, 0.35); font-family: inherit;
}
.v738-cta:active { transform: scale(0.97); }

/* ============================ Features & Testimonials ============================ */
.v738-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.v738-feature-item {
  background: var(--v738-bg-card); border-radius: 10px; padding: 1rem 0.6rem;
  text-align: center; border: 1px solid var(--v738-border);
}
.v738-feature-item .material-icons, .v738-feature-item i { font-size: 2.4rem; color: var(--v738-gold); margin-bottom: 0.4rem; display: block; }
.v738-feature-item h3 { font-size: 1.3rem; color: var(--v738-accent); margin-bottom: 0.3rem; }
.v738-feature-item p { font-size: 1.18rem; color: var(--v738-text-muted); line-height: 1.4; }

.v738-testimonial {
  background: var(--v738-bg-card); border-radius: 10px; padding: 1rem; margin-bottom: 0.7rem;
  border: 1px solid var(--v738-border); border-left: 3px solid var(--v738-gold);
}
.v738-testimonial-stars { color: var(--v738-gold); font-size: 1.3rem; margin-bottom: 0.3rem; letter-spacing: 2px; }
.v738-testimonial-text { font-size: 1.28rem; color: var(--v738-text); margin-bottom: 0.4rem; font-style: italic; line-height: 1.5; }
.v738-testimonial-author { font-size: 1.2rem; color: var(--v738-accent); font-weight: 700; }

/* ============================ Payments, Winners, FAQ ============================ */
.v738-payment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.v738-payment-item {
  background: var(--v738-bg-card); border-radius: 8px; padding: 0.8rem 0.4rem;
  text-align: center; border: 1px solid var(--v738-border); font-size: 1.12rem; color: var(--v738-text); font-weight: 600;
}
.v738-payment-item i, .v738-payment-item .material-icons { font-size: 1.8rem; color: var(--v738-accent); margin-bottom: 0.3rem; display: block; }

.v738-winner-item {
  display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 0.9rem;
  background: var(--v738-bg-card); border-radius: 8px; margin-bottom: 0.5rem;
  border: 1px solid var(--v738-border); font-size: 1.22rem;
}
.v738-winner-name { color: var(--v738-accent); font-weight: 600; }
.v738-winner-amount { color: var(--v738-gold); font-weight: 700; }

.v738-faq-item {
  background: var(--v738-bg-card); border-radius: 10px; padding: 1rem; margin-bottom: 0.6rem;
  border: 1px solid var(--v738-border);
}
.v738-faq-item h3 { font-size: 1.35rem; color: var(--v738-gold); margin-bottom: 0.3rem; }
.v738-faq-item p { font-size: 1.25rem; color: var(--v738-text); line-height: 1.5; }

/* ============================ Footer ============================ */
.v738-footer {
  background: linear-gradient(180deg, #11161f 0%, #000080 100%);
  padding: 2rem 1.2rem 7.5rem; border-top: 1px solid var(--v738-border); margin-top: 2rem;
}
.v738-footer-inner { max-width: 430px; margin: 0 auto; }
.v738-footer-brand { font-size: 1.35rem; color: var(--v738-text-muted); margin-bottom: 1rem; line-height: 1.55; }
.v738-footer-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin: 1rem 0; }
.v738-footer-btn {
  background: linear-gradient(135deg, #000080 0%, #6F4E37 100%);
  color: #fff; padding: 0.85rem; border-radius: 8px; text-align: center;
  font-size: 1.28rem; font-weight: 700; border: 1px solid var(--v738-border); cursor: pointer; font-family: inherit;
}
.v738-footer-btn:active { transform: scale(0.97); }
.v738-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin: 1rem 0; }
.v738-footer-links a { font-size: 1.18rem; color: var(--v738-text-muted); }
.v738-footer-links a:active, .v738-footer-links a:hover { color: var(--v738-accent); }
.v738-footer-copy {
  font-size: 1.15rem; color: var(--v738-text-muted); text-align: center;
  margin-top: 1rem; border-top: 1px solid var(--v738-border); padding-top: 1rem;
}

/* ============================ Bottom nav ============================ */
.v738-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: 62px;
  background: linear-gradient(180deg, #11161f 0%, #000080 100%);
  border-top: 1px solid var(--v738-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.45);
}
.v738-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px; background: transparent; border: none;
  color: var(--v738-text-muted); cursor: pointer; text-decoration: none;
  gap: 2px; transition: color 0.2s ease, transform 0.2s ease; font-family: inherit; padding: 0;
}
.v738-nav-item .material-icons, .v738-nav-item i { font-size: 22px; line-height: 1; }
.v738-nav-item .label { font-size: 1.05rem; font-weight: 500; }
.v738-nav-item:active { transform: scale(0.9); }
.v738-nav-active { color: var(--v738-gold); }

/* ============================ Desktop ============================ */
@media (min-width: 769px) {
  .v738-bottom-nav { display: none; }
  .v738-footer { padding-bottom: 2rem; }
  body { background: linear-gradient(180deg, #0D1117 0%, #11161f 100%); }
  .v738-container, .v738-header-inner, .v738-footer-inner { max-width: 768px; }
  .v738-slides { height: 320px; }
  .v738-game-grid { grid-template-columns: repeat(6, 1fr); }
  .v738-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .v738-payment-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 768px) { .v738-main { padding-bottom: 90px; } }
