/* Career-first setup; gameplay styling remains in the village layer. */
.home{min-height:100svh;height:auto;overflow:visible}
.home #intro{display:none!important}
.home #setup{position:relative;inset:auto;grid-column:1;grid-row:2/4;width:auto;max-width:460px;margin:0;padding:30px;background:#142337f5;border:1px solid #73898466;border-radius:10px;border-image:none;box-shadow:0 16px 48px #07192855}
.setup-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:26px}
.home .setup-heading #career-heading{display:block;color:#b8ceb9;font:500 13px/1.4 system-ui;letter-spacing:.2px;margin:0 0 4px}
.home #career-balance{display:block;font:600 clamp(30px,7vw,40px)/1.2 system-ui;font-variant-numeric:tabular-nums;letter-spacing:-1px;color:#ffe4a6;overflow-wrap:anywhere}.home #career-balance[hidden]{display:none}
.home .setup-info{width:44px;height:44px;flex-shrink:0;border:0;border-radius:50%;background:transparent;color:#b5c7c8;font:italic 20px Georgia,serif}
.home .setup-info:hover{background:#ffffff0d}
.home #career-home{margin:0 0 24px;padding:0;border:0;background:none;box-shadow:none}
.home .setup-block{padding:0;margin-bottom:24px;border:0}
.home #setup label,.home #setup .field-label{font:500 12px/1.4 system-ui;color:#c3d2d1;letter-spacing:0;min-width:0}
.home #setup .field-label{margin:0 0 8px}
.home #setup select{font:14px system-ui;min-height:48px;width:100%;max-width:100%;color:#f2ead7;background-color:#213449;border:1px solid #566e7b;border-radius:6px;box-shadow:none;padding:12px 30px 12px 12px}
.home .language-pickers{display:block}
.home .session-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.home .session-choices button{min-height:52px;padding:12px 8px;border:1px solid #566e7b;border-radius:6px;background:#213449;color:#c4d3d6;font:500 14px system-ui}
.home .session-choices button[aria-pressed=true]{border-color:#e1bf76;background:#e1bf761a;color:#ffe4a6;box-shadow:inset 0 -2px #e1bf76}
.home .session-choices button:disabled{opacity:.45}
.home .segmented{padding:3px;border:0;border-radius:6px;background:#0b192c;gap:3px;box-shadow:none}
.home .segmented button{min-height:44px;white-space:normal;font:13px system-ui;color:#b8cbd0;border:0;border-radius:4px;background:transparent;box-shadow:none;padding:8px 4px}
.home .segmented button[aria-pressed=true]{background:#345064;color:#fff1d4;box-shadow:none}
.home #setup-preferences{margin:0 0 20px;padding-top:2px}.home #setup-preferences summary{cursor:pointer;min-height:44px;display:list-item;align-content:center;color:#b8cbce;font:13px system-ui}
.home #setup-preferences[open] summary{margin-bottom:14px}.home #setup-preferences .field-label{margin-top:12px}
.home #setup .setting-note,.home #setup .toggle-row small,.home #voice-reward-help{display:none}
.home #start-button{margin:0;min-height:54px;font:600 16px system-ui;border:1px solid #f1d697;border-radius:6px;background:#e5c47f;color:#192b34;box-shadow:0 3px 0 #8b713f;padding:14px 18px}
.home #start-button:hover{background:#f1d494}.home #start-button span:last-child{font-size:22px}
.home #alternate-mode{display:flex;justify-content:center;margin-top:12px}.home #change-play-mode{min-height:44px;padding:8px 16px;color:#a5bdc4;font:12px system-ui;background:transparent}
.home .setup-foot{border-top:1px solid #566e7b55;margin-top:10px;padding-top:10px;gap:8px;flex-wrap:wrap}.home .setup-foot .quiet{min-height:44px;color:#a5bdc4;font:11px system-ui}.home #best-label{display:none}
.home .saved-show{margin-top:18px;border-top:1px solid #445967;padding-top:16px}.home .saved-show .primary{margin-top:12px}
.home #stage-wrap{pointer-events:none}.home #view-tools,.home .stage-caption{display:none}
.home #home-nav{margin-left:auto;display:flex;align-items:center;gap:12px}
.home .interface-language{display:block;min-width:0}.home #home-language{width:112px;min-height:44px;padding:8px 24px 8px 10px;font:13px system-ui;color:#e5e6d9;background-color:transparent;border:1px solid #6c848966;border-radius:6px;box-shadow:none}.home #home-language option{background:#142337;color:#f2ead7}
@media(min-width:701px){.home{grid-template-columns:minmax(320px,440px) minmax(0,1fr);gap:28px;padding:0 40px 40px}.home .topbar{margin:0 -40px}.home #stage-wrap{grid-row:2/4;height:min(750px,85vh);top:24px}.home #setup{align-self:start}}
@media(max-width:700px){.home{display:flex;flex-direction:column;background-size:cover}.home #setup{order:1;max-width:none;margin:22px 16px;padding:24px;min-width:0}.home #stage-wrap{order:2;margin:0 12px 24px;height:280px;min-height:0}.home .topbar{padding-inline:16px}.home #setup select{font-size:16px}.home .segmented button{font-size:12px}.home #setup .gender-picker button{min-height:48px}.home #home-nav{gap:8px}.home #home-language{width:100px}.home #guide-button{width:44px;height:44px}}
@media(max-width:360px){.home #setup{margin:16px 10px;padding:18px}.home .topbar{padding-inline:10px}.home .brand{letter-spacing:.5px;font-size:10px}.home .brand small{letter-spacing:1px}.home #home-language{width:88px}.home #home-nav{gap:4px}}
.encore-targets{list-style:none;margin:12px 0;padding:0;max-height:32vh;overflow:auto}.encore-targets li{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid #60758566;font:14px/1.4 system-ui}.encore-targets li span{overflow-wrap:anywhere}.encore-targets b{flex-shrink:0;font-size:12px;color:#e8d28c}.encore-price{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;margin-top:20px;font:14px system-ui}.encore-price small{flex-basis:100%;color:#b6cbd0}.encore-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.encore-heading h2{margin:0}.encore-deadline{display:grid;text-align:center;flex-shrink:0}.encore-deadline small{font:12px/1.4 system-ui;color:#c9d8d7}.encore-countdown{font:40px/1.1 Georgia,serif;font-variant-numeric:tabular-nums;color:#efd390}.encore-result{display:grid;gap:8px;padding:14px 0;color:#efd390}.encore-result small{color:#c9d8d7}

/* Study selection stays compact at home; the searchable list has room to grow. */
.home .study-home{display:grid;gap:8px}
.home .focus-study-button{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:76px;text-align:left;padding:13px 15px;background:#213449;border:1px solid #718998;border-radius:7px;color:#f2ead7;box-shadow:none}
.home .focus-study-button>span:first-child{min-width:0;display:grid;gap:5px}
.home .focus-study-button small{font:12px system-ui;color:#b9cbd1}
.home .focus-study-button strong{font:600 16px/1.35 system-ui;overflow-wrap:anywhere}
.home .focus-study-button>span:last-child{font:28px system-ui;color:#e5c47f}
.home .studies-summary{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:48px;padding:8px 4px;border:0;border-radius:6px;background:transparent;color:#dac998;font:500 13px system-ui;box-shadow:none}
.home .studies-summary>span:first-child,.study-counts{display:flex;align-items:center;gap:8px}.home .studies-summary svg{width:18px;height:18px}
.study-count{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border-radius:20px;font:600 12px system-ui;white-space:nowrap;font-variant-numeric:tabular-nums}
.study-count.active{background:#e5c47f18;color:#f2cf89}.study-count.graduated{background:#81cab51a;color:#a5ddc9}
.home .focus-study-button:hover,.home .studies-summary:hover{background:#2b4356}
.study-picker button:focus-visible,.home .study-home button:focus-visible{outline:2px solid #f2cf89;outline-offset:3px}
dialog:has(.study-picker){width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);border:1px solid #718998;border-image:none;border-radius:12px;background:#142337;overflow:hidden;box-shadow:0 20px 60px #0008}
dialog:has(.study-picker) #dialog-content{padding:22px}
.study-picker{display:flex;flex-direction:column;gap:14px;max-height:calc(100dvh - 70px);min-height:0}
.study-picker header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.study-picker h2{font:600 20px/1.3 system-ui;letter-spacing:0;margin:0;color:#f4e4bb}
.study-picker header button{flex-shrink:0;width:44px;height:44px;background:transparent;border:0;border-radius:6px;font:26px system-ui;color:#c3d3d7;box-shadow:none}
.study-picker input{flex-shrink:0;width:100%;min-height:48px;padding:12px 14px;font:16px system-ui;background:#0b192c;color:#f2ead7;border:1px solid #566e7b;border-radius:6px}.study-picker input::placeholder{color:#a9bdc6}
.study-all,.study-browse{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-shrink:0;min-height:44px;padding:10px 4px;border:0;border-radius:4px;background:transparent;color:#d8c390;font:14px system-ui;text-align:left;box-shadow:none}
.study-all[aria-pressed=true]{color:#ffe4a6;background:#e5c47f14;padding-inline:10px}
.study-options{min-height:0;overflow:auto;overscroll-behavior:contain;padding:3px;scrollbar-gutter:stable}
.study-group h3{display:flex;align-items:center;gap:8px;margin:8px 0 10px;color:#b6cbd0;font:500 12px system-ui}.study-group h3 span{color:#e0cf9d}
.study-group+.study-group{margin-top:22px}
.study-option{display:flex;align-items:center;gap:16px;justify-content:space-between;width:100%;min-height:76px;margin:0 0 8px;padding:14px;text-align:left;border:1px solid #425d70;border-radius:7px;background:#213449;color:#eee4cc;box-shadow:none}
.study-option[aria-pressed=true]{border-color:#e5c47f;background:#e5c47f14}.study-option:hover{background:#2b4356}
.study-option-title{min-width:0;display:grid;gap:5px}.study-option-title strong{font:600 14px/1.4 system-ui;overflow-wrap:anywhere}.study-option-title small{font:11px/1.4 system-ui;color:#afc3ca}
.study-option-progress{flex:0 0 64px;display:grid;gap:8px;text-align:right}.study-option-progress b{font:600 12px system-ui;color:#d8c390}
.study-meter{display:block;height:4px;border-radius:4px;background:#0c1a2b;overflow:hidden}.study-meter i{display:block;height:100%;background:#e5c47f}
.study-browse{border-top:1px solid #425d70;padding-top:14px}.study-empty{padding:24px 0;color:#b6cbd0;font:14px system-ui}
@media(max-width:700px){.home .segmented{display:grid;grid-template-columns:1fr 1fr}.home .segmented button[data-mode=both]{grid-column:1/-1;min-height:38px}.home .setup-heading{margin-bottom:22px}}
@media(max-width:420px){dialog:has(.study-picker){width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}dialog:has(.study-picker) #dialog-content{padding:16px}.study-picker{max-height:calc(100dvh - 50px)}.study-option{gap:10px;padding:12px}}

.booking-summary{display:flex;justify-content:space-between;gap:12px;margin-top:9px;color:#b7cbd0;font:12px/1.4 system-ui}.booking-summary b{color:#e5c47f;font-weight:500}.home #start-button:disabled{opacity:.45;cursor:not-allowed}
dialog:has(.production-shop){width:min(640px,calc(100vw - 24px))}.production-shop header{display:flex;align-items:center;justify-content:space-between;gap:12px}.production-shop h2{font:600 22px/1.3 system-ui;letter-spacing:0}.production-shop header button{width:44px;min-height:44px;background:transparent;color:#e5d5b5;border:0;font:26px system-ui}.production-cards{display:grid;gap:12px}.production-cards article{display:grid;grid-template-columns:1fr auto;gap:10px;padding:16px;background:#213449;border:1px solid #566e7b;border-radius:8px}.production-cards h3{grid-column:1/-1;margin:0;font:600 16px/1.4 system-ui}.production-cards small{grid-column:1/-1;font:12px/1.5 system-ui}.production-cards strong{align-self:center;font:600 16px system-ui;color:#e5c47f}.production-cards button{min-height:44px;padding:10px 14px;border:1px solid #718998;border-radius:6px;background:#142337;color:#e5d5b5;font:14px system-ui}.production-cards button[aria-pressed=true]{border-color:#e5c47f;background:#e5c47f20}.production-cards button:disabled{opacity:.45}.production-shop details{margin-top:18px}.production-shop summary,.economy-rules summary{min-height:44px;align-content:center;cursor:pointer;font:14px system-ui}.show-accounts{display:grid;gap:8px;margin:20px 0;font:14px/1.5 system-ui}.show-accounts>div{display:flex;justify-content:space-between;gap:16px}.show-accounts dd{margin:0;font-variant-numeric:tabular-nums}.show-accounts .net{border-top:1px solid #566e7b;padding-top:12px;color:#ffe4a6;font-size:20px}.production-report{color:#b8d4ca;font:13px/1.5 system-ui;margin:12px 0}
@media(max-width:420px){.production-cards article{padding:12px}.production-shop h2{font-size:20px}}
/* Independent study choices share one compact focus section. */
.study-focus-grid{display:grid;gap:7px;margin-top:7px}
.home .focus-slot{display:grid;grid-template-columns:76px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:48px;width:100%;padding:10px 12px;text-align:left;background:#213449;border:1px solid #718998;border-radius:6px;color:#f2ead7;box-shadow:none}
.home .focus-slot small{font:12px/1.4 system-ui;color:#b9cbd1}
.home .focus-slot strong{font:600 14px/1.4 system-ui;overflow-wrap:anywhere}
.home .focus-slot>span{font:24px/1 system-ui;color:#e5c47f}
.home .focus-slot:hover{background:#2b4356}
