:root {
  --bg: #07080d; --ink: #fff7e8; --muted: #b9b2a3; --gold: #ffb43a; --gold2: #ff7a1a; --card: rgba(22, 20, 28, .92);
  --line: rgba(255, 196, 110, .18); --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%; background: var(--bg); color: var(--ink); font-family: var(--font); overflow: hidden; overscroll-behavior: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; white-space: nowrap; }
#map { position: fixed; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; }

#top { position: fixed; top: 0; left: 0; right: 0; padding: calc(env(safe-area-inset-top) + 14px) 16px 26px; text-align: center; pointer-events: none;
  background: linear-gradient(#07080d 30%, rgba(7, 8, 13, 0)); }
.brand .t { display: block; font-family: var(--title); font-size: clamp(26px, 7vw, 38px); line-height: 1.05; color: #ffd27a;
  text-shadow: 0 0 24px rgba(255, 150, 40, .55); }
.brand .h { display: block; font-size: 15px; color: var(--muted); margin-top: 2px; letter-spacing: .02em; }
.count { margin-top: 8px; font-size: 14px; color: var(--muted); }
.count b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }

#bar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; align-items: center; justify-content: center;
  padding: 26px 14px calc(env(safe-area-inset-bottom) + 30px); background: linear-gradient(rgba(7, 8, 13, 0), #07080d 45%); }
.cta { background: linear-gradient(180deg, #ffc65a, #ff8a1f); color: #2b1300; font-weight: 800; font-size: 17px; padding: 14px 20px; border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255, 220, 150, .4) inset, 0 8px 30px rgba(255, 140, 30, .45); animation: breathe 2.6s ease-in-out infinite; }
.cta:active { transform: scale(.97); }
.ghost { background: rgba(255, 255, 255, .07); border: 1px solid var(--line); padding: 11px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
@keyframes breathe { 50% { box-shadow: 0 0 0 1px rgba(255, 220, 150, .4) inset, 0 8px 44px rgba(255, 140, 30, .7); } }
#foot { position: fixed; bottom: calc(env(safe-area-inset-bottom) + 6px); left: 0; right: 0; text-align: center; font-size: 11px; color: #6f6a60; pointer-events: none; }
#foot a { color: #8f887a; pointer-events: auto; }

.ticker { position: fixed; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 108px); margin: 0 auto; max-width: 420px;
  background: var(--card); 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.fade { opacity: 0; transform: translateY(8px); }
.ticker .who { font-weight: 800; color: #ffd27a; }
.ticker .where { color: var(--muted); font-size: 12.5px; }

.sheet { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; justify-content: center; z-index: 10; animation: fadeIn .25s; }
.sheet .panel { position: relative; width: 100%; max-width: 480px; max-height: 92%; overflow: auto; background: #121118; border: 1px solid var(--line);
  border-bottom: 0; border-radius: 22px 22px 0 0; padding: 22px 18px calc(env(safe-area-inset-bottom) + 22px); animation: up .3s cubic-bezier(.2, .9, .3, 1); }
.sheet .x { position: absolute; right: 10px; top: 8px; font-size: 28px; color: var(--muted); width: 40px; height: 40px; }
.sheet.center { align-items: center; background: rgba(0, 0, 0, .7); }
.sheet.center .panel { border-radius: 22px; border-bottom: 1px solid var(--line); margin: 16px; text-align: center; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }

h2 { font-family: var(--title); font-weight: 400; font-size: 26px; color: #ffd27a; line-height: 1.15; }
h3 { font-size: 17px; font-weight: 800; }
.sub { color: var(--muted); font-size: 15px; margin-top: 4px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 16px 0 6px; }
input, textarea, select { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #1c1a23; border: 1px solid #2f2b38; border-radius: 12px; padding: 12px 13px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--gold); }
textarea { resize: none; min-height: 84px; line-height: 1.4; }
.hint { font-size: 12px; color: #7d776b; text-align: right; margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { white-space: normal; font-size: 13px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 180, 58, .1); border: 1px solid rgba(255, 180, 58, .25); color: #ffd9a0; text-align: left; }
.btn { white-space: normal; display: block; width: 100%; margin-top: 18px; padding: 15px; border-radius: 14px; font-weight: 800; font-size: 17px; text-align: center; text-decoration: none; }
.btn.gold { background: linear-gradient(180deg, #ffc65a, #ff8a1f); color: #2b1300; }
.btn.wa { background: #25d366; color: #052e16; }
.btn.line { border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--ink); font-weight: 600; }
.btn:disabled { opacity: .5; }
.err { color: #ff8c8c; font-size: 14px; margin-top: 10px; }
.list { max-height: 46vh; overflow: auto; margin-top: 8px; border: 1px solid #2f2b38; border-radius: 12px; }
.list button { white-space: normal; display: block; width: 100%; text-align: left; padding: 12px 13px; border-bottom: 1px solid #23202b; font-size: 16px; }
.list button:last-child { border-bottom: 0; }
.list button:active, .list button.on { background: rgba(255, 180, 58, .12); }
.steps { display: flex; gap: 6px; margin-bottom: 14px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: #2a2731; }
.steps i.on { background: var(--gold); }

/* 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 { animation: pulse 1.6s ease-in-out infinite; color: #ffd27a; font-weight: 800; font-size: 18px; }
@keyframes pulse { 50% { opacity: .45; } }

.card { background: #1a1820; border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-top: 10px; text-align: left; }
.card .n { font-size: 12px; color: var(--gold); font-weight: 800; letter-spacing: .05em; }
.card .nm { font-weight: 800; font-size: 17px; }
.card .pl { color: var(--muted); font-size: 13px; }
.card .w { margin-top: 6px; font-size: 16px; line-height: 1.4; }
.card .rep { float: right; font-size: 12px; color: #6f6a60; }
.letter { font-size: 18px; line-height: 1.55; white-space: pre-wrap; text-align: left; margin-top: 12px; }
.big { font-family: var(--title); font-size: 44px; color: #ffd27a; text-shadow: 0 0 30px rgba(255, 150, 40, .6); line-height: 1; margin: 6px 0; }
.board { margin-top: 10px; }
.board .row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid #23202b; }
.board .row .r { width: 26px; color: var(--muted); font-weight: 800; }
.board .row .s { flex: 1; }
.board .row .bar { height: 6px; border-radius: 6px; background: linear-gradient(90deg, #ff8a1f, #ffc65a); margin-top: 4px; }
.board .row .c { font-weight: 800; font-variant-numeric: tabular-nums; }
.toast { position: fixed; top: calc(env(safe-area-inset-top) + 110px); left: 50%; transform: translateX(-50%); background: var(--card); border: 1px solid var(--line);
  padding: 10px 16px; border-radius: 999px; font-size: 14px; z-index: 20; max-width: 90%; text-align: center; }
.intro { position: fixed; inset: 0; z-index: 15; background: radial-gradient(circle at 50% 45%, #1a1208, #07080d 70%); display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 24px; transition: opacity .8s; }
.intro.out { opacity: 0; pointer-events: none; }
.intro .to { font-family: var(--title); font-size: clamp(28px, 8vw, 40px); color: #ffd27a; line-height: 1.15; }
.intro .from { color: var(--muted); margin-top: 8px; font-size: 17px; }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }
.picked { display: flex; justify-content: space-between; align-items: center; width: 100%; background: rgba(255, 180, 58, .1); border: 1px solid rgba(255, 180, 58, .35);
  border-radius: 12px; padding: 12px 13px; font-size: 16px; font-weight: 600; color: #ffd9a0; }
.picked .chg { font-size: 13px; color: var(--muted); font-weight: 600; }
