.lb-shell {
  --lb-aqua:#75e8da; --lb-ink:#f5f8ff; --lb-soft:#a7bfd0; --lb-line:#36536a; --lb-pink:#ff9bbe;
  box-sizing:border-box; color:var(--lb-ink); padding:20px 14px 64px;
  position:relative; z-index:2; text-align:left; font:15px/1.55 'IBM Plex Mono',ui-monospace,monospace;
}
.lb-shell *, .lb-shell *::before, .lb-shell *::after { box-sizing:border-box; }
.lb-wrap { width:min(100%,660px); margin:auto; }
.lb-shell button, .lb-shell input { font:inherit; }
.lb-shell button { cursor:pointer; }
.lb-shell button:disabled { cursor:default; }
.lb-shell button:focus-visible, .lb-shell summary:focus-visible, .lb-setting input:focus-visible + .lb-toggle { outline:3px solid #ffe2a3; outline-offset:3px; }
.lb-back, .lb-month button {
  color:#c0e9eb; background:#0a1c30; border:1px solid #486978; border-radius:3px;
  padding:7px 12px; min-height:36px; line-height:1.1;
}
.lb-shell h1, .lb-shell h2, .lb-shell p { margin:0; }
.lb-shell h1 { margin:15px 0 20px; font:700 clamp(32px,6vw,49px)/1.07 'Pixelify Sans',ui-monospace,monospace; color:#eff9ff; text-shadow:2px -1px #206e78,-2px 2px #8d436a; }
.lb-shell h2 { color:#d7fbf8; font-size:clamp(17px,3.5vw,22px); line-height:1.25; }
.lb-intro { color:#c2d3df; margin-bottom:17px!important; }
.lb-panel { background:linear-gradient(125deg,#13283e,#0a1b2d); border:1px solid var(--lb-line); border-radius:4px; padding:clamp(14px,4vw,24px); margin:0 0 15px; box-shadow:0 4px 0 #071321; }
.lb-panel h2 { margin:0 0 14px; }
.lb-back:hover, .lb-month button:not(:disabled):hover { border-color:var(--lb-aqua); }
.lb-packs { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.lb-pack {
  min-height:165px; display:grid; grid-template-columns:1fr auto; grid-template-rows:auto 1fr; gap:10px; width:100%;
  background:linear-gradient(130deg,var(--lb-shade),#0d1c30 87%); border:1px solid #486378; border-radius:4px;
  color:var(--lb-ink); text-align:left; padding:16px; box-shadow:0 3px 0 #071321;
}
.lb-pack:hover { border-color:var(--lb-aqua); }
.lb-art { background:repeating-linear-gradient(0deg,#0f253700 0 8px,#71d6dc15 8px 9px),var(--lb-shade); width:56px; height:54px; border:1px solid #91c6cd55; border-radius:3px; display:grid; place-items:center; grid-column:1; }
.lb-art canvas { width:38px; height:36px; image-rendering:pixelated; }
.lb-pack-text { display:grid; gap:4px; grid-column:1 / -1; grid-row:2; }
.lb-pack-text strong { color:#f7faff; font-family:'Pixelify Sans',ui-monospace,monospace; font-size:clamp(18px,3.6vw,24px); line-height:1.2; }
.lb-pack-text small, .lb-setting small { color:var(--lb-soft); font-size:13px; line-height:1.45; }
.lb-arrow { grid-column:2; grid-row:1; align-self:start; color:var(--lb-aqua); font-size:20px; }
.lb-rules { margin:0; padding-left:24px; }
.lb-rules li { padding-left:3px; margin-top:8px; }
.lb-rules li::marker { color:var(--lb-aqua); font-weight:bold; }
.lb-table { width:100%; border-collapse:collapse; }
.lb-table th { color:var(--lb-soft); font-size:12px; font-weight:normal; text-align:left; }
.lb-table th:last-child, .lb-table td:last-child { text-align:right; }
.lb-table td { padding:7px 0; border-top:1px solid #2a435a; }
.lb-table th { padding-bottom:6px; }
.lb-table td:last-child { font-variant-numeric:tabular-nums; color:#ffdc94; }
.lb-table td i { display:inline-block; width:10px; height:10px; margin:0 10px 0 2px; background:var(--lb-tier); box-shadow:2px 2px 0 #020d19; }
.lb-panel .lb-note { margin:12px 0 0; color:var(--lb-soft); font-size:13px; }
.lb-faq details { padding:8px 0; }
.lb-faq details + details { border-top:1px solid #29445a; }
.lb-faq summary { cursor:pointer; color:#dcf5fa; }
.lb-faq details p { margin-top:8px; color:var(--lb-soft); }
.lb-setting { position:relative; display:flex; align-items:center; gap:12px; min-height:72px; padding:12px 0; cursor:pointer; }
.lb-setting + .lb-setting { border-top:1px solid #2d4960; }
.lb-setting span:first-child { display:grid; flex:1; gap:3px; }
.lb-setting input { position:absolute; opacity:0; width:1px; height:1px; }
.lb-toggle { position:relative; border:2px solid #597186; background:#182d40; width:48px; min-width:48px; height:26px; border-radius:3px; padding:3px; }
.lb-toggle::after { content:''; width:16px; height:16px; display:block; background:#a9bdc8; }
.lb-setting input:checked + .lb-toggle { background:#164944; border-color:#70daca; }
.lb-setting input:checked + .lb-toggle::after { margin-left:auto; background:#a1f1e4; }
.lb-month { display:flex; justify-content:space-between; align-items:center; gap:7px; margin:0 0 14px; }
.lb-month h2 { margin:0; text-transform:capitalize; text-align:center; font-size:clamp(15px,3.2vw,20px); }
.lb-month button:disabled { opacity:.35; }
.lb-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:5px; }
.lb-week { color:var(--lb-soft); font-size:12px; padding-bottom:7px; text-align:center; }
.lb-day { min-height:42px; background:#0c2b3c; color:#e3f8f6; border:1px solid #3c6475; border-radius:3px; padding:4px 0; }
.lb-day.lb-today { text-decoration:underline; text-underline-offset:4px; }
.lb-day[aria-pressed="true"] { color:#141f31; background:#8ce7db; border-color:#b6fbeb; font-weight:bold; }
.lb-day:disabled { color:#586d7c; background:#0e1d2b; border-color:#273846; }
.lb-selected { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.lb-selected h2 { margin:0; }
.lb-selected p { color:var(--lb-soft); margin-top:3px; font-size:13px; }
.lb-primary { color:#062a34; background:var(--lb-aqua); border:1px solid #aff3dc; border-radius:2px; box-shadow:0 3px 0 #2e6664; padding:9px 13px; font-weight:bold!important; min-height:39px; }
.lb-error { color:var(--lb-pink); }
@media(max-width:440px) { .lb-shell{padding:15px 10px 42px} .lb-pack{padding:11px;min-height:150px} .lb-packs{gap:8px} .lb-grid{gap:3px} .lb-day{min-height:36px} .lb-calendar{padding:11px} }
@media(max-width:330px) { .lb-packs{grid-template-columns:1fr} .lb-pack{min-height:auto} }
.chapter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:8px;margin:15px 0}.chapter-tile{display:grid;gap:5px;text-align:left;border:1px solid #446879;background:#102d3e;padding:10px 8px;color:#e4f0e5}.chapter-tile:hover{background:#214353;border-color:#83dbd0}.chapter-tile b{font:500 18px var(--pixel)}.chapter-tile small{font:11px var(--mono);color:#abcbd2}
