/* The topic journey (v3 topic page): site/_shared/journey.js. Loaded after notes.css; uses its colour tokens. */
body.lock { overflow: hidden; }
.jpage [hidden], .jr [hidden] { display: none !important; }
body.jpage { padding-bottom: 84px; }
.jwrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* top bar */
.jbar { position: sticky; top: 0; z-index: 20; background: rgba(250,246,238,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.jbar .jwrap { display: flex; align-items: center; gap: 8px; height: 54px; }
.jbar a.back { text-decoration: none; color: var(--ink); font-weight: 700; white-space: nowrap; }
.jbar .sp { flex: 1; }
#jtop { display: flex; gap: 6px; align-items: center; }
.chip { font: 700 15px/1 var(--font); background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 11px; color: var(--ink); white-space: nowrap; }
.chip.xp { background: var(--gold-bg); border-color: #f1dea4; color: var(--gold); }
button.chip { cursor: pointer; }

/* buttons with a little depth */
.jbtn { font: 700 17.5px/1.3 var(--font); border: 0; border-radius: 16px; padding: 13px 18px; background: var(--ink); color: #fff; box-shadow: 0 4px 0 #0b0f18; cursor: pointer; transition: transform .08s, box-shadow .08s; width: 100%; }
.jbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 #0b0f18; }
.jbtn.go { background: var(--mint); box-shadow: 0 4px 0 #115a3b; }
.jbtn.go:active { box-shadow: 0 1px 0 #115a3b; }
.jbtn.ghost { background: var(--card); color: var(--ink); box-shadow: 0 4px 0 var(--line); border: 1.5px solid var(--line); }
.jbtn.sm { width: auto; font-size: 16px; padding: 9px 16px; border-radius: 13px; }
.jbtn.big { font-size: 19px; padding: 15px 18px; }
.jbtn[disabled] { background: #d9d3c5; color: #8d8779; box-shadow: 0 4px 0 #c4bdac; cursor: default; }

/* views + bottom tabs */
.jview[hidden] { display: none; }
.jtabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
.jtabs div { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.jtabs button { border: 0; background: none; border-radius: 14px; padding: 6px 2px 4px; font: 600 12.5px/1.3 var(--font); color: var(--muted); display: grid; justify-items: center; gap: 1px; cursor: pointer; }
.jtabs button i { font-style: normal; font-size: 22px; line-height: 1.1; filter: grayscale(.9); opacity: .7; transition: transform .15s; }
.jtabs button.on { color: var(--ink); background: var(--soft); }
.jtabs button.on i { filter: none; opacity: 1; transform: scale(1.12); }

/* hero */
.jhero { margin: 14px 0 6px; background: linear-gradient(160deg, #fff 0%, #fdf3e4 100%); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.jhero .pic img { width: 100%; height: auto; aspect-ratio: 5/2; object-fit: cover; display: block; }
.jhero .tx { padding: 12px 16px 16px; }
.jhero .kicker { font-size: 13.5px; }
.jhero h1 { font-size: 25px; line-height: 1.35; margin: 2px 0 4px; }
.jhero p { margin: 0 0 12px; font-size: 16.5px; line-height: 1.65; }
.jprog { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.jpbar { flex: 1; height: 10px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.jpbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), #3bb381); border-radius: 99px; transition: width .5s ease; }
.jall { background: var(--mint-bg); border-radius: 14px; padding: 10px 14px; font-weight: 600; }

/* the path */
.jh { font-size: 20px; margin: 22px 0 2px; }
.jsub { color: var(--muted); font-size: 15px; margin: 0 0 6px; }
#jpath { position: relative; padding: 8px 0 4px; }
.jline { position: absolute; inset: 0; width: 100%; pointer-events: none; }
.jline path { fill: none; stroke: #d8d0bd; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 2 13; }
.jline path.on { stroke: var(--mint); stroke-dasharray: none; opacity: .55; }
.jnode { position: relative; display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding-left: calc(34px + var(--o) * 26px); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.jball { position: relative; flex: none; width: 76px; height: 76px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 6px 0 var(--line), inset 0 0 0 3px var(--lc); font-size: 32px; cursor: pointer; transition: transform .1s; }
.jball span { display: block; line-height: 76px; }
.jnode:active .jball { transform: translateY(4px); }
.jnode.is-done .jball { background: var(--mint); box-shadow: 0 6px 0 #115a3b; color: #fff; font-weight: 700; }
.jnode.is-next .jball { background: var(--lc); box-shadow: 0 6px 0 rgba(0,0,0,.28), 0 0 0 7px color-mix(in srgb, var(--lc) 22%, transparent); animation: jpulse 1.6s ease-in-out infinite; }
.jnode.is-next .jball span { filter: drop-shadow(0 1px 0 rgba(0,0,0,.2)); }
.jball em { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); background: var(--ink); color: #fff; font: 700 13px/1 var(--font); padding: 6px 10px; border-radius: 10px; white-space: nowrap; animation: jbob 1.4s ease-in-out infinite; }
.jball em::after { content: ''; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--ink); border-bottom: 0; }
.jnode.is-next { margin-top: 30px; }
.jinfo { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 7px 12px 8px; line-height: 1.45; flex: 1; max-width: 320px; }
.jinfo small { display: block; font-size: 12px; font-weight: 700; color: var(--lc); letter-spacing: .02em; }
.jinfo b { display: block; font-size: 17.5px; }
.jinfo span { display: block; font-size: 14px; color: var(--muted); }
.jinfo .jst { font-style: normal; display: block; font-size: 13px; color: var(--gold); font-weight: 700; letter-spacing: 1px; margin-top: 1px; }
@keyframes jpulse { 50% { box-shadow: 0 6px 0 rgba(0,0,0,.28), 0 0 0 13px color-mix(in srgb, var(--lc) 10%, transparent); } }
@keyframes jbob { 50% { transform: translate(-50%, -4px); } }
.jteasers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 20px; }
.jteasers button { text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 12px; font: 600 15.5px/1.45 var(--font); color: var(--ink); cursor: pointer; box-shadow: var(--shadow); }
.jteasers button i { font-style: normal; font-size: 24px; display: block; }
.jteasers button small { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; }

/* ---------- the level runner ---------- */
.jr { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; grid-template-rows: auto 1fr auto; animation: rise .2s ease; }
.jr-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px 6px; max-width: 760px; width: 100%; margin: 0 auto; }
.jr .x { border: 0; background: var(--soft); width: 36px; height: 36px; border-radius: 50%; font-size: 16px; cursor: pointer; color: var(--ink); flex: none; }
.segs { flex: 1; display: flex; gap: 4px; }
.segs i { flex: 1; height: 7px; border-radius: 99px; background: #e4dccb; transition: background .3s; }
.segs i.on { background: var(--lc, var(--mint)); } .segs i.now { background: color-mix(in srgb, var(--lc, var(--mint)) 45%, #e4dccb); }
.jr-body { overflow-y: auto; padding: 6px 16px 18px; max-width: 760px; width: 100%; margin: 0 auto; }
.jr-card { animation: jin .28s ease; }
@keyframes jin { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.jr-bot { padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); background: rgba(250,246,238,.97); border-top: 1px solid var(--line); }
.jr-bot .jbtn { max-width: 728px; margin: 0 auto; display: block; }
.jr-bot.two { display: flex; gap: 10px; justify-content: center; } .jr-bot.two .jbtn { margin: 0; flex: 1; max-width: 360px; font-size: 16px; }
.jr-bot.two .jbtn.ghost { flex: .6; }

/* story card */
.story-card { cursor: pointer; background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.st-pic img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; display: block; }
.st-txt { padding: 14px 18px 20px; }
.st-txt b { font-size: 24px; color: var(--lc); }
.st-txt p { margin: 4px 0 0; font-size: 19px; line-height: 1.7; }

/* say card: free html, with a few infographic helpers */
.say-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px 18px; box-shadow: var(--shadow); font-size: 17.5px; }
.say-card h3 { margin: 0 0 8px; font-size: 21px; }
.say-card p { margin: 6px 0; }
.maprows { display: grid; gap: 8px; margin: 10px 0 2px; }
.maprows div { display: grid; grid-template-columns: 1fr 22px 1fr; align-items: center; gap: 6px; background: var(--soft); border-radius: 14px; padding: 9px 12px; font-weight: 600; }
.maprows div i { font-style: normal; color: var(--muted); text-align: center; }
.maprows div b { color: var(--lc, var(--peach)); }
.recap { display: grid; gap: 8px; margin-top: 8px; }
.recap > div { display: grid; grid-template-columns: 74px 1fr; gap: 10px; align-items: center; background: var(--soft); border-radius: 14px; padding: 6px 10px 6px 6px; }
.recap svg { background: #fff; border-radius: 10px; }
.recap b { display: block; color: var(--peach); } .recap span { font-size: 15px; line-height: 1.5; display: block; }

/* question block */
.ask { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px; box-shadow: var(--shadow); }
.sim-gate .ask { border: 2px solid var(--gold); background: var(--gold-bg); box-shadow: none; padding: 12px 14px; animation: pop .3s ease; }
.ask-fig { background: var(--soft); border-radius: 16px; padding: 8px; margin-bottom: 12px; }
.ask-fig svg { max-width: 230px; margin: 0 auto; }
.ask-q { font-weight: 700; font-size: 19px; line-height: 1.55; }
.ask-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.ask-opts.long { grid-template-columns: 1fr; }
.ask-opts button, .tf-row button, .lab-chips button { font: 600 16.5px/1.4 var(--font); border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 11px 10px; color: var(--ink); box-shadow: 0 3px 0 var(--line); cursor: pointer; transition: transform .08s; }
.ask-opts button:active, .tf-row button:active, .lab-chips button:active { transform: translateY(2px); }
.ask-opts .right, .tf-row .right, .lab-chips .right { border-color: var(--mint); background: var(--mint-bg); box-shadow: 0 3px 0 #a9dcc3; }
.ask-opts .wrong, .tf-row .wrong, .lab-chips .wrong { border-color: var(--rose); background: var(--rose-bg); box-shadow: 0 3px 0 #f0b9c2; animation: shake .3s; }
.ask-why { display: none; margin-top: 12px; background: var(--soft); border-radius: 14px; padding: 10px 12px; font-size: 16px; line-height: 1.65; }
.ask-why.on { display: block; animation: rise .25s ease; }
.ask-why b.ok { color: var(--mint); } .ask-why b.no { color: var(--rose); }
.ask-why .go { display: block; margin: 10px 0 0 auto; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes pop { 0% { transform: scale(.9); opacity: 0; } 60% { transform: scale(1.03); } 100% { transform: scale(1); opacity: 1; } }

/* true / false */
.tfq { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px 16px; box-shadow: var(--shadow); }
.tf-k { font-size: 13.5px; font-weight: 700; color: var(--lc); letter-spacing: .03em; }
.tf-s { font-size: 21px; font-weight: 700; line-height: 1.6; margin: 6px 0 16px; }
.tf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tf-row button { font-size: 19px; padding: 14px; }

/* the simulation */
.sim { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 12px 14px 14px; box-shadow: var(--shadow); }
.sim-top { display: flex; justify-content: space-between; align-items: center; gap: 6px 8px; min-height: 36px; flex-wrap: wrap; }
.sim-top .seg button { padding: 3px 11px; font-size: 14px; font-family: inherit; cursor: pointer; }
.sim-stage { white-space: nowrap; }
.sim-stage { font-weight: 700; font-size: 18.5px; color: #fff; background: var(--peach); border-radius: 999px; padding: 2px 16px; }
.sim-stage[data-s=meta] { background: var(--sky); } .sim-stage[data-s=telo] { background: var(--lilac); } .sim-stage[data-s=cyto] { background: var(--mint); }
.sim-stage.pop { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.14); } }
.sim-fig svg { width: 100%; height: auto; max-width: 520px; margin: 0 auto; }
.sim-say { min-height: 3.5em; font-size: 16.5px; line-height: 1.65; background: var(--soft); border-radius: 14px; padding: 8px 12px; }
.sim-ctl { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; }
.sim-play { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 17px; box-shadow: 0 4px 0 #0b0f18; cursor: pointer; }
.sim-play:active { transform: translateY(3px); box-shadow: 0 1px 0 #0b0f18; }
.sim-track { flex: 1; min-width: 0; padding-top: 6px; }
.sim input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: none; margin: 0; --p: 0%; }
.sim input[type=range]::-webkit-slider-runnable-track { height: 14px; border-radius: 99px; background: linear-gradient(90deg, var(--mint) var(--p), #e4dccb var(--p)); }
.sim input[type=range]::-moz-range-track { height: 14px; border-radius: 99px; background: #e4dccb; }
.sim input[type=range]::-moz-range-progress { height: 14px; border-radius: 99px; background: var(--mint); }
.sim input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: -10px; border-radius: 50%; background: #fff; border: 4px solid var(--mint); box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.sim input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 4px solid var(--mint); box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.sim-ticks { display: flex; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.sim-ticks span { text-align: center; border-left: 1.5px solid var(--line); overflow: hidden; white-space: nowrap; }
.sim-ticks span:first-child { border-left: 0; }
.sim-hint { margin-top: 10px; font-size: 15.5px; font-weight: 600; color: var(--teal); }
.sim-gate { margin-top: 10px; }
.sim-gate:empty { display: none; }

/* draw along */
.draw, .lab, .cqt { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 14px 16px 16px; box-shadow: var(--shadow); }
.draw-k { font-size: 13.5px; font-weight: 700; color: var(--lc); }
.draw-fig { background: repeating-linear-gradient(#fffdf7 0 27px, #dfe7f1 27px 28px); border: 1px solid var(--line); border-radius: 12px; margin: 8px 0; }
.draw-fig svg { width: 100%; height: auto; max-width: 520px; margin: 0 auto; }
.dl path, .dl line, .dl circle, .dl rect, .dl ellipse { stroke-dasharray: 1; stroke-dashoffset: 1; animation: jdraw .7s ease forwards; }
.dl text { opacity: 0; animation: jfade .4s .5s forwards; }
@keyframes jdraw { to { stroke-dashoffset: 0; } }
@keyframes jfade { to { opacity: 1; } }
.draw-say { font-size: 17.5px; line-height: 1.7; min-height: 4.6em; }
.draw-say b { color: var(--lc); font-size: 20px; }
.draw-dots { display: flex; gap: 5px; margin: 4px 0 12px; }
.draw-dots i { width: 22px; height: 6px; border-radius: 99px; background: #e4dccb; } .draw-dots i.on { background: var(--lc); }

/* label the figure */
.lab-q { font-weight: 700; font-size: 18.5px; }
.lab-q b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lc); color: #fff; }
.lab-fig svg { width: 100%; height: auto; max-width: 560px; margin: 0 auto; }
.pin .b { fill: #fff; stroke: #b9b1a0; stroke-width: 2; }
.pin .n { font: 700 14px var(--font); fill: var(--muted); }
.pin .nm { font: 600 14.5px var(--font); fill: var(--mint); }
.pin.now .b { fill: var(--lc); stroke: var(--lc); animation: pinp 1s ease-in-out infinite; } .pin.now .n { fill: #fff; }
.pin.done .b { fill: var(--mint); stroke: var(--mint); } .pin.done .n { fill: #fff; }
@keyframes pinp { 50% { stroke-width: 7; stroke-opacity: .35; } }
.lab-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.lab-chips button { padding: 8px 12px; font-size: 15.5px; }
.lab-chips button[disabled] { opacity: .55; cursor: default; }

/* creative question trainer */
.cqt-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cqt-k { background: var(--lc); color: #fff; font-weight: 700; border-radius: 999px; padding: 1px 14px; font-size: 15.5px; }
.cqt-ex { font-size: 12.5px; background: var(--sky-bg); color: var(--sky); border-radius: 6px; padding: 1px 7px; font-weight: 600; }
.cqt-stem { background: var(--soft); border-radius: 14px; padding: 10px 12px; margin: 10px 0 8px; font-size: 16px; line-height: 1.65; }
.cqt-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.cqt-figs div { background: #fff; border-radius: 10px; padding: 4px; text-align: center; font-weight: 700; font-size: 14px; }
.cqt-q { font-weight: 700; font-size: 18.5px; line-height: 1.6; }
.cqt-tip { margin: 10px 0 12px; border-left: 4px solid var(--lc); background: #fffaf3; border-radius: 0 12px 12px 0; padding: 8px 12px; font-size: 16px; }
.cqt-h { font-size: 13.5px; font-weight: 700; color: var(--muted); letter-spacing: .02em; margin: 14px 0 6px; }
.cqt .ans { background: var(--mint-bg); border-radius: 14px; padding: 4px 14px; font-size: 16.5px; }
.cqt .ans ol { list-style-type: bengali; padding-left: 1.4em; } .cqt .ans .fig svg { max-width: 340px; margin: 0 auto; }
.cqt-pts { display: grid; gap: 7px; }
.cqt-pts button { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: center; text-align: left; font: 600 16px/1.5 var(--font); border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 9px 10px; color: var(--ink); cursor: pointer; }
.cqt-pts button i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; font-weight: 700; }
.cqt-pts button.on { border-color: var(--mint); background: var(--mint-bg); } .cqt-pts button.on i { background: var(--mint); border-color: var(--mint); color: #fff; }
.cqt-score { margin-top: 10px; font-size: 16px; background: var(--gold-bg); border-radius: 12px; padding: 8px 12px; }

/* level end */
.jr-end { position: relative; text-align: center; padding: 34px 8px 10px; overflow: hidden; }
.end-ic { font-size: 54px; line-height: 1.2; }
.end-stars { font-size: 50px; letter-spacing: 6px; color: var(--gold); line-height: 1.2; animation: pop .5s ease; }
.jr-end h2 { font-size: 27px; margin: 4px 0 0; }
.jr-end p { margin: 4px 0; } .end-sc { font-weight: 700; color: var(--muted); }
.end-xp { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 21px; background: var(--gold-bg); color: var(--gold); border-radius: 999px; padding: 6px 20px; animation: pop .5s .25s ease both; }
.end-xp small { font-size: 13.5px; font-weight: 600; opacity: .85; margin-left: 6px; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -12px; left: var(--x); width: 9px; height: 14px; background: var(--c); border-radius: 2px; opacity: .9; animation: fall 1.8s var(--d) ease-in forwards; }
@keyframes fall { to { transform: translateY(520px) rotate(540deg); opacity: 0; } }

/* ---------- "at a glance" view ---------- */
.gl-h { font-size: 22px; margin: 16px 0 2px; }
.gl-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 8px; }
.gl-strip button { hyphens: manual; overflow-wrap: anywhere; border: 2px solid var(--line); background: var(--card); border-radius: 14px; padding: 4px 2px 6px; font: 700 12.5px/1.3 var(--font); color: var(--muted); cursor: pointer; position: relative; }
.gl-strip button svg { width: 100%; height: auto; }
.gl-strip button.on { border-color: var(--peach); color: var(--peach); background: #fffaf3; box-shadow: 0 4px 0 #f5d3bd; }
.gl-strip button:not(:last-child)::after { content: '›'; position: absolute; right: -8px; top: 36%; color: var(--muted); font-size: 16px; z-index: 1; }
.gl-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 12px 14px 14px; box-shadow: var(--shadow); }
.gl-card .row1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.gl-card h3 { margin: 0; font-size: 22px; color: var(--peach); }
.gl-card .tag { font-size: 14px; color: var(--muted); }
.gl-card .fig svg { max-width: 420px; margin: 4px auto; width: 100%; height: auto; }
.gl-keys { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.gl-keys span { background: var(--peach-bg); color: var(--peach); font-weight: 700; font-size: 14.5px; border-radius: 999px; padding: 2px 12px; }
.gl-card ol { list-style: none; padding: 0; margin: 8px 0; counter-reset: e; }
.gl-card ol li { counter-increment: e; position: relative; padding-left: 36px; margin: 7px 0; font-size: 16.5px; }
.gl-card ol li::before { content: counter(e, bengali); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--peach-bg); color: var(--peach); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.gl-card .wlabel { font-size: 13px; font-weight: 700; color: var(--muted); }
.gl-card .spot { border-top: 1px dashed var(--line); padding-top: 8px; font-size: 15.5px; } .gl-card .spot b { color: var(--mint); }
.gl-grid { display: grid; gap: 12px; margin: 14px 0 24px; }
@media (min-width: 720px) { .gl-grid { grid-template-columns: 1fr 1fr; } }
.gl-grid .card { margin: 0; } .gl-grid .card h3 { margin: 0 0 8px; font-size: 18.5px; }

/* ---------- practice view ---------- */
.pr-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px; box-shadow: var(--shadow); margin: 12px 0; }
.pr-card h3 { margin: 0 0 2px; font-size: 20px; } .pr-card p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.pr-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.pr-acts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.pr-acts a.jbtn { text-decoration: none; text-align: center; }
.pr-stars { color: var(--gold); font-size: 22px; letter-spacing: 3px; }

/* ---------- rank view ---------- */
.me-card { background: var(--ink); color: #fff; border-radius: 22px; padding: 16px; margin: 14px 0; }
.me-top { display: flex; gap: 12px; align-items: center; }
.ava { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--ac, var(--sky)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 17px; }
.ava.me { width: 52px; height: 52px; font-size: 23px; background: var(--gold); }
.me-name { font: 700 20px/1.3 var(--font); background: none; border: 0; border-bottom: 1.5px dashed #5d6679; color: #fff; width: 100%; padding: 0 0 2px; outline: none; }
.me-name::placeholder { color: #9aa3b5; }
.me-sub { font-size: 14px; color: #cfd6e4; margin-top: 3px; }
.me-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; text-align: center; }
.me-stats div { background: rgba(255,255,255,.08); border-radius: 12px; padding: 8px 2px 6px; }
.me-stats b { display: block; font-size: 17px; color: #ffd57a; } .me-stats span { font-size: 12.5px; color: #cfd6e4; }
.lb { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 6px 12px 12px; box-shadow: var(--shadow); margin-bottom: 24px; }
.lb-h { display: flex; justify-content: space-between; align-items: center; padding: 8px 2px; }
.demo { font-size: 12px; font-weight: 700; background: var(--lilac-bg); color: var(--lilac); border-radius: 6px; padding: 1px 8px; }
.lb-row { display: grid; grid-template-columns: 30px 38px 1fr auto; align-items: center; gap: 10px; padding: 7px 4px; border-top: 1px solid var(--line); }
.lb-row .rk { text-align: center; font-weight: 700; color: var(--muted); }
.lb-row .nm { font-weight: 600; } .lb-row .nm small { color: var(--muted); font-weight: 500; }
.lb-row .xp { font-weight: 700; color: var(--gold); }
.lb-row.me { background: var(--gold-bg); border-radius: 12px; border-top-color: transparent; box-shadow: inset 0 0 0 2px #f1dea4; }
.lb-note { font-size: 13.5px; color: var(--muted); margin-top: 10px; }

@media (min-width: 900px) {
  .jhero { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; }
  .jhero .pic img { aspect-ratio: 3/2; height: 100%; }
  .jnode { padding-left: calc(150px + var(--o) * 46px); }
}
@media print { .jtabs, .jbar, .jr { display: none !important; } .jview[hidden] { display: block !important; } }
