/* ============================================================
   VidyaForce — one-page site
   Dark indigo + gold, matching the Vaikuntapali game.
   Desktop + mobile responsive.
   ============================================================ */

:root {
  --indigo-900: #120e2b;
  --indigo-800: #1a1436;
  --indigo-700: #241b4d;
  --indigo-600: #2f2461;
  --gold:       #d8b24a;
  --gold-soft:  #e6cd86;
  --cream:      #f3ecd6;
  --text:       #e7e3f2;
  --text-dim:   #a99fc8;
  --line:       rgba(216, 178, 74, 0.22);
  --radius:     16px;
  --maxw:       1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--indigo-900);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(18, 14, 43, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; flex-direction: column; line-height: 1.15; }
.nav-brand-row { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.02em; }
.nav-mark { color: var(--gold); margin-right: 4px; }
.nav-company { font-size: 0.62rem; color: var(--text-dim); letter-spacing: 0.14em; text-transform: uppercase; }
.nav-links { display: flex; gap: clamp(14px, 3vw, 30px); font-size: 0.95rem; }
.nav-links a { color: var(--text-dim); transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }

/* ---------- HERO / FEATURED GAME ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 64px clamp(16px, 4vw, 40px);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(216,178,74,0.18), transparent 60%),
    radial-gradient(900px 500px at 80% 120%, rgba(47,36,97,0.9), transparent 60%),
    linear-gradient(180deg, var(--indigo-800), var(--indigo-900));
  filter: blur(2px);
  transform: scale(1.04);
}
.hero-bg::after {
  /* subtle ladder/board texture hint, blurred */
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(216,178,74,0.05) 46px 48px),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(216,178,74,0.05) 46px 48px);
  opacity: 0.5;
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero-kicker {
  color: var(--gold); text-transform: uppercase; letter-spacing: 0.24em;
  font-size: 0.72rem; margin-bottom: 10px;
}
.hero-title {
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  font-weight: 800; letter-spacing: 0.01em;
  background: linear-gradient(180deg, var(--cream), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 14px;
}
.hero-gloss {
  display: block;
  font-size: clamp(0.9rem, 2.4vw, 1.1rem);
  font-weight: 500; letter-spacing: 0.02em;
  -webkit-text-fill-color: var(--text-dim); color: var(--text-dim);
  margin-top: 6px;
}
.hero-sub {
  color: var(--text-dim); font-size: clamp(1rem, 2.4vw, 1.15rem);
  max-width: 560px; margin: 0 auto 30px;
}

.hero-play {
  background: rgba(18, 14, 43, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: inline-block;
  backdrop-filter: blur(4px);
}
.pick-label {
  font-size: 0.85rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 12px;
}

/* pawn picker (shared look with the game) */
.pawn-picker { display: flex; gap: 14px; justify-content: center; margin-bottom: 20px; }
.pawn-choice {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: transparent; border: 2px solid transparent; border-radius: 14px;
  padding: 12px 18px; cursor: pointer; color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.pawn-choice:hover { transform: translateY(-2px); }
.pawn-choice.is-active { border-color: var(--gold); background: rgba(216,178,74,0.1); }
.pawn-name { font-size: 0.9rem; }
.pawn-preview {
  width: 40px; height: 52px; border-radius: 50% 50% 46% 46%;
  position: relative; display: block;
}
.pawn-preview::before { /* head */
  content: ""; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: #f0cba8;
}
.pawn-boy  { background: linear-gradient(180deg, #3f8ae0, #2c62c4); }
.pawn-girl { background: linear-gradient(180deg, #e0679a, #c43c78); }

.play-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #2a1e05; font-weight: 700; font-size: 1.05rem;
  padding: 13px 30px; border-radius: 999px;
  box-shadow: 0 8px 26px rgba(216,178,74,0.35);
  transition: transform 0.15s, box-shadow 0.2s;
}
.play-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(216,178,74,0.5); }
.play-icon { font-size: 0.85rem; }

/* ---------- SECTIONS ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 8vw, 84px) clamp(16px, 4vw, 40px); }
.section-head { margin-bottom: 28px; }
.section-head h2 {
  font-size: clamp(1.7rem, 5vw, 2.4rem); font-weight: 800; color: var(--cream);
  display: inline-block; padding-bottom: 8px;
  border-bottom: 3px solid var(--gold);
}
.section-desc { color: var(--text-dim); margin-top: 12px; font-size: 1.02rem; }

/* ---------- TILE GRID (Games section) ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* ---------- SHOW ROWS (Watch — per-row horizontal scroll) ---------- */
.show-row { margin-bottom: 38px; }
.show-title {
  font-size: clamp(1.05rem, 3vw, 1.35rem); font-weight: 700; color: var(--cream);
  margin-bottom: 14px;
}
.show-title .show-lang { color: var(--gold-soft); font-weight: 600; }

.tile-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;            /* room for the scrollbar */
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.tile-strip::-webkit-scrollbar { height: 8px; }
.tile-strip::-webkit-scrollbar-track { background: transparent; }
.tile-strip::-webkit-scrollbar-thumb { background: rgba(216,178,74,0.4); border-radius: 999px; }
.tile-strip::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* tiles inside a scrolling strip get a fixed width so they line up in a row */
.tile-strip .tile {
  flex: 0 0 auto;
  width: clamp(200px, 42vw, 260px);
  scroll-snap-align: start;
}
.tile {
  display: flex; flex-direction: column; gap: 10px;
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--text); text-align: left; font: inherit;
  transition: transform 0.18s;
}
.tile:hover { transform: translateY(-4px); }
.tile-thumb {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: 12px; overflow: hidden;
  background: var(--indigo-700);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.tile-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-play {
  position: absolute; inset: 0; margin: auto;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(18,14,43,0.6); color: var(--gold);
  font-size: 1.2rem; border: 2px solid var(--gold);
  transition: transform 0.18s, background 0.2s;
}
.tile:hover .tile-play { transform: scale(1.1); background: rgba(216,178,74,0.25); }
.tile-title { font-size: 0.98rem; font-weight: 600; color: var(--text); }

/* empty / placeholder thumbnail */
.tile-thumb--empty {
  background:
    repeating-linear-gradient(135deg, rgba(216,178,74,0.06) 0 12px, transparent 12px 24px),
    var(--indigo-700);
  border: 1px dashed var(--line);
}
.tile-add {
  font-size: 2.4rem; color: var(--text-dim); font-weight: 300; line-height: 1;
}
.tile--placeholder { cursor: default; }
.tile--placeholder:hover { transform: none; }
.tile--placeholder .tile-title { color: var(--text-dim); }

/* games tiles */
.tile-thumb--game {
  background: radial-gradient(circle at 50% 40%, var(--indigo-600), var(--indigo-800));
}
.game-emoji { font-size: 2.6rem; }
.tile--live { cursor: pointer; }
.tile--soon { cursor: default; }
.tile--soon:hover { transform: none; }
.tile--soon .tile-title { color: var(--text-dim); }
.soon-badge {
  background: rgba(216,178,74,0.14); color: var(--gold-soft);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 16px; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------- ABOUT ---------- */
.about { max-width: 820px; }
.about-body p { margin-bottom: 16px; color: var(--text); font-size: 1.06rem; }
.about-body strong { color: var(--gold-soft); }
.about-body em { color: var(--cream); font-style: italic; }
.lineage-title {
  margin-top: 34px; margin-bottom: 6px; color: var(--cream);
  font-size: 1.3rem; font-weight: 700;
}
.lineage-note { color: var(--text-dim); margin-bottom: 18px; font-size: 0.98rem; }
.lineage { list-style: none; counter-reset: lin; display: grid; gap: 12px; }
.lineage li {
  counter-increment: lin;
  position: relative; padding-left: 46px;
  border-left: 2px solid var(--line); padding-bottom: 4px;
}
.lineage li::before {
  content: counter(lin);
  position: absolute; left: -16px; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--indigo-700); border: 1px solid var(--gold);
  color: var(--gold); font-size: 0.85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.lin-name { display: block; font-weight: 700; color: var(--cream); font-size: 1.05rem; }
.lin-role { display: block; color: var(--text-dim); font-size: 0.92rem; }
.lineage-foot { margin-top: 22px; color: var(--text-dim); font-style: italic; }

/* ---------- FOOTER ---------- */
.foot {
  text-align: center; padding: 40px 20px;
  border-top: 1px solid var(--line); color: var(--text-dim);
  background: var(--indigo-800);
}
.foot-company { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 4px; color: var(--gold-soft); }
.foot-namaste { margin-top: 10px; color: var(--gold); letter-spacing: 0.1em; }

/* ---------- VIDEO MODAL ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(7, 5, 18, 0.9); backdrop-filter: blur(6px); }
.modal-frame {
  position: relative; z-index: 2; width: min(1000px, 96vw);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.modal-video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.modal-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-close {
  position: absolute; top: -46px; right: 0; z-index: 3;
  background: none; border: none; color: var(--text);
  font-size: 2.2rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { color: var(--gold); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 560px) {
  .nav-links { gap: 14px; font-size: 0.88rem; }
  .hero { min-height: 82vh; }
  .tile-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .modal-close { top: 0; right: 6px; }
}
