/* Same visual and control grammar as Zuian's comic diary. */
.rank-gain{color:var(--mint)!important;text-align:right;margin-top:4px!important}.list-row .grow{padding-right:8px}.list-row .grow small{line-height:1.55}
@media(max-height:650px){.training-summary{padding:7px 9px;margin-bottom:7px;font-size:10px}.training-summary+p{font-size:10px;line-height:1.55;margin-bottom:6px}.training-grid{margin:6px -4px}.training-grid .training-action{padding:7px 6px;min-height:82px}.training-grid .training-action>.icon{width:23px;height:23px;margin-bottom:5px}.training-grid .training-action strong{font-size:10px;line-height:1.3}.training-grid .training-action small{font-size:8px;line-height:1.4;margin-top:4px}.sheet-body>.training-legend{font-size:9px;line-height:1.55;margin-bottom:7px}.training-grid~.btn{min-height:28px;font-size:9px;padding:4px 8px}.training-grid~p.muted{font-size:8px;margin-top:5px;line-height:1.4}}
.story-preview{padding:7px 10px;margin-bottom:8px;border:1px solid #ced7b7;border-radius:14px;background:#edf3e0;font-size:10px;color:var(--mint)}.story-preview header{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}.story-preview header strong{font-size:10px}.story-preview header button{font-size:9px;text-decoration:underline;min-height:24px;padding:0 3px}.story-preview>div{display:flex;justify-content:space-between}.story-preview>div span{display:flex;align-items:center;white-space:nowrap}.story-preview .icon{width:14px;height:14px;margin-right:4px}.story-preview b{margin-left:4px}.story-preview>p{font-size:9px;margin-top:5px;color:var(--animal-text-body);line-height:1.4}.story-phone{position:absolute;top:7%;bottom:5%;left:18%;width:64%;background:#fffdf3;border:4px solid #906e43;border-radius:16px;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:5px;box-shadow:0 3px 0 rgba(97,67,32,.18)}.story-phone>.icon{width:22px;height:22px;margin-bottom:6px}.remote-avatar{width:48px;height:48px;overflow:hidden;border:1px solid var(--animal-border);border-radius:50%;background:var(--animal-bg-content)}.remote-avatar img{width:100%;height:100%;object-fit:cover;object-position:center top}.story-phone strong{font-size:9px;margin-top:6px;line-height:1.4;text-align:center}.story-phone small{font-size:7px;margin-top:3px;line-height:1.4;text-align:center}
@media(max-height:650px){.story-preview{padding:4px 8px;margin-bottom:6px;font-size:9px}.story-preview header{margin-bottom:2px}.story-preview header strong{font-size:9px}.story-preview header button{font-size:8px;min-height:21px}.story-preview>p{font-size:8px;margin-top:3px}.story-preview .icon{width:12px;height:12px}.remote-avatar{width:29px;height:29px}.story-phone{border-width:3px;border-radius:12px}.story-phone>.icon{width:14px;height:14px;margin-bottom:3px}.story-phone strong{font-size:8px;margin-top:3px}.story-phone small{font-size:6px}}
.hub-plan>.btn>.icon:first-child,.story-continue>.icon{filter:none!important;background:var(--paper);border-radius:9px;padding:3px}.hub-plan>.btn>.icon:last-child{filter:none!important}
.hub{height:100%;max-width:520px;margin:auto;position:relative;isolation:isolate;display:flex;flex-direction:column;padding:calc(12px + var(--host-top)) 14px calc(5px + var(--host-bottom));overflow:hidden}.hub-background{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-2;background:url('assets/training-room.webp') center 56%/cover no-repeat}.hub-background:after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(180deg,rgba(255,253,243,.88),rgba(255,253,243,.45) 19%,transparent 43%,transparent 80%,rgba(247,243,223,.87))}.hub-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;margin-bottom:9px;min-height:44px}.hub-brand{display:flex;align-items:center;min-width:0;padding:7px 9px;background:rgba(255,253,243,.95);border:1px solid var(--animal-border);border-radius:18px}.brand-seal{width:31px;height:31px;margin-right:7px;display:flex;align-items:center;justify-content:center;background:#e8edda;border:1px solid #a7be9b;border-radius:12px;flex-shrink:0}.hub-brand .eyebrow{font-size:7px;letter-spacing:1px;display:block;margin-bottom:3px}.hub-brand h1{font-size:19px;line-height:1.2;white-space:nowrap;letter-spacing:-.5px}.hub-tools{display:flex;align-items:center;flex-shrink:0;margin-left:7px}.hub-tools .iconbtn{width:42px;height:42px;min-height:42px;margin-left:6px;padding:9px;display:flex;align-items:center;justify-content:center}.hub-tools .icon{width:23px;height:23px;display:block;max-width:none}.hub-date{padding:8px 10px;border-radius:17px;background:var(--paper);text-align:center;font-size:13px;font-weight:900}.hub-date small{display:block;font-size:8px;margin-top:2px;color:var(--animal-text-secondary)}.hub-stats{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;min-height:49px;margin-bottom:7px}.cultivation{display:flex;align-items:center;background:rgba(255,253,243,.94);border:1px solid var(--animal-border);border-radius:50px;padding:7px 13px}.cultivation .icon{width:25px;height:25px;margin-right:7px}.cultivation strong{font-size:28px;line-height:1.15;color:var(--animal-text)}.cultivation small{font-size:10px;margin-left:6px}.mini-meters{background:rgba(255,253,243,.94);border:1px solid var(--animal-border);border-radius:15px;padding:6px 9px;min-width:138px;margin-left:8px}.mini-meters>div{display:flex;align-items:center;margin:3px 0;font-size:9px}.mini-meters .icon{width:14px;height:14px;margin-right:4px}.mini-meters span{min-width:48px;white-space:nowrap}.mini-meters b{color:var(--mint)}.mini-meters i{display:block;width:49px;height:5px;background:#e2dec4;border-radius:10px;overflow:hidden;margin-left:6px}.mini-meters em{display:block;height:100%;background:var(--mint);border-radius:10px}.mini-meters>div:last-child em{background:var(--coral)}.hub-race{display:flex;align-items:center;text-align:left;background:rgba(235,241,219,.97);border:1px solid #c6d4b5;border-radius:18px;flex-shrink:0;padding:9px 10px;min-height:49px;width:100%}.race-seal{width:26px;height:26px;margin-right:9px}.hub-race>span:nth-child(2){flex:1;min-width:0}.hub-race strong{display:block;color:var(--mint);font-size:12px}.hub-race small{display:block;font-size:9px;margin-top:4px;line-height:1.4}.hub-race b{font-size:20px;white-space:nowrap;margin-left:8px}.hub-race>.icon{width:15px;height:15px;margin-left:7px}.hub-stage{position:relative;flex:1;min-height:95px;margin-top:5px;margin-bottom:7px}.hub-actor{position:absolute;top:49px;right:10%;bottom:30px;left:10%;width:80%;height:calc(100% - 79px);object-fit:contain;object-position:center bottom;filter:drop-shadow(0 5px 4px rgba(97,67,32,.12));animation:breathe 5s ease-in-out infinite}.hub-speech{position:absolute;top:5px;left:50%;transform:translateX(-50%);border-radius:50px;padding:8px 12px;background:var(--paper);border:1px solid var(--animal-border);font-size:10px;font-weight:800;white-space:nowrap;max-width:100%}.hub-speech:after{content:'';width:8px;height:8px;position:absolute;bottom:-5px;left:50%;transform:rotate(45deg);background:var(--paper);border-bottom:1px solid var(--animal-border);border-right:1px solid var(--animal-border)}.stage-hotspot{display:none}.hub-place{position:absolute;left:0;bottom:0;font-size:9px;padding:5px 9px;border-radius:50px;background:var(--paper);height:24px;display:flex;align-items:center}.hub-place .icon{width:15px;height:15px;margin-right:5px}.hub-plan{flex-shrink:0;margin-bottom:9px}.hub-plan>.btn{width:100%;padding:9px 13px;min-height:53px;justify-content:flex-start}.hub-plan>.btn>.icon{width:25px;height:25px;margin-right:10px;filter:brightness(0) invert(1)}.hub-plan>.btn>.icon:last-child{width:17px;height:17px;margin-right:0;margin-left:auto}.hub-plan strong{display:block;font-size:13px}.hub-plan small{font-size:9px;font-weight:500;display:block;margin-top:4px;opacity:.9}.hub-nav{display:flex;flex-shrink:0;justify-content:space-between;background:rgba(255,253,243,.97);border:1px solid var(--animal-border);border-radius:23px;padding:5px}.hub-nav button{display:flex;flex:1;align-items:center;justify-content:center;flex-direction:column;padding:5px 3px;min-height:48px;font-size:10px;font-weight:800;border-radius:18px;min-width:0}.hub-nav button:hover,.hub-nav button:focus{background:var(--animal-primary-bg)}.hub-nav .icon{width:22px;height:22px;display:block;max-width:none;margin-bottom:4px}.hub-nav span{line-height:1.2;white-space:nowrap}.hub-footer{display:flex;flex-shrink:0;justify-content:space-between;font-size:8px;color:var(--animal-text-secondary);padding:4px 3px 0;min-height:15px}.hub-footer .save-status{position:static;font-size:8px;line-height:1.3}.training-grid{display:flex;flex-wrap:wrap;margin:10px -4px}.training-action{display:flex;align-items:center;flex-direction:column;width:calc(50% - 8px);margin:4px;min-height:109px;padding:13px 9px;border:1px solid var(--animal-border);background:#fffdf3;border-radius:18px}.training-action.risk{background:#fff0dc;border-color:#e7bf90}.training-action>.icon{width:32px;height:32px;margin-bottom:8px}.training-action strong{font-size:13px}.training-action small{font-size:10px;line-height:1.5;margin-top:7px;text-align:center}.training-summary{display:flex;align-items:center;padding:10px 12px;border-radius:15px;background:var(--animal-primary-bg);color:var(--mint);font-size:12px;font-weight:800;margin-bottom:10px}.training-summary .icon{margin-right:8px}
.story-screen{height:100%;max-width:670px;margin:auto;display:flex;flex-direction:column;padding:calc(15px + var(--host-top)) 16px calc(12px + var(--host-bottom));background:var(--animal-bg-content);overflow:hidden}.story-head{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;min-height:48px;margin-bottom:11px}.story-head>div:first-child{min-width:0;flex:1;padding-right:8px}.story-head h2{font-size:19px;line-height:1.35;margin-top:4px}.story-head .eyebrow{font-size:8px;letter-spacing:.8px;line-height:1.4}.story-tools{display:flex;align-items:center;flex-shrink:0}.story-tools .iconbtn{display:flex;align-items:center;justify-content:center;width:36px;height:36px;min-height:36px;margin-left:0;margin-right:6px;padding:8px}.story-tools .iconbtn .icon{width:21px;height:21px}.story-tools>.btn{font-size:10px;padding:6px 11px;min-height:36px}.story-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));grid-gap:8px;flex:1;min-height:0;padding:5px;background:#e6d5af;border:2px solid #cbb68e;border-radius:20px;overflow:hidden}.story-panel{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--paper);border:2px solid var(--paper);border-radius:11px;overflow:hidden}.story-picture{position:relative;flex:1;min-height:35px;overflow:hidden;background:#e9ddc2}.story-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center 35%;transform:scale(1.04);transition:transform 1.2s var(--ease)}.story-actor{position:absolute;top:7%;bottom:0;left:16%;width:68%;height:93%;object-fit:contain;object-position:center bottom;transform:translateY(5px);transition:transform .3s var(--ease)}.story-panel.acted .story-backdrop{transform:scale(1.01)}.story-panel.acted .story-actor{transform:translateY(0)}.story-caption{padding:8px 8px 9px;flex-shrink:0;background:var(--paper);border-top:1px solid #dfcba6;opacity:0;transition:opacity .2s var(--ease)}.story-panel.spoken .story-caption{opacity:1}.story-caption strong{display:block;color:var(--animal-text);font-size:11px;line-height:1.4;margin-bottom:4px}.story-caption p{font-size:11px;line-height:1.55;overflow-wrap:break-word}.story-panel .panel-number{position:absolute;top:6px;left:6px;display:flex;align-items:center;justify-content:center;width:23px;height:23px;border-radius:50%;background:var(--paper);color:var(--mint);font-size:11px;font-weight:900;z-index:2;border:1px solid #d5c6a7}.story-shutter{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f5efdb;color:#b2a07b;font-size:12px;transition:opacity .24s var(--ease);pointer-events:none}.story-shutter .icon{width:32px;height:32px;margin-bottom:10px}.story-shutter strong{font-size:14px;line-height:1.6}.story-shutter span{font-size:10px;margin-top:6px}.story-panel.revealed .story-shutter{opacity:0}.story-panel.unwritten .story-shutter{opacity:1}.story-panel.current{border-color:#d8a644}.story-controls{flex-shrink:0;padding-top:10px}.story-choices{display:flex;flex-direction:column}.story-choice{display:flex;align-items:center;text-align:left;width:100%;border:1px solid var(--animal-border);background:var(--paper);border-radius:16px;padding:9px 12px;min-height:49px;margin-top:6px}.story-choice:first-child{margin-top:0}.choice-letter{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;border:1px solid #d5dbc3;background:#eef2e0;color:var(--mint);font-size:11px;font-weight:900;margin-right:9px;flex-shrink:0}.story-choice strong{display:block;font-size:12px;line-height:1.35}.story-choice small{display:block;font-size:10px;line-height:1.4;margin-top:3px}.story-continue{width:100%;min-height:44px;font-size:13px}.story-continue .icon{filter:brightness(0) invert(1);width:21px;height:21px}.story-receipt{display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;color:var(--mint);padding:9px 10px;border:1px solid #d1d8ba;background:#eef2df;border-radius:14px;margin-bottom:9px;min-height:37px}.story-receipt .icon{width:19px;height:19px;margin-right:7px}.story-status{font-size:9px;color:var(--animal-text-secondary);text-align:center;margin-top:8px;line-height:1.4}.story-odds{display:flex;justify-content:space-between;border:1px solid var(--animal-border);background:var(--paper);border-radius:12px;padding:7px 8px;font-size:10px;margin-bottom:8px}.story-odds span{display:flex;flex-direction:column;text-align:center;color:var(--coral)}.story-odds b{font-size:9px;color:var(--animal-text-secondary);margin-top:2px}.story-screen.is-paused *{animation-play-state:paused!important;transition:none!important}.story-cinema .story-caption{min-height:65px}.story-cinema .story-grid{grid-gap:9px}.reduced .hub-actor{animation:none}
@media(max-width:380px){.hub{padding-left:10px;padding-right:10px}.brand-seal{display:none}.hub-brand h1{font-size:17px}.hub-brand .eyebrow{font-size:6px;letter-spacing:.6px}.hub-brand{padding:7px 8px}.hub-tools .iconbtn{width:38px;height:38px;min-height:38px;margin-left:5px}.hub-date{font-size:12px;padding:7px 8px}.hub-tools{margin-left:5px}.cultivation{padding:6px 10px}.cultivation strong{font-size:25px}.cultivation .icon{width:22px;height:22px}.mini-meters{min-width:130px;padding:5px 7px}.mini-meters i{width:43px}.story-screen{padding-left:10px;padding-right:10px}.story-head h2{font-size:15px}.story-head .eyebrow{font-size:7px;letter-spacing:.3px}.story-tools>.btn{font-size:9px;padding:5px 9px}.story-tools .iconbtn{width:32px;height:32px;min-height:32px;padding:6px}.story-caption{padding:6px}.story-caption strong{font-size:10px}.story-caption p{font-size:10px}.story-grid{grid-gap:5px;padding:4px}.story-choice{padding:7px 9px;min-height:44px}.story-choice strong{font-size:11px}.story-choice small{font-size:9px}.story-cinema .story-caption{min-height:58px}.hub-race strong{font-size:11px}.hub-race small{font-size:8px}}
@media(max-height:650px){.hub{padding-top:calc(7px + var(--host-top));padding-bottom:calc(3px + var(--host-bottom))}.hub-header{margin-bottom:6px;min-height:38px}.hub-stats{min-height:42px;margin-bottom:5px}.hub-race{min-height:43px;padding:7px 9px}.hub-race strong{font-size:10px}.hub-race small{font-size:8px;margin-top:3px}.hub-race b{font-size:17px}.hub-plan{margin-bottom:7px}.hub-plan>.btn{min-height:46px;padding:7px 11px}.hub-plan strong{font-size:11px}.hub-plan small{font-size:8px;margin-top:3px}.hub-nav{padding:3px;border-radius:19px}.hub-nav button{min-height:43px;font-size:9px;padding:4px 2px}.hub-nav .icon{width:20px;height:20px;margin-bottom:3px}.hub-footer{font-size:7px;min-height:12px}.hub-footer .save-status{font-size:7px}.hub-stage{margin-bottom:5px;min-height:90px}.hub-speech{font-size:9px;padding:7px 10px}.hub-actor{top:43px;height:calc(100% - 73px)}.hub-place{font-size:8px;height:22px}.story-screen{padding-top:calc(9px + var(--host-top));padding-bottom:calc(8px + var(--host-bottom))}.story-head{margin-bottom:7px;min-height:41px}.story-head h2{font-size:15px;margin-top:3px}.story-head .eyebrow{font-size:7px}.story-grid{border-radius:16px;grid-gap:5px}.story-caption{padding:5px 6px 6px}.story-caption strong{font-size:9px;margin-bottom:3px}.story-caption p{font-size:9px;line-height:1.5}.story-controls{padding-top:7px}.story-choice{min-height:40px;margin-top:5px;padding:6px 9px}.story-choice strong{font-size:10px}.story-choice small{font-size:8px;margin-top:2px}.choice-letter{width:23px;height:23px;font-size:10px;margin-right:7px}.story-continue{min-height:39px;font-size:11px}.story-receipt{font-size:10px;padding:7px;min-height:31px;margin-bottom:7px}.story-status{font-size:8px;margin-top:6px}.story-odds{padding:5px 7px;margin-bottom:6px;font-size:9px}.story-odds b{font-size:8px}.story-cinema .story-caption{min-height:53px}.story-panel .panel-number{width:20px;height:20px;top:4px;left:4px;font-size:9px}.training-action{min-height:92px;padding:10px 8px}.training-action>.icon{width:27px;height:27px;margin-bottom:7px}.training-action strong{font-size:11px}.training-action small{font-size:9px;margin-top:5px}}
