/* ============================================================
   tablegame1 base stylesheet
   Prefix: v3d2-
   Canvas: 320-430px mobile; centered on wider screens.
   Palette: #F08080 (coral), #F5DEB3 (wheat), #FFDEAD (navajo),
            #A0522D (sienna), #333333 (charcoal).
   ============================================================ */

:root {
  --v3d2-coral: #F08080;
  --v3d2-wheat: #F5DEB3;
  --v3d2-navajo: #FFDEAD;
  --v3d2-sienna: #A0522D;
  --v3d2-charcoal: #333333;
  --v3d2-bg: #2a2622;
  --v3d2-bg-2: #1d1a17;
  --v3d2-card: #3a342e;
  --v3d2-line: rgba(245, 222, 179, 0.14);
  --v3d2-text: #F5DEB3;
  --v3d2-muted: #c8b89a;
  --v3d2-accent: #F08080;
  --v3d2-glow: rgba(240, 128, 128, 0.35);
  --v3d2-max: 440px;
  --v3d2-radius: 14px;
  --v3d2-header-h: 58px;
  --v3d2-bottom-h: 62px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--v3d2-bg-2);
  color: var(--v3d2-text);
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  max-width: var(--v3d2-max);
  margin: 0 auto;
  background:
    radial-gradient(circle at 18% 0%, rgba(240,128,128,0.18), transparent 45%),
    radial-gradient(circle at 100% 12%, rgba(160,82,45,0.22), transparent 50%),
    var(--v3d2-bg-2);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

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

a { color: var(--v3d2-navajo); text-decoration: none; }
a:hover { color: var(--v3d2-coral); }

.v3d2-no-scroll { overflow: hidden; }

/* ---------- Header (tab-style top bar) ---------- */
.v3d2-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--v3d2-header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(58,52,46,0.97), rgba(42,38,34,0.92));
  border-bottom: 1px solid var(--v3d2-line);
  backdrop-filter: blur(8px);
}

.v3d2-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.v3d2-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 9px;
  background: rgba(245, 222, 179, 0.08);
  padding: 3px;
  flex-shrink: 0;
}
.v3d2-brand-name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.4px;
  color: var(--v3d2-wheat);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v3d2-brand-name span { color: var(--v3d2-coral); }

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

.v3d2-btn {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 14px;
  min-height: 38px;
  min-width: 44px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  font-family: inherit;
}
.v3d2-btn:active { transform: scale(0.96); }

.v3d2-btn-login {
  background: transparent;
  color: var(--v3d2-wheat);
  border: 1px solid var(--v3d2-line);
}
.v3d2-btn-login:hover { color: var(--v3d2-coral); border-color: var(--v3d2-coral); }

.v3d2-btn-register {
  background: linear-gradient(135deg, var(--v3d2-coral), var(--v3d2-sienna));
  color: #fff;
  box-shadow: 0 4px 14px var(--v3d2-glow);
}
.v3d2-btn-register:hover { box-shadow: 0 6px 18px var(--v3d2-glow); }

.v3d2-icon-btn {
  background: transparent;
  border: 1px solid var(--v3d2-line);
  color: var(--v3d2-wheat);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.v3d2-icon-btn svg { width: 20px; height: 20px; }

/* ---------- Side drawer menu ---------- */
.v3d2-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
  z-index: 80;
}
.v3d2-overlay.v3d2-visible { opacity: 1; visibility: visible; }

.v3d2-drawer {
  position: fixed;
  top: 0;
  right: -78%;
  width: 78%;
  max-width: 320px;
  height: 100%;
  background: var(--v3d2-bg);
  border-left: 1px solid var(--v3d2-line);
  z-index: 90;
  transform: translateX(0);
  transition: right .28s ease;
  padding: 16px 14px calc(var(--v3d2-bottom-h) + 16px);
  overflow-y: auto;
}
.v3d2-drawer.v3d2-open { right: 0; }

.v3d2-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.v3d2-drawer-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--v3d2-wheat);
}
.v3d2-drawer-close {
  background: transparent;
  border: none;
  color: var(--v3d2-muted);
  font-size: 22px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.v3d2-drawer-cta {
  display: block;
  width: 100%;
  margin: 8px 0 14px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--v3d2-coral), var(--v3d2-sienna));
  color: #fff;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 4px 14px var(--v3d2-glow);
}

.v3d2-drawer nav a {
  display: block;
  padding: 11px 12px;
  margin: 4px 0;
  border-radius: 10px;
  color: var(--v3d2-text);
  font-size: 14px;
  border: 1px solid transparent;
}
.v3d2-drawer nav a:hover,
.v3d2-drawer nav a.v3d2-active {
  background: rgba(240,128,128,0.12);
  border-color: var(--v3d2-line);
  color: var(--v3d2-coral);
}

/* ---------- Main layout ---------- */
.v3d2-main {
  padding: 14px 12px calc(var(--v3d2-bottom-h) + 24px);
}

.v3d2-section { margin: 22px 0; }
.v3d2-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--v3d2-line);
}
.v3d2-section-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--v3d2-wheat);
  letter-spacing: 0.3px;
}
.v3d2-section-title em {
  color: var(--v3d2-coral);
  font-style: normal;
}
.v3d2-more {
  font-size: 12px;
  color: var(--v3d2-navajo);
}

/* ---------- Hero carousel ---------- */
.v3d2-hero {
  position: relative;
  border-radius: var(--v3d2-radius);
  overflow: hidden;
  margin: 0 0 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}
.v3d2-slides { position: relative; aspect-ratio: 16 / 9; background: #111; }
.v3d2-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .55s ease;
  cursor: pointer;
}
.v3d2-slide.v3d2-active { opacity: 1; }
.v3d2-slide img { width: 100%; height: 100%; object-fit: cover; }
.v3d2-slide-cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  padding: 22px 10px 8px;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  pointer-events: none;
}
.v3d2-slide-cap b { color: var(--v3d2-navajo); }

.v3d2-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 5px;
  z-index: 5;
}
.v3d2-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(245,222,179,0.5);
  border: none;
  padding: 0;
  cursor: pointer;
}
.v3d2-dot.v3d2-on { background: var(--v3d2-coral); transform: scale(1.15); }

.v3d2-hero-cta {
  position: absolute;
  bottom: 10px;
  left: 12px;
  z-index: 6;
}

/* ---------- CTA buttons ---------- */
.v3d2-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--v3d2-coral), var(--v3d2-sienna));
  color: #fff !important;
  font-weight: 800;
  font-size: 13px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--v3d2-glow);
  transition: transform .15s ease, box-shadow .2s ease;
}
.v3d2-cta:active, .v3d2-cta.v3d2-tapped { transform: scale(0.96); }

.v3d2-cta-ghost {
  background: transparent;
  border: 1px solid var(--v3d2-coral);
  color: var(--v3d2-coral) !important;
  box-shadow: none;
}

/* ---------- Promo tiles (compact groups) ---------- */
.v3d2-promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.v3d2-promo-tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--v3d2-card);
  border: 1px solid var(--v3d2-line);
  padding: 12px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
}
.v3d2-promo-tile.v3d2-tapped { transform: scale(0.97); }
.v3d2-promo-tile h3 {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--v3d2-wheat);
}
.v3d2-promo-tile p {
  margin: 0;
  font-size: 12px;
  color: var(--v3d2-muted);
}

/* ---------- Game grids ---------- */
.v3d2-games {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (min-width: 360px) {
  .v3d2-games { gap: 10px; }
}
.v3d2-game-card {
  background: var(--v3d2-card);
  border: 1px solid var(--v3d2-line);
  border-radius: 11px;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  padding: 4px 4px 6px;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.v3d2-game-card:hover { border-color: var(--v3d2-coral); }
.v3d2-game-card.v3d2-tapped { transform: scale(0.95); }
.v3d2-game-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #1a1714;
}
.v3d2-game-name {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.25;
  color: var(--v3d2-text);
  height: 28px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ---------- Feature / info cards ---------- */
.v3d2-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.v3d2-card {
  background: var(--v3d2-card);
  border: 1px solid var(--v3d2-line);
  border-radius: 12px;
  padding: 12px;
}
.v3d2-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--v3d2-wheat);
}
.v3d2-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--v3d2-muted);
}
.v3d2-card .v3d2-tag {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--v3d2-coral);
  margin-bottom: 4px;
}

/* ---------- Prose / SEO content ---------- */
.v3d2-prose {
  background: var(--v3d2-card);
  border: 1px solid var(--v3d2-line);
  border-radius: 12px;
  padding: 14px;
}
.v3d2-prose h2 {
  margin: 14px 0 6px;
  font-size: 16px;
  color: var(--v3d2-wheat);
}
.v3d2-prose h2:first-child { margin-top: 0; }
.v3d2-prose h3 {
  margin: 12px 0 4px;
  font-size: 14px;
  color: var(--v3d2-coral);
}
.v3d2-prose p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--v3d2-muted);
}
.v3d2-prose ul, .v3d2-prose ol { margin: 0 0 10px; padding-left: 20px; }
.v3d2-prose li { font-size: 13px; color: var(--v3d2-muted); margin-bottom: 7px; }
.v3d2-prose li h3 { margin-top: 4px; }
.v3d2-prose strong { color: var(--v3d2-text); }
.v3d2-prose a { color: var(--v3d2-navajo); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- App download row ---------- */
.v3d2-app-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.v3d2-app-card {
  background: linear-gradient(135deg, rgba(240,128,128,0.16), rgba(160,82,45,0.16));
  border: 1px solid var(--v3d2-line);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
}
.v3d2-app-card h3 { margin: 0 0 4px; font-size: 14px; color: var(--v3d2-wheat); }
.v3d2-app-card p { margin: 0; font-size: 12px; color: var(--v3d2-muted); }

/* ---------- Footer (extended homepage footer) ---------- */
.v3d2-extended-footer {
  margin: 28px 0 14px;
  padding: 16px;
  background: var(--v3d2-card);
  border: 1px solid var(--v3d2-line);
  border-radius: 14px;
}
.v3d2-extended-footer h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--v3d2-coral);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.v3d2-ef-group { margin-bottom: 14px; }
.v3d2-ef-group h4 {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--v3d2-wheat);
}
.v3d2-ef-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 10px;
}
.v3d2-ef-links a {
  font-size: 12px;
  color: var(--v3d2-muted);
  padding: 4px 0;
}
.v3d2-ef-links a:hover { color: var(--v3d2-coral); }

.v3d2-promo-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 10px 0;
}
.v3d2-promo-mini {
  display: block;
  text-align: center;
  padding: 9px 6px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--v3d2-coral), var(--v3d2-sienna));
  color: #fff !important;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.v3d2-promo-mini.ghost {
  background: transparent;
  border: 1px solid var(--v3d2-coral);
  color: var(--v3d2-coral) !important;
}

.v3d2-brand-intro {
  font-size: 12.5px;
  color: var(--v3d2-muted);
  margin: 6px 0 12px;
  line-height: 1.6;
}

.v3d2-disclaimer {
  margin-top: 12px;
  padding: 10px;
  border-left: 3px solid var(--v3d2-coral);
  background: rgba(0,0,0,0.18);
  font-size: 11.5px;
  color: var(--v3d2-muted);
  border-radius: 6px;
}

/* ---------- Copyright ---------- */
.v3d2-copyright {
  text-align: center;
  font-size: 11px;
  color: var(--v3d2-muted);
  padding: 8px 12px;
  margin-bottom: 4px;
}

/* ---------- Mobile bottom nav (layered bottom bar) ---------- */
.v3d2-bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--v3d2-max);
  height: var(--v3d2-bottom-h);
  background: linear-gradient(180deg, rgba(58,52,46,0.98), rgba(29,26,23,0.99));
  border-top: 1px solid var(--v3d2-line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 70;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.35);
}
.v3d2-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 2px 4px;
  color: var(--v3d2-muted);
  font-size: 10px;
  cursor: pointer;
  background: transparent;
  border: none;
  text-decoration: none;
  transition: color .2s ease;
}
.v3d2-nav-item svg {
  width: 22px;
  height: 22px;
  transition: transform .2s ease, filter .2s ease;
}
.v3d2-nav-label {
  font-weight: 600;
  letter-spacing: 0.3px;
}
.v3d2-nav-item:hover { color: var(--v3d2-wheat); }
.v3d2-nav-item:hover svg { transform: translateY(-1px); }
.v3d2-nav-item.v3d2-active {
  color: var(--v3d2-coral);
}
.v3d2-nav-item.v3d2-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--v3d2-coral);
  box-shadow: 0 0 10px var(--v3d2-glow);
}
.v3d2-nav-item.v3d2-active svg {
  filter: drop-shadow(0 0 6px var(--v3d2-glow));
}

/* ---------- Utility ---------- */
.v3d2-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.v3d2-tagline {
  text-align: center;
  font-size: 12px;
  color: var(--v3d2-muted);
  margin: 6px 0 14px;
}
.v3d2-h1 {
  font-size: 22px;
  font-weight: 800;
  margin: 4px 0 8px;
  color: var(--v3d2-wheat);
  line-height: 1.25;
}
.v3d2-h1 span { color: var(--v3d2-coral); }
