#jdm-baghchal-app {
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  overflow: auto;
  background:
    radial-gradient(circle at 50% -10%, rgba(243,209,123,.22), transparent 35%),
    linear-gradient(180deg,#241812 0%,#342319 48%,#18110e 100%);
  color: #fff7e8;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
#jdm-baghchal-app[hidden] { display:none; }
.jbc-shell { min-height:100%; max-width:720px; margin:0 auto; padding: max(12px, env(safe-area-inset-top)) 16px calc(30px + env(safe-area-inset-bottom)); }
.jbc-topbar { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
.jbc-iconbtn, .jbc-btn { border:1px solid rgba(255,231,184,.32); color:#fff7e8; background:rgba(255,255,255,.07); border-radius:999px; min-height:44px; padding:0 16px; font:inherit; font-weight:700; cursor:pointer; }
.jbc-iconbtn { width:46px; padding:0; font-size:24px; }
.jbc-btn--gold { background:linear-gradient(180deg,#f5d98f,#d7aa4d); color:#3b2512; border-color:#ffefba; box-shadow:0 8px 20px rgba(0,0,0,.22); }
.jbc-head { text-align:center; margin:6px 0 16px; }
.jbc-kicker { letter-spacing:.28em; text-transform:uppercase; color:#e8c989; font-size:12px; font-weight:800; }
.jbc-title { margin:4px 0 2px; font-family: Georgia, "Times New Roman", serif; font-size:clamp(42px,11vw,72px); line-height:.95; color:#fff4d5; }
.jbc-subtitle { margin:10px auto 0; max-width:500px; color:#d8c9b8; font-size:15px; line-height:1.5; }
.jbc-card { background:rgba(255,249,237,.07); border:1px solid rgba(255,236,198,.18); border-radius:28px; padding:14px; box-shadow:0 24px 55px rgba(0,0,0,.24); backdrop-filter:blur(7px); }
.jbc-status { display:grid; grid-template-columns:1fr auto; gap:8px 12px; align-items:center; margin-bottom:12px; }
.jbc-turn { font-weight:800; font-size:17px; color:#fff3cf; }
.jbc-counter { font-size:14px; color:#d7c7b5; text-align:right; }
.jbc-message { grid-column:1/-1; color:#e8dccb; min-height:24px; font-size:14px; }
.jbc-coach { grid-column:1/-1; border:1px solid rgba(230,214,177,.25); border-radius:14px; padding:9px 12px; color:#f2e6d0; background:rgba(255,255,255,.06); font-size:13px; line-height:1.45; }
.jbc-board-wrap { position:relative; width:min(92vw,560px); margin:0 auto; aspect-ratio:1; border-radius:26px; overflow:hidden; background:
 radial-gradient(circle at 50% 40%,rgba(255,235,183,.14),transparent 45%),
 linear-gradient(145deg,#9f7040,#69451f 60%,#4b3019);
 box-shadow:inset 0 0 0 2px rgba(255,222,155,.38), inset 0 0 45px rgba(24,12,5,.5),0 18px 35px rgba(0,0,0,.3); }
.jbc-board-wrap::before { content:""; position:absolute; inset:0; opacity:.22; background-image:repeating-linear-gradient(12deg,transparent 0 8px,rgba(255,255,255,.07) 9px,transparent 10px 18px); pointer-events:none; }
.jbc-svg { position:absolute; inset:0; width:100%; height:100%; }
.jbc-line { stroke:#e5bd71; stroke-width:1.8; opacity:.82; vector-effect:non-scaling-stroke; }
.jbc-node { position:absolute; width:13.5%; aspect-ratio:1; transform:translate(-50%,-50%); border:0; border-radius:50%; background:transparent; padding:0; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.jbc-node::before { content:""; position:absolute; left:50%; top:50%; width:10px; height:10px; transform:translate(-50%,-50%); border-radius:50%; background:#f4d48f; box-shadow:0 0 0 3px rgba(69,38,14,.5); transition:.18s ease; }
.jbc-node.jbc-target::before { width:20px; height:20px; background:#f7e5aa; box-shadow:0 0 0 5px rgba(255,225,140,.2),0 0 18px rgba(255,226,147,.65); }
.jbc-node.jbc-selected::before { width:23px; height:23px; background:#fff2b5; }
.jbc-piece { position:absolute; inset:7%; border-radius:50%; display:grid; place-items:center; box-shadow:0 7px 12px rgba(0,0,0,.34),inset 0 2px 2px rgba(255,255,255,.32); font-size:clamp(22px,6vw,38px); line-height:1; transition:transform .2s ease, box-shadow .2s ease; }
.jbc-piece--tiger { background:radial-gradient(circle at 35% 27%,#ffd477,#d77b24 47%,#7a310f 100%); border:2px solid #ffe3a0; }
.jbc-piece--goat { background:radial-gradient(circle at 35% 27%,#fffdf3,#d9cdb8 56%,#806f5b 100%); border:2px solid #fff7de; }
.jbc-node.jbc-selected .jbc-piece { transform:scale(1.1) translateY(-2px); box-shadow:0 10px 18px rgba(0,0,0,.42),0 0 0 4px rgba(255,226,142,.6); }
.jbc-node.jbc-last .jbc-piece { box-shadow:0 10px 18px rgba(0,0,0,.4),0 0 0 5px rgba(255,214,105,.5),0 0 24px rgba(255,214,105,.5); }
.jbc-legend { display:flex; justify-content:center; flex-wrap:wrap; gap:10px 16px; margin:14px 0 4px; color:#d5c5b0; font-size:13px; }
.jbc-legend strong { color:#fff0c6; }
.jbc-actions { display:flex; gap:10px; justify-content:center; margin-top:15px; flex-wrap:wrap; }
.jbc-modal { position:fixed; inset:0; z-index:2147482500; display:grid; place-items:center; padding:18px; background:rgba(13,8,5,.76); backdrop-filter:blur(7px); }
.jbc-modal[hidden] { display:none; }
.jbc-modal__box { width:min(92vw,560px); max-height:84vh; overflow:auto; border-radius:28px; background:#fff8eb; color:#2f261e; padding:22px; box-shadow:0 24px 80px rgba(0,0,0,.48); }
.jbc-modal h2 { margin:0 0 10px; font-family:Georgia,serif; font-size:34px; color:#183c2d; }
.jbc-modal p,.jbc-modal li { line-height:1.55; }
.jbc-modal ul { padding-left:20px; }
.jbc-result { text-align:center; }
.jbc-result__mark { font-size:58px; margin:4px 0; }
.jbc-result h2 { font-size:38px; }
.jbc-result__why { font-size:17px; background:#f1e6d0; border-radius:18px; padding:13px 14px; }
.jbc-toast { position:fixed; left:50%; bottom:calc(24px + env(safe-area-inset-bottom)); transform:translateX(-50%) translateY(30px); z-index:2147482600; background:#fff5d9; color:#392716; padding:11px 16px; border-radius:999px; font-weight:750; box-shadow:0 12px 30px rgba(0,0,0,.34); opacity:0; transition:.2s ease; pointer-events:none; max-width:88vw; text-align:center; }
.jbc-toast.show { opacity:1; transform:translateX(-50%) translateY(0); }
.jbc-nav-added { white-space:nowrap !important; flex:0 0 auto !important; }
@media (max-width:520px) {
  .jbc-shell { padding-left:10px; padding-right:10px; }
  .jbc-card { border-radius:22px; padding:10px; }
  .jbc-board-wrap { width:min(96vw,520px); border-radius:20px; }
  .jbc-node { width:15%; }
}
@media (prefers-reduced-motion: reduce) { .jbc-node::before,.jbc-piece,.jbc-toast { transition:none; } }
.jbc-result__reward { margin:10px 0 0; border-radius:18px; padding:12px 14px; background:rgba(218,181,91,.18); border:1px solid rgba(192,145,48,.28); color:#5c431f; font-weight:700; line-height:1.45; }
#jdm-nepal-garden { scroll-margin-top:18px; }

@media(max-width:639px){
 .jbc-shell{padding-left:6px;padding-right:6px}
 .jbc-topbar{margin-bottom:5px}.jbc-head{margin:5px 0 8px}
 .jbc-kicker{font-size:10px}.jbc-title{font-size:29px;line-height:1.1}
 .jbc-subtitle{margin-top:5px;font-size:13px;line-height:1.35}
 .jbc-card{padding:8px 0;border-radius:18px}
 .jbc-status{margin:0 8px 8px;gap:6px}
 .jbc-turn{font-size:15px}.jbc-message{min-height:20px;font-size:13px}
 .jbc-coach{padding:7px 9px;font-size:12px}
 .jbc-board-wrap{width:100%;max-width:none;border-radius:16px}
 .jbc-node{width:15%}.jbc-legend{margin:10px 5px 0;font-size:12px}
 .jbc-actions{margin-top:10px;gap:6px}
}

@media(max-width:639px){.jbc-status{grid-template-columns:1fr;gap:5px}.jbc-counter{text-align:left;font-size:12px}.jbc-turn{font-size:14px}.jbc-coach{margin:10px 8px 0}}
