/* =====================================================================
   GLASS PLAYER WEBSITE - styles
   Sizes use "--u" (1/100 of a 16:9 screen) so the whole design scales
   to any monitor or laptop. Colours you may want to change are below.
   ===================================================================== */

@font-face {
  font-family: "GP Poppins";                   /* Poppins SemiBold - free font (SIL Open Font License) */
  src: url("../fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  /* ---- easy-to-change colours ---- */
  --green:        #22e61e;          /* menu underline, highlighted names, glows */
  --green-soft:   rgba(40, 255, 60, .35);
  --white:        #ffffff;
  --panel-tint:   rgba(8, 34, 14, .52);   /* About / Features glass colour */

  /* ---- layout ---- */
  --u: min(1vw, 1.7778vh);          /* 1 design unit (1920px wide design / 100) */
  --split: 60vw;                    /* where the blurred glass strip starts */
  --cardW: calc(var(--u) * 30.2);   /* width of the glass player */
  --k: calc(var(--cardW) / 460);    /* 1 "player pixel" (player is 460 x 280) */

  --font: "Open Sans", "Segoe UI", Arial, sans-serif;
  --font-player: "GP Poppins", "Poppins", "Segoe UI", "Open Sans", sans-serif;   /* the glass player card */
  --ease: cubic-bezier(.22, .8, .24, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #0b1f0e;
  color: var(--white);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* pictures, videos and drawings can't be dragged out or long-pressed to save (phones) */
img, video, canvas, svg {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ===================== BACKGROUND ===================== */
.bg {
  position: fixed; inset: 0;
  background: #0b1f0e url("../images/background.jpg") center / cover no-repeat;
}

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* layers that move with the mouse (main.js) */
.bg, .glass-strip, .big-title, .orb-zone, .player-zone, .about { will-change: transform; }

/* the same leaves, gently moving in the breeze (drawn by main.js on top of the still picture) */
.leaves {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.leaves.on { opacity: 1; }

.glass-strip {
  position: fixed; top: 0; bottom: 0; left: var(--split);
  right: calc(var(--u) * -4);          /* extra width so moving layers never show a gap */
  -webkit-backdrop-filter: blur(calc(var(--u) * 2.1)) saturate(1.2) brightness(1.12);
          backdrop-filter: blur(calc(var(--u) * 2.1)) saturate(1.2) brightness(1.12);
  background: rgba(60, 110, 50, .06);
  box-shadow: inset 1px 0 0 rgba(255,255,255,.08),
              calc(var(--u) * -.3) 0 calc(var(--u) * .8) rgba(0,0,0,.35);
  transition: opacity .7s var(--ease), translate 1s var(--ease);
}

/* ===================== BIG TITLE ===================== */
.big-title {
  position: fixed; inset: 0; margin: 0;
  pointer-events: none;
  font-weight: 700;
  font-size: calc(var(--u) * 13.85);
  line-height: 1.09;
  letter-spacing: -0.01em;
  transition: opacity .7s var(--ease), translate 1s var(--ease);
}
.bt-left, .bt-right {
  position: absolute;
  top: calc(50vh - var(--u) * 7.2);
  display: flex; flex-direction: column;
}
.bt-left  { right: calc(100vw - var(--split)); padding-right: calc(var(--u) * 1.75); align-items: flex-end; color: #fff; }
.bt-right { left: var(--split); padding-left: calc(var(--u) * .25); align-items: flex-start; }
.bt-line  { display: block; white-space: nowrap; }

/* see-through letters: holes cut in the frosted glass, the clear leaves show
   through them. main.js lines the picture up with the moving background, and
   the #holeShadow filter adds the soft shadow inside the top edge of each hole. */
.leaf-text {
  color: transparent;
  background-image: url("../images/background.jpg");
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  filter: url(#holeShadow);
}

/* ===================== MENU ===================== */
.menu {
  position: fixed; z-index: 20;
  top: calc(var(--u) * 2.35);
  left: calc(var(--u) * 3.8);                 /* logo first, so HOME stays where it was in the design */
  display: flex; gap: calc(var(--u) * 4);
  font-weight: 700;
  font-size: max(calc(var(--u) * 1.36), 13px);
  letter-spacing: .02em;
}
.menu a {
  color: #fff; text-decoration: none;
  padding: calc(var(--u) * .3) 0 calc(var(--u) * .75);
  text-shadow: 0 2px 6px rgba(0,0,0,.45);
  transition: color .25s, text-shadow .25s;
}
.menu a:hover { text-shadow: 0 0 12px var(--green-soft), 0 2px 6px rgba(0,0,0,.45); }

/* Glass Player logo before HOME */
.menu { align-items: center; }
.menu .menu-logo {
  display: block;
  padding: 0;
  margin-right: calc(var(--u) * -1.2);          /* sits a little closer to HOME than the gap between links */
  margin-top: calc(var(--u) * -.45);            /* line up with the middle of the words (they have the underline space below) */
}
.menu-logo img {
  display: block;
  width: max(calc(var(--u) * 2.9), 30px);
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.45));
  transition: transform .35s var(--ease), filter .35s;
}
.menu-logo:hover img {
  transform: scale(1.08) rotate(-6deg);
  filter: drop-shadow(0 0 10px rgba(255,255,255,.55)) drop-shadow(0 2px 6px rgba(0,0,0,.45));
}
.menu-bar {
  position: absolute; bottom: 0; left: 0;
  height: max(calc(var(--u) * .4), 3px); width: 0;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 10px rgba(34,230,30,.6);
  transition: left .45s var(--ease), width .45s var(--ease);
}

/* ===================== PAGE SWITCHING =====================
   Home <-> About : menu, leaves, glass and title stay; the player slides out
                    to the left while the About panel slides in from the left.
   Features / Download : the glass and title slide away to the right and the
                    panel rises up.
   (Each glass element fades itself, which keeps its blur working mid-animation.) */
.page-el {
  opacity: 0; visibility: hidden;
  translate: calc(var(--u) * -9) 0;
  transition: opacity .5s var(--ease), translate .8s var(--ease), visibility 0s linear .8s;
}
.features.page-el, .download.page-el { translate: 0 calc(var(--u) * 5); }

body[data-page="home"]     .page-el[data-for="home"],
body[data-page="about"]    .page-el[data-for="about"],
body[data-page="features"] .page-el[data-for="features"],
body[data-page="download"] .page-el[data-for="download"] {
  opacity: 1; visibility: visible; translate: 0 0;
  transition: opacity .75s var(--ease) .18s, translate 1s var(--ease) .18s, visibility 0s;
}
body[data-page="features"] .big-title,
body[data-page="download"] .big-title,
body[data-page="features"] .glass-strip,
body[data-page="download"] .glass-strip { opacity: 0; translate: 30vw 0; }

/* ===================== HOME : GLOWING ORB BEHIND THE PLAYER =====================
   Like the blob behind the glass card in the reference video: outside the card
   it glows, through the frosted card it is blurred. "screen" blending makes the
   video's black background disappear.                                          */
.orb-zone { position: fixed; inset: 0; pointer-events: none; mix-blend-mode: screen; }
.orb {
  --orbW: calc(var(--cardW) * 1.4);           /* orb size (1.4 x the player width) */
  position: absolute;
  width: var(--orbW); height: var(--orbW);
  left: calc(4.2vw + var(--cardW) / 2 - var(--orbW) / 2);
  top:  calc(50vh - var(--orbW) / 2 + var(--u) * .8);
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  object-fit: cover;
}

/* ===================== HOME : GLASS PLAYER ===================== */
.player-zone { position: fixed; inset: 0; pointer-events: none; }
body[data-page="home"] .player-zone { pointer-events: auto; }
.player-zone .player { pointer-events: auto; }

.player {
  --rx: 0deg; --ry: 0deg; --s: 1; --gx: 50%; --gy: 50%; --go: 0; --sx: 0px; --sy: 0px;
  position: absolute;
  left: 4.2vw;
  top: calc(50vh - var(--k) * 140);
  width: var(--cardW);
  height: calc(var(--k) * 280);
  border: calc(var(--k) * 2.2) solid rgba(255,255,255,.92);
  border-radius: calc(var(--k) * 11);
  background:
    linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.03) 45%, rgba(0,30,10,.10));
  -webkit-backdrop-filter: blur(calc(var(--k) * 15)) saturate(1.35);
          backdrop-filter: blur(calc(var(--k) * 15)) saturate(1.35);
  box-shadow:
    var(--sx) calc(var(--k) * 22 + var(--sy)) calc(var(--k) * 50) rgba(0,0,0,.38),
    inset 0 0 calc(var(--k) * 30) rgba(255,255,255,.06);
  transform: perspective(calc(var(--k) * 1300)) rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--s));
  font-family: var(--font-player);
  font-weight: 600;
  user-select: none;
  outline: none;
}
.player-glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,.30), rgba(255,255,255,.08) 30%, rgba(255,255,255,0) 60%);
  opacity: var(--go);
  mix-blend-mode: soft-light;
}
/* every part is placed in "player pixels" (k) like the real app */
.player > * { position: absolute; }

.win-btns { top: calc(var(--k) * 6); right: calc(var(--k) * 14); display: flex; gap: calc(var(--k) * 1); }
.win-btns span {
  width: calc(var(--k) * 13); height: calc(var(--k) * 18);
  font-size: calc(var(--k) * 12); line-height: calc(var(--k) * 18);
  text-align: center;
  color: rgba(255,255,255,.9);
}

.vinyl {
  left: calc(var(--k) * 41.75); top: calc(var(--k) * 10.75);
  width: calc(var(--k) * 103.5); height: calc(var(--k) * 103.5);
  filter: drop-shadow(0 calc(var(--k)*3) calc(var(--k)*6) rgba(0,0,0,.35));
  will-change: transform;
  animation: vinyl-spin 1.8s linear infinite;     /* 33 rpm like the real player (200 degrees a second) */
}
@keyframes vinyl-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vinyl { animation: none; } }
.arm {
  left: calc(var(--k) * -16.5); top: calc(var(--k) * 16.5);
  width: calc(var(--k) * 120.35); height: calc(var(--k) * 90.51);
  pointer-events: none;
  filter: drop-shadow(0 calc(var(--k)*2) calc(var(--k)*3) rgba(0,0,0,.35));
}

.song-title {
  left: calc(var(--k) * 174); top: calc(var(--k) * 40);
  width: calc(var(--k) * 230); height: calc(var(--k) * 40);
  font-size: calc(var(--k) * 26); line-height: calc(var(--k) * 40);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.song-hint {
  left: calc(var(--k) * 176); top: calc(var(--k) * 82);
  width: calc(var(--k) * 230);
  font-size: calc(var(--k) * 10.5); line-height: calc(var(--k) * 20);
  word-spacing: .45em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: .95;
}

.time { top: calc(var(--k) * 134); font-size: calc(var(--k) * 17); line-height: calc(var(--k) * 24); font-variant-numeric: tabular-nums; }
.time-now   { left: calc(var(--k) * 34);  }
.time-total { left: calc(var(--k) * 403); }

.seek {
  left: calc(var(--k) * 83); top: calc(var(--k) * 136);
  width: calc(var(--k) * 310); height: calc(var(--k) * 20);
}
.seek-line, .seek-fill {
  position: absolute; left: 0; top: 50%; height: calc(var(--k) * 1.6); margin-top: calc(var(--k) * -.8);
  border-radius: 9px; background: rgba(255,255,255,.75);
}
.seek-line { right: 0; }
.seek-fill { width: 0; background: #fff; box-shadow: 0 0 calc(var(--k)*6) rgba(255,255,255,.6); }
.seek-dot {
  position: absolute; top: 50%; left: 0;
  width: calc(var(--k) * 10); height: calc(var(--k) * 10);
  margin: calc(var(--k) * -5) 0 0 calc(var(--k) * -5);
  border-radius: 50%; background: #fff;
  box-shadow: 0 0 calc(var(--k)*6) rgba(0,0,0,.35);
}

.pbtn { display: grid; place-items: center; }
.pbtn svg { width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pbtn svg.solid { fill: #fff; stroke: none; }

.btn-vol   { left: calc(var(--k) * 44);  top: calc(var(--k) * 166); width: calc(var(--k) * 30); height: calc(var(--k) * 30); }
.btn-prev  { left: calc(var(--k) * 181); top: calc(var(--k) * 171); width: calc(var(--k) * 19); height: calc(var(--k) * 19); }
.btn-play  { left: calc(var(--k) * 231); top: calc(var(--k) * 168); width: calc(var(--k) * 25); height: calc(var(--k) * 25); }
.btn-next  { left: calc(var(--k) * 286); top: calc(var(--k) * 171); width: calc(var(--k) * 19); height: calc(var(--k) * 19); }
.btn-heart { left: calc(var(--k) * 387); top: calc(var(--k) * 167); width: calc(var(--k) * 29); height: calc(var(--k) * 29); }

.wave {
  left: calc(var(--k) * 139); top: calc(var(--k) * 210);
  width: calc(var(--k) * 210); height: calc(var(--k) * 50);
  display: flex; align-items: center; justify-content: space-between;
}
.wave i {
  display: block;
  width: calc(var(--k) * 3.1); height: 100%;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 0 calc(var(--k)*4) rgba(255,255,255,.45);
  transform: scaleY(.2);
}

/* ===================== ABOUT ===================== */
.about {
  position: fixed;
  left: 2.6vw;
  top: calc(50vh - var(--u) * 21.4);
  width: calc(var(--u) * 37.5);
  height: calc(var(--u) * 45.9);
  max-height: calc(100vh - var(--u) * 8.5);
  background: var(--panel-tint);
  -webkit-backdrop-filter: blur(calc(var(--u) * 2.4)) saturate(1.2);
          backdrop-filter: blur(calc(var(--u) * 2.4)) saturate(1.2);
  box-shadow: 0 0 calc(var(--u) * 1.6) rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.06);
  z-index: 5;
}
.about-inner {
  height: 100%;
  overflow-y: auto;
  padding: calc(var(--u) * 3.7) calc(var(--u) * 2.4) calc(var(--u) * 3) calc(var(--u) * 3.1);
  font-weight: 600;
  font-size: max(calc(var(--u) * 1.27), 13px);
  line-height: 1.12;
  text-shadow: 0 2px 4px rgba(0,0,0,.55);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent;
}
.about h2 { margin: 0 0 1.05em; font-size: 1em; font-weight: 700; }
.about p  { margin: 0 0 1.05em; }
/* credits: a second, quieter part of the About card */
.about-credits {
  margin-top: 1.3em; padding-top: .9em;
  border-top: 1px solid rgba(255,255,255,.2);
  font-size: .78em; font-weight: 400; line-height: 1.35;
  color: rgba(255,255,255,.82);
}
.about-credits h3 { margin: 0 0 .5em; font-size: 1.1em; font-weight: 700; color: #fff; letter-spacing: .04em; }
.about-credits ul { margin: 0; padding: 0; list-style: none; }
.about-credits li { margin: 0 0 .3em; }
.about-credits .hl { color: #fff; font-weight: 600; }
.hl { color: var(--green); }

/* ===================== FEATURES ===================== */
.features-scroll {
  position: fixed; left: 0; right: 0; bottom: 0;
  top: calc(var(--u) * 7.6);
  overflow-y: hidden;                   /* no scrollbar showing on the other pages */
  padding: calc(var(--u) * 1.6) 0 calc(var(--u) * 4);
  pointer-events: none;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent;
}
body[data-page="features"] .features-scroll { pointer-events: auto; overflow-y: auto; }

.features {
  width: min(94vw, calc(var(--u) * 62));
  margin: 0 auto;
  padding: calc(var(--u) * 1.6) calc(var(--u) * 2.4) calc(var(--u) * 3.4);
  background: var(--panel-tint);
  -webkit-backdrop-filter: blur(calc(var(--u) * 3.2)) saturate(1.3);
          backdrop-filter: blur(calc(var(--u) * 3.2)) saturate(1.3);
  box-shadow: 0 0 calc(var(--u) * 1.6) rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.05);
  font-size: max(calc(var(--u) * 1.3), 14px);
}
.features h2 {
  margin: 0 0 calc(var(--u) * 2.2);
  text-align: center; font-size: 1.05em; font-weight: 700; letter-spacing: .02em;
}
.feature {
  display: grid;
  grid-template-columns: 54% 1fr;
  column-gap: calc(var(--u) * 2.4);
  align-items: start;
  margin-bottom: calc(var(--u) * 2.6);
}
.feature:last-child { margin-bottom: 0; }
.feature:nth-child(even) { grid-template-columns: 1fr 54%; }
.feature:nth-child(even) .f-video { order: 2; }
.f-info { text-align: center; padding-top: calc(var(--u) * .2); }
.f-info h3 { margin: 0 0 .6em; font-size: 1em; font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,.4); }
.f-info p  { margin: 0 auto; max-width: 22em; font-weight: 400; font-size: .82em; line-height: 1.5; opacity: .85; }
.f-info p + p { margin-top: .9em; }

.f-video {
  position: relative;
  aspect-ratio: 520 / 330;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: calc(var(--u) * .55);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 70% 30%, rgba(90,160,80,.30), rgba(0,0,0,0) 60%),
    linear-gradient(135deg, rgba(30,80,40,.45), rgba(10,40,20,.35));
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.f-video:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 18px rgba(34,230,30,.18); }
.f-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.f-play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,.4);
  transition: background .25s;
}
.f-play:hover { background: rgba(255,255,255,.06); }
.f-play span { display: inline-flex; align-items: center; gap: .55em; }
.f-play svg { width: 1em; height: 1em; fill: #fff; opacity: 0; width: 0; transition: opacity .25s, width .25s; }
.f-play:hover svg { opacity: 1; width: 1em; }
.f-video.playing .f-play { display: none; }

/* speaker button on videos that have music (sound starts off) */
.f-sound {
  position: absolute; right: 10px; top: 10px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(10, 35, 15, .45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.55);
  transition: transform .2s var(--ease), background .2s, border-color .2s;
}
.f-sound:hover { transform: scale(1.1); background: rgba(10, 35, 15, .65); }
.f-sound.on { border-color: var(--green); box-shadow: 0 0 10px rgba(34,230,30,.45); }
.f-sound svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.f-sound .ico-on, .f-sound.on .ico-off { display: none; }
.f-sound.on .ico-on { display: block; }

/* ===================== SUPPORT & DOWNLOAD =====================
   One glass panel that scrolls (like Features):
   support (note | easy payment | India)  ->  theme cards + 3 steps  ->  download     */
.download-scroll {
  position: fixed; left: 0; right: 0; bottom: 0;
  top: calc(var(--u) * 7.6);
  overflow-y: hidden;
  padding: calc(var(--u) * 1.6) 0 calc(var(--u) * 4);
  pointer-events: none;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent;
}
body[data-page="download"] .download-scroll { pointer-events: auto; overflow-y: auto; }

.download {
  width: min(94vw, calc(var(--u) * 78));
  margin: 0 auto;
  padding: calc(var(--u) * 2.4) calc(var(--u) * 3.2) calc(var(--u) * 3);
  text-align: center;
  background: var(--panel-tint);
  -webkit-backdrop-filter: blur(calc(var(--u) * 2.6)) saturate(1.2);
          backdrop-filter: blur(calc(var(--u) * 2.6)) saturate(1.2);
  box-shadow: 0 0 calc(var(--u) * 1.6) rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.06);
  font-size: max(calc(var(--u) * 1.3), 14px);
}
.download h2 { margin: 0 0 .35em; font-size: 1.1em; letter-spacing: .04em; }
.sp-sub { margin: 0 0 2em; font-size: .9em; opacity: .85; text-shadow: 0 2px 4px rgba(0,0,0,.4); }

/* ---- support: note | easy payment | India UPI QR ---- */
.sp-row {
  display: grid; grid-template-columns: 1.45fr 1fr 1fr;
  column-gap: calc(var(--u) * 2.2); align-items: stretch;
  text-align: left;
}
.sp-box {
  display: flex; flex-direction: column;
  padding: 1.2em 1.2em 1.1em;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: calc(var(--u) * .7);
  box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.08);
}
.sp-box-title { margin: 0 0 .7em; font-size: .95em; font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,.4); }
.sp-box-text { margin: 0; font-size: .78em; line-height: 1.5; opacity: .85; }
/* note for supporters outside India (Easy payment column) */
.sp-abroad {
  margin: 0 0 .9em; padding: .65em .8em;
  font-size: .76em; line-height: 1.5;
  background: rgba(34, 230, 30, .1);
  border: 1px solid rgba(34, 230, 30, .45);
  border-radius: 10px;
  box-shadow: inset 0 0 10px rgba(34, 230, 30, .1);
}
.sp-abroad:empty { display: none; }
.sp-badges { display: flex; flex-direction: column; gap: .5em; margin: 1em 0 1.1em; }
.sp-badge {
  padding: .55em .8em;
  font-size: .8em; font-weight: 700; text-align: center;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: .55em;
}
.sp-secure {
  margin-top: auto;
  display: flex; align-items: center; gap: .45em;
  font-size: .7em; font-weight: 700; opacity: .8;
}
.sp-secure svg { width: 1.3em; height: 1.3em; flex: none; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sp-india .sp-box-title { color: var(--green); }
.sp-qr {
  position: relative; align-self: center;
  width: min(100%, 10.5em); aspect-ratio: 1;
  margin-bottom: .7em;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: .6em; overflow: hidden;
}
.sp-qr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.sp-qr-soon {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45em;
  padding: .6em; text-align: center; font-size: .68em; font-weight: 600; opacity: .7;
}
.sp-qr-soon svg { width: 2.4em; height: 2.4em; fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.sp-upi { margin-bottom: .5em; text-align: center; font-size: .74em; opacity: .9; }
.sp-upi-name { font-size: 1.08em; margin-bottom: .2em; }
.sp-upi-name b { color: var(--green); }
.sp-upi-id { overflow-wrap: anywhere; opacity: .9; }

/* the QR code starts blurred: "Show QR code" -> the name check -> the real code */
.qr-veil, .qr-check {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55em;
  text-align: center;
}
.qr-veil[hidden], .qr-check[hidden] { display: none; }
.qr-decoy { position: absolute; inset: 9%; width: 82%; height: 82%; filter: blur(5px); opacity: .5; }
.qr-btn {
  position: relative; display: inline-flex; align-items: center; gap: .4em;
  padding: .5em .95em; border-radius: 99px; cursor: pointer;
  font: inherit; font-size: .7em; font-weight: 700; color: #fff;
  background: rgba(8, 34, 14, .78); border: 1.5px solid var(--green);
  box-shadow: 0 0 10px rgba(34, 230, 30, .35);
  transition: background .2s;
}
.qr-btn[hidden] { display: none; }
.qr-btn:hover { background: rgba(34, 230, 30, .28); }
.qr-btn svg { width: 1.3em; height: 1.3em; flex: none; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qr-check { gap: .3em; padding: .6em .55em; background: rgba(8, 30, 14, .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.qr-check-title { font-size: .72em; color: #ffd24f; }
.qr-check-text { font-size: .62em; line-height: 1.35; }
.qr-check-name { font-size: .86em; font-weight: 700; color: var(--green); line-height: 1.2; }
.qr-check-id {                                            /* the UPI ID, in a small box so it stands out */
  max-width: 100%; padding: .2em .5em; border-radius: 6px;
  font-size: .6em; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25);
}
.qr-check .qr-btn { margin-top: .25em; }
.sp-qr img.qr-real { animation: qrIn .5s ease; }
/* qrFull: the whole Paytm card (photo, name, QR, UPI ID) - the box grows to the card's shape */
.sp-qr.full { width: min(100%, 16em); aspect-ratio: auto; background: transparent; border: 0; }
.sp-qr.full img.qr-real { position: static; display: block; width: 100%; height: auto; border-radius: .7em; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
@keyframes qrIn { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: none; } }
.sp-upi:empty { display: none; }
.sp-skip {
  display: block; margin-top: 1.4em; text-align: center;
  font-size: .78em; color: #fff; opacity: .78; text-decoration: none;
}
.sp-skip:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

.sp-who { display: flex; align-items: center; gap: .9em; margin-bottom: 1.1em; }
.sp-avatar {
  width: 4.6em; height: 4.6em; border-radius: 50%; object-fit: cover;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.45));      /* no ring - just a soft shadow, like the download logo */
}
.sp-name { font-weight: 700; font-size: 1em; text-shadow: 0 2px 4px rgba(0,0,0,.4); }
.sp-role { margin-top: .2em; font-size: .8em; opacity: .7; font-weight: 600; }
.sp-note-text p { margin: 0 0 .9em; font-size: .84em; line-height: 1.55; opacity: .92; }
.sp-note-text p:last-child { margin-bottom: 0; }

/* ---- theme cards (one row of 5 on wide screens) ---- */
.wp-title { margin: 2em 0 .3em; padding-top: 1.6em; border-top: 1px solid rgba(255,255,255,.14); font-size: 1em; font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,.4); }
.wp-sub { margin: 0 0 1.3em; font-size: .82em; opacity: .8; }
.wp-grid {
  --wp-gap: calc(var(--u) * 1.2);
  display: flex; flex-wrap: wrap; justify-content: center;   /* a short last row sits in the middle */
  gap: var(--wp-gap); text-align: left;
}
.wp-grid > .wp-card { flex: 0 0 calc((100% - var(--wp-gap) * 4) / 5); min-width: 0; }   /* 5 in a row */
@media (max-width: 1150px) and (min-aspect-ratio: 4/5) {
  .wp-grid > .wp-card { flex-basis: calc((100% - var(--wp-gap) * 2) / 3); }               /* smaller laptops: 3 + 2 */
  .sp-row { grid-template-columns: 1fr 1fr; row-gap: calc(var(--u) * 2.2); }            /* note on top, the two boxes below */
  .sp-note { grid-column: 1 / -1; }
}
.wp-card {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: calc(var(--u) * .6);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.wp-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.35); box-shadow: 0 12px 28px rgba(0,0,0,.35), 0 0 16px rgba(34,230,30,.15); }
.wp-pic { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, rgba(30,80,40,.55), rgba(10,40,20,.45)); }
.wp-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wp-soon {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45em;
  padding: .4em; text-align: center;
  font-size: .72em; font-weight: 600; opacity: .7;
}
.wp-soon svg { width: 2.2em; height: 2.2em; fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.wp-info { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .3em .5em; padding: .7em .8em .3em; }
.wp-name { font-size: .84em; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-price { flex: none; }
.wp-price {
  padding: .15em .6em; border-radius: 99px;
  font-size: .76em; font-weight: 800; color: #0b1f0e; background: var(--green);
  box-shadow: 0 0 8px rgba(34,230,30,.4);
}
.wp-buy {
  margin: .5em .8em .8em; padding: .45em 0;
  text-align: center; text-decoration: none; color: #fff;
  font-size: .8em; font-weight: 700;
  border: 1.5px solid rgba(255,255,255,.6); border-radius: 99px;
  transition: background .2s, border-color .2s;
}
.wp-buy:hover { background: rgba(34, 230, 30, .2); border-color: var(--green); }

/* ---- the three steps under the theme cards (one column on phones) ---- */
.th-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--u) * 1.2); margin-top: 1.6em; text-align: left; }
.th-steps:empty { display: none; }
.th-step {
  display: flex; align-items: center; gap: .8em;
  padding: .8em 1em; font-size: .78em; line-height: 1.45;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: calc(var(--u) * .6);
}
.th-step b {
  flex: none; width: 2em; height: 2em; display: grid; place-items: center;
  border-radius: 50%; color: #0b1f0e; background: var(--green);
  box-shadow: 0 0 8px rgba(34,230,30,.4);
}
.th-step .hl { color: #fff; font-weight: 700; font-size: 1.05em; }      /* step title: white and bold, not green */
.th-fine { margin: 1.1em 0 0; font-size: .72em; opacity: .7; }

/* ---- "Before you pay" safety check: a box under the steps + the same list in a window before the checkout ---- */
.safe-box {
  margin: 1.6em auto 0; max-width: 46em; padding: 1em 1.3em 1.05em;
  text-align: left;
  background: rgba(255, 196, 0, .07);
  border: 1px solid rgba(255, 210, 80, .45);
  border-radius: calc(var(--u) * .6);
  box-shadow: inset 0 0 12px rgba(255, 210, 80, .08);
}
.safe-box[hidden] { display: none; }
.safe-title { display: flex; align-items: center; gap: .5em; margin: 0 0 .6em; font-size: .86em; font-weight: 700; }
.safe-title svg { width: 1.45em; height: 1.45em; flex: none; fill: none; stroke: #ffd24f; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.safe-list { margin: 0; padding: 0; list-style: none; font-size: .76em; line-height: 1.5; }
.safe-list li { position: relative; padding-left: 1.5em; margin-bottom: .35em; }
.safe-list li::before {                                   /* a small green tick in front of each line */
  content: ""; position: absolute; left: .2em; top: .45em; width: .7em; height: .38em;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg);
}
.safe-not { margin: .5em 0 0; font-size: .72em; font-weight: 600; color: #ffd24f; }

.safe-pop {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(0, 0, 0, .62);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .2s;
  font-size: max(calc(var(--u) * 1.3), 15px);
}
.safe-pop[hidden] { display: none; }
.safe-pop.on { opacity: 1; }
.safe-card {
  width: min(100%, 30em); padding: 1.4em 1.5em 1.3em; text-align: left;
  background: linear-gradient(160deg, rgba(22, 60, 30, .97), rgba(8, 30, 14, .97));
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
  transform: translateY(8px) scale(.98); transition: transform .2s var(--ease);
}
.safe-pop.on .safe-card { transform: none; }
.safe-card .safe-title { font-size: 1.05em; }
.safe-pop-text { margin: 0 0 .7em; font-size: .8em; opacity: .85; }
.safe-card .safe-list { font-size: .8em; }
.safe-btns { display: flex; justify-content: flex-end; gap: .7em; margin-top: 1.2em; flex-wrap: wrap; }
.safe-cancel, .safe-go {
  padding: .55em 1.2em; border-radius: 99px; font: inherit; font-size: .8em; font-weight: 700; cursor: pointer; text-decoration: none;
}
.safe-cancel { color: #fff; background: transparent; border: 1.5px solid rgba(255, 255, 255, .55); }
.safe-cancel:hover { border-color: #fff; }
.safe-go { color: #0b1f0e; background: var(--green); border: 1.5px solid var(--green); box-shadow: 0 0 10px rgba(34, 230, 30, .4); }
.safe-go:hover { filter: brightness(1.1); }
.th-fine:empty { display: none; }

/* ---- Privacy / Terms / Refund links at the very bottom of the Support & Download panel ---- */
.legal-links {
  margin: 2.4em 0 0; padding-top: 1.2em; border-top: 1px solid rgba(255,255,255,.14);
  font-size: .74em; display: flex; flex-wrap: wrap; justify-content: center; gap: .3em .9em;
}
.legal-links a { color: var(--green); font-weight: 600; text-decoration: none; text-shadow: 0 0 8px rgba(34,230,30,.35); }
.legal-links a:hover { color: #7dff7a; text-decoration: underline; text-underline-offset: 3px; }
.legal-links span { color: rgba(255,255,255,.5); }

/* ---- download part (as before) ---- */
.dl-block { margin-top: 2.6em; padding-top: 1.6em; border-top: 1px solid rgba(255,255,255,.14); }
.dl-block-title { margin: 0 0 1.4em; font-size: 1em; font-weight: 700; letter-spacing: .03em; text-shadow: 0 2px 4px rgba(0,0,0,.4); }
.dl-cols {
  /* wide screens: version + button on the left, what's new + notes on the right */
  display: grid; grid-template-columns: 1fr 1.35fr;
  column-gap: calc(var(--u) * 3.4); align-items: center;
}

/* menu: long name on wide screens, short one on phones */
.menu .lbl-short { display: none; }
.dl-info { text-align: left; padding-left: calc(var(--u) * 3.2); border-left: 1px solid rgba(255,255,255,.14); }
.dl-info .dl-new-title { margin-top: 0; }

.dl-head { display: flex; align-items: center; justify-content: center; gap: .9em; margin-bottom: 1.4em; text-align: left; }
.dl-logo { width: 3.4em; height: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); }
.dl-name { font-family: var(--font-player); font-weight: 600; font-size: 1.5em; line-height: 1.15; text-shadow: 0 2px 4px rgba(0,0,0,.4); }
.dl-version {
  display: inline-block; vertical-align: middle;
  margin-left: .4em; padding: .15em .6em;
  font-family: var(--font); font-size: .5em; font-weight: 700; letter-spacing: .04em;
  color: #0b1f0e; background: var(--green);
  border-radius: 99px;
  box-shadow: 0 0 10px rgba(34,230,30,.45);
}
.dl-date { margin-top: .3em; font-size: .8em; opacity: .75; font-weight: 600; }

/* green "New version (GLP x.y.z)" line above the Microsoft Store button */
.dl-newver {
  margin-bottom: .75em;
  color: var(--green);
  font-weight: 700; font-size: .95em; letter-spacing: .02em;
  text-shadow: 0 0 10px rgba(34,230,30,.45), 0 2px 4px rgba(0,0,0,.45);
}
.dl-newver:empty { display: none; }

.dl-btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.8em;
  color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1.05em; letter-spacing: .02em;
  background: rgba(34, 230, 30, .16);
  border: 2px solid var(--green);
  border-radius: 99px;
  box-shadow: 0 0 18px rgba(34,230,30,.35), inset 0 0 12px rgba(34,230,30,.15);
  text-shadow: 0 2px 4px rgba(0,0,0,.35);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.dl-btn:hover { transform: translateY(-2px); background: rgba(34, 230, 30, .26); box-shadow: 0 0 28px rgba(34,230,30,.55), inset 0 0 14px rgba(34,230,30,.2); }
.dl-btn:active { transform: translateY(0); }
.dl-btn svg { width: 1.3em; height: 1.3em; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dl-small { margin-top: .8em; font-size: .78em; opacity: .75; font-weight: 600; }

.dl-new-title { margin: 2em 0 .7em; font-size: 1em; font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,.4); }
.dl-new { margin: 0; padding: 0; list-style: none; text-align: left; }
.dl-new li {
  position: relative;
  margin: 0 0 .45em; padding-left: 1.3em;
  font-size: .86em; line-height: 1.4; opacity: .92;
}
.dl-new li::before {
  content: ""; position: absolute; left: .15em; top: .55em;
  width: .45em; height: .45em; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px rgba(34,230,30,.6);
}

.dl-notes { margin: 1em 0 0; padding-top: .9em; border-top: 1px solid rgba(255,255,255,.14); text-align: left; }
.dl-notes p { margin: 0 0 .55em; font-size: .78em; line-height: 1.4; opacity: .8; }
.dl-notes p:last-child { margin-bottom: 0; }

/* ===================== RAIN ON THE GLASS ===================== */
.rain {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 25;
  pointer-events: none;
  transition: opacity .6s ease;
}

/* ===================== FLYING BIRDS (page change) ===================== */
.birds {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 30;
  pointer-events: none;
  filter: blur(.5px) drop-shadow(0 0 2px rgba(255,255,255,.3));    /* soft feather edges */
}

/* ===================== PHONES / TALL SCREENS ===================== */
/* Phones and tablets held upright: the same design, arranged as a tall poster.
   Home: big GLASS PLAYER title on top (clear leaves | frosted glass split at 42%),
   the glass player centred below it, overlapping both halves.                      */
@media (max-aspect-ratio: 4/5) {
  :root {
    --split: 42vw;
    --cardW: min(80vw, 450px);                         /* glass player width on phones */
    --gut: 16px;                                       /* side margin */
    --top: env(safe-area-inset-top, 0px);
    --bottom: env(safe-area-inset-bottom, 0px);
  }

  /* menu: one row with margins and a soft shade so it reads on any leaves */
  .menu {
    left: var(--gut); right: var(--gut);
    top: calc(var(--top) + 14px);
    justify-content: space-between; gap: 8px;
    font-size: clamp(12px, 3.6vw, 17px);
  }
  .menu::before {
    content: ""; position: fixed; left: 0; right: 0; top: 0;
    height: calc(var(--top) + 76px);
    background: linear-gradient(rgba(4, 18, 8, .6), rgba(4, 18, 8, 0));
    z-index: -1; pointer-events: none;
  }
  .menu a { padding-bottom: 8px; }
  .menu .menu-logo { padding-bottom: 0; margin: -4px 0 0; }
  .menu-logo img { width: clamp(26px, 7.5vw, 36px); }

  /* big title across the top */
  .big-title { font-size: 20vw; }
  .bt-left, .bt-right { top: calc(var(--top) + 17vh); }

  /* the player, centred below the title */
  .player { left: calc(50vw - var(--cardW) / 2); top: auto; bottom: calc(var(--bottom) + 17vh); }
  .orb {
    --orbW: calc(var(--cardW) * 1.12);                 /* orb size on phones */
    left: calc(50vw - var(--orbW) / 2); top: auto;
    bottom: calc(var(--bottom) + 17vh + var(--cardW) * .3043 - var(--orbW) / 2);
  }

  /* About: full-width frosted panel, text scrolls inside */
  .about {
    left: var(--gut); right: var(--gut); width: auto; height: auto; max-height: none;
    top: calc(var(--top) + 58px); bottom: calc(var(--bottom) + 16px);
  }
  .about-inner { padding: 22px 20px 28px; font-size: 15px; line-height: 1.45; }

  /* Features: full-width panel, each video with its text below */
  .features-scroll { top: calc(var(--top) + 56px); padding: 6px 0 calc(var(--bottom) + 24px); }
  .features { width: calc(100vw - var(--gut) * 2); padding: 20px 16px 28px; font-size: 15px; }
  .features h2 { margin-bottom: 18px; }
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; row-gap: 14px; margin-bottom: 30px; }
  .feature:nth-child(even) .f-video { order: 0; }
  .f-video { border-radius: 8px; }
  .f-info p { font-size: .9em; }

  /* Support & Download: full-width panel, everything in one column */
  .menu .lbl-long { display: none; }
  .menu .lbl-short { display: inline; }
  .download-scroll { top: calc(var(--top) + 56px); padding: 6px 0 calc(var(--bottom) + 24px); }
  .download { width: calc(100vw - var(--gut) * 2); padding: 24px 16px 28px; font-size: 15px; }
  .sp-row { grid-template-columns: 1fr; row-gap: 18px; }
  .sp-box { padding: 16px; border-radius: 10px; }
  .sp-badges { flex-direction: row; flex-wrap: wrap; }
  .sp-badge { flex: 1 1 auto; }
  .sp-qr { width: min(60vw, 200px); }
  .sp-avatar { width: 64px; height: 64px; }
  .wp-grid { --wp-gap: 12px; }
  .wp-grid > .wp-card { flex-basis: calc((100% - 12px) / 2); }          /* 2 per row; a lone last card sits in the middle */
  .wp-card { border-radius: 9px; }
  .th-steps { grid-template-columns: 1fr; gap: 10px; }                 /* the three steps one under another */
  .th-step { border-radius: 9px; }
  .dl-cols { display: block; }
  .dl-name { font-size: 1.3em; }
  .dl-info { padding-left: 0; border-left: 0; }
  .dl-info .dl-new-title { margin-top: 2em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
