:root{
  --ice-light:#e6eef2;
  --ice-mid:#b9c9d1;
  --ice-deep:#7e93a0;
  --stone:#20242b;
  --peach:#f2c9a0;
  --peach-deep:#e0996a;
  --crimson:#8a1f2b;
  --forest:#2f5233;
  --navy:#1f3a5f;
  --gold:#d9ae3e;
  --gold-deep:#b8862a;
  --cream:#f7ecd8;
  --ivory:#fdf7ec;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}
*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  min-height:100vh;
  font-family:'Mukta','Noto Sans Devanagari',sans-serif;
  color:var(--ivory);
  background:
    linear-gradient(90deg, rgba(126,147,160,.55) 0%, rgba(230,238,242,.15) 50%, rgba(224,153,106,.5) 100%),
    linear-gradient(180deg, #2b2f36 0%, #1c1f24 45%, #241512 100%);
  background-attachment:fixed;
  overflow-x:hidden;
  position:relative;
}

.hero-screen{
  display:flex;
  flex-direction:column;
  min-height:100svh;
  min-height:100dvh;
}
.hero-screen main{
  flex:1;
  display:flex;
  flex-direction:column;
  padding-top:8px;
  padding-bottom:10px;
}
.hero-screen .tabs{ flex-shrink:0; margin-bottom:14px; }
.hero-screen .panel{ flex:1; display:none; min-height:0; }
.hero-screen .panel.active{ display:flex; }
.hero-screen .card{
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:16px 16px;
  min-height:0;
}
.hero-screen .wheel-wrap{
  width:min(300px, 40vh, 78vw);
  margin:4px auto 8px;
}

.kailash{
  position:relative;
  height:190px;
  overflow:hidden;
  flex-shrink:0;
}
.kailash svg{ width:100%; height:100%; display:block; }
.kailash .light{
  fill: var(--gold);
  filter: drop-shadow(0 0 4px rgba(217,174,62,.9));
}

.zari-strip{
  height:12px;
  width:100%;
  background: repeating-linear-gradient(45deg, var(--gold) 0 10px, var(--gold-deep) 10px 20px);
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}

header{
  text-align:center;
  padding:14px 16px 8px;
  position:relative;
  margin-top:-70px;
  flex-shrink:0;
}
.idol{
  font-size:clamp(1.8rem, 6vw, 2.6rem);
  display:block;
  margin-bottom:2px;
}
h1{
  font-family:'Baloo 2', cursive;
  font-weight:700;
  font-size:clamp(1.5rem, 6vw, 3rem);
  margin:0 0 6px;
  color:var(--gold);
  text-shadow: 0 2px 0 rgba(0,0,0,.5);
  letter-spacing:.5px;
}
.subtitle-mr{
  font-family:'Baloo 2', sans-serif;
  font-weight:500;
  color:var(--ivory);
  font-size:clamp(.85rem, 3vw, 1.1rem);
  max-width:520px;
  margin:0 auto;
  line-height:1.5;
}
.subtitle-en{
  color:var(--ivory);
  opacity:.6;
  font-size:.76rem;
  font-style:italic;
  max-width:480px;
  margin:4px auto 0;
  line-height:1.35;
}
.deco-row{
  display:flex;
  justify-content:center;
  gap:16px;
  font-size:1.3rem;
  margin-top:10px;
  opacity:.9;
}

/* Compact everything further on short mobile viewports so the
   wheel + spin controls fit on one screen without scrolling */
@media (max-height: 760px){
  .kailash{ height:110px; }
  header{ padding:8px 16px 4px; margin-top:-40px; }
  .idol{ font-size:1.5rem; margin-bottom:0; }
  h1{ font-size:clamp(1.25rem, 6vw, 1.8rem); margin-bottom:3px; }
  .subtitle-en{ display:none; }
  .deco-row{ display:none; }
  .hero-screen .tabs{ margin-bottom:8px; }
  .hero-screen .card{ padding:10px 14px; }
  .card .desc-en{ display:none; }
  .card .en-label{ display:none; }
  .hero-screen .wheel-wrap{ width:min(230px, 34vh, 68vw); margin:2px auto 4px; }
  .drag-hint{ margin-bottom:8px; font-size:.7rem; }
  .action-row{ margin-bottom:0; }
  .spin-btn, .ghost-btn{ padding:8px 18px; font-size:.85rem; }
}
@media (max-height: 640px){
  .kailash{ height:60px; }
  header{ margin-top:-15px; }
  .card h2{ font-size:1.25rem; margin-bottom:0; }
  .card p.desc-mr{ font-size:.85rem; margin-bottom:8px; }
  .drag-hint{ display:none; }
}

nav.top-nav{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top:16px;
  flex-wrap:wrap;
}
nav.top-nav a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 18px;
  border-radius:999px;
  border:1px solid rgba(217,174,62,.45);
  color:var(--gold);
  text-decoration:none;
  font-family:'Baloo 2', sans-serif;
  font-weight:600;
  font-size:.92rem;
  background:rgba(0,0,0,.2);
  transition:background .2s ease, transform .15s ease;
}
nav.top-nav a:hover{ background:rgba(217,174,62,.15); }
nav.top-nav a:active{ transform:scale(.97); }
nav.top-nav a.primary{
  background:linear-gradient(180deg, var(--gold), var(--gold-deep));
  color:var(--stone);
}

main{
  max-width:640px;
  margin:0 auto;
  padding:20px 16px 60px;
}

.tabs{
  display:flex;
  gap:10px;
  background:rgba(0,0,0,.25);
  padding:6px;
  border-radius:14px;
  margin-bottom:24px;
  border:1px solid rgba(217,174,62,.25);
}
.tab-btn{
  flex:1;
  padding:12px 8px;
  border:none;
  border-radius:10px;
  background:transparent;
  color:var(--ivory);
  font-family:'Baloo 2',sans-serif;
  font-weight:600;
  font-size:1.05rem;
  cursor:pointer;
  transition:background .25s ease, color .25s ease, transform .15s ease;
  line-height:1.3;
}
.tab-btn small{
  display:block;
  font-family:'Mukta',sans-serif;
  font-weight:500;
  font-size:.68rem;
  opacity:.75;
  letter-spacing:.3px;
}
.tab-btn.active{
  background:linear-gradient(180deg, var(--gold), var(--gold-deep));
  color:var(--stone);
  box-shadow:var(--shadow);
}
.tab-btn.active small{ opacity:.85; }
.tab-btn:active{ transform:scale(.97); }

.panel{ display:none; }
.panel.active{ display:block; }

.card{
  background: rgba(255,246,228,.06);
  border:1px solid rgba(217,174,62,.35);
  border-radius:20px;
  padding:22px 18px;
  text-align:center;
  backdrop-filter: blur(2px);
  box-shadow: var(--shadow);
}
.card h2{
  font-family:'Baloo 2',cursive;
  font-weight:700;
  color:var(--gold);
  font-size:1.6rem;
  margin:0 0 4px;
}
.card h2 + .en-label{
  display:block;
  font-size:.75rem;
  opacity:.55;
  font-style:italic;
  margin-bottom:12px;
}
.card p.desc-mr{
  margin:0 0 4px;
  font-family:'Baloo 2', sans-serif;
  font-weight:500;
  font-size:1rem;
  line-height:1.6;
}
.card p.desc-en{
  margin:0 0 18px;
  opacity:.55;
  font-size:.8rem;
  font-style:italic;
}

.wheel-wrap{
  position:relative;
  width:min(320px, 82vw);
  aspect-ratio:1/1;
  margin:0 auto 10px;
  touch-action:none;
  cursor:grab;
}
.wheel-wrap.dragging{ cursor:grabbing; }
.pointer{
  position:absolute;
  top:-14px;
  left:50%;
  transform:translateX(-50%);
  width:0; height:0;
  border-left:16px solid transparent;
  border-right:16px solid transparent;
  border-top:26px solid var(--gold);
  z-index:5;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.5));
}
canvas.wheel{
  width:100%;
  height:100%;
  border-radius:50%;
  border:6px solid var(--gold-deep);
  box-shadow: 0 0 0 4px var(--stone), var(--shadow);
  touch-action:none;
  user-select:none;
  -webkit-user-select:none;
}
.hub{
  position:absolute;
  top:50%; left:50%;
  transform:translate(-50%,-50%);
  width:58px; height:58px;
  border-radius:50%;
  background:radial-gradient(circle at 35% 30%, var(--cream), var(--gold) 75%);
  border:3px solid var(--gold-deep);
  display:flex;align-items:center;justify-content:center;
  font-size:1.5rem;
  z-index:4;
  box-shadow:0 2px 8px rgba(0,0,0,.5);
  pointer-events:none;
}

.drag-hint{
  font-family:'Mukta',sans-serif;
  font-size:.78rem;
  opacity:.6;
  font-style:italic;
  margin-bottom:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}
.drag-hint .hand{
  display:inline-block;
  animation:point-spin 1.8s ease-in-out infinite;
}
@keyframes point-spin{
  0%,100%{ transform:rotate(-18deg); }
  50%{ transform:rotate(18deg); }
}

.action-row{
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
}

.spin-btn{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  padding:12px 34px;
  font-family:'Baloo 2',sans-serif;
  font-weight:700;
  font-size:1.1rem;
  color:var(--stone);
  background:linear-gradient(180deg, var(--gold), var(--gold-deep));
  border:none;
  border-radius:999px;
  cursor:pointer;
  box-shadow: var(--shadow);
  transition: transform .15s ease, filter .2s ease;
  line-height:1.25;
}
.spin-btn small{
  font-family:'Mukta',sans-serif;
  font-weight:600;
  font-size:.68rem;
  opacity:.7;
}
.spin-btn:active{ transform:scale(.96); }
.spin-btn:disabled{ filter:grayscale(.5) brightness(.8); cursor:not-allowed; }

.ghost-btn{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  padding:12px 26px;
  font-family:'Baloo 2',sans-serif;
  font-weight:700;
  font-size:1rem;
  color:var(--gold);
  background:transparent;
  border:2px solid rgba(217,174,62,.6);
  border-radius:999px;
  cursor:pointer;
  transition: transform .15s ease, background .2s ease;
  line-height:1.25;
}
.ghost-btn small{
  font-family:'Mukta',sans-serif;
  font-weight:600;
  font-size:.66rem;
  opacity:.7;
}
.ghost-btn:hover{ background:rgba(217,174,62,.12); }
.ghost-btn:active{ transform:scale(.96); }

.result{
  margin-top:22px;
  padding-top:18px;
  border-top:1px dashed rgba(217,174,62,.4);
  min-height:100px;
}
.result .num{
  display:inline-block;
  font-size:.85rem;
  color:var(--stone);
  background:var(--gold);
  padding:3px 12px;
  border-radius:999px;
  font-weight:700;
  margin-bottom:10px;
  font-family:'Baloo 2',sans-serif;
}
.result .name-dev{
  font-family:'Baloo 2',cursive;
  font-weight:700;
  font-size:1.55rem;
  color:var(--ivory);
  margin:4px 0 1px;
}
.result .name-en{
  font-size:.8rem;
  opacity:.55;
  font-style:italic;
  margin-bottom:10px;
}
.result .prompt-mr{
  font-family:'Baloo 2', sans-serif;
  font-weight:500;
  font-size:1rem;
  opacity:.9;
  margin-bottom:2px;
}
.result .prompt-en{
  font-size:.78rem;
  opacity:.5;
  font-style:italic;
  margin-bottom:16px;
}
.reveal-btn{
  padding:10px 22px;
  font-size:.95rem;
  font-weight:700;
  font-family:'Baloo 2',sans-serif;
  color:var(--gold);
  background:transparent;
  border:2px solid var(--gold);
  border-radius:999px;
  cursor:pointer;
  transition:.2s ease;
  display:inline-flex;
  flex-direction:column;
  line-height:1.3;
}
.reveal-btn small{
  font-family:'Mukta',sans-serif;
  font-size:.65rem;
  opacity:.75;
  font-weight:600;
}
.reveal-btn:hover{ background:rgba(217,174,62,.12); }
.meaning{
  margin-top:14px;
  background:rgba(0,0,0,.22);
  border-radius:12px;
  padding:14px 16px;
  display:none;
  text-align:left;
}
.meaning.show{ display:block; }
.meaning .m-mr{
  font-family:'Baloo 2', sans-serif;
  font-weight:500;
  font-size:1.05rem;
  line-height:1.6;
  margin-bottom:6px;
}
.meaning .m-en{
  font-size:.82rem;
  opacity:.55;
  font-style:italic;
  line-height:1.4;
}
.placeholder{
  opacity:.55;
  font-size:.92rem;
  padding:20px 0;
  font-family:'Baloo 2', sans-serif;
}

/* ===== See All modal ===== */
.see-all-overlay{
  position:fixed;
  inset:0;
  background:rgba(10,10,12,.75);
  backdrop-filter: blur(2px);
  z-index:200;
  display:none;
  align-items:flex-end;
  justify-content:center;
}
.see-all-overlay.show{ display:flex; }
@media (min-width: 640px){
  .see-all-overlay{ align-items:center; }
}
.see-all-panel{
  background:linear-gradient(180deg, #2b2f36, #1c1f24 60%, #241512);
  border:1px solid rgba(217,174,62,.4);
  border-radius:20px 20px 0 0;
  width:100%;
  max-width:640px;
  max-height:82vh;
  display:flex;
  flex-direction:column;
  box-shadow:0 -10px 40px rgba(0,0,0,.5);
}
@media (min-width: 640px){
  .see-all-panel{ border-radius:20px; max-height:78vh; margin:20px; }
}
.see-all-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 18px 12px;
  border-bottom:1px solid rgba(217,174,62,.25);
}
.see-all-head h3{
  font-family:'Baloo 2',cursive;
  color:var(--gold);
  margin:0;
  font-size:1.25rem;
}
.see-all-head .en-label{
  display:block;
  font-size:.72rem;
  opacity:.55;
  font-style:italic;
}
.see-all-close{
  background:rgba(217,174,62,.15);
  border:1px solid rgba(217,174,62,.5);
  color:var(--gold);
  width:34px; height:34px;
  border-radius:50%;
  font-size:1.1rem;
  cursor:pointer;
  flex-shrink:0;
}
.see-all-list{
  overflow-y:auto;
  padding:8px 18px 18px;
}
.see-all-item{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,.07);
}
.see-all-item .idx{
  flex-shrink:0;
  width:30px; height:30px;
  border-radius:50%;
  background:rgba(217,174,62,.18);
  color:var(--gold);
  display:flex;align-items:center;justify-content:center;
  font-family:'Baloo 2',sans-serif;
  font-weight:700;
  font-size:.8rem;
}
.see-all-item .txt .name-dev{
  font-family:'Baloo 2',cursive;
  font-weight:700;
  font-size:1.05rem;
  color:var(--ivory);
}
.see-all-item .txt .name-en{
  font-size:.72rem;
  opacity:.5;
  font-style:italic;
  margin-left:6px;
}
.see-all-item .txt .m-mr{
  font-family:'Baloo 2', sans-serif;
  font-weight:500;
  font-size:.9rem;
  opacity:.85;
  margin-top:2px;
}
.see-all-item .txt .m-en{
  font-size:.75rem;
  opacity:.45;
  font-style:italic;
}

.below-fold{
  max-width:640px;
  margin:0 auto;
  padding:24px 16px 10px;
}
.about-cta{
  display:flex;
  justify-content:center;
}
.about-cta a{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
  padding:12px 30px;
  border-radius:999px;
  border:1px solid rgba(217,174,62,.45);
  color:var(--gold);
  text-decoration:none;
  background:rgba(0,0,0,.2);
  transition:background .2s ease, transform .15s ease;
}
.about-cta a:hover{ background:rgba(217,174,62,.15); }
.about-cta a:active{ transform:scale(.97); }
.about-cta .mr{
  font-family:'Baloo 2', sans-serif;
  font-weight:600;
  font-size:1rem;
}
.about-cta .en{
  font-family:'Mukta',sans-serif;
  font-weight:500;
  font-size:.72rem;
  opacity:.75;
}

footer{
  text-align:center;
  padding:20px;
  opacity:.55;
  font-size:.85rem;
  font-family:'Baloo 2', sans-serif;
}
footer .en{
  display:block;
  font-family:'Mukta',sans-serif;
  font-size:.7rem;
  font-style:italic;
  margin-top:2px;
}
footer a{ color:var(--gold); }
footer .year-note{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid rgba(217,174,62,.2);
  font-family:'Baloo 2', sans-serif;
  font-weight:600;
  font-size:.82rem;
  color:var(--gold);
  opacity:.85;
}
footer .year-note .en{
  color:var(--ivory);
  opacity:.65;
}

#loading{
  position:fixed; inset:0;
  background:linear-gradient(180deg, #1c1f24, #241512);
  z-index:999;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  transition:opacity .6s ease;
}
#loading.hide{ opacity:0; pointer-events:none; }
.load-emoji{
  font-size:4rem;
  animation:sway 1.1s ease-in-out infinite;
}
.load-text{
  font-family:'Baloo 2',cursive;
  color:var(--gold);
  font-size:1.4rem;
  margin-top:14px;
  letter-spacing:.5px;
}
@keyframes sway{
  0%,100%{ transform:rotate(-8deg); }
  50%{ transform:rotate(8deg); }
}
@media (prefers-reduced-motion: reduce){
  .load-emoji{ animation:none; }
  .drag-hint .hand{ animation:none; }
}

/* ===== About page ===== */
.about-section{
  background: rgba(255,246,228,.06);
  border:1px solid rgba(217,174,62,.3);
  border-radius:20px;
  padding:22px 20px;
  margin-bottom:20px;
  box-shadow: var(--shadow);
}
.about-section h2{
  font-family:'Baloo 2',cursive;
  font-weight:700;
  color:var(--gold);
  font-size:1.4rem;
  margin:0 0 2px;
  display:flex;
  align-items:center;
  gap:8px;
}
.about-section .en-label{
  display:block;
  font-size:.72rem;
  opacity:.55;
  font-style:italic;
  margin-bottom:12px;
}
.about-section p.mr{
  font-family:'Baloo 2', sans-serif;
  font-weight:500;
  font-size:1.02rem;
  line-height:1.75;
  margin:0 0 4px;
}
.about-section p.en{
  font-size:.82rem;
  opacity:.55;
  font-style:italic;
  line-height:1.55;
  margin:0 0 16px;
}
.about-section ul{
  margin:0 0 16px;
  padding-left:0;
  list-style:none;
}
.about-section ul li{
  font-family:'Baloo 2', sans-serif;
  font-weight:500;
  font-size:.98rem;
  line-height:1.6;
  padding:8px 0 8px 30px;
  position:relative;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.about-section ul li:last-child{ border-bottom:none; }
.about-section ul li::before{
  content:"🪔";
  position:absolute;
  left:0; top:6px;
  font-size:.95rem;
}
.about-section ul li .en{
  display:block;
  font-size:.75rem;
  opacity:.5;
  font-style:italic;
  font-weight:400;
  margin-top:2px;
}
.about-hero{
  text-align:center;
  padding:6px 0 20px;
}
.setup-photo{
  max-width:360px;
  margin:0 auto 10px;
  border-radius:18px;
  overflow:hidden;
  border:3px solid var(--gold-deep);
  box-shadow:var(--shadow);
}
.setup-photo img{
  display:block;
  width:100%;
  height:auto;
}
.photo-caption{
  font-family:'Baloo 2', sans-serif;
  font-weight:500;
  font-size:.85rem;
  opacity:.8;
  margin:0 0 2px;
}
.photo-caption.en{
  font-family:'Mukta',sans-serif;
  font-weight:400;
  font-size:.72rem;
  opacity:.5;
  font-style:italic;
  margin-bottom:0;
}

.video-placeholder{
  max-width:480px;
  margin:0 auto 6px;
  aspect-ratio:16/9;
  border-radius:16px;
  border:2px dashed rgba(217,174,62,.5);
  background:rgba(0,0,0,.25);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:var(--gold);
  font-family:'Baloo 2',sans-serif;
}
.video-placeholder .play-ic{ font-size:2.2rem; }
.video-placeholder span.vp-mr{ font-size:.95rem; font-weight:600; }
.video-placeholder span.vp-en{ font-size:.72rem; opacity:.6; font-style:italic; }

.two-col{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}
@media (min-width:560px){
  .two-col{ grid-template-columns:1fr 1fr; }
}
.mini-card{
  background:rgba(0,0,0,.2);
  border:1px solid rgba(217,174,62,.25);
  border-radius:14px;
  padding:14px 16px;
}
.mini-card .ic{ font-size:1.5rem; display:block; margin-bottom:6px; }
.mini-card h4{
  font-family:'Baloo 2',cursive;
  color:var(--gold);
  margin:0 0 4px;
  font-size:1.05rem;
}
.mini-card p{
  font-family:'Baloo 2', sans-serif;
  font-weight:500;
  font-size:.9rem;
  line-height:1.55;
  margin:0 0 4px;
  opacity:.92;
}
.mini-card p.en{
  font-size:.74rem;
  opacity:.5;
  font-style:italic;
  font-family:'Mukta',sans-serif;
  font-weight:400;
}
.cta-box{
  text-align:center;
  padding:22px 18px;
  background:linear-gradient(180deg, rgba(217,174,62,.18), rgba(217,174,62,.05));
  border:1px solid rgba(217,174,62,.4);
  border-radius:20px;
  margin-bottom:20px;
}
.cta-box p.mr{
  font-family:'Baloo 2', sans-serif;
  font-weight:600;
  font-size:1.05rem;
  margin:0 0 4px;
}
.cta-box p.en{
  font-size:.8rem;
  opacity:.6;
  font-style:italic;
  margin:0 0 16px;
}
