:root {
  --bg: #0b0710; --ink: #fff7e8; --muted: #c4b8a6; --dim: #8d8273; --gold: #ffb43a; --gold2: #ff7a1a;
  --line: rgba(255, 196, 110, .2); --panel: #150f19; --field: #1f1823; --fieldline: #3a2d3c;
  --goldgrad: linear-gradient(135deg, #ffe08a 0%, #ffb43a 45%, #ff7a1a 100%);
  --font: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif; --title: "Yatra One", "Mukta", serif;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; color: var(--ink); font-family: var(--font); overflow: hidden; overscroll-behavior: none; }
body { background:
  radial-gradient(120% 60% at 50% 115%, rgba(150, 52, 8, .55) 0%, rgba(150, 52, 8, 0) 60%),
  radial-gradient(90% 50% at 15% -5%, rgba(110, 30, 90, .45) 0%, rgba(110, 30, 90, 0) 60%),
  radial-gradient(90% 50% at 95% 0%, rgba(60, 25, 110, .45) 0%, rgba(60, 25, 110, 0) 60%), var(--bg); }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; white-space: nowrap; }
.ic { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
#map { position: fixed; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; }

/* top */
.toran { position: fixed; top: env(safe-area-inset-top); left: 0; right: 0; z-index: 4; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5)); }
#top { position: fixed; top: 0; left: 0; right: 0; padding: calc(env(safe-area-inset-top) + 44px) 16px 30px; text-align: center; pointer-events: none;
  background: linear-gradient(rgba(11, 7, 16, .95) 45%, rgba(11, 7, 16, 0)); }
.gold-text { background: var(--goldgrad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .t { display: block; font-family: var(--title); font-size: clamp(28px, 7.6vw, 40px); line-height: 1.05;
  background: var(--goldgrad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(255, 140, 30, .45)); }
.brand .h { display: block; font-size: 15px; color: var(--muted); margin-top: 2px; letter-spacing: .03em; }
.count { margin-top: 10px; font-size: 14px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 180, 58, .08); border: 1px solid var(--line); }
.count b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.count .dot { width: 7px; height: 7px; border-radius: 50%; background: #ffb43a; box-shadow: 0 0 10px #ff9a2a; animation: pulse 1.6s ease-in-out infinite; }

/* bottom bar */
#bar { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center;
  padding: 30px 12px calc(env(safe-area-inset-bottom) + 28px); background: linear-gradient(rgba(11, 7, 16, 0), rgba(11, 7, 16, .96) 40%); max-width: 520px; margin: 0 auto; }
.cta { display: inline-flex; align-items: center; gap: 9px; background: var(--goldgrad); color: #2a1100; font-weight: 800; font-size: 17px; padding: 15px 22px; border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255, 230, 170, .55) inset, 0 10px 34px rgba(255, 120, 20, .5); animation: breathe 2.6s ease-in-out infinite; }
.cta .ic { width: 24px; height: 24px; color: #7a2e00; }
.cta:active, .btn:active, .tab:active { transform: scale(.97); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 4px; }
.tab .ic { width: 22px; height: 22px; color: #ffcf7a; }
@keyframes breathe { 50% { box-shadow: 0 0 0 1px rgba(255, 230, 170, .55) inset, 0 10px 48px rgba(255, 120, 20, .8); } }
#foot { position: fixed; bottom: calc(env(safe-area-inset-bottom) + 6px); left: 0; right: 0; text-align: center; font-size: 11px; color: #6f6458; pointer-events: none; }
#foot a { color: #9a8e7e; pointer-events: auto; }

.ticker { position: fixed; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 112px); margin: 0 auto; max-width: 420px; display: flex; gap: 10px; align-items: flex-start;
  background: rgba(26, 18, 30, .88); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; font-size: 14px; line-height: 1.35;
  backdrop-filter: blur(8px); transition: opacity .5s, transform .5s; }
.ticker .ic { width: 22px; height: 22px; color: #c8662d; margin-top: 1px; }
.ticker.fade { opacity: 0; transform: translateY(8px); }
.ticker .who { font-weight: 800; color: #ffd27a; }
.ticker .where { color: var(--muted); font-size: 12.5px; }

/* sheets */
.sheet { position: fixed; inset: 0; background: rgba(5, 3, 8, .6); display: flex; align-items: flex-end; justify-content: center; z-index: 10; animation: fadeIn .25s; backdrop-filter: blur(2px); }
.sheet .panel { position: relative; width: 100%; max-width: 480px; max-height: 92%; overflow: auto;
  background: radial-gradient(120% 70% at 50% -10%, rgba(255, 150, 40, .14), rgba(255, 150, 40, 0) 60%), var(--panel);
  border: 1px solid var(--line); border-bottom: 0; border-radius: 24px 24px 0 0; padding: 26px 20px calc(env(safe-area-inset-bottom) + 22px);
  animation: up .3s cubic-bezier(.2, .9, .3, 1); box-shadow: 0 -20px 60px rgba(0, 0, 0, .5); }
.sheet .panel::before { content: ""; position: absolute; top: 9px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: rgba(255, 210, 140, .25); }
.sheet .x { position: absolute; right: 10px; top: 10px; width: 38px; height: 38px; border-radius: 50%; color: var(--muted); display: grid; place-items: center; background: rgba(255, 255, 255, .05); }
.sheet.center { align-items: center; background: rgba(5, 3, 8, .72); }
.sheet.center .panel { border-radius: 24px; border-bottom: 1px solid var(--line); margin: 16px; text-align: center; }
.sheet.center .panel::before { display: none; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }
.divider { height: 14px; margin: 14px auto 2px; width: 160px; background:
  radial-gradient(circle, #ffb43a 2.4px, transparent 3px) center/14px 14px no-repeat,
  linear-gradient(90deg, transparent, rgba(255, 180, 58, .6), transparent) center/100% 1px no-repeat; }

h2 { font-family: var(--title); font-weight: 400; font-size: 27px; line-height: 1.15; padding-right: 30px;
  background: var(--goldgrad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center h2 { padding: 0; }
h3 { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
h3 .ic { color: var(--gold); }
.sub { color: var(--muted); font-size: 15px; margin-top: 5px; line-height: 1.45; }
.steplbl { font-size: 11px; letter-spacing: .14em; font-weight: 800; color: var(--gold); margin-bottom: 6px; }
label { display: block; font-size: 13px; font-weight: 700; color: #e9dcc6; margin: 18px 0 7px; }
label small { color: var(--dim); font-weight: 600; }
input, textarea, select { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--field); border: 1px solid var(--fieldline); border-radius: 14px; padding: 13px 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
input::placeholder, textarea::placeholder { color: #7d6f62; }
input:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 180, 58, .18); }
textarea { resize: none; min-height: 88px; line-height: 1.45; }
.hint { font-size: 12px; color: var(--dim); text-align: right; margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.chip { white-space: normal; font-size: 13px; padding: 7px 11px; border-radius: 999px; background: rgba(255, 180, 58, .09); border: 1px solid rgba(255, 180, 58, .28); color: #ffdba6; text-align: left; }
.chip:active { background: rgba(255, 180, 58, .2); }

.btn { white-space: normal; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 12px; padding: 15px 16px; border-radius: 16px;
  font-weight: 800; font-size: 17px; text-align: center; text-decoration: none; line-height: 1.2; }
.btn .ic { width: 22px; height: 22px; }
.btn.gold { background: var(--goldgrad); color: #2a1100; box-shadow: 0 0 0 1px rgba(255, 230, 170, .5) inset, 0 8px 26px rgba(255, 120, 20, .35); margin-top: 18px; }
.btn.gold .ic { color: #7a2e00; }
.btn.wa { background: linear-gradient(135deg, #3be47c, #1fae55); color: #03250f; box-shadow: 0 8px 24px rgba(37, 211, 102, .25); }
.btn.line { border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--ink); font-weight: 700; }
.btn.line .ic { color: #ffcf7a; }
.btn:disabled { opacity: .55; }
.btn .two { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.btn .two small { font-weight: 600; font-size: 13px; opacity: .75; }
.err { color: #ff9a9a; font-size: 14px; margin-top: 10px; }
.err:empty { display: none; }
.list { max-height: 42vh; overflow: auto; margin-top: 8px; border: 1px solid var(--fieldline); border-radius: 14px; background: var(--field); }
.list button { white-space: normal; display: block; width: 100%; text-align: left; padding: 13px 14px; border-bottom: 1px solid #2b2130; font-size: 16px; }
.list button:last-child { border-bottom: 0; }
.list button:active, .list button.on { background: rgba(255, 180, 58, .14); color: #ffdba6; font-weight: 700; }
.steps { display: flex; gap: 6px; margin-bottom: 16px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: #2e2433; }
.steps i.on { background: var(--goldgrad); }
.picked { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; background: rgba(255, 180, 58, .1); border: 1px solid rgba(255, 180, 58, .4);
  border-radius: 14px; padding: 13px 14px; font-size: 16px; font-weight: 700; color: #ffdba6; }
.picked span:first-child { display: flex; align-items: center; gap: 8px; } .picked .ic { color: var(--gold); }
.picked .chg { font-size: 13px; color: var(--muted); font-weight: 600; text-decoration: underline; }

/* diya */
.diya-wrap { position: relative; width: 190px; height: 190px; margin: 10px auto 4px; cursor: pointer; }
.diya-wrap svg { width: 100%; height: 100%; overflow: visible; }
.flame { transform-origin: 95px 92px; transform: scale(0); transition: transform .6s cubic-bezier(.2, 1.6, .4, 1); }
.lit .flame { transform: scale(1); animation: flick 1.4s ease-in-out .6s infinite; }
.halo { opacity: 0; transition: opacity 1s; }
.lit .halo { opacity: 1; }
@keyframes flick { 25% { transform: scale(1.04, .96) rotate(-2deg); } 50% { transform: scale(.97, 1.05) rotate(1.5deg); } 75% { transform: scale(1.02, .98) rotate(-1deg); } }
.tap { display: inline-flex; align-items: center; gap: 8px; animation: pulse 1.6s ease-in-out infinite; color: #ffd27a; font-weight: 800; font-size: 17px;
  padding: 8px 16px; border-radius: 999px; border: 1px dashed rgba(255, 180, 58, .45); }
.tap.done { animation: none; border-style: solid; background: rgba(255, 180, 58, .12); }
@keyframes pulse { 50% { opacity: .5; } }

.card { background: linear-gradient(180deg, rgba(255, 180, 58, .07), rgba(255, 180, 58, .02)); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin-top: 12px; text-align: left; position: relative; }
.card .n { font-size: 11.5px; color: var(--gold); font-weight: 800; letter-spacing: .08em; }
.card .nm { font-weight: 800; font-size: 17px; margin-top: 2px; }
.card .pl { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 4px; } .card .pl .ic { width: 14px; height: 14px; }
.card .w { margin-top: 8px; font-size: 16px; line-height: 1.45; }
.card .rep { position: absolute; top: 12px; right: 12px; font-size: 12px; color: var(--dim); display: inline-flex; gap: 4px; align-items: center; } .card .rep .ic { width: 13px; height: 13px; }
.letter { font-size: 19px; line-height: 1.6; white-space: pre-wrap; text-align: left; margin-top: 14px; padding: 16px 18px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 214, 140, .1), rgba(255, 214, 140, .03)); border: 1px solid rgba(255, 196, 110, .25); }
.from-line { color: var(--muted); font-size: 14px; margin-top: 4px; display: inline-flex; align-items: center; gap: 4px; } .from-line .ic { width: 15px; height: 15px; color: var(--gold); }
.res-glow { width: 96px; height: 96px; margin: 2px auto 0; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 80, .45), rgba(255, 140, 30, 0) 70%); }
.res-glow .ic { width: 64px; height: 64px; color: #c8662d; filter: drop-shadow(0 0 12px rgba(255, 170, 60, .8)); }
.big { font-family: var(--title); font-size: 50px; line-height: 1; margin: 2px 0 4px; background: var(--goldgrad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 140, 30, .5)); }
.section { font-size: 11px; letter-spacing: .14em; font-weight: 800; color: var(--dim); margin-top: 20px; text-align: left; }
.board { margin-top: 12px; }
.board .row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid #2b2130; }
.board .row .r { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--muted); background: rgba(255, 255, 255, .05); }
.board .row:nth-child(1) .r { background: linear-gradient(135deg, #ffe08a, #e0a020); color: #3a2400; }
.board .row:nth-child(2) .r { background: linear-gradient(135deg, #f1f1f1, #a9a9b3); color: #2a2a30; }
.board .row:nth-child(3) .r { background: linear-gradient(135deg, #f0b07a, #b0642a); color: #2e1504; }
.board .row .s { flex: 1; font-weight: 600; }
.board .row .bar { height: 6px; border-radius: 6px; background: var(--goldgrad); margin-top: 5px; }
.board .row .c { font-weight: 800; font-variant-numeric: tabular-nums; color: #ffdba6; }
.toast { position: fixed; top: calc(env(safe-area-inset-top) + 120px); left: 50%; transform: translateX(-50%); background: rgba(30, 20, 34, .96); border: 1px solid var(--line);
  padding: 11px 18px; border-radius: 999px; font-size: 14px; z-index: 40; max-width: 90%; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.intro { position: fixed; inset: 0; z-index: 15; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; transition: opacity .8s;
  background: radial-gradient(circle at 50% 55%, #2a1608, rgba(42, 22, 8, 0) 55%), radial-gradient(100% 60% at 50% 0%, #2a0f2e, rgba(42, 15, 46, 0) 60%), #0b0710; }
.intro.out { opacity: 0; pointer-events: none; }
.intro .to { font-family: var(--title); font-size: clamp(32px, 9vw, 46px); line-height: 1.15; background: var(--goldgrad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro .from { color: var(--ink); margin-top: 8px; font-size: 18px; }
.intro .tap { margin-top: 6px; }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }

/* photos */
.fph { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #0d090f; border-radius: 18px; margin-top: 14px; border: 1px solid var(--line); }
.fph::-webkit-scrollbar { display: none; }
.fph img { flex: 0 0 100%; width: 100%; max-height: 55vh; object-fit: contain; scroll-snap-align: center; display: block; }
.fdots { display: flex; justify-content: center; gap: 5px; padding: 8px 0 0; } .fdots i { width: 6px; height: 6px; border-radius: 6px; background: #4a3d4c; }
.ptiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pt { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--field); border: 1px solid var(--fieldline); }
.pt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt button { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; display: grid; place-items: center; }
.pt button .ic { width: 15px; height: 15px; }
.pt.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #ffcf7a; border: 1.5px dashed rgba(255, 180, 58, .45); background: rgba(255, 180, 58, .05); }
.pt.add .ic { width: 26px; height: 26px; }
.pt.add span { font-size: 12px; font-weight: 700; }

/* tap guide */
.taphint { position: absolute; left: 50%; top: 66%; width: 0; height: 0; pointer-events: none; }
.lit .taphint { display: none; }
.taphint .ripple { position: absolute; left: -34px; top: -34px; width: 68px; height: 68px; border-radius: 50%; border: 2.5px solid rgba(255, 214, 120, .75);
  background: rgba(255, 200, 90, .12); opacity: 0; animation: ripple 2s ease-out infinite .55s; }
.taphint .ripple.r2 { animation-delay: .8s; }
.taphint .hand { position: absolute; left: -12px; top: -2px; width: 62px; height: 62px; opacity: 0; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .45));
  transform-origin: 30% 10%; animation: tapHand 2s ease-in-out infinite; }
@keyframes tapHand {
  0% { opacity: 0; transform: translate(26px, 30px) scale(1); }
  20% { opacity: .62; transform: translate(0, 0) scale(1); }
  30% { opacity: .62; transform: translate(0, 2px) scale(.88); }
  42% { opacity: .62; transform: translate(0, 0) scale(1); }
  70% { opacity: .5; transform: translate(10px, 14px) scale(1); }
  100% { opacity: 0; transform: translate(26px, 30px) scale(1); }
}
@keyframes ripple { 0% { opacity: .85; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.7); } }
@media (prefers-reduced-motion: reduce) { .taphint .hand { animation: none; opacity: .55; } .taphint .ripple { animation-duration: 3s; } }
.tap { font-size: 18px; }

.leaders { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px auto 0; max-width: 92%; pointer-events: auto;
  font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.leaders .ic { width: 15px; height: 15px; color: var(--gold); flex: none; }
.leaders span { overflow: hidden; text-overflow: ellipsis; }
.leaders b { color: var(--gold); } .leaders em { font-style: normal; color: var(--ink); font-weight: 800; }
