:root{--ink:#263049;--ink2:#47536c;--paper:#fffdf5;--ground:#e9ecd9;--accent:#f48b51;--yellow:#ffcf6b;--line:#d9ddca;--green:#3c7858;--muted:#77816e}*{box-sizing:border-box}body{margin:0;background:#edf0e5;color:var(--ink);font-family:"Hiragino Kaku Gothic ProN","Noto Sans JP",Meiryo,sans-serif;font-size:16px}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.46}button:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid #ed8452;outline-offset:3px}button{touch-action:manipulation}button:active:not(:disabled){transform:translateY(2px)}.topbar{height:83px;background:var(--ink);color:var(--paper);padding:0 max(26px,calc((100vw - 1490px)/2));display:flex;align-items:center;justify-content:space-between;border-bottom:4px solid #1c2337}.brand{display:flex;align-items:center;gap:14px}.logo{color:var(--yellow);font-size:40px;line-height:1;transform:rotate(-8deg);text-shadow:3px 3px #131c30}.brand h1{font-size:25px;letter-spacing:2px;margin:0;font-weight:900}.brand-en{font-size:10px;letter-spacing:2.2px;color:#b9c3c9}.header-actions{display:flex;gap:10px}.icon-btn{border:1px solid #5b6578;background:#35415c;color:#ffefcf;border-radius:5px;min-height:38px;padding:0 13px;font-size:14px;font-weight:700}.icon-btn.on{color:var(--yellow)}main{max-width:1490px;padding:22px 26px 0;margin:auto}.season-line{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.season-line>div:first-child{display:flex;align-items:center;gap:12px}.season-line strong{font-size:17px}.edition{background:var(--green);color:#fff;padding:5px 12px;font-size:14px;border-radius:4px;font-weight:700}.save-note{font-size:12px;color:#7b8274}.stats{display:grid;grid-template-columns:1.05fr 1fr .9fr 1.5fr;gap:12px;margin-bottom:18px}.stat{position:relative;min-height:84px;background:var(--paper);border:1px solid var(--line);border-bottom:3px solid #d6dbc7;border-radius:7px;padding:11px 19px}.stat>span{display:block;font-size:13px;color:#748067;font-weight:700;margin-bottom:3px}.stat strong{font-size:28px;letter-spacing:1px}.stat small{font-size:13px;letter-spacing:0;margin-left:6px;font-weight:500}.stat .goal-stat{font-size:16px;letter-spacing:0;display:flex;align-items:center;min-height:34px}.statbar{position:absolute;right:17px;bottom:24px;width:70px;height:6px;background:#e5e9d9;border-radius:4px;overflow:hidden}.statbar i{display:block;height:100%;background:var(--green);width:12%}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 326px;gap:18px;align-items:start}.venue{border:2px solid #c6cfb5;border-radius:9px;background:#d7e4bd;overflow:hidden;box-shadow:0 3px 0 #d6dccb}.venue-top{background:#fffdf0;display:flex;align-items:center;justify-content:space-between;padding:12px 17px;border-bottom:2px solid #b4c399;gap:10px}.phase{display:flex;align-items:center;gap:9px}.phase>span:first-child{color:#ea9555;font-size:22px}.phase strong{font-size:15px}.phase #timeText{font-size:12px;color:#839071;padding-left:9px;border-left:1px solid #d5dbc6}.map-controls{display:flex;gap:5px}.small-btn{background:#eef0e1;border:1px solid #ccd3bb;border-bottom:2px solid #bdc6ac;min-width:33px;height:32px;border-radius:4px;color:var(--ink);font-size:14px;font-weight:700}.canvas-wrap{position:relative;min-height:460px;aspect-ratio:1.55;background:#cfe0b6;overflow:hidden}canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair;image-rendering:pixelated}.map-tag{position:absolute;top:19px;left:20px;pointer-events:none;color:#5c795a;transform:rotate(-2deg)}.map-tag span{font-size:12px;letter-spacing:2px;display:block;font-weight:900}.map-tag b{font-size:9px;letter-spacing:1px;display:block;padding-top:3px;color:#7c9468}.map-hint{position:absolute;left:50%;bottom:37px;transform:translateX(-50%);background:#fffdf0eb;box-shadow:0 2px 0 #a9bd91;border:1px solid #b5c99b;color:#486746;font-size:13px;white-space:nowrap;padding:8px 15px;border-radius:5px;pointer-events:none;max-width:95%;text-overflow:ellipsis;overflow:hidden}.legend{position:absolute;left:16px;right:16px;bottom:12px;display:flex;justify-content:space-between;font-size:11px;color:#5c7753;pointer-events:none}.legend-dot{display:inline-block;width:7px;height:7px;margin-right:5px}.legend-dot.green{background:#70a65d}.venue-footer{background:var(--paper);border-top:2px solid #bacb9e}.festival-progress{padding:13px 17px 10px}.progress-caption{display:flex;justify-content:space-between;font-size:12px;color:#75806c;margin-bottom:7px;gap:15px}.progress-caption span:last-child{white-space:nowrap}.progress-track{height:7px;border-radius:3px;background:#e5e8d9;overflow:hidden}.progress-track i{display:block;height:100%;width:0;background:var(--accent);transition:width .5s}.live-feed{display:flex;align-items:center;gap:11px;padding:11px 17px;background:#f3f1df;border-top:1px solid #e8e4d2;font-size:13px;min-height:44px}.feed-icon{color:#cf8842;font-size:21px}.control-panel{background:var(--paper);border:1px solid #d1d7c4;border-bottom:3px solid #cbd2ba;border-radius:8px;overflow:hidden}.tabs{display:flex;background:#e6ebda;border-bottom:1px solid #cdd5bb}.tab{flex:1;background:transparent;border:0;border-right:1px solid #d3dac3;padding:14px 0;font-size:14px;font-weight:700;color:#74816a;border-bottom:3px solid transparent}.tab.active{color:var(--ink);background:var(--paper);border-bottom-color:var(--accent)}.panel-content{padding:18px 16px;min-height:407px;max-height:535px;overflow:auto;scrollbar-width:thin}.panel-content[hidden]{display:none}.panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px;gap:5px}h2{font-size:17px;margin:0}h3{font-size:14px;margin:24px 0 9px}.mini-label{font-size:10px;letter-spacing:1.3px;color:#839074;font-weight:800}.panel-intro{font-size:12px;color:#7c8674;line-height:1.75;margin:0 0 14px}.build-list{display:grid;gap:7px}.build-card{width:100%;display:grid;grid-template-columns:43px 1fr auto;align-items:center;text-align:left;gap:9px;min-height:57px;padding:7px 9px;background:#f5f5e9;border:1px solid #dfe3ce;border-bottom:2px solid #d6ddc3;border-radius:5px;color:var(--ink)}.build-card.selected{background:#fff0d5;border-color:#dfad61;box-shadow:inset 3px 0 #f29b55}.build-icon{display:block;width:41px;height:37px;image-rendering:pixelated}.build-card strong{display:block;font-size:14px}.build-card .desc{display:block;font-size:10px;color:#818971;margin-top:3px}.build-price{font-size:14px;font-weight:800;white-space:nowrap}.build-price small{font-size:10px;font-weight:400}.build-card.locked{opacity:.5}.selected-facility{padding:13px;background:#f6ead2;border:1px solid #debc89;border-radius:5px;margin-top:12px;font-size:13px;line-height:1.7}.selected-facility strong{display:block}.upgrade-btn{width:100%;margin-top:8px;border:1px solid #9bb283;border-bottom:3px solid #829d6a;padding:7px;background:#e0ebcc;color:#375739;border-radius:4px;font-size:13px;font-weight:700}.launch-panel{padding:14px 16px 12px;background:#eeefdf;border-top:1px solid #dce0ca}.budget-line{display:flex;justify-content:space-between;font-size:12px;color:#7a826f;margin-bottom:5px}.budget-line strong{color:#525d48}.launch-btn{border:1px solid #263049;border-bottom:4px solid #162037;color:#fffaf0;background:var(--ink);font-weight:800;width:100%;min-height:49px;font-size:16px;border-radius:5px;display:flex;align-items:center;justify-content:center;gap:11px;margin-top:11px}.launch-btn:hover:not(:disabled){background:#37435d}.start-symbol{color:var(--yellow);font-size:13px}.launch-panel p{font-size:10px;text-align:center;color:#7b8271;margin:8px 0 0;line-height:1.7}.page-footer{display:flex;justify-content:space-between;font-size:11px;color:#88917c;padding:19px 0 20px}.slot{display:flex;gap:10px;align-items:center;padding:12px 9px;border:1px solid #dde1cf;border-bottom:2px solid #d5dbc6;border-radius:4px;margin-bottom:7px;cursor:pointer;background:#f4f5e9}.slot.active{border-color:#e4a466;background:#fff1d5}.slot-time{font-size:12px;color:#777f6a;min-width:44px}.slot-name{flex:1}.slot-name strong{font-size:13px;display:block}.slot-name small{font-size:10px;color:#879071}.slot-fee{font-size:12px}.artist-list{margin-top:19px;display:grid;gap:7px}.artist{background:transparent;border:1px solid #dce1cc;border-radius:4px;display:grid;grid-template-columns:35px 1fr auto;gap:9px;text-align:left;align-items:center;padding:9px;color:var(--ink)}.artist-face{width:32px;height:35px;image-rendering:pixelated}.artist strong{font-size:13px;display:block}.artist small{font-size:10px;color:#7b8670;display:block;margin-top:2px}.artist-fee{font-size:12px}.artist:disabled{opacity:.5}.ticket-control{border-bottom:1px solid #dde1ce;padding:9px 0 17px;font-size:13px}.ticket-control label{display:flex;justify-content:space-between;margin-bottom:9px}.ticket-control input{width:100%;accent-color:var(--green)}.ticket-control p{font-size:11px;line-height:1.6;color:#7d8873;margin:5px 0 0}.management-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid #e2e5d6;font-size:13px}.management-row b{font-size:13px;color:#507248}.history-card{padding:10px 0;border-bottom:1px solid #e0e4d3}.history-card strong{display:block;font-size:13px;margin-bottom:4px}.history-card small{font-size:11px;color:#7a8472}.text-btn{border:0;background:none;font-size:12px;text-decoration:underline;color:#85907b;padding:16px 0 0}.toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);background:var(--ink);border:1px solid #495772;border-bottom:3px solid #131c2d;color:#fffce9;font-size:14px;padding:12px 20px;border-radius:6px;opacity:0;transition:all .2s;pointer-events:none;z-index:20;max-width:90vw;text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}dialog{border:2px solid var(--ink);border-bottom:6px solid #162036;background:var(--paper);color:var(--ink);padding:29px;width:min(480px,92vw);border-radius:9px;max-height:90vh;overflow:auto}dialog::backdrop{background:#1d2b419e;backdrop-filter:blur(3px)}.result-head{text-align:center;padding:7px 0 15px}.result-head h2{font-size:23px;margin:12px 0 7px}.result-stars{color:#d88f2d;font-size:33px;letter-spacing:5px}.result-metrics{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:12px 0}.result-metric{background:#edf0df;border:1px solid #d8dfc8;border-radius:4px;padding:13px;text-align:center}.result-metric span{display:block;font-size:12px;color:#79836e;margin-bottom:4px}.result-metric strong{font-size:22px}.result-line{display:flex;justify-content:space-between;padding:8px 2px;font-size:13px;border-bottom:1px dashed #d4dbc3}.result-note{font-size:13px;line-height:1.8;background:#fff1d8;padding:12px;border-radius:4px;margin:16px 0}.help-head h2{font-size:23px;margin-top:10px}.help-steps{padding-left:25px;font-size:15px}.help-steps li{padding-left:4px;margin-top:22px}.help-steps li::marker{color:#d9923f;font-weight:800}.help-steps p{font-size:13px;line-height:1.8;margin:4px 0;color:#707b65}.help-note{font-size:12px;color:#7d8772;line-height:1.8;background:#edf0df;padding:12px;border-radius:4px}.empty-history{color:#849079;font-size:12px;line-height:1.8}body.running .legend-dot{background:#d8a449}body.running .map-hint{background:#fff6dfde}.negative{color:#c85b43!important}.positive{color:#397550!important}@media(min-width:1550px){.canvas-wrap{min-height:600px}}@media(max-width:1100px){.workspace{grid-template-columns:minmax(0,1fr) 295px;gap:12px}main{padding:18px 18px 0}.canvas-wrap{min-height:480px}.stat{padding:11px 13px}.statbar{width:45px;right:12px}.phase #timeText{display:none}}@media(max-width:820px){.topbar{height:74px;padding:0 17px}.brand h1{font-size:21px}.brand-en{font-size:8px}.brand{gap:10px}.logo{font-size:33px}main{padding:14px 12px 0}.workspace{grid-template-columns:1fr}.canvas-wrap{min-height:0;aspect-ratio:1.45}.control-panel{display:grid;grid-template-columns:1fr 220px}.tabs{grid-column:1/-1}.panel-content{min-height:0;max-height:340px}.launch-panel{border-top:0;border-left:1px solid #d2dac0;display:flex;flex-direction:column;justify-content:center}.build-list{grid-template-columns:1fr 1fr}.build-card{grid-template-columns:32px 1fr;gap:7px;padding:7px;min-height:66px}.build-icon{width:32px;height:30px}.build-card strong{font-size:12px}.build-price{grid-column:2;font-size:12px;margin-top:-4px}.build-card .desc{display:none}.stats{gap:7px;grid-template-columns:1fr 1fr 1fr}.stat:last-child{display:none}.stat strong{font-size:25px}.stat{min-height:76px;padding:10px 12px}.statbar{display:none}.season-line{margin-bottom:12px}.season-line strong{font-size:14px}.save-note{font-size:10px}.panel-content{padding:14px}.page-footer span:first-child{display:none}.page-footer{justify-content:center}.phase #timeText{display:inline}}@media(max-width:520px){.header-actions{gap:6px}.icon-btn{font-size:12px;padding:0 9px;min-height:34px}.brand h1{font-size:18px;letter-spacing:1px}.brand-en{letter-spacing:1px}.control-panel{display:block}.launch-panel{border-top:1px solid #d9dfc7;border-left:0;padding:12px 14px;position:relative}.budget-line{display:inline-flex;width:49%;padding-right:15px;font-size:11px}.launch-btn{margin-top:7px}.launch-panel p{font-size:10px}.panel-content{max-height:320px;min-height:0}.build-list{grid-template-columns:1fr 1fr}.build-card{grid-template-columns:38px 1fr auto;min-height:57px;gap:6px}.build-price{grid-column:auto;margin:0;font-size:12px}.build-icon{width:34px;height:31px}.build-card strong{font-size:12px}.build-price small{font-size:9px}.venue-top{padding:8px 10px}.phase{gap:5px}.phase strong{font-size:13px}.phase #timeText{font-size:10px;padding-left:6px}.small-btn{height:29px;min-width:28px;padding:0 5px;font-size:12px}.canvas-wrap{aspect-ratio:1.08}.map-tag{top:12px;left:12px}.map-tag span{font-size:10px}.map-tag b{font-size:8px}.map-hint{font-size:11px;bottom:31px;padding:6px 9px}.legend{font-size:9px;bottom:10px;left:12px;right:12px}.stats{margin-bottom:12px}.stat{padding:8px 10px;min-height:70px}.stat>span{font-size:11px}.stat strong{font-size:23px}.stat small{font-size:10px;margin-left:3px}.season-line>div:first-child{gap:8px}.edition{font-size:12px;padding:4px 9px}.season-line strong{font-size:12px}.save-note{font-size:9px}.festival-progress{padding:11px 12px}.progress-caption{font-size:10px}.live-feed{padding:8px 12px;font-size:11px}.tab{padding:12px 0}.panel-intro{font-size:11px}.panel-heading h2{font-size:15px}.artist-list{grid-template-columns:1fr 1fr}.artist{grid-template-columns:25px 1fr;gap:7px;padding:8px}.artist strong{font-size:11px}.artist-face{width:25px;height:30px}.artist-fee{grid-column:2;font-size:11px}.lineupSlots{display:flex}.result-head h2{font-size:20px}dialog{padding:23px}.ticket-control p{font-size:12px}}

/* The game occupies the viewport; only the selected menu scrolls. */
html{height:100%;overflow:hidden;overscroll-behavior:none}
body{height:100vh;height:100dvh;overflow:hidden;display:flex;flex-direction:column;overscroll-behavior:none}
.topbar{flex:0 0 62px;height:62px;padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}
main{display:flex;flex-direction:column;flex:1;width:100%;min-height:0;padding:12px max(18px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));gap:10px}
.season-line{flex-shrink:0;margin:0;min-height:25px}.stats{flex-shrink:0;margin:0}.stat{min-height:66px;padding:8px 16px}.stat strong{font-size:25px}
.workspace{flex:1;min-height:0;align-items:stretch;grid-template-rows:minmax(0,1fr)}
.venue{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto}.venue-top{padding:8px 14px}.canvas-wrap{min-height:0;aspect-ratio:auto;min-width:0}#world{position:absolute;inset:0;width:100%;height:100%}
.control-panel{min-height:0;display:grid;grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr) auto;position:relative;overflow:visible}
.tabs{grid-column:auto;border-radius:7px 7px 0 0;overflow:hidden}.tab{padding:11px 0}
.panel-content{min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:14px 16px}
.launch-panel{border-left:0;border-top:1px solid #dce0ca;padding:10px 14px;border-radius:0 0 7px 7px;display:block}.launch-panel .launch-btn{min-height:44px}.launch-panel p{margin-top:5px}
.page-footer{display:none}.sheet-close{display:none}.selected-facility{margin:0 0 12px}.panel-heading{min-height:26px}
.festival-progress{padding:9px 14px}.live-feed{padding:6px 14px;min-height:34px}.progress-caption{margin-bottom:5px}
@media(max-width:820px){
 .topbar{height:50px;flex-basis:50px}.brand h1{font-size:18px}.brand-en{display:none}.logo{font-size:28px}.icon-btn{min-height:32px;padding:0 9px;font-size:12px}
 main{padding:6px max(8px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));gap:6px}.season-line{min-height:22px}.season-line strong{font-size:12px}.edition{font-size:12px;padding:3px 8px}.save-note{font-size:10px}
 .stats{gap:6px;grid-template-columns:1fr 1fr 1fr}.stat{min-height:54px;padding:5px 10px}.stat>span{font-size:12px;margin-bottom:0}.stat strong{font-size:22px}.stat small{font-size:11px}
 .workspace{gap:6px;grid-template-columns:minmax(0,1fr) 220px;grid-template-rows:minmax(0,1fr)}
 .phase #timeText{display:none}.venue-top{padding:6px 9px}.phase strong{font-size:13px}.map-controls{gap:4px}.small-btn{min-width:30px;height:30px;padding:0 5px;font-size:13px}
 .map-tag{top:12px;left:12px}.map-hint{bottom:27px;font-size:12px;padding:5px 9px}.legend{bottom:7px;font-size:10px;left:12px;right:12px}
 .progress-caption{font-size:11px}.live-feed{font-size:12px;min-height:29px}.feed-icon{font-size:16px}
 .panel-content{padding:12px;max-height:none}.build-list{grid-template-columns:1fr}.build-card{grid-template-columns:34px 1fr auto;min-height:54px;padding:7px;gap:6px}.build-card strong{font-size:14px}.build-icon{width:32px;height:30px}.build-price{grid-column:auto;font-size:13px;margin:0}.build-price small{font-size:10px}.build-card .desc{display:none}
 .panel-intro{font-size:12px}.panel-heading h2{font-size:15px}.artist-list{grid-template-columns:1fr}.artist strong{font-size:14px}.artist small{font-size:12px}.artist-fee{grid-column:auto;font-size:13px}.launch-panel p{display:none}.budget-line{font-size:12px}
}
@media(max-width:820px) and (orientation:portrait){
 .workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
 .control-panel{display:block;z-index:3;background:#fffdf5}.tabs{height:42px;border-radius:7px 7px 0 0}.tab{font-size:14px;padding:9px 0}
 .panel-content{display:none;position:absolute;left:-1px;right:-1px;bottom:calc(100% + 6px);max-height:min(52dvh,440px);padding:12px 14px;background:var(--paper);border:2px solid #9dac89;border-radius:9px;box-shadow:0 -5px 22px #26304925;z-index:5;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:auto}
 .menu-open .panel-content:not([hidden]){display:block}.sheet-close{display:block;border:1px solid #c9d2bb;background:#edf1df;color:#4e6146;font-size:14px;border-radius:4px;min-height:34px;padding:4px 10px}.panel-heading .mini-label{display:none}.panel-heading{position:sticky;top:-12px;background:var(--paper);z-index:1;padding:3px 0 8px;justify-content:space-between}
 .build-list{grid-template-columns:1fr 1fr;gap:6px}.build-card{min-height:58px}.launch-panel{padding:6px 10px;display:grid;grid-template-columns:1fr 1fr;gap:3px 8px}.budget-line{margin:0;width:auto;display:flex;gap:5px;padding:0;font-size:11px}.launch-panel .launch-btn{grid-column:1/-1;min-height:42px;margin:2px 0 0}.launch-panel p{display:none}
 .artist-list{grid-template-columns:1fr 1fr}.artist{grid-template-columns:25px 1fr;padding:8px;gap:7px}.artist-fee{grid-column:2}.slot{min-height:46px}.slot-name strong{font-size:14px}.slot-name small{font-size:12px}.slot-time{font-size:13px}
 .venue-footer .live-feed{display:none}.festival-progress{padding:7px 10px}.progress-caption{font-size:11px;margin-bottom:4px}.progress-track{height:5px}.map-tag b{display:none}
 .toast{bottom:calc(124px + env(safe-area-inset-bottom));font-size:13px;padding:9px 14px}
}
@media(max-height:550px){
 .topbar{height:42px;flex-basis:42px}.brand h1{font-size:18px}.brand-en{display:none}.logo{font-size:25px}.season-line{display:none}.stats .stat{min-height:45px;padding:3px 10px}.stat strong{font-size:20px}.stat>span{font-size:11px}.stat .goal-stat{font-size:13px;min-height:25px}
 main{gap:5px;padding-top:5px;padding-bottom:max(5px,env(safe-area-inset-bottom))}.workspace{gap:7px}.venue-top{padding:5px 9px}.live-feed{display:none}.festival-progress{padding:5px 10px}.progress-caption{font-size:11px;margin-bottom:3px}.progress-track{height:4px}.map-tag{display:none}.legend{display:none}.map-hint{bottom:7px;font-size:11px;padding:4px 8px}
 .tabs{min-height:36px}.tab{padding:7px 0;font-size:13px}.panel-content{padding:9px 12px}.panel-heading h2{font-size:14px}.panel-intro{font-size:11px;margin-bottom:9px}.launch-panel{padding:5px 10px}.budget-line{font-size:11px}.launch-panel .launch-btn{min-height:37px;font-size:14px;margin-top:4px}.launch-panel p{display:none}.small-btn{height:29px}
}
.topbar{padding-top:env(safe-area-inset-top);height:calc(62px + env(safe-area-inset-top));flex-basis:calc(62px + env(safe-area-inset-top))}
@media(max-width:820px){.topbar{height:calc(50px + env(safe-area-inset-top));flex-basis:calc(50px + env(safe-area-inset-top))}}
@media(max-height:550px){.topbar{height:calc(42px + env(safe-area-inset-top));flex-basis:calc(42px + env(safe-area-inset-top))}}
/* Live run: rewards sit over the park without changing the viewport layout. */
.run-hud{position:absolute;top:12px;left:12px;right:12px;display:grid;grid-template-columns:minmax(0,1fr) 86px;gap:10px;pointer-events:none;z-index:1}.run-hud[hidden],.fever-banner[hidden],.run-notice[hidden],.run-build[hidden]{display:none}
.run-xp{background:#263049ed;border:1px solid #718779;border-bottom:3px solid #172d34;border-radius:6px;padding:9px 12px;color:#fff8dc;max-width:300px}.run-xp>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}.run-xp strong{font-size:17px;color:#abf0d9}.xp-track,.hype-track{height:6px;background:#111c2d;border-radius:3px;overflow:hidden;margin-top:5px}.xp-track i,.hype-track i{display:block;height:100%;background:#78ddc5;transition:width .15s}.hype-track{height:4px;margin-top:3px}.hype-track i{background:#ffbd70}.hype-caption{font-size:10px;color:#ebbd7e;margin-top:5px}
.combo-box{justify-self:end;min-width:75px;background:#263049de;border:1px solid #72846a;border-bottom:3px solid #253c35;border-radius:6px;color:#ffe5a1;padding:5px 8px;text-align:center;display:flex;flex-direction:column;justify-content:center}.combo-box strong{font-size:27px;line-height:1.1}.combo-box span{font-size:10px;letter-spacing:1px;font-weight:800}.combo-box small{font-size:10px;color:#dae4c7;margin-top:4px}
.fever-banner{position:absolute;top:105px;left:50%;transform:translateX(-50%);font-size:24px;font-weight:900;letter-spacing:1px;white-space:nowrap;color:#ffe079;text-shadow:2px 2px #28314b,-1px -1px #28314b;background:#263049e6;border:2px solid #ffd072;border-radius:6px;padding:7px 18px;pointer-events:none;z-index:2;animation:fever-in .35s ease-out}
.run-notice{position:absolute;left:50%;bottom:41px;transform:translateX(-50%);max-width:94%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;border:1px solid #c9b875;background:#fff1d8ec;color:#4b593f;box-shadow:0 2px 0 #b6bd8d;font-weight:700;font-size:13px;padding:7px 12px;border-radius:5px;pointer-events:none;z-index:1}.run-build{position:absolute;bottom:12px;left:12px;display:flex;gap:5px;flex-wrap:wrap;max-width:70%;pointer-events:none}.build-chip{font-size:12px;font-weight:800;background:#263049e8;color:#a4eed7;border:1px solid #819184;border-radius:4px;padding:3px 6px}.build-chip.gold{color:#ffe296}.build-chip.pink{color:#ffb7d1}.build-chip.green{color:#caf0a1}.build-chip.evolved{color:#ffe08f;border-color:#ffe08f;background:#635133ed}
body.running .map-tag,body.running .map-hint,body.running .legend{display:none}body.fever .venue{border-color:#e4b756;box-shadow:0 0 0 2px #ffcc702c}.launch-btn:disabled{opacity:.7}body.running #start:not(:disabled){background:#465938;border-color:#243520;color:#fff5c7}
#decisionDialog{width:min(790px,94vw);padding:25px;background:#f9f8ec}#decisionDialog.levelup{border-color:#577b65;border-bottom-color:#315543}.decision-head{text-align:center}.decision-head .mini-label{color:#a66b37;font-size:13px;letter-spacing:2px}.levelup .decision-head .mini-label{color:#417a64;font-size:19px}.decision-head h2{font-size:22px;margin:9px 0}.decision-head>p{font-size:14px;line-height:1.75;color:#758066;margin:7px 0 17px}.decision-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.decision-card{background:#fffdf3;border:2px solid #9fbdad;border-bottom:5px solid #719689;border-radius:7px;padding:18px 14px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;color:var(--ink);min-width:0;transition:background .12s,transform .12s}.decision-card:hover:not(:disabled){background:#edfaec}.decision-card .perk-icon{display:flex;align-items:center;justify-content:center;width:49px;height:49px;background:#e1f2e9;border:2px solid #92c3aa;color:#427c67;font-size:31px;line-height:1;border-radius:7px;box-shadow:3px 3px #d7e3d2}.perk-copy{display:flex;flex-direction:column;min-width:0}.perk-label{font-size:12px;color:#67826c;font-weight:800;margin-bottom:5px}.perk-copy>strong{font-size:17px;line-height:1.5}.perk-desc{font-size:13px;color:#77816d;line-height:1.7;display:block;margin-top:9px}.perk-effect{font-size:13px;margin-top:12px;color:#49745b;line-height:1.6}.decision-card.gold{border-color:#d8b86f;border-bottom-color:#b4934e}.decision-card.gold .perk-icon{color:#af7a24;background:#fff0cb;border-color:#e1bd68}.decision-card.pink{border-color:#d1a3b8;border-bottom-color:#ac7c97}.decision-card.pink .perk-icon{color:#ae668c;background:#fce7f0;border-color:#d3a2b7}.decision-card.green{border-color:#a8bc86;border-bottom-color:#889a69}.decision-card.evolved{background:#fff0c9;border-color:#e7b150;border-bottom-color:#aa762e;box-shadow:0 0 16px #ecc96a45}.decision-card.evolved .perk-icon{background:#ffe4a1;border-color:#dca342;color:#ac7324}.decision-card.evolved .perk-label{color:#b17726}.decision-card.event{border-color:#c8bd96;border-bottom-color:#a29a77;text-align:left;align-items:flex-start}.decision-card.event .perk-icon{color:#9a8257;background:#f2ead2;border-color:#c4b287}.decision-choices:has(.event){grid-template-columns:repeat(2,minmax(0,1fr))}.decision-build{font-size:12px;color:#7c876e;line-height:1.8;margin:15px 0 0;text-align:center}.decision-pause{font-size:12px;color:#8a927d;line-height:1.6;text-align:center;margin:10px 0 0}.live-perk{display:flex;align-items:center;gap:10px;padding:10px;background:#edf2e2;border:1px solid #cbdcbd;border-bottom:2px solid #bacdac;border-radius:5px}.live-perk strong{display:block;font-size:14px}.live-perk small{display:block;font-size:12px;color:#75856a;line-height:1.6;margin-top:3px}.live-perk-icon{font-size:27px;min-width:30px;color:#4a896e}.live-perk.evolved{background:#fff0cf;border-color:#d8b568}.evolution-guide{font-size:12px;line-height:1.8;color:#78896c;border-top:1px solid #d6dec9;padding-top:12px;grid-column:1/-1}.run-result{margin-top:12px;border:1px solid #d1dcc6;padding:11px;background:#ecf0de;border-radius:5px}.run-result b{font-size:14px;color:#4a7959}.run-result p{font-size:12px;line-height:1.7;margin:5px 0;color:#7d896f}
@keyframes fever-in{from{opacity:0;transform:translateX(-50%) scale(.85)}to{opacity:1;transform:translateX(-50%) scale(1)}}
@media(max-width:820px){.run-hud{top:9px;left:9px;right:9px;gap:7px;grid-template-columns:minmax(0,1fr) 73px}.run-xp{padding:6px 9px;max-width:225px}.run-xp strong{font-size:15px}.combo-box strong{font-size:23px}.combo-box{min-width:67px;padding:4px 6px}.fever-banner{top:92px;font-size:20px;padding:6px 12px}.run-notice{font-size:12px;padding:6px 9px;bottom:43px}.run-build{bottom:11px;left:9px;gap:4px;max-width:95%}.build-chip{font-size:11px;padding:3px 5px}body.running #start{font-size:14px}.run-xp>div:first-child{font-size:11px}.hype-caption{font-size:10px}.perk-copy>strong{font-size:16px}}
@media(max-width:600px){#decisionDialog{padding:19px 16px;max-height:88dvh}.decision-head h2{font-size:18px;margin:8px 0}.decision-head>p{font-size:13px;line-height:1.65;margin:7px 0 12px}.decision-choices,.decision-choices:has(.event){grid-template-columns:1fr;gap:8px}.decision-card{flex-direction:row;align-items:center;text-align:left;gap:11px;padding:12px;min-height:110px;border-bottom-width:4px}.decision-card .perk-icon{width:42px;height:42px;min-width:42px;font-size:26px}.perk-label{font-size:11px;margin-bottom:2px}.perk-desc{font-size:12px;margin-top:4px;line-height:1.6}.perk-effect{font-size:12px;margin-top:5px}.decision-build{font-size:11px;margin-top:10px}.decision-pause{font-size:11px;margin-top:8px}.decision-card.event{align-items:center}.levelup .decision-head .mini-label{font-size:17px}}
@media(max-height:550px){.run-hud{top:6px;left:8px;right:8px}.run-xp{padding:5px 8px;max-width:230px}.run-xp strong{font-size:14px}.hype-caption{margin-top:3px}.combo-box strong{font-size:20px}.fever-banner{top:82px;font-size:17px;padding:4px 11px}.run-notice{bottom:27px;font-size:11px;padding:4px 8px}.run-build{bottom:6px}.build-chip{font-size:10px;padding:2px 4px}#decisionDialog{padding:14px;max-height:94dvh}.decision-head h2{font-size:18px;margin:5px 0}.decision-head>p{margin:5px 0 9px;font-size:12px}.decision-card{padding:10px;gap:7px;min-height:0}.decision-card .perk-icon{width:36px;height:36px;min-width:36px;font-size:23px}.perk-desc{font-size:12px;margin-top:4px}.perk-effect{margin-top:6px;font-size:12px}.decision-build{margin-top:8px}.decision-pause{margin-top:4px}.decision-head .mini-label,.levelup .decision-head .mini-label{font-size:14px}}
@media(prefers-reduced-motion:reduce){.fever-banner{animation:none}.xp-track i,.hype-track i{transition:none}}
/* Guests and facilities share one readable palette. */
:root{--ink:#293448;--paper:#fffdf3;--line:#d8dfcd;--accent:#e98f5c}
.topbar{background:linear-gradient(110deg,#293849,#35474b);border-bottom-color:#192c33}.logo{background:#ffdc8c;color:#34474a;text-shadow:none;border:2px solid #e4b15e;border-bottom:4px solid #b98a46;border-radius:9px;padding:3px 8px;font-size:31px;transform:rotate(-4deg)}
.venue{border-color:#9bab8c;box-shadow:0 3px 0 #aebaa0}.venue-top{background:#fffaf0}.control-panel{box-shadow:0 3px 0 #d1d9c3}.stat{border-radius:8px;background:linear-gradient(140deg,#fffef5,#f7f8e9)}.stat:first-child{border-left:4px solid #e9b263}.stat:nth-child(2){border-left:4px solid #8cac79}.stat:nth-child(3){border-left:4px solid #9c8fbc}
.build-filters{display:flex;gap:4px;margin:0 0 12px;flex-wrap:wrap}.build-filters[hidden]{display:none}.filter-btn{flex:1;white-space:nowrap;padding:7px 5px;border:1px solid #d0d9c2;border-bottom:3px solid #c0ccb0;border-radius:4px;background:#f1f3e5;font-size:12px;font-weight:700;color:#748165}.filter-btn.active{background:#3f6658;border-color:#3f6658;border-bottom-color:#28473e;color:#fff5d5}.build-card{background:#f9f9ee;min-height:76px;align-items:center;border-radius:6px}.build-card .desc{color:#6b785f;line-height:1.5;font-size:11px}.build-card:hover:not(:disabled){background:#f8edcd;border-color:#cbb57c}.facility-tags{font-size:11px;display:block;margin-top:4px;color:#a08352;letter-spacing:1px}.detail-tastes{display:block;font-size:11px;color:#8d774f}.build-price{font-size:17px}
.audience-hud{position:absolute;top:14px;right:14px;display:flex;align-items:center;gap:8px;background:#fffdf0ec;color:#617a5a;border:1px solid #a4b69a;border-bottom:3px solid #9eae8d;border-radius:5px;padding:8px 10px;font-size:12px;font-weight:800;box-shadow:0 3px 12px #61795416;z-index:1}.audience-hud .crowd-label{font-size:10px;color:#869473}.audience-hud b{font-size:18px;color:#6b805e}.audience-hud:hover{background:#fff8db}body.running .audience-hud{top:112px;right:12px;gap:6px;padding:5px 8px;font-size:11px}body.running .crowd-label{display:none}body.fever .audience-hud{top:157px}
.audience-section{margin:16px 0;padding-top:4px}.audience-section h3{margin:6px 0 9px;font-size:15px}.audience-focus{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-bottom:13px}.focus-btn{border:1px solid #d2dcc5;border-bottom:3px solid #c2cdb3;border-radius:4px;padding:8px 5px;background:#f3f5e9;color:#63765a;font-size:12px;font-weight:700}.focus-btn.active{background:#e9cf8e;border-color:#cfae63;color:#6d552b;border-bottom-color:#bfa05d}.audience-row{display:grid;grid-template-columns:27px minmax(0,1fr) 33px;gap:8px;padding:10px 0;border-bottom:1px solid #e0e5d5;align-items:start}.audience-dot{width:25px;height:25px;border-radius:5px;color:#fff8df;text-align:center;line-height:25px;font-size:18px}.audience-row strong{display:block;font-size:13px;line-height:1.5}.audience-row small{display:block;color:#808b73;font-size:11px;line-height:1.6;margin:2px 0}.audience-row>b{font-size:13px;color:#687d5d;margin-top:3px;white-space:nowrap}.audience-track{display:block;height:5px;background:#e6eada;border-radius:3px;overflow:hidden;margin-top:5px}.audience-track i{display:block;height:100%;border-radius:3px}.audience-row .audience-needs{font-size:10px;color:#948061;margin-top:5px}.choice-context{display:block;font-size:12px;color:#477854;background:#edf3df;border:1px solid #d0dcbe;border-radius:4px;padding:6px;margin-top:10px;line-height:1.6}.result-note{margin-top:14px}.audience-report{min-width:0}
@media(max-width:820px){.audience-hud{top:8px;right:8px;gap:5px;padding:5px 7px;font-size:10px}.crowd-label{display:none}.build-card .desc{display:block;font-size:10px}.build-card strong{font-size:13px}.build-price{font-size:14px}.facility-tags{font-size:10px}.map-tag{max-width:100px}.map-tag span{font-size:9px;letter-spacing:1px}body.running .audience-hud{top:95px;right:8px;font-size:10px}body.fever .audience-hud{top:138px}.build-card{min-height:79px}.focus-btn{font-size:12px}.choice-context{font-size:11px}}
@media(max-width:820px) and (orientation:portrait){.build-list{grid-template-columns:1fr}.build-card{grid-template-columns:45px minmax(0,1fr) auto;padding:9px;gap:9px}.build-icon{width:42px;height:38px}.build-card strong{font-size:14px}.build-card .desc{font-size:12px}.facility-tags{font-size:11px}.build-card{min-height:82px}.build-price{font-size:16px}.audience-section{margin-top:12px}.filter-btn{min-height:34px}.map-tag{display:none}}
@media(max-height:550px){body.running .audience-hud{top:84px;font-size:10px}body.fever .audience-hud{top:120px}.audience-hud{padding:3px 6px;font-size:10px}.build-card{min-height:72px}.build-card .desc{font-size:10px}.logo{padding:1px 6px;font-size:24px}}
/* Land planning and artist booking stay inside the existing game workspace. */
.venue-tools{display:grid;grid-template-columns:1fr 1.5fr;gap:7px;margin:0 0 8px}.venue-tool{border:1px solid #a7b99a;border-bottom:3px solid #8fa780;background:#edf2df;color:#526b48;border-radius:5px;padding:9px 5px;font-size:14px;font-weight:800;min-height:40px}.venue-tool:first-child{color:#a66a50;border-color:#d4b798;border-bottom-color:#bd9d80;background:#faf0df}.venue-tool.active{color:#fff6e5;background:#b76d57;border-color:#a25d49;border-bottom-color:#874b3b}.land-summary{font-size:12px;line-height:1.6;color:#849174;margin:0 0 12px}.land-size{font-size:12px;color:#7b906c;border:1px solid #d0d9c0;background:#eef2df;padding:2px 5px;border-radius:3px;white-space:nowrap}.demolish-btn{width:100%;border:1px solid #cc9e87;border-bottom:3px solid #b8856f;border-radius:4px;background:#fff0e2;color:#ad654d;padding:9px;font-size:14px;font-weight:700;margin-top:9px}.demolish-btn:hover:not(:disabled){background:#f7e3d5}.dialog-actions{display:flex;gap:10px;margin-top:22px}.dialog-actions button{flex:1;min-height:43px;margin:0;padding:9px;border-radius:5px;font-size:14px;font-weight:800}.secondary-btn{background:#eef1df;color:#69755c;border:1px solid #c5d0b8;border-bottom:3px solid #aabb9c}.danger-btn{background:#b76955;color:#fff8e7;border:1px solid #a75b47;border-bottom:3px solid #8a4939}#demolishDialog h2,#expandDialog h2{margin:12px 0;font-size:20px}#demolishBody,#expandBody p{font-size:14px;line-height:1.8;color:#748268}.land-upgrade{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;text-align:center;gap:12px;background:#eaf0dc;border:1px solid #c4d2b6;padding:20px 12px;border-radius:6px;margin:14px 0}.land-upgrade strong{font-size:28px;color:#4d7657}.land-upgrade span{font-size:12px;color:#8a9879}.land-shortage{color:#ae7052!important;background:#fff0dd;padding:9px;border-radius:4px}.now-playing{padding:5px 14px 0;font-size:12px;color:#7b8969;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.now-playing[hidden]{display:none}
.artist-list{display:grid;grid-template-columns:1fr;gap:12px;margin-top:13px}.artist-card{background:#f6f6e9;border:1px solid #d6dfc7;border-bottom:3px solid #c2ceb2;border-radius:7px;padding:12px;color:#33463c}.artist-card.booked{border-color:#cca466;background:#fff3d9;border-bottom-color:#bb9257}.artist-card.locked{background:#f2f3e9}.artist-top{display:flex;gap:10px;align-items:center}.artist-top>span:first-of-type{flex:1;min-width:0}.artist-top strong{display:block;font-size:15px}.artist-top small{display:block;font-size:12px;color:#7f8c72;margin-top:3px}.artist-time{font-size:12px;font-weight:700;color:#8d784a;border:1px solid #d9d3ae;background:#f6efda;border-radius:3px;padding:3px 5px;white-space:nowrap}.artist-face{width:32px;height:35px}.artist-params{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:12px 0 10px}.artist-params>div{min-width:0;text-align:center}.artist-params span{display:block;font-size:12px;color:#78866c}.artist-params b{display:block;font-size:17px;line-height:1.6}.artist-params i{display:block;height:5px;background:#e0e5d2;border-radius:3px;overflow:hidden}.artist-params em{display:block;height:100%}.artist-ability{font-size:12px;line-height:1.75;color:#7d8a6d;margin:8px 0}.artist-ability b{display:block;font-size:13px;color:#5c7555}.artist-fans{display:block;font-size:11px;color:#8f815e;line-height:1.7}.song-name{font-size:12px;color:#7e869d;padding-top:8px;margin-top:7px;border-top:1px dashed #d6dbc7}.artist-buttons{display:flex;gap:7px;margin-top:10px}.artist-buttons button{min-height:37px;border:1px solid #b7c6a7;border-bottom:3px solid #99b185;border-radius:4px;font-size:13px;font-weight:700;padding:7px 9px}.preview-btn{color:#677a87;background:#eef2e9}.book-btn{flex:1;color:#48694c;background:#e4edcf}.book-btn:hover:not(:disabled){background:#d5e6ba}.artist-guide{margin:10px 0 14px;padding:9px 11px;border:1px solid #d9dfcc;border-radius:4px;background:#f0f3e4;font-size:13px;color:#718267}.artist-guide summary{cursor:pointer;font-size:14px}.artist-guide p{font-size:13px;line-height:1.8;margin:9px 0 0}
@media(max-width:820px){.phase{gap:5px}.phase #landSize{font-size:10px;padding:2px 4px}.phase #timeText{display:none}.artist-card{padding:11px}.artist-top strong{font-size:15px}.artist-params span{font-size:12px}.now-playing{font-size:11px;padding:4px 10px 0}.venue-tools{gap:6px}.venue-tool{font-size:13px}.land-summary{font-size:11px}}
@media(max-width:820px) and (orientation:portrait){.artist-list{grid-template-columns:1fr}.artist-params span{font-size:13px}.artist-ability{font-size:13px}.artist-fans,.song-name{font-size:12px}.artist-buttons button{font-size:14px;min-height:41px}.artist-ability b{font-size:14px}.venue-tool{font-size:14px}.land-summary{font-size:12px}}
@media(max-height:550px){.now-playing{display:none}.venue-tool{min-height:34px;padding:6px;font-size:13px}.land-summary{margin-bottom:8px}.artist-card{padding:9px}.artist-params{margin:8px 0}.artist-top strong{font-size:14px}}

/* Independent stage programming stays inside the existing phone sheet. */
.stage-timetable{display:grid;gap:6px;margin:12px 0}.stage-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;width:100%;padding:9px 6px;border:1px solid #d8d8bf;border-radius:8px;background:#f8f6e9;color:#43534d;text-align:left;font-size:11px;min-height:68px}.stage-row.active{border-color:#68867a;background:#e9efdb;box-shadow:inset 3px 0 #68867a}.stage-row b{grid-column:1/-1;font-size:12px}.stage-row span{overflow-wrap:anywhere;padding:3px}.stage-row small{display:block;color:#839284;margin-bottom:4px;font-size:9px}.stage-row .playing{background:#f8dda4;border-radius:5px}.stage-selected{font-size:11px;font-weight:700;color:#53694f;line-height:1.6}.music-guide{margin:10px 0;font-size:11px;color:#6c7666}.music-guide summary{cursor:pointer}.music-guide p{line-height:1.7}.artist-buttons{flex-wrap:wrap}.track-import{font:inherit;font-size:10px;background:#f5f3e8;color:#687361;border:1px solid #d9dccb;border-radius:5px;padding:6px 8px;cursor:pointer;min-height:32px}.track-import:focus-visible,.stage-row:focus-visible{outline:3px solid #dba64e;outline-offset:2px}
/* Artist illustrations are part of the booking cards and live festival UI. */
.artist-card{background:#fff;border-color:#cbd7d8;border-bottom-color:#aebfc6;color:#293b50;padding:12px;border-radius:10px;box-shadow:0 2px 8px #26304908}.artist-card.booked{background:#fff;border-color:#d2a24e;box-shadow:inset 0 0 0 2px #f6e2af}.artist-card.locked{background:#f6f8f9}.artist-top{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:start;gap:12px;position:relative}.artist-top>span:first-of-type{align-self:center}.artist-top strong{font-size:16px;line-height:1.6;color:#243b52;overflow-wrap:anywhere}.artist-top small{font-size:13px;line-height:1.65;color:#607280}.artist-time{grid-column:2;position:absolute;bottom:0;right:0;background:#edf2f8;color:#45607c;border-color:#cad7e2;font-size:12px}.artist-portrait{grid-row:1/3;display:block;width:100%;padding:0;background:#e8edf4;border:0;border-radius:6px;overflow:hidden;aspect-ratio:3/4;box-shadow:0 2px 5px #26304918}.artist-portrait img{width:100%;height:100%;display:block;object-fit:cover;image-rendering:auto}.artist-portrait:hover img{filter:brightness(1.06)}.artist-portrait:active{transform:none}.artist-params span{color:#647688}.artist-ability{color:#627582;font-size:13px}.artist-ability b{color:#344e65;font-size:14px}.artist-fans{color:#6a7983;font-size:12px}.song-name{color:#49667f;line-height:1.65;border-top-color:#cedae0;font-size:12px}.artist-buttons button{font-size:14px;min-height:42px}.artist-buttons .book-btn{background:#28475b;color:#fff;border-color:#28475b;border-bottom-color:#142f43}.artist-buttons .book-btn:hover:not(:disabled){background:#395e71}.artist-buttons .preview-btn{background:#eef6fb;color:#375d7c;border-color:#c5d6e2;border-bottom-color:#9cb9c9}.slot{gap:8px}.slot-portrait{width:30px;height:40px;object-fit:cover;border-radius:3px;flex-shrink:0;image-rendering:auto}.slot-time{min-width:40px}.slot-name{min-width:0}.slot-name strong{overflow-wrap:anywhere;line-height:1.5}.artist-spotlight{display:block;border:0;padding:0;background:#dee5ea;width:52px;height:69px;overflow:hidden;border-radius:5px;grid-column:1;grid-row:1/3;align-self:center}.artist-spotlight[hidden]{display:none}.artist-spotlight img{width:100%;height:100%;object-fit:cover;image-rendering:auto}.has-spotlight .festival-progress{display:grid;grid-template-columns:52px minmax(0,1fr);column-gap:12px;align-content:center;min-height:87px;padding-top:9px;padding-bottom:9px}.has-spotlight .progress-caption{grid-column:2;align-items:center;align-self:end;font-size:13px;line-height:1.6;margin-bottom:9px}.has-spotlight .progress-track{grid-column:2;align-self:start}.artwork-dialog{width:min(680px,96vw);padding:14px;background:#fff;border-color:#28475b;max-height:94dvh}.artwork-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:12px}.artwork-heading h2{font-size:18px;line-height:1.5}.artwork-heading p{font-size:13px;line-height:1.5;color:#607789;margin:3px 0 0}.artwork-dialog>img{display:block;width:100%;height:auto;max-height:76dvh;object-fit:contain;border-radius:4px;image-rendering:auto}.artwork-dialog .icon-btn{flex-shrink:0;background:#28475b;color:white}.small-btn.accelerated{background:#28475b;color:#fff;border-color:#28475b;border-bottom-color:#142f43}
@media(max-width:820px) and (orientation:portrait){.artist-top{grid-template-columns:118px minmax(0,1fr)}.artist-top strong{font-size:17px}.artist-portrait{max-height:158px}.artist-buttons{gap:8px}.has-spotlight .festival-progress{grid-template-columns:42px minmax(0,1fr);column-gap:9px;min-height:71px;padding-top:7px;padding-bottom:7px}.artist-spotlight{width:42px;height:56px}.has-spotlight .progress-caption{font-size:12px;margin-bottom:6px}.artwork-dialog{padding:12px}.artwork-heading h2{font-size:17px}}
@media(max-height:550px){.artist-top{grid-template-columns:80px minmax(0,1fr)}.has-spotlight .festival-progress{min-height:52px;grid-template-columns:30px minmax(0,1fr);padding-top:5px;padding-bottom:5px;column-gap:8px}.artist-spotlight{width:30px;height:40px}.has-spotlight .progress-caption{font-size:11px;margin-bottom:4px}}
/* Placement stays visible after a touch; construction is an explicit confirmation. */
.build-preview{position:absolute;left:12px;right:12px;bottom:12px;z-index:3;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:12px;background:#153e39f5;border:2px solid #9bffce;border-bottom:5px solid #092e2b;border-radius:9px;color:#edfff4;box-shadow:0 6px 20px #122e3650}.build-preview[hidden]{display:none}.build-preview.invalid{background:#593239f5;border-color:#ffb2a1}.preview-copy{min-width:0;display:flex;flex-direction:column;gap:5px}.preview-copy strong{font-size:15px}.preview-copy span{font-size:13px;line-height:1.45}.preview-actions{display:flex;gap:6px}.build-preview button{min-height:38px;min-width:38px;border:1px solid #8baea4;border-radius:5px;padding:6px 10px;font-size:14px;background:#eaf6ed;color:#23483e;font-weight:800}#confirmBuild{background:#adf5ce;border-color:#cfffe3}#confirmBuild:disabled{background:#9b858c;color:#e5d5d6;border-color:#826771}.placement-nudge{display:grid;grid-template-columns:repeat(4,34px);gap:3px}.placement-nudge button{min-width:0;padding:3px;font-size:19px}body.placing .map-hint{bottom:108px}body.placing .legend,body.placing .map-tag{display:none}
.demo-badge{position:absolute;top:12px;left:50%;transform:translateX(-50%);z-index:2;display:flex;gap:7px;align-items:center;padding:7px 10px;border:1px solid #a9ecdf;background:#173f4af2;border-radius:5px;color:#eafff9;pointer-events:none;font-size:12px;max-width:55%}.demo-badge b{color:#ffe29a;letter-spacing:1px}.demo-badge[hidden],.demo-stop[hidden]{display:none}.demo-stop{width:100%;margin-top:15px;min-height:38px;font-size:14px}.demo-btn.on{background:#17665b;color:#e6fff2;border-color:#72bdaa}body.demo.running .demo-badge{top:110px}.demo-badge span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
/* A single celebratory light sweep, never a repeating strobe. */
.reward-burst{position:absolute;top:42%;left:50%;transform:translate(-50%,-50%);z-index:2;pointer-events:none;text-align:center;color:#fff6c1;text-shadow:0 3px #654234,0 0 16px #ffcf79;white-space:nowrap;animation:reward-pop 1.8s cubic-bezier(.16,.9,.25,1) both}.reward-burst[hidden]{display:none}.reward-burst span{display:block;font-size:clamp(18px,3vw,32px);font-weight:900;letter-spacing:1px}.reward-burst strong{display:block;font-size:clamp(36px,6vw,66px);line-height:1.1;color:#fff}.reward-burst.select span,.reward-burst.build span{font-size:clamp(16px,2.5vw,24px)}.reward-burst.evolution{color:#ffcbe8;text-shadow:0 3px #614661,0 0 20px #ffade0}.reward-burst.fever{color:#ffe086}#decisionDialog.levelup{border:3px solid #ffd98b;border-bottom:7px solid #ae8145;background:linear-gradient(145deg,#fff7de,#fffef5 55%,#eaffed);box-shadow:0 0 0 6px #ffe5a326,0 0 70px #f5c97866;animation:card-arrival .38s cubic-bezier(.15,.8,.3,1) both}#decisionDialog.levelup::backdrop{background:#172d3f94;backdrop-filter:blur(2px)}.levelup .decision-head .mini-label{display:inline-block;color:#936114;font-size:clamp(23px,4vw,36px);font-weight:900;letter-spacing:2px;text-shadow:0 2px #ffe6a1}.levelup .decision-card{animation:card-arrival .48s cubic-bezier(.15,.8,.3,1) both}.levelup .decision-card:nth-child(2){animation-delay:.08s}.levelup .decision-card:nth-child(3){animation-delay:.16s}.decision-card:hover:not(:disabled){transform:translateY(-4px);box-shadow:0 8px 18px #2d59462b}.levelup .decision-card .perk-icon{box-shadow:0 0 20px #ffdc815c,3px 3px #d7e3d2}
@keyframes reward-pop{0%{opacity:0;transform:translate(-50%,-50%) scale(.65)}12%{opacity:1;transform:translate(-50%,-50%) scale(1.12)}25%,72%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-62%) scale(1.03)}}
@keyframes card-arrival{from{opacity:0;transform:translateY(20px) scale(.93)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:820px){.build-preview{left:8px;right:8px;bottom:8px;padding:9px;gap:6px;grid-template-columns:minmax(0,1fr) auto}.preview-copy{grid-column:1/-1}.preview-copy strong{font-size:14px}.preview-copy span{font-size:12px}.preview-actions{justify-content:flex-end}.placement-nudge{grid-template-columns:repeat(4,32px)}.build-preview button{min-height:34px;padding:5px 8px;font-size:13px}.placement-nudge button{font-size:18px}body.placing .map-hint{bottom:120px;font-size:11px;max-width:95%}.demo-badge{top:8px;font-size:11px;max-width:70%;padding:5px 7px}body.demo.running .demo-badge{top:124px;left:9px;transform:none}.header-actions{gap:5px}.demo-btn{white-space:nowrap}body.demo #saveNote{visibility:hidden}}
@media(max-width:370px){.brand h1{font-size:16px}.logo{display:none}.topbar{padding-left:10px;padding-right:10px}.icon-btn{padding:0 6px}.preview-copy strong{font-size:13px}.placement-nudge{grid-template-columns:repeat(4,29px)}.preview-actions{gap:4px}.build-preview button{padding:5px 6px}}
@media(max-height:550px){body.demo.running .demo-badge{top:109px}.build-preview{padding:6px;gap:5px;grid-template-columns:minmax(0,1fr) auto auto}.preview-copy{grid-column:auto}.preview-copy strong{font-size:13px}.preview-copy span{font-size:11px}.placement-nudge{grid-template-columns:repeat(4,28px)}body.placing .map-hint{display:none}}
@media(prefers-reduced-motion:reduce){.reward-burst,#decisionDialog.levelup,.levelup .decision-card{animation:none}.decision-card:hover:not(:disabled){transform:none}}
@media(max-height:550px) and (orientation:portrait){.build-preview{grid-template-columns:minmax(0,1fr) auto;padding:6px}.preview-copy{grid-column:1/-1;gap:2px}.preview-copy strong,.preview-copy span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.placement-nudge{grid-template-columns:repeat(4,28px)}.build-preview button{min-height:30px}.reward-burst strong{font-size:36px}}

/* v10: the park fills the screen; status stays on the park. */
main{max-width:none}.venue{position:relative;grid-template-rows:minmax(0,1fr)}.venue-top{position:absolute;top:8px;left:8px;right:8px;z-index:4;border:1px solid #cad6c0;border-radius:7px;background:#fffdf2ed;padding:5px 9px;box-shadow:0 2px 8px #243a2420}.canvas-wrap{height:100%}
.stats{position:absolute;top:54px;left:9px;right:9px;z-index:3;gap:6px;pointer-events:none;grid-template-columns:1fr 1fr 1fr 1.3fr}.stat{min-height:48px;padding:4px 10px;background:#fffdf2df;backdrop-filter:blur(5px);border-bottom-width:1px}.stat>span{font-size:10px;margin:0}.stat strong{font-size:21px}.stat small{font-size:10px}.stat .goal-stat{font-size:12px;min-height:24px}.statbar{display:none}
.season-line{position:absolute;bottom:9px;left:10px;z-index:3;pointer-events:none}.season-line strong,.save-note{display:none}.edition{font-size:11px;padding:4px 8px;background:#345a4be0}.venue-footer{position:absolute;bottom:35px;left:10px;right:10px;background:#fffdf2e0;border:1px solid #cad6c0;border-radius:7px;z-index:2;pointer-events:none}.venue-footer button{pointer-events:auto}.festival-progress{padding:6px 10px}.live-feed{display:none}.now-playing{font-size:10px;padding:3px 10px}.artist-spotlight{width:30px;height:39px}.artist-spotlight img{width:30px;height:39px}body.has-spotlight .festival-progress{padding:5px 10px;min-height:45px;grid-template-columns:30px minmax(0,1fr);column-gap:8px}body.has-spotlight .progress-caption{font-size:11px;margin-bottom:3px}.progress-caption{font-size:11px;margin-bottom:3px}.progress-track{height:4px}
.map-tag{display:none}.legend{bottom:10px;left:auto;right:11px;z-index:3}.legend>span:first-child{display:none}body.running .legend{display:flex}.map-hint{bottom:94px}.run-hud{top:111px;left:10px;right:10px}.run-xp{max-width:205px;padding:5px 8px}.run-xp strong{font-size:14px}.combo-box{min-width:65px}.combo-box strong{font-size:21px}.fever-banner{top:197px;font-size:18px;padding:4px 10px}.audience-hud{top:auto!important;bottom:99px;right:10px!important;left:auto!important;max-width:170px}.run-notice{bottom:99px;max-width:65%;left:10px;transform:none}.run-build{bottom:79px;left:10px}.demo-badge{top:200px}.build-preview{bottom:98px}
@media(max-width:820px){main{gap:0}.stats{top:49px;grid-template-columns:1fr 1fr 1fr}.stat{min-height:43px;padding:3px 7px}.stat strong{font-size:19px}.venue-top{top:5px;left:5px;right:5px;padding:4px 6px}.phase #landSize{display:none}.phase>span:first-child{display:none}.run-hud{top:99px;left:8px;right:8px}.run-xp{max-width:160px}.fever-banner{top:182px}.demo-badge{top:180px}.legend{font-size:10px}.build-preview{bottom:95px}.map-hint{bottom:95px;max-width:92%;font-size:10px}.audience-hud{font-size:10px;max-width:133px}.run-notice{font-size:10px;max-width:56%}.run-build{max-width:95%}.season-line{display:flex}.venue-footer{left:7px;right:7px}}
@media(max-height:550px){.stats{top:46px}.stat{min-height:37px}.stat strong{font-size:17px}.run-hud{top:91px}.run-xp .hype-caption{display:none}.combo-box small{display:none}.fever-banner{top:150px}.demo-badge{top:150px}.venue-footer{bottom:27px}.legend{bottom:5px}.season-line{bottom:5px}.run-notice,.audience-hud{bottom:79px}.build-preview,.map-hint{bottom:83px}.run-build{bottom:65px}}

/* Permanent artist progression stays alongside each booking card. */
.artist-growth{padding:10px;background:#edf5f9;border:1px solid #cfdee8;border-radius:7px;margin:10px 0;color:#38556b}.artist-growth>div:first-child{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:14px}.artist-growth b{font-size:15px}.artist-growth>small{display:block;font-size:12px;margin-top:6px;line-height:1.6}.artist-xp-track{height:6px;background:#d5e1e8;border-radius:5px;overflow:hidden;margin-top:6px}.artist-xp-track i{display:block;height:100%;background:#3e9cbe}.artist-skill-tree{margin-top:8px;font-size:13px}.artist-skill-tree h3{font-size:14px;margin:14px 0 8px}.artist-skill{display:flex;flex-direction:column;gap:3px;padding:9px 0;border-top:1px solid #d2e0e8}.artist-skill b{font-size:13px}.artist-skill span{font-size:12px;line-height:1.6}.artist-skill.unlocked{color:#276e5b}.artist-skill.locked{color:#738395}.artist-growth-report h3{font-size:16px;margin:18px 0 8px}.artist-growth-row{display:flex;gap:10px;align-items:center;padding:9px;border:1px solid #cadae0;border-radius:7px;margin-bottom:6px;background:#edf5f9}.artist-growth-row img{object-fit:cover;border-radius:4px}.artist-growth-row b,.artist-growth-row span,.artist-growth-row small{display:block;font-size:13px;line-height:1.7}.artist-growth-row small{color:#267658}


.evaluation-report{margin:18px 0;padding:14px;background:#f4f7ee;border:1px solid #d7e2cd;border-radius:12px}.evaluation-report p{font-size:12px;line-height:1.7;color:#56634e}.evaluation-report h3{margin:0 0 10px}

.launch-btn.just-cheer{background:#ffe17b;color:#473620;box-shadow:0 0 0 3px #ffe17b70,0 0 24px #ffc45490}

.strategy-report{padding:12px;background:#f0f4eb;border:1px solid #d3dfca;border-radius:10px;margin-bottom:12px}.strategy-report h3{margin:0 0 6px}.strategy-report p{font-size:12px;line-height:1.7;color:#50604c;margin:7px 0}

.prep-checklist{padding:12px;margin:10px 0;background:#f2f6e9;border:1px solid #d5dfc8;border-radius:10px}.prep-checklist p{font-size:12px;line-height:1.6;color:#536446;margin:7px 0}.prep-checklist span{display:inline-block;padding:3px 8px;margin:2px;background:#e0ebd4;border-radius:5px;font-size:12px}

.reset-btn{font-size:23px;min-width:38px;padding:0 7px}#resetDialog p{font-size:15px;line-height:1.8}#resetSummary{padding:10px;background:#edf0df;border-radius:6px}@media(max-width:520px){.topbar{padding-left:12px;padding-right:12px}.brand .logo,.brand-en{display:none}.brand h1{font-size:16px;letter-spacing:0}.header-actions{gap:4px}.reset-btn{min-width:36px;padding:0 5px}}@media(max-width:360px){.brand h1{font-size:14px}.icon-btn{padding-left:6px;padding-right:6px}}

.operation-summary{margin:16px 0;padding:12px;border:1px solid #c3ceb5;border-radius:8px;background:#f2f5e8}.operation-summary h3{font-size:15px;margin:0 0 8px}.operation-summary p{font-size:14px;line-height:1.65;margin:8px 0}.service-warning{color:#a43f32!important}#mapHint.service-warning{border-color:#c66a51;background:#fff0dfed}

/* A brief illustrated moment, sized to leave the live controls accessible. */
.artist-cutin{position:absolute;left:14px;bottom:130px;width:min(410px,calc(100% - 28px));height:155px;z-index:4;pointer-events:none;overflow:hidden;border-radius:8px;isolation:isolate;background:linear-gradient(115deg,#172e43 0%,#172e43 45%,var(--artist-accent,#ecac5d) 100%);box-shadow:0 6px 22px #10253955;border-left:4px solid var(--artist-accent,#ecac5d)}.artist-cutin[hidden]{display:none}.artist-cutin img{position:absolute;right:-5px;top:-22px;width:195px;height:260px;object-fit:cover;object-position:50% 12%;transform:rotate(-7deg);mask-image:linear-gradient(90deg,transparent,#000 25%);z-index:1}.cutin-copy{position:absolute;left:14px;top:20px;width:55%;z-index:2;color:#fff;text-shadow:0 2px 5px #102539}.cutin-copy b{display:block;color:#ffe8a3;font-size:11px;letter-spacing:.16em;margin:7px 0}.cutin-copy strong{display:block;font-size:19px;line-height:1.3;margin-bottom:9px;overflow-wrap:anywhere}.cutin-copy span{display:block;font-size:11px;line-height:1.5}.cutin-lines{position:absolute;inset:0;background:repeating-linear-gradient(-15deg,transparent 0 23px,#ffffff15 24px 25px);opacity:.6}.artist-cutin.enter{animation:cutin-enter 2.2s ease both}@keyframes cutin-enter{0%{opacity:0;transform:translateX(-35px) skewX(-5deg)}12%,82%{opacity:1;transform:translateX(0) skewX(0)}100%{opacity:0;transform:translateX(24px)}}@media(max-width:480px){.artist-cutin{left:9px;width:calc(100% - 18px);height:130px;bottom:116px}.artist-cutin img{width:165px;height:220px;top:-17px}.cutin-copy{top:12px;left:12px}.cutin-copy strong{font-size:17px}.cutin-copy b{margin:5px 0}}@media(prefers-reduced-motion:reduce){.artist-cutin.enter{animation:none}}
/* Festival desk: quiet paper, ink panels and one warm accent. */
:root{--ink:#203039;--paper:#f6f4ed;--green:#3c716a;--yellow:#efc36d}
body{background:#e9ece6;color:#24343b;font-family:Inter,'Noto Sans JP',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}.topbar{background:#172a31;border:0;box-shadow:none;color:#f7f4e8}.brand h1{letter-spacing:.02em;font-weight:800}.brand-en{color:#9fb7b8}.logo{color:#efc36d}.header-actions .icon-btn{background:#ffffff0b;color:#e8eee9;border:1px solid #ffffff24;border-radius:7px;box-shadow:none}.header-actions .icon-btn.on{background:#efc36d;color:#203039;border-color:#efc36d}.workspace{gap:12px}.venue{border:1px solid #bccbc0;box-shadow:0 6px 24px #2139330d;border-radius:12px;overflow:hidden}.venue-top{background:#faf8f1;border-bottom:1px solid #dce3da}.small-btn{border:1px solid #d3dcd3;background:#fffdf7;box-shadow:none;border-radius:5px;color:#3c5556}.small-btn.accelerated{background:#3c716a;color:#fff}.control-panel{background:#f8f7f1;border:1px solid #c9d3cd;box-shadow:none;border-radius:12px}.tabs{background:#e7ede8;border:0;border-radius:11px 11px 0 0}.tab{color:#637874;font-weight:700;border:0;box-shadow:none}.tab.active{background:#f8f7f1;color:#233d3c;border-top:3px solid #d4a454}.panel-heading h2{font-size:18px;letter-spacing:-.02em}.mini-label{letter-spacing:.13em;color:#8b7760;font-weight:700}.panel-intro{color:#6b7e76;font-size:13px;line-height:1.65}.build-card{background:#fffdf8;border:1px solid #dce3da;border-bottom:1px solid #dce3da;border-radius:8px;box-shadow:none;padding:11px 9px;gap:9px}.build-card:hover:not(:disabled){background:#f2f5e9;border-color:#9cae9e;transform:none}.build-card.selected{background:#f8efd9;border-color:#bd9855}.build-card strong{font-size:14px;font-weight:750}.build-card .desc{color:#7b8779;font-size:11px}.build-price{color:#3c6156;font-variant-numeric:tabular-nums}.build-icon{opacity:.9}.facility-tags{color:#7b8779!important}.filter-btn{background:transparent;border:1px solid #d3ddd4;border-radius:6px;color:#667d72;padding:7px 9px}.filter-btn.active{background:#325b55;color:#fff;border-color:#325b55}.launch-panel{background:#f1f2e9;border-top-color:#d5ded3}.launch-btn{background:#234c48;border:0;border-bottom:0;border-radius:8px;box-shadow:none;letter-spacing:.02em}.launch-btn:hover:not(:disabled){background:#32655b}.launch-panel p{color:#708078}.stat{background:#fbfaf4ed;border:1px solid #d7dfd3;border-radius:8px;box-shadow:none}.stat strong{color:#253e36;font-variant-numeric:tabular-nums}.map-tag{opacity:.7}.map-hint{border:1px solid #d5dbbd;background:#faf8edef;border-radius:7px;box-shadow:0 3px 12px #22372b15}.live-feed{background:#eef0e6;color:#667866;border-top:1px solid #d6dfcd}.festival-progress{background:#f9f8f0}.progress-track{background:#d8dfd0}.progress-track i{background:#588678}.artist-card{border-color:#d6dfd9!important;box-shadow:none!important;border-radius:10px!important;background:#fffdf8!important}.slot{border-bottom:1px solid #d9e1d7;border-color:#d9e1d7;border-radius:7px;background:#f3f5ed}.slot.active{background:#f8efdc;border-color:#c6a96c}.strategy-report,.operation-summary,.prep-checklist{background:#edf1e7;border-color:#d4ddce;border-radius:8px}.selected-facility{background:#edf1e7;border-color:#c9d7ca;border-radius:8px}.venue-tool,.upgrade-btn,.secondary-btn{border:1px solid #aebfb3;border-bottom-width:1px;background:#e8eee4;border-radius:6px;box-shadow:none;color:#345b4d}.toast{background:#203d36;border:0;border-radius:9px;font-size:13px;box-shadow:0 6px 25px #203d362a}dialog{border:1px solid #b4c5b9;border-bottom:1px solid #b4c5b9;border-radius:14px;box-shadow:0 15px 60px #102d3040}.decision-card{border-radius:9px;box-shadow:none}.viewing-editor{background:#faf0da;border:1px solid #d9c397;border-radius:9px;padding:13px;margin:10px 0 14px}.viewing-editor h3{font-size:16px;margin:5px 0 12px}.viewing-editor label{font-size:12px;display:block;color:#8b7760;margin-bottom:4px}.viewing-editor select{width:100%;padding:9px;border:1px solid #cdbb92;border-radius:6px;background:#fffcf3;color:#344d47;font:inherit;font-size:14px}.viewing-editor p{font-size:12px;line-height:1.65;margin:9px 0;color:#7a735d}.viewing-editor #viewingStats{font-weight:750;color:#4b5e4b;font-size:13px}.viewing-editor button{width:100%;min-height:36px;font-size:13px;background:#355f55;color:#fff;border-color:#355f55}.viewing-hud{position:absolute;right:12px;top:65px;z-index:3;min-width:126px;padding:10px 12px;text-align:left;border:1px solid #d4dbc7;border-radius:8px;background:#faf7e9ef;color:#314e44;box-shadow:0 3px 16px #23403212}.viewing-hud span{display:block;font-size:10px;line-height:1.6;color:#7c856d}.viewing-hud strong{display:block;font-size:19px;line-height:1.7;font-variant-numeric:tabular-nums}.viewing-hud strong small{font-size:11px;margin-left:4px;color:#7c856d}@media(max-width:820px) and (orientation:portrait){.control-panel{border-radius:10px}.viewing-hud{top:78px;right:8px;padding:6px 9px;min-width:118px}.viewing-hud strong{font-size:16px}.tabs{border-radius:9px}.build-card{padding:9px}.viewing-editor{padding:11px}}
.viewing-hud{top:111px;right:90px;width:126px;min-width:0;padding:6px 9px}.viewing-hud strong{font-size:17px}.viewing-hud span{font-size:9px}@media(max-width:820px){.viewing-hud{top:99px;right:80px;width:112px;padding:5px 7px}.viewing-hud strong{font-size:15px}.viewing-hud span{font-size:8px}}@media(max-width:360px){.run-xp{max-width:125px}.viewing-hud{width:104px}}@media(max-height:550px){.viewing-hud{top:91px}.viewing-hud span:last-child{display:none}}

.road-editor{padding:14px;background:#fff;border:1px solid #d7dfdb;border-radius:12px;margin-bottom:14px}.road-editor h3{margin:0 0 8px;color:#214d43;font-size:16px}.road-editor p{font-size:14px;line-height:1.7;color:#50665e}.road-actions{display:flex;gap:8px;flex-wrap:wrap}.road-actions button{flex:1;min-height:44px}#placementNudge[hidden]{display:none}

/* One task at a time: compact task switcher and a flat facility catalogue. */
[data-workshop-panel][hidden],#buildNav[hidden],#buildBudget[hidden],#buildIntro[hidden],#manageHint[hidden]{display:none!important}
.workshop-budget{display:grid;grid-template-columns:1fr 1fr;gap:5px 12px;padding:10px 0 12px;border-bottom:1px solid #dce3df;font-size:14px}.workshop-budget span{display:flex;justify-content:space-between;gap:5px}.workshop-budget b{color:#203e36}.workshop-budget small{grid-column:1/-1;color:#64746c;font-size:13px}.workshop-budget .negative{color:#ad4242}
.workshop-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:12px 0}.workshop-nav button{min-height:44px;border:1px solid #cbd8d1;border-radius:8px;padding:8px 2px;background:#fff;color:#405b50;font-size:14px;font-weight:700;white-space:nowrap}.workshop-nav button.active{background:#245d4d;color:white;border-color:#245d4d}.workshop-instruction{margin:0 0 12px;font-size:14px;line-height:1.65;color:#536960}
#panelBuild .prep-checklist{padding:10px 12px;margin:0 0 12px;border:0;border-left:3px solid #d4ad56;background:#fbf6e8;font-size:14px;line-height:1.6;display:flex;align-items:center;justify-content:space-between;gap:10px}#panelBuild .prep-checklist span{padding:0;margin:0;background:none;border:0;border-radius:0;color:#665730;font-size:14px}#panelBuild .prep-checklist[hidden]{display:none}.next-build-step{flex-shrink:0;min-height:40px;padding:7px 10px;background:#fff;border:1px solid #d3bc82;border-radius:7px;color:#68532b;font-size:14px}
#workshopFacilities .build-list{grid-template-columns:1fr;gap:8px}#workshopFacilities .build-card{grid-template-columns:42px minmax(0,1fr) auto;gap:10px;padding:10px;min-height:72px;border:1px solid #dae3dd;border-radius:9px;background:white;box-shadow:none}#workshopFacilities .build-card strong{font-size:15px}#workshopFacilities .build-icon{width:42px;height:38px}#workshopFacilities .build-price{font-size:16px;margin:0;grid-column:auto;color:#275646}#workshopFacilities .build-price small{font-size:12px}#workshopFacilities .desc{font-size:13px;line-height:1.5}#workshopFacilities .facility-tags{font-size:12px}#workshopFacilities .build-filters{gap:4px;display:grid;grid-template-columns:repeat(3,1fr);margin-bottom:12px}#workshopFacilities .filter-btn{min-height:36px;font-size:14px;padding:6px;border-radius:6px}
#viewingEditor,#roadEditor{background:white;border:0;border-radius:0;padding:0;margin:0}#viewingEditor h3,#roadEditor h3{font-size:16px;margin:0 0 12px}.tool-price{font-size:14px;line-height:1.65;color:#365c4d}.workshop-help{margin-top:14px;border-top:1px solid #e1e7e3;padding-top:12px;font-size:14px;line-height:1.7;color:#52685e}.workshop-help summary{cursor:pointer}.workshop-help p{margin:10px 0}.workshop-help summary:focus-visible{outline:3px solid #ed8452}#workshopManagePanel .venue-tools{display:grid;grid-template-columns:1fr;gap:10px}#workshopManagePanel .venue-tool{min-height:44px;font-size:14px}#workshopManagePanel .selected-facility{margin:0 0 14px;padding:12px}
@media(max-width:820px){#workshopFacilities .desc{display:none}#workshopFacilities .build-card{min-height:64px}#panelBuild .prep-checklist{display:block}#panelBuild .prep-checklist .next-build-step{display:block;width:100%;margin-top:8px}.workshop-nav{position:sticky;top:40px;z-index:2;background:#faf8f1;padding:4px 0}.workshop-budget{font-size:14px}.workshop-nav button{font-size:14px}}
@media(max-width:360px){.workshop-nav button{font-size:13px}.workshop-budget span{flex-wrap:wrap}}

/* Preparation recovery and actionable festival reports. */
.prep-history{padding:10px 0 12px;border-bottom:1px solid #d7dfe0;margin-bottom:12px}.prep-history>div{display:flex;gap:8px}.prep-history button{min-height:44px;flex:1;border:1px solid #a8bcb7;border-radius:8px;background:#fff;color:#215c50;font-size:14px;font-weight:700}.prep-history button:disabled{opacity:.45}.prep-history small{display:block;margin-top:7px;font-size:13px;line-height:1.5;color:#526660}.improvement-report{margin:20px 0;padding:16px;background:#eef7f3;border:1px solid #a8cdbf;border-radius:12px}.improvement-report h3{font-size:18px;margin:0 0 12px}.improvement-report article{display:flex;gap:10px;padding:12px 0;border-top:1px solid #cedfd7}.improvement-number{flex:0 0 26px;height:26px;border-radius:50%;background:#246653;color:white;text-align:center;line-height:26px;font-weight:700}.improvement-report strong{font-size:16px}.improvement-report small{display:block;font-size:14px;color:#526660;margin-top:5px}.improvement-report p{font-size:14px;line-height:1.65;margin:7px 0 0}
/* v30: the venue is the workspace; catalogs are temporary pickers. */
.workspace{position:relative;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:8px}.control-panel{display:grid;grid-template-columns:minmax(0,1fr) 210px;grid-template-rows:auto;border-radius:10px;background:#fff;z-index:6}.tabs{height:56px;display:grid;grid-template-columns:repeat(3,1fr);border-radius:9px 0 0 9px;background:#e7eeec}.tab{font-size:15px;min-height:56px}.launch-panel{padding:5px;border:0;background:transparent;display:block;grid-column:2;border-radius:0}.launch-panel .launch-btn{margin:0;min-height:46px;font-size:14px}.launch-panel .budget-line,.launch-panel p{display:none}.panel-content{display:block;position:absolute;right:0;left:auto;bottom:calc(100% + 8px);width:380px;max-height:min(72dvh,640px);padding:14px;background:#fff;border:1px solid #adc5bd;border-radius:14px;box-shadow:0 14px 48px #12352d38;z-index:9;overflow:auto;scrollbar-gutter:auto}.panel-content[hidden]{display:none!important}.panel-heading{position:sticky;top:-14px;background:#fff;z-index:4;padding:8px 0 12px;display:flex;align-items:center;justify-content:space-between}.panel-heading h2{font-size:20px;margin:0}.sheet-close{display:block;min-height:44px;border-radius:8px;border:1px solid #d0ddd7;background:#f5f8f6;font-size:14px;padding:8px 14px}.panel-heading .mini-label{display:none}
.construction-dock{position:absolute;bottom:12px;left:12px;right:12px;z-index:4;background:#fffefcf5;border:1px solid #adc5bd;border-radius:13px;box-shadow:0 5px 20px #183c3020;padding:9px 10px;max-width:620px;margin:auto}.construction-dock[hidden]{display:none!important}.dock-budget{display:flex;align-items:center;justify-content:space-between;gap:8px}.dock-budget .workshop-budget{display:block;border:0;margin:0;padding:0;font-size:14px}.dock-budget .workshop-budget span{display:block}.dock-budget .workshop-budget b{font-size:18px;margin-left:8px}.dock-budget .workshop-budget small{display:block;font-size:12px;margin-top:2px}.dock-budget .prep-history{display:flex;gap:4px;padding:0;margin:0;border:0;flex-shrink:0}.dock-budget .prep-history button{font-size:13px;min-height:40px;min-width:48px;padding:4px 7px}.construction-dock .workshop-nav{position:static;display:grid;grid-template-columns:repeat(5,1fr);margin:8px 0 0;padding:0;gap:5px;background:transparent}.construction-dock .workshop-nav button{min-height:44px;font-size:14px;background:#edf3ef;border-color:transparent;border-radius:8px;padding:5px 2px}.construction-dock .workshop-nav button.active{background:#245d4d;color:#fff}
body.preparing .viewing-hud,body.preparing .venue-footer,body.preparing .map-hint,body.preparing .audience-hud,body.preparing .legend{display:none}body.preparing .season-line{bottom:130px}body.preparing .build-preview{bottom:132px;left:12px;right:12px;max-width:620px;margin:auto;background:#183e35f5;border:1px solid #8bbba6;border-radius:13px;box-shadow:0 5px 25px #12382c26;padding:12px;gap:10px;grid-template-columns:minmax(0,1fr) auto}.build-preview.invalid{background:#5a3038!important;border-color:#dc8e8e!important}.preview-copy{grid-column:1/-1}.preview-copy strong{font-size:17px}.preview-copy span{font-size:14px;line-height:1.6}.build-preview button{min-height:44px;font-size:14px;border-radius:8px;padding:8px 12px}.placement-nudge{grid-template-columns:repeat(4,36px);gap:3px}.placement-nudge button{padding:2px;font-size:19px;min-height:40px}.preview-actions{justify-content:flex-end}.range-controls{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:5px}.range-controls[hidden]{display:none!important}.range-controls label{font-size:13px}.range-controls select{max-width:180px;min-height:40px;font-size:14px;border:1px solid #acc7ba;border-radius:6px;background:#fff;color:#234838;padding:5px}.range-controls [aria-pressed=true]{background:#a9efc7;color:#123c2f;border-color:#c3ffe1}.range-controls #rangeReset{background:transparent;color:#d6ede1;border-color:#78988a;font-size:13px;margin-left:auto}.range-controls [hidden]{display:none!important}
#buildIntro{display:none!important}#viewingEditor,#roadEditor{display:none!important}#prepHistoryNote{display:none!important}#workshopFacilities .build-filters{display:flex;gap:5px;flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;margin-bottom:10px;scrollbar-width:thin}#workshopFacilities .filter-btn{flex:0 0 auto;min-height:40px;padding:8px 12px;font-size:14px}#workshopFacilities .build-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#workshopFacilities .build-card{display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:1fr auto;min-height:132px;align-items:start;gap:6px;padding:10px;text-align:left;background:#f9fcfa;border-color:#cfded5}#workshopFacilities .build-card strong{font-size:14px;line-height:1.4;display:block}#workshopFacilities .build-icon{width:42px;height:38px}#workshopFacilities .build-card .desc{display:block;font-size:12px;line-height:1.4;margin-top:5px}#workshopFacilities .facility-tags{font-size:12px;margin-top:5px;letter-spacing:0}#workshopFacilities .build-price{grid-column:1/-1;font-size:19px;text-align:right;font-weight:800;padding-top:5px;border-top:1px solid #dde8e1}#workshopFacilities .build-card.selected{background:#e1f4e9;border-color:#258064}#workshopFacilities .build-card:disabled{opacity:.55}#panelBuild .prep-checklist{padding:9px 10px;margin:0 0 12px;display:flex;gap:8px;align-items:center;border:0;background:#edf5ef;font-size:13px;line-height:1.5}#panelBuild .prep-checklist .next-build-step{width:auto;flex-shrink:0;min-height:40px;font-size:13px;margin:0;padding:5px 9px}#workshopManagePanel .venue-tools{display:none}#workshopManagePanel .selected-facility{border:0;background:transparent;padding:0;font-size:15px}#workshopManagePanel .upgrade-btn,#workshopManagePanel .demolish-btn{min-height:44px;font-size:14px;margin-top:10px;width:100%}#manageHint{display:none!important}
@media(max-width:820px){.control-panel{grid-template-columns:minmax(0,1fr) 148px;display:grid}.tabs{height:52px}.tab{min-height:52px;font-size:14px}.launch-panel{padding:4px;display:block}.launch-panel .launch-btn{min-height:44px;font-size:13px}.panel-content{left:0;right:0;width:auto;max-height:min(50dvh,460px);padding:12px}.panel-heading{top:-12px}.panel-heading h2{font-size:18px}.construction-dock{bottom:8px;left:6px;right:6px;padding:8px}.dock-budget .workshop-budget b{font-size:17px;margin-left:4px}.dock-budget .workshop-budget small{font-size:12px}.dock-budget .prep-history button{min-width:44px;font-size:12px}.construction-dock .workshop-nav{gap:4px}.construction-dock .workshop-nav button{font-size:14px}body.preparing .build-preview{bottom:130px;left:6px;right:6px;padding:10px;gap:7px}.preview-copy strong{font-size:16px}.preview-copy span{font-size:14px}.build-preview button{min-height:44px;font-size:14px;padding:6px 9px}.placement-nudge{grid-template-columns:repeat(4,30px)}.placement-nudge button{font-size:19px}.range-controls #rangeReset{font-size:12px;padding:5px 7px}#workshopFacilities .build-card{min-height:120px}#workshopFacilities .build-card .desc{font-size:12px}.workspace{gap:5px}.range-controls select{max-width:160px}.toast{bottom:190px;font-size:14px;pointer-events:none}}
@media(max-height:550px) and (orientation:landscape){.construction-dock{left:auto;right:6px;width:330px;max-width:45%;bottom:6px}body.preparing .build-preview{left:6px;right:auto;bottom:6px;width:calc(100% - 356px);max-width:none}.preview-copy strong{font-size:15px}.preview-copy span{font-size:13px}.range-controls button{min-height:38px}.panel-content{max-height:72dvh;width:350px;left:auto}.topbar{flex-basis:46px;height:46px}.control-panel{grid-template-columns:minmax(0,1fr) 200px}.tabs,.tab{min-height:44px;height:44px}.launch-panel .launch-btn{min-height:38px}}

.opening-status{padding:12px;border-radius:9px;margin:12px 0;font-size:16px;font-weight:800}.opening-status.ready{background:#e0f2e8;color:#245d4d}.opening-status.blocked{background:#fff0dc;color:#8b5425}.opening-explanation{font-size:14px;line-height:1.7;color:#566d60}.opening-fixes{display:grid;gap:8px;margin:14px 0}.opening-fix{font-size:14px;line-height:1.6;min-height:44px;text-align:left;background:#f4f8f5;border:1px solid #cbdcd1;padding:10px;border-radius:8px;color:#345648}#openingDialog .dialog-actions{display:flex;gap:8px;align-items:stretch}#openingDialog .launch-btn{font-size:14px;margin:0;flex:1;min-height:44px}.result-next-actions{display:grid;gap:8px;margin:14px 0}.result-next-action{font-size:14px;min-height:44px;background:#e4f2e9;color:#245d4d;border:1px solid #b0cdbb;border-radius:8px;padding:10px;text-align:left}

.festival-rank{position:absolute;top:110px;left:18px;z-index:5;padding:5px 10px;background:#293e3ded;color:#fff6cf;border:1px solid #c4b274;border-radius:8px;font-size:12px;font-weight:700;pointer-events:none}
.development-summary,.festival-development{padding:14px;background:#eef1e6;border:1px solid #cdd6c1;border-radius:12px;margin-bottom:12px}.development-summary{display:flex;gap:12px;align-items:center}.development-summary span,.festival-development small{font-size:12px;line-height:1.5}.development-summary b{white-space:nowrap;color:#40573f}.development-tier{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:16px}.development-tier h3{grid-column:1/-1;margin:4px 0;font-size:14px}.development-node{border:1px solid #cbd2c7;border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:6px;background:#fffef7}.development-node p{font-size:12px;margin:0;line-height:1.5}.development-node small{font-size:11px;color:#69756a}.development-node button{margin-top:auto;padding:8px;font-size:12px;background:#e5e9df;border:0;border-radius:7px}.development-node.ready{border-color:#71a06b}.development-node.ready button{background:#426e4b;color:white}.development-node.unlocked{background:#edf4e9}.build-card.undeveloped{background:#eeeee7}.artist-talent{font-size:12px;line-height:1.6;background:#f7efdb;padding:8px;border-radius:6px}.local-avatar{display:grid;place-items:center;width:54px;height:66px;background:#e4e8e1;color:#647b72;font-size:27px;border-radius:10px;flex-shrink:0}.local-note,.collection-count{font-size:12px;line-height:1.6;color:#68776c}.artist-card.locked .artist-buttons button.book-btn{white-space:normal;line-height:1.5;max-width:100%}.development-summary{grid-column:1/-1}
@media(max-width:820px){.festival-rank{top:98px;left:10px;font-size:10px;padding:3px 6px}.development-tier{grid-template-columns:1fr}.development-summary{align-items:flex-start}}
.legend-requirement{display:block;font-size:11px;line-height:1.6;padding:7px 0;color:#827449}.development-node button{min-height:44px}.festival-development p{font-size:13px;line-height:1.6}

.upgrade-panel{position:fixed;right:16px;bottom:86px;z-index:15;width:min(380px,calc(100vw - 24px));background:#fffdf1f5;border:2px solid #c3a764;border-radius:14px;padding:12px;box-shadow:0 8px 30px #183c302d;pointer-events:auto}.upgrade-panel[hidden]{display:none}.upgrade-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.upgrade-panel-head b{font-size:15px}.upgrade-panel p{font-size:11px;margin:7px 0;color:#677669}.upgrade-inline-choices{display:grid;gap:6px}.upgrade-choice{display:flex;flex-direction:column;text-align:left;gap:4px;min-height:48px;padding:9px;border:1px solid #d1d9c3;border-radius:8px;background:#f3f5e9;color:#314d42}.upgrade-choice span{font-size:11px}.auto-upgrade-btn{border:1px solid #bad2c0;border-radius:7px;padding:4px 8px;font-size:11px;background:#eff8eb;color:#31523d;min-height:32px}.auto-upgrade-btn[aria-pressed=true]{background:#38634d;color:#fff}.auto-upgrade-btn[hidden]{display:none}
@media(max-width:820px){.upgrade-panel{right:8px;bottom:78px;width:min(310px,calc(100vw - 16px));padding:9px}.upgrade-panel p{margin:4px 0}.upgrade-choice{min-height:44px;padding:6px 8px}.upgrade-panel-head .text-btn{font-size:11px;margin:0}}

/* Viewing editor keeps the map visible and separates mode from confirmation. */
body.preparing .build-preview.viewing-edit{bottom:12px;max-width:540px;padding:10px;gap:8px;grid-template-columns:minmax(0,1fr);background:#183e35f5}
.build-preview.viewing-edit .range-controls{order:0;gap:6px;grid-column:auto}.build-preview.viewing-edit .preview-copy{order:1;grid-column:auto}.build-preview.viewing-edit .preview-actions{order:2;display:flex;justify-content:space-between;gap:8px}.build-preview.viewing-edit .preview-copy strong{font-size:14px}.build-preview.viewing-edit .preview-copy span{font-size:14px;line-height:1.45}.build-preview.viewing-edit .range-controls button{min-height:44px;padding:6px 10px;font-size:14px}.build-preview.viewing-edit #rangeReset{margin-left:auto;font-size:14px}.build-preview.viewing-edit #viewingSuggest{background:#f1d27c;color:#244438;border-color:#f1d27c}.build-preview.viewing-edit #confirmBuild{background:#a9efc7;color:#123c2f;flex:1;max-width:260px}.build-preview.viewing-edit #confirmBuild:disabled{background:#516f63;color:#c6d4cd;opacity:.65}.build-preview.viewing-edit.invalid{background:#183e35f5!important;border-color:#d4a06d!important}
@media(max-width:600px){body.preparing .build-preview.viewing-edit{left:8px;right:8px;bottom:8px}.build-preview.viewing-edit .range-controls{flex-wrap:wrap}.build-preview.viewing-edit .range-controls select{max-width:160px}.build-preview.viewing-edit .preview-actions button{font-size:14px}.build-preview.viewing-edit #rangeReset{padding:6px;min-height:44px}}

.build-preview.viewing-edit .viewing-presets{flex:1 0 100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.viewing-presets[hidden]{display:none!important}.build-preview.viewing-edit .viewing-presets button{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;min-height:48px;padding:6px;background:#f1d27c;color:#244438;border-color:#f1d27c}.viewing-presets b{font-size:14px;white-space:nowrap}.viewing-presets small{font-size:12px}.build-preview.viewing-edit #rangeReset{margin-left:auto}

.blueprint-btn{padding-inline:8px!important;min-width:50px!important}.blueprint-btn[aria-pressed=true]{background:#315d61;color:#fff;border-color:#315d61}.blueprint-btn[hidden]{display:none!important}

.lineup-tools{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:12px 0 16px;padding:14px;background:#e5efed;border-radius:12px}.lineup-tools label{font-size:14px;display:flex;align-items:center;gap:6px}.lineup-tools input{width:18px;height:18px}.lineup-tools button{padding:10px 14px;background:#315d61;color:white;border-radius:8px}.lineup-tools small{flex-basis:100%;font-size:13px;line-height:1.5}

.production-panel{padding:16px;margin:16px 0;border:1px solid #9bb7bc;border-radius:12px;background:#e8f0f2}.production-panel label{font-weight:bold}.production-panel select,.lineup-tools select{padding:9px;max-width:100%;font-size:14px;border:1px solid #90abad;border-radius:8px;background:white;color:#23454b}.production-panel select{display:block;width:100%;margin:10px 0}.production-panel small,.legend-target,.certification-goal{font-size:14px;line-height:1.6}.legend-target{padding:10px;border-left:3px solid #927347;background:#fff6dc}.certification-goal{padding:10px;background:#e1edee}

/* Compact finance strip; music receives its own visible title plaque. */
.stats{display:flex;right:auto;width:auto;max-width:calc(100% - 18px);gap:0;padding:5px 8px;background:#f8fcf0c9;border:1px solid #ffffff80;border-radius:8px;backdrop-filter:blur(6px)}
.stats .stat{display:flex;align-items:baseline;gap:6px;min-height:0;padding:0 10px;background:none;border:0;border-radius:0;box-shadow:none;backdrop-filter:none;white-space:nowrap}
.stats .stat+.stat{border-left:1px solid #53696633}.stats .stat>span{font-size:11px;color:#50615e}.stats .stat strong{font-size:17px;line-height:1.3;color:#29463e;font-variant-numeric:tabular-nums}.stats .stat small{font-size:10px;font-weight:400}.stats .stat:last-child{display:none}
.festival-rank{top:91px;font-size:10px;padding:4px 7px;background:#293e3dcc}
.canvas-wrap>.now-playing{display:block;position:absolute;top:91px;right:10px;z-index:5;max-width:calc(100% - 185px);padding:7px 11px;border-radius:8px;background:#193937dc;border:1px solid #ffffff36;color:#fff3cd;font-size:13px;font-weight:600;line-height:1.5;white-space:pre-line;overflow-wrap:anywhere;pointer-events:none;box-shadow:0 3px 12px #14282415}
.canvas-wrap>.now-playing[hidden]{display:none!important}.run-hud{top:153px}.fever-banner{top:237px}
@media(max-width:820px){.stats{top:49px;left:7px;max-width:calc(100% - 14px);padding:5px 3px}.stats .stat{padding:0 6px;gap:4px}.stats .stat>span{font-size:10px}.stats .stat strong{font-size:16px}.festival-rank{top:83px;left:8px}.canvas-wrap>.now-playing{top:108px;left:8px;right:auto;max-width:calc(100% - 16px);padding:5px 9px;font-size:12px;line-height:1.4}.run-hud{top:178px}.fever-banner{top:256px}}
@media(max-height:550px){.stats{top:46px}.festival-rank{top:78px}.canvas-wrap>.now-playing{top:78px;left:auto;right:8px;max-width:60%;font-size:11px;padding:4px 8px}.run-hud{top:143px}.fever-banner{top:219px}}

/* Live play needs no repeated cheer button. Keep opening in preparation only. */
#start[hidden],#launchNote[hidden]{display:none!important}

/* Only interactive HUD controls capture touches; the rest passes gestures to the park. */
.run-hud{grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:min(460px,calc(100% - 20px));right:auto;z-index:6;align-items:start;gap:8px}
.run-hud .run-xp{max-width:none;min-width:0;padding:8px 10px}.run-xp>div:first-child{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.run-xp #xpText{margin-left:auto;white-space:nowrap;font-size:11px}.run-xp small{display:block;font-size:10px;color:#bdd5cd;margin-top:6px}
.run-hud .auto-upgrade-btn{pointer-events:auto;touch-action:manipulation;position:relative;z-index:1;min-height:44px;min-width:110px;white-space:nowrap;flex:1 0 100%;padding:6px 9px;font-size:12px;cursor:pointer}
.live-mood-box{min-width:0;background:#283c43e8;border:1px solid #94c2b188;border-radius:8px;padding:9px 10px;color:#fff4d3;backdrop-filter:blur(3px)}.live-mood-box>span{display:block;font-size:10px;color:#c8e1d8;line-height:1.4}.live-mood-box>div:not(.hype-track){display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:6px 0}.live-mood-box strong{font-size:19px;white-space:nowrap}.live-mood-box b{font-size:11px;color:#a9efce}.live-mood-box small{display:block;font-size:10px;line-height:1.4;margin-top:5px}.live-mood-box .hype-track{margin-top:5px}.viewing-hud{top:auto!important;bottom:170px!important;right:10px!important}
@media(max-width:820px){.run-hud{width:calc(100% - 16px);gap:6px}.run-hud .run-xp{padding:7px}.live-mood-box{padding:8px}.live-mood-box strong{font-size:17px}.run-hud .auto-upgrade-btn{font-size:11px;min-width:0}.fever-banner{top:297px}}
@media(max-height:550px){.run-hud{width:min(400px,calc(100% - 16px))}.run-hud .auto-upgrade-btn{flex:0 0 auto;min-width:105px}.run-xp small{display:none}.live-mood-box{padding:6px 8px}.live-mood-box small{font-size:9px}.fever-banner{top:249px}}

.fever-banner{top:290px}.demo-badge{top:320px}
@media(max-width:820px){.fever-banner{top:297px}.demo-badge{top:329px}}
@media(max-height:550px){.fever-banner{top:249px}.demo-badge{top:281px}}

/* Compact independent BGM / effects controls on narrow phones. */
@media(max-width:480px){.header-actions{gap:4px}.header-actions .icon-btn{padding:0 7px;font-size:11px}.brand h1{font-size:16px}}
/* Legendary moments span the venue but never intercept gameplay input. */
.artist-cutin{inset:30% 0 auto;width:100%;height:clamp(190px,38%,320px);border:0;border-radius:0;box-shadow:none;background:linear-gradient(105deg,#172b45ed 0%,#172b45b8 45%,transparent 88%);overflow:hidden;clip-path:polygon(0 10%,100% 0,100% 90%,0 100%)}.artist-cutin img{right:8%;top:-25%;width:clamp(240px,42%,470px);height:150%;object-fit:contain;object-position:center;transform:rotate(-5deg);mask-image:linear-gradient(90deg,transparent,#000 12%,#000 90%,transparent)}.cutin-copy{left:6%;top:26%;width:48%}.cutin-copy strong{font-size:clamp(22px,3.2vw,40px);letter-spacing:.06em}.cutin-copy b{font-size:13px}.cutin-copy span{font-size:14px}.artist-cutin.enter{animation:legend-sweep 2.2s ease both}@keyframes legend-sweep{0%{opacity:0;transform:translateX(-12%)}14%,72%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(5%)}}
.starter-dialog{width:min(980px,96vw);max-height:90dvh;padding:24px;background:#f8f8ed}.starter-dialog h2{margin:8px 0;font-size:clamp(22px,4vw,32px)}.starter-dialog>p{font-size:13px;line-height:1.7}.starter-list{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;max-height:52dvh;overflow:auto;padding:4px}.starter-card{padding:0 0 9px;background:#e4ece5;border:2px solid transparent;border-radius:8px;overflow:hidden;color:#263e3e}.starter-card.selected{border-color:#c09142;background:#fff0c7;box-shadow:0 0 0 2px #e4ce92}.starter-card img{display:block;width:100%;height:125px;object-fit:cover;object-position:50% 18%}.starter-card strong,.starter-card small{display:block;margin:6px 3px 0;font-size:11px;line-height:1.3}.starter-card small{font-size:10px;color:#59716b}.starter-footer{display:flex;gap:12px;align-items:center;position:sticky;bottom:-24px;background:#f8f8ed;padding:15px 0 4px}.starter-footer .launch-btn{width:auto;flex:1;margin:0;font-size:15px}.starter-footer>strong{font-size:13px}.repertoire-select{max-width:100%;min-width:0;width:100%;padding:7px;font-size:12px;color:#28444c;border:1px solid #b5c7c2;border-radius:5px;background:#f6f7ed}.legend-earned{display:inline-flex;vertical-align:top;flex-direction:column;align-items:center;width:130px;margin:9px 5px;padding:10px;background:linear-gradient(#ffe9ab,#fff8df);border:1px solid #d3b55f;border-radius:8px}.legend-earned img{object-fit:cover;border-radius:5px}.legend-earned b{font-size:12px;margin-top:7px}.legend-earned small{font-size:8px;color:#90703b;margin-top:4px}
.closing-hud{position:absolute;left:50%;bottom:17%;transform:translateX(-50%);z-index:8;width:min(480px,90%);text-align:center;color:#fff6d8;background:linear-gradient(110deg,#20364ad9,#20364a9c);border-top:1px solid #dfc386aa;border-bottom:1px solid #dfc38655;padding:16px 12px;pointer-events:none;box-shadow:0 8px 36px #17283920}.closing-hud[hidden],.legend-reveal[hidden]{display:none}.closing-hud strong{display:block;font-size:clamp(21px,3vw,32px);letter-spacing:.14em}.closing-hud span{display:block;font-size:12px;margin-top:8px}.closing-hud button{pointer-events:auto;margin-top:12px;border:1px solid #d8c895;background:#f9edcb;color:#25414a;padding:8px 20px;border-radius:5px;min-height:40px}.legend-reveal{position:absolute;inset:28% 0 auto;height:280px;z-index:9;background:linear-gradient(100deg,#293b48eb,#826540b8,transparent);pointer-events:none;animation:legend-reveal 3.2s ease both}.legend-reveal img{position:absolute;right:8%;height:125%;top:-12%;width:40%;object-fit:contain;mask-image:linear-gradient(90deg,transparent,#000 20%)}.legend-reveal>div{position:absolute;left:6%;top:35%;max-width:55%;color:#fff0b9}.legend-reveal small{display:block;font-size:12px;letter-spacing:.12em}.legend-reveal strong{display:block;font-size:clamp(23px,3vw,38px);margin-top:15px}@keyframes legend-reveal{0%{opacity:0;transform:translateX(-6%)}15%,80%{opacity:1;transform:translateX(0)}100%{opacity:0}}
@media(max-width:600px){.starter-list{grid-template-columns:repeat(3,minmax(0,1fr))}.starter-dialog{padding:16px}.starter-card img{height:125px}.starter-footer{flex-wrap:wrap;gap:8px;bottom:-16px}.starter-footer>strong{width:100%}.starter-footer .launch-btn{font-size:12px}.cutin-copy{top:23%;left:5%;width:56%}.cutin-copy span{font-size:11px}.artist-cutin img{right:-12%;width:65%}.legend-reveal{height:200px}.legend-reveal small{font-size:9px}.legend-reveal img{right:-4%;width:55%}}
@media(prefers-reduced-motion:reduce){.artist-cutin.enter,.legend-reveal{animation:none}}
.signature-dock{display:block!important;margin-top:8px!important;pointer-events:auto}.signature-dock[hidden]{display:none!important}.signature-dock button{width:100%;min-height:44px;border:1px solid #ffe6a1;border-bottom:3px solid #c7993b;border-radius:7px;background:linear-gradient(120deg,#ffe5a2,#f4bd59);color:#393742;font-weight:900;font-size:13px;padding:9px}.signature-dock button.ready{animation:signature-ready 1.3s ease-in-out infinite}.signature-dock button:disabled{animation:none;background:#68552e;color:#ffe8b4;border-color:#b7a26d}.signature-dock small{font-size:9px!important;color:#ffdf9a!important;line-height:1.5!important}.artist-cutin.signature{background:linear-gradient(105deg,#443047ef,#9c703a9c,transparent);height:clamp(230px,48%,380px);animation:legend-sweep 2.8s ease both}.signature-playing .canvas-wrap{box-shadow:inset 0 0 35px #ffe28788}.festival-rank{min-width:170px}.festival-rank>strong{display:block;font-size:10px}.festival-rank>small{display:block;font-size:9px;color:#c9decf;margin:4px 0}.festival-xp-track{height:5px;overflow:hidden;border-radius:3px;background:#111f33;width:100%}.festival-xp-track i{display:block;height:100%;background:linear-gradient(90deg,#83cfb3,#b1efd4);border-radius:3px;transition:width .7s ease}.festival-rank.xp-flash{animation:festival-rainbow 1s linear infinite;border-color:#ffeda6}.festival-rank.xp-flash .festival-xp-track i{background:linear-gradient(90deg,#f29aca,#ffd788,#adf19e,#8de6ef,#baa3f3);background-size:200% 100%;animation:festival-rainbow 1s linear infinite}.festival-rank>span{position:absolute;left:0;top:calc(100% + 4px);color:#fff3b5;white-space:nowrap;font-size:12px;font-weight:900;text-shadow:0 2px 5px #213948;background:#29384ada;padding:4px 7px;border-radius:5px}.canvas-wrap>.now-playing{top:144px}.run-hud{top:211px}@keyframes signature-ready{0%,100%{filter:brightness(1);box-shadow:0 0 3px #ffce5e55}50%{filter:brightness(1.15);box-shadow:0 0 14px #ffce5eaa}}@keyframes festival-rainbow{0%{filter:hue-rotate(0deg)}100%{filter:hue-rotate(360deg)}}@media(max-width:820px){.festival-rank{min-width:160px}.canvas-wrap>.now-playing{top:137px}.run-hud{top:201px}.fever-banner{top:327px}}@media(max-height:550px){.festival-rank{min-width:155px}.canvas-wrap>.now-playing{left:auto;right:8px;top:79px;max-width:53%}.run-hud{top:143px}.fever-banner{top:275px}}@media(prefers-reduced-motion:reduce){.signature-dock button.ready,.festival-rank.xp-flash,.festival-rank.xp-flash .festival-xp-track i,.artist-cutin.signature{animation:none}.festival-xp-track i{transition:none}}

/* v48: measured live journal and readable booking identities */
.performance-report{margin:20px 0;padding:18px;border:1px solid #537486;border-radius:14px;background:#f3f8fb;color:#213c4b}.performance-report header>span{font-size:12px;letter-spacing:.12em;color:#48677b;font-weight:800}.performance-report h3{font-size:20px;margin:5px 0 14px}.show-highlight{padding:16px;border-left:4px solid #d49b34;background:#fff;border-radius:8px}.show-highlight small{display:block;font-size:14px;color:#526570}.show-highlight strong{display:block;font-size:22px;margin:5px 0}.show-highlight p,.performance-report p{font-size:14px;line-height:1.7;margin:8px 0}.journal-summary{display:flex;flex-wrap:wrap;gap:8px 20px;margin:15px 0;font-size:14px}.journal-summary b{color:#245d75}.journal-note{color:#526570}.performance-report summary{cursor:pointer;font-weight:700;padding:12px 0;font-size:16px}.show-journal{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.show-journal article{padding:12px;background:#fff;border:1px solid #c4d6df;border-radius:8px}.show-journal article>strong,.show-journal small{display:block;overflow-wrap:anywhere}.show-journal small{font-size:14px;color:#526570;margin:4px 0 10px}.show-journal article>div{display:flex;gap:8px;flex-wrap:wrap;font-size:14px}.performance-style{font-size:14px;line-height:1.7;padding:10px 12px;background:#edf4f9;border-left:3px solid #527b96;color:#294859;border-radius:4px}.performance-style b{display:block}@media(max-width:600px){.show-journal{grid-template-columns:1fr}.performance-report{padding:12px}.show-highlight strong{font-size:20px}}

.history-journal>summary{font-size:14px;cursor:pointer;padding:12px 0;color:#245d75;font-weight:700}.history-journal .performance-report{margin:8px 0}.history-journal .show-journal{grid-template-columns:1fr}

/* Modal top-layer controls must remain inside the open dialog. */
.dialog-music-controls{position:sticky;top:0;z-index:2;display:flex;justify-content:flex-end;margin:0 0 10px;padding:4px 0;background:inherit}.dialog-music-toggle{min-height:44px;padding:8px 14px;border:1px solid #809ca0;border-radius:8px;background:#f1f6f5;color:#23454b;font-size:14px;font-weight:700}.dialog-music-toggle.on{background:#efc36d;color:#203039;border-color:#c99736}

.legend-fans{margin:10px 0;padding:10px 12px;border:1px solid #d7b664;border-radius:8px;background:#fff8df;color:#574421;font-size:14px}.legend-fans small{display:block;font-size:13px;line-height:1.6;margin-top:4px}.fan-forecast{font-size:14px;line-height:1.7;padding:10px;background:#fff8df;border-radius:8px}

/* v50: phone venue first; persistent growth and this-run upgrades are distinct. */
.run-details{min-width:0}.live-details-toggle{display:none}
.game-settings{position:relative}.game-settings>summary{display:none}.settings-popover{display:flex;gap:6px}
.run-hud .run-xp small{display:block;font-size:12px;line-height:1.6;margin-top:6px;color:#d4def1}
.run-hud .run-xp strong{color:#dbcaff;font-size:15px}.run-xp .xp-track i{background:#b399ed}
body.running .control-panel{grid-template-columns:minmax(0,1fr)}body.running .launch-panel{display:none}
@media(max-width:600px){
 .topbar{padding-left:12px;padding-right:12px;min-height:52px;flex-basis:calc(52px + env(safe-area-inset-top))}.brand h1{font-size:16px}.logo{display:none}
 .header-actions{gap:8px;align-items:center}.header-actions .icon-btn{min-height:44px;font-size:13px}
 .game-settings>summary{display:flex;align-items:center;justify-content:center;min-height:44px;min-width:56px;border:1px solid #6c8486;border-radius:8px;font-size:14px;cursor:pointer;list-style:none}.game-settings>summary::-webkit-details-marker{display:none}
 .settings-popover{display:none;position:absolute;top:calc(100% + 8px);right:0;z-index:30;width:180px;padding:10px;gap:8px;background:#20383d;border:1px solid #7e9b9b;border-radius:12px;box-shadow:0 6px 24px #102b4055}.game-settings[open] .settings-popover{display:grid;grid-template-columns:1fr 1fr}
 main{padding:4px 4px max(4px,env(safe-area-inset-bottom))}.workspace{gap:4px}.venue{border-radius:12px}
 .venue-top{top:4px;left:4px;right:4px;padding:2px 4px;gap:4px;box-shadow:none}.phase strong{font-size:12px;white-space:nowrap}.map-controls{gap:2px}.map-controls .small-btn{min-width:36px;height:44px;font-size:13px;padding:0 5px}body.running #zoomOut,body.running #zoomIn{display:none}
 .stats{top:57px;left:6px;right:6px;width:auto;max-width:none;justify-content:space-between;padding:4px 2px;border:0}.stats .stat{padding:0 5px;gap:3px}.stats .stat>span{font-size:12px}.stats .stat strong{font-size:16px;letter-spacing:0}.stats .stat small{font-size:11px;margin-left:2px}
 .festival-rank{top:89px;left:6px;right:6px;width:auto;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:8px;padding:6px 8px;border-radius:7px;pointer-events:none}
 #festivalRankLabel{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#festivalXpText{font-size:11px;margin:0;white-space:nowrap}.festival-xp-track{grid-column:1/-1;height:4px;margin-top:4px}
 .canvas-wrap>.now-playing{display:block;top:133px;left:6px;right:6px;width:auto;max-width:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:12px;padding:5px 8px;line-height:1.4;background:#193937d9}
 .run-hud{top:auto;bottom:53px;left:6px;right:6px;width:auto;display:grid;grid-template-columns:minmax(0,1fr) 100px;align-items:center;gap:0;background:#203a41eb;border:1px solid #8eacaa;border-radius:10px;padding:5px 8px;pointer-events:auto}
 .run-hud .run-details{display:none}.run-hud .live-mood-box{display:contents}.run-hud #liveMoodStage,.run-hud #liveMoodFactors,.run-hud .hype-track{display:none}
 .run-hud .live-mood-box>div:not(.hype-track):not(.signature-dock){grid-column:1;grid-row:1;display:flex;gap:6px;align-items:baseline;min-width:0;color:#fff3cd}.run-hud #liveMoodValue{font-size:16px;white-space:nowrap}.run-hud #liveMoodValue::before{content:'熱気 ';font-size:12px}.run-hud #hypeText{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .live-details-toggle{display:block;grid-column:2;grid-row:1;min-height:44px;background:#365861;color:#fff;border:1px solid #90b3b5;border-radius:7px;font-size:13px;padding:4px 8px}
 .run-hud .signature-dock{grid-column:1/-1;margin-top:5px!important}.signature-dock small{display:none}.signature-dock button{font-size:14px}
 body.live-details-open .run-hud{z-index:8;max-height:calc(100% - 170px);overflow-y:auto;overscroll-behavior:contain;padding:10px;gap:8px;box-shadow:0 -10px 30px #102b4055}
 body.live-details-open .run-details{display:block;grid-row:2;grid-column:1/-1}body.live-details-open .run-hud .run-xp{max-width:none;pointer-events:auto}
 body.live-details-open .run-hud #liveMoodStage{display:block;grid-column:1;grid-row:1;color:#d7e9e9;font-size:12px}
 body.live-details-open .run-hud .live-mood-box>div:not(.hype-track):not(.signature-dock){grid-row:3;grid-column:1/-1}
 body.live-details-open .run-hud #liveMoodFactors{display:block;grid-row:4;grid-column:1/-1;color:#d7e9e9;font-size:12px;line-height:1.6}
 body.live-details-open .run-hud .signature-dock{grid-row:5}
 .canvas-wrap>.viewing-hud,.canvas-wrap>.audience-hud,.canvas-wrap>.run-build{display:none!important}
 .venue-footer{bottom:6px;left:6px;right:6px;border:0}.festival-progress,body.has-spotlight .festival-progress{padding:5px 8px;min-height:36px;display:block}.artist-spotlight{display:none!important}.progress-caption,body.has-spotlight .progress-caption{font-size:12px;gap:6px;margin-bottom:4px}#progressLabel{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.progress-track{height:3px}
 body.running .season-line,body.running .legend{display:none}.canvas-wrap>.run-notice{bottom:119px;left:6px;right:6px;max-width:none;font-size:12px;padding:5px 8px;white-space:normal;max-height:42px;line-height:1.4}
 body.live-details-open .run-notice{display:none}.fever-banner{top:172px;font-size:15px;padding:4px 8px}.demo-badge,body.demo.running .demo-badge{top:169px;left:6px;transform:none;font-size:11px;max-width:85%}body.fever .demo-badge{display:none}
 .tabs,.tabs .tab{height:48px;min-height:48px}.control-panel{grid-template-columns:minmax(0,1fr) 120px}.tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.tab{font-size:13px}.launch-panel{padding:3px}.launch-panel .launch-btn{font-size:13px;min-height:44px;margin:0}
 .panel-content{max-height:min(65dvh,540px)}.sheet-close{min-height:44px}.toast{bottom:calc(110px + env(safe-area-inset-bottom));font-size:13px;max-width:calc(100vw - 24px)}
}
@media(max-width:360px){#festivalRankLabel{font-size:11px}#festivalXpText{font-size:10px}.stats .stat>span{font-size:11px}.stats .stat strong{font-size:14px}.map-controls .small-btn{min-width:32px}.run-hud{grid-template-columns:minmax(0,1fr) 94px}.run-hud #hypeText{font-size:11px}}
.live-detail-meta{display:none}
@media(max-width:600px){body.live-details-open .live-detail-meta{display:block;color:#e0eded;font-size:12px;line-height:1.6;overflow-wrap:anywhere;margin:0 0 8px;white-space:pre-line}}
@media(max-width:600px){.canvas-wrap:has(.signature-dock:not([hidden]))>.run-notice{display:none}}

/* v52: research is a separate, connected tree. */
.tabs{grid-template-columns:repeat(4,minmax(0,1fr))!important}
#panelDevelop{width:min(760px,calc(100vw - 40px))}.research-tree{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.research-branch,.research-children{list-style:none;margin:0;padding:0}.research-children{margin:0 0 0 14px;padding:12px 0 0 17px;border-left:2px solid #8cab9b}.research-item{position:relative;margin-bottom:12px}.research-children>.research-item:before{content:"";position:absolute;left:-19px;top:24px;width:18px;border-top:2px solid #8cab9b}.research-node{border:1px solid #cbd8d2;border-radius:9px;background:#fff;padding:12px;display:grid;gap:7px}.research-node-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.research-node strong{font-size:15px}.research-node-heading>span{font-size:12px;white-space:nowrap;background:#e8efeb;border-radius:5px;padding:4px 6px}.research-node p,.research-guide{font-size:14px;line-height:1.6;margin:0}.research-node small{font-size:13px;line-height:1.6;color:#526c63}.research-node button,.research-link{min-height:44px;border:1px solid #b8ccc1;border-radius:7px;background:#f0f5f1;color:#244f40;font-size:14px;padding:8px}.research-node.ready{border-color:#448a65;background:#f0faf4}.research-node.ready button{background:#286047;color:white}.research-node.locked{background:#f2f4f3}.research-node.unlocked{border-color:#78a58c}.research-node.base{background:#203e35;color:#fff}.research-node.base small{color:#d2e4d8}.research-node.base .research-node-heading>span{background:#ffffff20}.research-guide{margin-bottom:16px;color:#536c62}.research-link{width:100%;margin-top:12px}.development-summary{align-items:flex-start;flex-direction:column;gap:6px}.development-summary span{font-size:14px;line-height:1.6}
.build-impact{grid-column:1/-1;font-size:13px;line-height:1.6;color:#d5ece0;border-top:1px solid #ffffff30;padding-top:7px}.build-impact[hidden]{display:none}.build-impact summary{cursor:pointer;min-height:32px}.build-impact summary b{color:#fcdf95}.build-impact p{margin:6px 0}.build-impact small{display:block;font-size:12px;line-height:1.5;color:#c2d9ce}.choice-context{white-space:pre-line}
@media(max-width:820px){#panelDevelop{width:auto}.research-tree{grid-template-columns:1fr}.research-node{padding:10px}.research-children{margin-left:10px;padding-left:15px}.research-children>.research-item:before{left:-17px;width:16px}.tabs .tab{font-size:13px}.control-panel{grid-template-columns:minmax(0,1fr) 116px}.build-impact summary{font-size:12px;line-height:1.6}.build-impact summary b{display:block}.build-impact[open]{max-height:160px;overflow:auto}}

/* v53: a map-first workspace while placing facilities, roads or viewing areas. */
body.placing .stats,body.placing .festival-rank,body.placing .now-playing,body.placing .season-line,body.placing .construction-dock,body.placing .control-panel,body.placing .map-hint,body.placing .map-tag,body.placing .legend,body.placing .viewing-hud,body.placing .audience-hud{display:none!important}
body.placing .workspace{grid-template-rows:minmax(0,1fr);gap:0}
body.placing .build-preview,body.placing .build-preview.viewing-edit{bottom:8px;left:8px;right:8px;width:auto;max-width:620px;margin:0 auto;padding:10px;display:flex;flex-direction:column;gap:6px;border-radius:14px;background:rgba(19,55,46,.96);max-height:calc(100% - 68px)}
body.placing .build-preview[hidden]{display:none}
.placement-heading{display:flex;align-items:center;gap:10px;justify-content:space-between;min-width:0}
.placement-heading strong{font-size:15px;line-height:1.4;min-width:0}
body.placing .placement-heading button{flex:none;min-height:44px;padding:5px 12px;font-size:14px}
.placement-status{font-size:14px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#dfede6}
body.placing .build-preview.invalid .placement-status{color:#ffcfbd}
.placement-details{overflow-y:auto;overscroll-behavior:contain;min-height:0;max-height:32dvh;display:flex;flex-direction:column;gap:10px;border-top:1px solid #ffffff30;padding-top:10px}
.placement-details[hidden]{display:none}
body.placing .build-preview .preview-copy,body.placing .build-preview .range-controls{order:initial}
body.placing .build-preview .preview-copy strong{display:none}
body.placing .build-preview .preview-copy span{font-size:14px;line-height:1.6}
body.placing .build-preview .preview-actions{order:initial;display:flex;gap:6px;justify-content:flex-end;flex-shrink:0}
body.placing .preview-actions button{min-height:44px;font-size:14px;padding:8px 14px}
body.placing .placement-nudge{display:grid;grid-template-columns:repeat(4,44px);gap:6px}
body.placing .placement-nudge[hidden]{display:none}
body.placing .placement-nudge button{width:44px;height:44px;padding:0}
body.placing .build-impact[open]{max-height:none;overflow:visible}
body.placing .toast{bottom:auto;top:62px;max-width:calc(100% - 24px);pointer-events:none}
@media(max-width:820px){
 body.placing .topbar{display:none}
 body.placing main{padding:4px max(4px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left));gap:0}
 body.placing .venue-top{top:4px;left:4px;right:4px;min-height:48px;padding:2px 4px}
 body.placing .venue-top .phase{font-size:13px}
 body.placing .venue-top .phase #phaseIcon,body.placing #timeText,body.placing #landSize{display:none}
 body.placing .map-controls{gap:3px}
 body.placing .map-controls button{min-width:36px;min-height:44px;padding:2px 7px;font-size:14px}
 body.placing .build-preview,body.placing .build-preview.viewing-edit{left:4px;right:4px;bottom:4px;padding:8px;gap:4px;max-width:none}
 body.placing .placement-heading{gap:6px}
 body.placing .placement-heading strong{font-size:14px}
 body.placing .placement-heading button{padding:4px 10px}
}
@media(max-height:450px){body.placing .build-preview,body.placing .build-preview.viewing-edit{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px}body.placing .placement-heading{grid-column:1;grid-row:1}body.placing .placement-status{grid-column:1;grid-row:2}body.placing .placement-details{grid-column:1/-1;grid-row:3;max-height:24dvh}body.placing .preview-actions{grid-column:2;grid-row:1/3;align-self:end}}

body.placing .build-preview .placement-details[hidden],body.placing .build-preview button[hidden]{display:none!important}
body.placing .build-preview .preview-copy span{white-space:normal;overflow:visible;text-overflow:clip}

/* v54 difficulty controls live inside Settings on every screen size. */
.game-settings>summary{display:flex;align-items:center;justify-content:center;min-height:44px;min-width:56px;border:1px solid #6c8486;border-radius:8px;font-size:14px;cursor:pointer;list-style:none}
.settings-popover{display:none;position:absolute;top:calc(100% + 8px);right:0;z-index:30;width:260px;max-width:calc(100vw - 24px);padding:12px;gap:8px;background:#20383d;border:1px solid #7e9b9b;border-radius:12px;box-shadow:0 6px 24px #102b4055}
.game-settings[open] .settings-popover{display:grid;grid-template-columns:1fr 1fr}
.difficulty-setting{grid-column:1/-1;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;color:#eef4ef;border-bottom:1px solid #ffffff25;padding-bottom:10px}
.difficulty-setting label{font-size:14px}.difficulty-setting select{width:100%;min-height:44px;padding:6px 10px;font-size:16px;background:#f5faf6;color:#234239;border:1px solid #a1b8ad;border-radius:7px}.difficulty-setting small{grid-column:1/-1;font-size:13px;line-height:1.6;color:#ccdfd6}

.settings-popover{max-height:calc(100dvh - 80px);overflow:auto;overscroll-behavior:contain}

/* v56 explicit recovery at opening; no cash is lent before opening. */
.recovery-panel{margin:14px 0;padding:14px;border:1px solid #81ac98;border-radius:10px;background:#eef6ef;color:#25483b}.recovery-panel[hidden]{display:none}.recovery-panel h3{margin:0 0 10px;font-size:17px}.recovery-panel p,.recovery-result p{font-size:14px;line-height:1.7}.recovery-panel button{width:100%;min-height:44px;font-size:14px}.recovery-result{margin:12px 0;padding:12px;border:1px solid #a7c3b4;border-radius:8px;background:#edf5ee}

/* v56: the selected stage/time never scrolls away; only candidates scroll. */
#panelArtists{width:min(620px,calc(100vw - 32px));height:min(80dvh,760px);max-height:min(80dvh,760px);overflow:hidden;display:flex;flex-direction:column;padding:12px;gap:8px}
#panelArtists[hidden]{display:none}#panelArtists .panel-heading{position:static;flex:none;padding:0;min-height:44px}#panelArtists .panel-heading h2{font-size:18px}#panelArtists .mini-label{display:none}
.lineup-editor{flex:none;padding:8px;background:#edf4ef;border:1px solid #c8d8cf;border-radius:10px}.lineup-stage-label{display:flex;align-items:center;gap:8px;font-size:12px}.lineup-stage-label select{flex:1;min-width:0}
#lineupStage,#artistSort,#panelArtists #bookingStrategy{min-height:44px;padding:6px 8px;font-size:14px;border:1px solid #b5cac0;border-radius:7px;background:#fff;color:#25413b}
#panelArtists #lineupSlots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:6px 0}#panelArtists .slot{min-width:0;min-height:55px;margin:0;padding:6px;display:flex;flex-direction:column;gap:3px;align-items:stretch;text-align:left}#panelArtists .slot-time{font-size:12px}#panelArtists .slot-name{min-width:0}#panelArtists .slot-name strong{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px}#panelArtists #lineupSlots>.text-btn{grid-column:1/-1;min-height:36px;padding:3px}
#panelArtists .stage-selected{font-size:12px;margin:4px 0;line-height:1.5}.lineup-quick{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px}.lineup-quick button{min-height:44px;font-size:13px;padding:6px;border-radius:7px;background:#285d4f;color:white;border:0}
#panelArtists .build-filters{margin:6px 0;display:flex;gap:4px}#panelArtists .filter-btn{flex:1;min-height:36px;padding:5px;font-size:12px}.artist-sort-label{display:flex;gap:8px;align-items:center;font-size:12px}#artistSort{flex:1;min-width:0}
.lineup-candidates{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:3px}.lineup-help{font-size:12px;margin:0 0 8px}.lineup-help>summary{min-height:36px;display:flex;align-items:center;cursor:pointer}.lineup-help p{line-height:1.7}
#panelArtists .artist-list{display:grid;grid-template-columns:1fr;gap:8px}#panelArtists .artist-card{display:flex;flex-direction:column;padding:8px;gap:4px}#panelArtists .artist-top{display:grid;grid-template-columns:42px minmax(0,1fr);gap:8px;align-items:center}#panelArtists .artist-portrait{width:42px;min-width:42px;height:56px;padding:0}#panelArtists .artist-portrait img{width:42px;height:56px;object-fit:cover}#panelArtists .local-avatar{width:42px;height:48px;font-size:24px}#panelArtists .artist-top strong{font-size:15px}#panelArtists .artist-top small{display:block;font-size:12px;line-height:1.6}#panelArtists .artist-time{display:none}
.artist-compatibility{font-size:12px;line-height:1.5;margin:2px 0;color:#31584e}.artist-trust,.venue-compatibility{padding:8px;background:#edf4ef;border-radius:6px;line-height:1.6}
@media(max-width:600px){#panelArtists{position:fixed;z-index:35;top:calc(58px + env(safe-area-inset-top));bottom:calc(70px + env(safe-area-inset-bottom));left:6px;right:6px;width:auto;height:auto;max-height:none;padding:10px;border-radius:12px}#panelArtists .lineup-stage-label{font-size:11px}#panelArtists .lineup-editor{padding:6px}#panelArtists .artist-top strong{font-size:14px}}


/* Stall settings are a separate compact sheet, keeping venue placement unobscured. */
.shop-dialog{max-width:480px;width:calc(100% - 32px);max-height:80dvh;overflow:auto;padding:22px}.shop-field{display:flex;flex-direction:column;gap:8px;margin:16px 0;font-weight:700}.shop-field select,.shop-field input{width:100%;box-sizing:border-box;padding:12px;border:1px solid #a5bfb3;border-radius:10px;background:#fffdf5;color:#203e36;font:inherit;min-height:48px}.shop-quote{padding:14px;background:#e5eee2;border-radius:12px;line-height:1.7;font-size:13px}.shop-help{font-size:12px;line-height:1.6;color:#586c65}.artist-request{border-left:3px solid #c19a58;padding:10px 12px;margin:8px 0;background:#f3ebd9;border-radius:0 8px 8px 0}.artist-request small{display:block;margin:7px 0;line-height:1.6}.stories-journal{padding:14px;border:1px solid #b2c6ba;border-radius:12px;margin:12px 0;font-size:13px;line-height:1.6}.stories-journal summary{font-weight:700;cursor:pointer}.stories-journal p{margin:8px 0}.shop-edit{display:block;width:100%;margin-top:8px}
@media(max-width:650px){.shop-dialog{padding:18px;max-height:82dvh}.shop-dialog .dialog-actions{position:sticky;bottom:-18px;background:#fffaf0;padding:12px 0;margin-bottom:0}.shop-dialog h2{font-size:20px}}
#shopArt{display:block;margin:2px auto 8px;image-rendering:pixelated;background:#edf2e2;border-radius:12px}

.production-panel input[type=range]{display:block;width:100%;height:36px;margin:12px 0;accent-color:#2c7160}.production-panel p,.weather-forecast p{font-size:14px;line-height:1.6;margin:8px 0}.production-panel label{display:flex;justify-content:space-between;gap:12px}.weather-forecast{padding:12px 16px;border-radius:12px;background:#eef2df}.weather-forecast h3{margin:0 0 8px;font-size:15px}.weather-forecast strong{font-size:20px}#progressNumber{white-space:nowrap;font-variant-numeric:tabular-nums}

.auto-upgrade-setting{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:600;line-height:1.5;padding:12px 0}.auto-upgrade-setting input{width:22px;height:22px;accent-color:#286b59;flex-shrink:0}.auto-upgrade-explanation{display:block;line-height:1.6;font-size:14px}.local-strength{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin:10px 0;padding:8px 10px;background:#e8f0f2;border-radius:8px;font-size:14px}.starter-free{font-size:14px;background:#fff1c6;padding:10px;border-radius:8px}

.settings-popover .auto-upgrade-setting,.settings-popover .auto-upgrade-explanation{grid-column:1/-1}.settings-popover .auto-upgrade-setting{color:#edf7ed;padding:6px 0}.settings-popover .auto-upgrade-explanation{color:#c5ddd9}

/* v98: compact candidates, one scrollable performer window. */
#panelArtists .artist-card{display:flex;flex-direction:column;gap:6px;padding:10px;min-width:0}
#panelArtists .artist-top{grid-template-columns:42px minmax(0,1fr);min-width:0}
#panelArtists .artist-top>span{min-width:0;overflow-wrap:anywhere}
#panelArtists .artist-summary{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 10px;font-size:12px;line-height:1.5;margin:0;color:#47655d}
#panelArtists .artist-summary span{font-weight:700}
#panelArtists .artist-handover{font-size:12px;margin:0;line-height:1.5}
#panelArtists .legend-rotation-status{font-size:12px;margin:0}
#panelArtists .artist-buttons{display:grid;grid-template-columns:44px 1fr 1fr;gap:6px;margin:2px 0 0;max-width:none}
#panelArtists .artist-buttons>button{min-width:0;width:auto;min-height:44px;margin:0;padding:7px;font-size:13px;overflow-wrap:anywhere}
#panelArtists .preview-btn{order:1}#panelArtists .artist-detail-open{order:2;background:#edf3ed;color:#234c48;border:1px solid #aebfb3;border-radius:7px}
#panelArtists .book-btn{order:3}
.artist-detail-dialog{width:min(620px,calc(100vw - 20px));max-width:620px;height:min(86dvh,820px);max-height:calc(100dvh - 24px);box-sizing:border-box;padding:0;overflow:hidden;color:#263d38}
.artist-detail-dialog[open]{display:flex;flex-direction:column}
.artist-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid #c8d8cf;flex:none;background:#f5f8f3}
.artist-dialog-heading>div{min-width:0;overflow-wrap:anywhere}.artist-dialog-heading h2{font-size:20px;margin:0 0 5px}.artist-dialog-heading p{font-size:13px;line-height:1.5;margin:0;color:#526b63}
.artist-dialog-heading button{min-width:64px;min-height:44px;flex:none}
.artist-dialog-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:16px;font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.artist-dialog-body p{font-size:14px;line-height:1.7;margin:0 0 12px}.artist-dialog-context{color:#526b63}
.artist-dialog-footer{flex:none;padding:12px 16px;border-top:1px solid #c8d8cf;background:#f5f8f3}
.artist-dialog-controls{display:grid;grid-template-columns:1fr 2fr;gap:10px}
.artist-dialog-controls button,.artist-advanced-controls button,.artist-advanced-controls select{min-height:44px;min-width:0;font:inherit;font-size:14px;padding:10px;border-radius:8px}
.artist-dialog-controls .book-btn{margin:0;width:auto}
.artist-advanced-controls{display:grid;grid-template-columns:1fr;gap:8px;padding:14px 0 0;border-top:1px solid #c8d8cf;margin-top:16px}
.artist-advanced-controls h3{font-size:14px;margin:0}.artist-advanced-controls input[hidden]{display:none}
.artist-detail-open:focus-visible,#closeArtistDetail:focus-visible{outline:3px solid #c99b45;outline-offset:2px}
@media(max-width:380px){.artist-dialog-heading{padding:12px;gap:8px}.artist-dialog-heading h2{font-size:18px}.artist-dialog-body{padding:12px}.artist-dialog-footer{padding:10px 12px}}

/* A game-native title: illustrated performers and a quiet, compact start menu. */
#gameHeader[hidden],#gameMain[hidden],#titleScreen[hidden]{display:none!important}
.title-screen{position:relative;isolation:isolate;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;background:#112e36;color:#fffaf0;display:flex;align-items:center;padding:max(32px,env(safe-area-inset-top)) max(7vw,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom));}
.title-art{position:absolute;inset:0 0 0 43%;overflow:hidden;z-index:-2;display:grid;grid-template-columns:58% 24% 18%;transform:skewX(-8deg);transform-origin:bottom right}
.title-art img{width:100%;height:100%;object-fit:cover;object-position:48% 35%;transform:skewX(8deg) scale(1.12);border-left:5px solid #112e36}
.title-art .title-art-side{object-position:45% 35%;filter:brightness(.8)}.title-art .title-art-last{object-position:48% 27%;filter:brightness(.65)}
.title-screen:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#112e36 23%,#112e36e8 37%,#112e3655 55%,transparent 75%),linear-gradient(0deg,#112e3688,transparent 40%);z-index:-1;pointer-events:none}
.title-content{width:min(420px,45%);padding:20px 0}.title-eyebrow{font-size:14px;letter-spacing:.15em;font-weight:700;color:#8fd8d7;margin:0 0 22px;line-height:1.6}.title-logo{font-size:clamp(48px,6.4vw,90px);font-weight:900;line-height:1.08;letter-spacing:-.045em;margin:0;text-shadow:0 5px 0 #081f27}.title-logo span{display:block;color:#ffcf70;font-size:1.18em;letter-spacing:.04em}.title-genre{font-size:16px;color:#d5e9e5;margin:24px 0 36px;line-height:1.6}
.title-menu{display:grid;gap:12px;width:min(340px,100%)}.title-menu button{width:100%;min-height:56px;border-radius:12px;font-size:18px;font-weight:800;padding:15px 20px;line-height:1.5;transition:transform .15s,background .15s;border:1px solid transparent;cursor:pointer}.title-menu button:hover{transform:translateY(-2px)}.title-menu button:focus-visible{outline:3px solid #fff;outline-offset:5px}.title-menu .title-primary{background:#ffcf70;color:#15353c;box-shadow:0 5px 0 #bc8937}.title-menu .title-secondary{background:#1f4550;color:#fffaf0;border-color:#77a1a9;box-shadow:none}.title-menu strong{display:block;font-size:20px}.title-menu small{display:block;font-size:14px;font-weight:500;margin-top:3px}.title-menu .title-help{min-height:44px;background:transparent;border:0;color:#c8dedc;font-size:16px;box-shadow:none}.title-save-note{max-width:340px;font-size:14px;color:#9fbdbf;line-height:1.7;margin:16px 0 0}.title-open #toast{z-index:40}
@media(max-width:640px){.title-screen{align-items:flex-end;justify-content:center;padding:24px max(22px,env(safe-area-inset-right)) max(22px,env(safe-area-inset-bottom))}.title-art{position:fixed;inset:0 0 42%;grid-template-columns:62% 23% 15%;transform:none}.title-art img{transform:none;border-left:3px solid #112e36;object-position:48% 30%}.title-screen:after{position:fixed;background:linear-gradient(0deg,#112e36 28%,#112e36f5 42%,#112e3644 64%,#112e3620)}.title-content{width:100%;max-width:380px;padding-top:36vh;text-align:center}.title-eyebrow{font-size:12px;letter-spacing:.12em;margin-bottom:10px}.title-logo{font-size:clamp(40px,10vw,58px);line-height:1.08}.title-logo span{display:inline;font-size:1em;letter-spacing:-.02em}.title-genre{font-size:14px;margin:12px 0 23px}.title-menu{width:100%;gap:10px}.title-menu button{min-height:52px;padding:12px 16px}.title-save-note{max-width:none;margin-top:10px}.title-menu .title-help{min-height:40px}.title-art-last{display:block}}
@media(max-height:500px) and (min-width:641px){.title-content{padding:14px 0}.title-logo{font-size:42px}.title-eyebrow{margin-bottom:10px}.title-genre{margin:12px 0 16px}.title-menu{gap:9px}.title-save-note{margin-top:10px}}
@media(prefers-reduced-motion:reduce){.title-menu button{transition:none}}

/* Dedicated landscape artwork replaces portrait crops during a live moment. */
.artist-cutin img,.artist-cutin.signature img{inset:0;width:100%;height:100%;object-fit:cover;object-position:60% 20%;transform:none;mask-image:none;z-index:0}
.artist-cutin:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#102735ed 0%,#102735b8 28%,#10273530 55%,transparent 75%);pointer-events:none;z-index:1}.artist-cutin .cutin-copy{z-index:2;width:43%;top:22%}.artist-cutin .cutin-copy strong{font-size:clamp(20px,3vw,36px);letter-spacing:0}.artist-cutin .cutin-copy b{font-size:12px;letter-spacing:.06em}.artist-cutin .cutin-copy span{font-size:14px}.artist-cutin.signature:after{background:linear-gradient(90deg,#2b2540ef,#3d3047a8 32%,transparent 75%)}
#decisionDialog.legend-story{width:min(680px,94vw);padding:22px;max-height:90dvh}.legend-story .decision-head{margin-bottom:14px}.legend-story .decision-head h2{font-size:23px;line-height:1.4}.legend-story .decision-head p{font-size:16px;line-height:1.7}.legend-event-scene{margin-bottom:18px;border-radius:12px;overflow:hidden;background:#183b3d;color:#fff9ed}.legend-event-scene[hidden]{display:none}.legend-event-scene>img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}.legend-event-dialogue{padding:14px 18px;display:grid;gap:12px}.legend-dialogue-line strong{font-size:14px;color:#ffd585}.legend-dialogue-line p{margin:4px 0 0;font-size:16px;line-height:1.65;color:#fff9ed}.legend-story .decision-choices{grid-template-columns:1fr;gap:10px}.legend-story .decision-card{min-height:0;padding:13px}.legend-story .perk-desc,.legend-story .choice-context{font-size:14px;line-height:1.6}.legend-story .perk-label{font-size:14px}.legend-story .decision-pause{font-size:14px;line-height:1.5}
.artwork-modes{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 16px}.artwork-modes button{padding:9px 13px;min-height:42px;border:1px solid #99b4b5;border-radius:9px;background:#e5efeb;color:#234e4b;font-size:14px;font-weight:700}.artwork-modes button[aria-pressed="true"]{background:#245a53;color:#fff8e9}.artwork-modes button:disabled{opacity:.55;cursor:default}#artworkImage.wide-art{width:100%;height:auto;max-height:65dvh;object-fit:contain;aspect-ratio:16/9}
@media(max-width:600px){.artist-cutin{height:clamp(180px,31%,250px)}.artist-cutin .cutin-copy{left:4%;top:20%;width:44%}.artist-cutin .cutin-copy strong{font-size:20px}.artist-cutin .cutin-copy b{font-size:12px}.artist-cutin .cutin-copy span{font-size:12px}.artist-cutin img,.artist-cutin.signature img{object-position:62% 42%}#decisionDialog.legend-story{padding:16px}.legend-event-dialogue{padding:12px 14px}.legend-story .decision-head h2{font-size:21px}}

/* v69: compact, readable help */
#helpDialog .help-steps p{font-size:15px;line-height:1.7;color:#47536c}#helpDialog .stories-journal{font-size:14px;line-height:1.7}#helpDialog .stories-journal summary{min-height:44px;padding-block:10px;cursor:pointer}#helpDialog .stories-journal p{margin:8px 0 14px}#helpDialog .stories-journal summary:focus-visible{outline:3px solid #ed8452;outline-offset:3px}

/* Local artists use complete transparent artwork, including their instruments. */
#panelArtists .local-card .artist-top{grid-template-columns:72px minmax(0,1fr)}
#panelArtists .artist-portrait.local-portrait{width:72px;min-width:72px;height:72px;aspect-ratio:1;background:#eef2ed}
#panelArtists .artist-portrait.local-portrait img{width:72px;height:72px;object-fit:contain}
.artist-spotlight.local-spotlight img{object-fit:contain}
#artworkImage.local-art{width:min(100%,360px);max-height:65dvh;aspect-ratio:1;object-fit:contain;margin:auto;background:#eef2ed}

.legend-visitor-hint{position:absolute;z-index:6;transform:translateY(-100%);border:2px solid #a67b39;border-radius:12px;background:#fffdf5f5;padding:10px 12px;box-shadow:0 4px 15px #26304930;color:#263049;pointer-events:none;overflow-wrap:anywhere}
.legend-visitor-hint[hidden]{display:none!important}.legend-visitor-hint strong{display:block;color:#805121;font-size:15px;line-height:1.4}.legend-visitor-hint p{margin:5px 0 0;font-size:14px;line-height:1.55}.legend-visitor-hint p:last-child{font-weight:700}.legend-visitor-hint:after{content:"";position:absolute;bottom:-8px;left:var(--tail-left,50%);width:12px;height:12px;background:#fffdf5;transform:rotate(45deg);border-right:2px solid #a67b39;border-bottom:2px solid #a67b39}

.audience-trend{font-size:14px;line-height:1.5;margin:8px 0;color:#38584e;background:#edf5e8;border-left:3px solid #6f9f76;padding:8px 10px}.slot-name .slot-handover{display:block;font-size:13px;line-height:1.45;color:#476650;margin-top:3px}.artist-handover{font-size:14px;line-height:1.5;margin:4px 0 8px;color:#476650}
/* Reports show comparable graphs first; each card opens its own explanation. */
.report-dashboard{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.chart-card{min-width:0;border:1px solid #b5ccd0;border-radius:14px;background:#fff;overflow:hidden;color:#263d52}.chart-card>summary{display:block;cursor:pointer;list-style:none;padding:15px}.chart-card>summary::-webkit-details-marker{display:none}.chart-card>summary:focus-visible,.report-fold>summary:focus-visible{outline:3px solid #ed8452;outline-offset:-3px}.chart-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:16px;font-weight:700;margin-bottom:15px}.chart-more{font-size:14px;color:#376f7b;border:1px solid #b6cdd2;border-radius:20px;padding:3px 9px;font-weight:400}.chart-card[open] .chart-more{background:#e0eef1}.chart-visual{display:block}.chart-headline{display:block;font-size:27px;font-weight:800;line-height:1.5;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.chart-headline small{font-size:14px;margin-left:5px}.chart-bars{display:grid;gap:10px}.chart-bar-row{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(50px,1.5fr) auto;gap:8px;align-items:center;font-size:14px}.chart-bar-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-bar-row>b{font-size:14px;font-variant-numeric:tabular-nums;font-weight:600}.chart-bar-track{display:block;height:10px;background:#edf1f5;border-radius:6px;overflow:hidden}.chart-bar-track>span{display:block;height:100%;border-radius:6px}.chart-range,.chart-signed-track{position:relative;display:block;background:linear-gradient(90deg,#f6e8e4 50%,#e4f1ec 50%);height:18px;border-radius:5px;margin:12px 0 4px}.chart-signed-track{height:12px;margin:0}.chart-range-band,.chart-signed-track>span:not(.chart-zero){position:absolute;display:block;height:100%;border-radius:4px;max-width:100%}.chart-zero{position:absolute;z-index:1;left:50%;top:-4px;bottom:-4px;width:1px;background:#617681}.chart-axis{display:flex;justify-content:space-between;font-size:13px;color:#657587}.chart-kpis{display:flex;justify-content:space-between;gap:16px;margin-bottom:16px}.chart-kpis>span{display:grid;gap:3px}.chart-kpis small{font-size:14px;color:#647588}.chart-kpis b{font-size:28px;line-height:1.2;font-variant-numeric:tabular-nums}.chart-kpis b small{font-weight:400;margin-left:3px}.chart-composition{display:flex;gap:18px;align-items:center}.chart-donut{position:relative;display:grid;place-items:center;flex:none;width:112px;height:112px;border-radius:50%}.chart-donut>span{display:grid;place-items:center;width:80px;height:80px;border-radius:50%;background:#fff;font-size:23px;font-weight:700}.chart-donut small{font-size:13px;font-weight:400}.chart-legend{display:grid;gap:9px;flex:1;min-width:0;font-size:14px}.chart-legend>span{display:grid;grid-template-columns:8px minmax(0,1fr) auto;gap:7px;align-items:center}.chart-legend i{width:8px;height:8px;border-radius:50%}.chart-legend b{font-size:14px;font-variant-numeric:tabular-nums}.chart-subtitle{display:block;font-size:14px;color:#647588;margin:15px 0 10px}.chart-show-groups{display:grid;gap:18px}.chart-stage-label{display:block;font-size:14px;font-weight:700;margin-bottom:10px}.chart-services{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;text-align:center}.chart-services>span{display:grid;gap:4px;border-radius:10px;padding:9px 3px;font-size:14px}.chart-services b{font-size:22px}.chart-services small{font-size:12px}.service-missing{background:#f9e9e3;color:#a53e2c}.service-ready{background:#e7f3ed;color:#24654b}.report-detail{padding:14px 16px;border-top:1px solid #d9e4e9;background:#f7fafb;font-size:14px;line-height:1.7}.report-detail p{font-size:14px;line-height:1.7}.report-fold{margin:12px 0;border:1px solid #c5d5db;border-radius:10px;background:#fff;overflow:hidden}.report-fold>summary{cursor:pointer;min-height:44px;padding:12px;font-size:14px;font-weight:700}.report-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px}.report-controls .ticket-control,.report-controls .production-panel{margin:0;padding:14px;border:1px solid #bdcfd4;border-radius:12px}.report-controls .production-panel{grid-column:1/-1}.report-controls .weather-forecast{margin:0}.report-controls .report-fold{margin:8px 0 0}.chart-empty{display:block;color:#6b7e88;font-size:14px;line-height:1.6}.guest-voices{grid-column:1/-1;padding:15px;border:1px solid #b5ccd0;border-radius:14px;background:#f0f6f5}.guest-voices h3{font-size:16px;margin:0 0 12px}.guest-voice{display:flex;align-items:flex-start;gap:12px;margin:10px 0;padding:12px;background:#fff;border-radius:12px;border:1px solid #d3e1e0}.guest-voice>span{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:#e1eeef;color:#356872;font-size:18px}.guest-voice p{font-size:16px;line-height:1.6;margin:0 0 5px}.guest-voice small{font-size:13px;color:#617986}.report-achievement{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:16px 0;padding:12px 16px;background:#fff4d9;border-radius:12px;font-size:14px}.report-achievement>b{font-size:16px}.report-unlocks{display:flex;gap:12px;flex-wrap:wrap;width:100%}.report-unlocks>span{display:flex;gap:8px;align-items:center}.report-unlocks img{object-fit:contain}.report-unlocks b{font-size:14px}#resultDialog{width:min(880px,96vw);max-width:880px;max-height:90dvh;overflow:auto}#resultDialog .result-head{margin-bottom:12px}#resultDialog .result-head h2{font-size:23px}#panelReport>.audience-section{margin:12px 0}#panelReport .operation-summary{padding:0;background:transparent;border:0}#panelReport .history{display:block}
@media(max-width:600px){.report-dashboard{grid-template-columns:1fr;gap:10px}.chart-card>summary{padding:14px}.chart-composition{gap:14px}.chart-headline{font-size:26px}.report-controls{grid-template-columns:1fr}.report-controls .production-panel{grid-column:auto}.chart-bar-row{grid-template-columns:minmax(0,1.1fr) minmax(48px,1.4fr) auto}#resultDialog{width:calc(100% - 16px);padding:16px;max-height:92dvh}#resultDialog .result-head h2{font-size:20px}.chart-legend{font-size:14px}}

#panelReport .report-dashboard{grid-template-columns:1fr}#panelReport .report-controls{grid-template-columns:1fr}.chart-composition{flex-wrap:wrap}.chart-legend{min-width:155px}.chart-card .chart-bar-row{grid-template-columns:minmax(0,1fr) minmax(40px,1.2fr) auto}@media(max-width:360px){.chart-donut{width:92px;height:92px}.chart-donut>span{width:66px;height:66px}.chart-composition{gap:10px}.chart-legend{min-width:145px}.chart-card>summary{padding:12px}}
/* v80: decisions have small controls; records unfold on demand. */
.plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.plan-grid>article{background:#18394d;color:#eef9ff;padding:12px;border-radius:10px;display:flex;flex-direction:column;gap:5px;min-width:0}.plan-grid strong{font-size:1.1rem}.plan-grid small{color:#cfdfeb;line-height:1.6}.price-impact{padding:10px 0}.price-impact>small{display:block;font-size:.875rem;line-height:1.6}.forecast-card strong{font-size:1rem}.resident-mini{display:flex;align-items:center;gap:10px;margin:10px 0}.resident-mini img{object-fit:cover;border-radius:10px}.resident-mini small,.regular-card small{display:block;line-height:1.5;font-size:.875rem}.regular-card{display:grid;grid-template-columns:1fr 100px;gap:6px;padding:10px 0;border-bottom:1px solid #a7b9c7}.regular-card small{grid-column:1/-1}.plan-empty{display:block;color:#586c7b;margin:8px 0}.mode-select{display:flex;flex-direction:column;gap:8px;text-align:left;padding:12px;font-size:.875rem}.mode-select select,#sponsorChoice,#rainPlan{width:100%;max-width:100%;font:inherit;padding:10px;margin:8px 0;border-radius:8px;border:1px solid #809bae;background:#fff;color:#203b4c}.mode-status{color:#466276;font-weight:bold}.live-choices{position:absolute;z-index:4;bottom:155px;right:12px;max-width:320px;background:#142e43ed;border:1px solid #a2c0d4;border-radius:10px;padding:10px;display:grid;grid-template-columns:1fr auto;gap:6px;color:#fff;pointer-events:auto;font-size:.875rem}.live-choices[hidden]{display:none}.live-choices label{display:flex;align-items:center;gap:6px;grid-column:1/-1}.live-choices select{min-width:0;flex:1;color:#f0f8ff;background:#244d65;border:1px solid #93b4c6;border-radius:6px;padding:7px;font:inherit}.live-choices small{grid-column:1/-1;font-size:.75rem;color:#c9e3f1}.live-choices progress,.live-choices details{grid-column:1/-1;width:100%}.live-choices details>small{display:block;margin-top:6px}.live-choices summary{cursor:pointer}.next-result{padding:16px;margin:12px 0;background:#16384c;color:#f5faff;border-radius:12px}.next-result button{margin:6px}.next-result b{font-size:1.2rem}#saveTransferDialog,#yearbookDialog{max-width:680px;width:calc(100% - 28px);max-height:90dvh;overflow:auto}#saveTransferDialog textarea{width:100%;box-sizing:border-box;font:14px monospace;resize:vertical;min-height:100px;border:1px solid #7b93a7;border-radius:8px;padding:10px}#saveTransferDialog label{display:block;margin:10px 0}#saveTransferStatus{min-height:2em;font-size:.875rem}#saveTransferDialog input{max-width:100%}#saveTransferDialog button{min-height:42px}#legendEventScene img[src*="assets/artists/"]{object-fit:contain;max-height:230px;background:#172e42}
@media(max-width:600px){.plan-grid{grid-template-columns:1fr}.plan-grid>article{display:grid;grid-template-columns:1fr 1fr}.plan-grid small{grid-column:1/-1}.live-choices{bottom:157px;right:8px;left:8px;max-width:none;padding:7px;gap:3px}.live-choices label{font-size:.75rem}.live-choices select{padding:6px;font-size:.875rem}.live-choices details{font-size:.75rem}.live-choices>small{display:none}.mode-select{padding:8px}.resident-mini{font-size:.875rem}}
@media(max-height:550px){.live-choices{bottom:90px;left:auto;right:8px;max-width:280px}.live-choices>small{display:none}.live-choices details{display:none}}
.starry-festival .venue-top,.starry-festival .festival-rank{border-color:#e4b96b;background:#213a60;color:#fff0be}.starry-festival .venue-footer{box-shadow:0 0 0 2px #e8c478}.starry-festival .brand .logo{background:#273963;color:#ffe09b}

/* v81: stories are a collection to explore, with conditions behind each artist. */
.title-version{color:#ffdb82;font-weight:800;letter-spacing:.12em;margin:.25rem 0 .5rem;font-size:.95rem}.mode-description{margin:.4rem 0;font-size:.95rem;line-height:1.6;color:#edf0f7}.mode-save-hint{font-size:.8rem;line-height:1.5;display:block;color:#c1ccdc;margin-bottom:.75rem}.story-target-hint{font-size:.875rem;line-height:1.5}.story-catalogue{margin:1rem 0;padding:12px;border:1px solid #d8d8ce;border-radius:8px;background:#f4f2ec;color:#222321}.story-collection-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.5rem;color:#ffdb82}.story-catalogue progress{width:100%;accent-color:#ffdb82;height:14px}.story-guide{font-size:.875rem;color:#51544b}.story-artist{margin:.6rem 0;border:1px solid #c4c6bb;border-radius:6px;background:#fffefa;color:#222321}.story-artist>summary{display:flex;align-items:center;gap:.75rem;cursor:pointer;padding:.75rem;font-size:1rem;list-style:none}.story-artist>summary img{width:44px;height:58px;object-fit:cover;border-radius:7px}.story-artist>summary small{display:block;color:#51544b;font-size:.8rem;margin-top:.2rem}.story-dots{margin-left:auto;display:flex;flex-wrap:wrap;gap:4px;max-width:70px}.story-dots i{width:8px;height:8px;border:1px solid #777b6d;border-radius:50%}.story-dots i.found{background:#66506e;border-color:#66506e}.story-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:.6rem;padding:.75rem}.story-card{display:flex;flex-direction:column;gap:.5rem;padding:.8rem;border:1px solid #c4c6bb;border-radius:6px;background:#fffefa;color:#222321}.story-card>b{font-size:1rem}.story-card>small{font-size:.8rem;color:#51544b}.story-card ul{font-size:.875rem;line-height:1.6;padding:0;list-style:none;margin:0}.story-card li.met{color:#365d3a}.story-card li.unmet{color:#51544b}.story-card.targeted{border:2px solid #ffdb82}.story-card.discovered{background:#edf1e7;color:#222321}.story-card button{font-size:.875rem;min-height:40px}.story-card button:last-child{margin-top:auto}.story-read-image{width:100%;max-height:260px;object-fit:contain;border-radius:9px;background:#182339}.story-recorded-choice{border-left:3px solid #ffdb82;padding:1rem;margin-top:1rem}.story-recorded-choice small,.story-recorded-choice b{display:block}.story-recorded-choice small{font-size:.8rem;color:#c0cee0}#storyReadDialog{background:#142237;color:#eef5ff;width:min(650px,calc(100vw - 24px));max-height:88dvh;overflow:auto}#storyReadBody{font-size:1rem;line-height:1.8}#storyReadBody .legend-dialogue-line{display:block}#closeStoryRead{margin-top:1rem}#openStoryBook{font-size:.875rem;min-height:40px}@media(max-width:480px){.story-grid{grid-template-columns:1fr}.story-artist>summary{gap:.5rem}.story-dots{max-width:40px}.story-collection-head{font-size:.9rem}}

.story-card .text-btn{color:#51405b}.title-goal{font-size:.875rem;line-height:1.6;color:#c4e2df;margin:-1rem 0 1rem}.story-artist>summary:focus-visible,.story-card button:focus-visible{outline:3px solid #ffdb82;outline-offset:3px}

/* v82: forecast bands and a visitor's current needs. */
.capacity-comparison{margin:16px 0}.capacity-comparison h3{font-size:1rem;margin-bottom:10px}.capacity-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:8px}.capacity-option{display:flex;flex-direction:column;gap:5px;text-align:left;padding:12px;background:#edf4fa;color:#243e51;border:2px solid #b7cada;border-radius:10px;min-height:110px;font-size:14px}.capacity-option.selected{border-color:#297d81;background:#ddf2ef}.capacity-option strong{font-size:14px}.capacity-option .negative{color:#a64131}.capacity-option .positive{color:#22675d}.capacity-option small,.capacity-comparison>small{font-size:12px}.demand-band{height:22px;background:#dde6f0;position:relative;border-radius:5px;overflow:hidden}.demand-band>span{position:absolute;height:100%;background:#728fc5}.demand-band>i{position:absolute;height:100%;width:3px;background:#d78520}.capacity-comparison p{font-size:14px;margin:6px 0 12px}.visitor-range{font-size:clamp(16px,3.2vw,26px)!important;white-space:nowrap}
.guest-inspector{position:absolute;z-index:24;left:12px;top:78px;width:min(310px,calc(100% - 24px));max-height:calc(100% - 155px);overflow:auto;background:#132c40f5;color:#f6f8ff;border:1px solid #739ebc;border-radius:14px;padding:14px;box-shadow:0 6px 24px #0005;touch-action:pan-y}.guest-inspector[hidden]{display:none}.guest-inspector header{display:flex;align-items:center;justify-content:space-between;gap:8px}.guest-inspector h3{font-size:16px;margin:0}.guest-inspector header button{font-size:22px;min-width:44px;min-height:44px;background:#28485f;color:#fff;border:0;border-radius:8px}.guest-inspector p{font-size:14px;margin:8px 0}.guest-inspector .guest-thought{color:#ffe18c}.guest-inspector .chart-bar-label{color:#e8effb}.guest-inspector .chart-bar-row b{color:#fff}.guest-inspector .chart-bar-track{background:#3c5267}.guest-inspector small{display:block;color:#c6d7e4;font-size:12px;margin-top:10px}.guest-inspector summary{font-size:14px;cursor:pointer;margin-top:10px}.guest-inspector .chart-bars{display:block;margin-top:8px}.guest-inspector .chart-bar-row{grid-template-columns:76px 1fr 45px}
@media(max-width:600px){.guest-inspector{top:64px;width:min(280px,calc(100% - 24px));max-height:calc(100% - 140px)}.capacity-options{grid-template-columns:repeat(2,minmax(0,1fr))}}

.opening-capacity{background:#e7f1f5;border:1px solid #b8cdd9;border-radius:12px;padding:14px;margin:12px 0}.opening-capacity label{display:flex;justify-content:space-between;gap:12px;font-size:16px}.opening-capacity-controls{display:flex;align-items:center;gap:12px;margin-top:8px}.opening-capacity-controls input{flex:1;min-width:0;min-height:44px}.opening-capacity-controls button{min-width:44px;min-height:44px;padding:4px;font-size:22px}

.legend-art-frame{position:relative;background:#17394c}.legend-art-frame>img:not(.story-local-portrait){display:block;width:100%;height:auto;object-fit:contain}.legend-art-frame>.story-local-portrait{position:absolute;right:12px;bottom:12px;width:84px;height:112px;object-fit:cover;border:3px solid #ffe0a0;border-radius:9px;box-shadow:0 3px 12px #0005}.story-local-portrait[hidden]{display:none}.story-completion,.story-completion-goal{padding:14px;border:1px solid #e7bb5c;border-radius:12px;background:#fff4d2;color:#735215}.story-completion{background:linear-gradient(120deg,#ffe4a0,#fff5d7);font-weight:600}
/* v89: decisions, first editions and story rumors */
.beginner-guide,.story-clue,.story-rumor{padding:14px;border:1px solid #d7bb73;border-radius:12px;background:#fff5d9;color:#29354b;margin:10px 0;font-size:14px}.beginner-guide p,.story-clue p,.story-rumor p{margin:8px 0;line-height:1.65}.decision-highlights{margin:12px 0 18px}.decision-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.decision-grid article{padding:14px;border:1px solid #8fbfc4;border-radius:12px;background:#edf8f7}.decision-grid small,.decision-grid strong{display:block}.decision-grid small{font-size:14px}.decision-grid strong{font-size:20px;margin:8px 0;color:#194f55}.decision-grid summary{cursor:pointer;font-size:14px}.decision-grid p{font-size:14px;line-height:1.65}.beginner-guide[hidden],.story-clue[hidden]{display:none}@media(max-width:600px){.decision-grid{grid-template-columns:1fr}.decision-grid article{padding:12px}}

/* v94: a single scroll surface keeps long clues and expanded editor controls reachable. */
.lineup-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-gutter:stable;padding-right:3px}
#panelArtists .lineup-candidates{flex:none;overflow:visible;padding-right:0;scrollbar-gutter:auto}
#panelArtists .lineup-help{margin-top:10px}
#panelArtists .lineup-help #openStoryBook{width:100%;margin:10px 0}
#panelArtists .lineup-help .story-clue{margin:10px 0}
.artist-empty{padding:16px;font-size:16px;line-height:1.6;color:#25413b}
.legend-join{position:fixed;width:min(420px,calc(100vw - 28px));max-height:88dvh;overflow-y:auto;text-align:center;padding:22px;border:2px solid #f6ca65;border-radius:20px;background:radial-gradient(ellipse at 50% 30%,#365473,#15283d 70%);color:#fff5da;box-shadow:0 0 45px #f6ca6540}
.legend-join::backdrop{background:#08172bc9}
.legend-join-kicker{font-size:14px;letter-spacing:.2em;color:#ffdc86;margin:0}
.legend-join h2{font-size:28px;margin:6px 0 12px;color:#ffdc86}
.legend-join h3{font-size:24px;margin:10px 0;overflow-wrap:anywhere}
.legend-join>img{display:block;width:100%;height:min(34dvh,290px);object-fit:contain;margin:auto;filter:drop-shadow(0 0 16px #ffdc8666);animation:legend-join-enter .65s ease-out}
.legend-join p{font-size:16px;line-height:1.6}
.legend-join #legendJoinCount{font-size:14px;color:#d2e2ef}
.legend-join .launch-btn{width:100%;min-height:48px}
.legend-join-light{font-size:42px;line-height:1;color:#ffe9a9;animation:legend-join-spark 1.8s ease-in-out 2;pointer-events:none}
@keyframes legend-join-enter{from{opacity:0;transform:translateY(18px) scale(.94)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes legend-join-spark{50%{opacity:.5;transform:scale(1.2)}}
@media(prefers-reduced-motion:reduce){.legend-join>img,.legend-join-light{animation:none}}

.audio-volume-setting{grid-column:1/-1;display:grid;gap:6px;padding:8px 0;color:#edf7ed}.audio-volume-setting label{display:flex;justify-content:space-between;align-items:center;font-size:16px}.audio-volume-setting output{font-size:14px;font-variant-numeric:tabular-nums}.audio-volume-setting input{width:100%;min-height:44px;margin:0;accent-color:#f5ce76;cursor:pointer}

.legend-rotation-note{font-size:14px;line-height:1.6;margin:4px 0 10px;color:#38584e}.legend-rotation-status{font-size:14px;line-height:1.6;margin:4px 0;padding:6px 8px;border-left:3px solid #c69744;background:#fff5db;color:#614b24}

/* v99: preparation cards, a separate choice dialog, and compact readonly live summaries. */
.performance-plan-summary{display:grid;gap:6px;margin:10px 0}.performance-plan-summary[hidden]{display:none}.performance-plan-summary>button{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;border:1px solid #bccfc4;border-radius:10px;background:#fffdf5;color:var(--ink);padding:10px 12px;min-height:60px}.performance-plan-summary>button[hidden]{display:none}.performance-plan-summary span{display:grid;gap:3px;min-width:0}.performance-plan-summary small{font-size:12px;color:#596c60}.performance-plan-summary strong{font-size:15px}.performance-plan-summary b{white-space:nowrap;font-size:12px;color:#305d51}.performance-plan-dialog{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:2px solid #b8cdc2;border-radius:18px;background:#fffdf5;color:var(--ink);overflow:auto}.performance-plan-dialog::backdrop{background:#152a2aa8}.performance-plan-dialog .artist-dialog-heading{position:sticky;top:0;z-index:1;background:#fffdf5}.performance-plan-dialog h2{font-size:20px;margin:0}.performance-plan-dialog .artist-dialog-footer{position:sticky;bottom:0;background:#fffdf5}.performance-plan-dialog .artist-dialog-footer>button{width:100%;min-height:48px}.performance-plan-body{padding:0 18px 16px}.performance-plan-body>p{font-size:13px;line-height:1.6}.performance-plan-choices{display:grid;gap:10px}.performance-choice{display:grid;gap:8px;text-align:left;padding:16px;border:2px solid #d4ddd2;border-radius:12px;background:#fff;color:var(--ink);min-height:110px}.performance-choice.selected{border-color:#2c6756;background:#eaf3ed;box-shadow:inset 5px 0 #2c6756}.performance-choice strong{font-size:17px}.performance-choice span{font-size:13px;font-weight:700;color:#305d51}.performance-choice small{font-size:13px;line-height:1.6;color:#596c60}.performance-plan-note{color:#657365}.opening-performance-plan{padding:10px 14px;border:1px solid #bccfc4;border-radius:10px;margin-top:14px}.opening-performance-plan p{font-size:13px;line-height:1.7}.live-choices.live-plan-summary{display:block;max-width:300px;padding:8px 12px;pointer-events:none}.live-choices.live-plan-summary[hidden]{display:none}.live-plan-summary p{margin:0;line-height:1.5;font-size:12px}.live-plan-summary p+p{color:#c9e3f1;font-size:11px;margin-top:2px}@media(max-width:600px){.live-choices.live-plan-summary{left:auto;right:8px;width:auto;max-width:calc(100% - 16px)}.performance-plan-body{padding:0 12px 12px}.performance-choice{padding:12px}.performance-plan-dialog .artist-dialog-heading{gap:8px}}

#confirmPerformancePlan{border:0;border-radius:9px;background:#285e50;color:white;font-weight:700;padding:12px}

/* v102: keep long performer/result reports usable on narrow and short screens. */
.booking-impact{padding:12px;margin:0 0 14px;border:1px solid #b9cfc4;border-radius:10px;background:#eef5f0}.booking-impact>b{font-size:15px}.booking-impact small{font-size:13px;line-height:1.6;color:#526b63}
@media(max-width:600px){dialog{max-width:calc(100vw - 16px);overscroll-behavior:contain}dialog select,dialog input:not([type=range]):not([type=checkbox]),.panel-content select{font-size:16px}#nextFestival{position:sticky;bottom:0;z-index:3;min-height:48px;box-shadow:0 -6px 12px #fffdf8;font-size:16px}.artist-dialog-footer{padding-bottom:max(12px,env(safe-area-inset-bottom))}.artist-detail-dialog{max-height:calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}}
@media(max-height:500px){.artist-detail-dialog{height:calc(100dvh - 16px)}.artist-dialog-heading{padding:10px 12px}.artist-dialog-heading p{margin:0;font-size:12px}.artist-dialog-heading h2{font-size:18px}.artist-dialog-footer{padding:8px 12px}.artist-dialog-controls button{min-height:44px;padding:8px}}

/* v103: a festival ledger, with stamps earned by real performances. */
.journey-prep{padding:14px;border:1px solid #b9cfc4;border-left:5px solid #346756;border-radius:12px;background:#f3f8f1;margin:0 0 14px;display:grid;gap:12px;color:#244338}.journey-prep[hidden]{display:none}.journey-prep small{display:block;font-size:13px;color:#536f61}.journey-prep strong{display:block;font-size:16px;line-height:1.5;margin-top:4px}.journey-prep p{font-size:14px;line-height:1.6;margin:5px 0 0}.journey-prep-actions{display:flex;gap:8px;flex-wrap:wrap}.journey-prep-actions button{flex:1;min-height:44px;font-size:14px}.journey-prep .primary-btn,.concert-actions .primary-btn{background:#285e50;color:#fff;border:0;border-radius:9px;padding:12px;font-weight:700}
.journey-dialog{width:min(650px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;overflow:auto;border:2px solid #94b1a2;border-radius:18px;background:#fffdf5;color:#253f35}.journey-dialog .artist-dialog-heading{position:sticky;top:0;z-index:2;background:#fffdf5;border-bottom:1px solid #cedbcf}.journey-dialog .artist-dialog-heading h2{font-size:22px;margin:0}.journey-dialog .artist-dialog-heading p{font-size:14px}.journey-dialog .artist-dialog-footer{position:sticky;bottom:0;background:#fffdf5;border-top:1px solid #cedbcf}.journey-dialog .artist-dialog-footer button{width:100%;min-height:48px}.journey-dialog h3{font-size:18px;line-height:1.5}.journey-dialog p,.journey-dialog li{font-size:14px;line-height:1.7}.journey-dialog .artist-dialog-body{padding:12px 18px 20px}.journey-goal{display:flex;gap:12px;align-items:center;padding:14px 0;border-bottom:1px dashed #a8bdac}.journey-goal>div{flex:1;min-width:0}.journey-goal strong{display:block;font-size:16px}.journey-goal small{display:block;font-size:13px;color:#597466}.journey-goal p{margin:5px 0}.journey-goal progress{accent-color:#36795c;width:min(180px,65%);height:10px}.journey-goal span{font-size:14px;margin-left:8px}.journey-goal button{min-height:44px;max-width:140px;font-size:14px}.journey-goal.achieved{border-left:4px solid #b19045;padding-left:12px}.journey-fold{margin:12px 0;border:1px solid #cedbcf;border-radius:10px;padding:12px}.journey-fold>summary{cursor:pointer;min-height:24px;font-size:14px;font-weight:700}.journey-concerts{margin-top:24px;border-top:2px solid #365b4d;padding-top:10px}
.concert-focus,.concert-result{padding:16px;border:1px solid #9db3c4;border-radius:12px;background:#edf4fa;color:#273f57}.concert-heading{display:flex;gap:14px;align-items:center}.concert-heading img{object-fit:cover;object-position:top;border-radius:9px;flex:none;width:72px;height:96px}.concert-heading>div{min-width:0}.concert-heading small{font-size:13px;display:block;color:#526b81}.concert-heading h3{font-size:19px;line-height:1.5;margin:4px 0}.concert-heading p{font-size:14px;line-height:1.6;margin:0}.concert-requirements,.concert-result ul{padding-left:22px;margin:14px 0;line-height:1.7;font-size:14px}.concert-actions{display:flex;gap:8px;flex-wrap:wrap}.concert-actions button{min-height:44px;font-size:14px}.concert-cost{color:#526b81}.concert-certificate{font-weight:700;color:#7c5b24;background:#fff2c8;border-radius:8px;padding:10px}.concert-catalogue{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}.concert-select{display:flex;align-items:center;gap:10px;min-width:0;min-height:72px;border:1px solid #c8d5ce;border-radius:10px;background:#fff;text-align:left;padding:8px;color:#294438}.concert-select.selected{border:2px solid #346756;background:#e7f2e9}.concert-select img{object-fit:cover;object-position:top;border-radius:5px;width:42px;height:56px;flex:none}.concert-select b{font-size:14px;line-height:1.5;overflow-wrap:anywhere}.concert-select small{font-size:13px;display:block;color:#597466;margin-top:3px}.artist-concert{border:1px solid #9db3c4;border-radius:10px;background:#edf4fa;padding:12px;margin:12px 0;display:grid;gap:7px}.artist-concert small{font-size:13px;color:#526b81}.artist-concert b{font-size:16px}.artist-concert button{font-size:14px;min-height:44px}
.festival-debrief{display:grid;gap:12px;text-align:left;margin:16px 0}.debrief-win{padding:16px;border-radius:12px;background:#e7f2e9;border-left:5px solid #36795c;color:#254937}.debrief-win small,.debrief-next small{display:block;font-size:14px;font-weight:700}.debrief-win h3,.debrief-next h3{font-size:19px;line-height:1.5;margin:5px 0}.debrief-win strong{font-size:16px;line-height:1.6}.debrief-next{padding:16px;border:1px solid #bdcecf;border-radius:12px;background:#fff}.debrief-next b{display:block;font-size:14px;color:#536b78}.debrief-next p{font-size:16px;line-height:1.7;margin:8px 0 0}.debrief-delta{display:flex;flex-wrap:wrap;gap:8px}.debrief-delta span{font-size:14px;background:#edf2f5;padding:6px 10px;border-radius:20px;color:#405767}.journey-earned{margin:16px 0;text-align:left}.journey-earned h3{font-size:19px}.milestone-stamps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.milestone-stamps article{position:relative;border:2px solid #b19045;border-radius:12px;padding:12px 10px 12px 38px;background:#fff6d8;animation:journey-arrival .45s ease both}.milestone-stamps article>span{position:absolute;left:10px;top:12px;font-size:22px;color:#8f6826}.milestone-stamps b{font-size:15px;line-height:1.6;display:block}.milestone-stamps small{display:block;font-size:13px;color:#745b34}.concert-result{text-align:left;margin:16px 0}.concert-result.achieved{border:2px solid #b19045;background:#fff6d8}.concert-result li.passed{color:#285e50}.concert-result li.pending{color:#874725}.concert-memories{display:grid;gap:10px}.concert-memories article{display:flex;gap:12px;align-items:center;padding:12px;border:1px solid #b19045;background:#fff6d8;border-radius:10px}.concert-memories img{object-fit:cover;object-position:top;border-radius:6px;flex:none}.concert-memories b{font-size:16px;line-height:1.5}.concert-memories small{display:block;font-size:14px;line-height:1.6}.journey-yearbook{padding:12px;border:2px solid #b19045;border-radius:12px;margin-bottom:16px}.journey-yearbook>button{margin-bottom:14px}.journey-live{font-size:13px;color:#ffdc86;line-height:1.6}.result-next-action{min-height:48px;font-size:16px}button[data-journey-concert]:disabled{opacity:.55;cursor:not-allowed}
@keyframes journey-arrival{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.journey-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.journey-dialog .artist-dialog-body{padding:10px 12px 18px}.journey-dialog .artist-dialog-heading h2{font-size:19px}.journey-goal{align-items:flex-start;flex-direction:column;gap:8px}.journey-goal button{max-width:none;width:100%}.concert-catalogue{grid-template-columns:1fr}.concert-heading img{width:60px;height:80px}.concert-heading h3{font-size:17px}.concert-actions button{flex:1 1 100%}.milestone-stamps{grid-template-columns:1fr}.journey-prep{padding:12px}.debrief-next p{font-size:16px}.journey-dialog .artist-dialog-footer{padding-bottom:max(12px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.milestone-stamps article{animation:none}}

/* v104: paid booking upside is visible before and after the show. */
.artist-commerce,.commerce-result{padding:14px;margin:14px 0;border:1px solid #a8bdcc;border-radius:12px;background:#edf4fa;color:#273f57;text-align:left}.artist-commerce h3,.commerce-result h3{font-size:18px;line-height:1.5;margin:0 0 8px}.artist-commerce p,.commerce-result p{font-size:16px;line-height:1.7}.artist-commerce small{font-size:14px;line-height:1.7;display:block}.commerce-result details,.opening-commerce{padding:12px 0;border-top:1px solid #bdcecf}.commerce-result summary,.opening-commerce>summary{font-size:16px;line-height:1.6;min-height:44px;cursor:pointer}.opening-commerce .artist-commerce{margin:10px 0}.ordinary-event-scene .legend-event-dialogue{display:none}.ordinary-event-scene,.ordinary-event-scene .legend-art-frame{background:#e9ede3}.ordinary-event-scene #legendEventImage{height:auto;width:100%;max-width:360px;margin:0 auto;aspect-ratio:3/2;object-fit:contain;max-height:240px}.ordinary-event-scene #legendEventPortrait{display:none}

/* v166: compact historical crowd map, no new gameplay HUD band. */
.congestion-review{margin:16px 0;padding:16px;background:#edf3e9;border:1px solid #bccbc0;border-radius:18px;color:#203d39}
.congestion-review h3{margin:0 0 8px;font-size:1.05rem}.congestion-review p{font-size:.9rem;line-height:1.6;margin:6px 0}
.congestion-review-map{max-width:420px;margin:12px auto}.congestion-review-map svg{display:block;width:100%;max-height:240px}.congestion-review-map small{display:block;text-align:center;margin-top:6px}
.congestion-review-location{padding:12px 0;border-top:1px solid #c6d5c8}.congestion-review-location h4{margin:0 0 4px}.congestion-review-location button{min-height:44px;width:100%;margin-top:6px}
.congestion-review-comparison{padding:10px;background:#fff9eb;border-radius:10px}.congestion-review>small{display:block;line-height:1.5;color:#60766b}

.bond-continuation{margin:14px 0;padding:16px;border:1px solid #d7bf85;background:#fffaec;border-radius:14px}.bond-continuation h4{margin:6px 0}.bond-letter{margin:8px 0;border-top:1px solid #dfd4b9;padding-top:8px}.bond-letter summary{min-height:44px;display:list-item;padding:10px 0;cursor:pointer}

/* v175: compact title links, readable release history and an optional FPS counter. */
.title-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.title-menu .title-links .title-help{padding:8px 10px;border:1px solid #9cb9b855;border-radius:9px;background:#112e3633;color:#e7f5f1}
.title-menu .title-links .title-help:hover{background:#ffffff16;border-color:#a5c9c4}
.updates-dialog{width:min(640px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;overflow:auto;border:1px solid #e4c88f;border-radius:18px;background:#fffdf5;color:#203b3c;box-shadow:0 24px 65px #09212bbc}
.updates-dialog::backdrop{background:#071820bc;backdrop-filter:blur(5px)}
.updates-dialog .interface-dialog-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;background:#17333b;border-bottom:2px solid #d2a959;color:#fff7e8}
.updates-dialog .interface-dialog-head h2{margin:2px 0 0;color:#fff7e8;font-size:24px}
.updates-kicker{font-size:11px;letter-spacing:.2em;color:#f2d397;font-weight:800}
.updates-dialog .interface-dialog-head .icon-btn{flex:none;min-width:44px;min-height:44px;background:#ffffff24;color:white;border:1px solid #ffffff55}
.updates-dialog .interface-dialog-body{padding:16px 20px 24px;color:#203b3c}
.updates-intro{margin:0 0 14px;font-size:14px;color:#536966}
.updates-list{list-style:none;display:grid;gap:0;margin:0;padding:0}
.updates-list li{position:relative;padding:0 0 0 24px;border-left:2px solid #c4d7cc}
.updates-list li::before{content:"";position:absolute;top:19px;left:-6px;width:10px;height:10px;border-radius:50%;background:#d1a650;box-shadow:0 0 0 4px #fffdf5}
.updates-list article{margin:0 0 12px;padding:14px 16px;border:1px solid #d8e4db;border-radius:12px;background:#fff;box-shadow:0 3px 10px #17333b0b}
.updates-list li:first-child article{border-color:#d4ae5f;background:#fffbeb;box-shadow:0 4px 16px #ac81431c}
.updates-meta{display:flex;align-items:center;gap:8px;font-size:12px;color:#697873;font-variant-numeric:tabular-nums}
.updates-meta strong{font-size:13px;color:#24594f}.updates-new{padding:2px 6px;border-radius:4px;background:#a75a43;color:white;font-size:10px;font-weight:800;letter-spacing:.08em}
.updates-list h3{margin:5px 0 4px;font-size:16px;line-height:1.45}.updates-list p{margin:0;font-size:14px;line-height:1.7;color:#445c58}
.fps-display{display:inline-flex;align-items:center;justify-content:center;min-width:66px;padding:5px 7px;border:1px solid #9dc4a166;border-radius:6px;background:#18372b;color:#d7f1d8;font-size:12px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.settings-popover .fps-setting{grid-column:1/-1;display:flex;align-items:center;gap:8px;min-height:44px;color:#edf7ed;font-size:14px;cursor:pointer}
.settings-popover .fps-setting input{width:18px;height:18px;accent-color:#e8bf6e}
@media(max-width:520px){.fps-display{min-width:57px;padding:4px;font-size:11px}.updates-dialog .interface-dialog-head{padding:12px 14px}.updates-dialog .interface-dialog-body{padding:14px}.updates-list article{padding:12px}}
@media(max-width:360px){.fps-display{min-width:52px;font-size:10px}}
