/* V0.3D: reading comfort without changing the three-bay/three-lane layout. */
html,body{color:#443650}button{font-weight:800}#game{grid-template-rows:54px 164px minmax(115px,1fr) 278px 100px}
.corner-controls{display:flex;justify-content:flex-end;gap:4px;align-items:center;padding:4px 12px;background:#fff5e9;z-index:5}
.corner-controls button{min-height:44px;border-radius:13px;padding:5px 10px;background:#fff;border:2px solid #d8c9e6;color:#463452;font-size:14px}
#stages{display:flex;align-items:center;gap:7px;color:#463452;font-size:14px;letter-spacing:0;box-shadow:none}#stages b{font-size:22px;line-height:26px;color:#463452}
.section-label{font-size:14px;color:#584436;letter-spacing:0;padding-bottom:6px}#progress{font-size:14px;color:#4c385a;padding:2px 7px}
#tasks{height:128px;gap:8px}.task{padding:4px 3px;color:#43374a}.task-name{font-size:15px;line-height:19px;white-space:normal;font-weight:900;min-height:38px;display:flex;align-items:center;justify-content:center}.task-icon{width:28px;height:28px;flex-shrink:0}
.needs{gap:4px;margin-top:4px;min-height:43px}.need{width:26px;height:26px;position:relative;border-width:2px;flex-shrink:0;display:flex;flex-direction:column;overflow:visible}.need>span{width:22px;height:22px;display:grid;place-items:center;flex-shrink:0}.need small{color:#3c3045;font-size:13px;line-height:18px;font-weight:900;position:absolute;top:26px;white-space:nowrap}.need.filled small{color:#3c3045}.need .motif{width:19px;height:19px}
.task.completed:after{content:'COMPLETE\Aお仕事完了！';white-space:pre-line;font-size:17px;line-height:21px;padding:5px;color:#5b3b12}
#message{font-size:14px;line-height:20px;color:#503c2d;background:#fffdf4;min-height:30px;padding:5px 7px;left:8px;right:8px;bottom:5px}#message.notice{color:#65450e;background:#fff0b6}.station-maid small{font-size:12px;font-weight:800;color:#49362f;background:#fff9ef}
.queue-zone{padding-top:7px}.queue-zone .section-label{gap:5px}.legend{gap:4px}.legend .dot .motif{width:16px;height:16px}#restart{border-radius:9px;background:#fff;border:1px solid #cbb8d8;color:#4b3658;min-height:32px;padding:3px 6px;font-size:13px;white-space:nowrap}
#queues{height:225px}.maid-tag{font-size:14px;line-height:20px;color:#463352;padding:0 4px}.lane-total{font-size:12px;font-weight:800;color:#5a4062}.maid-button:not(.front){opacity:1}
footer{padding:8px 12px 13px;gap:8px}footer b{font-size:15px;line-height:21px;color:#493552}footer small{font-size:14px;font-weight:800;color:#493552}footer button:nth-child(2) b,footer button:nth-child(2) small{color:#674708}footer button:nth-child(3) b,footer button:nth-child(3) small{color:#285b4b}footer button:disabled{opacity:1;background:#eee8f0;border-color:#d2c9d5;box-shadow:none}footer button:disabled b,footer button:disabled small,footer button:disabled span{color:#6d6175}
#rescue-return{position:absolute;left:15px;right:15px;bottom:96px;z-index:20;border-radius:12px;border:2px solid #d6b363;background:#fff5cf;color:#563b0b;font-size:14px;min-height:36px;padding:4px 8px}#rescue-return[hidden]{display:none}
dialog{width:min(370px,94vw);max-height:calc(100svh - 24px);overflow:auto;padding:22px 20px;color:#47334e}dialog h2{font-size:22px;line-height:1.4;font-weight:900}dialog p{font-size:16px;line-height:1.65;font-weight:600}dialog button{font-size:17px;min-height:48px}dialog .primary{font-size:17px;background:#78538c;color:#fff;font-weight:900}dialog .secondary{display:block;width:100%;font-size:17px;min-height:48px;margin-top:8px;color:#493352;background:#eee4f5;font-weight:800}dialog button:disabled{opacity:1;color:#65586b;background:#ddd6e1;box-shadow:none}dialog h1{font-size:40px;color:#865397;font-weight:900}.clear-label{font-size:17px;color:#493352;font-weight:900}.clear-jp{display:block;font-size:20px;color:#5b3c66}.stage-grid{gap:7px}.stage-grid button{font-size:19px;min-height:46px;color:#493352}.rescue-items{display:grid;gap:7px;margin:14px 0}.rescue-items button{display:flex;justify-content:space-between;align-items:center;padding:10px 13px;border:2px solid #d4c2df;border-radius:13px;background:#fff;color:#463352}.rescue-items button:disabled{background:#ece7ef;border-color:#dbd4df;color:#6d6175}
.mock-label{font-size:14px!important;color:#594764}.mock-progress{height:20px;border-radius:12px;background:#e6d9ef;overflow:hidden}.mock-progress i{display:block;height:100%;width:0;background:#9673aa}.reward-count{font-size:22px;font-weight:900;padding:18px;color:#644279}.audio-settings{border:2px solid #d8c8e3;border-radius:14px;padding:8px 10px;text-align:left;font-size:16px;font-weight:800}.audio-settings label{display:inline-flex;gap:4px;align-items:center;margin:3px 5px 3px 0;min-height:40px}.audio-settings input{width:22px;height:22px;accent-color:#78538c}.audio-credits{font-size:15px;margin:12px 0;text-align:left}.audio-credits summary{font-weight:800;min-height:40px;cursor:pointer}.audio-credits p{font-size:14px}
@media(max-height:760px){#game{grid-template-rows:50px 151px minmax(96px,1fr) 246px 97px;min-height:640px}.task-zone{padding:6px 10px 9px}#tasks{height:119px}.task-name{font-size:14px;line-height:18px;min-height:36px}.task-icon{width:24px;height:24px}.needs{margin-top:2px}.queue-zone{padding:6px 10px 3px}#queues{height:206px;gap:10px}.maid-button{height:60px;min-height:60px}.maid-button.front{height:69px;min-height:69px}.maid-button .sprite{width:56px;height:56px}.lane{padding:3px 4px;gap:2px}footer{padding:7px 10px 12px}footer span{font-size:22px;line-height:23px}.section-label{padding-bottom:5px}.hall-title{display:none}#rescue-return{bottom:98px}dialog .hero{width:104px;height:104px}}
@media(max-width:360px){.corner-controls{padding-right:9px}.section-label{font-size:13px}.queue-zone .legend{display:none}#tasks{gap:6px}.need{width:24px;height:24px}.need>span{width:20px;height:20px}.need small{font-size:12px;top:24px}.needs{gap:2px}.task-name{font-size:14px}.task{padding-left:1px;padding-right:1px}.maid-tag{font-size:13px}footer b{font-size:14px}#message{font-size:14px}.station-slot{width:31px}.arrival-anchor{width:39px;height:39px}.station-maid small{font-size:11px}dialog{padding:18px 16px}dialog h2{font-size:20px}}

/* V0.4A added identities only; baseline layout and font sizes remain. */
.need.E{border-color:#b48c4a;background:#fff5d8}.need.F{border-color:#b27bce;background:#f7edff}.need.G{border-color:#ef82a1;background:#fff0f5}.need.H{border-color:#5cb8d5;background:#eafaff}.need.I{border-color:#e59b58;background:#fff1de}
.needs:has(.need.E,.need.F,.need.G,.need.H,.need.I){gap:2px}
.needs:has(.need.E,.need.F,.need.G,.need.H,.need.I) .need{width:32px}
.need.E small,.need.F small,.need.G small,.need.H small{left:50%;transform:translateX(-50%) scaleX(.8);transform-origin:center;white-space:nowrap}
@media(max-width:360px){.needs:has(.need.E,.need.F,.need.G,.need.H,.need.I) .need{width:28px}.need.E small,.need.F small,.need.G small,.need.H small{transform:translateX(-50%) scaleX(.77)}}
.legend.roster-wide{display:none}.maid-guide{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;text-align:left;margin:14px 0}.maid-guide>span{display:grid;grid-template-columns:26px 1fr;gap:2px 5px;align-items:center;font-size:16px}.maid-guide .motif{width:24px;height:24px;grid-row:span 2}.maid-guide small{font-size:13px;font-weight:700}
