/* =========================================================
   GGS Navaratri — mobile-first styles
   One accent: --day-color (colour of the day, from config).
   Everything else is maroon + cream.
   ========================================================= */

:root {
  --maroon-900: #1e0409;
  --maroon-800: #2d0712;
  --maroon-700: #43101f;
  --maroon-600: #5e1a2d;
  --maroon-500: #7a2a3d;
  --clay: #8a2e2c;
  --clay-light: #a8463e;
  --cream: #fcefd4;
  --cream-2: #d9c09a;

  --day-color: #f4b41a;
  --day-ink: #2a0610;
  --day-deep: #9c5a0c;
  --day-soft: rgba(244, 180, 26, 0.35);

  --font-gu: 'Baloo Bhai 2', 'Noto Sans Gujarati', sans-serif;
  --font-en: 'Hind Vadodara', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 20px;
  --shell: 560px;
  --bar-h: 76px;

  color-scheme: dark;
}

@supports (color: color-mix(in oklab, red, blue)) {
  :root {
    --day-deep: color-mix(in oklab, var(--day-color) 58%, var(--maroon-700));
    --day-soft: color-mix(in oklab, var(--day-color) 38%, transparent);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: clip;
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.45;
  color: var(--cream);
  background-color: var(--maroon-800);
  /* bandhani knots: four dots round a centre, offset every other tile */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cg fill='%23fcefd4' fill-opacity='.06'%3E%3Ccircle cx='11' cy='7' r='1.4'/%3E%3Ccircle cx='15' cy='11' r='1.4'/%3E%3Ccircle cx='11' cy='15' r='1.4'/%3E%3Ccircle cx='7' cy='11' r='1.4'/%3E%3Ccircle cx='33' cy='29' r='1.4'/%3E%3Ccircle cx='37' cy='33' r='1.4'/%3E%3Ccircle cx='33' cy='37' r='1.4'/%3E%3Ccircle cx='29' cy='33' r='1.4'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-tap-highlight-color: transparent;
}

p, h1, h2, h3, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; }

.gu { font-family: var(--font-gu); }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--day-color);
  outline-offset: 3px;
  border-radius: 8px;
}

.i { width: 20px; height: 20px; flex: none; }

/* ---------------- Page wrapper ---------------- */

/* Full-width, so decorative overflow (the mandala) is clipped at the screen
   edge. Without this, mobile browsers widen the layout viewport and zoom out. */
.page { overflow-x: hidden; overflow-x: clip; }

/* ---------------- Toran: embroidered flaps ---------------- */

.toran {
  height: 58px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}
.toran svg { flex: none; overflow: visible; }
.toran-band { fill: var(--maroon-600); }
.toran-stitch { fill: none; stroke: var(--cream-2); stroke-width: 1; stroke-dasharray: 3 2; opacity: .7; }
.flap-a .flap-cloth { fill: var(--day-color); }
.flap-b .flap-cloth { fill: var(--maroon-500); }
.flap-stitch { fill: none; stroke-width: 1; stroke-dasharray: 2 2; }
.flap-a .flap-stitch { stroke: var(--maroon-700); }
.flap-b .flap-stitch { stroke: var(--cream-2); }
.flap-mirror { fill: var(--maroon-900); stroke: var(--cream); stroke-width: .8; }
.flap-ring { fill: none; stroke-width: 1.3; stroke-dasharray: 1.4 1.5; }
.flap-a .flap-ring { stroke: var(--maroon-700); }
.flap-b .flap-ring { stroke: var(--day-color); }
.toran .thread { stroke: var(--cream-2); stroke-width: 1; }
.toran .bead { fill: var(--cream); }
.toran .sway {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: sway 4.6s ease-in-out infinite alternate;
}
@keyframes sway {
  from { transform: rotate(-4deg); }
  to   { transform: rotate(4deg); }
}

.mg-outer { fill: var(--day-color); }
.mg-inner { fill: var(--day-deep); }
.mg-core  { fill: var(--maroon-700); }

/* Offscreen loops are paused by js/motifs.js (IntersectionObserver). */
.is-paused, .is-paused * { animation-play-state: paused !important; }

/* ---------------- Shell + top bar ---------------- */

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 16px calc(var(--bar-h) + 28px + env(safe-area-inset-bottom));
}

.demo-banner {
  margin: 4px 0 10px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px dashed var(--error);
  font-size: 13px;
  color: var(--cream);
}
.demo-banner code { font-size: 12px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0 4px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 44px; height: 44px; border-radius: 6px; }
.brand-name {
  font-family: var(--font-gu);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  letter-spacing: .04em;
}
.brand-sub { font-size: 12px; color: var(--cream-2); line-height: 1.3; }

/* ---------------- Hero ---------------- */

.hero {
  display: grid;
  grid-template-columns: 1fr 110px;
  align-items: center;
  gap: 4px;
  padding: 14px 0 4px;
}
.hero-title {
  margin-top: .12em;
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: clamp(24px, 7.6vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .04em;
}
.ht-main { display: block; }
.ht-sub {
  display: flex;
  align-items: center;
  gap: .4em;
  margin-top: .22em;
  font-size: .56em;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--day-color);
}
.orn { flex: none; width: 1.5em; height: .75em; fill: currentColor; color: var(--day-color); }
.hero-sub {
  margin-top: 8px;
  font-family: var(--font-gu);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  max-width: 30ch;
}
.hero-art { position: relative; }
.mandala {
  position: absolute;
  left: 50%; top: 50%;
  width: 190px; height: 190px;
  margin: -95px 0 0 -95px;
  opacity: .45;
  animation: spin 140s linear infinite;
  will-change: transform;
}
.mandala .m-line { fill: none; stroke: var(--cream); stroke-width: .6; opacity: .45; }
.mandala .m-stitch { fill: none; stroke: var(--cream); stroke-width: .8; stroke-dasharray: 2 2.4; opacity: .4; }
.mandala .m-petal { fill: var(--day-color); opacity: .2; }
.mandala .m-dot { fill: var(--cream); opacity: .5; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Garba couple ---------------- */

:root { --skin: #c68a5c; --hair: #1a0306; }

.dancers { position: relative; }
.scene { width: 100%; height: auto; overflow: visible; }

.scene .skin-fill { fill: var(--skin); }
.scene .hair { fill: var(--hair); }
.scene .gajra circle { fill: var(--cream); }
.scene .jhumka { fill: var(--day-color); }
.scene .arm { fill: none; stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; }
.scene .arm.skin { stroke: var(--skin); }
.scene .arm.cloth { stroke: var(--cream); stroke-width: 6.5; }
.scene .sleeve-w { stroke: var(--maroon-500); stroke-width: 7.5; stroke-linecap: round; }
.scene .bangle { stroke: var(--day-color); stroke-width: 1.8; stroke-linecap: round; }

.stk-edge { stroke: var(--maroon-900); stroke-width: 6.5; stroke-linecap: round; }
.stk { stroke: var(--day-color); stroke-width: 4; stroke-linecap: round; }
.stk-band { stroke: var(--maroon-800); stroke-width: 4; stroke-dasharray: 2 6; }

.scene .odhni { fill: var(--cream); opacity: .92; }
.scene .odhni-edge { fill: none; stroke: var(--day-color); stroke-width: 2.2; stroke-dasharray: 0 4.5; stroke-linecap: round; }
.scene .ghagra-cloth { fill: var(--day-color); }
.scene .kali { fill: none; stroke: var(--maroon-700); stroke-width: 1.2; opacity: .35; }
.scene .hem { fill: none; stroke: var(--maroon-700); stroke-width: 8; stroke-linejoin: round; }
.scene .hem-dots { fill: none; stroke: var(--cream); stroke-width: 2.4; stroke-dasharray: 0 6; stroke-linecap: round; }
.scene .choli { fill: var(--maroon-500); }
.scene .waistband { stroke: var(--cream); stroke-width: 3; stroke-dasharray: 1.5 2; }
.scene .sash { stroke: var(--cream); stroke-width: 5; stroke-linecap: round; opacity: .92; }
.scene .shoe { fill: var(--clay-light); }

.scene .leg { fill: none; stroke: var(--maroon-500); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.scene .kediyu { fill: var(--cream); }
.scene .koti { fill: var(--day-color); }
.scene .pleats { fill: none; stroke: var(--maroon-600); stroke-width: 1.2; opacity: .35; }
.scene .frill-hem { fill: none; stroke: var(--day-color); stroke-width: 5; }
.scene .frill-dots { fill: none; stroke: var(--maroon-700); stroke-width: 2; stroke-dasharray: 0 5; stroke-linecap: round; }

.scene-garbo .garbo-body { fill: var(--clay); }
.scene-garbo .garbo-holes { fill: var(--day-color); }
.scene-garbo .garbo-dots { fill: none; stroke: var(--cream); stroke-width: 1.6; stroke-dasharray: 0 4; stroke-linecap: round; }
.scene-garbo .glow { fill: var(--day-color); opacity: .22; }
.scene-garbo .garbo-flame {
  fill: var(--day-color);
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: flicker 2.3s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { transform: scale(1, 1) skewX(0deg); }
  22% { transform: scale(.94, 1.1) skewX(-3deg); }
  48% { transform: scale(1.04, .94) skewX(2deg); }
  71% { transform: scale(.97, 1.05) skewX(-1deg); }
}

.clash-spark { fill: var(--cream); opacity: 0; }

/* One 1.6s beat: two quick taps, then a pause, like the dandiya rhythm. */
.dancer { animation: bob .8s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-3px); } }
.ghagra, .frill {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: twirl 1.6s ease-in-out infinite alternate;
}
.frill { animation-direction: alternate-reverse; }
@keyframes twirl {
  from { transform: skewX(5deg); }
  to   { transform: skewX(-5deg); }
}
.arm-strike { transform-box: fill-box; animation: 1.6s ease-in-out infinite; }
.arm-strike-w { transform-origin: 0 100%; animation-name: strike-w; }
.arm-strike-m { transform-origin: 100% 100%; animation-name: strike-m; }
@keyframes strike-w {
  0%, 24%, 48%, 100% { transform: rotate(-8deg); }
  12%, 36% { transform: rotate(0deg); }
}
@keyframes strike-m {
  0%, 24%, 48%, 100% { transform: rotate(8deg); }
  12%, 36% { transform: rotate(0deg); }
}
.scene > .clash-spark {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: spark 1.6s ease-out infinite;
}
@keyframes spark {
  0%, 10%, 18%, 34%, 42%, 100% { opacity: 0; transform: scale(.3); }
  12%, 36% { opacity: 1; transform: scale(1.15); }
}

/* Add-to-cart: dandiyas clash over the product picture (js/motifs.js). */
.clash {
  position: absolute;
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  overflow: visible;
  pointer-events: none;
}

/* ---------------- Progress diyas ---------------- */

.diyas { margin: 14px -4px 6px; }
.diyas ol {
  --p: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.diyas ol::before,
.diyas ol::after {
  content: '';
  position: absolute;
  left: 8.33%;
  top: 29px;
  height: 2px;
}
.diyas ol::before {
  right: 8.33%;
  background-image: linear-gradient(90deg, var(--maroon-500) 50%, transparent 0);
  background-size: 6px 2px;
}
.diyas ol::after {
  width: calc(83.33% * var(--p));
  background: var(--day-color);
  transition: width .6s ease;
}
.diya-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.diya-step svg { width: 44px; height: 44px; overflow: visible; }
.diya-bowl { fill: var(--maroon-500); }
.diya-rim { fill: none; stroke: var(--cream-2); stroke-width: 1.4; stroke-dasharray: 0 3.2; stroke-linecap: round; opacity: .8; }
.diya-wick { stroke: var(--cream-2); stroke-width: 1.6; stroke-linecap: round; }
.diya-flame {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scale(0);
  transition: transform .5s cubic-bezier(.3, 1.7, .5, 1);
}
.diya-flame .outer { fill: var(--day-color); }
.diya-flame .inner { fill: var(--cream); }
.diya-glow { fill: var(--day-color); opacity: 0; transition: opacity .5s; }
.diya-label {
  margin-top: 2px;
  font-family: var(--font-gu);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.1;
  color: var(--cream-2);
}

.diya-step.is-lit .diya-flame { transform: scale(1); }
.diya-step.is-lit .diya-bowl { fill: var(--clay); }
.diya-step.is-current .diya-glow { opacity: .22; }
.diya-step.is-current .diya-flame .outer { animation: diya-flicker 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.diya-step.is-current .diya-label { color: var(--cream); font-weight: 700; }
@keyframes diya-flicker {
  0%, 100% { transform: scale(1, 1); }
  35% { transform: scale(.92, 1.1); }
  65% { transform: scale(1.05, .94); }
}

/* ---------------- Steps ---------------- */

.step { padding-top: 14px; }
.step-head { margin-bottom: 16px; }
.step-head h2 {
  text-wrap: balance;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
}
.step-head p { margin-top: 2px; font-size: 14px; color: var(--cream-2); }

.welcome { display: grid; gap: 14px; font-size: 16px; line-height: 1.5; }
.welcome ul { display: grid; gap: 4px; padding-left: 20px; list-style: disc; }
.welcome a { color: var(--day-color); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.status { font-size: 14px; color: var(--cream-2); padding: 8px 0; }
.status:empty { display: none; }
.status.is-error { color: var(--cream); }

/* ---------------- Product cards ---------------- */

.products { display: grid; gap: 14px; }

.product {
  position: relative;
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 4px 14px;
  padding: 12px;
  background: var(--maroon-700);
  border: 1.5px solid var(--maroon-600);
  border-radius: var(--radius);
  transition: border-color .25s;
}
.product.in-cart { border-color: var(--day-soft); }

.product-art {
  position: relative;
  width: 104px; height: 104px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background-color: var(--maroon-800);
  background-image: radial-gradient(var(--maroon-600) 1.2px, transparent 1.4px);
  background-size: 9px 9px;
}
.product-art svg { width: 90px; height: 90px; }

.product-body { display: flex; flex-direction: column; min-width: 0; }
.product-gu {
  font-family: var(--font-gu);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.15;
}
.product-blurb { font-size: 12.5px; color: var(--cream-2); opacity: .8; line-height: 1.35; margin-top: 2px; }

.product-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
.price-wrap { display: flex; flex-direction: column; gap: 2px; }
.price-note { font-size: 12px; color: var(--cream-2); line-height: 1; }
.price {
  font-family: var(--font-gu);
  font-weight: 700;
  font-size: 21px;
  line-height: 1;
  color: var(--day-color);
}

.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  padding: 0 16px 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--day-color);
  color: var(--day-ink);
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 3px 0 var(--day-deep);
}
.add-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--day-deep); }
.add-btn .i { width: 18px; height: 18px; }

.stepper {
  display: inline-flex;
  align-items: center;
  height: 44px;
  border-radius: 999px;
  background: var(--maroon-800);
  box-shadow: inset 0 0 0 1.5px var(--day-soft);
}
.stepper button {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--day-color);
}
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper button .i { width: 18px; height: 18px; }
.qty {
  min-width: 22px;
  text-align: center;
  font-family: var(--font-gu);
  font-weight: 700;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}

.product[data-qty="0"] .stepper { display: none; }
.product:not([data-qty="0"]) .add-btn { display: none; }

/* sizes (tee) */
.sizes {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1.5px dashed var(--maroon-600);
}
.sizes-label { font-size: 12.5px; color: var(--cream-2); margin-right: 4px; }
.size {
  position: relative;
  min-width: 44px;
  height: 36px;
  padding: 0 10px;
  border: 1.5px solid var(--maroon-500);
  border-radius: 10px;
  background: none;
  font-weight: 600;
  font-size: 14px;
}
.size[aria-pressed="true"] {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--maroon-800);
}
.size-count {
  position: absolute;
  top: -8px; right: -7px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--day-color);
  color: var(--day-ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
}
.size-count:empty { display: none; }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--day-color);
  color: var(--day-ink);
  box-shadow: 0 3px 0 var(--day-deep);
}
.btn-primary:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--day-deep); }
.btn:disabled {
  background: none;
  color: var(--cream-2);
  box-shadow: inset 0 0 0 1.5px var(--maroon-500);
  opacity: .7;
  cursor: not-allowed;
}

/* ---------------- Action bar ---------------- */

.actionbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  background: var(--maroon-900);
  border-top: 2px dotted var(--day-soft);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.actionbar-inner {
  max-width: calc(var(--shell) - 32px);
  min-height: calc(var(--bar-h) - 20px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bag[hidden] { display: none; }
#nextBtn { margin-left: auto; }
.bag { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; }
.bag-icon { width: 44px; height: 44px; flex: none; overflow: visible; }
.bag-icon .stick line { stroke: var(--day-color); stroke-width: 5; stroke-linecap: round; }
.bag-icon .stick .band { stroke: var(--maroon-900); stroke-dasharray: 2.5 7; stroke-linecap: butt; }
.bag-count {
  position: absolute;
  left: 28px; top: -6px;
  min-width: 22px; height: 22px;
  padding: 0 5px;
  border-radius: 11px;
  background: var(--cream);
  color: var(--maroon-800);
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  transition: background-color .2s, color .2s;
}
.bag-count[data-empty] { background: var(--maroon-600); color: var(--cream-2); }
.bag-total {
  font-family: var(--font-gu);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.bag-items { font-size: 12.5px; color: var(--cream-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- Forms (steps 2, 4) ---------------- */

:root { --error: #ffb199; }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > label,
.field > .label { font-size: 14px; font-weight: 600; }
.field input:not([type="file"]),
.field textarea {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--maroon-500);
  border-radius: 14px;
  background: var(--maroon-900);
  font-size: 17px; /* ≥16px stops iOS zooming into the field */
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea {
  height: auto;
  min-height: 92px;
  padding: 12px 16px;
  resize: vertical;
  font-family: inherit;
  color: inherit;
}
.optional { font-weight: 400; color: var(--cream-2); }
.field input::placeholder { color: var(--cream-2); opacity: .45; }
.field textarea:focus,
.field input:focus { border-color: var(--day-color); box-shadow: 0 0 0 3px var(--day-soft); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field-hint { font-size: 12.5px; color: var(--cream-2); line-height: 1.4; }
.field-error {
  display: flex;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--error);
}
.field-error:empty { display: none; }
.field-error::before {
  content: '';
  flex: none;
  width: 16px; height: 16px;
  margin-top: 1px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

.input-prefix { position: relative; }
.input-prefix span {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: var(--cream-2);
  pointer-events: none;
}
.field .input-prefix input { padding-left: 54px; }

.utr-wrap { position: relative; }
.field .utr-wrap input {
  padding-right: 64px;
  font-size: 19px;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}
.utr-count {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 600;
  color: var(--cream-2);
  font-variant-numeric: tabular-nums;
}
.utr-count.is-done { color: var(--day-color); }

/* screenshot picker */
.dropzone {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 22px 16px 20px;
  border: 2px dashed var(--day-soft);
  border-radius: var(--radius);
  background: var(--maroon-700);
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--day-color); }
.field:has(#f-shot:focus-visible) .dropzone { outline: 3px solid var(--day-color); outline-offset: 3px; }
.dropzone.is-busy { opacity: .7; pointer-events: none; }
.dz-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--day-color);
  color: var(--day-ink);
}
.dz-icon .i { width: 24px; height: 24px; }
.dz-title { font-weight: 700; font-size: 16px; }
.dz-hint { font-size: 12.5px; color: var(--cream-2); }

.shot {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--maroon-700);
  border: 1.5px solid var(--day-soft);
}
.shot img {
  width: 64px; height: 112px;
  flex: none;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  background: var(--cream);
}
.shot-info { display: grid; gap: 2px; min-width: 0; }
.shot-title { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.shot-title .i { width: 18px; height: 18px; color: var(--day-color); }
.shot-meta { font-size: 12.5px; color: var(--cream-2); }

.linkbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--day-color);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
}
.linkbtn .i { width: 18px; height: 18px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--cream);
  box-shadow: inset 0 0 0 1.5px var(--maroon-500);
}

/* ---------------- Pay (step 3) ---------------- */

.paycard {
  display: grid;
  justify-items: center;
  padding: 22px 18px 12px;
  border-radius: var(--radius);
  background: var(--maroon-700);
  border: 1.5px solid var(--maroon-600);
  text-align: center;
}
.pay-label { font-size: 13px; color: var(--cream-2); }
.pay-amount {
  font-family: var(--font-gu);
  font-weight: 800;
  font-size: 46px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.pay-ref { margin-top: 2px; font-size: 14px; color: var(--cream-2); }
.pay-ref strong {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 10px;
  border: 1.5px dashed var(--day-soft);
  border-radius: 8px;
  color: var(--cream);
  letter-spacing: .06em;
}
.pay-mobile, .pay-qr { width: 100%; margin-top: 18px; }
.btn-block { width: 100%; }
.pay-apps { margin-top: 8px; font-size: 12.5px; color: var(--cream-2); }
.qr-frame {
  width: min(232px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 10px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #fff;
  color: var(--maroon-800);
  font-size: 13px;
  box-shadow: 0 0 0 4px var(--maroon-800), 0 0 0 6px var(--day-soft);
}
.qr-frame svg, .qr-frame img { width: 100%; height: 100%; object-fit: contain; }

.upi-id {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
  padding: 6px 6px 6px 14px;
  border-radius: 14px;
  background: var(--maroon-900);
  text-align: left;
}
.upi-id-label { font-size: 12px; color: var(--cream-2); }
.upi-id code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 15px;
}
.paycard .linkbtn { margin-top: 6px; }

.pay-items {
  width: 100%;
  margin-top: 6px;
  border-top: 1.5px dashed var(--maroon-600);
  text-align: left;
}
.pay-items summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--cream-2);
  cursor: pointer;
}
.pay-items ul { display: grid; gap: 6px; padding-bottom: 10px; font-size: 14px; }
.pay-items li, .ticket-items li { display: flex; justify-content: space-between; gap: 12px; }

.howto {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 0 4px;
  counter-reset: how;
  font-size: 14px;
  color: var(--cream-2);
}
.howto li { display: flex; gap: 12px; counter-increment: how; }
.howto li::before {
  content: counter(how, gujarati);
  flex: none;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--day-soft);
  color: var(--day-color);
  font-family: var(--font-gu);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
}
.howto strong { color: var(--cream); }

/* ---------------- Confirmation (step 5) ---------------- */

.step-done .step-head { text-align: center; }
.dancers-lg { width: 230px; margin: -6px auto 4px; }
.step-done .step-head h2 { font-size: 30px; }
.step-done .step-head p { max-width: 34ch; margin: 6px auto 0; }

.ticket {
  position: relative;
  margin-top: 22px;
  border-radius: 18px;
  background: var(--cream);
  color: var(--maroon-800);
  overflow: hidden;
}
.ticket-bunting { display: block; width: 100%; height: 14px; }
.ticket-main { padding: 14px 20px 18px; }
.ticket-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ticket-kicker { font-weight: 800; font-size: 20px; line-height: 1.1; color: var(--maroon-700); }
.ticket-sub { font-size: 12px; color: var(--maroon-500); }
.ticket-label { margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--maroon-500); }
.ticket-id {
  font-family: var(--font-gu);
  font-weight: 800;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: .03em;
  color: var(--maroon-800);
}
.ticket-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-top: 14px;
}
.ticket-meta dt { font-size: 11.5px; color: var(--maroon-500); }
.ticket-meta dd { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }

/* perforation: dashed line with half-circle bites at both edges */
.ticket-tear {
  position: relative;
  height: 24px;
  margin: 0 18px;
  background: linear-gradient(90deg, var(--maroon-500) 50%, transparent 0) center / 10px 2px repeat-x;
}
.ticket-tear::before,
.ticket-tear::after {
  content: '';
  position: absolute;
  top: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--maroon-800);
}
.ticket-tear::before { left: -30px; }
.ticket-tear::after { right: -30px; }

.ticket-stub { padding: 8px 20px 20px; }
.ticket-items { display: grid; gap: 6px; font-size: 14.5px; }
.ticket-items li span:first-child { font-weight: 600; }
.ticket-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1.5px solid var(--maroon-800);
  font-weight: 600;
}
.ticket-total strong { font-family: var(--font-gu); font-size: 26px; line-height: 1; }

.done-actions { display: grid; gap: 12px; margin-top: 20px; }
.done-note { text-align: center; font-size: 13.5px; color: var(--cream-2); }

.btn-ghost {
  background: none;
  color: var(--cream);
  box-shadow: inset 0 0 0 1.5px var(--cream-2);
}

.petal-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: hidden;
  pointer-events: none;
}
.petal { position: absolute; top: 0; width: 14px; height: 18px; will-change: transform; }

/* action-bar states */
.btn-quiet {
  background: none;
  color: var(--cream);
  box-shadow: inset 0 0 0 1.5px var(--cream-2);
}
.btn-quiet:active:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--cream-2); }

/* ---------------- Loading placeholders, help ---------------- */

.product.skeleton { pointer-events: none; }
.skeleton .product-art { background: var(--maroon-800); }
.skeleton .product-body { gap: 10px; padding-top: 6px; }
.skeleton .product-body span {
  display: block;
  height: 12px;
  width: 70%;
  border-radius: 6px;
  background: var(--maroon-600);
  animation: pulse 1.2s ease-in-out infinite alternate;
}
.skeleton .product-body span:nth-child(2) { width: 50%; }
.skeleton .product-body span:nth-child(3) { width: 34%; height: 20px; margin-top: auto; }
@keyframes pulse { to { opacity: .45; } }

.help { margin-top: 28px; text-align: center; font-size: 13.5px; color: var(--cream-2); }
.help a { color: var(--day-color); font-weight: 600; text-underline-offset: 3px; }

/* ---------------- Bag summary (laptop sidebar) ---------------- */

.summary { display: none; }
.summary-card {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--maroon-700);
  border: 1.5px solid var(--maroon-600);
}
.summary-head h2 { font-size: 24px; font-weight: 800; line-height: 1.1; }
.summary-head p { font-size: 13px; color: var(--cream-2); }
.summary-items { display: grid; gap: 12px; margin-top: 16px; }
.summary-items li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; }
.summary-items svg {
  width: 44px; height: 44px;
  padding: 4px;
  border-radius: 10px;
  background: var(--maroon-800);
}
.summary-items .gu { display: block; font-weight: 700; font-size: 15px; line-height: 1.2; }
.summary-items small { font-size: 12px; color: var(--cream-2); }
.summary-items b { font-weight: 600; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.summary.is-early .summary-head,
.summary.is-early .summary-items,
.summary.is-early .summary-empty { display: none; }
.summary.is-early .actionbar-inner { margin-top: 0; padding-top: 0; border-top: 0; }
.summary-empty { margin-top: 12px; font-size: 13.5px; color: var(--cream-2); }
.summary-empty strong { color: var(--cream); }

/* the action bar's contents are moved in here on laptops (js/app.js) */
.summary .actionbar-inner {
  flex-wrap: wrap;
  min-height: 0;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1.5px dashed var(--maroon-600);
}
.summary .bag { flex: 1 1 100%; order: -1; margin-bottom: 4px; }
.summary .back-btn { width: 52px; height: 52px; }
.summary #nextBtn { flex: 1; }

/* ---------------- Tablet ---------------- */

@media (min-width: 700px) {
  :root { --shell: 760px; }
  .hero { grid-template-columns: 1fr 240px; padding-top: 24px; }
  .mandala { width: 300px; height: 300px; margin: -150px 0 0 -150px; }
  .hero-sub { font-size: 22px; }
  .products { grid-template-columns: 1fr 1fr; align-items: start; }
  .step-head h2 { font-size: 32px; }
  .dancers-lg { width: 300px; }
}

/* ---------------- Laptop ---------------- */

@media (min-width: 1024px) {
  :root { --shell: 1180px; }
  .shell { padding-bottom: 56px; }
  .actionbar { display: none; }

  .hero { grid-template-columns: 1fr 320px; gap: 48px; padding: 8px 0 0; }
  .hero-title { font-size: 72px; }
  .hero-sub { font-size: 26px; max-width: 36ch; margin-top: 14px; }
  .mandala { width: 350px; height: 350px; margin: -175px 0 0 -175px; }

  .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: start;
  }
  .layout.is-done { grid-template-columns: minmax(0, 1fr); }
  .layout.is-done .summary { display: none; }
  .summary { display: block; position: sticky; top: 20px; margin-top: 24px; }

  .step-done { max-width: 560px; margin: 0 auto; }
  .form-2col { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  #proofForm { max-width: 560px; }

  .paycard {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 32px;
    justify-items: start;
    align-items: start;
    padding: 28px;
    text-align: left;
  }
  .paycard > * { grid-column: 1; }
  .paycard .pay-qr { grid-column: 2; grid-row: 1 / span 8; width: 244px; margin-top: 0; text-align: center; }
  .howto { max-width: 560px; }

  .product { transition: border-color .2s, transform .2s; }
  .product:hover { border-color: var(--maroon-500); transform: translateY(-2px); }
}

/* ---------------- Reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}
