/* ==========================================================================
   Store landing page – pixel-matched to a 473px wide mobile design.
   The whole .app is laid out in design pixels and scaled with JS (zoom).
   ========================================================================== */

:root {
  --bg: #f1effd;
  --ink: #16142a;
  --violet: #6a4bd0;
  --pink: #f85ad0;
  --fp: #f45bbd;
}

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

html, body {
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  min-height: 100vh;
}

button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
img { display: block; user-select: none; -webkit-user-drag: none; }

.app {
  position: relative;
  width: 473px;
  min-height: 1024px;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
}

/* ----------------------------- Top bar -------------------------------- */
.topbar {
  position: relative;
  height: 101px;
  background: #fefefe;
}

.back {
  position: absolute;
  left: 22px;
  top: 55px;
  width: 22px;
  height: 28px;
  display: grid;
  place-items: center;
}
.back svg { width: 15px; height: 25px; }
.back path {
  fill: none;
  stroke: #8466f2;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top-logo {
  position: absolute;
  left: 52px;
  top: 52px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 5px rgba(106, 75, 208, 0.2);
}

.pill {
  position: absolute;
  top: 55px;
  height: 30px;
  border-radius: 15px;
  background: #ecebfa;
}
.pill-coin    { left: 152px; width: 82px; }
.pill-ticket  { left: 262px; width: 82px; }
.pill-diamond { left: 372px; width: 83px; }

.pill-ico {
  position: absolute;
  top: -5px;
  width: 37px;
  height: 39px;
}
.pill-coin .pill-ico    { left: -16px; width: 36px; }
.pill-ticket .pill-ico  { left: -18px; }
.pill-diamond .pill-ico { left: -18px; }

.pill-val {
  position: absolute;
  inset: 0 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.2px;
  color: #22202e;
}
.pill-coin .pill-val { inset: 0 0 0 10px; }

/* ----------------------------- Content -------------------------------- */
.content { padding: 18px 0 24px; }

/* Banner */
.banner {
  position: relative;
  width: 430px;
  height: 143px;
  margin-left: 22px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(120, 90, 200, 0.08);
}
.banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.banner-text {
  position: absolute;
  right: 15px;
  top: 0;
  text-align: right;
  font-family: "Bitter", Georgia, serif;
  font-style: italic;
  font-weight: 800;
  color: #ff2b6d;
}
.vip-line {
  position: absolute;
  right: 0;
  top: 12px;
  white-space: nowrap;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.2px;
}
.vip-line .price { font-size: 32px; letter-spacing: -0.5px; }
.vip-line .per   { font-size: 16.5px; margin-left: 1px; }
.vip-sub {
  position: absolute;
  right: 2px;
  top: 46px;
  white-space: nowrap;
  font-weight: 700;
  font-size: 15.5px;
  line-height: 22px;
  color: #ff3a74;
}

.subscribe {
  position: absolute;
  left: 273px;
  top: 96px;
  width: 145px;
  height: 36px;
  border-radius: 18px;
  font-family: "Bitter", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 16.5px;
  color: #fff;
  background: linear-gradient(180deg, #ff7aa2 0%, #ff4a78 55%, #fb3767 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(200, 20, 70, 0.25),
    0 3px 6px rgba(255, 60, 110, 0.35);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.subscribe:hover  { filter: brightness(1.05); }
.subscribe:active { transform: scale(0.96); }

/* Section titles */
.section-title {
  font-family: "Outfit", "Nunito", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 26px;
  letter-spacing: 0.6px;
  color: var(--ink);
  margin: 13px 0 18px 25px;
}
.tickets-title { margin-top: 27px; margin-bottom: 11px; }

/* Grid */
.grid {
  display: grid;
  grid-template-columns: 136px 134px 135px;
  column-gap: 9.5px;
  row-gap: 16px;
  padding-left: 25px;
}

/* Card */
.card {
  position: relative;
  height: 188px;
  border-radius: 12px;
  border: 1.5px solid #d9c6f8;
  background: linear-gradient(180deg, #f7e1fd 0%, #eedcfd 35%, #eadbfc 65%, #e6d8f7 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 1px 2px rgba(140, 100, 220, 0.08);
}
.card.hot {
  border: 2px solid #f6a066;
  background: linear-gradient(180deg, #fde9e2 0%, #ffe8d9 40%, #ffe6d0 70%, #ffe1bd 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.card .art {
  position: absolute;
  left: 2.5px;
  top: 5.5px;
  width: calc(100% - 5px);
  height: 94px;
  object-fit: fill;
  pointer-events: none;
}
.card.hot .art { left: 2px; top: 5px; width: calc(100% - 4px); }

/* Bonus badge */
.badge {
  position: absolute;
  right: -3.5px;
  top: -6.5px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  z-index: 2;
  filter: drop-shadow(0 1px 1px rgba(80, 50, 160, 0.15));
}
.badge svg { position: absolute; inset: 0; width: 46px; height: 46px; }
.badge span {
  position: relative;
  transform: rotate(8deg);
  font-weight: 900;
  font-style: italic;
  font-size: 13.5px;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.2px;
  text-shadow: 0 1px 0 rgba(60, 30, 140, 0.15);
}
.badge small { font-size: 7.5px; font-weight: 900; margin-left: 0.5px; }

/* Hot / Bcz tag */
.tag {
  position: absolute;
  left: -0.5px;
  top: -0.5px;
  height: 20px;
  padding: 0 9px 0 7px;
  display: flex;
  align-items: center;
  gap: 3px;
  border-radius: 10px 0 10px 0;
  font-weight: 800;
  font-size: 12px;
  color: #fff;
  z-index: 2;
}
.tag svg { width: 11px; height: 11px; fill: #fff; }
.tag-hot {
  min-width: 55px;
  background: linear-gradient(180deg, #ffa74a, #ff8d2c);
}
.tag-bcz {
  min-width: 56px;
  left: 0;
  top: 0;
  background: linear-gradient(90deg, #ef7ce8, #d68cf6);
}
.tag-bcz svg { width: 13px; }

/* Text */
.fp {
  position: absolute;
  left: 0; right: 0;
  top: 103px;
  text-align: center;
  font-weight: 700;
  font-size: 12.5px;
  line-height: 18px;
  color: var(--fp);
}
.amt {
  position: absolute;
  left: 0; right: 0;
  top: 122px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 19px;
  line-height: 24px;
  letter-spacing: 0.2px;
}
.amt img      { width: 27px; height: 21px; margin-right: 1px; margin-left: -4px; }
.amt img.mini-t { width: 23px; height: 25px; margin-right: 3px; }
.amt b        { font-weight: 800; color: var(--violet); }
.amt i        { font-style: normal; color: var(--pink); }

/* Free button */
.free {
  position: absolute;
  left: 7px;
  right: 8px;
  top: 147px;
  height: 31px;
  border-radius: 16px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.3px;
  color: #fff;
  background: linear-gradient(180deg, #a68aff 0%, #8b6bff 55%, #7b58fb 100%);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(80, 40, 200, 0.18),
    0 2px 4px rgba(120, 80, 240, 0.25);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.card.hot .free {
  left: 6.5px; right: 7.5px; top: 146px;
  background: linear-gradient(180deg, #ffa13a 0%, #ff8020 55%, #fd6a0e 100%);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(200, 70, 0, 0.2),
    0 2px 4px rgba(255, 110, 20, 0.3);
}
.free:hover  { filter: brightness(1.06); }
.free:active { transform: scale(0.95); }
.free.claimed {
  filter: grayscale(0.55) brightness(1.05);
  opacity: 0.85;
  font-size: 16px;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translate(-50%, 20px);
  padding: 10px 18px;
  border-radius: 20px;
  background: rgba(34, 30, 60, 0.88);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.pill-val.bump { animation: bump 0.4s ease; }
@keyframes bump {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.25); }
}

/* ----------------------------- Footer --------------------------------- */
.footer {
  padding: 12px 25px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.footer-logo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: cover;
}
.copyright {
  font-size: 13px;
  font-weight: 700;
  color: #9b95b8;
  letter-spacing: 0.3px;
}
