/* Ujjain Market — 🎨 Studio (paid creative makers). Shared styles.
   Look borrowed from games/games.css "FX THEME" (festive glossy 3D). Mobile-first (375px). */
:root {
  --saf: #ff8a00; --saf2: #ffc21a; --blue: #1d3fbf; --blue2: #3f6dff; --emr: #0a9a6a; --emr2: #2fd49a; --mag: #d6247a; --mag2: #ff5fa8;
  --ink: #241433; --mut: #6e5a72; --line: #efd9c2;
  --c1: #d6247a; --c2: #ff5fa8; --c3: #8f0f4e; /* per-maker colour, overridden below */
}
body[data-mk="card"]    { --c1: #d6247a; --c2: #ff5fa8; --c3: #8f0f4e; }
body[data-mk="status"]  { --c1: #6d28d9; --c2: #a855f7; --c3: #3b0d7a; }
body[data-mk="shop-ad"] { --c1: #ff5a00; --c2: #ffb21a; --c3: #a33d00; }
body[data-mk="reel"]    { --c1: #0a8f6a; --c2: #2fd49a; --c3: #056445; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); overflow-x: hidden;
  font: 16px/1.5 "Baloo 2", system-ui, -apple-system, "Noto Sans Devanagari", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 1px 1px, rgba(214, 36, 122, .07) 1.2px, transparent 1.6px) 0 0 / 22px 22px,
    linear-gradient(180deg, #fff3df 0%, #fff0ea 45%, #f7f0ff 100%);
  min-height: 100vh;
}
img, canvas, video { max-width: 100%; }
a { color: #b3124f; }
[hidden] { display: none !important; }

/* top bar */
.stop { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px; background: rgba(255, 255, 255, .95); box-shadow: 0 2px 0 rgba(255, 138, 0, .25), 0 6px 18px rgba(80, 20, 60, .08); }
.stop::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: linear-gradient(90deg, var(--saf), var(--mag) 35%, var(--blue2) 70%, var(--emr2)); }
.stop a { text-decoration: none; font-weight: 800; white-space: nowrap; }
.stop__brand { color: #b3124f; font-size: 1.05rem; }
.stop__link { font-size: .9rem; padding: 5px 12px; border-radius: 999px; color: var(--ink);
  background: linear-gradient(#fff, #fbeedd); box-shadow: inset 0 0 0 1.5px #f1d8b8, 0 2px 0 #e7c79e; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 14px 12px 60px; }

/* hero */
.shero { position: relative; overflow: hidden; isolation: isolate; color: #fff; border-radius: 22px; padding: 18px 16px 16px; margin: 6px 0 14px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 230, 120, .55) 0 13%, transparent 14%),
    repeating-conic-gradient(from 0deg at 50% 130%, rgba(255,255,255,.08) 0 6deg, transparent 6deg 12deg),
    linear-gradient(135deg, var(--c1) 0%, var(--c2) 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -6px 0 rgba(0,0,0,.18), 0 14px 30px -8px color-mix(in srgb, var(--c1) 60%, transparent); }
.shero::before { content: ""; position: absolute; right: -50px; top: -50px; width: 180px; height: 180px; border-radius: 50%; z-index: -1;
  background: repeating-radial-gradient(circle, rgba(255,255,255,.16) 0 6px, transparent 6px 16px); }
.shero h1 { margin: 0; font-size: 1.65rem; line-height: 1.15; text-shadow: 0 2px 0 var(--c3), 0 5px 10px rgba(0,0,0,.3); }
.shero p { margin: 6px 0 0; font-size: .98rem; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.shero__emoji { font-size: 2.4rem; line-height: 1; filter: drop-shadow(0 4px 0 rgba(0,0,0,.18)); }
.shero__price { display: inline-block; margin-top: 8px; padding: 2px 12px; border-radius: 999px; font-weight: 800; font-size: .9rem;
  background: rgba(255,255,255,.22); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }

/* maker layout */
.mk { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
@media (min-width: 900px) {
  .mk { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
  .pvcol { position: sticky; top: 64px; }
}
.pvcol { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pv { background: linear-gradient(#2a1838, #140a1f); border-radius: 20px; padding: 10px; display: flex; justify-content: center; align-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 24px -8px rgba(40,10,50,.45); min-width: 0; }
.pv canvas, .pv video { display: block; width: auto; height: auto; max-width: 100%; max-height: 66vh; border-radius: 10px; background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.pv__tag { font-size: .8rem; color: var(--mut); text-align: center; margin: -4px 0 0; }

.ctl { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.box { background: linear-gradient(#fff, #fffaf4); border-radius: 18px; padding: 14px; min-width: 0;
  box-shadow: inset 0 0 0 1.5px #f3dcc2, 0 6px 16px rgba(120,50,20,.08); }
.box h2 { margin: 0 0 10px; font-size: 1.08rem; color: var(--c3); }
.box h2 small { color: var(--mut); font-weight: 600; font-size: .8rem; }

/* fields */
.fld { display: flex; flex-direction: column; gap: 3px; margin: 0 0 10px; font-weight: 700; font-size: .95rem; min-width: 0; }
.fld small { font-weight: 500; color: var(--mut); }
.row2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; }
input[type=text], input[type=tel], input[type=number], input:not([type]), textarea, select {
  font: inherit; font-size: 16px; width: 100%; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1.5px solid #efd3b3; background: #fff; color: var(--ink);
  box-shadow: inset 0 2px 3px rgba(80,30,0,.06); }
textarea { resize: vertical; min-height: 76px; line-height: 1.4; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--c2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c2) 30%, transparent); }
input[type=range] { width: 100%; accent-color: var(--c1); }
input[type=file] { font-size: 14px; max-width: 100%; }
.file { position: relative; display: block; }
.file input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }

/* template chips */
.tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px; }
.tpl { font: inherit; font-weight: 800; font-size: .86rem; line-height: 1.15; color: #fff; border: 0; border-radius: 14px; padding: 10px 6px 9px; cursor: pointer;
  background: var(--tg, linear-gradient(135deg, var(--c1), var(--c2))); text-shadow: 0 1px 2px rgba(0,0,0,.45); min-height: 62px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -3px 0 rgba(0,0,0,.18), 0 3px 0 rgba(0,0,0,.18); transition: transform .12s; overflow: hidden; }
.tpl b { display: block; font-size: 1.4rem; line-height: 1.1; margin-bottom: 2px; text-shadow: none; }
.tpl[aria-pressed="true"] { outline: 3px solid #ffd34d; outline-offset: 1px; transform: translateY(-2px); box-shadow: 0 0 0 5px rgba(255, 211, 77, .35), 0 5px 10px rgba(0,0,0,.2); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { font: inherit; font-weight: 800; font-size: .9rem; border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer; color: var(--ink);
  background: linear-gradient(#fff, #f6e6d2); box-shadow: inset 0 0 0 1.5px #edd3b6, 0 2px 0 #e2c29b; }
.seg button[aria-pressed="true"] { color: #fff; background: linear-gradient(var(--c2), var(--c1)); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 3px 0 var(--c3); text-shadow: 0 1px 1px rgba(0,0,0,.3); }

/* glossy buttons */
.sbtn { --b1: var(--c2); --b2: var(--c1); --b3: var(--c3);
  font: inherit; font-weight: 800; font-size: 1.02rem; line-height: 1.2; color: #fff; text-decoration: none; text-align: center; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 50px; padding: 11px 16px; border: 0; border-radius: 16px;
  background: radial-gradient(120% 70% at 50% 0%, rgba(255,255,255,.35), transparent 55%), linear-gradient(var(--b1), var(--b2));
  text-shadow: 0 1px 1px rgba(0,0,0,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -3px 0 rgba(0,0,0,.15), 0 4px 0 var(--b3), 0 8px 14px -4px rgba(0,0,0,.3);
  transition: transform .1s ease, box-shadow .1s ease, filter .12s; }
.sbtn:hover { filter: brightness(1.05); }
.sbtn:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 1px 0 var(--b3), 0 2px 4px rgba(0,0,0,.2); }
.sbtn:disabled { opacity: .55; cursor: wait; transform: none; }
.sbtn--dl { --b1: #34d399; --b2: #0a9a6a; --b3: #067048; }
.sbtn--share { --b1: #5b8cff; --b2: #1d3fbf; --b3: #102a85; }
.sbtn--unlock { --b1: #ffd34d; --b2: #ff8a00; --b3: #b35a00; color: #3a1500; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.sbtn--pay { --b1: #3fe07f; --b2: #18a957; --b3: #0f7a3c; }
.sbtn--dark { --b1: #3a2457; --b2: #1a0f2e; --b3: #0a0514; color: #ffd56a; }
.sbtn--ghost { color: var(--ink); text-shadow: none; background: linear-gradient(#fff, #f6e6d2); box-shadow: inset 0 0 0 1.5px #edd3b6, 0 3px 0 #e2c29b; }
.sbtn--sm { min-height: 40px; font-size: .92rem; padding: 7px 12px; border-radius: 12px; width: auto; }
.acts { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; }
.acts .two { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; }
.note { font-size: .82rem; color: var(--mut); margin: 0; }
.msg { min-height: 1.2em; margin: 0; font-size: .9rem; font-weight: 700; color: #b00020; }
.msg.ok { color: #0a7a4a; }
.badge-ok { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; font-weight: 800; color: #05603f;
  background: linear-gradient(#e9fff4, #c9f5df); box-shadow: inset 0 0 0 1.5px #8fe0b9; }
.um-unlock { display: flex; flex-direction: column; gap: 6px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0,0,0,.2); }
.prods { display: flex; flex-direction: column; gap: 8px; }
.prod { display: grid; grid-template-columns: 48px minmax(0,1fr) 92px; gap: 6px; align-items: center; }
.prod img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; }
.toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 9999; max-width: calc(100vw - 24px);
  background: #1a0f2e; color: #fff; font-weight: 700; padding: 10px 16px; border-radius: 14px; box-shadow: 0 10px 24px rgba(0,0,0,.3); font-size: .95rem; text-align: center; }

/* unlock modal */
.um-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; background: rgba(20, 6, 30, .55); padding: 0; }
@media (min-width: 600px) { .um-modal { align-items: center; padding: 16px; } }
.um-box { position: relative; width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto; overflow-x: hidden; background: linear-gradient(#fff, #fff8ef);
  border-radius: 22px 22px 0 0; padding: 18px 16px 20px; box-shadow: inset 0 4px 0 var(--saf), 0 20px 50px rgba(40,0,40,.35); }
@media (min-width: 600px) { .um-box { border-radius: 22px; } }
.um-box h3 { margin: 0 34px 4px 0; font-size: 1.2rem; color: #8e1450; }
.um-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; font-size: 1.2rem; cursor: pointer;
  background: linear-gradient(#fff, #f3e3cf); box-shadow: inset 0 1px 0 #fff, 0 2px 0 #d2b28a; }
.um-box .fld { margin-bottom: 8px; }
.um-step { display: flex; flex-direction: column; gap: 10px; }
.um-amt { font-size: 2rem; font-weight: 800; color: #0a7a4a; line-height: 1; }
.um-oid { font-weight: 800; letter-spacing: .03em; }
.um-qr { display: block; margin: 0 auto; width: 200px; height: 200px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1.5px #efd3b3; }
.um-upi { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #fff3e2;
  font-weight: 800; word-break: break-all; }
.um-warn { font-size: .82rem; color: #7a4b00; background: #fff4d6; border-radius: 10px; padding: 8px 10px; margin: 0; }

/* hub tiles */
.tiles { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; perspective: 1200px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.tile { --c1: #d6247a; --c2: #ff5fa8; --c3: #8f0f4e; position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 6px;
  color: #fff; text-decoration: none; border-radius: 22px; padding: 18px 16px 16px; min-height: 170px;
  background: radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,.28), transparent 55%), radial-gradient(circle at 0% 100%, var(--c2) 0, transparent 60%), linear-gradient(150deg, var(--c3), var(--c1));
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.45), inset 0 -5px 0 rgba(0,0,0,.18), 0 10px 22px -6px rgba(40,10,50,.45);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.tile::before { content: ""; position: absolute; right: -40px; top: -40px; width: 170px; height: 170px; border-radius: 50%; z-index: -1;
  background: repeating-radial-gradient(circle, rgba(255,255,255,.14) 0 6px, transparent 6px 16px); }
.tile[data-mk="status"]  { --c1: #6d28d9; --c2: #c084fc; --c3: #3b0d7a; }
.tile[data-mk="shop-ad"] { --c1: #ff5a00; --c2: #ffc21a; --c3: #a33d00; }
.tile[data-mk="reel"]    { --c1: #0a8f6a; --c2: #49e3b4; --c3: #045040; }
@media (hover: hover) { .tile:hover { transform: rotateX(4deg) rotateY(-4deg) translateY(-5px); } }
.tile:active { transform: scale(.985); }
.tile__emoji { font-size: 2.8rem; line-height: 1; filter: drop-shadow(0 4px 0 rgba(0,0,0,.18)) drop-shadow(0 8px 8px rgba(0,0,0,.25)); }
.tile__title { font-size: 1.4rem; font-weight: 800; line-height: 1.15; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.tile__line { font-size: .95rem; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.tile__foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-weight: 800; font-size: .85rem; background: rgba(255,255,255,.22); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.pill--go { background: linear-gradient(#fff, #fff1df); color: var(--c3); text-shadow: none; box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.faq { margin-top: 18px; }
.faq h2 { font-size: 1.15rem; color: #8e1450; }
.faq ul { padding-left: 20px; margin: 0; color: var(--mut); }

@media (prefers-reduced-motion: reduce) { .tile, .tile:hover, .sbtn, .tpl { transition: none !important; transform: none !important; } }
