/* The map fills the screen. A small dock sits at the bottom; everything else slides up only when asked for.
   One look: soft mist behind sage land, white glass panels, one warm orange for what you can press. */
:root {
  --mist: #eef1f2; --accent: #ff8a1f; --accent-ink: #1f1208; --ink: #1d2a2c; --muted: #5a6b6c; --panel: rgba(255,255,255,.86); --panel-solid: #fff; --line: rgba(29,42,44,.14); --soft: rgba(29,42,44,.07);
  --radius: 22px; --radius-s: 14px; --shadow: 0 14px 40px rgba(40,60,60,.18); --blur: blur(18px) saturate(1.4);
  --display: "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif; --body: "Hind", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "JetBrains Mono", ui-monospace, Menlo, monospace; --btn-shade: 0 6px 16px rgba(255,138,31,.34);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--mist); color: var(--ink); font: 15px/1.4 var(--body); -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
#canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#labels { position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }

/* labels on the land */
.lab { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform; transition: opacity .25s; }
.lab.place { font: 600 12px/1 var(--body); color: var(--ink); text-shadow: 0 0 3px rgba(255,255,255,.95), 0 0 8px rgba(255,255,255,.8); }
.lab.zone { padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.86); font: 600 10.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.lab.idpin { padding: 5px 11px 4px; border-radius: 10px; background: #152238; color: #fff; font: 800 14px/1.2 var(--display); box-shadow: 0 3px 12px rgba(0,0,0,.35); }
.lab.idpin::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top: 8px solid #152238; border-bottom: 0; }
.lab.idpin.mayor { background: #F6C344; color: #2A1C00; }
.lab.idpin.mayor::after { border-top-color: #F6C344; }
.lab.town { pointer-events: auto; cursor: pointer; border: 0; padding: 4px 9px 3px; border-radius: 999px; background: var(--panel-solid); color: var(--ink); font: 700 12px/1.2 var(--display); box-shadow: 0 2px 8px rgba(0,0,0,.28); }
.lab.who { padding: 3px 9px 2px; border-radius: 999px; background: #152238; color: #fff; font: 700 13px/1.25 var(--display); box-shadow: 0 2px 8px rgba(0,0,0,.28); }
.lab.pin { display: grid; justify-items: center; gap: 5px; pointer-events: auto; cursor: pointer; border: 0; background: none; padding: 0; }
.lab.pin b { padding: 4px 10px; border-radius: 999px; background: var(--panel-solid); box-shadow: var(--shadow); font: 600 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.lab.pin i { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }

/* top */
.top { position: fixed; z-index: 3; top: max(10px, env(safe-area-inset-top, 0px)); left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 8px; pointer-events: none; }
.brand, .chip { background: var(--panel); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 7px; padding: 5px 13px 5px 6px; border-radius: 999px; }
.brand svg { width: 26px; height: 26px; }
.brand b { font: 800 17px/1 var(--display); white-space: nowrap; }
.chips { display: flex; gap: 6px; }
.chip { padding: 6px 12px; border-radius: 999px; font-size: 13px; white-space: nowrap; }
.chip.strong { background: #F6C344; color: #2A1C00; font: 800 14px/1.1 var(--display); letter-spacing: .03em; border-radius: 9px; box-shadow: 0 3px 10px rgba(0,0,0,.2); -webkit-backdrop-filter: none; backdrop-filter: none; }
.chip.pop { background: #152238; color: #fff; font: 700 14px/1.1 var(--display); -webkit-backdrop-filter: none; backdrop-filter: none; }
.chip b { font-weight: 700; font-variant-numeric: tabular-nums; }
.chip.tag-preview { background: #fff; color: #B85A00; font: 800 12px/1.1 var(--display); letter-spacing: .08em; }
.lab.ask { display: grid; place-items: center; width: 24px; height: 24px; margin-top: -18px; border-radius: 50%; background: #F6C344; color: #2A1C00; font: 800 16px/1 var(--display); box-shadow: 0 3px 10px rgba(0,0,0,.35); }

/* preview note */
.preview { position: fixed; z-index: 3; top: calc(max(10px, env(safe-area-inset-top, 0px)) + 46px); right: max(12px, env(safe-area-inset-right, 0px)); display: flex; align-items: center; gap: 7px; padding: 5px 6px 5px 10px; border-radius: var(--radius-s); background: var(--panel); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow); font-size: 11.5px; }
.preview button { min-height: 28px; padding: 1px 9px; border: 1px solid var(--line); border-radius: 8px; background: transparent; font-size: 11.5px; font-weight: 600; }

/* the words, and the comment */
.comment { position: fixed; z-index: 4; left: 50%; bottom: calc(max(14px, env(safe-area-inset-bottom, 0px)) + 66px); width: min(calc(100% - 32px), 400px); opacity: 0; display: flex; align-items: flex-start; gap: 10px; padding: 11px 15px 12px 11px; border-radius: 18px; background: var(--panel-solid); box-shadow: 0 10px 34px rgba(0,0,0,.28); }
.comment i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 800 19px/1 var(--display); font-style: normal; }
.comment p { margin: 0; min-width: 0; display: grid; gap: 1px; }
.comment b { font: 800 15px/1.2 var(--display); color: var(--ink); }
.comment span { font: 600 16px/1.25 var(--body); color: var(--ink); }
.comment .cta { justify-self: start; margin-top: 5px; padding: 5px 11px 4px; border-radius: 8px; background: #F6C344; color: #2A1C00; font: 800 15px/1.15 var(--display); }
.say { position: fixed; z-index: 4; left: 50%; top: 60%; transform: translateX(-50%); width: max-content; max-width: min(84%, 560px); margin: 0; text-align: center; font: 800 34px/1.1 var(--display); color: #fff; text-shadow: 0 0 2px #000, 0 2px 0 rgba(0,0,0,.85), 0 0 14px rgba(0,0,0,.6), 2px 0 0 rgba(0,0,0,.55), -2px 0 0 rgba(0,0,0,.55), 0 -1px 0 rgba(0,0,0,.55); pointer-events: none; text-wrap: balance; }
.say em { font-style: normal; color: #FFC83D; }
/* Video: everything readable stays inside the part of a reel Instagram leaves clear */
body.video .top { left: 78px; right: auto; top: 142px; justify-content: flex-start; }
body.video .brand, body.video .dock, body.video .preview, body.video #viewBtn, body.video .skip { display: none !important; }
body.video .comment { bottom: auto; top: 186px; width: 400px; }
body.video .say { top: 574px; font-size: 38px; max-width: 396px; }
body.video .comment .cta { font-size: 16px; }
body.video .chip.strong, body.video .chip.pop { font-size: 17px; padding: 7px 13px; }
body.video .comment span { font-size: 18px; }
body.video .comment b { font-size: 16.5px; }
body.video .lab.who { font-size: 16px; padding: 4px 11px 3px; }
body.video .lab.idpin { font-size: 18px; }
body.video .lab.pin b { font-size: 12px; }
body.video .lab.place { font-size: 13px; }
.skip { position: fixed; z-index: 5; right: max(14px, env(safe-area-inset-right, 0px)); bottom: max(14px, env(safe-area-inset-bottom, 0px)); min-height: 44px; padding: 6px 18px; border: 0; border-radius: 999px; background: var(--panel-solid); box-shadow: var(--shadow); font-weight: 700; }

/* dock */
.dock { position: fixed; z-index: 3; left: 50%; transform: translateX(-50%); bottom: max(12px, env(safe-area-inset-bottom, 0px)); width: min(calc(100% - 24px), 520px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 8px; border-radius: var(--radius); background: var(--panel); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow); transition: opacity .25s, transform .25s; }
.dock-main { min-width: 0; min-height: 48px; padding: 0 12px; border: 0; border-radius: var(--radius-s); background: var(--accent); color: var(--accent-ink); font: 800 17px/1 var(--display); box-shadow: var(--btn-shade); }
.dock-walk { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 48px; padding: 0 16px; border: 0; border-radius: var(--radius-s); background: var(--soft); color: var(--ink); font: 800 16px/1 var(--display); }
.dock-walk svg { width: 22px; height: 22px; fill: currentColor; }
.dock-me { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 48px; padding: 4px 10px; border: 0; border-radius: var(--radius-s); background: var(--soft); text-align: left; }
.dock-me i { flex: none; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px 3px rgba(255,180,80,.75); }
.dock-me span { min-width: 0; display: grid; }
.dock-me b { font: 800 16px/1.15 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-me small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-tabs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dock-tabs button { min-height: 40px; border: 0; border-radius: var(--radius-s); background: var(--soft); font-weight: 600; font-size: 14px; }
.dock-tabs button:hover { background: var(--line); }
.dock-tabs .tab-go { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.dock-tabs .tab-go:hover { background: var(--accent); }

/* sheet */
.sheet { position: fixed; z-index: 6; left: 50%; bottom: 0; width: min(100%, 520px); max-height: 66%; display: flex; flex-direction: column; background: rgba(255,255,255,.94); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-radius: var(--radius) var(--radius) 0 0; box-shadow: var(--shadow); transform: translate(-50%, 104%); transition: transform .28s cubic-bezier(.22,1,.36,1); padding-bottom: env(safe-area-inset-bottom, 0px); }
.sheet.open { transform: translate(-50%, 0); }
.sheet-head { display: flex; justify-content: space-between; gap: 10px; padding: 14px 14px 8px 18px; }
.sheet-head h2 { margin: 0; font: 800 26px/1.08 var(--display); text-wrap: balance; }
.sheet-head p { margin: 3px 0 0; font-size: 14px; color: var(--muted); }
.round { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--soft); font-size: 22px; line-height: 1; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 16px; display: grid; gap: 8px; }
.btn { min-height: 46px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: transparent; font-weight: 700; font-size: 15px; text-align: center; }
.btn.primary { border: 0; background: var(--accent); color: var(--accent-ink); box-shadow: var(--btn-shade); }
.note { margin: 0; font-size: 12.5px; color: var(--muted); }
.find { width: 100%; min-height: 44px; margin: 0 0 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--panel-solid); color: var(--ink); font: 500 16px/1.2 var(--body); }
.row.tap { cursor: pointer; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.row { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; align-items: center; gap: 8px; width: 100%; min-height: 46px; padding: 5px 8px; border: 0; border-radius: var(--radius-s); background: transparent; text-align: left; }
button.row:hover { background: var(--soft); }
.row > i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); justify-self: center; }
.row-mid { min-width: 0; }
.row b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row small { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row em { font-style: normal; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.row.mine { background: rgba(255,170,60,.2); }
.tag { display: inline-block; margin-left: 6px; padding: 0 5px; border: 1px solid var(--line); border-radius: 5px; font-size: 10.5px; line-height: 1.5; font-weight: 400; color: var(--muted); vertical-align: 1px; }
.steps { display: flex; flex-wrap: wrap; gap: 5px; }
.step { padding: 3px 9px; border-radius: 999px; font-size: 12.5px; background: var(--soft); color: var(--muted); }
.step.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.idea-head { margin: 8px 0 0; font: 800 15px/1.2 var(--display); }
.ideas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.idea { display: grid; gap: 2px; align-content: start; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-s); background: transparent; text-align: left; }
.idea b { font: 800 14.5px/1.15 var(--display); }
.idea small { font-size: 12px; line-height: 1.25; color: var(--muted); }
.idea em { font-style: normal; font-size: 12px; font-weight: 700; color: #B85A00; }
.idea.ready { background: rgba(255,170,60,.13); border-color: rgba(255,138,31,.55); }
.idea[disabled] { cursor: default; color: inherit; }
a.btn { display: grid; place-items: center; color: var(--accent-ink); text-decoration: none; }
.reg { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.seat-card { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius-s); background: var(--soft); font-size: 13.5px; }
.seat-card b { font-weight: 700; font-size: 14.5px; }
.seat-card span { color: var(--muted); }

/* the pill under the brand: All of India, or back to the park */
.back { position: fixed; z-index: 3; top: calc(max(10px, env(safe-area-inset-top, 0px)) + 46px); left: max(12px, env(safe-area-inset-left, 0px)); min-height: 42px; padding: 6px 15px; border: 0; border-radius: 999px; background: var(--panel); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow); font-weight: 700; }

/* walking */
.findbar { position: fixed; z-index: 5; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); top: calc(max(10px, env(safe-area-inset-top, 0px)) + 96px); will-change: transform; }
.find-field { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border-radius: 14px; background: var(--panel-solid); color: var(--ink); box-shadow: 0 6px 22px rgba(0,0,0,.28); border: 2px solid var(--accent); cursor: text; }
.find-field svg { flex: none; width: 20px; height: 20px; color: var(--accent); }
.find-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--ink); font: 600 16px/1.2 var(--body); -webkit-appearance: none; appearance: none; }
.find-field input::placeholder { color: var(--muted); font-weight: 500; }
.find-list { margin-top: 6px; padding: 4px; border-radius: 14px; background: var(--panel-solid); box-shadow: 0 10px 30px rgba(0,0,0,.3); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.find-row { display: block; width: 100%; min-height: 48px; padding: 7px 10px; border: 0; border-radius: 10px; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.find-row:hover, .find-row:focus-visible { background: var(--mist); outline: 0; }
.find-row b { display: block; font: 700 15px/1.25 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find-row small { display: block; font: 500 12.5px/1.3 var(--body); color: var(--muted); }
.find-none { margin: 0; padding: 10px; font: 500 14px/1.4 var(--body); color: var(--ink); }
.find-none a { color: #B85A00; font-weight: 700; }
@media (min-width: 900px) { .findbar { left: 50%; right: auto; width: 420px; margin-left: -210px; top: 10px; } }
body.intro .findbar, body.roam .findbar, body.video .findbar { display: none; }
.pc-hint { display: none; position: fixed; z-index: 2; left: 14px; bottom: 14px; max-width: 250px; margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--panel); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow); font: 500 12.5px/1.65 var(--body); color: var(--ink); pointer-events: none; }
.pc-hint b { font-weight: 700; margin-left: 8px; }
.pc-hint b:first-child { margin-left: 0; }
@media (hover: hover) and (pointer: fine) { body.roam .stick { display: none; } body.roam .roam-hint { display: none; } }
@media (hover: hover) and (pointer: fine) and (min-width: 1000px) { .pc-hint { display: block; } }
body.intro .pc-hint, body.video .pc-hint { display: none; }
.roam-ui { display: none; }
body.roam .roam-ui { display: block; }
body.roam .dock, body.roam .preview, body.roam .chips, body.roam #viewBtn { display: none; }
.stick { position: fixed; z-index: 3; left: max(22px, env(safe-area-inset-left, 0px)); bottom: max(26px, env(safe-area-inset-bottom, 0px)); width: 132px; height: 132px; border-radius: 50%; background: rgba(255,255,255,.4); border: 2px solid rgba(255,255,255,.8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); touch-action: none; display: grid; place-items: center; }
.knob { width: 58px; height: 58px; border-radius: 50%; background: var(--accent); box-shadow: 0 5px 16px rgba(0,0,0,.28); pointer-events: none; transition: transform .08s; }
.roam-hint { position: fixed; z-index: 2; left: 166px; right: 14px; bottom: max(30px, env(safe-area-inset-bottom, 0px)); margin: 0; padding: 6px 10px; border-radius: 10px; background: var(--panel); font-size: 13px; font-weight: 600; pointer-events: none; }

/* during the story, the land gets the whole screen */
body.intro .dock, body.intro .preview, body.intro #viewBtn { opacity: 0; pointer-events: none; }

#loading { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; background: var(--mist); color: var(--ink); text-align: center; transition: opacity .45s; font: 700 19px/1.3 var(--display); }
#loading.gone { opacity: 0; pointer-events: none; }
.load-inner { display: grid; gap: 10px; justify-items: center; }
.load-inner svg { width: 54px; height: 54px; animation: bob 1.1s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-9px); } }

@media (min-width: 820px) {
  .sheet { left: auto; right: 16px; bottom: 16px; top: 112px; width: 380px; max-height: none; border-radius: var(--radius); transform: translateX(110%); }
  .sheet.open { transform: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
