:root{--paper: #fff8e7;--ink: #3b2a1a;--ink-soft: #6b5440;--sun: #f4a259;--sun-deep: #c27b3b;--leaf: #4f8a5b;--brick: #c8553d;--shadow: rgba(40, 26, 14, .28);--glass: rgba(255, 248, 231, .88);--safe-b: env(safe-area-inset-bottom, 0px);--safe-t: env(safe-area-inset-top, 0px);--safe-l: env(safe-area-inset-left, 0px);--safe-r: env(safe-area-inset-right, 0px)}html,body{margin:0;height:100%;overflow:hidden;background:#2b2118;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;font-family:Nunito,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;color:var(--ink)}#game{position:fixed;inset:0}#ui-root{position:fixed;inset:0;pointer-events:none}#ui-root .hit{pointer-events:auto}.btn{font:inherit;font-weight:800;border:none;border-radius:16px;padding:10px 16px;min-height:48px;background:var(--sun);color:var(--ink);box-shadow:0 4px 0 var(--sun-deep);cursor:pointer;font-size:calc(16px * var(--text-scale, 1));pointer-events:auto;touch-action:manipulation}.btn:active,.btn.pressed{transform:translateY(3px);box-shadow:0 1px 0 var(--sun-deep)}.btn.ghost{background:var(--glass);box-shadow:0 3px #0000002e}.btn.on{background:var(--leaf);color:#fff;box-shadow:0 4px #35633f}.btn:disabled{opacity:.4}.round{width:52px;height:52px;min-height:0;padding:0;border-radius:50%;font-size:calc(22px * var(--text-scale, 1));display:grid;place-items:center}.corner{position:absolute;display:flex;gap:8px;align-items:center;pointer-events:none}.corner>*{pointer-events:auto}.corner.tl{top:calc(10px + var(--safe-t));left:10px}.corner.tr{top:calc(10px + var(--safe-t));right:10px}.corner.br{right:14px;bottom:calc(18px + var(--safe-b));flex-direction:column;align-items:flex-end;max-width:calc(100% - 172px)}.corner.bc{left:50%;transform:translate(-50%);bottom:calc(14px + var(--safe-b))}.corner.tc{left:50%;transform:translate(-50%);top:calc(70px + var(--safe-t));width:max-content;max-width:calc(100% - 20px)}.inv{background:var(--glass);border-radius:999px;padding:4px 10px;font-size:calc(18px * var(--text-scale, 1));box-shadow:0 2px 0 var(--shadow);min-height:0}.inv:empty{display:none}.actions{display:flex;flex-direction:column;gap:8px;align-items:flex-end}.action{display:flex;align-items:center;gap:8px;animation:pop .16s ease-out}.action .key{font-size:calc(11px * var(--text-scale, 1));background:#3b2a1abf;color:#fff;border-radius:6px;padding:1px 5px;margin-left:4px}.action.primary .btn{min-height:60px;font-size:calc(19px * var(--text-scale, 1));padding:10px 20px}.mode-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.mode-row .btn{min-height:42px;padding:6px 12px;font-size:calc(15px * var(--text-scale, 1))}.actions .btn{text-align:left}.joy{position:absolute;left:18px;bottom:calc(22px + var(--safe-b));width:128px;height:128px;border-radius:50%;background:#fff8e738;border:2px solid rgba(255,248,231,.45);pointer-events:auto;touch-action:none}.joy .knob{position:absolute;left:50%;top:50%;width:56px;height:56px;margin:-28px 0 0 -28px;border-radius:50%;background:#fff8e7d9;box-shadow:0 3px 0 var(--shadow)}.joy.run .knob{background:#ffd9a8}.scrim{position:absolute;inset:0;z-index:20;background:#1e140a6b;display:flex;align-items:flex-end;justify-content:center;pointer-events:auto;animation:fade .16s ease-out}.scrim.center{align-items:center}.sheet{background:var(--paper);width:min(560px,100%);max-height:86%;overflow:auto;border-radius:24px 24px 0 0;padding:18px 20px calc(24px + var(--safe-b));box-sizing:border-box;box-shadow:0 -4px 20px var(--shadow);animation:rise .2s ease-out;touch-action:pan-y}.scrim.center .sheet{width:min(460px,92%);border-radius:24px}.sheet h2{margin:0 0 6px;font-size:calc(24px * var(--text-scale, 1))}.sheet p{line-height:1.45}.sheet .sub{color:var(--ink-soft);margin:0 0 14px}.stack{display:flex;flex-direction:column;gap:10px}.row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.row>.btn{flex:1}label.slider{display:grid;grid-template-columns:1fr 2fr;align-items:center;gap:10px;font-weight:700}input[type=range]{width:100%;accent-color:var(--sun-deep)}.toast{position:absolute;z-index:30;left:50%;top:calc(128px + var(--safe-t));transform:translate(-50%);background:#2b2118e0;color:#fff;padding:10px 16px;border-radius:14px;font-weight:800;font-size:calc(16px * var(--text-scale, 1));text-align:center;max-width:82%;animation:popc .18s ease-out}.badge-it{white-space:nowrap;background:var(--brick);color:#fff;border-radius:999px;padding:8px 14px;font-weight:900;font-size:calc(15px * var(--text-scale, 1));box-shadow:0 3px #0003}.badge-it.runner{background:var(--leaf)}.invite-card{flex-wrap:wrap;justify-content:center}.invite-card .badge-it{white-space:normal;text-align:center}.toolbar{position:absolute;left:0;right:0;bottom:0;padding:8px 10px calc(10px + var(--safe-b));background:linear-gradient(to top,#2b2118c7,#2b211880);display:flex;flex-direction:column;gap:8px;pointer-events:auto}.toolbar .tools{display:flex;gap:6px;overflow-x:auto;align-items:center;scrollbar-width:none}.swatch{flex:0 0 auto;width:40px;height:40px;border-radius:50%;border:3px solid rgba(255,255,255,.25);box-shadow:0 2px #0000004d;cursor:pointer;pointer-events:auto}.swatch.sel{border-color:#fff;transform:scale(1.12)}.toolbar .btn{flex:0 0 auto;min-height:40px;padding:6px 10px;font-size:calc(15px * var(--text-scale, 1))}.sep{width:1px;align-self:stretch;background:#ffffff40;flex:0 0 auto}.hint{color:#ffffffd9;font-size:calc(12px * var(--text-scale, 1))}.hint-note{margin-top:2px;color:#ffe3a3}.toolbar-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.toolbar .btn.done{min-height:44px;padding:6px 18px;font-size:calc(17px * var(--text-scale, 1))}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}html[data-reduce-motion] *{animation:none!important;transition:none!important}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}.page{background:#fff;border-radius:10px;padding:6px;box-shadow:0 2px 6px var(--shadow);transform:rotate(var(--tilt, 0deg));cursor:pointer}.page img{width:100%;border-radius:6px;display:block;background:#cfc6b6}.page small{display:block;color:var(--ink-soft);margin-top:4px;font-size:calc(12px * var(--text-scale, 1))}.big-page{width:100%;border-radius:12px}.title-card{position:absolute;inset:0;display:grid;place-items:center;background:radial-gradient(ellipse at 30% 20%,#ffd68c59,#2b2118bf);pointer-events:auto;text-align:center;color:#fff8e7;padding:24px}.title-card h1{font-size:clamp(30px,8vw,54px);margin:0 0 6px;text-shadow:0 3px 0 rgba(0,0,0,.35)}.title-card p{margin:0 0 22px;font-size:calc(18px * var(--text-scale, 1));opacity:.92}.keys{font-size:calc(13px * var(--text-scale, 1));color:var(--ink-soft)}.keys kbd{background:#fff;border-radius:4px;padding:0 5px;box-shadow:0 1px 0 var(--shadow);font-family:inherit}@keyframes fade{0%{opacity:0}}@keyframes rise{0%{transform:translateY(30%)}}@keyframes pop{0%{transform:scale(.8);opacity:0}}@keyframes popc{0%{transform:translate(-50%) scale(.85);opacity:0}}.corner.tl.net-chip{top:calc(56px + var(--safe-t))}.btn.small-chip{min-height:36px;padding:4px 10px;font-size:calc(14px * var(--text-scale, 1));flex:0 0 auto}.row.chips{max-height:128px;overflow-y:auto}#ui-root.in-game>.corner,#ui-root.in-game>.joy{display:none}.game-bar{position:absolute;top:calc(8px + var(--safe-t));left:8px;right:8px;display:flex;align-items:center;gap:8px;pointer-events:none}.game-bar>*{pointer-events:auto}.game-status{flex:1;min-width:0;background:var(--glass);border-radius:16px;padding:4px 10px;box-shadow:0 2px 0 var(--shadow);text-align:center}.game-scores{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}.game-scores .chip{font-weight:800;font-size:calc(13px * var(--text-scale, 1));border-radius:999px;padding:1px 8px;background:#3b2a1a1f}.game-scores .chip.on{background:var(--leaf);color:#fff}.game-line{font-weight:700;font-size:calc(14px * var(--text-scale, 1));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-skip{position:absolute;top:calc(100% + 6px);right:0;white-space:nowrap}.game-watch{position:absolute;top:calc(100% + 6px);left:0;display:flex;gap:8px;align-items:center;pointer-events:none}.game-watch>*{pointer-events:auto}.watch-tag{background:var(--glass);border-radius:999px;padding:6px 12px;font-weight:800;font-size:calc(14px * var(--text-scale, 1));box-shadow:0 2px 0 var(--shadow);white-space:nowrap}.game-watch .btn{white-space:nowrap}.game-hint{position:absolute;left:12px;right:12px;z-index:20;display:flex;gap:10px;align-items:center;background:var(--glass);border-radius:16px;padding:10px 12px;box-shadow:0 3px #0000002e;font-weight:700;font-size:calc(16px * var(--text-scale, 1));pointer-events:auto}.game-hint .icon{font-size:28px}.library h3{margin:14px 0 4px;font-size:calc(17px * var(--text-scale, 1))}.library p,.library li{line-height:1.45}.library ol,.library ul{margin:4px 0;padding-left:22px}.lib-sec.adapted{background:#4f8a5b1f;border-radius:12px;padding:2px 12px 8px;margin-top:12px}.prog-list{display:flex;flex-direction:column;gap:8px}.prog-title{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:14px;background:#3b2a1a0f;opacity:.75}.prog-title.earned{background:#f4a25938;opacity:1}.prog-icon{font-size:calc(26px * var(--text-scale, 1));width:36px;text-align:center}.prog-text{flex:1;min-width:0;display:flex;flex-direction:column}.prog-text small{color:var(--ink-soft)}.prog-bar{height:6px;border-radius:3px;background:#3b2a1a1f;margin-top:4px;overflow:hidden}.prog-bar i{display:block;height:100%;background:var(--leaf)}.prog-set h3{margin:6px 0 0}.prog-set .sub{margin:2px 0 6px}.prog-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(78px,1fr));gap:8px}.prog-item{font:inherit;border:2px solid transparent;border-radius:12px;background:#3b2a1a0f;padding:6px 4px;display:flex;flex-direction:column;align-items:center;gap:4px;color:var(--ink);cursor:pointer;min-height:48px}.prog-item:disabled{cursor:default;opacity:1}.prog-item.sel{border-color:var(--leaf);background:#4f8a5b29}.prog-item small{font-size:calc(11px * var(--text-scale, 1));text-align:center;line-height:1.2}.prog-item .marble{width:30px;height:30px;border-radius:50%;box-shadow:inset -3px -4px 6px #00000040,0 2px 0 var(--shadow)}.prog-item .face{font-size:28px;line-height:32px}.prog-item .ghost{filter:brightness(0) opacity(.25)}.title-card .title-stats{margin:-12px 0 18px;font-size:calc(15px * var(--text-scale, 1));opacity:.9;min-height:1.2em}.title-card .title-stats:empty{display:none}.tutorial-film{width:100%;max-height:62vh;aspect-ratio:9 / 16;background:#1d1a16;border-radius:14px;object-fit:contain}@media(orientation:landscape)and (max-height:500px){.game-bar{top:calc(4px + var(--safe-t));left:calc(6px + var(--safe-l, 0px));right:calc(6px + var(--safe-r, 0px));gap:6px}.game-bar .round{width:40px;height:40px;font-size:calc(18px * var(--text-scale, 1))}.game-status{display:flex;align-items:center;gap:8px;padding:3px 10px;min-height:34px}.game-scores{flex-wrap:nowrap;flex:0 0 auto}.game-line{flex:1;min-width:0;text-align:left}.game-skip{min-height:40px;padding:4px 12px}.game-hint{right:auto;left:calc(10px + var(--safe-l, 0px));width:min(320px,32vw);flex-wrap:wrap;gap:6px 8px;padding:8px 10px;font-size:calc(14px * var(--text-scale, 1))}.game-hint .icon{font-size:22px}.game-hint .btn{margin-left:auto}}.title-actions{justify-content:center;max-width:620px;margin:0 auto}.title-actions>.btn{flex:0 1 auto;white-space:nowrap}@media(max-width:560px){.title-actions>.btn:first-child{flex-basis:100%}.title-actions>.btn{flex-grow:1}}.legal-frame{width:100%;height:min(62vh,640px);border:1px solid var(--line, #d9ccb4);border-radius:12px;background:#fffdf8}.legal-points{margin:0;padding-left:1.2em;line-height:1.45}.legal-points li+li{margin-top:6px}.gate-input{font:inherit;font-size:24px;width:7ch;text-align:center;padding:8px 10px;border-radius:12px;border:2px solid var(--ink-soft, #7a6a58);background:#fff;color:#2b2118}.age-badge{display:inline-block;vertical-align:super;margin-left:8px;padding:1px 6px;font-size:13px;font-weight:800;letter-spacing:.02em;border:2px solid currentColor;border-radius:6px;line-height:1.2}.title-card .title-parents{margin-top:10px;font-size:14px;padding:6px 12px}.device-code{font-size:12px;word-break:break-all;-webkit-user-select:text;user-select:text}.age-year{font-size:18px;width:100%}.scrim.full{align-items:stretch;background:#1e140a99}.sheet.full{width:100%;max-width:none;max-height:none;height:100%;border-radius:0;display:flex;flex-direction:column;overflow:hidden;padding:calc(10px + var(--safe-t)) calc(14px + var(--safe-r)) calc(10px + var(--safe-b)) calc(14px + var(--safe-l));touch-action:manipulation}.sheet.full h2{font-size:calc(20px * var(--text-scale, 1));margin:0}.sheet.full .sub{margin:2px 0 6px;font-size:calc(13px * var(--text-scale, 1))}.kid-ed{flex:1 1 auto;min-height:0;display:grid;grid-template-rows:minmax(180px,36%) 1fr auto;grid-template-areas:"stage" "panel" "bar";gap:8px}.ked-stage{grid-area:stage;position:relative;min-height:0;min-width:0;border-radius:20px;background:linear-gradient(#f6e3a8 0 72%,#d88b5c 72% 100%);box-shadow:inset 0 -3px #0000001f;overflow:hidden}.ked-kid{position:absolute;inset:4px 0 26px;width:100%;height:calc(100% - 30px);touch-action:none;cursor:grab}.ked-turn{position:absolute;right:8px;top:8px;display:flex;gap:6px}.ked-turn .btn.round{width:44px;height:44px;min-height:44px;padding:0;font-size:20px}.ked-caption{position:absolute;left:0;right:0;bottom:6px;text-align:center;font-weight:800;font-size:calc(16px * var(--text-scale, 1));color:var(--ink)}.ked-panel{grid-area:panel;min-height:0;min-width:0;display:flex;flex-direction:column;gap:8px}.ked-tabs{display:flex;gap:6px;overflow-x:auto;flex:0 0 auto;padding-bottom:4px;touch-action:pan-x;scrollbar-width:thin}.ked-tab{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:62px;padding:6px 6px 4px;border-radius:14px;border:2px solid transparent;background:#3b2a1a12;color:var(--ink);font:inherit;cursor:pointer}.ked-tab.on{background:var(--sun);border-color:var(--sun-deep)}.ked-tab-icon{font-size:24px;line-height:1}.ked-tab-name{font-size:calc(11px * var(--text-scale, 1));font-weight:700;white-space:nowrap}.ked-colors{display:flex;gap:8px;flex-wrap:wrap;flex:0 0 auto;padding:2px 2px 4px}.ked-colors[hidden]{display:none}.ked-colors .swatch{width:36px;height:36px;border-color:#3b2a1a2e}.ked-colors .swatch.sel{border-color:var(--ink)}.ked-tiles{flex:1 1 auto;min-height:0;overflow-y:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));grid-auto-rows:min-content;gap:8px;touch-action:pan-y;padding:2px}.ked-tile{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 4px;border-radius:16px;border:3px solid transparent;background:#fff;box-shadow:0 2px #0000001f;color:var(--ink);font:inherit;cursor:pointer;transition:transform .12s ease-out}.ked-tile:active{transform:scale(.95)}.ked-tile.sel{border-color:var(--sun-deep);background:#fff1d6}.ked-tile-art{width:100%;aspect-ratio:1;max-width:96px}.ked-tile-name{font-size:calc(12px * var(--text-scale, 1));font-weight:700;text-align:center;line-height:1.15}.ked-name{grid-column:1 / -1}.ked-bar{grid-area:bar;min-width:0;display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.ked-bar .btn{min-height:48px}.ked-bar .ked-done{flex:1 1 140px;max-width:260px}@media(min-width:820px)and (min-aspect-ratio:1/1){.kid-ed{grid-template-columns:minmax(300px,42%) 1fr;grid-template-rows:1fr auto;grid-template-areas:"stage panel" "stage bar";gap:14px}.ked-tiles{grid-template-columns:repeat(auto-fill,minmax(116px,1fr))}.ked-tile-art{max-width:112px}}@media(prefers-reduced-motion:reduce){.ked-tile{transition:none}}.chip-face{width:22px;height:22px;border-radius:50%;background:#f6e3a8;vertical-align:middle;margin:-3px 4px -3px -4px}.match-faces{display:flex;justify-content:center;gap:10px}.match-faces .chip-face{width:56px;height:56px;margin:0;box-shadow:0 2px #00000026}.makeup-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px}.makeup-friend{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 4px;border-radius:16px;border:3px solid transparent;background:#fff;box-shadow:0 2px #0000001f;color:var(--ink);font:inherit;font-weight:700;cursor:pointer}.makeup-friend img{width:72px;height:72px;border-radius:50%;background:#f6e3a8}.dress-offer-face{width:56px;height:56px;border-radius:50%;background:#f6e3a8}.sheet:has(.lib-root){position:relative}.sheet:has(.lib-root)>h2{padding-right:58px}.lib-x{position:absolute;top:10px;right:10px;z-index:2;font-size:calc(20px * var(--text-scale, 1))}.lib-carry{align-self:flex-end;flex-shrink:0;min-height:44px;margin:0 0 6px;padding:6px 14px;font-size:calc(14px * var(--text-scale, 1))}.lib-note{display:flex;gap:12px;align-items:flex-start;background:#f2f7e9;border:2px dashed #8fb47a;border-radius:18px;padding:12px 14px;margin:4px 0 14px}.lib-note-tree{font-size:calc(34px * var(--text-scale, 1));line-height:1}.lib-note h3{margin:0 0 4px;font-size:calc(15px * var(--text-scale, 1));color:#3f6d34}.lib-note-text{margin:0;font-size:calc(18px * var(--text-scale, 1));line-height:1.45}.lib-note>div{flex:1}.lib-theme{margin:14px 0 6px}.lib-theme>h3{margin:0 0 2px;font-size:calc(19px * var(--text-scale, 1));border-left:6px solid var(--theme, var(--sun));padding-left:8px}.lib-theme>.sub{margin:0 0 8px 14px;font-size:calc(14px * var(--text-scale, 1))}.lib-covers{display:grid;grid-template-columns:repeat(auto-fill,minmax(calc(132px * var(--text-scale, 1)),1fr));gap:10px}.lib-cover{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:calc(150px * var(--text-scale, 1));padding:10px 10px 10px 18px;border:none;border-radius:6px 14px 14px 6px;background:linear-gradient(90deg,rgba(0,0,0,.22) 0 8px,rgba(255,255,255,.18) 8px 10px,transparent 10px),var(--c);color:#fff;text-align:left;font:inherit;cursor:pointer;box-shadow:0 4px #0000002e,inset 0 0 0 2px #ffffff26;text-shadow:0 1px 2px rgba(0,0,0,.35);touch-action:manipulation}.lib-cover:active{transform:translateY(2px)}.lib-cover:focus-visible,.lib-eprow:focus-visible,.lib-dot:focus-visible,.lib-root .btn:focus-visible{outline:3px solid #2b6cb0;outline-offset:2px}.lib-motif{font-size:calc(34px * var(--text-scale, 1));line-height:1.1}.lib-motif small{font-size:55%;margin-left:2px}.lib-ctitle{font-weight:900;font-size:calc(15px * var(--text-scale, 1));line-height:1.25}.lib-csrc,.lib-age{font-size:calc(12px * var(--text-scale, 1));opacity:.92}.lib-badge{margin-top:auto;font-size:calc(12px * var(--text-scale, 1));font-weight:800;background:#ffffffe6;color:var(--ink);border-radius:999px;padding:2px 8px;text-shadow:none}.lib-badge.done{background:#e3f4dc;color:#2f5d27}.lib-slist{display:flex;flex-direction:column;gap:10px}.lib-scard{display:flex;gap:12px;align-items:flex-start;padding:12px;border-radius:16px;background:color-mix(in srgb,var(--c) 14%,#fff);border-left:8px solid var(--c)}.lib-scard .lib-motif{font-size:calc(40px * var(--text-scale, 1))}.lib-sinfo{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}.lib-scard .lib-ctitle{font-size:calc(17px * var(--text-scale, 1))}.lib-scard .lib-csrc{color:var(--ink-soft)}.lib-scard .lib-badge{align-self:flex-start;margin:0}.lib-sprog{display:block;height:8px;border-radius:999px;background:#0000001a;overflow:hidden}.lib-sprog i{display:block;height:100%;background:var(--c)}.lib-sbtns{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}.lib-eplist{display:flex;flex-direction:column;gap:8px}.lib-eprow{display:grid;grid-template-columns:auto auto 1fr;gap:4px 10px;align-items:center;text-align:left;font:inherit;font-size:calc(16px * var(--text-scale, 1));min-height:52px;padding:8px 12px;border:2px solid rgba(0,0,0,.08);border-radius:14px;background:#fff;color:var(--ink);cursor:pointer}.lib-eprow:disabled{opacity:.55;cursor:default}.lib-eprow.is-read{background:#f0f8ec}.lib-epmark{font-size:calc(18px * var(--text-scale, 1));width:1.4em;text-align:center}.lib-eplabel{font-weight:900;color:var(--ink-soft)}.lib-eptitle{font-weight:700}.lib-epstate{grid-column:3;font-size:calc(12px * var(--text-scale, 1));color:var(--ink-soft)}.lib-rec ul{margin:0;padding-left:20px}.lib-rec li{margin:0 0 8px;line-height:1.4;font-size:calc(15px * var(--text-scale, 1))}.lib-why{color:var(--ink-soft)}.lib-retold{font-size:calc(13px * var(--text-scale, 1));color:var(--ink-soft);background:#0000000a;border-radius:10px;padding:6px 10px}.sheet:has(.lib-reader){width:min(680px,100%);display:flex;flex-direction:column;overflow:hidden}.sheet:has(.lib-reader)>h2,.sheet:has(.lib-reader)>.sub{flex-shrink:0}.sheet:has(.lib-reader)>.sub{font-size:calc(13px * var(--text-scale, 1));margin-bottom:8px}.lib-reader{display:flex;flex-direction:column;min-height:0;flex:1 1 auto;gap:8px}.lib-page{flex:1 1 auto;min-height:140px;overflow:auto;background:#fffdf5;border-radius:16px;border:2px solid color-mix(in srgb,var(--book) 35%,transparent);padding:14px 16px;touch-action:pan-y;cursor:default}.lib-turn{animation:lib-in .22s ease-out}@keyframes lib-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.lib-band{display:flex;gap:12px;align-items:center;margin-bottom:10px}.lib-band .lib-motif{display:grid;place-items:center;width:calc(64px * var(--text-scale, 1));height:calc(64px * var(--text-scale, 1));flex-shrink:0;border-radius:16px;background:var(--book);font-size:calc(38px * var(--text-scale, 1))}.lib-ep{font-weight:900;color:var(--ink-soft);font-size:calc(13px * var(--text-scale, 1))}.lib-btitle{margin:0;font-size:calc(22px * var(--text-scale, 1))}.lib-recap{font-style:italic;color:var(--ink-soft);font-size:calc(16px * var(--text-scale, 1));border-left:4px solid color-mix(in srgb,var(--book) 60%,transparent);padding-left:10px}.lib-text{margin:0;font-size:calc(22px * var(--text-scale, 1));line-height:1.65}.lib-line{border-radius:6px;transition:background-color .15s;-webkit-box-decoration-break:clone;box-decoration-break:clone}.lib-line.lib-on{background:#ffe28a;box-shadow:0 0 0 3px #ffe28a;outline:2px dashed #b7791f;outline-offset:2px}.lib-end h3{margin:0 0 6px;font-size:calc(18px * var(--text-scale, 1))}.lib-done{font-size:calc(22px * var(--text-scale, 1))!important;text-align:center;margin-bottom:12px!important}.lib-card{border-radius:14px;padding:10px 14px;margin-bottom:10px;font-size:calc(18px * var(--text-scale, 1));line-height:1.5}.lib-card p,.lib-card ul{margin:0}.lib-card ul{padding-left:22px}.lib-ideas{background:#fff4d9}.lib-ideas h3:before{content:"💡 "}.lib-question{background:#e8f1fb}.lib-question h3:before{content:"❓ "}.lib-kind{background:#e9f6e4}.lib-kind h3:before{content:"🤝 "}.lib-teaser{font-style:italic;color:var(--ink-soft);font-size:calc(16px * var(--text-scale, 1))}.lib-dots{display:flex;justify-content:center;flex-wrap:wrap;gap:4px;flex-shrink:0}.lib-dot{width:30px;height:30px;border:none;padding:0;background:transparent;cursor:pointer;position:relative;color:var(--ink-soft);font-size:15px}.lib-dot:after{content:"";position:absolute;inset:10px;border-radius:50%;background:#0003}.lib-dot.on:after{background:var(--book);inset:7px;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--book)}.lib-dot.end:after{display:none}.lib-dot.end.on{color:var(--book);font-size:22px}.lib-nav,.lib-aloud{flex-shrink:0}.lib-navrow{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center}.lib-navrow+.lib-navrow{margin-top:8px}.lib-pnum{min-width:6em;text-align:center;font-weight:800;color:var(--ink-soft);font-size:calc(14px * var(--text-scale, 1))}.lib-prev,.lib-next{min-width:calc(130px * var(--text-scale, 1));min-height:56px}.lib-hint{text-align:center;margin:4px 0 0!important;font-size:calc(12px * var(--text-scale, 1))}.lib-aloud .btn,.lib-more .btn,.lib-sbtns .btn{font-size:calc(14px * var(--text-scale, 1));padding:8px 12px;min-height:44px}@media(max-width:520px){.lib-hint{display:none}.lib-prev,.lib-next{min-width:0;flex:1 1 0}.lib-pnum{min-width:0}.lib-page{min-height:200px}.lib-scard .lib-motif{font-size:calc(30px * var(--text-scale, 1))}}@media(prefers-reduced-motion:reduce){.lib-turn,.lib-line{animation:none!important;transition:none!important}}html[data-reduce-motion] .lib-turn,html[data-reduce-motion] .lib-line{animation:none!important;transition:none!important}.am-panel{flex-direction:column;align-items:stretch}.am-card{background:#fff8e7f0;border-radius:18px;box-shadow:0 3px 0 var(--shadow);padding:8px 10px 10px;display:flex;flex-direction:column;gap:8px;max-width:min(560px,calc(100vw - 20px));box-sizing:border-box;color:var(--ink)}.am-head{display:flex;align-items:center;gap:8px;min-width:0}.am-title{font-weight:800;font-size:calc(16px * var(--text-scale, 1));white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.am-guests{color:var(--ink-soft);font-size:calc(13px * var(--text-scale, 1));white-space:nowrap;flex:1;overflow:hidden;text-overflow:ellipsis}.am-head .btn{min-height:40px;padding:4px 12px;font-size:calc(14px * var(--text-scale, 1));white-space:nowrap}.am-acts{display:flex;flex-wrap:wrap;gap:5px;justify-content:center}.am-act{width:46px;height:46px;min-height:0;padding:0;border-radius:14px;font-size:calc(22px * var(--text-scale, 1));display:grid;place-items:center}.am-act.off{opacity:.45}.am-stage{display:flex;align-items:center;gap:10px;justify-content:center;flex-wrap:wrap;border-top:2px dashed rgba(107,84,64,.2);padding-top:8px}.am-stage:empty{display:none}.am-quick{min-height:52px;padding:0 22px;border-radius:26px;font-size:calc(18px * var(--text-scale, 1));font-weight:800;background:#c98a4e;color:#fff8e7}.am-stage-text{display:flex;flex-direction:column;gap:2px;min-width:120px;max-width:230px}.am-stage-text b{font-size:calc(16px * var(--text-scale, 1))}.am-stage-text small{color:var(--ink-soft);font-size:calc(13px * var(--text-scale, 1));line-height:1.3}.am-stage .btn{min-height:44px;padding:6px 14px;white-space:nowrap}.am-breath{width:92px;height:92px;border-radius:50%;border:2px dashed rgba(63,125,78,.35);display:grid;place-items:center;flex:none}.am-breath-dot{width:88px;height:88px;border-radius:50%;background:radial-gradient(circle at 40% 35%,#cfeacc,#7fb98a);box-shadow:0 0 18px #7fb98a99;transform:scale(.4)}.am-pad{width:84px;height:84px;border-radius:50%;font-size:calc(20px * var(--text-scale, 1));background:#c98a4e;color:#fff8e7;box-shadow:0 4px #7a4422;flex:none}.am-pad.on{background:#6fae6a;box-shadow:0 4px #35633f}.am-beat{width:18px;height:18px;border-radius:50%;background:#7fb98a;flex:none}.am-bellbtn{width:76px;height:76px;border-radius:50%;font-size:calc(30px * var(--text-scale, 1));padding:0;flex:none}.am-meter{width:120px;height:10px;border-radius:6px;background:#6b544026;overflow:hidden}.am-meter>i{display:block;height:100%;width:0;background:#e2b75a;border-radius:6px}.am-meter.water>i{background:#5f9aa8}.am-cups{font-size:calc(20px * var(--text-scale, 1));letter-spacing:2px}.am-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin:6px 0 12px}.am-items .btn{min-height:46px;padding:6px 10px;text-align:left;white-space:normal;line-height:1.2}.am-name{font:inherit;font-size:calc(17px * var(--text-scale, 1));width:100%;box-sizing:border-box;border-radius:12px;border:2px solid rgba(107,84,64,.3);padding:10px 12px;background:#fff;color:var(--ink)}.am-note{color:var(--ink-soft);font-size:calc(13px * var(--text-scale, 1));margin:4px 0 0}@media(max-width:520px){.am-card{padding:6px 8px 8px;gap:6px}.am-act{width:42px;height:42px;font-size:calc(19px * var(--text-scale, 1));border-radius:12px}.am-acts{gap:4px;flex-wrap:nowrap}.am-stage{padding-top:6px;gap:8px}.am-stage-text small{display:none}.am-stage-text{min-width:0}.am-breath{width:64px;height:64px}.am-breath-dot{width:60px;height:60px}.am-pad{width:64px;height:64px}.am-bellbtn{width:60px;height:60px;font-size:calc(24px * var(--text-scale, 1))}.am-guests{display:none}}@media(orientation:landscape)and (max-height:500px){.corner.tc.am-panel{left:auto;right:10px;transform:none;top:calc(64px + var(--safe-t, 0px));max-width:max(300px,calc(100vw - 330px))}.am-card{max-width:100%;padding:6px 8px;gap:6px}.am-guests{display:none}.am-head .btn{min-height:36px}.am-act{width:38px;height:38px;font-size:calc(18px * var(--text-scale, 1));border-radius:11px}.am-acts{gap:4px}.am-stage{padding-top:6px;flex-wrap:nowrap}.am-stage-text{min-width:0;max-width:150px}.am-stage-text small,.am-stage-text .am-static,.am-stage .am-lbl{display:none}.am-stage .btn{min-height:40px;padding:4px 10px}.am-breath{width:48px;height:48px}.am-breath-dot{width:44px;height:44px}.am-pad{width:52px;height:52px;font-size:calc(16px * var(--text-scale, 1))}.am-bellbtn{width:48px;height:48px;font-size:calc(20px * var(--text-scale, 1))}.am-meter{width:64px}}.fy-bar{position:absolute;z-index:20;left:50%;transform:translate(-50%);top:calc(70px + var(--safe-t, 0px));width:max-content;max-width:min(560px,calc(100% - 20px));box-sizing:border-box;background:#fffaebf0;color:var(--ink, #3b2a1a);border-radius:18px;padding:8px 10px;box-shadow:0 3px #3b2a1a40;display:flex;flex-direction:column;gap:6px;font-size:calc(14px * var(--text-scale, 1))}.fy-head{display:flex;align-items:center;gap:8px;min-width:0}.fy-title{font-weight:900;white-space:nowrap}.fy-hint{flex:1;min-width:0;opacity:.8;font-size:calc(13px * var(--text-scale, 1));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fy-bar .fy-done{min-height:44px;padding:4px 12px;font-size:calc(14px * var(--text-scale, 1));white-space:nowrap;flex-shrink:0}.fy-foods{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}.fy-foods::-webkit-scrollbar{display:none}.fy-chip{--cd: 1;position:relative;flex-shrink:0;display:inline-flex;align-items:center;gap:4px;min-height:44px;min-width:44px;padding:4px 10px;border:2px solid rgba(59,42,26,.18);border-radius:14px;background:#fff;color:inherit;font:inherit;font-weight:800;cursor:pointer;pointer-events:auto;touch-action:manipulation;overflow:hidden}.fy-chip.on{border-color:var(--sun-deep, #d9a441);background:#fff4cf}.fy-chip.on:after{content:"";position:absolute;left:0;bottom:0;height:4px;width:calc(var(--cd) * 100%);background:var(--sun-deep, #d9a441)}.fy-ic{font-size:calc(18px * var(--text-scale, 1))}.fy-n{background:#3b2a1acc;color:#fff;border-radius:999px;padding:0 6px;font-size:calc(12px * var(--text-scale, 1))}.fy-empty{margin:0;font-size:calc(13px * var(--text-scale, 1));max-width:420px}@media(max-width:520px){.fy-chip[aria-label*="("] .fy-lb,.fy-hint{display:none}}@media(min-width:900px)and (min-height:481px){.fy-bar{top:calc(10px + var(--safe-t, 0px));max-width:min(600px,calc(100% - 440px))}}@media(max-height:480px){.fy-bar{top:calc(6px + var(--safe-t, 0px));max-width:calc(100% - 370px);min-width:0;padding:5px 6px;flex-direction:row-reverse;align-items:center;gap:6px}.fy-title,.fy-hint,.fy-lb,.fy-empty{display:none}.fy-head{flex-shrink:0}.fy-foods{min-width:0}.fy-chip{padding:4px 8px}}.fy-chip.fy-basket{opacity:.75;border-style:dashed}.fy-tip{position:absolute;top:calc(100% + 6px);left:50%;transform:translate(-50%);width:max-content;max-width:min(420px,calc(100vw - 24px));margin:0;padding:8px 14px;border-radius:14px;background:#2b2118e0;color:#fff;font-weight:800;text-align:center;font-size:calc(15px * var(--text-scale, 1));pointer-events:none}.fy-tip[hidden]{display:none}
