:root{font-family:Arial,'Apple SD Gothic Neo',sans-serif;background:#2d1d42;color:#ffedcc;--ink:#362343;--paper:#fff1d2;--gold:#e4b563}*{box-sizing:border-box}body{margin:0}button,select{font:inherit;min-width:44px;min-height:44px;border:1px solid #aa855f;border-radius:8px;color:var(--ink);background:var(--paper);cursor:pointer}button:hover{border-color:#ffe2a4}button:focus-visible,select:focus-visible{outline:3px solid #f0b34b;outline-offset:2px}button:disabled{opacity:.4;cursor:default}.primary{background:#d5a04f;color:#251736;font-weight:700;border-color:#f3cd84}[hidden]{display:none!important}#app{max-width:1170px;margin:auto;padding:8px 18px 0}header{min-height:44px;padding-right:50px;display:flex;justify-content:space-between;align-items:center}.brand{font-size:14px;font-weight:800}.brand b{display:block;font-size:8px;letter-spacing:1px;font-weight:500}nav{display:flex;gap:5px}select{max-width:88px}#tasks{font-size:12px}h1{font-family:Georgia,serif;font-size:27px;margin:11px 0 16px;line-height:1.1}.workspace{display:grid;grid-template-columns:1.5fr 1fr;gap:20px}#timeline{display:flex;gap:5px;margin-bottom:8px}.day{flex:1;border:1px solid #94759b;border-radius:5px;padding:5px 1px;text-align:center;background:#453151;font-size:12px}.day b{display:block}.day small{font-size:10px;color:#e6c6a0}.day.current{outline:2px solid #f2cf87;background:#74515a}.day.debt{background:#5b344d;border-color:#e2a76f}.day.past{opacity:.5}#resources{display:flex;gap:7px;margin-bottom:9px}.resource{display:flex;align-items:center;gap:7px;flex:1;background:#462f53;border:1px solid #8a658a;border-radius:8px;padding:8px;font-size:14px}.resource .symbol{font-size:27px}.resource b{display:block}.resource small{display:block;font-size:11px;font-weight:400;color:#e7cfb6}.scene{overflow:hidden;border:1px solid #8a6488;border-radius:11px}#canvas{display:block;width:100%;height:auto;touch-action:manipulation}.status{display:flex;justify-content:space-between;align-items:center;gap:5px;margin:9px 0;font-size:13px}.status #inspection{color:#efc579;font-size:12px}.controls{padding-top:2px}#devices{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}#devices button{min-height:62px;padding:6px;font-size:13px;font-weight:700}.selected{background:#e1b77b;border:2px solid #fff0b7}.device-lvl{display:block;font-weight:400;font-size:11px;margin-top:3px}#recipe{font-size:13px;line-height:1.5;min-height:39px;margin:10px 0}.build-actions{display:flex;gap:6px}.build-actions button{flex:1;font-size:13px}.preview{border:1px solid #94729d;background:#3d294b;border-radius:9px;padding:12px;margin:18px 0}.preview>b{font-size:12px}#preview{display:flex;justify-content:space-around;gap:10px;margin:8px 0;font-size:17px}#notice{font-size:12px;line-height:1.4;min-height:17px;margin:4px 0 0;color:#f5d59a}.turn-actions{display:flex;gap:6px;flex-wrap:wrap}.turn-actions button{font-size:12px}#end{flex:1;min-width:120px;padding:0 8px}.ledger{width:100%;margin-top:11px;color:#ffe4bc;background:transparent;font-size:12px;border-color:#95749f}footer{display:flex;align-items:center;gap:10px;padding:8px 0}footer button{background:none;border:0;color:#ffedcc;font-size:11px}#storage{font-size:11px;color:#ffca9a}#entry{max-width:730px;margin:auto;text-align:center}#poster{display:block;width:100%;border:1px solid #a17b9d;border-radius:12px}#entry h2{font-family:Georgia,serif;font-size:31px;margin:20px 0 8px}#intro{font-size:15px;line-height:1.6;max-width:590px;margin:0 auto 16px}#start,#resume{min-width:150px;margin:0 5px;padding:8px 18px}dialog{background:#fff2d7;color:#362343;border:1px solid #cfa979;border-radius:12px;padding:22px;max-width:560px;width:calc(100% - 24px);max-height:calc(100dvh - 24px);box-shadow:0 20px 80px #0006}dialog::backdrop{background:#1a102fba}.close{position:sticky;top:0;float:right;font-size:24px;margin:-10px -10px 0 0;z-index:2}dialog h2{font-family:Georgia,serif;font-size:26px;margin:8px 0 16px;padding-right:30px}dialog p,dialog li{font-size:15px;line-height:1.6}.modal-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.modal-actions button{flex:1;padding:8px}.stamp{text-align:center;color:#a0702d;font-size:65px}.task-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.task-grid button{padding:9px;min-height:80px;font-size:14px}.task-grid span{display:block;margin-top:6px;color:#9d6d25}.loan-option{display:block;width:100%;padding:12px;margin-top:10px;line-height:1.5}.loan-option b,.loan-option small{display:block}.loan-option small{color:#8e343b}.debt-list{padding-left:20px}.debt-list li{margin:9px 0}.guide-list{padding-left:20px}.guide-list li{margin-bottom:13px}.credit{font-size:12px;line-height:1.6;overflow-wrap:anywhere;margin:9px 0}#gamenow-mobile-menu-launcher{top:8px!important;right:8px!important}
@media(max-width:740px){#app{padding:4px 9px 0}.brand{font-size:12px}.brand b{font-size:7px}header{padding-right:48px}nav{gap:3px}select{max-width:72px}h1{font-size:20px;margin:5px 0 7px}.workspace{display:block}#timeline{gap:4px;margin-bottom:5px}.day{padding:3px 0;font-size:10px}.day small{font-size:9px}#resources{gap:5px;margin-bottom:5px}.resource{padding:5px 6px;gap:5px;font-size:12px}.resource small{font-size:9px}.resource .symbol{font-size:20px}.status{font-size:12px;margin:5px 0}.status #inspection{font-size:10px}.controls{padding-top:2px}#devices{gap:4px}#devices button{min-height:44px;font-size:11px;padding:4px}.device-lvl{font-size:9px;margin-top:2px}#recipe{font-size:11px;line-height:1.3;min-height:24px;margin:5px 0}.build-actions{gap:5px}.build-actions button{font-size:12px}.preview{padding:6px 8px;margin:7px 0}.preview>b{font-size:10px}#preview{font-size:14px;margin:3px 0}#notice{font-size:10px;min-height:13px;line-height:1.2;margin:2px 0 0}.turn-actions{gap:4px;flex-wrap:nowrap}.turn-actions button{font-size:10px}#end{min-width:90px}.ledger{margin-top:6px}footer{padding:0}#entry h2{font-size:25px}#intro{font-size:14px}#start,#resume{min-width:120px}}
@media(max-width:740px) and (max-height:620px){h1{font-size:17px;margin:3px 0 4px}.day{padding:2px 0}.resource{padding:3px 5px}.resource small{font-size:8px}.scene{max-height:147px}.status{margin:3px 0;font-size:11px}.status #inspection{font-size:9px}#recipe{min-height:20px;margin:3px 0}.preview{margin:4px 0;padding:4px 7px}#preview{margin:2px 0}#notice{min-height:12px}.ledger{display:none}footer{display:none}#intro{font-size:13px}#entry h2{margin-top:14px}}
@media(min-width:741px) and (max-height:500px){#app{padding-top:2px}h1{position:absolute;left:180px;top:9px;margin:0;font-size:18px;max-width:360px}.workspace{grid-template-columns:1.2fr 1fr;gap:13px}.day{padding:2px 0;font-size:10px}.day small{font-size:9px}#timeline{margin-bottom:5px}#resources{margin-bottom:5px}.resource{padding:3px 6px;font-size:12px}.resource small{font-size:9px}.resource .symbol{font-size:19px}.status{margin:4px 0;font-size:12px}.status #inspection{font-size:10px}#devices button{min-height:44px;font-size:11px;padding:4px}#recipe{font-size:12px;min-height:29px;margin:6px 0}.build-actions button{font-size:11px}.preview{padding:8px;margin:9px 0}#preview{margin:5px 0;font-size:15px}#notice{font-size:11px}.turn-actions{gap:4px;flex-wrap:nowrap}.turn-actions button{font-size:10px}#end{min-width:90px}.ledger{margin-top:7px}footer{display:none}#entry{display:grid;grid-template-columns:1.2fr 1fr;gap:6px 18px;max-width:880px}#poster{grid-row:1/5;margin-top:18px}#entry h2{font-size:26px;margin-top:15px}#intro{font-size:14px}}
