:root {
  --ink: #2a1a5e;
  --muted: #6c6495;
  --line: #e2dcff;
  --purple: #6b2bea;
  --purple-d: #4313a8;
  --purple-l: #efe8ff;
  --gold: #f5b82e;
  --gold-d: #b8740f;
  --gold-l: #fff4d6;
  --card: #ffffff;
  --radius: 22px;
  --head: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: #eef0ff;
  color: var(--ink);
  font: 600 14px/1.45 Nunito, system-ui, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
[hidden] { display: none !important; }
b { font-weight: 800; }

/* Light magical sky: soft glows plus a sprinkle of tiny stars */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(2px 2px at 12% 18%, #c9b5ff 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 12%, #f5c95c 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 42% 8%, #b9a4ff 50%, transparent 51%),
    radial-gradient(2px 2px at 88% 44%, #c9b5ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 6% 62%, #f5c95c 50%, transparent 51%),
    radial-gradient(2px 2px at 64% 76%, #c9b5ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 24% 88%, #b9a4ff 50%, transparent 51%),
    radial-gradient(60% 40% at 100% 0%, #e4d6ff 0%, transparent 70%),
    radial-gradient(50% 35% at 0% 30%, #dce8ff 0%, transparent 70%),
    radial-gradient(45% 30% at 100% 100%, #fff0c9 0%, transparent 70%),
    linear-gradient(180deg, #eef3ff 0%, #f3edff 55%, #f6f0ff 100%);
}

.shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px 24px;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}
.logo { width: 132px; height: auto; filter: drop-shadow(0 4px 10px #6b2bea33); }
.event-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
  color: var(--purple-d);
  box-shadow: 0 4px 14px #6b2bea14;
  white-space: nowrap;
}
.event-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 #22c55e80;
  animation: ping 2s infinite;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 6px 18px 40px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(70% 90% at 95% 10%, #b56bff 0%, transparent 60%),
    radial-gradient(60% 70% at 85% 100%, #f5b82e55 0%, transparent 65%),
    linear-gradient(150deg, #7a35f0 0%, #5a1fd1 50%, #3d0f9c 100%);
  box-shadow: 0 18px 40px -16px #4313a8aa, inset 0 1px 0 #ffffff40;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1.5px 1.5px at 20% 30%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 55% 15%, #ffe68a 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 35% 75%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 8% 60%, #ffe68a 50%, transparent 51%),
    radial-gradient(1px 1px at 48% 50%, #fff 50%, transparent 51%);
  opacity: .8;
}
.eyebrow {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  background: #ffffff22;
  border: 1px solid #ffffff38;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffe68a;
}
.hero h1 {
  margin: 10px 0 8px;
  font: 800 clamp(26px, 8.2vw, 34px)/1.02 var(--head);
  letter-spacing: -.01em;
  text-shadow: 0 2px 0 #3d0f9c;
}
.hero h1 em {
  font-style: normal;
  color: #ffd257;
  background: linear-gradient(180deg, #fff1b0 0%, #ffd257 45%, #f5a623 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 0 #3d0f9c);
}
.hero-text > p {
  margin: 0 0 14px;
  max-width: 440px;
  font-size: 14px;
  color: #ece4ff;
}
.hero-text > p b { color: #fff; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 5px;
  border-radius: 99px;
  background: #ffffff1f;
  border: 1px solid #ffffff33;
  font-size: 12px;
  font-weight: 800;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.hero-badges img { width: 26px; height: 26px; }
/* Phones: one grouped scene (dragon in front of the chest) on a gold glow */
.hero-art {
  position: relative;
  order: -1;
  height: 188px;
  margin: 4px -10px -4px;
  pointer-events: none;
}
.hero-art::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px;
  height: 190px;
  margin: -95px 0 0 -150px;
  border-radius: 50%;
  background: radial-gradient(closest-side, #ffd96a99, #f5a6234d 45%, #b56bff26 70%, transparent);
}
.hero-art::after {
  content: '';
  position: absolute;
  left: calc(50% - 30px);
  bottom: 6px;
  width: 170px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(closest-side, #22065f80, transparent);
}
.chest {
  position: absolute;
  z-index: 1;
  left: calc(50% - 52px);
  top: 4px;
  width: 182px;
  filter: drop-shadow(0 12px 14px #22065f77);
  animation: float 4.5s ease-in-out infinite;
}
.dragon {
  position: absolute;
  z-index: 2;
  left: calc(50% - 148px);
  top: 30px;
  width: 140px;
  filter: drop-shadow(0 10px 12px #22065f66);
  animation: hover 3.4s ease-in-out infinite;
  animation-delay: -1.2s;
}
.spark { position: absolute; z-index: 3; width: 22px; animation: twinkle 2.4s ease-in-out infinite; }
.k1 { top: 6%; left: calc(50% - 120px); }
.k2 { top: 74%; left: calc(50% + 120px); width: 16px; animation-delay: .8s; }
.k3 { top: 2%; left: calc(50% + 110px); width: 14px; animation-delay: 1.5s; }

/* ID finder */
.finder {
  position: relative;
  z-index: 2;
  margin: -24px 8px 0;
  padding: 14px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px -14px #4313a845;
}
.finder label {
  display: block;
  margin: 0 0 8px 2px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--purple);
}
/* Phones: full-width input so all 8 digits always fit, button below */
.finder-row { display: flex; flex-wrap: wrap; gap: 8px; }
.finder input {
  flex: 1 1 100%;
  min-width: 0;
  height: 52px;
  padding: 0 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #f7f5ff;
  font: 800 22px var(--head);
  letter-spacing: .12em;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.finder input::placeholder { font: 700 15px Nunito, sans-serif; letter-spacing: 0; color: #a59dcc; }
.finder input:focus { border-color: var(--purple); box-shadow: 0 0 0 4px #6b2bea22; background: #fff; }
.finder input[aria-invalid='true'] { border-color: #e5484d; box-shadow: 0 0 0 4px #e5484d22; }
.finder button[type='submit'] {
  flex: 1 1 100%;
  height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffe07a 0%, #f5b82e 55%, #e89a0d 100%);
  color: #4a2a00;
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 4px 0 #b8740f, 0 8px 18px -6px #e89a0d99, inset 0 1px 0 #fff6c9;
  transition: transform .12s, box-shadow .12s;
}
.finder button[type='submit']:active { transform: translateY(3px); box-shadow: 0 1px 0 #b8740f; }
#finderMsg { display: block; margin: 8px 2px 0; font-size: 12px; color: var(--muted); }
.finder:has([aria-invalid='true']) #finderMsg { color: #c9353a; }

.demos { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.demos > span { font-size: 12px; font-weight: 800; color: var(--muted); }
#demoIds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
#demoIds button {
  padding: 7px 4px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #faf8ff;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .03em;
  color: var(--purple-d);
  transition: .15s;
}
#demoIds small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0; color: var(--muted); }
#demoIds button:hover { border-color: #c4b2ff; background: var(--purple-l); }
#demoIds button[aria-pressed='true'] {
  border-color: var(--purple);
  background: linear-gradient(180deg, #8a4dff, #6b2bea);
  color: #fff;
  box-shadow: 0 4px 12px -4px #6b2bea99;
}
#demoIds button[aria-pressed='true'] small { color: #e6dbff; }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0 0;
}
.steps > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 6px 12px;
  background: #ffffffb3;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.steps img { width: 52px; height: 52px; margin-bottom: 4px; filter: drop-shadow(0 6px 8px #6b2bea30); }
.steps p { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.steps p b { display: block; font: 800 14px/1.15 var(--head); color: var(--ink); margin-bottom: 2px; }

/* Dashboard */
.dashboard { padding-top: 18px; scroll-margin-top: 10px; }

.guide { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pet {
  position: relative;
  flex-shrink: 0;
  width: 104px;
  margin: -14px -6px -10px 0;
}
.pet::before {
  content: '';
  position: absolute;
  inset: 18% 10% 8%;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe68a 0%, #d9c2ff 45%, transparent 70%);
  opacity: .7;
  z-index: -1;
}
.pet img {
  width: 100%;
  filter: drop-shadow(0 10px 12px #4313a840);
  animation: hover 3.4s ease-in-out infinite;
}
.pet img.swap { animation: arrive .5s cubic-bezier(.3, 1.6, .5, 1), hover 3.4s .5s ease-in-out infinite; }
.bubble {
  position: relative;
  flex: 1;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 20px -10px #4313a840;
}
.bubble::before {
  content: '';
  position: absolute;
  right: -7px;
  top: 50%;
  width: 14px;
  height: 14px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: translateY(-50%) rotate(45deg);
}
.bubble-id { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.bubble-id b { color: var(--purple); letter-spacing: .08em; }
.bubble p { margin: 2px 0 0; font-size: 14px; line-height: 1.35; }
.bubble p b { color: var(--purple); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat {
  position: relative;
  padding: 10px 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  min-width: 0;
}
.stat img { width: 38px; height: 38px; margin-bottom: 2px; filter: drop-shadow(0 4px 6px #6b2bea30); }
.stat span { display: block; font-size: 11px; font-weight: 800; color: var(--muted); }
.stat strong {
  display: block;
  font: 800 18px/1.15 var(--head);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat strong small { font-size: 12px; color: var(--muted); }
.stat.hot {
  color: #fff;
  border-color: transparent;
  background: radial-gradient(90% 80% at 100% 0%, #b56bff, transparent 70%), linear-gradient(150deg, #7a35f0, #4313a8);
  box-shadow: 0 10px 22px -10px #4313a8aa;
}
.stat.hot span { color: #e6dbff; }
.stat.hot strong { color: #ffe07a; }

/* Coupons: ticket-shaped cards with notches */
.coupons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.coupon {
  --cut: 128px;
  --notch: radial-gradient(circle 9px at 0 var(--cut), #0000 98%, #000) left / 51% 100% no-repeat,
           radial-gradient(circle 9px at 100% var(--cut), #0000 98%, #000) right / 51% 100% no-repeat;
  position: relative;
  padding: 12px 12px 14px;
  border-radius: 20px;
  -webkit-mask: var(--notch);
  mask: var(--notch);
  overflow: hidden;
  min-width: 0;
}
.coupon.gold {
  --c: #b8740f;
  --c2: #8a5200;
  --track: #f3dfae;
  --fill: linear-gradient(90deg, #ffd257, #f5a623);
  background: radial-gradient(80% 60% at 100% 0%, #ffe39a, transparent 70%), linear-gradient(170deg, #fff8e4, #ffeec2);
  box-shadow: inset 0 0 0 1.5px #f1cf7f;
}
.coupon.diamond {
  --c: #6b2bea;
  --c2: #4313a8;
  --track: #e2d6ff;
  --fill: linear-gradient(90deg, #b56bff, #6b2bea);
  background: radial-gradient(80% 60% at 100% 0%, #dcc7ff, transparent 70%), linear-gradient(170deg, #f8f4ff, #ece2ff);
  box-shadow: inset 0 0 0 1.5px #d3c0ff;
}
.coupon::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  top: calc(var(--cut) - 1px);
  border-top: 2px dashed color-mix(in srgb, var(--c) 30%, transparent);
}
.coupon-art {
  position: absolute;
  top: 26px;
  right: -6px;
  width: 78px;
  filter: drop-shadow(0 8px 10px #4313a840);
  animation: float 4s ease-in-out infinite;
}
.diamond .coupon-art { animation-delay: -2s; }
.coupon-head { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; position: relative; }
.tag { font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--c2); }
.state {
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 900;
  background: #ffffffb3;
  color: var(--c2);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.pct { font: 800 46px/0.95 var(--head); color: var(--c); margin-top: 6px; letter-spacing: -.02em; }
.pct small { font-size: 26px; }
.rule { margin: 0; font-size: 12px; font-weight: 800; color: var(--c2); }
.value { margin-top: 22px; }
.value-label { display: block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.value-num { display: block; font: 800 21px/1.2 var(--head); color: var(--ink); }
.bar { height: 10px; margin-top: 8px; border-radius: 99px; background: var(--track); overflow: hidden; }
.bar i {
  position: relative;
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--fill);
  transition: width .8s cubic-bezier(.2, .8, .2, 1);
  overflow: hidden;
}
.bar i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, #ffffff99 50%, transparent 80%);
  animation: shine 2.2s ease-in-out infinite;
}
.meta { margin: 6px 0 0; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.lock { display: none; align-items: center; gap: 6px; margin-top: 6px; font-size: 11.5px; font-weight: 800; color: var(--c2); }
.lock img { width: 22px; }

.coupon[data-state='locked'] .lock,
.coupon[data-state='closed'] .lock { display: flex; }
.coupon[data-state='locked'] .meta,
.coupon[data-state='closed'] .meta:empty { display: none; }
.coupon[data-state='locked'] .coupon-art,
.coupon[data-state='closed'] .coupon-art { filter: grayscale(.7) opacity(.55); animation: none; }
.coupon[data-state='closed'] { filter: saturate(.4); }
.coupon[data-state='done'] .state {
  background: linear-gradient(180deg, #4ade80, #16a34a);
  color: #fff;
  border-color: transparent;
}
.coupon[data-state='done'] .coupon-art { animation: float 4s ease-in-out infinite, glow 2s ease-in-out infinite; }
.coupon[data-state='done']::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, #ffffffaa 50%, transparent 65%);
  transform: translateX(-100%);
  animation: sweep 3.5s ease-in-out infinite;
  pointer-events: none;
}

/* 60-day calendar */
.calendar {
  margin-top: 12px;
  padding: 14px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cal-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.cal-head h2 { margin: 0; font: 800 19px/1.1 var(--head); }
#calDay { font-size: 12px; font-weight: 800; color: var(--purple); white-space: nowrap; }
.days { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px 2px; }
.day { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.day img { width: 92%; transition: transform .2s; }
.day span {
  position: absolute;
  bottom: -2px;
  right: 0;
  min-width: 16px;
  padding: 0 3px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 900;
  line-height: 14px;
  text-align: center;
  background: #fff;
  color: var(--muted);
  box-shadow: 0 1px 3px #4313a830;
}
.day.todo img { opacity: .75; }
.day.off img { opacity: .3; }
.day.off span { opacity: .6; }
.day.done span { color: var(--gold-d); }
.day.missed span { background: #ffe1e1; color: #c9353a; }
.day.goal img { opacity: 1; transform: scale(1.12); }
.day.goal:not(.lit) img { filter: saturate(.75); }
.day.goal.lit img { filter: drop-shadow(0 0 6px #f5b82e); }
.day.today::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  border: 2px solid var(--purple);
  box-shadow: 0 0 0 0 #6b2bea66;
  animation: ping 1.8s infinite;
}
.day.today span { background: var(--purple); color: #fff; }
.fresh .day { animation: pop .4s backwards cubic-bezier(.3, 1.6, .5, 1); animation-delay: calc(var(--i) * 12ms); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.legend img { width: 18px; }

/* Simulator */
.sim {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 12px;
  padding: 12px;
  border: 1.5px dashed #cdbdff;
  border-radius: 18px;
  background: #ffffff80;
}
.sim > span { font-size: 13px; font-weight: 900; color: var(--purple-d); }
.sim > div { display: flex; gap: 6px; }
.sim button {
  flex: 1;
  white-space: nowrap;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #8a4dff, #6b2bea);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 3px 0 #4313a8;
}
.sim button.ghost { background: #fff; color: var(--purple-d); box-shadow: 0 3px 0 #d6c9ff; border: 1px solid var(--line); }
.sim button:active { transform: translateY(2px); box-shadow: none; }
.sim button:disabled { opacity: .5; cursor: default; }

/* Rules */
.rules { margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.rules summary {
  padding: 13px 14px;
  font: 800 16px var(--head);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.rules summary::-webkit-details-marker { display: none; }
.rules summary::after { content: '+'; color: var(--purple); font-size: 20px; line-height: 1; }
.rules[open] summary::after { content: '–'; }
.rules ul { margin: 0; padding: 0 16px 14px 32px; font-size: 13px; color: var(--muted); }
.rules li { margin-bottom: 6px; }
.rules li b { color: var(--ink); }

/* FAQ */
.faq { margin-top: 26px; scroll-margin-top: 10px; }
/* Collapsed by default: the header is the button that opens it. */
.faq-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px -18px #4313a855;
}
.faq-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 8px; cursor: pointer; list-style: none; border-radius: var(--radius); }
.faq-head::-webkit-details-marker { display: none; }
.faq-head > div { flex: 1; min-width: 0; }
.faq-head:hover .faq-toggle { background: var(--purple); }
.faq-head:hover .faq-toggle::before { border-color: #fff; }
.faq-toggle {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple-l);
  transition: transform .25s, background .15s;
}
.faq-toggle::before {
  content: '';
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-right: 3px solid var(--purple);
  border-bottom: 3px solid var(--purple);
  transform: rotate(45deg);
}
.faq-box[open] .faq-toggle { transform: rotate(180deg); }
.faq-box[open] .faq-head { border-bottom: 1px dashed var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.faq-body { padding: 12px 12px 14px; }
.faq-head img { width: 84px; margin: -10px -4px -10px -8px; animation: hover 3.4s ease-in-out infinite; }
.faq-head h2 { margin: 0; font: 800 24px/1.05 var(--head); }
.faq-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.faq .rules { margin-top: 0; border: 0; background: linear-gradient(170deg, #fff8e4, #ffeec2); box-shadow: inset 0 0 0 1.5px #f1cf7f; }
.faq .rules summary::after { color: var(--gold-d); }
.faq .rules ul { color: #6b5323; }
.faq .rules li b { color: #4a2a00; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.faq-search { display: block; margin: 12px 0 0; }
.faq-search input {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 42px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236b2bea' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 3.5 3.5'/%3E%3C/svg%3E") 14px 50% no-repeat;
  font-size: 16px;
  font-weight: 700;
  outline: none;
}
.faq-search input:focus { border-color: var(--purple); box-shadow: 0 0 0 4px #6b2bea22; }
.faq-search input::placeholder { color: #a59dcc; font-weight: 600; }
.faq-empty { margin: 10px 2px 0; font-size: 13px; color: var(--muted); }
.faq-group { margin-top: 16px; }
.faq-group h3 {
  margin: 0 0 6px 4px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--purple);
}
.faq-group details {
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom-width: 0;
}
.faq-group details:first-of-type { border-radius: 16px 16px 0 0; }
.faq-group details:last-of-type { border-bottom-width: 1px; border-radius: 0 0 16px 16px; }
.faq-group details:only-of-type { border-radius: 16px; }
.faq-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 12px 14px;
  font-weight: 800;
  font-size: 14.5px;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary::after {
  content: '+';
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--purple-l);
  color: var(--purple);
  font-size: 18px;
  line-height: 1;
  transition: transform .2s;
}
.faq-group details[open] summary::after { content: '–'; background: var(--purple); color: #fff; }
.faq-group details[open] summary { color: var(--purple-d); }
.faq-group details p { margin: 0 14px 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.faq-group details p b { color: var(--ink); }
.faq-group .example {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--purple-l);
  font-size: 13.5px;
}
.support {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 14px 14px 6px;
  border-radius: var(--radius);
  color: #fff;
  background: radial-gradient(80% 90% at 100% 0%, #b56bff, transparent 65%), linear-gradient(150deg, #7a35f0, #4313a8);
  box-shadow: 0 14px 30px -14px #4313a8aa;
}
.support > img { width: 96px; flex-shrink: 0; margin: -18px -4px -14px 0; animation: hover 3.4s ease-in-out infinite; }
.support b { font: 800 19px/1.1 var(--head); }
.support p { margin: 2px 0 10px; font-size: 13px; color: #e6dbff; }
.support-links { display: flex; flex-wrap: wrap; gap: 8px; }
.support-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: #fff;
  color: var(--purple-d);
  font-weight: 900;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 3px 0 #d6c9ff;
}
.support-links a::before {
  content: '';
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%2329a9eb'/%3E%3Cpath fill='%23fff' d='M5.4 11.7 16.9 7.3c.5-.2 1 .1.8.9l-2 9.3c-.1.6-.5.8-1 .5l-3-2.2-1.4 1.4c-.2.2-.3.3-.6.3l.2-3.1 5.6-5.1c.2-.2 0-.3-.4-.1l-6.9 4.4-3-.9c-.6-.2-.7-.6.2-1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.support-links a:active { transform: translateY(2px); box-shadow: none; }

footer { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 20px; text-align: center; }
footer img { width: 16px; }
footer p { margin: 0; font-size: 11.5px; color: var(--muted); }

/* Events popup: bottom sheet on phones, centered card on desktop */
html.locked, html.locked body { overflow: hidden; }
.events {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.events[open] { display: flex; align-items: flex-end; justify-content: center; }
.events::backdrop { background: #1a0b3bb8; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ev-sheet {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100dvh - 20px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  background: #f5f2ff;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -20px 50px -10px #1a0b3b80;
  animation: sheetUp .35s cubic-bezier(.2, .9, .3, 1);
}
.ev-sheet::-webkit-scrollbar { display: none; }
.ev-top {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 112px;
  column-gap: 6px;
  padding: 18px 16px 14px;
  color: #fff;
  background:
    radial-gradient(70% 90% at 95% 10%, #b56bff 0%, transparent 60%),
    radial-gradient(60% 70% at 85% 100%, #f5b82e55 0%, transparent 65%),
    linear-gradient(150deg, #7a35f0 0%, #5a1fd1 50%, #3d0f9c 100%);
  overflow: hidden;
  isolation: isolate;
}
.ev-top .eyebrow { grid-column: 1; justify-self: start; align-self: end; margin-top: 18px; font-size: 10.5px; }
.ev-top h2 { grid-column: 1; margin: 8px 0 0; font: 800 30px/1 var(--head); text-shadow: 0 2px 0 #3d0f9c; }
.ev-top p { grid-column: 1 / -1; margin: 10px 0 14px; font-size: 13.5px; color: #ece4ff; }
.ev-pet {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  width: 120px;
  margin: 0 -10px -6px -8px;
  filter: drop-shadow(0 10px 12px #22065f66);
  animation: hover 3.4s ease-in-out infinite;
}
.ev-close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #ffffff2e;
  color: #fff;
  font-size: 26px;
  line-height: 1;
}
.ev-tabs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: #ffffff24;
}
.ev-tabs button {
  height: 40px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #f1eaff;
  font-weight: 900;
  font-size: 14px;
}
.ev-tabs button[aria-selected='true'] { background: #fff; color: var(--purple-d); box-shadow: 0 3px 10px #22065f40; }

.ev-body { padding: 14px 14px calc(18px + env(safe-area-inset-bottom, 0px)); }
.ev-panel { display: grid; gap: 10px; }
.ev-card {
  position: relative;
  padding: 16px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.ev-card.feature {
  background: radial-gradient(80% 60% at 100% 0%, #ffe39a, transparent 70%), linear-gradient(170deg, #fff8e4, #fff);
  box-shadow: inset 0 0 0 1.5px #f1cf7f;
  border-color: transparent;
}
.ev-card.warn { box-shadow: inset 0 0 0 1.5px #ffc2c2; border-color: transparent; background: linear-gradient(170deg, #fff1f1, #fff); }
.ev-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 62px;
  filter: drop-shadow(0 6px 8px #6b2bea30);
}
.ev-tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--purple);
  color: #fff;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.ev-card h3 { margin: 0 72px 4px 0; font: 800 19px/1.15 var(--head); color: var(--ink); }
.ev-card p { margin: 0 0 4px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.ev-card p:not(.ev-note) { padding-right: 0; }
.ev-card h3 + p { margin-right: 64px; }
.ev-card p b { color: var(--ink); }
.ev-card ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ev-card li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
}
.ev-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  background: url(assets/sparkle.webp) center / contain no-repeat;
}
.ev-bad { grid-template-columns: 1fr 1fr; }
.ev-bad li { padding: 8px 8px 8px 30px; border-radius: 12px; background: #ffe6e6; font-weight: 800; color: #9f1d22; }
.ev-bad li::before {
  left: 8px;
  top: 50%;
  margin-top: -8px;
  border-radius: 50%;
  background: #e5484d;
  content: '×';
  color: #fff;
  font-size: 13px;
  line-height: 16px;
  text-align: center;
  font-weight: 900;
}
.ev-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.ev-tiers div {
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(170deg, #fff4d6, #ffe7a8);
  box-shadow: inset 0 0 0 1.5px #f1cf7f;
}
.ev-tiers div.violet { background: linear-gradient(170deg, #f3ecff, #e4d6ff); box-shadow: inset 0 0 0 1.5px #d3c0ff; }
.ev-tiers b { display: block; font: 800 34px/1 var(--head); color: var(--gold-d); }
.ev-tiers .violet b { color: var(--purple); }
.ev-tiers span { font-size: 12px; font-weight: 800; color: var(--ink); }
.ev-cta {
  width: 100%;
  height: 50px;
  margin-top: 14px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffe07a 0%, #f5b82e 55%, #e89a0d 100%);
  color: #4a2a00;
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 4px 0 #b8740f, inset 0 1px 0 #fff6c9;
}
.ev-cta:active { transform: translateY(3px); box-shadow: 0 1px 0 #b8740f; }
.ev-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.ev-facts div { padding: 10px 12px; border-radius: 14px; background: var(--purple-l); }
.ev-facts span { display: block; font-size: 11.5px; font-weight: 800; color: var(--muted); }
.ev-facts b { font: 800 24px/1.1 var(--head); color: var(--purple-d); }
.ev-req {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.ev-req > span { grid-column: 1 / -1; font-size: 12px; font-weight: 800; color: var(--muted); }
.ev-req b { display: block; font: 800 22px/1.1 var(--head); color: var(--purple-d); }
.ev-req small { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.ev-table { width: 100%; margin-top: 10px; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.ev-table th { padding: 6px 10px; text-align: left; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ev-table td { padding: 10px; background: #fff; border-top: 1px solid var(--line); font-weight: 700; }
.ev-table td:last-child { text-align: right; font-weight: 900; color: var(--gold-d); white-space: nowrap; }
.ev-table tr:first-child td { border-top: 0; }
.ev-table tbody tr:first-child td:first-child { border-radius: 12px 0 0 0; }
.ev-table tbody tr:first-child td:last-child { border-radius: 0 12px 0 0; }
.ev-table tbody tr:last-child td:first-child { border-radius: 0 0 0 12px; }
.ev-table tbody tr:last-child td:last-child { border-radius: 0 0 12px 0; }
.ev-table tbody { box-shadow: 0 0 0 1px var(--line); border-radius: 12px; }
.ev-up { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 6px; }
.ev-up s { font: 700 20px var(--head); color: #a59dcc; }
.ev-up b { font: 800 40px/1 var(--head); color: var(--gold-d); }
.ev-up span { font-size: 13px; font-weight: 800; color: var(--muted); }
.ev-note { font-size: 12px !important; }
.ev-help { margin-top: 14px; text-align: center; }
.ev-help > span { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 800; color: var(--muted); }
.ev-help .support-links { justify-content: center; }
.ev-help .support-links a { box-shadow: 0 3px 0 #d6c9ff, 0 0 0 1px var(--line); }

/* Header events button + hero link */
.event-chip { cursor: pointer; position: relative; min-height: 40px; padding: 5px 14px 5px 6px; font-size: 13px; }
.event-chip img { width: 26px; height: 26px; margin: -4px 0; }
.event-chip i {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  background: #ff4d6d;
  box-shadow: 0 0 0 0 #ff4d6d80;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: #ffe07a;
  font-weight: 900;
  font-size: 13.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 36px;
}

@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes sheetIn { from { transform: translateY(20px) scale(.97); opacity: 0; } }

@media (min-width: 760px) {
  .events[open] { align-items: center; }
  .ev-sheet { max-height: 88dvh; border-radius: 28px; animation-name: sheetIn; }
  .ev-top { grid-template-columns: 1fr 150px; padding: 22px 24px 16px; }
  .ev-top h2 { font-size: 38px; }
  .ev-pet { width: 160px; }
  .ev-body { padding: 18px 22px 22px; }
}

.faq-link { padding: 0; border: 0; background: none; color: var(--purple); font-weight: 900; text-decoration: underline; text-underline-offset: 3px; min-height: 36px; }

/* Celebration + toast */
.burst { position: fixed; width: 0; height: 0; z-index: 30; pointer-events: none; }
.burst img { position: absolute; width: 26px; left: -13px; top: -13px; opacity: 0; }
.burst.go img { animation: burst 1s cubic-bezier(.2, .8, .3, 1) forwards; }
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(150deg, #7a35f0, #4313a8);
  color: #fff;
  font-weight: 800;
  font-size: 13.5px;
  text-align: center;
  box-shadow: 0 14px 30px -10px #4313a8cc;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

:focus-visible { outline: 3px solid #f5b82e; outline-offset: 2px; }

@keyframes float { 50% { transform: translateY(-8px) rotate(-2deg); } }
@keyframes hover { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-9px) rotate(3deg); } }
@keyframes arrive { from { transform: scale(.4) rotate(-20deg); opacity: 0; } }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(25deg); } }
@keyframes ping { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes shine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes sweep { 0% { transform: translateX(-100%); } 45%, 100% { transform: translateX(100%); } }
@keyframes glow { 50% { filter: drop-shadow(0 0 14px #f5b82ecc) brightness(1.08); } }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
@keyframes burst {
  0% { opacity: 1; transform: translate(0, 0) scale(.2); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(var(--s)) rotate(120deg); }
}

/* Small phones */
@media (max-width: 370px) {
  .logo { width: 112px; }
  .hero-art { height: 166px; }
  .chest { width: 160px; left: calc(50% - 44px); }
  .dragon { width: 124px; left: calc(50% - 128px); top: 26px; }
  .hero-badges { flex-wrap: nowrap; gap: 6px; }
  .hero-badges span { flex: 1 1 0; justify-content: center; gap: 4px; font-size: 11px; padding: 4px 6px 4px 4px; white-space: nowrap; }
  .hero-badges img { width: 20px; height: 20px; }
  .sim button { font-size: 12.5px; }
  .stat strong { font-size: 16px; }
  .pct { font-size: 38px; }
  .coupon-art { width: 64px; }
  .value-num { font-size: 18px; }
}

/* Tablet and desktop */
@media (min-width: 760px) {
  .shell { padding: 0 24px 32px; }
  .logo { width: 170px; }
  .event-chip { font-size: 13px; padding: 9px 16px; }
  .hero {
    display: grid;
    flex-direction: initial;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding: 36px 40px 56px;
    border-radius: 34px;
  }
  .hero h1 { max-width: none; font-size: 48px; }
  .hero-text > p { font-size: 16px; }
  .hero-art { order: 0; height: auto; aspect-ratio: 1; width: 100%; max-width: 330px; justify-self: end; margin: -20px -10px -40px 0; }
  .chest { position: static; width: 100%; }
  .k1 { top: 4%; left: 6%; }
  .k2 { top: 62%; left: -4%; }
  .k3 { top: 10%; left: auto; right: 12%; }
  .spark { width: 30px; }
  .dragon { left: -42%; top: 30%; width: 72%; }
  .finder { margin: -34px 40px 0; padding: 18px 20px; }
  .finder-row { flex-wrap: nowrap; }
  .finder input { flex: 1 1 auto; }
  .finder button[type='submit'] { flex: 0 0 auto; }
  .finder-row input, .finder button[type='submit'] { height: 58px; }
  .finder button[type='submit'] { padding: 0 26px; font-size: 15px; }
  #demoIds { grid-template-columns: repeat(6, 1fr); }
  .steps { gap: 12px; margin-top: 18px; }
  .steps > div { flex-direction: row; text-align: left; gap: 12px; padding: 14px 16px; }
  .steps img { width: 60px; height: 60px; margin: 0; }
  .steps p { font-size: 13px; }
  .steps p b { font-size: 17px; }
  .dashboard { padding-top: 26px; }
  .pet { width: 150px; margin: -24px 0 -16px; }
  .bubble { padding: 14px 18px; }
  .bubble p { font-size: 16px; }
  .stats { gap: 12px; }
  .stat { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 14px 16px; }
  .stat img { grid-row: span 2; width: 52px; height: 52px; margin: 0; }
  .stat strong { font-size: 26px; }
  .coupons { gap: 14px; margin-top: 14px; }
  .coupon { --cut: 168px; padding: 20px 20px 22px; border-radius: 26px; }
  .coupon-art { width: 130px; top: 18px; right: 6px; }
  .pct { font-size: 72px; }
  .pct small { font-size: 38px; }
  .rule { font-size: 14px; }
  .value { margin-top: 30px; }
  .value-num { font-size: 30px; }
  .meta { font-size: 13px; }
  .calendar { padding: 20px; }
  .sim { flex-direction: row; align-items: center; }
  .sim button { flex: 0 0 180px; }
  .cal-head h2 { font-size: 24px; }
  .faq-head h2 { font-size: 32px; }
  .faq-head img { width: 110px; }
  .faq-group summary { font-size: 15.5px; padding: 14px 18px; }
  .faq-group details p { margin: 0 18px 14px; font-size: 15px; }
  .support > img { width: 130px; }
  .days { grid-template-columns: repeat(15, 1fr); gap: 8px 6px; }
  .day span { font-size: 10px; min-width: 18px; line-height: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
