#royal-intendant{position:fixed;left:15px;bottom:22px;z-index:8000;font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#eee0d0;max-width:calc(100vw - 30px)}body.gate-locked #royal-intendant{visibility:hidden;pointer-events:none}.intendant-launcher{position:relative;display:flex;flex-direction:column;align-items:center;width:92px;border:0;background:transparent;color:#f3d596;padding:0;cursor:pointer;filter:drop-shadow(0 6px 8px #0008)}.intendant-launcher img{width:92px;height:112px;object-fit:contain;object-position:50% 100%;transition:transform .2s}.intendant-launcher:hover img{transform:translateY(-3px)}.intendant-launcher>span{font-size:10px;line-height:1.5;padding:6px 8px;margin-top:-7px;position:relative;border:1px solid #d4b16c99;border-radius:5px;background:#23152eea;white-space:nowrap}.intendant-launcher b{display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;background:#d2ad68;color:#251a20;margin-left:4px}#intendant-panel{position:absolute;bottom:132px;left:0;width:330px;max-width:calc(100vw - 30px);max-height:62vh;overflow:auto;overscroll-behavior:contain;padding:18px;border:1px solid #d1ad6c;border-radius:12px 12px 12px 3px;background:linear-gradient(145deg,#34213eeF,#16121ff7);box-shadow:0 14px 45px #0008, inset 0 1px #fff1;scrollbar-width:thin;animation:intendant-appear .2s ease}#intendant-panel[hidden]{display:none}#intendant-panel header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:12px}#intendant-panel header small{font-size:8px;letter-spacing:2px;color:#bea477}#intendant-panel h2{font:25px Georgia,serif;color:#f2d69f;margin:4px 0 0}#intendant-close{border:0;background:transparent;color:#d0bacf;font-size:24px;line-height:1;cursor:pointer;padding:3px 5px}#intendant-panel .intendant-topic{font-size:11px;line-height:1.6;color:#bda7c7;margin:0 0 8px}#intendant-text{font-size:13px;line-height:1.8;margin:0 0 18px;color:#eee1d4;min-height:70px}.intendant-controls{display:flex;gap:12px;align-items:center;justify-content:space-between;border-top:1px solid #d4b37233;padding-top:12px}.intendant-controls>button{border:1px solid #bb995d66;border-radius:5px;background:#463344;color:#efd69e;min-height:35px;padding:7px 12px;font:11px system-ui;cursor:pointer}.intendant-controls>button:disabled{opacity:.3;cursor:default}#intendant-count{font-size:10px;color:#b9a4c2;white-space:nowrap}.intendant-preference{display:flex;align-items:center;gap:7px;font-size:9px;color:#b5a1be;line-height:1.5;margin-top:14px}.intendant-preference input{width:13px;height:13px;accent-color:#d3b06c;margin:0}#royal-intendant button:focus-visible{outline:2px solid #f5d99a;outline-offset:3px}@keyframes intendant-appear{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@media(max-width:600px){#royal-intendant{left:10px;bottom:16px;max-width:calc(100vw - 20px)}.intendant-launcher{width:75px}.intendant-launcher img{width:75px;height:90px}.intendant-launcher>span{font-size:9px}#intendant-panel{width:300px;max-width:calc(100vw - 20px);bottom:110px;padding:15px}#intendant-panel h2{font-size:23px}#intendant-text{font-size:12px;min-height:0}.intendant-launcher b{width:14px;height:14px}}@media(max-height:550px){.intendant-launcher img{width:62px;height:70px}.intendant-launcher{width:74px}#intendant-panel{bottom:88px;max-height:calc(100dvh - 115px);padding:12px}#intendant-panel header{margin-bottom:6px}#intendant-panel h2{font-size:20px}#intendant-text{font-size:11px;line-height:1.6;margin-bottom:10px;min-height:0}.intendant-controls{padding-top:8px}.intendant-preference{margin-top:9px}}@media(prefers-reduced-motion:reduce){#intendant-panel,.intendant-launcher img{animation:none;transition:none}}
body:has(#popovers.open) #royal-intendant{visibility:hidden;pointer-events:none}
body.intendant-game-playing #royal-intendant{visibility:hidden;pointer-events:none}body:has(#royal-intendant){padding-bottom:105px}body.gate-locked{padding-bottom:0}
@media(max-height:550px){#intendant-panel{bottom:86px;max-height:calc(100dvh - 104px);padding:9px;display:flex;flex-direction:column;overflow:hidden}#intendant-panel[hidden]{display:none}#intendant-panel header{margin-bottom:4px;flex-shrink:0}#intendant-panel header small,#intendant-panel .intendant-topic{display:none}#intendant-panel h2{font-size:18px;margin:0}#intendant-close{font-size:20px;padding:0 4px}#intendant-text{max-height:50px;overflow:auto;flex:1;min-height:24px;margin:2px 0 7px;font-size:10px;line-height:1.5}.intendant-controls{padding-top:6px;gap:8px;flex-shrink:0}.intendant-controls>button{min-height:26px;padding:4px 8px;font-size:9px}.intendant-preference{font-size:7px;margin-top:6px;flex-shrink:0;gap:5px}.intendant-preference input{height:11px;width:11px}#intendant-count{font-size:8px}}
