/* Phase 1 UX: self-hosted Yatra One + Mukta (SIL OFL 1.1), ceremonial surfaces, shell control.
   Option D final spec: latin/devanagari subsets, 22px Yatra One floor, metric-matched fallbacks. */
@font-face{
  font-family: 'Yatra One';
  src: url('fonts/YatraOne-Regular-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20B9, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: Mukta;
  src: url('fonts/Mukta-Regular-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20B9, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: Mukta;
  src: url('fonts/Mukta-SemiBold-latin.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20B9, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: 'Yatra One';
  src: url('fonts/YatraOne-Regular-devanagari.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+A8E0-A8FF;
}
@font-face{
  font-family: Mukta;
  src: url('fonts/Mukta-Regular-devanagari.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+A8E0-A8FF;
}
@font-face{
  font-family: Mukta;
  src: url('fonts/Mukta-SemiBold-devanagari.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+A8E0-A8FF;
}
@font-face{
  font-family: 'Yatra One Fallback';
  src: local('Georgia'), local('Liberation Serif'), local('Times New Roman');
  size-adjust: 100%;
  ascent-override: 99%;
  descent-override: 49%;
  line-gap-override: 0%;
}
@font-face{
  font-family: 'Mukta Fallback';
  src: local('Liberation Sans'), local('Arial'), local('Helvetica Neue'), local('Noto Sans');
  size-adjust: 89%;
  ascent-override: 113%;
  descent-override: 53%;
  line-gap-override: 0%;
}
:root{
  --f-d: 'Yatra One', 'Yatra One Fallback', Georgia, serif;
  --f-ui: Mukta, 'Mukta Fallback', system-ui, sans-serif;
  --f-b: Mukta, 'Mukta Fallback', system-ui, sans-serif;
  --f-read: Mukta, 'Mukta Fallback', system-ui, sans-serif;
  --f-num: Mukta, 'Mukta Fallback', system-ui, sans-serif;
  --spark:#C45C26;--loom-ink:#3F4A42;--journal-ink:#1F1A16;--parch-cer:#F3EEE6;
}
.wordmark,.title-xl{font-family:var(--f-d);font-weight:400;font-size:30px;line-height:1.2;letter-spacing:.01em}
.h1,.h2{font-family:var(--f-d);font-weight:400;font-size:24px;line-height:1.28;letter-spacing:.02em}
.h3,.cap,.btn,.chip,.pill,.tabs a,.prop,.v1,
.s-quiz .qc,.s-quiz .q,.quiz-q{font-family:var(--f-ui);font-weight:600}
.body,.s-intro .body,.kids-body,.intro-src,.s-verse,.setsloka,.set-about,
.depart-story p{font-family:var(--f-read);font-weight:400}
.body{font-size:15px;line-height:1.45}
.depart-story p{font-size:14.5px;line-height:1.45}
.quiz-q,.s-quiz .q{font-size:20px;line-height:1.35;font-weight:600}
.btn{font-weight:600;font-size:16px;min-height:44px}
.s-quiz .op{font-family:var(--f-ui);font-weight:600;font-size:16px;min-height:44px}
.chip,.cap,.prop,.v1,.shell-mode-btn{font-family:var(--f-ui);font-weight:600;font-size:11px;letter-spacing:.08em;text-transform:uppercase}
.intro-src,.free-hint-src,.dcredit{font-family:var(--f-read);font-weight:400;font-size:12px;line-height:1.4}
.pill,[data-testid=hud-coins],[data-testid=hud-km],[data-testid=hud-offered],[data-testid=hud-diya],
.pill b,.num,.score,[data-testid=loom-count],.coin,.kmr,.cn{
  font-family:var(--f-num);
  font-weight:600;
  font-variant-numeric:tabular-nums lining-nums;
  font-feature-settings:"tnum" 1, "lnum" 1;
}
[data-testid=hud-coins],[data-testid=hud-km],[data-testid=hud-offered],[data-testid=hud-diya],
.pill b,.num,.score,[data-testid=loom-count],.coin,.kmr,.cn{font-size:18px;line-height:1.2}

@media (max-width:360px){
  .wordmark,.title-xl{font-size:26px;line-height:1.2;letter-spacing:.01em}
  .h1,.h2{font-size:22px;line-height:1.3;letter-spacing:.025em}
  .quiz-q,.s-quiz .q{font-size:18px;line-height:1.35}
  .body{font-size:14px;line-height:1.45}
  .depart-story p{font-size:13.5px;line-height:1.45}
  [data-testid=hud-coins],[data-testid=hud-km],[data-testid=hud-offered],[data-testid=hud-diya],
  .pill b,.num,.score,[data-testid=loom-count],.coin,.kmr,.cn{font-size:16px;line-height:1.2}
  .btn{font-size:15px;min-height:42px}
  .s-quiz .op{font-size:15px;min-height:42px}
  .chip,.cap,.prop,.v1,.shell-mode-btn{font-size:10.5px;letter-spacing:.08em}
  .intro-src,.free-hint-src,.dcredit{font-size:11.5px;line-height:1.4}
  .shell-mode-btn{padding:0 8px;height:24px}
}
html.lg .wordmark,html.lg .title-xl{font-size:34px;line-height:1.2;letter-spacing:.01em}
html.lg .h1,html.lg .h2{font-size:28px;line-height:1.28;letter-spacing:.02em}
html.lg .quiz-q,html.lg .s-quiz .q{font-size:22px;line-height:1.35}
html.lg .body{font-size:16.5px;line-height:1.45}
html.lg .depart-story p{font-size:16px;line-height:1.45}
html.lg [data-testid=hud-coins],html.lg [data-testid=hud-km],html.lg [data-testid=hud-offered],html.lg [data-testid=hud-diya],
html.lg .pill b,html.lg .num,html.lg .score,html.lg [data-testid=loom-count],html.lg .coin,html.lg .kmr,html.lg .cn{font-size:20px;line-height:1.2}
html.lg .btn{font-size:18px;min-height:52px}
html.lg .s-quiz .op{font-size:18px;min-height:52px}
html.lg .chip,html.lg .cap,html.lg .prop,html.lg .v1,html.lg .shell-mode-btn{font-size:12px}
html.lg .intro-src,html.lg .free-hint-src,html.lg .dcredit{font-size:13.5px;line-height:1.4}
@media (max-width:360px){
  html.lg .wordmark,html.lg .title-xl{font-size:28px}
  html.lg .h1,html.lg .h2{font-size:24px;line-height:1.3;letter-spacing:.025em}
  html.lg .quiz-q,html.lg .s-quiz .q{font-size:20px}
  html.lg .body{font-size:16px}
  html.lg .depart-story p{font-size:15.5px}
  html.lg [data-testid=hud-coins],html.lg [data-testid=hud-km],html.lg [data-testid=hud-offered],html.lg [data-testid=hud-diya],
  html.lg .pill b,html.lg .num,html.lg .score,html.lg [data-testid=loom-count],html.lg .coin,html.lg .kmr,html.lg .cn{font-size:18px}
  html.lg .btn{font-size:17px;min-height:50px}
  html.lg .s-quiz .op{font-size:17px;min-height:50px}
  html.lg .chip,html.lg .cap,html.lg .prop,html.lg .v1,html.lg .shell-mode-btn{font-size:11.5px}
  html.lg .intro-src,html.lg .free-hint-src,html.lg .dcredit{font-size:13px}
}

.shell-mode{position:absolute;top:calc(4px + env(safe-area-inset-top,0px));right:8px;left:auto;z-index:28;display:flex;gap:0;pointer-events:auto;background:var(--card,#FFFDF8);border:1.5px solid var(--line,#E8D8BC);border-radius:99px;box-shadow:var(--sh-1,0 1px 4px rgba(80,40,10,.08));overflow:hidden}
.shell-mode-btn{height:26px;padding:0 10px;border:0;background:transparent;font:600 11px var(--f-ui);color:var(--ink-2,#6B5444);cursor:pointer}
.shell-mode-btn.on{background:var(--peacock,#0F6E6E);color:#fff}
#app:has(.s-map) .shell-mode{left:8px;right:auto;top:calc(6px + env(safe-area-inset-top,0px));z-index:28}
/* Leave a clear gap for the Kids/Adult control so festival chips are not crowded at 317 px. Layout only — no font change. */
.s-map .fstrip,.s-map.hud2 .fstrip{left:126px;right:12px}
.s-quiz{position:relative}
.shell-gate{position:absolute;inset:0;z-index:40;background:rgba(31,26,22,.45);display:flex;align-items:center;justify-content:center;padding:18px}
.shell-gate-card{position:relative;background:var(--parch-cer);color:#1F1A16;border-radius:20px;padding:22px 18px 16px;max-width:320px;width:100%;box-shadow:0 10px 28px rgba(31,26,22,.25)}
.shell-gate-card .iconbtn{position:absolute;top:10px;left:10px}
.shell-gate-card b{display:block;text-align:center;margin:4px 0 8px;font:600 16px var(--f-ui)}
.shell-gate-card p,.shell-gate-card .q{font-family:var(--f-read);text-align:center;margin:0 0 10px}
.shell-gate-card .kp{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.shell-gate-card .kp button{min-width:64px;height:40px;border-radius:12px;border:1.5px solid var(--line);background:#fff;font:600 16px var(--f-num);cursor:pointer}

.depart-story{margin:0 0 10px;padding:10px 12px;border-radius:14px;background:var(--parch-cer);border:1px solid rgba(31,26,22,.12);color:#1F1A16}
.depart-story .cap{margin-bottom:4px}
.depart-story p{margin:0;font:400 13.5px/1.45 var(--f-read)}
.depart-story .intro-src{margin-top:6px;font-size:11px;color:var(--ink-3)}

.fest-banner{margin:0 0 6px;padding:4px 8px;border-radius:10px;background:var(--parch-cer);border:1px solid rgba(31,26,22,.14);color:#1F1A16;font:600 13px var(--f-ui);display:flex;flex-direction:column;gap:0}
.fest-banner small{font:400 12px/1.4 var(--f-read);font-weight:400;color:var(--ink-2);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}
.sheet-go{position:sticky;bottom:0;z-index:3;background:var(--card,#FFFDF8);padding:6px 0 calc(8px + env(safe-area-inset-bottom,0px));box-shadow:0 -10px 16px -12px rgba(80,40,10,.2)}
@media (max-width:420px){
  .fest-banner{margin:0 0 4px;padding:3px 8px}
  .fest-banner small{display:none}
  .depart-story{margin:0 0 4px;padding:6px 10px}
  .depart-story p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
  .depart-story .intro-src{display:none}
}

path[data-yatra-path="travelled"]{stroke:#1F1A16;stroke-opacity:.72}
path[data-yatra-path="planned"],path[data-yatra-path="option"]{stroke:#1F1A16}
.yatra-path path.pulse{animation:yatraPulse 2.8s ease-in-out infinite}
@keyframes yatraPulse{0%,100%{stroke-opacity:.55}50%{stroke-opacity:.9}}
@media (prefers-reduced-motion:reduce){.yatra-path path.pulse{animation:none}}
html.kids .yatra-path path.pulse,html.calm .yatra-path path.pulse{animation:none}

.gnana-spark{pointer-events:none;position:absolute;top:0;right:0;bottom:0;width:32%;max-width:220px;z-index:8;background:linear-gradient(90deg,transparent,rgba(196,92,38,.55));display:flex;align-items:center;justify-content:flex-end;padding:0 14px}
.gnana-spark .spark-label{font:400 22px/1.1 var(--f-d);color:#C45C26;text-align:right;text-shadow:0 0 12px rgba(196,92,38,.35)}
.gnana-spark .spark-dot{position:absolute;width:6px;height:6px;border-radius:50%;background:#C45C26;opacity:.85;animation:sparkRise 1.6s ease-out forwards}
@keyframes sparkRise{0%{transform:translateY(40px);opacity:.9}100%{transform:translateY(-120px);opacity:0}}
@media (prefers-reduced-motion:reduce){.gnana-spark .spark-dot{display:none;animation:none}.gnana-spark{background:linear-gradient(90deg,transparent,rgba(196,92,38,.4))}}
.s-quiz.kidsq .gnana-spark{opacity:.9}

.free-hint{margin:8px 16px 0;padding:0 4px;font:600 14px/1.4 var(--f-read);color:#8A3B0C}
.free-hint-src{margin-top:4px;color:#6B4A2A}
.s-quiz .fb .hint{margin-left:16px;margin-right:16px}
.op.soft-miss{opacity:.55}

.scr.s-loom.tex,.scr.tex.s-loom{
  background:
    radial-gradient(circle at 20% 10%,#fff8ea 0,transparent 40%),
    radial-gradient(circle at 90% 80%,#f5e4c4 0,transparent 45%),
    #F3EEE6;
  color:#1F1A16;
}
.s-loom{overflow:auto;padding:12px 18px 28px;color:#1F1A16}
.s-loom .h1,.s-loom .h3{color:#1F1A16}
.s-loom .body,.s-loom .cap{color:#3A2A1C}
.loom-wrap{max-width:420px;margin:12px auto;text-align:center;background:rgba(255,253,248,.84);border:1px solid rgba(31,26,22,.16);border-radius:22px;padding:16px 16px 20px;box-shadow:0 8px 24px rgba(80,40,10,.06)}
.loom-wrap .body{margin:6px 0 14px}
.loom-svg{width:min(72vw,280px);height:auto;display:block;margin:0 auto 12px}
.s-loom.quiet .loom-svg{filter:none}

.weave{margin-top:8px;width:min(92%,340px);text-align:center}
.weave-lead{font:600 12px/1.4 var(--f-read);color:var(--ink-2);margin:0 0 6px}
.weave-stage{background:var(--parch-cer);border-radius:16px;border:1px solid rgba(31,26,22,.14);padding:6px}
.weave-guide{stroke:#1F1A16;stroke-opacity:.3;stroke-dasharray:5 7;fill:none;stroke-width:2;stroke-linecap:round}
.weave-bead{fill:#C45C26;stroke:#3F4A42;stroke-width:1}
.weave-tray{display:flex;justify-content:center;gap:6px;min-height:28px;margin-top:4px}
.weave-tray span{font-size:18px}
.petal-rain{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.petal-rain i{position:absolute;top:-8px;font-size:16px;animation:petalFall 1.4s linear forwards}
@keyframes petalFall{to{transform:translateY(110%) rotate(40deg);opacity:.2}}
@media (prefers-reduced-motion:reduce){.petal-rain i{animation:none;opacity:.7}}
.weave-stamp{margin-top:6px;font:600 13px var(--f-ui);color:#1F1A16}

.share-pop{position:absolute;inset:0;z-index:30;background:rgba(31,26,22,.4);display:flex;align-items:center;justify-content:center;padding:16px}
.share-card{background:var(--parch-cer);border:6px solid #1F1A16;border-radius:8px;max-width:360px;width:100%;overflow:auto;max-height:90%}
.share-card img{display:block;width:100%;height:auto}
.share-actions{display:flex;gap:8px;padding:10px}
.share-note{padding:0 12px 12px;font:600 12px/1.4 var(--f-read);color:var(--ink-2)}

.lamp-tend{display:inline-flex;align-items:center;gap:6px;margin:8px auto 0;padding:4px 10px;border-radius:99px;border:1.5px solid #3F4A42;color:#3F4A42;font:600 12px var(--f-ui);background:#F3EEE6}
.s-streak .lamp.fade{filter:grayscale(.7);opacity:.7;transition:opacity .6s ease,filter .6s ease}
@media (prefers-reduced-motion:reduce){.s-streak .lamp.fade{transition:none}}

