/* 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(4, 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); }
.note.sources { font-size: 8.5px; line-height: 1.25; opacity: .75; }
.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; } }

/* A town's own world */
.lab.idpin.dream { background: #E8418A; color: #fff; z-index: 2; }
.lab.idpin.dream::after { border-top-color: #E8418A; }
.lab.plot { pointer-events: auto; cursor: pointer; border: 1px dashed rgba(255,255,255,.9); padding: 3px 9px 2px; border-radius: 999px; background: rgba(21,34,56,.72); color: #fff; font: 700 11.5px/1.3 var(--display); }
.town-card { position: fixed; z-index: 3; left: 50%; transform: translateX(-50%); bottom: calc(max(12px, env(safe-area-inset-bottom, 0px)) + 118px); margin: 0; padding: 6px 14px 5px; border-radius: 14px; background: var(--panel-solid); box-shadow: var(--shadow); text-align: center; white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.town-card[hidden] { display: none; }
.town-card b { display: block; font: 800 16px/1.15 var(--display); color: var(--ink); }
.town-card small { display: block; font: 600 12px/1.25 var(--body); color: var(--ink); opacity: .75; overflow: hidden; text-overflow: ellipsis; }
body.roam .town-card, body.intro .town-card { display: none; }
#wipe { position: fixed; inset: 0; z-index: 6; display: grid; place-items: center; opacity: 0; transition: opacity .28s ease; pointer-events: none; background: radial-gradient(60% 40% at 30% 35%, #fff 0, rgba(255,255,255,0) 70%), radial-gradient(55% 45% at 72% 62%, #fff 0, rgba(255,255,255,0) 72%), linear-gradient(180deg, #CFE3F2, #F4EAD8); }
#wipe[hidden] { display: none; }
#wipe.on { opacity: 1; pointer-events: auto; }
#wipe b { font: 800 clamp(30px, 8vw, 54px)/1.05 var(--display); color: #152238; text-align: center; padding: 0 20px; }

/* Walking as yourself */
.walk-input { width: 100%; min-height: 48px; padding: 0 14px; border: 2px solid var(--accent); border-radius: var(--radius-s); background: #fff; color: var(--ink); font: 600 16px/1.2 var(--body); }
.walk-hits { display: grid; gap: 6px; margin: 10px 0 12px; }
.walk-hits .find-row { display: grid; text-align: left; padding: 9px 12px; border: 0; border-radius: var(--radius-s); background: rgba(21,34,56,.07); color: var(--ink); cursor: pointer; }
.walk-hits .find-row small { opacity: .72; }
.back.walk-switch { top: calc(max(10px, env(safe-area-inset-top, 0px)) + 96px); min-height: 36px; padding: 4px 13px; font-size: 13px; }
.back.walk-name { top: calc(max(10px, env(safe-area-inset-top, 0px)) + 140px); min-height: 36px; padding: 4px 13px; font-size: 13px; }
.back.walk-clean { top: calc(max(10px, env(safe-area-inset-top, 0px)) + 184px); min-height: 36px; padding: 4px 13px; font-size: 13px; }
.back.walk-mansion { top: calc(max(10px, env(safe-area-inset-top, 0px)) + 228px); min-height: 36px; padding: 4px 13px; font-size: 13px; background: #FFC83D; color: #2A1C00; }
body.clean.roam .walk-mansion { top: calc(max(10px, env(safe-area-inset-top, 0px)) + 140px); }
body.clean.roam .walk-switch, body.clean.roam .walk-name, body.clean.roam .roam-hint, body.clean.roam .brand, body.clean .live-chip { display: none !important; }
body.clean.roam .back.walk-clean { top: calc(max(10px, env(safe-area-inset-top, 0px)) + 96px); }

.town-card em { display: block; font: 800 12.5px/1.3 var(--display); font-style: normal; color: #C2570A; }
.town-card em:empty { display: none; }
.town-card { bottom: calc(max(12px, env(safe-area-inset-bottom, 0px)) + 118px); }

/* Registering on the site */
.invite { margin: 0 0 2px; padding: 9px 12px; border-radius: 10px; background: #FFF3D6; color: #5A3B00; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.reg-say { margin: 0; color: #B13A1E; font-weight: 600; }
.reg-say:empty { display: none; }
a.btn { display: block; text-align: center; text-decoration: none; }

/* Famous places on the map */
.lab.mon { pointer-events: auto; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 3px; border: 0; border-radius: 999px; white-space: nowrap; background: rgba(21,34,56,.78); color: #fff; font: 700 12px/1.2 var(--display); }
.lab.mon i { flex: none; width: 9px; height: 9px; transform: rotate(45deg); background: #C9C2B4; }
.lab.mon.below i { display: none; }
.lab.mon.left { flex-direction: row-reverse; }
.lab.mon.site { font-size: 14px; padding: 6px 12px 5px; box-shadow: 0 3px 14px rgba(0,0,0,.4); }
.lab.mon.below::before { content: ''; position: absolute; left: 50%; top: -6px; margin-left: -6px; border: 6px solid transparent; border-top: 0; border-bottom-color: #5B2A0E; }
.lab.mon b { font-weight: 700; }
.lab.mon.open { background: #5B2A0E; font-size: 13.5px; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.lab.mon.open i { background: #FFC83D; animation: monGlow 1.8s ease-in-out infinite; }
.lab.mon em { font-style: normal; font-weight: 800; padding: 1px 7px 0; border-radius: 999px; background: #FFC83D; color: #3B1E06; }
@keyframes monGlow { 50% { box-shadow: 0 0 0 5px rgba(255,200,61,.3); } }
.dock-tabs .tab-visit { background: #5B2A0E; color: #fff; font-weight: 700; }
.dock-tabs .tab-visit:hover { background: #5B2A0E; }
.mon-card { display: grid; gap: 3px; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; }
.mon-card small { font-size: 12.5px; font-weight: 600; color: #8A5A1F; }
.mon-card b { font: 800 20px/1.1 var(--display); }
.mon-card p { margin: 0; font-size: 14px; line-height: 1.32; }
.mon-card .btn { margin-top: 7px; }
.mon-card.locked, .mon-card.coming { background: rgba(21,34,56,.04); }
.mon-card .plaque { font-weight: 700; color: #8A5A1F; }
.mon-card .mon-lock { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.mon-bar { height: 7px; margin-top: 6px; border-radius: 4px; background: rgba(21,34,56,.12); overflow: hidden; }
.mon-bar i { display: block; height: 100%; min-width: 4px; border-radius: 4px; background: var(--accent); }
.pick { display: grid; gap: 6px; padding: 11px 13px; border-radius: var(--radius-s); background: #FFF3D6; }
.pick b { font: 800 18px/1.1 var(--display); color: #5A3B00; }
.pick p { margin: 0; font-size: 14px; line-height: 1.32; color: #5A3B00; }
.pick .note { font-size: 12px; opacity: .8; }
.stamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stamp { aspect-ratio: 1; display: grid; place-content: center; gap: 2px; padding: 8px; border: 2px dashed rgba(21,34,56,.22); border-radius: 50%; text-align: center; color: var(--muted); }
.stamp b { font: 800 14px/1.05 var(--display); }
.stamp small { font-size: 10.5px; line-height: 1.1; }
.stamp.on { border: 3px double var(--accent); color: #C2570A; transform: rotate(-5deg); }
.check-out { display: grid; gap: 8px; }
.check-out:empty { display: none; }
.check-yes { margin: 4px 0 0; font: 800 22px/1.1 var(--display); color: #1F7A3E; }
.check-wait { margin: 4px 0 0; font: 800 20px/1.1 var(--display); }
.pick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pick-one { min-height: 44px; border: 2px solid var(--line); border-radius: var(--radius-s); background: #fff; font-weight: 700; font-size: 14.5px; }
.pick-one.on { border-color: var(--accent); background: #FFF3D6; }
.town-card q { display: block; quotes: none; margin-top: 2px; font: 600 12.5px/1.25 var(--body); color: var(--ink); }
.town-card q:empty { display: none; }
.fest-btn { position: fixed; z-index: 2; right: max(12px, env(safe-area-inset-right, 0px)); top: calc(max(10px, env(safe-area-inset-top, 0px)) + 150px); min-height: 34px; padding: 3px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-solid); color: var(--ink); font: 700 13px/1 var(--display); }
.fest-btn[hidden] { display: none; }
.fest-btn.lit { border: 0; background: #FFC83D; color: #3B1E06; box-shadow: 0 2px 10px rgba(0,0,0,.22); }
body.roam .fest-btn, body.intro .fest-btn, body.video .fest-btn { display: none; }
/* First visit tips */
.guide { position: fixed; z-index: 7; left: 50%; top: 42%; transform: translate(-50%, -50%); width: min(calc(100% - 44px), 340px); display: grid; gap: 4px; padding: 16px 18px 13px; border-radius: 18px; background: #fff; color: #1D2A2C; box-shadow: 0 12px 44px rgba(0,0,0,.35); }
.guide[hidden] { display: none; }
.guide small { font-size: 12px; font-weight: 700; color: #C2570A; }
.guide b { font: 800 24px/1.1 var(--display); }
.guide p { margin: 0; font-size: 15.5px; line-height: 1.32; }
.guide-btns { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.guide-btns button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: transparent; font-weight: 700; font-size: 15px; color: var(--muted); }
.guide-btns #guideNext { background: var(--accent); color: var(--accent-ink); font: 800 16px/1 var(--display); }
.guide-mark { outline: 3px solid #FFC83D; outline-offset: 2px; border-radius: 12px; animation: guideMark 1.2s ease-in-out infinite; }
@keyframes guideMark { 50% { outline-offset: 6px; } }
body.intro .guide { display: none; }

.town-card { width: max-content; max-width: calc(100% - 24px); }
.town-card em, .town-card q { white-space: normal; text-wrap: balance; }

@media (max-width: 350px) { .brand b { display: none; } }

/* The full-screen festival view: only the sky and one small bar */
body.show .top, body.show .preview, body.show #viewBtn, body.show .dock, body.show .findbar, body.show .fest-btn, body.show .town-card, body.show #labels, body.show .pc-hint, body.show .guide { display: none !important; }
.show-bar { position: fixed; z-index: 5; left: 50%; transform: translateX(-50%); bottom: max(20px, env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 8px; max-width: calc(100% - 24px); padding: 7px 7px 7px 16px; border-radius: 999px; background: rgba(12,14,24,.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; }
.show-bar[hidden] { display: none; }
.show-bar b { font: 800 16px/1 var(--display); white-space: nowrap; margin-right: 4px; color: #FFC83D; }
.show-bar button { min-height: 44px; padding: 0 15px; border: 0; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font: 700 15px/1 var(--display); }
.show-bar #showDone { background: #fff; color: #152238; }

/* Travelling across the map to a famous place */
.travel-box { position: fixed; z-index: 8; left: 50%; top: 20%; transform: translateX(-50%); padding: 10px 22px 8px; border-radius: 18px; background: rgba(21,34,56,.84); color: #fff; text-align: center; pointer-events: none; white-space: nowrap; }
.travel-box[hidden] { display: none; }
.travel-box b { display: block; font: 800 24px/1.1 var(--display); color: #FFC83D; }
.travel-box small { display: block; font: 600 14px/1.3 var(--body); }

/* Phone turned sideways */
@media (orientation: landscape) and (max-height: 520px) {
  .brand b { display: none; }
  .brand { padding: 4px 6px; }
  .findbar { left: max(58px, calc(env(safe-area-inset-left, 0px) + 50px)); right: auto; width: min(320px, 40vw); top: max(6px, env(safe-area-inset-top, 0px)); }
  .find-field { height: 40px; }
  .find-field input { font-size: 15px; }
  .top { top: max(6px, env(safe-area-inset-top, 0px)); }
  .chip.strong { display: none; }
  .back { top: calc(max(6px, env(safe-area-inset-top, 0px)) + 46px); min-height: 36px; padding: 4px 13px; font-size: 13.5px; }
  .preview { top: calc(max(6px, env(safe-area-inset-top, 0px)) + 42px); }
  .fest-btn { top: calc(max(6px, env(safe-area-inset-top, 0px)) + 84px); min-height: 30px; }
  .dock { width: min(calc(100% - 24px), 660px); bottom: max(6px, env(safe-area-inset-bottom, 0px)); grid-template-columns: minmax(150px, auto) auto minmax(0, 1fr); gap: 6px; padding: 5px; }
  .dock-main, .dock-walk { min-height: 40px; font-size: 15px; }
  .dock-tabs { grid-column: auto; }
  .dock-tabs button { min-height: 40px; font-size: 13px; padding: 0 4px; }
  .town-card { bottom: calc(max(6px, env(safe-area-inset-bottom, 0px)) + 58px); padding: 3px 11px 3px; }
  .town-card b { font-size: 14px; }
  .town-card small, .town-card em, .town-card q { font-size: 11px; }
  .sheet { max-height: 94%; top: auto; bottom: 0; left: auto; right: max(10px, env(safe-area-inset-right, 0px)); width: min(400px, 56%); border-radius: var(--radius) var(--radius) 0 0; transform: translateY(110%); }
  .sheet.open { transform: none; }
  .sheet-head { padding: 8px 10px 4px 14px; }
  .sheet-head h2 { font-size: 21px; }
  .guide { top: 50%; }
  body.roam .brand { display: none; }
  .back.walk-back { top: max(8px, env(safe-area-inset-top, 0px)); }
  .back.walk-switch { top: max(8px, env(safe-area-inset-top, 0px)); left: 158px; }
  .back.walk-name { top: max(8px, env(safe-area-inset-top, 0px)); left: 236px; }
  .back.walk-clean, body.clean.roam .back.walk-clean { top: max(8px, env(safe-area-inset-top, 0px)); left: 336px; }
  body.clean.roam .back.walk-clean { left: 158px; }
  .stick { width: 108px; height: 108px; bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
  .knob { width: 48px; height: 48px; }
  .roam-hint { left: 142px; bottom: max(14px, env(safe-area-inset-bottom, 0px)); right: auto; max-width: 300px; }
  .travel-box { top: 16%; }
}

/* Two doors on the first screen */
.welcome { position: fixed; z-index: 7; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(calc(100% - 32px), 360px); max-height: calc(100% - 24px); overflow-y: auto; display: grid; gap: 9px; padding: 16px; border-radius: 20px; background: #fff; color: #1D2A2C; box-shadow: 0 14px 50px rgba(0,0,0,.4); text-align: center; }
.welcome[hidden] { display: none; }
.welcome h2 { margin: 0 0 1px; font: 800 23px/1.1 var(--display); }
.welcome button { display: grid; gap: 2px; min-height: 58px; padding: 9px 12px; border: 0; border-radius: 14px; font-family: var(--display); }
.welcome button b { font: 800 16.5px/1.15 var(--display); }
.welcome button small { font: 600 13px/1.25 var(--body); }
#wOld { background: #F6C344; color: #2A1C00; }
#wNew { background: var(--accent); color: var(--accent-ink); }
#wLook { min-height: 40px; background: transparent; color: var(--muted); font: 700 14px/1 var(--display); }
.welcome p { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
body.intro .welcome, body.video .welcome { display: none; }
@media (orientation: landscape) and (max-height: 520px) {
  .welcome { grid-template-columns: 1fr 1fr; width: min(calc(100% - 32px), 560px); padding: 12px; }
  .welcome h2, #wLook, .welcome p { grid-column: 1 / -1; }
}

.build-form { display: grid; gap: 7px; }
.build-form .walk-hits { margin: 0; }
.build-form .walk-hits:empty { display: none; }
.build-say { margin: 2px 0 0; font: 800 16.5px/1.2 var(--display); }
.me-slot { display: grid; gap: 8px; }
.me-slot:empty { display: none; }

.move-code { margin: 6px 0; padding: 14px; border-radius: 14px; background: #FFF3D6; color: #5A3B00; text-align: center; font: 800 38px/1 var(--mono); letter-spacing: .12em; }
