/* Accounting Game by Leah Books. Loaded after /assets/site.css (brand tokens, buttons, the DC DEALER T tool). */
.g{--gold:#F5B700;--gold-d:#7A5200;--gold-bg:#FFF6D6;--ok:#1B7A3A;--ok-bg:#EAF6E6;--no:#B42318;--no-bg:#FDECEA;--card:#fff;--page:#F4F8FA;--r:18px;
  background:var(--page);min-height:100vh;padding-bottom:calc(76px + env(safe-area-inset-bottom));color:var(--ink);font:16px/1.55 Manrope,system-ui,sans-serif}
.g h1,.g h2,.g h3{font-family:"DM Serif Display",Georgia,serif;font-weight:400;line-height:1.15;margin:0 0 .4em}
.g h1{font-size:34px}.g h2{font-size:24px}.g h3{font-size:19px}
.g p{max-width:66ch}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.g svg{width:1.1em;height:1.1em;vertical-align:-.18em;fill:currentColor;stroke:none}
.g :focus-visible{outline:3px solid var(--teal);outline-offset:2px}
/* top bar */
.g-top{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.94);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.g-top-in{max-width:1080px;margin:0 auto;display:flex;align-items:center;gap:10px;padding:8px 16px;padding-top:max(8px,env(safe-area-inset-top))}
.g-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);min-height:44px;min-width:0}
.g-brand img{border-radius:11px;flex:none}.g-brand b{display:block;font:400 19px/1.1 "DM Serif Display",serif}.g-brand small{display:block;font-size:12px;color:var(--muted);font-weight:700}
.g-stats{display:flex;gap:6px;margin-left:auto}.g-stat,.g-brand b{white-space:nowrap}
@media (max-width:420px){.g-brand{gap:7px}.g-brand img{width:32px;height:32px}.g-brand b{font-size:16px}.g-brand small{font-size:11px}.g-stats{gap:4px}.g-stat{padding:6px 8px;font-size:14px}}
@media (max-width:380px){.g-top-in{gap:6px;padding-left:12px;padding-right:12px}.g-brand b{font-size:14.5px}.g-brand small{font-size:10.5px}.g-brand img{width:30px;height:30px}.g-stat{padding:5px 7px;gap:3px}.g-stat-star .bmb{width:18px;height:18px}}
.g-stat{display:inline-flex;align-items:center;gap:4px;padding:6px 10px;border-radius:999px;background:var(--soft);font-weight:800;font-size:15px;min-height:36px}
.g-stat-star{background:var(--gold-bg);color:var(--gold-d);text-decoration:none;min-height:44px}.g-stat-star .bmb{width:22px;height:22px}
.g-stat-fire svg{fill:#9AA5B1}.g-stat-fire.hot{background:#FFEDE3;color:#9A3412}.g-stat-fire.hot svg{fill:#F97316}
.g-stat-lvl{background:#EEEAFF;color:#4B32C3}.g-stat-lvl::before{content:"Lv";font-size:12px;margin-right:2px}
.bump{animation:gbump .5s cubic-bezier(.2,1.6,.4,1)}@keyframes gbump{0%{transform:scale(1)}40%{transform:scale(1.35)}100%{transform:scale(1)}}
.g-icon{display:inline-grid;place-items:center;min-width:44px;min-height:44px;border-radius:12px;border:1.5px solid var(--line);background:#fff;color:var(--ink);font:700 20px Manrope,sans-serif;cursor:pointer;padding:0}
.g-icon.sm{min-width:44px;min-height:44px;font-size:18px}
.g-icon svg{width:22px;height:22px}#g-sound svg path{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}#g-sound svg path:first-child{fill:currentColor;stroke:none}
#g-sound .g-wave,#g-sound.on .g-mute{opacity:0;filter:blur(2px)}#g-sound.on .g-wave,#g-sound .g-mute{opacity:1;filter:none}#g-sound path{transition:opacity var(--m-base) var(--m-ease-out),filter var(--m-base) var(--m-ease-out)}#g-sound.on{border-color:var(--teal);color:var(--teal-d)}
/* bottom tabs (phone) / top-right tabs (wide) */
.g-tabs{position:fixed;left:0;right:0;bottom:0;z-index:30;display:grid;grid-template-columns:repeat(5,1fr);background:#fff;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}
.g-tabs a{display:grid;justify-items:center;gap:2px;padding:8px 4px;min-height:56px;color:var(--muted);text-decoration:none;font-weight:800;font-size:12.5px}
.g-tabs a svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.g-tabs a[aria-current]{color:var(--teal-d)}.g-tabs a[aria-current] svg{stroke-width:2.6}
.g-view{max-width:860px;margin:0 auto;padding:18px 16px 30px}
#g-main:focus{outline:none}
/* buttons */
.g-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 20px;border-radius:14px;border:1.5px solid var(--line);background:#fff;color:var(--ink);font:800 16px Manrope,sans-serif;text-decoration:none;cursor:pointer}
.g-btn.primary{background:var(--teal-d);border-color:var(--teal-d);color:#fff}.g-btn.primary:hover{background:#095E6A}
.g-btn.ghost:hover{border-color:var(--teal)}.g-btn.sm{min-height:44px;padding:8px 14px;font-size:15px}.g-btn.big{min-height:58px;font-size:18px;padding:14px 28px}
.g-btn.danger{color:#9B1C1C;border-color:#F3C1BC}.g-btn[hidden]{display:none}
.g-row{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}
.g-pill{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:3px 10px;font-weight:800;font-size:14px;vertical-align:middle}
.g-pill.ok{background:var(--ok-bg);color:var(--ok)}.g-pill.no{background:#F1F3F5;color:var(--muted)}.g-pill.star{background:var(--gold-bg);color:var(--gold-d)}.g-pill.star svg{fill:var(--gold)}.g-pill.fire{background:#FFEDE3;color:#9A3412}.g-pill.fire svg{fill:#F97316}
.g-pill svg{width:16px;height:16px}.g-pill.ok svg path{fill:none;stroke:currentColor;stroke-width:3}
.g-sub{color:#3E4A58}.g-mini{font-size:14px;color:var(--muted)}.g-nudge{color:#8A4B00;background:#FFF4E0;border-radius:12px;padding:10px 14px;font-weight:700}
.g-big{font:400 28px "DM Serif Display",serif;margin:4px 0 10px}
/* home */
.g-hello{background:linear-gradient(135deg,#E3F5F7,#F1EEFF);border-radius:24px;padding:18px 20px;margin-bottom:16px;display:flex;gap:14px;align-items:center}.g-hello>div{flex:1;min-width:0}
.g-hello-panda{flex:none;display:block;border-radius:20px;line-height:0}.g-hello-panda svg{width:116px;height:auto}
.g-hello h1{font-size:32px}
.g-dl{background:#fff;border:2px solid #0B6E7C;border-radius:20px;padding:14px 18px;margin-bottom:16px}.g-dl:focus{outline:none}.g-dl:focus-visible{outline:3px solid #5FE6E8;outline-offset:2px}.g-dl-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.g-dl h2{font-size:22px;margin:0}.g-dl p{margin:6px 0}.g-dl ol{margin:6px 0 0;padding-left:22px}.g-dl li{margin:4px 0}
.g-hello .g-count{margin:6px 0 0;font-weight:800;color:#0B6E7C;font-size:15px}
.g-level{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:6px 12px;margin-top:12px;font-weight:800}.g-level small{grid-column:1/-1;color:var(--muted);font-weight:700}
.g-level b{color:#4B32C3}
.g-bar{height:10px;border-radius:999px;background:#E3E9EE;overflow:hidden}.g-bar span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#0D96A8,#3FA82D);transition:width .6s}
.g-daily{display:flex;align-items:center;gap:14px;padding:16px 18px;border-radius:var(--r);background:#16212E;color:#fff;text-decoration:none;margin-bottom:12px;box-shadow:0 18px 36px -22px rgba(22,33,46,.7)}
.g-daily small{display:block;color:#B9C6D3;font-weight:700}.g-daily b{display:block;font-size:18px}.g-daily em{display:block;font-style:normal;color:#FDBA74;font-weight:800;font-size:14px}
.g-daily-ico{position:relative;display:grid;place-items:center;width:58px;height:58px;border-radius:16px;background:#2A3747;flex:none}.g-daily-ico svg{width:40px;height:40px;fill:#F97316}.g-daily-ico b{position:absolute;bottom:4px;font-size:15px;color:#fff}
.g-go{margin-left:auto;font-weight:800;font-size:20px;flex:none}
.g-quick{display:block;padding:14px 18px;border-radius:var(--r);background:linear-gradient(100deg,#876EFA,#5B42D6);color:#fff;text-decoration:none;margin-bottom:8px}.g-quick b{display:block;font-size:18px}.g-quick span{color:#EDE9FF;font-weight:600}
.g-h2{margin-top:22px}
.g-secs{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.g-sec{display:flex;gap:12px;align-items:flex-start;padding:14px;border-radius:var(--r);background:#fff;border:1px solid var(--line);text-decoration:none;color:var(--ink);transition:transform .15s,box-shadow .15s}

.g-sec-ico{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#E6F5F7;color:var(--teal-d);font:800 16px Manrope,sans-serif;flex:none}
.g-sec-topic .g-sec-ico{background:#F1EEFF;color:#4B32C3}
.g-sec-t{display:grid;gap:5px;min-width:0;flex:1;align-self:stretch;grid-template-rows:auto 1fr auto auto}.g-sec-t small{align-self:start}.g-sec-t b{font-size:16.5px}.g-sec-t small{color:var(--muted);font-size:13.5px;line-height:1.35}.g-sec-t em{font-style:normal;font-weight:800;font-size:13px;color:var(--gold-d)}.g-sec-t em svg{fill:var(--gold)}
.g-homefoot{margin-top:24px}
/* section and levels */
.g-crumb{display:inline-block;margin-bottom:8px;color:var(--teal-d);font-weight:800;text-decoration:none;min-height:44px;line-height:44px;min-width:44px}
.g-levels{display:grid;gap:10px;margin:14px 0 18px}
.g-lv{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:var(--r);background:#fff;border:1px solid var(--line);text-decoration:none;color:var(--ink)}
.g-lv>span:nth-child(2){display:grid;gap:5px;flex:1}.g-lv small{color:var(--gold-d);font-weight:800}.g-lv small svg{fill:var(--gold)}
.g-lv-n{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--teal-d);color:#fff;font-weight:800;font-size:18px;flex:none}
.g-lv .g-go{font-size:15px;color:var(--teal-d)}
/* a question */
.g-q{background:#fff;border-radius:24px;border:1px solid var(--line);padding:16px 18px 20px;box-shadow:0 20px 40px -32px rgba(22,33,46,.5)}
.g-qtop{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.g-back{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;color:var(--muted);text-decoration:none;font-size:26px;flex:none}
.g-prog{flex:1;height:12px;border-radius:999px;background:#E3E9EE;overflow:hidden}.g-prog span{display:block;height:100%;background:linear-gradient(90deg,#0D96A8,#3FA82D);border-radius:inherit;transition:width .5s}
.g-run{display:inline-flex;align-items:center;gap:3px;font-weight:800;color:var(--muted)}.g-run svg{fill:#C0C8D0}.g-run.hot{color:#9A3412}.g-run.hot svg{fill:#F97316;animation:gflame 1s ease-in-out infinite alternate}
@keyframes gflame{to{transform:scale(1.18) rotate(-4deg)}}
.g-kicker{font-size:13px;font-weight:800;letter-spacing:.04em;color:var(--muted);text-transform:uppercase;margin:0 0 6px}
.g-case{display:inline-block;background:#F1EEFF;color:#4B32C3;font-weight:800;border-radius:10px;padding:4px 10px;font-size:14px;margin:0 0 8px}
.g-prompt{font:700 21px/1.4 Manrope,sans-serif!important;margin:2px 0 8px!important}
.g-blank{display:inline-block;min-width:4em;border-bottom:3px solid var(--teal);color:transparent}
.g-opts{display:grid;gap:10px;margin:12px 0}
.g-opt{text-align:left;min-height:52px;padding:12px 16px;border-radius:14px;border:2px solid var(--line);background:#fff;font:700 16.5px Manrope,sans-serif;color:var(--ink);cursor:pointer;transition:border-color .15s,background .15s}
.g-opt[aria-pressed=true]{border-color:var(--teal-d);background:#E6F5F7}
.g-done .g-opt:disabled{cursor:default;opacity:.85}
.g-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:14px}
.g-helpbtn{margin-left:auto}.g-t-ico{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:6px;background:#E6F5F7;color:var(--teal-d);font-weight:800;border-bottom:2px solid var(--teal-d)}
.g-dcq{font-weight:700}.g-dcslot .dc-tcard{margin:8px 0 4px;max-width:440px}
/* feedback */
.g-fb:focus{outline:none}
.g-fb-in{border-radius:16px;padding:14px 16px;margin:14px 0 12px;animation:gpop .35s cubic-bezier(.2,1.4,.4,1)}
.g-fb-in.ok{background:var(--ok-bg);border:2px solid #9AD3A5}.g-fb-in.no{background:#FFF7ED;border:2px solid #FDBA74}
.g-fb-h{font-weight:800;font-size:19px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 6px}.g-fb-in.ok .g-fb-h{color:var(--ok)}.g-fb-in.no .g-fb-h{color:#9A3412}
.g-fb-h>svg{width:24px;height:24px}.g-fb-h>svg path{fill:none;stroke:currentColor;stroke-width:3}
.g-right{font-weight:600}.g-lesson a{font-weight:800;color:var(--teal-d)}
.g-fb-in p{margin:4px 0}
@keyframes gpop{from{transform:scale(.96);opacity:0}to{transform:none;opacity:1}}
.g-mini-je{border-collapse:collapse;margin:8px 0;font-size:15px;background:#fff;border-radius:10px;overflow:hidden}.g-mini-je th,.g-mini-je td{padding:6px 10px;border-bottom:1px solid var(--line);text-align:left}.g-mini-je td+td,.g-mini-je th+th{text-align:right}
.g-entry{display:block}
.g-q.is-ok{border-color:#9AD3A5}.g-q.is-no{border-color:#FDBA74}
/* calc */
.g-calc{display:inline-flex;align-items:center;gap:6px;border:2px solid var(--line);border-radius:14px;padding:4px 14px;background:#fff;margin:8px 0}
.g-calc:focus-within{border-color:var(--teal)}.g-calc input{border:0;outline:0;font:800 26px Manrope,sans-serif;width:8em;padding:8px 0;color:var(--ink);background:transparent}
.g-unit{font:800 22px Manrope,sans-serif;color:var(--muted)}
.g-calc.sm{padding:2px 10px;margin:0}.g-calc.sm input{font-size:18px;width:5.5em;padding:6px 0}.g-calc.sm .g-unit{font-size:16px}
/* story */
.g-story{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;margin:12px 0}
.g-acc{border:2px solid var(--line);border-radius:14px;background:#fff;padding:6px;display:grid;gap:6px}
.g-chip{display:flex;flex-direction:column;align-items:flex-start;width:100%;min-height:48px;padding:8px 10px;border-radius:10px;border:0;background:transparent;font:800 16px Manrope,sans-serif;color:var(--ink);cursor:pointer;text-align:left}
.g-chip small{font-size:12px;color:var(--muted);font-weight:700}
.g-chip[aria-pressed=true]{background:#E6F5F7;color:var(--teal-d)}.g-acc:has(.g-chip[aria-pressed=true]){border-color:var(--teal)}
.g-chip.sm{display:inline-flex;width:auto;min-height:44px;padding:6px 12px;border:1.5px solid var(--line);font-size:14px}
.g-chips{display:flex;flex-wrap:wrap;gap:6px}
.g-ud{display:grid;grid-template-columns:1fr 1fr;gap:6px}.g-ud[hidden]{display:none}
.g-ud button{min-height:44px;border-radius:10px;border:1.5px solid var(--line);background:#fff;font:800 15px Manrope,sans-serif;cursor:pointer;color:var(--ink)}
.g-ud button[aria-pressed=true][data-dir=up]{background:#EAF6E6;border-color:var(--ok);color:var(--ok)}.g-ud button[aria-pressed=true][data-dir=down]{background:#FDECEA;border-color:var(--no);color:var(--no)}
.g-done .g-acc.want{border-color:var(--ok);box-shadow:0 0 0 2px #9AD3A5}
/* journal */
.g-je{display:grid;gap:8px;margin:10px 0}
.g-je-h,.g-je-row{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(0,1fr) minmax(0,1fr) 40px;gap:6px;align-items:center}
.g-je-h{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}.g-je-h span:nth-child(n+2){text-align:right;padding-right:8px}
.g-je-row select,.g-je-row input{min-height:46px;border:1.5px solid var(--line);border-radius:10px;padding:8px 10px;font:600 15.5px Manrope,sans-serif;background:#fff;color:var(--ink);width:100%;min-width:0}
.g-je-row input{text-align:right}.g-je-row input[data-je=c]{padding-left:6px}
.g-je-row select:focus,.g-je-row input:focus{border-color:var(--teal);outline:none;box-shadow:0 0 0 3px rgba(13,150,168,.2)}
.g-je-tot{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-weight:700;margin:4px 0}
.g-je [data-addline]{justify-self:start}
/* T-accounts */
.g-chiprow{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0;min-height:52px;padding:8px;border-radius:14px;background:var(--soft);border:2px dashed #CBD5DF}
.g-amt{min-height:44px;padding:8px 14px;border-radius:12px;border:2px solid #0B6E7C;background:#fff;color:#0B6E7C;font:800 17px Manrope,sans-serif;cursor:grab;box-shadow:0 3px 0 #0B6E7C}
.g-amt[aria-pressed=true]{background:#0B6E7C;color:#fff;transform:translateY(-2px)}.g-amt[hidden]{display:none}.g-amt.placed{box-shadow:none;font-size:15px;min-height:40px;padding:6px 10px;cursor:pointer}
.g-amt.dragging,.g-card.dragging{opacity:.45}
.g-ts{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px;margin-top:10px}
.g-t{background:#fff;border-radius:14px;padding:10px 10px 8px}
.g-t h3{font:800 16px Manrope,sans-serif!important;text-align:center;margin:0 0 4px!important;display:grid}.g-t h3 small{font-size:12px;color:var(--muted)}
.g-t-body{display:grid;grid-template-columns:1fr 1fr;border-top:3px solid var(--ink)}
.g-t-side{min-height:96px;padding:6px;display:flex;flex-direction:column;gap:4px;align-items:center;cursor:pointer;border-radius:0 0 0 10px;transition:background .15s}
.g-t-side+.g-t-side{border-left:3px solid var(--ink);border-radius:0 0 10px 0}
.g-t-side:hover,.g-t-side.over{background:#E6F5F7}
.g-t-lab{font:800 11px Manrope,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);background:none;border:0;min-height:44px;min-width:44px;width:100%;cursor:pointer;border-radius:8px}.g-t-lab:hover{color:var(--teal-d)}
.g-t-open{font-size:13px;font-weight:700;color:var(--muted);border-bottom:1px dashed #CBD5DF}.g-t-open.off{display:none}
.g-t-drop{display:flex;flex-direction:column;gap:4px;align-items:center}
.g-t-bal{text-align:center;margin:6px 0 0;font-weight:700;border-top:1px solid var(--line);padding-top:6px}
.g-t-note{font-size:13px;color:var(--muted);margin:10px 2px 0}
.g-t-txn{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;justify-content:space-between;margin-top:12px;padding:10px 14px;border-radius:12px;border:1.5px solid var(--line);background:#fff;font-size:14px;font-weight:700}
.g-t-txn .g-t-chk{color:var(--muted)}.g-t-txn.ok{border-color:#3FA82D;background:#EEF8EC}.g-t-txn.ok .g-t-chk{color:#1B7A3A}
.g-t-tot{display:flex;justify-content:space-between;gap:8px;font-size:12px;font-weight:700;color:var(--muted);margin-bottom:4px}
/* sort and timeline */
.g-cards{min-height:60px}
.g-chiprow.empty::before{content:"All placed. Tap one to move it, or press Check.";align-self:center;color:var(--muted);font-weight:700;padding:0 6px}
.g-card{min-height:48px;padding:10px 14px;border-radius:12px;border:2px solid #CBD5DF;background:#fff;font:700 15px/1.35 Manrope,sans-serif;color:var(--ink);cursor:grab;text-align:left;box-shadow:0 3px 0 #CBD5DF;max-width:100%}
.g-card[aria-pressed=true]{border-color:var(--purple);box-shadow:0 3px 0 var(--purple);background:#F5F2FF}.g-card[hidden]{display:none}.g-card.placed{box-shadow:none;font-size:14px;cursor:pointer;width:100%}
.g-buckets{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:10px;margin-top:8px}
.g-bucket{border:2px dashed #AFC0CF;border-radius:16px;padding:10px;min-height:110px;background:#FBFDFE;cursor:pointer;transition:background .15s,border-color .15s}
.g-bucket:hover,.g-bucket.over{border-color:var(--teal);background:#E6F5F7}
.g-bucket h3{font:800 15px Manrope,sans-serif!important;margin:0 0 6px!important;text-align:center}.g-bucket-h{font:inherit;color:inherit;background:none;border:0;width:100%;min-height:44px;cursor:pointer;border-radius:10px;padding:4px}
.g-drop{display:grid;gap:6px}
.g-buckets.g-two{grid-template-columns:repeat(2,minmax(0,1fr))}.g-two .g-card.placed{font-size:13px;padding:8px}
.g-timeline{position:relative;grid-template-columns:repeat(var(--n),minmax(0,1fr))}
.g-timeline .g-bucket{border-style:solid;border-color:#CFD8E1;background:#fff;padding-top:0;overflow:hidden}
.g-timeline .g-bucket h3{margin:0 -10px 8px!important;padding:8px;background:linear-gradient(90deg,#0B6E7C,#0D96A8);color:#fff}
.g-timeline .g-bucket+.g-bucket h3{background:linear-gradient(90deg,#5B42D6,#876EFA)}
.g-cal{display:flex;justify-content:space-around;margin:0 -10px;height:8px;background:#0B6E7C}.g-cal i{width:6px;height:14px;border-radius:3px;background:#16212E;margin-top:-6px}
.g-timeline .g-bucket+.g-bucket .g-cal{background:#5B42D6}
/* running totals: EBITDA and friends, trial balance columns */
.g-runbox{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#16212E;color:#fff;border-radius:16px;padding:12px 16px;margin:8px 0}
.g-run-from{font-weight:700;color:#B9C6D3}.g-run-from b{color:#fff}.g-run-arrow{color:#5FE6E8;font-weight:800}
.g-run-now{display:grid;margin-left:auto;text-align:right}.g-run-now small{color:#5FE6E8;font-weight:800;font-size:12.5px;letter-spacing:.04em;text-transform:uppercase}.g-run-now b{font:400 30px/1.1 "DM Serif Display",serif;font-variant-numeric:tabular-nums}
.tick{animation:gtick .45s}@keyframes gtick{40%{color:#F5B700;transform:scale(1.08)}}
.g-btot{display:block;font:800 18px Manrope,sans-serif;color:var(--teal-d);font-variant-numeric:tabular-nums;margin-top:2px}
.g-tbal{font-weight:800;min-height:1.6em;margin:8px 0}
/* match */
.g-match{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}
.g-mcol{display:grid;gap:8px;align-content:start}
.g-m{min-height:52px;padding:10px 12px;border-radius:12px;border:2px solid var(--line);background:#fff;font:700 14.5px/1.35 Manrope,sans-serif;color:var(--ink);cursor:pointer;text-align:left}
.g-m[aria-pressed=true]{border-color:var(--purple);background:#F5F2FF}.g-m.paired{border-color:var(--mc);box-shadow:inset 6px 0 0 var(--mc)}
/* spot */
.g-spot{list-style:none;padding:0;margin:12px 0;display:grid;gap:8px}
.g-spotb{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;padding:10px 14px;border-radius:12px;border:2px solid var(--line);background:#fff;font:700 15.5px/1.35 Manrope,sans-serif;color:var(--ink);cursor:pointer;text-align:left}
.g-flag{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:#F1F3F5;flex:none}.g-flag svg{fill:none;stroke:#9AA5B1;stroke-width:2}
.g-spotb[aria-pressed=true]{border-color:#C2410C;background:#FFF4ED}.g-spotb[aria-pressed=true] .g-flag{background:#C2410C}.g-spotb[aria-pressed=true] .g-flag svg{stroke:#fff;fill:#fff}
/* schedule */
.g-tablewrap{overflow-x:auto;margin:10px 0}
.g-sched{border-collapse:collapse;width:100%;min-width:480px;font-size:15px}
.g-sched th,.g-sched td{border-bottom:1px solid var(--line);padding:8px;text-align:right}.g-sched th:first-child{text-align:left}
.g-sched thead th{font-size:12.5px;color:var(--muted);font-weight:800;vertical-align:bottom}
.g-cell{width:100%;min-width:90px;min-height:44px;border:2px solid var(--purple);border-radius:10px;background:#F5F2FF;font:800 16px Manrope,sans-serif;text-align:right;padding:6px 8px;color:var(--ink)}
/* split */
.g-split{display:grid;gap:12px;margin:12px 0}
.g-part{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,2fr) auto;gap:10px;align-items:center;padding:10px;border-radius:14px;background:var(--soft)}
.g-part label{display:grid}.g-part label span{font-size:13px;color:var(--muted);font-weight:700}
.g-part input[type=range]{width:100%;accent-color:var(--teal-d);min-height:44px}
.g-split-bar{height:14px;border-radius:999px;background:#E3E9EE;overflow:hidden}.g-split-bar span{display:block;height:100%;background:linear-gradient(90deg,#0D96A8,#3FA82D);transition:width .2s}.g-split-bar span.over{background:#C2410C}
.g-split-tot{font-weight:700;margin:0}
/* detective */
.g-found{font-weight:800;color:#4B32C3}
.g-sheets{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:14px;margin:10px 0}
.g-sheet{background:#FFFEFA;border:1px solid #E7E1CF;border-radius:14px;padding:12px;box-shadow:0 10px 24px -18px rgba(22,33,46,.6)}
.g-sheet h3{display:flex;justify-content:space-between;gap:8px;align-items:baseline}.g-sheet h3 small{font:700 13px Manrope,sans-serif;color:var(--muted)}
.g-st{width:100%;border-collapse:collapse}.g-st td{padding:0}
.g-st-h th{text-align:left;font:800 12.5px Manrope,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:var(--teal-d);padding:10px 4px 4px}
.g-st-b{display:flex;justify-content:space-between;gap:10px;width:100%;min-height:44px;padding:8px 8px;border:0;border-radius:8px;background:transparent;font:600 15px Manrope,sans-serif;color:var(--ink);cursor:pointer;text-align:left}
.g-st-b:hover{background:#FFF3C4}.g-st-amt{font-variant-numeric:tabular-nums;font-weight:700;white-space:nowrap}
.g-st-t .g-st-b{font-weight:800;border-top:1.5px solid var(--ink);border-radius:0}
.g-new .g-st-b{background:#EAF6E6;animation:gnew 1.2s}@keyframes gnew{from{background:#B7E4C0}}
.g-bal{margin:8px 0 0;font-weight:800;padding:8px 10px;border-radius:10px;background:#F1F3F5}.g-bal.ok{background:var(--ok-bg);color:var(--ok)}.g-bal.no{background:var(--no-bg);color:var(--no)}
.g-bal svg path{fill:none;stroke:currentColor;stroke-width:3}
.g-fix{position:sticky;bottom:calc(70px + env(safe-area-inset-bottom));z-index:5;background:#fff;border:2px solid var(--purple);border-radius:18px;padding:14px;margin-top:10px;box-shadow:0 18px 40px -16px rgba(22,33,46,.45)}
.g-fix[hidden]{display:none}.g-fix h3{font:800 17px Manrope,sans-serif!important}.g-fine{font-weight:700;margin:0 0 8px}
.g-fix select{min-height:46px;border:1.5px solid var(--line);border-radius:10px;padding:8px;font:600 15px Manrope,sans-serif;width:100%;margin:4px 0 8px}
/* end of round, daily */
.g-end{text-align:center;background:#fff;border-radius:24px;padding:26px 18px;border:1px solid var(--line)}
.g-end p{margin-left:auto;margin-right:auto}
.g-end-art{display:grid;place-items:center;width:110px;height:110px;margin:0 auto 10px;border-radius:50%;background:var(--gold-bg);position:relative}.g-end-art svg{width:70px;height:70px;fill:var(--gold);filter:drop-shadow(0 3px 0 #B98900)}
.g-end-art.perfect{animation:gspin 1.2s cubic-bezier(.2,1.4,.4,1)}@keyframes gspin{from{transform:scale(.4) rotate(-40deg)}}
.g-end-art.daily{background:#FFEDE3}.g-end-art.daily svg{fill:#F97316;filter:none}.g-end-art.daily b{position:absolute;bottom:18px;font-size:24px;color:#fff;text-shadow:0 1px 2px #9A3412}
.g-endstats{list-style:none;padding:0;margin:12px auto;display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.g-endstats li{display:flex;gap:6px;align-items:center;background:var(--soft);border-radius:14px;padding:8px 14px;font-weight:700}.g-endstats svg{fill:var(--gold)}.g-endstats li:nth-child(2) svg{fill:#F97316}
.g-end .g-row{justify-content:center}.g-streakline{font-size:18px;color:#9A3412}
.g-card-cta{background:linear-gradient(135deg,#E3F5F7,#F1EEFF);border-radius:18px;padding:16px;margin:16px 0;text-align:left}
.g-streakbox{display:flex;align-items:center;gap:16px;background:#16212E;color:#fff;border-radius:20px;padding:16px 20px;margin:12px 0}
.g-streakbox span,.g-streakbox small{display:block}.g-streakbox small{color:#B9C6D3;font-weight:700}
.g-streakn{font:400 46px/1 "DM Serif Display",serif}
.g-flame svg{width:64px;height:64px;fill:#55606C}.g-flame.hot svg{fill:#F97316;animation:gflame 1s ease-in-out infinite alternate}
.g-week{list-style:none;padding:0;margin:10px 0 18px;display:grid;grid-template-columns:repeat(7,1fr);gap:6px;max-width:420px}
.g-week li{display:grid;justify-items:center;gap:4px;font-weight:800;font-size:13px;color:var(--muted)}
.g-week i{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#E3E9EE}.g-week .on i{background:#F97316;color:#fff}.g-week .on i svg path{fill:none;stroke:#fff;stroke-width:3}.g-week .today i{box-shadow:0 0 0 3px var(--teal)}
/* leaderboard */
.g-seg{display:inline-flex;background:#E3E9EE;border-radius:14px;padding:4px;gap:4px;margin:6px 0 10px}
.g-seg a{min-height:44px;display:grid;place-items:center;padding:0 16px;border-radius:10px;font-weight:800;color:var(--ink);text-decoration:none}.g-seg a[aria-selected=true]{background:#fff;color:var(--teal-d);box-shadow:0 2px 6px rgba(22,33,46,.15)}
.g-board{list-style:none;padding:0;margin:10px 0;display:grid;gap:8px}
.g-board li{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:8px 10px 8px 12px;min-height:56px}
.g-board li.me{border:2px solid var(--teal);background:#F0FAFB}
.g-rank{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#E3E9EE;font-weight:800;flex:none}
.g-board .top1 .g-rank{background:#F5B700;color:#3D2A00}.g-board .top2 .g-rank{background:#C9D1D9;color:#1F2933}.g-board .top3 .g-rank{background:#E0A26A;color:#3B1D06}
.g-name{flex:1 1 0;font-weight:800;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.g-name small{color:var(--muted)}
.g-score{flex:none;font-weight:800;font-size:18px;display:flex;align-items:center;gap:4px;color:var(--gold-d)}.g-score svg{fill:var(--gold)}.g-score small{font-size:13px;color:var(--muted)}
.g-report svg{fill:none;stroke:var(--muted);stroke-width:2}
.g-empty{text-align:center;background:#fff;border-radius:18px;padding:22px;border:1px dashed #AFC0CF}
.g-mine{font-weight:700}
/* badges and profile */
.g-badges{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.g-badges li{display:grid;justify-items:center;text-align:center;gap:4px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 10px;color:var(--muted)}
.g-badges li.on{color:var(--ink);border-color:#F2D27A;background:#FFFBEA}.g-badges b{font-size:15px}.g-badges small{font-size:12.5px;line-height:1.35}
.g-badge-art{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:#E3E9EE}.g-badge-art svg{width:30px;height:30px;fill:#9AA5B1}.g-badge-art svg rect,.g-badge-art svg path{stroke:#9AA5B1}
.g-badge-art.on{background:radial-gradient(circle at 30% 30%,#FFE27A,#F5B700);box-shadow:0 0 0 4px #FFF1B8}.g-badge-art.on svg{fill:#fff}
.g-badge-art:not(.on) svg{fill:none;stroke:#9AA5B1;stroke-width:2}
.g-form{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;margin:14px 0;display:grid;gap:8px;max-width:520px}
.g-form label{font-weight:800}.g-form input:not([type]),.g-form input[type=text]{min-height:48px;border:1.5px solid #C9D2DB;border-radius:12px;padding:10px 12px;font:600 17px Manrope,sans-serif}
.g-form input[aria-invalid=true]{border-color:var(--no)}
.g-check{display:flex;gap:10px;align-items:center;min-height:44px;font-weight:700!important}.g-check input{width:22px;height:22px;accent-color:var(--teal-d)}
.g-err{color:var(--no);font-weight:700;margin:0;min-height:1.2em}
.g-signin{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;margin:14px 0}
.g-signin .lbc h1{font-size:28px}
.g-note{background:var(--soft);border-radius:16px;padding:14px 18px}.g-note h2{font-size:20px}.g-note ul{padding-left:20px;margin:0}.g-note li{margin:4px 0}
/* helper drawer */
.g-helper{position:fixed;z-index:50;right:0;top:0;bottom:0;width:min(400px,100%);background:#F4FAFA;border-left:1px solid var(--line);box-shadow:-24px 0 60px -24px rgba(13,40,60,.45);padding:0 16px 16px;overflow-y:auto;animation:gin var(--m-slow) var(--m-ease-out)}
.g-helper[hidden]{display:none}@keyframes gin{from{transform:translateX(100%)}}
.g-helper-head{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;background:inherit;padding:12px 0;margin-bottom:6px;border-bottom:1px solid var(--line)}
.g-helper-head h2{font-size:22px;margin:0}
.g-helper .dc-tcard{margin-bottom:12px}
.g-helper-acc{display:grid;gap:8px}.g-helper-say:empty{display:none}.g-helper-say{font-weight:700;background:#fff;border-radius:12px;padding:10px 12px;border:1px solid var(--line);min-height:2.5em;margin:0}
.g-chip.sm[aria-pressed=true]{border-color:var(--teal-d)}
.dc-t td span.g-contra{outline:2.5px dashed var(--ink);outline-offset:1px}
.g-helper-foot a{font-weight:800;color:var(--teal-d)}
.g-dcp[hidden]{display:none}
/* Gold Bamboo icon */
.g svg.bmb{fill:initial}.g-pill .bmb,.g-endstats .bmb,.g-score .bmb,.g-wallet .bmb,.g-item-tag .bmb,.g-btn .bmb{width:1.15em;height:1.15em}
/* the cheering panda on a right answer */
.g-fb-in{position:relative}.g-fb-in.ok{padding-right:84px}
.g-cheer{position:absolute;right:10px;top:-22px;line-height:0;animation:gcheer .7s cubic-bezier(.2,1.6,.4,1)}.g-cheer svg{width:68px;height:auto;filter:drop-shadow(0 6px 8px rgba(22,33,46,.18))}
@keyframes gcheer{0%{transform:translateY(30px) scale(.6);opacity:0}60%{transform:translateY(-6px) scale(1.05);opacity:1}100%{transform:none}}
.g-end-panda{width:130px;margin:0 auto 6px;line-height:0}.g-end-panda svg{width:130px;height:auto}.g-end-panda.perfect{animation:gcheer .9s cubic-bezier(.2,1.6,.4,1)}
/* the loading screen: the panda hangs from a clothespin and swings */
.g-load{position:fixed;inset:0;z-index:100;display:grid;place-items:center;align-content:center;gap:4px;background:linear-gradient(180deg,#E3F5F7,#F4F8FA);transition:opacity .4s}
.g-load.done{opacity:0;pointer-events:none}
.g-hang{position:relative}.g-line{position:absolute;left:50%;top:11px;width:100vw;transform:translateX(-50%);height:3px;background:#8A6A4A;border-radius:2px;box-shadow:0 1px 0 rgba(0,0,0,.08)}
.g-swing{position:relative;transform-origin:50% 12px;animation:gswing 2.6s ease-in-out infinite;margin-top:-4px;line-height:0}.g-swing svg{width:190px;height:auto}
@keyframes gswing{0%,100%{transform:rotate(-6deg)}50%{transform:rotate(6deg)}}
.g-load p{font:800 18px Manrope,sans-serif;color:#0B6E7C;margin:6px 0 0}
.g-load p.g-load-tip{font:700 16px/1.35 Manrope,sans-serif;color:#24313A;max-width:300px;padding:0 20px;text-align:center;margin:0 0 18px}.g-load-tip b{color:#0B6E7C}
/* the shop */
.g-shop-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:16px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:24px;padding:14px;margin-bottom:12px}
.g-shop-stage{line-height:0;justify-self:center}.g-shop-stage svg{width:min(210px,100%);height:auto;border-radius:22px}
.g-shop-side h1{margin-bottom:2px}.g-wallet{display:inline-flex;align-items:center;gap:6px;font-weight:800;font-size:20px;color:var(--gold-d);background:var(--gold-bg);border-radius:999px;padding:6px 14px;margin:4px 0}
.g-try{border-top:1px solid var(--line);padding-top:10px;margin-top:8px;display:grid;gap:8px;justify-items:start}.g-try:focus{outline:none}.g-try-h{margin:0}.g-try-h small{display:block;color:var(--muted)}
.g-locked{font-weight:700;color:#4B32C3;margin:0}.g-locked svg{fill:none;stroke:currentColor;stroke-width:2}
.g-cats{display:flex;flex-wrap:wrap;width:100%;box-sizing:border-box}.g-cats button{min-height:44px;min-width:44px;padding:0 12px;border:0;border-radius:10px;background:transparent;font:800 14.5px Manrope,sans-serif;color:var(--ink);cursor:pointer}.g-cats button[aria-selected=true]{background:#fff;color:var(--teal-d);box-shadow:0 2px 6px rgba(22,33,46,.15)}
.g-items{list-style:none;padding:0;margin:8px 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}.g-items>li{display:flex}
.g-item{width:100%;height:100%;display:grid;grid-template-rows:auto 1fr auto;justify-items:center;align-items:start;gap:4px;padding:10px 8px;border-radius:16px;border:2px solid var(--line);background:#fff;cursor:pointer;font:700 14px/1.3 Manrope,sans-serif;color:var(--ink);text-align:center;position:relative}
.g-item.trying{border-color:var(--purple);box-shadow:0 0 0 3px #E6E0FF}
.g-item-art{display:grid;place-items:center;width:100%;height:92px;border-radius:12px;background:#F4F8FA;line-height:0}.g-item-art svg{max-width:88px;max-height:84px;width:auto;height:auto}
.g-item-tag{align-self:end;display:inline-flex;align-items:center;gap:3px;font-weight:800;font-size:13px;color:var(--gold-d);background:var(--gold-bg);border-radius:999px;padding:2px 10px}
.g-item.owned .g-item-tag{background:#E6F5F7;color:var(--teal-d)}.g-item.equipped{border-color:var(--ok)}.g-item.equipped .g-item-tag{background:var(--ok);color:#fff}.g-item.equipped .g-item-tag svg path{fill:none;stroke:#fff;stroke-width:3}
.g-item.locked .g-item-tag,.g-item.claim .g-item-tag{background:#EEEAFF;color:#4B32C3;font-size:12px;line-height:1.25;padding:3px 8px}.g-item.locked .g-item-tag svg{fill:none;stroke:currentColor;stroke-width:2;flex:none}.g-item.locked .g-item-art{opacity:.55}
/* the shop: "Save this outfit" and My outfits */
.g-outbar{display:grid;justify-items:center;gap:4px;margin:0 0 12px;text-align:center}
.g-savefit{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;max-width:100%;padding:10px 22px;border-radius:999px;border:2px solid #0D96A8;background:#fff;color:var(--teal-d);font:800 16px Manrope,sans-serif;cursor:pointer}
.g-savefit svg.g-heart{width:1.2em;height:1.2em;fill:#D92D20}.g-savefit:hover:not(:disabled){background:#E6F5F7}
.g-savefit:disabled{cursor:default;border-color:#B8C2CC;color:var(--muted)}.g-savefit:disabled svg.g-heart{fill:#B8C2CC}
.g-toast svg.g-heart{fill:#FF6B5E;vertical-align:-.2em}
.g-outs{background:#fff;border:1px solid var(--line);border-radius:24px;padding:14px;margin-bottom:14px}
.g-outs-head{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;min-height:44px}.g-outs-head::-webkit-details-marker{display:none}.g-outs-head h2{flex:1}.g-outs-chev{width:10px;height:10px;border-right:3px solid var(--teal-d);border-bottom:3px solid var(--teal-d);transform:rotate(45deg);margin:0 6px 4px 2px;transition:transform .2s}.g-outs[open] .g-outs-chev{transform:rotate(-135deg);margin-bottom:-4px}.g-outs:not([open]){padding-top:8px;padding-bottom:8px}.g-outs-head h2{margin:0}.g-outs-n{font-weight:800;font-size:14px;color:var(--muted);white-space:nowrap}
.g-outs .g-mini{margin:2px 0 4px}#g-out-err:empty{min-height:0}
.g-outgrid{list-style:none;padding:0;margin:6px 0 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.g-out{position:relative;min-width:0}
.g-out-put{width:100%;display:grid;justify-items:center;gap:4px;padding:8px 6px 10px;border-radius:16px;border:2px solid var(--line);background:#fff;cursor:pointer;font:700 14px/1.25 Manrope,sans-serif;color:var(--ink);text-align:center}
.g-out-art{display:block;line-height:0;width:100%;max-width:96px}.g-out-art svg{width:100%;height:auto;border-radius:12px}
.g-out-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.g-out.on .g-out-put{border-color:#0D96A8;background:#E6F5F7}
.g-out-tag{font-weight:800;font-size:12px;line-height:1;color:#fff;background:var(--teal-d);border-radius:999px;padding:4px 8px}
.g-out-x{position:absolute;top:-13px;right:-13px;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;border:0;background:transparent;color:#2E3A47;font:800 18px/1 Manrope,sans-serif;cursor:pointer;padding:0;isolation:isolate}
.g-out-x::before{content:"";position:absolute;inset:7px;border-radius:50%;border:2px solid #fff;background:#DDE3E9;box-shadow:0 1px 3px rgba(22,33,46,.25);z-index:-1}.g-out-x:hover::before{background:#C9D1D9}
.g-out.empty{display:grid;place-items:center;min-height:132px;border:2px dashed #CBD5DF;border-radius:16px;color:var(--muted);font-weight:700;font-size:14px}
@media (hover:hover){.g-out-put:hover{border-color:var(--teal)}}
@media (max-width:560px){.g-outs{padding:12px 10px}.g-outgrid{gap:8px}.g-out.empty{min-height:118px}.g-out-put{padding:6px 4px 8px;font-size:13px}}
/* the shop: Support ribbons */
.g-ribs{background:#fff;border:1px solid var(--line);border-radius:24px;padding:14px;margin:8px 0 14px}.g-ribs h2{margin:0 0 2px}.g-ribs .g-mini{margin:0 0 4px}
.g-ribgrid{grid-template-columns:repeat(3,minmax(0,1fr))}.g-ribgrid li{display:grid}
.g-item.g-rib{background:#F8FAFC;height:100%;grid-template-rows:64px minmax(calc(2 * 1.3em),auto) 1fr;align-content:stretch;row-gap:6px;padding:32px 6px 10px}
.g-rib .g-item-art{height:64px;width:64px;background:transparent}.g-rib .g-item-art svg{width:auto;height:64px;max-height:64px}
.g-rib .g-item-name{line-height:1.3;align-self:center;overflow-wrap:break-word}
.g-rib-tag{align-self:end;font-weight:800;font-size:13px;line-height:1.2;color:var(--teal-d)}
.g-rib.on{border-color:#0D96A8;background:#E6F5F7}
.g-rib-wear{position:absolute;top:6px;left:50%;transform:translateX(-50%);font-weight:800;font-size:12px;line-height:1;color:#fff;background:var(--teal-d);border-radius:999px;padding:4px 8px;white-space:nowrap}
@media (max-width:560px){.g-ribs{padding:12px 10px}.g-item.g-rib{grid-template-rows:56px minmax(calc(2 * 1.3em),auto) 1fr;padding:30px 3px 8px}.g-rib .g-item-name{font-size:12.5px}.g-rib .g-item-art{height:56px;width:56px}.g-rib .g-item-art svg{height:56px;max-height:56px}}
/* the shop: two paws, and the Poses tab */
.g-paws{display:grid;gap:6px;margin:8px 0 2px}
.g-paw{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:6px;background:#E6F5F7;border:1.5px solid #0D96A8;border-radius:12px;padding:4px 4px 4px 10px;min-height:44px}
.g-paw small{grid-column:1;font-size:11.5px;color:var(--teal-d);font-weight:800;line-height:1.1}.g-paw b{grid-column:1;font-size:13.5px;line-height:1.2;overflow-wrap:anywhere}
.g-paw button{grid-column:2;grid-row:1/3;width:44px;height:44px;border-radius:50%;border:0;background:transparent;font:800 18px Manrope,sans-serif;color:#2E3A47;cursor:pointer;position:relative;isolation:isolate}
.g-paw button::before{content:"";position:absolute;inset:5px;border-radius:50%;background:#fff;z-index:-1}
.g-paw.empty{background:#F4F8FA;border-style:dashed;border-color:#CBD5DF}.g-paw.empty b{color:var(--muted);font-weight:700}
.g-down{margin:6px 0 0;line-height:1.35}
.g-posegrid .g-item.g-rib{grid-template-rows:96px minmax(calc(2 * 1.3em),auto) 1fr}.g-posegrid .g-item-art{height:96px;width:84px}.g-posegrid .g-item-art svg{height:96px;max-height:96px;max-width:none;width:auto}
@media (max-width:560px){.g-posegrid .g-item.g-rib{grid-template-rows:88px minmax(calc(2 * 1.3em),auto) 1fr}.g-posegrid .g-item-art{height:88px;width:76px}.g-posegrid .g-item-art svg{height:88px;max-height:88px}}
/* the leaderboard's pandas, and Me */
.g-av{flex:none;width:44px;height:58px;border-radius:12px;overflow:hidden;line-height:0}.g-av svg{width:44px;height:auto}
.g-mepanda{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:center;max-width:660px}.g-meview .g-form,.g-meview .g-kidcard,.g-meview .g-signin,.g-meview .g-note{max-width:660px}.g-meview .g-endstats{justify-content:flex-start;margin:14px 0}.g-pform .g-row{margin:2px 0 0}.g-mepanda-art{line-height:0}.g-mepanda-art svg{width:120px;height:auto;border-radius:18px}.g-pform{margin:0}
/* toast, confetti */
.g-toast{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom));transform:translate(-50%,calc(100% + 120px + env(safe-area-inset-bottom)));visibility:hidden;z-index:60;background:#16212E;color:#fff;border-radius:14px;padding:10px 16px;font-weight:700;pointer-events:none;transition:transform calc(var(--m-base)*var(--m-out)) var(--m-ease-in),visibility 0s linear calc(var(--m-base)*var(--m-out));max-width:calc(100% - 32px);text-align:center}
/* the toast slides up from below the screen and back down, always fully opaque (never faded), so its white text keeps its contrast */
.g-toast.on{visibility:visible;transform:translate(-50%,0);transition:transform var(--m-base) var(--m-ease-out),visibility 0s}
.g-confetti{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:70;display:none}
/* wide screens */
@media (min-width:900px){.g{padding-bottom:0}.g-tabs{position:static;display:flex;justify-content:center;gap:4px;max-width:1080px;margin:0 auto;border:0;background:transparent;padding:6px 16px 0}
  .g-tabs a{grid-auto-flow:column;gap:6px;min-height:44px;padding:8px 16px;border-radius:12px;font-size:15px}.g-tabs a[aria-current]{background:#fff;box-shadow:0 2px 8px rgba(22,33,46,.1)}
  .g-fix{bottom:16px}.g-toast{bottom:24px}.g-view{padding-top:12px}}
@media (max-width:560px){.g h1{font-size:28px}.g-shop-top{grid-template-columns:132px minmax(0,1fr);gap:10px;padding:10px}.g-shop-stage svg{width:132px}.g-shop-side h1{font-size:26px}.g-wallet{font-size:17px;padding:4px 12px}.g-items{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.g-item{padding:6px 4px;font-size:13px}.g-item-art{height:74px}.g-item-art svg{max-width:70px;max-height:66px}.g-item-tag{font-size:12px;padding:2px 6px}.g-cats button{padding:0 9px;font-size:13.5px}.g-hello{padding:14px}.g-hello-panda svg{width:84px}.g-mepanda{grid-template-columns:1fr}.g-mepanda-art{justify-self:center}.g-tabs a{font-size:11.5px}.g-brand small{display:none}.g-brand b{font-size:16px}.g-stat{padding:5px 8px;font-size:14px}.g-stat-lvl{display:none}
  .g-je-h{display:none}.g-je-row{grid-template-columns:1fr 1fr 44px;grid-template-areas:"a a x" "d c x"}.g-je-row select{grid-area:a}.g-je-row [data-je=d]{grid-area:d}.g-je-row [data-je=c]{grid-area:c}.g-je-row [data-jedel]{grid-area:x}
  .g-je-row{padding:8px;border-radius:12px;background:var(--soft)}
  .g-match{grid-template-columns:1fr}.g-mcol+.g-mcol{border-top:2px dashed var(--line);padding-top:10px}
  .g-part{grid-template-columns:1fr auto}.g-part input[type=range]{grid-column:1/-1;grid-row:2}
  .g-helpbtn{margin-left:0;width:100%}.g-actions .g-btn.primary{flex:1}
  .g-q{padding:12px 12px 16px;border-radius:20px}.g-prompt{font-size:19px!important}
  .g-timeline{grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:6px}.g-timeline .g-bucket{padding:0 6px 8px}.g-timeline .g-bucket h3{margin:0 -6px 6px!important}.g-cal{margin:0 -6px}}
@media (prefers-reduced-motion:reduce){.g *,.g-load *{animation:none!important;transition:none!important}}
@media (hover:hover){.g-opt:hover{border-color:var(--teal)}.g-sec:hover{transform:translateY(-2px);box-shadow:0 14px 30px -20px rgba(22,33,46,.5)}.g-item:hover{border-color:var(--teal)}}
@media (max-width:560px){.g-sched{min-width:0;font-size:13.5px}.g-sched th,.g-sched td{padding:6px 4px}.g-cell{min-width:62px;font-size:15px}}
/* narrow phones: schedules tighten to fit 360px; if one still can't, a shadow at the edge says it scrolls */
@media (max-width:420px){.g-sched{font-size:12.5px}.g-sched th,.g-sched td{padding:5px 2px}.g-sched thead th{font-size:11px;hyphens:auto;-webkit-hyphens:auto}.g-cell{min-width:46px;width:100%;font-size:14px;padding:6px 3px}
  .g-tablewrap{background:linear-gradient(90deg,#fff 30%,rgba(255,255,255,0)) left/24px 100% no-repeat local,linear-gradient(270deg,#fff 30%,rgba(255,255,255,0)) right/24px 100% no-repeat local,radial-gradient(farthest-side at 0 50%,rgba(22,33,46,.22),transparent) left/10px 100% no-repeat scroll,radial-gradient(farthest-side at 100% 50%,rgba(22,33,46,.22),transparent) right/10px 100% no-repeat scroll}}
@media (max-width:380px){.g-q:has(.g-sched){padding-left:8px;padding-right:8px}}

/* one-time "save your progress" popup after the first round */
.g-dlg{border:0;border-radius:20px;padding:26px 24px 18px;max-width:420px;width:calc(100% - 32px);background:#fff;color:#16202A;box-shadow:0 24px 60px rgba(11,40,50,.3);text-align:center}
.g-dlg::backdrop{background:rgba(9,30,38,.55)}
.g-dlg h2{margin:6px 0 8px;font-size:1.35rem;color:#0B6E7C}.g-dlg p{margin:0 0 14px;line-height:1.45}
.g-dlg-art svg{width:44px;height:44px}.g-dlg-x{position:absolute;top:8px;right:12px;border:0;background:none;font-size:28px;line-height:1;color:#5A6B75;cursor:pointer;padding:6px}
.g-dlg #g-dlg-in{text-align:left}.g-dlg-no{margin-top:8px}
.g-dlg #lbc-h{font-size:1rem;margin:0 0 4px}.g-dlg .lbc p{font-size:.92rem}
.g-set-h{font-size:1.05rem;margin:18px 0 6px;display:flex;flex-wrap:wrap;gap:8px;align-items:baseline}.g-set-h small{font-size:.85rem;color:#0B6E7C;font-weight:700}
.g-set-bar{height:8px;border-radius:8px;background:#E2E8F0;overflow:hidden;margin-bottom:10px}.g-set-bar i{display:block;height:100%;background:linear-gradient(90deg,#0D96A8,#3FA82D)}
.g-lv-adv{border-color:#F5B700;background:linear-gradient(180deg,#FFFBEA,#fff)}.g-lv-adv .g-lv-n{background:#F5B700;color:#5C3D00}.g-adv-say{display:block;color:#7A5200}
.g-tool{display:flex;gap:14px;align-items:center;width:100%;text-align:left;margin:12px 0 14px;padding:14px 18px;border:2px solid #0D96A8;border-radius:16px;background:#E6F7F9;color:#0B3B44;font:inherit;cursor:pointer}.g-tool b{display:block;font-size:1.05rem}.g-tool span span{font-size:.92rem}.g-tool .g-t-ico{flex:none}
.g-dd-q{width:100%;box-sizing:border-box;margin:6px 0 10px;padding:11px 14px;border:2px solid #CBD5E1;border-radius:12px;font:inherit;font-size:1rem}.g-dd-q:focus{outline:3px solid #0D96A8;outline-offset:1px;border-color:#0D96A8}#g-dd-list{max-height:46vh;overflow:auto}
/* the save-progress popup has its own heading, so the sign-in form's "Your email" heading is left out (the field keeps its Email label) */
.g-dlg #lbc-h{display:none}
.g-wallet{flex-wrap:wrap;max-width:100%;box-sizing:border-box;row-gap:0}
.g-try .g-paws,.g-try .g-down{justify-self:stretch}
/* A sample Leah Books report in an Advanced question (game.js stmtTable): the app's report card and tables, copied from
   src/app/styles.css (.card.c-purple, .card h2, .hint, .okbadge, table.fin and table.rt), with the app's own colors. */
.lbs{--a-ink:#16212E;--a-muted:#5B6776;--a-line:#E1E7ED;--a-row:#EEF2F5;--a-tink:#0A7583;--a-good:#1A7A43;--a-bad:#B42318;--a-soft:#ECF7F8;margin:12px 0 14px;font:14.5px/1.5 Manrope,system-ui,sans-serif;color:var(--a-ink)}
.lbs-card{background:#fff;border:1px solid var(--a-line);border-top:3px solid #876EFA;border-radius:16px;padding:16px 18px;min-width:0;box-shadow:0 14px 30px -26px rgba(22,33,46,.55)}
.lbs-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:8px}.lbs-ti{min-width:0}
.g .lbs-h{font:400 21px/1.15 "DM Serif Display",Georgia,serif;margin:0 0 2px;color:var(--a-ink)}
.lbs-hint{color:var(--a-muted);font-size:13px;margin:0!important}.lbs-hint span{white-space:nowrap}.lbs-sep{font-style:normal}
.lbs-badge{flex:none;display:inline-flex;align-items:center;gap:5px;font-weight:700;font-size:11.5px;line-height:1.1;color:var(--a-ink);white-space:nowrap}
.lbs-badge small{display:block;font-size:10.5px;font-weight:600;color:var(--a-muted)}
.lbs-mark{font:400 21px/1 "DM Serif Display",Georgia,serif;letter-spacing:-.01em;background:linear-gradient(90deg,#5FE6E8,#3FA82D,#0D96A8,#876EFA);-webkit-background-clip:text;background-clip:text;color:transparent}
.lbs-note{color:var(--a-muted);font-size:13px;margin:2px 0 8px!important}.lbs-tw+.lbs-note{margin:8px 0 0!important}
.lbs-ok{display:inline-flex;gap:6px;align-items:center;font-weight:700;color:var(--a-good)}.lbs-warn{font-weight:800;color:var(--a-bad)}
.lbs-tw{overflow-x:auto}.lbs-tw:focus-visible{outline:3px solid #0D96A8;outline-offset:2px;border-radius:6px}
.lbs-tw.wide{background:linear-gradient(90deg,#fff 30%,rgba(255,255,255,0)) left/24px 100% no-repeat local,linear-gradient(270deg,#fff 30%,rgba(255,255,255,0)) right/24px 100% no-repeat local,radial-gradient(farthest-side at 0 50%,rgba(22,33,46,.22),transparent) left/10px 100% no-repeat scroll,radial-gradient(farthest-side at 100% 50%,rgba(22,33,46,.22),transparent) right/10px 100% no-repeat scroll}
.lbs-t{width:100%;border-collapse:collapse;font-size:13.5px}
.lbs-t thead th{text-align:left;font-size:11.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--a-muted);font-weight:800;padding:8px 10px;border-bottom:1px solid var(--a-line);white-space:nowrap}
.lbs-t tbody th,.lbs-t tfoot th{text-align:left;font-weight:inherit}
.lbs-t td,.lbs-t tbody th,.lbs-t tfoot th{padding:7px 10px;border-bottom:1px solid var(--a-row);vertical-align:middle}
.lbs-t tr:last-child td,.lbs-t tr:last-child th{border-bottom:0}
.lbs-t .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.lbs-t td.txt{white-space:nowrap}
.lbs-t th.lnk{color:var(--a-tink);font-weight:600}
.lbs-t .pctc{color:var(--a-muted);font-size:12.5px}
.lbs-t.rt td,.lbs-t.rt tbody th{padding:10px}
.lbs-t.rt tfoot th,.lbs-t.rt tfoot td{font-weight:800;border-top:1.5px solid var(--a-ink);border-bottom:0;background:#F7FAFB;padding:10px}
.lbs-t.fin .grp th{font-weight:800;padding-top:16px;border-bottom:1px solid var(--a-line);color:var(--a-tink)}
.lbs-t.fin .grp.sub th{font-weight:700;padding-top:10px;color:var(--a-ink);border-bottom:0;padding-left:16px}
.lbs-t.rt .grp th{font-weight:800;color:var(--a-tink);border-bottom:1px solid var(--a-line)}
.lbs-t.fin .tot th,.lbs-t.fin .tot td{font-weight:800;border-top:1.5px solid var(--a-ink)}
.lbs-t.fin .big th,.lbs-t.fin .big td{font-size:15.5px;font-weight:800;background:linear-gradient(90deg,#DBEFF2,#EFECFE)}
.lbs-t .ind th{padding-left:26px}.lbs-t .ind2 th{padding-left:40px}
.lbs-t.multi th[scope=row]{min-width:150px}
/* a report wider than the screen: the account column stays put while the amounts scroll */
.lbs-tw.wide tbody th[scope=row],.lbs-tw.wide tfoot th,.lbs-tw.wide thead th:first-child{position:sticky;left:0;z-index:1;background:#fff;box-shadow:6px 0 6px -6px rgba(22,33,46,.28)}
.lbs-tw.wide tfoot th{background:#F7FAFB}.lbs-tw.wide .big th{background:#DBEFF2}
.lbs-swipe{display:none;margin:6px 0 0;font-size:12.5px;font-weight:700;color:var(--a-muted)}.lbs-card.is-wide .lbs-swipe{display:block}
@media (max-width:560px){.lbs-hint span{display:block;white-space:normal}.lbs-sep{display:none}.lbs-card{padding:12px 12px 14px;border-radius:14px}.g .lbs-h{font-size:19px}.lbs-t{font-size:13px}
  .lbs-t td,.lbs-t tbody th,.lbs-t tfoot th,.lbs-t.rt td,.lbs-t.rt tbody th,.lbs-t.rt tfoot th,.lbs-t.rt tfoot td{padding:6px 5px}.lbs-t thead th{padding:6px 5px;font-size:10.5px;letter-spacing:.03em}
  .lbs-t .ind th{padding-left:14px}.lbs-t .ind2 th{padding-left:24px}.lbs-t.fin .grp.sub th{padding-left:8px}.lbs-t.fin .big th,.lbs-t.fin .big td{font-size:14px}.lbs-t .pctc{font-size:12px}
  .lbs-t.multi th[scope=row]{min-width:104px;max-width:124px}.lbs-t.multi thead th{white-space:normal;vertical-align:bottom;min-width:52px}.lbs-t td.txt{white-space:normal;min-width:44px}.lbs-t.rt.multi th[scope=row]{min-width:0;max-width:110px}.lbs-mark{font-size:18px}}
@media (max-width:380px){.g-q:has(.lbs){padding-left:8px;padding-right:8px}.lbs-card{padding:10px 8px 12px}}
/* the step-by-step Hint for calc questions (game.js hintStart): Kid Mode's steps, in the accounting game's teal */
.g-hintbtn{min-width:96px}
.g-hsteps{list-style:none;padding:0;margin:12px 0;display:grid;gap:8px}.g-hsteps[hidden],.g-calc[hidden]{display:none}
.g-hstep{display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px;align-items:start;padding:10px 12px;border-radius:14px;border:2px solid var(--line);background:#fff}
.g-hstep-n{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#E3E9EE;font-weight:800;color:var(--muted)}
.g-hstep-p{font-weight:700;font-size:17px;line-height:1.4}.g-hstep.on .g-hstep-p,.g-hstep-k{display:block}
.g-hstep-k{font-size:12.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#0B6E7C}
.g-hstep.on{border-color:#0D96A8;box-shadow:0 0 0 3px rgba(13,150,168,.15)}.g-hstep.on .g-hstep-n{background:#E3F5F7;color:#0B6E7C}
.g-hstep.done{border-color:#CDE9C8;background:var(--ok-bg)}.g-hstep.done .g-hstep-n{background:#1B7A3A;color:#fff}
.g-hstep.done .g-hstep-p{font-weight:600;color:#3E4A58;font-size:15px}.g-hstep-v{font-size:17px;color:var(--ok);white-space:nowrap}
.g-hstep.shown{border-color:#FDBA74;background:#FFF7ED}.g-hstep.shown .g-hstep-n{background:#C2410C}.g-hstep.shown .g-hstep-v{color:#9A3412}
.g-hstep.shown small{display:block;color:#9A3412;font-weight:700}
.g-hstep.later{border-style:dashed;background:#FAFBFC}.g-hstep.later .g-hstep-p{font-weight:600;color:var(--muted);font-size:15px}
.g-hstep-in{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:6px 0 2px}.g-hstep-in .g-calc{margin:0}
.g-hstep-in .g-calc input{font-size:20px;width:7em;padding:4px 0}
.g-hstep-fb{display:block;min-height:1.2em;font-weight:700;color:#9A3412}
/* the two helpers under a question (Calculator, DC DEALER) and the two tools on home (public/game/calc.js) */
.g-helpers{margin-left:auto;display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}.g-helpers .g-helpbtn{margin-left:0}
.g-tools{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px;margin:12px 0 14px}.g-tools .g-tool{margin:0}
@media (max-width:560px){.g-helpers{margin-left:0;width:100%}.g-helpers .g-helpbtn{width:auto;flex:1 1 150px;padding:6px 10px;gap:8px;line-height:1.2;text-align:left}}
/* the accountant's calculator: tape, the exact value, Copy */
.g-kc.acct:focus-visible{outline:3px solid #5FE6E8;outline-offset:3px}
.g-kc-tapebox{background:#FBF8EE;border-radius:12px;margin-bottom:10px;padding:6px 12px;box-shadow:inset 0 -3px 0 #E7E0C8}
.g-kc-tape{list-style:none;margin:0;padding:0;font:600 14px/1.55 Manrope,sans-serif;font-variant-numeric:tabular-nums;text-align:right;color:#3B3A30;overflow-wrap:anywhere}
.g-kc-tape li+li{border-top:1px dashed #DED6BC}.g-kc-tape b{color:#16212E}.g-kc-tape[hidden],.g-kc-tape0[hidden]{display:none}
.g-kc-tape0{margin:0;font-size:13.5px;color:#5B5848;text-align:center;line-height:1.5}
.g-kc-screen .g-kc-exact{font-size:13px;min-height:0;color:#3E5A44}
.g-kc-bar{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.g-kc-b{min-height:44px;padding:0 14px;border-radius:12px;border:1.5px solid #4A5B6E;background:#22303F;color:#fff;font:800 15px Manrope,sans-serif;cursor:pointer;touch-action:manipulation}
.g-kc-b:hover{border-color:#5FE6E8}.g-kc-said{flex:1;min-width:0;color:#BFF5C9;font-weight:700;font-size:14px;text-align:center}
.g-acpanel .g-kc{max-width:368px}.g-kc-foot{font-size:13.5px;color:var(--muted)}
/* Accounting Tools (#/tools; the tools' own look is /assets/acctools.css) and Switch in the header */
.g-tool-all{text-decoration:none}.g-tool-all .g-t-ico svg{width:22px;height:22px}
.g-tools-page.at{max-width:none}.g-tools-page .at-grid{margin-bottom:12px}.g .at h1,.g .at .at-h{font-size:30px}
.g-switch{display:inline-flex;gap:6px;padding:0 12px;font-size:15px;font-weight:800;text-decoration:none;color:var(--teal-d)}.g-switch svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:420px){.g-switch{padding:0 10px}.g-switch .g-switch-t{display:none}.g-stat-fire{display:none}} /* a phone: Switch takes the streak's place (the Daily card on home shows the streak) */
.g-brand>span{min-width:0}.g-brand b{overflow:hidden;text-overflow:ellipsis}
@media (max-width:420px){.g-top-in{gap:5px;padding-left:12px;padding-right:12px}} @media (max-width:380px){.g-top-in{gap:4px;padding-left:10px;padding-right:10px}.g-brand{gap:6px}.g-brand b{font-size:14.5px}} /* the name, a 5-character bamboo count, Switch and Sound on one line on a phone (the 14.5px name is here because the 560px rule above sets 16px after the first 380px rule) */
.g .dc-b.dc-cb[aria-pressed="true"]{background:var(--teal-d);border-color:var(--teal-d)} /* Contra on: 15px white text needs the darker teal (4.5:1) */
/* playful motion, the game only (tokens from the motion block in /assets/site.css; finance screens never bounce):
   anticipation (a little crouch before a jump), a move along an arc, squash and stretch on landing */
.g-fly{position:fixed;left:0;top:0;z-index:72;pointer-events:none;line-height:0;will-change:transform}.g-fly svg{width:30px;height:30px}
.g-land{animation:g-land .42s var(--m-ease-out)}@keyframes g-land{0%{transform:none}30%{transform:scale(1.22,.8)}60%{transform:scale(.92,1.1)}to{transform:none}}

/* space between a card grid and the next section heading on the home screen */
.g-secs+.g-h2{margin-top:34px}
/* leaderboard rows never wider than the screen: the name shortens with … instead */
.g-board{grid-template-columns:minmax(0,1fr)}
