/* ============ WishMaker styles (premium Diwali night) ============ */
:root {
  --midnight: #070b22;
  --indigo: #1a1040;
  --marigold: #ffb300;
  --saffron: #ff7a00;
  --rose: #e91e63;
  --gold: #ffd166;
  --cream: #fff4dc;
  --maroon: #5a1230;
  --glass: rgba(18, 12, 46, 0.66);
  --line: rgba(255, 209, 102, 0.3);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(0.2, 0.9, 0.25, 1);
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  margin: 0;
}
html,
body {
  height: 100%;
  overflow: hidden;
  background: var(--midnight);
  color: var(--cream);
  font-family: "Poppins", system-ui, sans-serif;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
input,
textarea {
  font: inherit;
  color: var(--cream);
  -webkit-user-select: text;
  user-select: text;
}
a {
  color: var(--gold);
}
#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  display: block;
  cursor: grab;
}
#sky:active {
  cursor: grabbing;
}
.glass {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.ic {
  vertical-align: -3px;
}

/* ---------- top bar ---------- */
#hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: calc(10px + var(--safe-t)) 12px 0;
  z-index: 10;
  pointer-events: none;
}
#hud > * {
  pointer-events: auto;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  gap: 7px;
  align-items: center;
  font:
    400 19px "Yatra One",
    "Baloo 2";
  letter-spacing: 0.3px;
  background: linear-gradient(180deg, #fff1b8, #ffb300 60%, #ff7a00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 150, 0, 0.55));
}
.logo svg {
  filter: drop-shadow(0 0 8px rgba(255, 170, 0, 0.8));
}
.top-r {
  display: flex;
  gap: 8px;
}
.chip-btn {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s;
}
.chip-btn:active {
  transform: scale(0.88);
}
.chip-btn.on {
  color: var(--gold);
  box-shadow: 0 0 14px rgba(255, 179, 0, 0.7);
}
.lang {
  width: auto;
  padding: 0 4px;
  border-radius: 19px;
  display: flex;
  align-items: center;
  gap: 0;
}
.lang b {
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 14px;
  color: #c9bfa5;
}
html[data-lang="en"] .lang [data-l="en"],
html[data-lang="hi"] .lang [data-l="hi"] {
  background: var(--marigold);
  color: #2a1500;
}

/* two small stickers: striped countdown ticket + goal */
.stickers {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  align-items: stretch;
}
.sticker {
  border-radius: 11px;
  padding: 3px 8px;
  font-size: 10px;
  line-height: 1.2;
  position: relative;
  overflow: hidden;
}
.sticker.cd {
  flex: 0 0 auto;
  min-width: 106px;
  background: repeating-linear-gradient(
    135deg,
    #6b1636 0 7px,
    #521029 7px 14px
  );
  border: 1.5px solid #e9b44c;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.45),
    inset 0 0 0 2px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sticker.cd::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 230, 160, 0.25) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  animation: shine 4.5s infinite;
}
@keyframes shine {
  40%,
  100% {
    transform: translateX(120%);
  }
}
.sticker .lbl {
  font: 700 8px "Poppins";
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #f7d98b;
  opacity: 0.95;
}
.sticker.cd b {
  font: 800 12.5px "Baloo 2";
  color: #ffe9a8;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}
.sticker.goal {
  flex: 1;
  min-width: 0;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.sticker .gl {
  font-size: 10px;
  color: #e8def6;
}
.sticker .gl b {
  font: 800 12.5px "Baloo 2";
  color: var(--gold);
}
.sticker .gl i {
  font-style: normal;
  opacity: 0.6;
  margin: 0 1px;
}
.gbar {
  height: 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  margin: 3px 0;
}
.gbar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff7a00, #ffd166, #fff3b0);
  border-radius: 5px;
  transition: width 1.2s var(--ease);
  box-shadow: 0 0 8px rgba(255, 200, 80, 0.8);
}
.sticker .gt {
  font: 600 9px "Poppins";
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#slogan {
  position: fixed;
  left: 12px;
  right: 12px;
  top: calc(100px + var(--safe-t));
  text-align: center;
  z-index: 5;
  pointer-events: none;
  font:
    500 11.5px "Kalam",
    "Baloo 2";
  color: rgba(255, 244, 220, 0.92);
  text-shadow: 0 2px 10px #000;
  transition: opacity 0.8s;
}

/* ---------- live top 5 (bottom right) ---------- */
#top5 {
  position: fixed;
  right: 8px;
  bottom: calc(78px + var(--safe-b));
  width: 138px;
  z-index: 9;
  padding: 8px 10px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 11px;
  transition: opacity 0.4s;
}
#top5:empty,
#top5.none {
  display: none;
}
#top5 h4 {
  font: 700 9.5px "Poppins";
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}
#top5 h4::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #52e08a;
  box-shadow: 0 0 8px #52e08a;
  animation: blink 1.4s infinite;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}
#top5 ol {
  list-style: none;
  padding: 0;
}
#top5 li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}
#top5 li:active {
  background: rgba(255, 255, 255, 0.1);
}
#top5 .n {
  width: 14px;
  font: 800 11px "Baloo 2";
  color: var(--gold);
}
#top5 .nm {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#top5 .am {
  font: 700 10px "Poppins";
  color: #2a1500;
  background: linear-gradient(180deg, #ffe08a, #ffa31a);
  border-radius: 8px;
  padding: 0 6px;
}

/* popup that follows a lantern */
#pin {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 12;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%) scale(0.6);
  transition:
    opacity 0.35s,
    transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}
#pin.show {
  opacity: 1;
}
#pin .pc {
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 14px;
  background: linear-gradient(
    160deg,
    rgba(40, 24, 86, 0.95),
    rgba(20, 12, 52, 0.95)
  );
  border: 1px solid var(--gold);
  box-shadow: 0 0 22px rgba(255, 190, 60, 0.55);
  text-align: center;
  white-space: nowrap;
  position: relative;
}
#pin .pc::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 12px;
  height: 12px;
  background: #1d1146;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: translateX(-50%) rotate(45deg);
}
#pin b {
  display: block;
  font: 800 14px "Baloo 2";
  color: var(--gold);
}
#pin small {
  font-size: 11px;
  color: #e8def6;
}

/* ---------- bottom menu: fixed + GPU layer = never jumps while scrolling ---------- */
#nav {
  position: fixed;
  left: 50%;
  bottom: calc(8px + var(--safe-b));
  transform: translate3d(-50%, 0, 0);
  width: min(88vw, 380px);
  height: 54px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(14, 10, 38, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  will-change: transform;
}
#nav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 9.5px;
  color: #b9b0cf;
  padding: 6px 0;
  transition:
    color 0.2s,
    transform 0.2s;
}
#nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#nav button.on {
  color: var(--gold);
}
#nav button:active {
  transform: scale(0.88);
}
#nav .mid {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  margin-top: -25px;
  border-radius: 22px;
  background: linear-gradient(
    145deg,
    #fff0b5 0%,
    #ffc34d 34%,
    #ff8a16 72%,
    #e94b18 100%
  );
  color: #351500;
  border: 1px solid rgba(255, 238, 185, 0.9);
  box-shadow:
    0 0 0 5px rgba(7, 11, 34, 0.96),
    0 8px 24px rgba(255, 132, 20, 0.38),
    inset 0 2px 4px rgba(255, 255, 255, 0.7),
    inset 0 -5px 10px rgba(145, 45, 0, 0.24);
  animation: lightPulse 3s ease-in-out infinite;
  position: relative;
  isolation: isolate;
}
#nav .mid em {
  font: 800 10px "Baloo 2";
  font-style: normal;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
#nav .mid svg {
  width: 23px;
  height: 23px;
  filter: drop-shadow(0 2px 2px rgba(110, 35, 0, 0.25));
}
#nav .mid::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 26px;
  border: 1px solid rgba(255, 211, 120, 0.34);
  z-index: -1;
  animation: lightRing 3s ease-out infinite;
}
#nav .mid:active {
  transform: scale(0.94) translateY(1px);
}
@keyframes lightPulse {
  50% {
    box-shadow:
      0 0 0 5px rgba(7, 11, 34, 0.96),
      0 10px 32px rgba(255, 150, 30, 0.55),
      inset 0 2px 4px rgba(255, 255, 255, 0.7),
      inset 0 -5px 10px rgba(145, 45, 0, 0.24);
  }
}
@keyframes lightRing {
  0% {
    transform: scale(0.92);
    opacity: 0.65;
  }
  80%,
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

/* ---------- sheet ---------- */
#scrim {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 16, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 30;
}
#sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(100vw, 520px);
  max-height: 86vh;
  max-height: 86dvh;
  z-index: 31;
  transform: translate3d(-50%, 105%, 0);
  transition: transform 0.45s var(--ease);
  background: linear-gradient(180deg, #1d1348, #0c0928);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  padding: 14px 16px calc(96px + var(--safe-b));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}
body.sheet-open #sheet {
  transform: translate3d(-50%, 0, 0);
}
body.sheet-open #scrim {
  opacity: 1;
  pointer-events: auto;
}
body.sheet-open #top5,
body.sheet-open #slogan {
  opacity: 0;
  pointer-events: none;
}
.grab {
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 auto 10px;
}
.x {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
}
h2 {
  font:
    400 22px "Yatra One",
    "Baloo 2";
  color: var(--gold);
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}
.sub {
  font-size: 12.5px;
  color: #cfc6e4;
  margin-bottom: 12px;
  line-height: 1.5;
}
.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: 26px;
  font: 700 15px "Baloo 2";
  background: linear-gradient(180deg, #ffd45a, #ff8a00);
  color: #2a1300;
  box-shadow:
    0 0 22px rgba(255, 150, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.15s;
  position: relative;
  overflow: hidden;
}
.btn:active {
  transform: scale(0.95);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  box-shadow: none;
  border: 1px solid var(--line);
}
.btn.wa {
  background: #25d366;
  color: #042;
  box-shadow: 0 0 18px rgba(37, 211, 102, 0.4);
}
.btn.sm {
  padding: 8px 14px;
  font-size: 13px;
}
.btn[disabled] {
  opacity: 0.45;
}
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: rip 0.6s linear;
  pointer-events: none;
}
@keyframes rip {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ---------- shop ---------- */
.car {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 14px;
  margin: 0 -4px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.car::-webkit-scrollbar {
  display: none;
}
.card {
  flex: 0 0 156px;
  scroll-snap-align: center;
  padding: 14px 10px;
  text-align: center;
  border-radius: 22px;
  background: linear-gradient(
    170deg,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: -30% 10% auto;
  height: 70%;
  background: radial-gradient(circle, rgba(var(--gc), 0.35), transparent 70%);
  pointer-events: none;
}
.card img {
  width: 84px;
  height: auto;
  filter: drop-shadow(0 0 16px var(--g));
  animation: bob 3.6s ease-in-out infinite;
  position: relative;
}
@keyframes bob {
  50% {
    transform: translateY(-7px);
  }
}
.card h3 {
  font: 700 15px "Baloo 2";
  margin: 4px 0 0;
  position: relative;
}
.price {
  font: 800 21px "Baloo 2";
  color: var(--gold);
  margin: 0 0 4px;
  position: relative;
}
.tier {
  font-size: 10.5px;
  color: #cfc6e4;
  margin-bottom: 6px;
  position: relative;
}
.gm {
  display: flex;
  gap: 3px;
  justify-content: center;
  margin: 2px 0 4px;
  position: relative;
}
.gm i {
  width: 14px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
}
.gm i.on {
  background: linear-gradient(90deg, #ffb300, #fff3b0);
  box-shadow: 0 0 6px rgba(255, 200, 80, 0.9);
}
.badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--rose);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  z-index: 1;
}
.psy {
  font-size: 12px;
  color: #ffe9b0;
  background: linear-gradient(
    120deg,
    rgba(255, 179, 0, 0.16),
    rgba(233, 30, 99, 0.12)
  );
  border: 1px solid rgba(255, 209, 102, 0.3);
  border-radius: 14px;
  padding: 9px 12px;
  margin: 2px 0 12px;
  line-height: 1.5;
}
.pack {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.pack b {
  font: 700 15px "Baloo 2";
}
.pack small {
  display: block;
  color: #cfc6e4;
  font-size: 12px;
}
.pack.best {
  background: linear-gradient(
    120deg,
    rgba(255, 179, 0, 0.22),
    rgba(233, 30, 99, 0.18)
  );
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(255, 180, 0, 0.2);
}
.cprev {
  text-align: center;
  margin: 6px 0;
}
.cimg {
  width: 96px;
  filter: drop-shadow(0 0 22px var(--g));
}
.sws {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 8px 0;
}
.sw {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: transform 0.2s;
}
.sw.on {
  border-color: #fff;
  transform: scale(1.15);
}
.cpick {
  display: flex;
  gap: 10px;
  margin: 6px 0;
}
.cpick > div {
  flex: 1;
}
input[type="color"] {
  padding: 2px;
  height: 42px;
}

/* ---------- avatars + banners (premium cosmetics) ---------- */
.av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  font: 800 17px "Baloo 2";
  isolation: isolate;
}
.av span {
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}
.av::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ring, linear-gradient(135deg, #e91e63, #ff7a00));
}
.av::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--fill, linear-gradient(135deg, #c2185b, #ff7a00));
}
.av.big {
  width: 68px;
  height: 68px;
  font-size: 30px;
  flex-basis: 68px;
  margin: 0 auto 8px;
}
.av.av_marigold {
  --ring: linear-gradient(135deg, #fff3b0, #ffb300 50%, #b86b00);
  --fill: radial-gradient(circle at 35% 30%, #ffd45a, #ff8a00);
}
.av.av_rose {
  --ring: linear-gradient(135deg, #ffd1e0, #ff4f93 60%, #a3123f);
  --fill: radial-gradient(circle at 35% 30%, #ff8fb8, #c2185b);
}
.av.av_peacock {
  --ring: conic-gradient(#00d4c8, #2f6bff, #7be3a0, #00d4c8);
  --fill: radial-gradient(circle at 35% 30%, #12a6a0, #0a3b6e);
}
.av.av_amethyst {
  --ring: linear-gradient(135deg, #e9c6ff, #9c4dff 55%, #4b1d8a);
  --fill: radial-gradient(circle at 35% 30%, #b57bff, #4b1d8a);
}
.av.av_amethyst span::after {
  content: "✦";
  position: absolute;
  right: -9px;
  top: -8px;
  font-size: 11px;
  color: #fff;
  animation: twk 1.8s infinite;
}
@keyframes twk {
  50% {
    opacity: 0.2;
    transform: scale(0.6);
  }
}
.av.av_aurora::before {
  background: conic-gradient(
    from 0deg,
    #37ffb2,
    #7a6bff,
    #ff5ec8,
    #ffd36b,
    #37ffb2
  );
  animation: spin 5s linear infinite;
  inset: -2px;
}
.av.av_aurora {
  --fill: radial-gradient(circle at 35% 30%, #2b1a6b, #0a0d2e);
}
.av.av_maharaja::before {
  background: conic-gradient(
    from 0deg,
    #fff6c4,
    #ffb300,
    #8a5200,
    #ffe48a,
    #ffb300,
    #fff6c4
  );
  animation: spin 4s linear infinite;
  inset: -3px;
}
.av.av_maharaja {
  --fill: radial-gradient(circle at 35% 30%, #7a1d9c, #2a0a45);
}
.av.av_maharaja span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -18px;
  width: 20px;
  height: 13px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #ffe48a, #ffb300);
  clip-path: polygon(
    0 100%,
    0 30%,
    25% 60%,
    50% 0,
    75% 60%,
    100% 30%,
    100% 100%
  );
  filter: drop-shadow(0 0 5px #ffb300);
}
.av.big.av_maharaja span::before {
  top: -26px;
  width: 30px;
  height: 20px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* banners = rich backgrounds behind a row or a profile */
.bn_diya {
  background:
    radial-gradient(
      circle at 12% 120%,
      rgba(255, 170, 40, 0.65),
      transparent 55%
    ),
    linear-gradient(120deg, #3a1706, #6a2a08) !important;
}
.bn_gulab {
  background:
    radial-gradient(
      circle at 90% -10%,
      rgba(255, 200, 220, 0.5),
      transparent 50%
    ),
    linear-gradient(120deg, #5c0f32, #b01a5c) !important;
}
.bn_mor {
  background:
    radial-gradient(
      circle at 85% 50%,
      rgba(120, 255, 220, 0.4),
      transparent 45%
    ),
    repeating-radial-gradient(
      circle at 100% 50%,
      rgba(255, 255, 255, 0.07) 0 6px,
      transparent 6px 14px
    ),
    linear-gradient(120deg, #05414a, #0b6a8a) !important;
}
.bn_neel {
  background:
    radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 60% 70%, #fff, transparent),
    radial-gradient(1px 1px at 80% 25%, #fff, transparent),
    linear-gradient(120deg, #070b2c, #1f2f86) !important;
}
.bn_surya {
  background:
    repeating-conic-gradient(
      from 0deg at 90% 50%,
      rgba(255, 240, 170, 0.22) 0 8deg,
      transparent 8deg 18deg
    ),
    linear-gradient(120deg, #8a4a00, #e79a12) !important;
}
.bn_shahi {
  background:
    linear-gradient(
        115deg,
        transparent 40%,
        rgba(255, 225, 140, 0.3) 50%,
        transparent 60%
      )
      0 0/250% 100% no-repeat,
    linear-gradient(120deg, #2a0a45, #6a1b8a 55%, #a1561a) !important;
  animation: sweep 5s linear infinite;
  box-shadow: inset 0 0 0 1px rgba(255, 214, 120, 0.55);
}
@keyframes sweep {
  from {
    background-position:
      130% 0,
      0 0;
  }
  to {
    background-position:
      -130% 0,
      0 0;
  }
}
.bnprev {
  height: 46px;
  border-radius: 12px;
  margin-bottom: 6px;
  border: 1px solid var(--line);
}
.cosg {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.cosc {
  padding: 12px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  text-align: center;
}
.cosc .av {
  margin: 6px auto 8px;
}
.cosc b {
  display: block;
  font: 700 13px "Baloo 2";
}
.cosc .btn {
  margin-top: 6px;
  width: 100%;
}

/* ---------- wizard ---------- */
.dots {
  display: flex;
  gap: 6px;
  margin: 4px 0 14px;
}
.dots i {
  height: 5px;
  flex: 1;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.3s;
}
.dots i.on {
  background: var(--marigold);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.chip {
  padding: 8px 13px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  font-size: 13.5px;
  transition: all 0.2s;
}
.chip.on {
  background: var(--marigold);
  color: #2a1500;
  border-color: var(--marigold);
  transform: scale(1.04);
}
label {
  display: block;
  font-size: 12px;
  color: #cfc6e4;
  margin: 8px 0 4px;
}
input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  outline: 0;
  font-size: 15px;
}
input:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.18);
}
textarea {
  height: 96px;
  resize: none;
}
.cnt {
  text-align: right;
  font-size: 11px;
  color: #a99fc4;
}
.sug {
  font-size: 12.5px;
  text-align: left;
  border-radius: 14px;
  padding: 8px 12px;
  width: 100%;
}
.prev {
  text-align: center;
  padding: 10px 0;
}
.prev > img {
  width: 130px;
  filter: drop-shadow(0 0 30px var(--g));
  animation: bob 3s ease-in-out infinite;
}
.inv-pick {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px 12px;
  scrollbar-width: none;
}
.inv-pick button {
  flex: 0 0 92px;
  padding: 10px 6px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
}
.inv-pick button img {
  width: 46px;
  display: block;
  margin: 0 auto 4px;
}
.inv-pick button.on {
  border-color: var(--gold);
  background: rgba(255, 179, 0, 0.2);
  box-shadow: 0 0 14px rgba(255, 179, 0, 0.5);
}
.inv-pick b {
  color: var(--gold);
}
/* the photo card is highlighted on purpose: photos make wishes unforgettable */
.photocard {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(255, 179, 0, 0.22),
    rgba(233, 30, 99, 0.2)
  );
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 22px rgba(255, 170, 0, 0.3);
  margin: 6px 0 10px;
  position: relative;
  overflow: hidden;
  width: 100%;
  text-align: left;
}
.photocard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 240, 190, 0.2) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  animation: shine 3.6s infinite;
}
.photocard .pi {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffd45a, #ff8a00);
  display: grid;
  place-items: center;
  color: #2a1300;
  flex: none;
}
.photocard b {
  display: block;
  font: 700 15px "Baloo 2";
}
.photocard small {
  display: block;
  font-size: 11.5px;
  color: #f1e6c9;
}
.photocard .opt {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 8px;
  border-radius: 8px;
}
.thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--gold);
}
.ph {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 16px;
  margin: 8px 0;
  border: 1px solid var(--line);
  animation: fadein 0.6s;
}
@keyframes fadein {
  from {
    opacity: 0;
  }
}

/* ---------- paper note ---------- */
.paper {
  position: relative;
  margin: 14px auto 10px;
  max-width: 310px;
  padding: 20px 18px 16px;
  background: linear-gradient(170deg, #fff7df, #f3e1b3);
  color: #3a2410;
  border-radius: 6px 6px 14px 6px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
  transform: rotate(-1.2deg);
  font-family: "Kalam", "Baloo 2", cursive;
  text-align: left;
  -webkit-user-select: text;
  user-select: text;
}
.paper .tape {
  position: absolute;
  left: 50%;
  top: -10px;
  width: 70px;
  height: 20px;
  transform: translateX(-50%) rotate(2deg);
  background: rgba(255, 214, 120, 0.65);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.paper .pt {
  font: 700 19px "Kalam";
  color: #8a2a0a;
}
.paper .pw {
  font: 400 17px/1.45 "Kalam";
  margin: 4px 0 8px;
}
.paper .pf {
  font: 700 15px "Kalam";
  text-align: right;
  color: #6b3a14;
}
.paper .seal {
  position: absolute;
  right: -8px;
  bottom: -12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e0453f, #8a0f12);
  display: grid;
  place-items: center;
  color: #ffd7a0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}

/* ---------- lists ---------- */
.item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.item img {
  width: 36px;
}
.item .g {
  flex: 1;
  min-width: 0;
  position: relative;
}
.item b {
  font: 700 15px "Baloo 2";
}
.item small {
  display: block;
  color: #cfc6e4;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item.has-bn small {
  color: #f3eaff;
}
.item.has-bn b {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.item.top1 {
  border-color: var(--gold);
  box-shadow: 0 0 22px rgba(255, 190, 50, 0.35);
}
.item.top3 {
  border-color: rgba(255, 209, 102, 0.6);
}
.tabs {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  padding: 4px;
  border-radius: 22px;
  margin-bottom: 12px;
}
.tabs button {
  flex: 1;
  padding: 8px 4px;
  border-radius: 18px;
  font: 700 12.5px "Baloo 2";
  color: #cfc6e4;
}
.tabs button.on {
  background: linear-gradient(180deg, #ffd45a, #ff8a00);
  color: #2a1500;
}
.rank {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 800 14px "Baloo 2";
  background: rgba(255, 255, 255, 0.1);
  flex: none;
}
.rank.r1 {
  background: linear-gradient(135deg, #ffe27a, #ff9a00);
  color: #2a1300;
  box-shadow: 0 0 14px #ffb300;
}
.rank.r2 {
  background: linear-gradient(135deg, #f1f1f1, #9aa);
  color: #222;
  box-shadow: 0 0 12px #cde;
}
.rank.r3 {
  background: linear-gradient(135deg, #ffb27a, #b4541a);
  color: #220;
  box-shadow: 0 0 12px #e08040;
}
.amts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 10px 0;
}
.amts .chip {
  text-align: center;
  padding: 12px 0;
  font: 700 16px "Baloo 2";
}
.wishcard {
  text-align: center;
  padding: 6px 4px;
}
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(233, 30, 99, 0.25);
  border: 1px solid rgba(233, 30, 99, 0.5);
  font-size: 12px;
}
.pill.gold {
  background: linear-gradient(180deg, #ffe08a, #ffa31a);
  color: #2a1500;
  border-color: #ffd166;
  font-weight: 600;
}
.emo {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 12px 0;
}
.emo button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.15s;
  display: grid;
  place-items: center;
  color: var(--gold);
}
.emo button:active {
  transform: scale(1.3);
}
.note {
  font-size: 12px;
  color: #a99fc4;
  text-align: center;
  margin-top: 8px;
}
.code {
  font: 800 38px "Baloo 2";
  letter-spacing: 4px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed var(--gold);
  border-radius: 16px;
  padding: 10px;
  margin: 10px 0;
  -webkit-user-select: text;
  user-select: text;
}
.hearts {
  font-size: 56px;
  text-align: center;
  animation: pop 0.8s;
  color: var(--gold);
}
@keyframes pop {
  from {
    transform: scale(0);
  }
  60% {
    transform: scale(1.3);
  }
}

/* ---------- toast, intro, effects ---------- */
#toast {
  position: fixed;
  left: 50%;
  top: calc(150px + var(--safe-t));
  transform: translate(-50%, -20px);
  background: var(--cream);
  color: #2a1500;
  padding: 10px 18px;
  border-radius: 22px;
  font-weight: 600;
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s;
  z-index: 60;
  max-width: 88vw;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: radial-gradient(circle at 50% 45%, #2f1b6b, #070b22 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  transition: opacity 1s;
  gap: 6px;
}
#intro.gone {
  opacity: 0;
  pointer-events: none;
}
#introLamp {
  width: 110px;
  animation: rise 2.6s ease-out both;
  filter: drop-shadow(0 0 40px #ff9a00);
}
@keyframes rise {
  from {
    transform: translateY(60px) scale(0.5);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
#intro h1 {
  font:
    400 42px "Yatra One",
    "Baloo 2";
  color: var(--gold);
  text-shadow: 0 0 30px rgba(255, 179, 0, 0.8);
  animation: fade 1.4s 0.6s both;
}
#intro p {
  max-width: 300px;
  font-size: 15px;
  animation: fade 1.4s 1.2s both;
  font-family: "Kalam";
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
#fatal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #070b22;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
}
#fatal[hidden] {
  display: none;
}
#fatal .big {
  font-size: 60px;
}
#fatal p {
  margin: 8px 0 18px;
  color: #cfc6e4;
  max-width: 300px;
}
#fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 55;
  overflow: hidden;
}
.conf {
  position: absolute;
  top: -10px;
  width: 8px;
  height: 12px;
  animation: fall linear forwards;
}
@keyframes fall {
  to {
    transform: translateY(105vh) rotate(720deg);
  }
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
@media (max-width: 360px) {
  .card {
    flex-basis: 140px;
  }
  #nav button {
    font-size: 9.5px;
  }
  #top5 {
    width: 150px;
  }
  .sticker.cd {
    min-width: 118px;
  }
}

/* ================= v4 ================= */
#top5 {
  font-size: 10px;
  padding: 6px 8px;
  border-radius: 14px;
}
/* shop: every lantern in one vertical list (nothing hidden sideways) */
.shoplist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0 8px;
}
.scard {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    170deg,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid var(--line);
  animation: up 0.55s var(--ease) both;
  animation-delay: calc(var(--i) * 90ms);
}
.scard::before {
  content: "";
  position: absolute;
  left: -10%;
  top: -40%;
  width: 55%;
  height: 180%;
  background: radial-gradient(circle, rgba(var(--gc), 0.34), transparent 68%);
  pointer-events: none;
}
.scard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 235, 170, 0.14) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  animation: shine 6s infinite;
  animation-delay: calc(var(--i) * 600ms);
  pointer-events: none;
}
.scard img {
  width: 58px;
  flex: 0 0 58px;
  filter: drop-shadow(0 0 14px var(--g));
  animation: bob 3.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * -500ms);
  position: relative;
}
.scard .sm {
  flex: 1;
  min-width: 0;
  position: relative;
}
.scard h3 {
  font: 700 16px "Baloo 2";
  margin: 0;
}
.scard .tier {
  font-size: 11px;
  color: #d8cdef;
}
.scard .sb {
  text-align: center;
  position: relative;
}
.scard .price {
  font: 800 20px "Baloo 2";
  color: var(--gold);
  margin-bottom: 3px;
}
.scard .badge {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 9px;
  padding: 1px 7px;
  border-radius: 9px;
  background: rgba(82, 224, 138, 0.2);
  color: #8ff0b6;
  z-index: 2;
}
@keyframes up {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.96);
  }
}
/* buy popup (pay price or more) */
#buyModal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(3, 4, 16, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s;
}
#buyModal.show {
  opacity: 1;
}
.bm {
  position: relative;
  width: min(100%, 360px);
  padding: 18px 18px 16px;
  border-radius: 26px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(165deg, #2b1760, #120a34 70%);
  border: 1.5px solid #f3c25a;
  box-shadow:
    0 0 0 1px rgba(255, 210, 100, 0.25),
    0 20px 60px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(255, 170, 40, 0.35);
  transform: translateY(30px) scale(0.94);
  transition: transform 0.45s cubic-bezier(0.3, 1.5, 0.5, 1);
}
#buyModal.show .bm {
  transform: none;
}
.bm .x {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  z-index: 3;
}
.bm .bglow {
  position: absolute;
  left: 50%;
  top: -30px;
  width: 260px;
  height: 200px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 190, 70, 0.4), transparent 65%);
  animation: pulseg 3s ease-in-out infinite;
}
@keyframes pulseg {
  50% {
    opacity: 0.55;
    transform: translateX(-50%) scale(1.15);
  }
}
.bm .bi {
  width: 84px;
  position: relative;
  filter: drop-shadow(0 0 22px var(--g));
  animation: bob 3.2s ease-in-out infinite;
}
.bm h3 {
  font: 700 20px "Baloo 2";
  position: relative;
}
.bm .bmin {
  font: 600 11px "Poppins";
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #f7d98b;
  position: relative;
}
.bamt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 10px auto 8px;
  width: 170px;
  padding: 4px 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(255, 209, 102, 0.6);
  position: relative;
}
.bamt span {
  font: 800 26px "Baloo 2";
  color: var(--gold);
}
.bamt input {
  width: 100%;
  background: none;
  border: 0;
  outline: 0;
  font: 800 30px "Baloo 2";
  color: #fff;
  text-align: center;
  padding: 0;
  -moz-appearance: textfield;
}
.bamt input::-webkit-outer-spin-button,
.bamt input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.bchips {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.bchips button {
  padding: 5px 11px;
  border-radius: 14px;
  font: 700 12px "Poppins";
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}
.bchips button.on {
  background: linear-gradient(180deg, #ffe08a, #ffa31a);
  color: #2a1500;
  border-color: transparent;
}
#bMeter {
  margin: 10px 0 2px;
  position: relative;
}
.bnote {
  font-size: 11px;
  color: #cfc3ea;
  margin: 6px 4px 12px;
  position: relative;
  line-height: 1.45;
}
.bm .btn {
  width: 100%;
  position: relative;
}
/* photo public / private switch */
.tog {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  margin: 2px 0 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  cursor: pointer;
}
.tog input {
  display: none;
}
.sw2 {
  flex: 0 0 44px;
  height: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  position: relative;
  transition: background 0.25s;
}
.sw2::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s;
}
.tog input:checked + .sw2 {
  background: #2fbf71;
}
.tog input:checked + .sw2::after {
  transform: translateX(20px);
}
.tog .tl b {
  display: block;
  font: 700 13px "Poppins";
}
.tog .tl small {
  font-size: 11px;
  color: #cfc3ea;
}
/* rarity */
.cosc {
  position: relative;
  overflow: hidden;
}
.rar {
  position: absolute;
  top: 6px;
  left: 6px;
  font: 700 8.5px "Poppins";
  font-style: normal;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 8px;
  z-index: 3;
}
.rar.common {
  background: rgba(255, 255, 255, 0.14);
  color: #e6e0f2;
}
.rar.rare {
  background: #1f6fd1;
  color: #dff0ff;
}
.rar.epic {
  background: #8a3ad8;
  color: #f3e2ff;
}
.rar.legend {
  background: linear-gradient(90deg, #ffb300, #ff6a00);
  color: #2a1100;
}
.rar.ultra {
  background: linear-gradient(
    90deg,
    #ff3d8b,
    #ffb300,
    #37ffb2,
    #7a6bff,
    #ff3d8b
  );
  background-size: 300% 100%;
  color: #160726;
  animation: rainb 3s linear infinite;
}
@keyframes rainb {
  to {
    background-position: 300% 0;
  }
}
.cosc.rr-rare {
  border-color: rgba(70, 150, 255, 0.6);
}
.cosc.rr-epic {
  border-color: rgba(190, 110, 255, 0.7);
  box-shadow: 0 0 14px rgba(160, 80, 255, 0.25);
}
.cosc.rr-legend {
  border-color: #ffb300;
  box-shadow: 0 0 18px rgba(255, 170, 0, 0.35);
}
.cosc.rr-ultra {
  border: 1.5px solid #ffd36b;
  box-shadow:
    0 0 22px rgba(255, 120, 200, 0.4),
    0 0 30px rgba(120, 255, 200, 0.2);
  background: linear-gradient(
    160deg,
    rgba(255, 215, 120, 0.14),
    rgba(150, 90, 255, 0.12)
  );
}
.cosc.rr-ultra::after,
.cosc.rr-legend::after,
.cosc.rr-epic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  animation: shine 4s infinite;
  pointer-events: none;
}
/* more avatars (animated from Rare up) */
.av.av_diya {
  --ring: linear-gradient(135deg, #ffd9a0, #e0793a 55%, #7a2a08);
  --fill: radial-gradient(circle at 35% 30%, #ff9a4d, #a73a0c);
}
.av.av_rose::before {
  animation: pulseR 2.6s ease-in-out infinite;
}
@keyframes pulseR {
  50% {
    filter: brightness(1.35);
  }
}
.av.av_peacock::before {
  animation: spin 7s linear infinite;
  inset: -1px;
}
.av.av_lotus {
  --ring: conic-gradient(from 0deg, #fff, #ffb6d6, #ff6fae, #fff, #ffb6d6);
  --fill: radial-gradient(circle at 35% 30%, #ff9cc6, #b3145f);
}
.av.av_lotus::before {
  animation: spin 6s linear infinite;
  inset: -1px;
}
.av.av_lotus span::after {
  content: "✿";
  position: absolute;
  right: -10px;
  top: -8px;
  font-size: 12px;
  color: #fff;
  animation: twk 2.2s infinite;
}
.av.av_aurora::after {
  box-shadow: 0 0 12px rgba(120, 255, 200, 0.7);
}
.av.av_maharaja {
  box-shadow:
    0 0 16px rgba(255, 190, 60, 0.8),
    0 0 30px rgba(255, 80, 200, 0.35);
}
/* more banners */
.bn_rangoli {
  background:
    radial-gradient(
      circle at 15% 50%,
      rgba(255, 220, 100, 0.55) 0 8px,
      transparent 9px
    ),
    radial-gradient(
      circle at 35% 50%,
      rgba(255, 110, 170, 0.5) 0 8px,
      transparent 9px
    ),
    radial-gradient(
      circle at 55% 50%,
      rgba(120, 230, 255, 0.45) 0 8px,
      transparent 9px
    ),
    linear-gradient(120deg, #4a1260, #8a2a6a) !important;
}
.bn_mahal {
  background:
    linear-gradient(
        115deg,
        transparent 40%,
        rgba(255, 240, 170, 0.5) 50%,
        transparent 60%
      )
      0 0/250% 100% no-repeat,
    radial-gradient(
      circle at 85% 40%,
      rgba(255, 90, 200, 0.5),
      transparent 45%
    ),
    radial-gradient(
      circle at 15% 70%,
      rgba(55, 255, 178, 0.4),
      transparent 45%
    ),
    linear-gradient(120deg, #1a0536, #5a1590 50%, #b8741a) !important;
  animation: sweep 3.5s linear infinite;
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 220, 120, 0.85),
    0 0 20px rgba(255, 150, 220, 0.4);
}
.has-bn,
.bnprev {
  position: relative;
  overflow: hidden;
}
.bn_gulab::after,
.bn_mor::after,
.bn_neel::after,
.bn_surya::after,
.bn_shahi::after,
.bn_mahal::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  animation: shine 5.5s infinite;
}
.bn_neel {
  animation: twinkleBg 4s ease-in-out infinite;
}
@keyframes twinkleBg {
  50% {
    filter: brightness(1.3);
  }
}
@media (prefers-reduced-motion: reduce) {
  .scard,
  .scard::after,
  .scard img,
  .rar.ultra,
  .bm .bglow {
    animation: none !important;
  }
}

/* ---------- real leaderboard: top-3 payers get a premium podium look ---------- */
.medal {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font: 800 10px "Baloo 2";
  font-style: normal;
  color: #2a1300;
  vertical-align: middle;
}
.medal.m1 {
  background: linear-gradient(135deg, #fff1a8, #ffb300 60%, #c77700);
  box-shadow: 0 0 10px rgba(255, 190, 50, 0.9);
}
.medal.m2 {
  background: linear-gradient(135deg, #fff, #b9c6d8 60%, #7f8da3);
  box-shadow: 0 0 9px rgba(205, 226, 255, 0.8);
}
.medal.m3 {
  background: linear-gradient(135deg, #ffd3a8, #e08a4a 60%, #9a4a17);
  box-shadow: 0 0 9px rgba(255, 150, 84, 0.8);
}
.rank .medal {
  width: 30px;
  height: 30px;
  font-size: 15px;
}
.item.podium {
  padding: 13px 12px;
}
.item.podium::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.16) 50%,
    transparent 62%
  );
  transform: translateX(-130%);
  animation: shine 5.5s infinite;
}
.item.p1 {
  background: linear-gradient(
    135deg,
    rgba(255, 200, 60, 0.22),
    rgba(255, 140, 0, 0.08)
  );
  border-color: #ffd166;
  box-shadow:
    0 0 26px rgba(255, 190, 50, 0.4),
    inset 0 0 18px rgba(255, 210, 100, 0.12);
}
.item.p2 {
  background: linear-gradient(
    135deg,
    rgba(210, 225, 255, 0.18),
    rgba(150, 170, 210, 0.06)
  );
  border-color: #d5e2f6;
  box-shadow: 0 0 20px rgba(205, 226, 255, 0.3);
}
.item.p3 {
  background: linear-gradient(
    135deg,
    rgba(255, 150, 84, 0.2),
    rgba(150, 70, 20, 0.07)
  );
  border-color: #e59460;
  box-shadow: 0 0 18px rgba(255, 150, 84, 0.28);
}
.item.p1 b:first-of-type,
.item.p2 b:first-of-type,
.item.p3 b:first-of-type {
  text-shadow: 0 0 10px rgba(255, 220, 140, 0.5);
}
.av.pv1,
.av.pv2,
.av.pv3 {
  box-shadow:
    0 0 0 2px var(--pc),
    0 0 14px var(--pc);
}
.av.pv1 {
  --pc: #ffd166;
}
.av.pv2 {
  --pc: #d5e2f6;
}
.av.pv3 {
  --pc: #e59460;
}
.emptyrank {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 30px 16px;
  color: #cfc6e4;
  border: 1px dashed var(--line);
  border-radius: 18px;
}
.emptyrank .ic {
  color: var(--gold);
  filter: drop-shadow(0 0 10px rgba(255, 170, 0, 0.7));
}
.emptyrank b {
  font: 700 16px "Baloo 2";
  color: var(--cream);
}
.emptyrank span {
  font-size: 12px;
}
#top5 li.r1 .nm {
  color: #ffe9a0;
  font-weight: 600;
}
#top5 li.r2 .nm {
  color: #eaf1ff;
  font-weight: 600;
}
#top5 li.r3 .nm {
  color: #ffd9bd;
  font-weight: 600;
}
#top5 .n {
  display: grid;
  place-items: center;
}
#top5 .medal {
  width: 15px;
  height: 15px;
  font-size: 9px;
}
#pin .medal {
  width: auto;
  min-width: 22px;
  height: 16px;
  border-radius: 8px;
  padding: 0 6px;
  margin-bottom: 3px;
}
.sticker .gp {
  font: 600 8.5px "Poppins";
  color: #cbbfe6;
  letter-spacing: 0.4px;
  margin-top: 1px;
}
.sticker .gp:empty {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .item.podium::after {
    animation: none;
  }
}
#testBadge {
  position: fixed;
  left: 50%;
  top: calc(4px + var(--safe-t));
  transform: translateX(-50%);
  z-index: 60;
  padding: 2px 10px;
  border-radius: 0 0 10px 10px;
  background: #2a8a5a;
  color: #fff;
  font: 700 9px "Poppins";
  letter-spacing: 1px;
  pointer-events: none;
}

/* Compact top counters on mobile */
@media (max-width: 600px) {
  #hud {
    padding-top: calc(7px + var(--safe-t));
  }

  .stickers {
    gap: 5px;
    margin-top: 4px;
    align-items: stretch;
  }

  .sticker {
    padding: 3px 6px;
    border-radius: 9px;
    font-size: 9px;
    line-height: 1.1;
  }

  .sticker.cd {
    min-width: 0;
    padding: 4px 7px;
  }

  .sticker .lbl {
    font-size: 7px;
    letter-spacing: 0.8px;
  }

  .sticker.cd b {
    font-size: 10.5px;
  }

  .sticker .gl {
    font-size: 9px;
    line-height: 1.15;
  }

  .sticker .gl b {
    font-size: 11px;
  }

  .gbar {
    height: 3px;
    margin: 2px 0;
  }

  .sticker .gt {
    font-size: 8px;
  }

  #slogan {
    top: calc(82px + var(--safe-t));
    font-size: 10px;
  }
}

#top5R {
  display: block;
  font: 600 9px "Poppins";
  opacity: 0.8;
  margin: -1px 0 5px;
  color: #ffe9a0;
}
img.ph[hidden] {
  display: none !important;
}
/* top-5 "flying highest": small, minimal */
#top5 {
  width: 122px;
  padding: 6px 8px;
  border-radius: 12px;
  font-size: 10px;
  background: rgba(14, 8, 32, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
#top5 h4 {
  font: 600 8.5px "Poppins";
  letter-spacing: 1px;
  margin-bottom: 1px;
  gap: 4px;
}
#top5 h4::before {
  width: 4px;
  height: 4px;
  box-shadow: none;
}
#top5R {
  font: 500 8.5px "Poppins";
  opacity: 0.55;
  margin: 0 0 3px;
  color: #fff;
}
#top5 li {
  padding: 2px 0;
  gap: 5px;
}
#top5 .n {
  width: 10px;
  font: 700 9.5px "Poppins";
  opacity: 0.7;
}
#top5 .nm {
  font-size: 10px;
}
#top5 .am {
  font: 600 9px "Poppins";
  color: rgba(255, 255, 255, 0.75);
  background: none;
  padding: 0;
}

/* ================= SHOP COLLECTIONS (Gods / Family / Free) ================= */
.chead {
  position: relative;
  text-align: center;
  padding: 16px 10px 14px;
  margin: 0 0 12px;
  border-radius: 22px;
  border: 1px solid rgba(255, 209, 102, 0.55);
  background:
    radial-gradient(
      70% 90% at 50% 0%,
      rgba(255, 170, 40, 0.26),
      transparent 70%
    ),
    radial-gradient(
      circle at 12% 30%,
      rgba(255, 209, 102, 0.5) 0 1px,
      transparent 2px
    ),
    radial-gradient(
      circle at 88% 22%,
      rgba(255, 209, 102, 0.5) 0 1px,
      transparent 2px
    ),
    radial-gradient(
      circle at 78% 78%,
      rgba(255, 255, 255, 0.4) 0 1px,
      transparent 2px
    ),
    linear-gradient(180deg, #1a1040, #0a0724);
  overflow: hidden;
}
.chead .ct {
  font:
    700 clamp(24px, 8vw, 34px) / 1.1 "Kalam",
    "Baloo 2",
    sans-serif;
  background: linear-gradient(180deg, #fff1b8, #ffb300 70%, #ff8a00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 8px rgba(255, 140, 0, 0.45));
}
.chead .cb {
  display: inline-block;
  margin: 6px 0 8px;
  padding: 0 22px;
  background: linear-gradient(180deg, #ffe9a0, #e0a020);
  clip-path: polygon(
    0 0,
    100% 0,
    calc(100% - 10px) 50%,
    100% 100%,
    0 100%,
    10px 50%
  );
}
.chead .cb span {
  display: block;
  padding: 5px 4px;
  font:
    800 clamp(12px, 3.8vw, 15px) / 1 "Baloo 2",
    sans-serif;
  letter-spacing: 0.1em;
  color: #3a1d00;
}
.chead .cm {
  font-size: clamp(10px, 2.9vw, 12px);
  color: #f6ead0;
  line-height: 1.4;
}
.chead .cq {
  margin-top: 6px;
  font:
    400 clamp(14px, 4vw, 17px) / 1.2 "Kalam",
    sans-serif;
  color: #ffd166;
}
.cgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}
.gcard {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 8px 11px;
  border-radius: 18px;
  border: 1.5px solid rgba(255, 196, 80, 0.8);
  background:
    radial-gradient(90% 55% at 50% 36%, rgba(var(--gc), 0.32), transparent 72%),
    linear-gradient(180deg, #0e0a28, #07061a);
  box-shadow:
    0 0 0 1px rgba(255, 209, 102, 0.12) inset,
    0 6px 22px rgba(var(--gc), 0.22);
  overflow: hidden;
  contain: layout paint;
  animation: up 0.55s var(--ease) both;
  animation-delay: calc(var(--i) * 70ms);
}
.gcard .ur {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 99px;
  border: 1px solid rgba(255, 209, 102, 0.75);
  background: rgba(24, 14, 4, 0.85);
  color: #ffd978;
  font:
    800 8.5px / 1 "Poppins",
    sans-serif;
  letter-spacing: 0.06em;
  white-space: nowrap;
  font-style: normal;
}
.gcard .own {
  position: absolute;
  top: 30px;
  right: 6px;
  z-index: 2;
  font-size: 9px;
  padding: 1px 7px;
  border-radius: 9px;
  background: rgba(82, 224, 138, 0.22);
  color: #8ff0b6;
}
.gimg {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  display: grid;
  place-items: center;
}
.gimg img {
  max-width: 90%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(var(--gc), 0.8));
  animation: bob 3.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -400ms);
}
.gcard h3 {
  margin: 2px 0 0;
  font:
    700 clamp(14px, 4vw, 16px) / 1.15 "Kalam",
    "Baloo 2",
    sans-serif;
  color: #ffd978;
}
.gcard.fam h3 {
  color: rgb(var(--gc));
  filter: brightness(1.25);
}
.gcard .gs {
  min-height: 2.7em;
  margin: 3px 0 7px;
  font-size: 10.5px;
  line-height: 1.3;
  color: #e9defa;
}
.gtags {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  width: 100%;
  gap: 2px;
  margin-bottom: 9px;
}
.gtags span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  color: #ffd166;
}
.gcard.fam .gtags span {
  color: rgb(var(--gc));
  filter: brightness(1.2);
}
.gtags em {
  font-style: normal;
  font-size: 8.5px;
  color: #cfc6e4;
}
.gtags .omg {
  font:
    700 17px / 18px "Yatra One",
    serif;
}
.gprice {
  width: 88%;
  padding: 6px 0;
  border-radius: 99px;
  border: 1.5px solid rgba(255, 209, 102, 0.9);
  background: linear-gradient(
    180deg,
    rgba(255, 209, 102, 0.2),
    rgba(255, 138, 0, 0.12)
  );
  color: #ffe9a8;
  font:
    800 18px "Baloo 2",
    sans-serif;
  cursor: pointer;
  transition:
    transform 0.15s,
    background 0.2s;
}
.gprice:active {
  transform: scale(0.96);
}
.gprice.free {
  display: inline-block;
  font-size: 14px;
  color: #8ff0b6;
  border-color: rgba(143, 240, 182, 0.7);
}
.cfoot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 10px 8px;
  margin: 14px 0 6px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 209, 102, 0.5);
  border-radius: 16px;
  background: rgba(10, 7, 32, 0.7);
}
.cfoot div {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  line-height: 1.2;
  color: #f3e6c4;
}
.cfoot svg {
  flex: none;
  color: #ffd166;
}
@media (prefers-reduced-motion: reduce) {
  .gcard,
  .gimg img {
    animation: none !important;
  }
}

/* ===== lit-lantern glow (override) ===== */
.gcard {
  background:
    radial-gradient(60% 38% at 50% 38%, rgba(var(--gc), 0.18), transparent 75%),
    linear-gradient(180deg, #0e0a28, #07061a);
  box-shadow: inset 0 0 0 1px rgba(255, 209, 102, 0.1); /* no outer glow */
}
.gimg {
  position: relative;
  isolation: isolate;
  overflow: hidden; /* glow can never leak past the picture box */
  border-radius: 14px;
}
.gimg::before {
  /* theme-colour light inside the lantern, flickers like a real flame */
  content: "";
  position: absolute;
  inset: 8% 10% 12%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(var(--gc), 0.8),
    rgba(var(--gc), 0.3) 55%,
    transparent 100%
  );
  animation: litGlow 2.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * -370ms);
  will-change: opacity, transform;
}
.gimg::after {
  /* small warm flame glow at the diya */
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3%;
  width: 30%;
  aspect-ratio: 1;
  z-index: 2;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(255, 214, 130, 0.6),
    rgba(255, 150, 50, 0.22) 50%,
    transparent 100%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  animation: litFlame 1.7s ease-in-out infinite;
  animation-delay: calc(var(--i) * -250ms);
}
.gimg img {
  position: relative;
  z-index: 1;
  filter: brightness(1.12) saturate(1.25)
    drop-shadow(0 0 8px rgba(var(--gc), 0.5));
}
.gimg img.bad {
  /* missing PNG -> no broken-image icon */
  visibility: hidden;
}
@keyframes litGlow {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.94);
  }
  35% {
    opacity: 1;
    transform: scale(1.05);
  }
  60% {
    opacity: 0.75;
    transform: scale(0.98);
  }
  80% {
    opacity: 0.95;
    transform: scale(1.02);
  }
}
@keyframes litFlame {
  0%,
  100% {
    opacity: 0.6;
    transform: translateX(-50%) scale(0.9);
  }
  30% {
    opacity: 1;
    transform: translateX(-50%) scale(1.12);
  }
  55% {
    opacity: 0.75;
    transform: translateX(-50%) scale(0.95);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gimg::before,
  .gimg::after {
    animation: none !important;
  }
}

/* ===== note / preview images: same small fixed box, so nothing shifts ===== */
.prev > img,
.wishcard > img {
  display: block;
  margin: 0 auto;
  width: 78px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px var(--g)) drop-shadow(0 0 38px var(--g));
}
.inv-pick button img {
  width: 28px;
  height: 36px;
  object-fit: contain;
}
.item img {
  width: 22px;
  height: 28px;
  object-fit: contain;
  flex: none;
}
.scard img {
  width: 58px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px var(--g)) drop-shadow(0 0 30px var(--g));
}
.gimg::before {
  background: radial-gradient(
    closest-side,
    rgba(var(--gc), 0.95),
    rgba(var(--gc), 0.4) 55%,
    transparent 100%
  );
}
.gimg img {
  filter: brightness(1.12) saturate(1.25)
    drop-shadow(0 0 10px rgba(var(--gc), 0.75));
}

/* ===== shop card images: always fully visible, family a bit smaller ===== */
.gimg img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  box-sizing: border-box;
  padding: 8% 10% 16%;
}
.gcard.fam .gimg {
  aspect-ratio: 1 / 1.1;
}
.gcard.fam .gimg img {
  padding: 10% 20% 18%;
}

/* ===== premium price / buy button ===== */
.gprice {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: 88%;
  padding: 7px 0;
  border: 1.5px solid #fff2c4;
  border-radius: 99px;
  color: #3a1500;
  font:
    800 18px "Baloo 2",
    sans-serif;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  /* diagonal stripes on a gold base */
  background:
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.16) 0 6px,
      rgba(255, 255, 255, 0) 6px 12px
    ),
    linear-gradient(180deg, #ffeaa3 0%, #ffc21a 48%, #e58a00 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -3px 6px rgba(150, 70, 0, 0.35),
    0 3px 12px rgba(var(--gc, 255, 150, 0), 0.45);
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.2s,
    filter 0.2s;
}
.gprice::before {
  /* the moving shine stripe */
  content: "";
  position: absolute;
  z-index: -1;
  top: -25%;
  left: 0;
  width: 38%;
  height: 150%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.85),
    transparent
  );
  transform: translateX(-160%) skewX(-22deg);
  animation: priceShine 3s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -350ms);
}
.gprice:hover {
  filter: brightness(1.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -3px 6px rgba(150, 70, 0, 0.35),
    0 4px 16px rgba(var(--gc, 255, 150, 0), 0.7);
}
.gprice:active {
  transform: scale(0.95);
  filter: brightness(0.96);
}
.gprice.free {
  background: rgba(143, 240, 182, 0.12);
  color: #8ff0b6;
  border-color: rgba(143, 240, 182, 0.7);
  text-shadow: none;
  box-shadow: none;
}
.gprice.free::before {
  display: none;
}
@keyframes priceShine {
  0%,
  55% {
    transform: translateX(-160%) skewX(-22deg);
  }
  100% {
    transform: translateX(420%) skewX(-22deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gprice::before {
    animation: none;
  }
}

/* ===== theme-coloured premium buy button (Gods + Family only) ===== */
.gcard.god .gprice,
.gcard.fam .gprice {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.7);
  background-color: rgb(var(--gc));
  background-image:
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.18) 0 6px,
      rgba(255, 255, 255, 0) 6px 12px
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(255, 255, 255, 0.08) 48%,
      rgba(0, 0, 0, 0.32) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -3px 6px rgba(0, 0, 0, 0.3),
    0 3px 14px rgba(var(--gc), 0.55);
}
.gcard.god .gprice:hover,
.gcard.fam .gprice:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -3px 6px rgba(0, 0, 0, 0.3),
    0 4px 18px rgba(var(--gc), 0.85);
}
/* very light themes (Saraswati cream) need dark text so the price stays readable */
.gcard[style*="255,235,190"] .gprice {
  color: #3a2400;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ===== God collection: small icons in each lantern's theme colour ===== */
.gcard.god .gtags span {
  color: rgb(var(--gc));
  filter: brightness(1.25) drop-shadow(0 0 4px rgba(var(--gc), 0.55));
}
.gcard.god .gtags .omg {
  color: rgb(var(--gc));
}

/* ================= STYLE TAB: premium buttons, avatars, banners (cheap -> premium) ================= */
/* rarity colours: common = bronze, rare = sapphire, epic = amethyst, legend = gold, ultra = rainbow */
.cosc {
  --rc: 201, 139, 74;
}
.cosc.rr-rare {
  --rc: 47, 123, 255;
}
.cosc.rr-epic {
  --rc: 156, 77, 255;
}
.cosc.rr-legend {
  --rc: 255, 170, 0;
}
.cosc.rr-ultra {
  --rc: 255, 90, 200;
}

/* cards */
.cosc {
  padding: 14px 10px 12px;
  border-radius: 18px;
  border: 1.5px solid rgba(var(--rc), 0.55);
  background:
    radial-gradient(80% 55% at 50% 0%, rgba(var(--rc), 0.22), transparent 75%),
    linear-gradient(180deg, #120d2e, #08061c);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 4px 16px rgba(var(--rc), 0.18);
}
.cosc.rr-epic {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 4px 20px rgba(var(--rc), 0.32);
}
.cosc.rr-legend {
  border-color: #ffc44d;
  box-shadow:
    inset 0 0 0 1px rgba(255, 230, 150, 0.15),
    0 4px 22px rgba(var(--rc), 0.42);
}
.cosc.rr-ultra {
  border: 1.5px solid #ffd98a;
  background:
    radial-gradient(
      80% 55% at 50% 0%,
      rgba(255, 90, 200, 0.28),
      transparent 75%
    ),
    radial-gradient(
      70% 50% at 100% 100%,
      rgba(55, 255, 178, 0.18),
      transparent 70%
    ),
    linear-gradient(180deg, #1a0d3a, #08061c);
  box-shadow:
    inset 0 0 0 1px rgba(255, 230, 150, 0.2),
    0 4px 26px rgba(255, 90, 200, 0.4);
}
.cosc b {
  margin: 4px 0 2px;
  color: #fff3d6;
}

/* rarity tag */
.rar {
  top: 7px;
  left: 7px;
  padding: 3px 8px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.rar.common {
  background: linear-gradient(180deg, #e0a868, #8a5326);
  color: #2a1200;
}
.rar.rare {
  background: linear-gradient(180deg, #5aa0ff, #1a55c4);
  color: #fff;
}
.rar.epic {
  background: linear-gradient(180deg, #c58bff, #6a22b8);
  color: #fff;
}
.rar.legend {
  background: linear-gradient(180deg, #ffe27a, #ff8a00);
  color: #3a1500;
}

/* avatars: bigger in the shop + depth, glow grows with rarity */
.av::after {
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.35),
    inset 0 -3px 6px rgba(0, 0, 0, 0.35);
}
.cosc .av {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
  font-size: 25px;
  margin: 14px auto 10px;
}
.av.av_marigold {
  box-shadow: 0 0 10px rgba(255, 179, 0, 0.45);
  --fill: radial-gradient(circle at 35% 30%, #ffe066, #e07b00);
}
.av.av_diya {
  box-shadow: 0 0 10px rgba(224, 121, 58, 0.5);
  --fill: radial-gradient(circle at 35% 30%, #ffb36b, #b8420c);
}
.av.av_rose {
  box-shadow: 0 0 14px rgba(255, 79, 147, 0.6);
}
.av.av_peacock {
  box-shadow:
    0 0 14px rgba(0, 212, 200, 0.6),
    0 0 22px rgba(47, 107, 255, 0.3);
}
.av.av_lotus {
  box-shadow:
    0 0 16px rgba(255, 111, 174, 0.7),
    0 0 26px rgba(255, 182, 214, 0.3);
  animation: avBreath 3s ease-in-out infinite;
}
.av.av_amethyst {
  box-shadow:
    0 0 16px rgba(156, 77, 255, 0.75),
    0 0 26px rgba(233, 198, 255, 0.3);
  animation: avBreath 3s ease-in-out infinite;
}
.av.av_aurora {
  box-shadow:
    0 0 18px rgba(120, 255, 200, 0.65),
    0 0 32px rgba(122, 107, 255, 0.45);
  animation: avBreath 2.6s ease-in-out infinite;
}
.av.av_maharaja {
  box-shadow:
    0 0 18px rgba(255, 200, 70, 0.9),
    0 0 34px rgba(255, 80, 200, 0.5),
    0 0 48px rgba(120, 255, 200, 0.25);
  animation: avBreath 2.2s ease-in-out infinite;
}
@keyframes avBreath {
  50% {
    filter: brightness(1.25) saturate(1.15);
  }
}

/* banners: taller preview, tier borders */
.bnprev {
  height: 62px;
  border-radius: 14px;
  margin-bottom: 8px;
  border: 1.5px solid rgba(var(--rc), 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.bn_diya::after,
.bn_rangoli::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14),
    transparent 55%
  );
}
.bn_gulab,
.bn_mor {
  box-shadow:
    inset 0 0 0 1px rgba(90, 160, 255, 0.5),
    0 0 12px rgba(47, 123, 255, 0.3);
}
.bn_neel,
.bn_surya {
  box-shadow:
    inset 0 0 0 1px rgba(197, 139, 255, 0.6),
    0 0 16px rgba(156, 77, 255, 0.4);
}
.bn_shahi {
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 214, 120, 0.8),
    0 0 18px rgba(255, 170, 0, 0.45);
}
.bn_mahal {
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 230, 150, 0.9),
    0 0 20px rgba(255, 90, 200, 0.5),
    0 0 30px rgba(55, 255, 178, 0.25);
}

/* buy / equip buttons: stripes + moving shine, colour = rarity */
.cosc .btn[data-cos],
.cosc .btn[data-equip]:not(.ghost) {
  isolation: isolate;
  width: 100%;
  margin-top: 8px;
  padding: 8px 0;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  border-radius: 99px;
  font:
    800 15px "Baloo 2",
    sans-serif;
  letter-spacing: 0.03em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  background-color: rgb(var(--rc));
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(0, 0, 0, 0.32) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -3px 6px rgba(0, 0, 0, 0.3),
    0 3px 14px rgba(var(--rc), 0.55);
}
.cosc .btn[data-cos]::after,
.cosc .btn[data-equip]:not(.ghost)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.18) 0 6px,
    rgba(255, 255, 255, 0) 6px 12px
  );
}
.cosc .btn[data-cos]::before,
.cosc .btn[data-equip]:not(.ghost)::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -25%;
  left: 0;
  width: 38%;
  height: 150%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.85),
    transparent
  );
  transform: translateX(-160%) skewX(-22deg);
  animation: priceShine 3s ease-in-out infinite;
}
.cosc.rr-legend .btn[data-cos] {
  color: #3a1500;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  border-color: #fff2c4;
}
.cosc.rr-ultra .btn[data-cos] {
  background-image:
    linear-gradient(90deg, #ff3d8b, #ffb300, #37ffb2, #7a6bff, #ff3d8b),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(0, 0, 0, 0.25));
  background-size:
    300% 100%,
    100% 100%;
  background-blend-mode: normal, soft-light;
  animation: rainb 4s linear infinite;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.cosc .btn[data-equip]:not(.ghost) {
  --rc: 40, 190, 110;
}
.cosc .btn.ghost[data-equip] {
  border: 1.5px solid rgba(255, 214, 120, 0.7);
  color: #ffe9a8;
  background: rgba(255, 214, 120, 0.1);
}
@media (prefers-reduced-motion: reduce) {
  .cosc .btn::before,
  .av {
    animation: none !important;
  }
}
/* ================= COMPACT TOP BAR (timer + goal in one thin row) ================= */
.stickers {
  margin-top: 4px;
  gap: 5px;
}
.sticker {
  padding: 2px 9px;
  border-radius: 10px;
}
.sticker.cd {
  min-width: 0;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.sticker.cd .lbl {
  font-size: 7px;
  letter-spacing: 1px;
}
.sticker.cd b {
  font-size: 11.5px;
}
.sticker.goal {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 8px;
  padding: 3px 9px;
}
.sticker.goal .gl {
  grid-column: 1;
  grid-row: 1;
  white-space: nowrap;
  font-size: 9.5px;
}
.sticker.goal .gp {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 8.5px;
  white-space: nowrap;
}
.sticker.goal .gbar {
  grid-column: 1/3;
  grid-row: 2;
  height: 3px;
  margin: 3px 0 1px;
}
.sticker.goal .gt {
  display: none;
}
/* ===== bottom nav: compact + gold middle button without the dark ring + click effect ===== */
#nav {
  bottom: calc(6px + var(--safe-b));
  height: 46px;
  width: min(86vw, 350px);
}
#nav button {
  position: relative;
  padding: 4px 0;
  font-size: 9px;
}
#nav svg {
  width: 18px;
  height: 18px;
}
#nav .mid {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  margin-top: -20px;
  border-radius: 19px;
  box-shadow:
    0 6px 18px rgba(255, 132, 20, 0.42),
    inset 0 2px 4px rgba(255, 255, 255, 0.7),
    inset 0 -5px 10px rgba(145, 45, 0, 0.24);
  animation: lightPulse2 3s ease-in-out infinite;
}
#nav .mid::before {
  inset: -4px;
  border-radius: 23px;
}
#nav .mid svg {
  width: 21px;
  height: 21px;
}
#nav .mid em {
  font-size: 9px;
}
@keyframes lightPulse2 {
  50% {
    box-shadow:
      0 8px 26px rgba(255, 150, 30, 0.6),
      inset 0 2px 4px rgba(255, 255, 255, 0.7),
      inset 0 -5px 10px rgba(145, 45, 0, 0.24);
  }
}
#top5 {
  bottom: calc(62px + var(--safe-b));
}

/* click effect: soft glow under the finger + the icon pops when it becomes active */
@keyframes navPop {
  0% {
    transform: scale(0.7);
  }
  55% {
    transform: scale(1.22);
  }
  100% {
    transform: scale(1);
  }
}
#nav button:not(.mid)::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 209, 102, 0.45),
    transparent 70%
  );
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
  transition:
    opacity 0.35s,
    transform 0.35s;
}
#nav button:not(.mid):active::after {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.08s,
    transform 0.18s;
}
#nav button:not(.mid).on svg {
  animation: navPop 0.38s cubic-bezier(0.2, 0.9, 0.3, 1.4);
  filter: drop-shadow(0 0 6px rgba(255, 209, 102, 0.8));
}
#nav .mid:active {
  transform: scale(0.9);
  filter: brightness(1.12);
}

/* top-5 "flying highest": even smaller */
#top5 {
  width: 100px;
  padding: 4px 6px;
  border-radius: 10px;
}
#top5 h4 {
  font-size: 7.5px;
  letter-spacing: 0.8px;
}
#top5R {
  font-size: 7.5px;
  margin: 0 0 2px;
}
#top5 li {
  padding: 1px 0;
  gap: 4px;
}
#top5 .n {
  width: 8px;
  font-size: 8.5px;
}
#top5 .nm {
  font-size: 9px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#top5 .am {
  font-size: 8px;
}

/* ===== intro: tall PNG banner (phone / reel ratio), fades in slowly ===== */
#introBanner {
  display: none;
}
#intro.has-banner {
  padding: 0;
  gap: 0;
  background: #05061a;
}
#intro.has-banner #introLamp,
#intro.has-banner h1,
#intro.has-banner p {
  display: none;
}
#intro.has-banner #introBanner {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* phone portrait: fills the screen */
  object-position: center;
  animation: introFade 2.4s cubic-bezier(0.25, 0.6, 0.3, 1) both;
}
@media (min-aspect-ratio: 1/1) {
  #intro.has-banner #introBanner {
    object-fit: contain;
  } /* desktop / landscape: whole banner centred */
}
@keyframes introFade {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  #intro.has-banner #introBanner {
    animation: none;
  }
}
html,
body {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #070b22;
}
#sky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: block;
}
.youtag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #2fe6a8;
  color: #04261b;
  font-size: 9px;
  font-weight: 800;
  vertical-align: middle;
}

.youtag {
  display: inline-block;
  flex: none;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #2fe6a8;
  color: #04261b;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.4;
  vertical-align: middle;
  letter-spacing: 0.3px;
}
.item.me {
  box-shadow: inset 0 0 0 1.5px rgba(47, 230, 168, 0.75);
  background: rgba(47, 230, 168, 0.08);
}
#top5 li.me {
  background: rgba(47, 230, 168, 0.12);
  border-radius: 8px;
}
#top5 li .youtag {
  margin: 0 4px 0 0;
}
