@font-face{font-family:Lilita One;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/lilita-one-latin-400-normal-87r-Z-Re.woff2) format("woff2"),url(/assets/lilita-one-latin-400-normal-DXkechA3.woff) format("woff")}@font-face{font-family:DM Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/dm-sans-latin-400-normal-CW0RaeGs.woff2) format("woff2"),url(/assets/dm-sans-latin-400-normal-BwCSEQnW.woff) format("woff")}@font-face{font-family:DM Sans;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/dm-sans-latin-500-normal-B9HHJjqV.woff2) format("woff2"),url(/assets/dm-sans-latin-500-normal-Dr3UlScf.woff) format("woff")}@font-face{font-family:DM Sans;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/dm-sans-latin-700-normal-DvUfVpUG.woff2) format("woff2"),url(/assets/dm-sans-latin-700-normal-CUSSCpQX.woff) format("woff")}:root{--paper: #f6f0e3;--white: #fffaf0;--ink: #30283e;--orange: #ef663d;--orange-deep: #d94f2b;--lime: #c8e681;--lilac: #d8cef2;--muted: #706577;--danger: #b3343c;--line: #d9cfc3;--display: "Lilita One", sans-serif;--body: "DM Sans", sans-serif;--shadow: 0 8px 24px #19142338;color:var(--ink);background:var(--ink);font-family:var(--body);font-synthesis:none}*{box-sizing:border-box}html,body,#app{width:100%;height:100%;margin:0;overflow:hidden}body{min-width:320px}button,input,select,textarea{font:inherit}button{color:inherit;cursor:pointer;border:0}button,a,input{touch-action:manipulation}button:disabled{cursor:not-allowed;opacity:.46}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--orange-deep);outline-offset:3px}button{transition:background .12s,transform .12s}button:active:not(:disabled){transform:translateY(2px)}input{accent-color:var(--orange);caret-color:var(--orange)}::selection{background:var(--lime);color:var(--ink)}a{color:inherit;text-underline-offset:4px}svg.icon{width:24px;height:24px;flex-shrink:0;vertical-align:middle}h1,h2,h3,h4,p{margin:0}h1,h2,h3,h4{font:400 30px/1.05 var(--display);text-wrap:balance}p{line-height:1.5}[hidden]{display:none!important}.visually-hidden{position:absolute;top:0;left:0;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.primary,.secondary{min-height:46px;padding:10px 18px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:2px solid var(--ink);border-radius:9px;font-weight:700}.primary{background:var(--orange);color:var(--ink)}.primary:hover:not(:disabled){background:#ff7c50}.secondary{background:var(--white)}.secondary:hover:not(:disabled){background:var(--lilac)}.icon-button{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;background:transparent;flex:none}.icon-button:hover{background:#30283e18}.text-button{min-height:44px;background:transparent;font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:4px}.chip{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:7px 12px;background:var(--white);border:1px solid var(--ink);border-radius:7px;font-size:13px;font-weight:700}.chip:hover{background:var(--lilac)}.status-good,.good{color:#426323}.status-warn,.danger{color:var(--danger)}::-webkit-scrollbar{width:9px;height:9px}::-webkit-scrollbar-track{background:var(--paper)}::-webkit-scrollbar-thumb{background:#97869d;border:2px solid var(--paper);border-radius:8px}.machine-entry{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:5px 10px;background:var(--lime);border:1px solid var(--ink);border-radius:8px;font-weight:700;font-size:15px}.machine-entry .icon{width:18px;height:18px}.mode-choice{display:flex;gap:9px;align-items:center;font-size:12px;font-weight:700;margin:10px 0}.mode-choice select{flex:1;min-width:0;min-height:40px;font:inherit;border:1px solid var(--ink);border-radius:7px;padding:7px;background:var(--white);color:var(--ink)}.retirement-hint{font-size:13px!important;color:var(--muted)}.machine-dialog{width:min(860px,calc(100vw - 24px));padding:25px;max-height:calc(100dvh - 24px);overflow:auto}.machine-dialog .dialog-heading{align-items:flex-start}.machine-dialog h2{font-size:36px;margin-top:5px}.workshop-eyebrow{font-size:10px;letter-spacing:.08em;font-weight:700}.machine-intro{font-size:14px!important;max-width:65ch}.audience-section{margin:20px 0}.audience-section h3{font-size:25px;margin-bottom:10px}#audience-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.audience-card{display:grid;grid-template-columns:1fr auto;gap:7px;padding:13px;border:1px solid var(--ink);border-radius:10px;background:var(--lilac)}.audience-card h4{font:24px var(--display);margin:0 0 5px}.audience-card p{font-size:12px!important;margin:0;line-height:1.4}.audience-card .audience-expectation,.audience-card .audience-signal{grid-column:1/-1}.audience-expectation{font-weight:700}.audience-mood{font:29px var(--display);text-align:right}.audience-mood small{display:block;font:10px var(--body)}.audience-empty{grid-column:1/-1;padding:12px;border:1px dashed var(--muted);border-radius:8px;font-size:13px!important}.audience-section .text-button{font-size:12px}.machine-bench{border:2px solid var(--ink);border-radius:14px;overflow:hidden;background:var(--white)}.bench-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px 16px;background:var(--lime);border-bottom:2px solid var(--ink)}.bench-heading h3{font-size:26px}.bench-heading>span{font-size:12px;font-weight:700;text-align:right}.machine-hint{font-size:12px!important;margin:12px 14px!important;min-height:18px}.machine-bank{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0 14px 15px}.machine-module{display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;min-height:120px;padding:10px 7px;background:var(--paper);border:2px solid var(--ink);border-radius:9px;box-shadow:0 4px 0 var(--line);touch-action:none;-webkit-user-select:none;user-select:none}.machine-module[aria-pressed=true]{outline:3px solid var(--orange);outline-offset:1px;background:var(--white)}.machine-module strong{font:19px var(--display)}.machine-module>span:last-child{font-size:10px;line-height:1.4}.module-face{display:flex;width:39px;height:36px;align-items:center;justify-content:center;font-size:24px;border:1px solid var(--ink);border-radius:7px;background:var(--lilac)}.module-cache .module-face{background:#cde4eb}.module-batch .module-face{background:var(--orange)}.module-replica .module-face{background:var(--lime)}.machine-board{display:grid;grid-template-columns:95px 1fr 110px;gap:24px;align-items:center;padding:20px 16px;background-color:var(--lilac);background-image:radial-gradient(var(--muted) .6px,transparent .6px);background-size:12px 12px;border-block:2px solid var(--ink)}.machine-source,.machine-database{display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center;font-size:11px;font-weight:700;background:var(--white);border:2px solid var(--ink);border-radius:11px;padding:12px 6px;box-shadow:0 5px #30283e25;z-index:1}.machine-source:after{content:"→";position:absolute;margin-left:123px;font-size:28px}.machine-face{font-size:24px;white-space:nowrap}.database-stack{font-size:30px;line-height:.6;color:var(--orange-deep)}.machine-database small{font-size:10px;font-weight:400}.machine-sockets{display:grid;gap:13px;position:relative}.machine-sockets:after{content:"→";position:absolute;right:-24px;top:calc(50% - 20px);font-size:28px}.machine-socket{display:flex;align-items:center;gap:12px;text-align:left;min-height:87px;padding:10px 13px;background:var(--white);border:3px solid var(--ink);border-radius:10px;box-shadow:0 4px #30283e30}.machine-socket>span:last-child{display:flex;flex-direction:column;gap:4px;min-width:0}.machine-socket small{font-size:10px;letter-spacing:.04em}.machine-socket strong{font:23px var(--display)}.socket-symbol{display:flex;flex:none;align-items:center;justify-content:center;width:32px;height:32px;border:2px solid var(--ink);border-radius:50%;background:#cde4eb;font-weight:700}.write-socket .socket-symbol{background:#ffc3a8}.socket-detail{font-size:10px}.machine-socket.drop-ready{background:var(--lime);outline:3px dashed var(--orange);outline-offset:3px}.machine-status{padding:12px 14px;font-size:12px!important;margin:0!important;min-height:56px}.module-drag-ghost{position:fixed;z-index:100;pointer-events:none;transform:translate(-50%,-50%) rotate(-5deg);background:var(--lime);border:3px solid var(--ink);border-radius:10px;padding:15px;font:22px var(--display);box-shadow:0 7px #30283e30}.festival-offer{margin-top:20px;padding:18px;border:2px solid var(--ink);border-radius:12px;background:var(--lime);position:relative;overflow:hidden}.festival-offer:before{content:"";position:absolute;top:0;left:0;right:0;height:7px;background:repeating-linear-gradient(90deg,var(--orange) 0 25px,var(--lilac) 25px 50px)}.festival-offer h3{font-size:30px;margin:7px 0}.festival-offer p{font-size:13px!important;margin:8px 0}.festival-forecast{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.festival-forecast>span{padding:7px 9px;background:var(--white);border:1px solid var(--ink);border-radius:6px;font-size:12px}.festival-forecast b{font-family:var(--display);font-size:20px}.festival-offer .primary{width:100%}.machine-notes{font-size:12px;margin-top:16px}.machine-notes summary{min-height:44px;cursor:pointer}.machine-notes p{font-size:12px!important}.traffic-controls{padding:11px 18px;background:var(--paper);border-top:2px solid var(--ink)}.traffic-controls>p{font-size:13px;font-weight:700;min-height:22px;margin-bottom:8px}.traffic-controls>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.traffic-controls .secondary{font-size:13px;min-height:48px;padding:8px}.traffic-controls kbd{font:12px var(--body);padding:2px 5px;border:1px solid var(--ink);border-radius:4px}.is-traffic .arena-title p{max-width:44ch}.is-traffic #result-panel .arena-cover-inner{max-width:580px}@media(max-width:550px){.machine-entry{font-size:12px;min-height:32px;padding:4px 7px;gap:5px}.machine-entry .icon{width:15px;height:15px}.machine-dialog{padding:16px;width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.machine-dialog h2{font-size:29px}.machine-dialog .dialog-heading{gap:5px}.machine-dialog .dialog-heading .icon-button{flex:none}.machine-intro{font-size:13px!important}.audience-section{margin:15px 0}#audience-list{grid-template-columns:1fr}.audience-section h3{font-size:24px}.audience-card{padding:11px}.audience-card h4{font-size:23px}.audience-mood{font-size:27px}.bench-heading{padding:10px;align-items:flex-start}.bench-heading h3{font-size:24px;max-width:150px}.bench-heading>span{max-width:85px;font-size:11px}.machine-bank{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:0 11px 15px}.machine-module{min-height:112px;padding:9px 6px}.machine-module strong{font-size:20px}.machine-module>span:last-child{font-size:11px}.machine-hint{font-size:12px!important;margin:11px!important;min-height:34px}.machine-board{grid-template-columns:1fr;padding:12px;gap:12px}.machine-source{flex-direction:row;justify-content:center;padding:8px;gap:15px;min-height:46px}.machine-source:after,.machine-sockets:after{display:none}.machine-sockets{gap:12px}.machine-socket{min-height:83px;padding:10px}.machine-socket strong{font-size:25px}.socket-detail{font-size:11px}.machine-database{flex-direction:row;justify-content:center;gap:12px;padding:11px;min-height:47px}.machine-database .database-stack{font-size:20px}.machine-database small{max-width:75px}.machine-status{font-size:12px!important}.festival-offer{padding:14px}.festival-offer h3{font-size:27px}.festival-forecast{gap:5px}.festival-forecast>span{font-size:11px;padding:5px 7px}.festival-forecast b{font-size:19px}.traffic-controls{padding:9px}.traffic-controls>p{font-size:12px;min-height:32px}.traffic-controls>div{gap:5px}.traffic-controls .secondary{font-size:11px;gap:5px;padding:7px 4px;min-height:48px}.traffic-controls kbd{display:none}.mode-choice{margin:8px 0;font-size:12px}.mode-choice select{min-height:40px;font-size:12px}}.machine-dialog .dialog-heading{position:sticky;top:-25px;z-index:3;background:var(--paper);padding-block:7px;margin-top:-7px}.machine-dialog .dialog-heading .icon-button{font-size:27px;flex:none}@media(max-width:550px){.machine-dialog .dialog-heading{top:-16px}}.career-desk{--career-blue:#aacbd4;--career-green:#426323;width:min(920px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:0;overflow:auto;background:var(--paper)}.career-desk-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:3;padding:18px 24px 14px;border-bottom:2px solid var(--ink);background:var(--paper);box-shadow:0 4px #30283e0b}.career-desk-heading h2{font-size:34px;margin-top:5px}.career-desk-heading .icon-button{flex:none;border:1px solid var(--ink);background:var(--white);font-size:28px;width:44px;height:44px}.career-eyebrow{display:block;font-size:10px;line-height:1.4;font-weight:700;letter-spacing:.065em}.career-desk-body{padding:18px 24px 24px}.career-desk-intro-row{display:flex;gap:18px;justify-content:space-between;align-items:center;margin-bottom:17px}.career-desk-intro{font-size:13px;margin:0;color:var(--muted)}#career-machine{flex:none;min-height:46px;padding:9px 12px;font-size:12px}.career-identity{display:flex;align-items:center;gap:18px;position:relative;min-height:142px;padding:12px 20px 12px 12px;background:var(--white);border:2px solid var(--ink);border-radius:11px;box-shadow:3px 5px 0 var(--line)}.career-portrait{width:118px;align-self:stretch;flex:none;position:relative;display:flex;align-items:flex-end;overflow:hidden;border:2px solid var(--ink);border-radius:9px;background:var(--career-blue)}.career-portrait svg{width:100%;display:block}.career-role-badge{position:absolute;right:4px;bottom:6px;padding:4px 5px;min-width:28px;text-align:center;font-size:11px;font-weight:700;background:var(--lime);border:2px solid var(--ink);border-radius:4px;transform:rotate(-6deg)}.career-personnel-copy{flex:1;min-width:0}.career-personnel-copy h3{font-size:32px;margin:5px 0 8px}.career-personnel-copy p{font-size:13px;max-width:55ch}.career-file-stamp{flex:none;padding:8px 10px;transform:rotate(7deg);border:2px solid var(--career-green);border-radius:5px;color:var(--career-green);font-size:11px;font-weight:700;text-align:center;line-height:1.35}.career-paperwork{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;margin-top:27px}.career-project-section>h3,.career-promotion>h3{font-size:27px;margin:5px 0 15px}.career-project-file{background:var(--white);border:2px solid var(--ink);border-radius:2px 10px 10px;position:relative;padding:15px;margin-top:13px;box-shadow:3px 4px 0 var(--line)}.career-project-file:before{content:"";width:64px;height:7px;position:absolute;top:-9px;left:-2px;border:2px solid var(--ink);border-bottom:0;background:var(--lilac);border-radius:5px 5px 0 0}.career-project-file.is-home-role:before{background:var(--orange)}.career-project-label{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:700}.career-project-symbol{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:32px;min-height:29px;padding:3px;border:1px solid var(--ink);border-radius:5px;background:var(--lilac);font-size:11px}.career-project-file h4{font:400 24px/1.1 var(--display);margin:12px 0 8px}.career-project-file p{font-size:13px;margin:8px 0}.career-project-cost{display:flex;flex-direction:column;gap:4px;padding:9px 0;border-top:1px dashed var(--line)}.career-project-cost span{font-size:12px;color:var(--muted)}.career-project-file button{width:100%;font-size:13px;padding:10px;min-height:48px}.career-project-file .career-project-availability{font-size:12px;line-height:1.45;margin:10px 0 0;color:var(--muted)}.career-promotion{align-self:start;padding:17px;background:var(--lilac);border:2px solid var(--ink);border-radius:11px;box-shadow:3px 4px 0 var(--line)}.career-track-label{font-size:12px;font-weight:700;display:block;margin:14px 0 6px}.career-desk select{font:inherit;min-height:46px;width:100%;max-width:100%;padding:9px 30px 9px 9px;background:var(--white);color:var(--ink);border:2px solid var(--ink);border-radius:8px;cursor:pointer}.career-desk select:disabled{cursor:default;opacity:.75}.career-desk select:focus-visible{outline:3px solid var(--orange-deep);outline-offset:3px}.career-small{font-size:12px;line-height:1.5;margin:9px 0}.career-next-title{font:400 25px/1.1 var(--display);margin:20px 0 12px}.career-requirements{list-style:none;margin:0 0 15px;padding:0}.career-requirements li{display:flex;align-items:flex-start;gap:9px;padding:10px 0;border-bottom:1px solid #30283e29;font-size:13px;line-height:1.4}.career-check{flex:none;display:inline-flex;width:24px;height:24px;align-items:center;justify-content:center;border:1px solid var(--ink);border-radius:50%;background:var(--white);font-weight:700}.is-met .career-check{background:var(--lime)}.career-requirements li>span:last-child{flex:1;min-width:0}.career-requirements strong{display:block;font-size:12px;margin-top:3px}.career-promotion>.primary{width:100%;min-height:48px;font-size:13px;padding:10px}.career-top-rank{margin:18px 0 0;font:400 24px/1.25 var(--display)}.career-crew-section{margin:27px 0 20px;border-top:2px solid var(--ink);padding-top:19px}.career-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.career-section-heading h3{font-size:28px;margin:5px 0}.career-crew-bill{font-size:12px;text-align:right;font-weight:700;background:var(--white);border:1px solid var(--ink);border-radius:6px;padding:8px}.career-crew-stations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:15px 0}.career-crew-station{display:flex;gap:11px;align-items:center;padding:12px;background:var(--white);border:2px solid var(--ink);border-radius:10px}.career-crew-station>span:last-child{flex:1;min-width:0;font-size:12px;font-weight:700}.career-crew-station select{font-size:12px;margin-top:6px}.career-staff-icon{display:flex;align-items:center;justify-content:center;flex:none;width:38px;height:44px;font:400 24px var(--display);border:2px solid var(--ink);border-radius:18px 18px 8px 8px;background:var(--career-blue);box-shadow:0 4px 0 var(--lilac)}#assign-career-crew{min-height:46px;font-size:13px}.career-empty-desk{display:flex;align-items:center;gap:20px;padding:16px 0}.career-empty-desk p{font-size:13px;max-width:60ch}.career-empty-chair{display:block;position:relative;flex:none;width:43px;height:40px;border:3px solid var(--ink);border-radius:11px 11px 4px 4px;background:var(--lilac);margin:0 8px 12px}.career-empty-chair:before{content:"";position:absolute;left:-7px;right:-7px;bottom:-9px;height:11px;border:3px solid var(--ink);border-radius:5px;background:var(--lilac)}.career-empty-chair:after{content:"";position:absolute;width:29px;height:12px;left:4px;bottom:-21px;border-inline:3px solid var(--ink)}.career-evidence{border-top:1px solid #30283e40}.career-evidence>summary{cursor:pointer;min-height:48px;align-content:center;font-weight:700;font-size:13px;padding:10px 0;line-height:1.5}.career-evidence>summary:hover{text-decoration:underline;text-underline-offset:3px}.career-proof-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:3px 0 18px;padding:13px;background:var(--white);border:1px solid var(--line);border-radius:8px}.career-proof-totals dt,.career-ai-ledger dt{font-size:11px;line-height:1.4;color:var(--muted)}.career-proof-totals dd,.career-ai-ledger dd{font:400 22px var(--display);margin:4px 0 0}.career-proof-history{list-style:none;padding:0;margin:0 0 18px}.career-proof-history li{padding:13px 0;border-bottom:1px dashed #30283e35}.career-proof-history li>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:13px}.career-proof-history li>div>span{font-size:12px;text-align:right}.career-proof-history p{font-size:13px;margin:6px 0}.career-proof-history small{font-size:11px;line-height:1.5;color:var(--muted)}.career-proof-history .career-no-history{font-size:13px;color:var(--muted);border:0}.career-ai-ledger{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:15px 0}#career-ai p{font-size:13px;margin:6px 0 15px}.career-desk-status{font-size:12px;line-height:1.5;margin:16px 0 0;padding:12px;border:1px solid var(--ink);border-radius:8px;background:var(--lime)}.career-next-authority{font-size:13px;margin-bottom:10px}@media(max-width:650px){.career-desk{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.career-desk-heading{padding:14px}.career-desk-heading h2{font-size:28px}.career-desk-body{padding:14px}.career-desk-heading .career-eyebrow{max-width:25ch}.career-identity{padding:10px;gap:12px;min-height:126px}.career-portrait{width:85px;max-height:112px;align-self:center}.career-personnel-copy h3{font-size:27px}.career-personnel-copy p{font-size:12px}.career-file-stamp{display:none}.career-paperwork{grid-template-columns:1fr;gap:22px;margin-top:24px}.career-project-section>h3,.career-promotion>h3{font-size:26px}.career-project-file{padding:14px}.career-project-file p{font-size:13px}.career-promotion{padding:15px}.career-crew-stations{grid-template-columns:1fr;gap:10px}.career-section-heading{align-items:flex-start}.career-section-heading h3{font-size:26px}.career-crew-bill{max-width:100px;font-size:11px;padding:7px}.career-proof-totals{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 9px;padding:12px}.career-proof-history li>div{display:block}.career-proof-history li>div>span{display:block;text-align:left;margin-top:4px}.career-ai-ledger{gap:8px}.career-ai-ledger dd{font-size:19px}.career-ai-ledger dt{font-size:11px}.career-empty-desk{gap:13px}.career-empty-desk p{font-size:12px}}@media(max-width:360px){.career-desk-heading h2{font-size:25px}.career-desk-heading{gap:7px;padding:12px}.career-desk-body{padding:12px}.career-identity{gap:9px}.career-portrait{width:69px;max-height:96px}.career-personnel-copy h3{font-size:24px}.career-personnel-copy .career-eyebrow{font-size:9px}.career-crew-station{padding:10px;gap:8px}.career-staff-icon{width:31px;height:39px}.career-crew-station select{font-size:11px;padding-left:6px}.career-ai-ledger{grid-template-columns:1fr}.career-ai-ledger>div{display:flex;justify-content:space-between;gap:8px;align-items:baseline}.career-ai-ledger dd{margin:0}.career-section-heading h3{font-size:24px}}@media(max-width:650px){.career-desk-intro-row{display:block}.career-desk-intro{margin-bottom:11px}#career-machine{width:100%;min-height:46px}}dialog{padding:0;margin:auto;min-height:0;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);color:var(--ink);background:var(--paper);border:3px solid var(--ink);border-radius:12px;box-shadow:var(--shadow);overscroll-behavior:contain}dialog::backdrop{background:#211b2bba}dialog[open]:not(.arcade-dialog){display:flex;flex-direction:column;overflow:hidden}.small-dialog{width:min(510px,calc(100vw - 16px))}#tutorial-dialog{width:min(960px,calc(100vw - 16px))}#tutorial-video{display:block;width:100%;max-height:calc(100dvh - 120px);background:#000;border-radius:8px}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;padding:12px 18px;background:var(--lilac);border-bottom:2px solid var(--ink)}.dialog-heading h2{font-size:29px}.dialog-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:18px}.dialog-scroll>p{font-size:14px;margin:12px 0}.dialog-scroll>p:first-child{margin-top:0}.dialog-actions{display:flex;flex-direction:column;gap:9px;margin-top:18px}.help-list{padding-left:21px;font-size:14px;line-height:1.6}.help-list li{margin:12px 0}.legal-copy{white-space:pre-line;font-size:12px;color:var(--muted);line-height:1.5}.legal-links{display:flex;gap:14px;flex-wrap:wrap;margin:16px 0}.sql-example{background:var(--ink);color:var(--lime);border-radius:8px;padding:14px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.6}.system-row{display:flex;justify-content:space-between;gap:14px;padding:8px 0;font-size:13px}.diagnostic-list{margin:12px 0}.diagnostic-list .system-row{border-bottom:1px solid var(--line)}.company-dialog{width:min(780px,calc(100vw - 16px))}.rail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.rail-section h3{margin-bottom:10px;font-size:25px}.meeting-note{background:var(--lilac);padding:15px;border-radius:8px}.meeting-note h2{font-size:28px;margin-bottom:10px}.boss-quote{font-size:14px;margin-bottom:12px}.budget-scale,.meeting-note small{display:block;font-size:12px;line-height:1.5;margin-top:9px}.pin{display:none}.contract-progress p{font-size:13px}.contract-progress ul{padding:0;margin:12px 0;list-style:none}.contract-progress li{display:flex;gap:7px;font-size:13px;line-height:1.4;margin:9px 0}.contract-progress .icon{width:18px;height:18px}.contract-progress .complete{color:#426323}.log{display:flex;flex-direction:column;gap:12px}.log-entry{font-size:13px;line-height:1.5}.log-entry time{display:block;color:var(--muted);font-size:11px}.arcade-section{grid-column:1 / -1;scroll-margin-top:12px}.arcade-strip{display:flex;gap:8px}.arcade-strip button{flex:1}.practice-mode{display:flex;gap:8px;align-items:center;min-height:44px;font-size:13px;margin-top:10px}.practice-mode input{width:18px;height:18px}.workload-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:12px}.workload-strip span{display:block;font-size:11px;margin-bottom:5px}.workload-strip strong{font-size:13px}.workload-strip progress{width:100%;height:5px;display:block;accent-color:var(--orange)}.work-legend{font-size:12px;margin:0 0 22px;line-height:1.5}.operation-details{position:fixed;z-index:5;top:62px;right:16px;bottom:148px;width:min(550px,calc(100vw - 32px));overflow:auto;padding:0 16px 16px;border:3px solid var(--ink);border-radius:10px;background:var(--paper);box-shadow:var(--shadow)}.details-heading{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;background:var(--paper);border-bottom:1px solid var(--line)}.details-heading h3{font-size:26px}.operation-details article{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.operation-details h4{display:flex;align-items:center;flex-wrap:wrap;gap:7px;font:700 14px var(--body);margin-bottom:8px}.operation-details h4 span{margin-left:auto;font-size:12px}.operation-details p{font-size:13px;line-height:1.5}.operation-details .fact-risk{color:var(--muted);margin-top:6px}.last-operation-detail{padding:12px;margin-top:12px;background:var(--lime);border-radius:8px}.facts-tools{display:flex;gap:8px;margin:12px 0;flex-wrap:wrap}.office-inspector{padding:13px;margin:12px 0;background:var(--lilac);border:2px solid var(--ink);border-radius:8px}.office-inspector label{display:block;font-size:13px;font-weight:700}.office-inspector select{width:100%;min-height:44px;margin:8px 0 12px;padding:8px;color:var(--ink);background:var(--white);border:1px solid var(--ink);border-radius:6px;font-size:13px}.office-inspector h4{font:24px var(--display)}.office-inspector ul{padding-left:18px;font-size:13px;line-height:1.5}.office-inspector .secondary{width:100%;font-size:12px}.product-dialog{width:min(760px,calc(100vw - 16px))}#quick-feature{width:100%}.product-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.product-card{display:flex;flex-direction:column;gap:10px;padding:15px;border:2px solid var(--ink);border-radius:9px;background:var(--white)}.product-card h3{font-size:28px}.product-card p{font-size:13px}.product-card button{margin-top:auto;font-size:13px}.product-card ul{padding-left:18px;font-size:12px;line-height:1.5}.product-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0;padding:10px 0;border-block:1px solid var(--line)}.product-stats dt{font-size:11px}.product-stats dd{font:23px var(--display);margin:4px 0 0}.product-card details{font-size:12px}.product-card summary{cursor:pointer;min-height:35px}.career-history{font-size:13px;line-height:1.5}.career-history:empty{display:none}.career-history h3{font-size:24px;margin:14px 0 10px}.career-history ol{padding-left:20px}.career-history li{margin:7px 0}.career-history small{color:var(--muted)}.career-history article{border-top:1px solid var(--line);padding:10px 0}.career-history article p{font-size:13px;margin:5px 0}.report-dialog{width:min(740px,calc(100vw - 16px))}#report-preview{display:block;width:min(100%,540px);height:auto;margin:auto}.report-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.report-actions button{flex:1;font-size:12px}.report-text{width:100%;min-height:180px;padding:10px;color:var(--ink);background:var(--white);border:1px solid var(--line);border-radius:7px;font-size:13px}.report-copy-status{padding:10px;background:var(--lime);border-radius:7px}.exit-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.exit-stats div{padding:12px;background:var(--white);border-radius:8px;font-size:12px}.exit-stats strong{display:block;font:29px var(--display);margin-bottom:5px}.career-desk[open]{padding:0}.career-desk-heading{position:relative;flex:none}.career-desk-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}.machine-dialog[open]{padding:0}.machine-dialog>.dialog-heading{position:relative;inset:auto;margin:0;padding:12px 18px}.machine-dialog .dialog-scroll{padding:18px}.machine-footer{flex:none;padding:10px 18px;border-top:2px solid var(--ink);background:var(--paper)}.machine-footer>.primary{width:100%}#module-purchase{padding-bottom:8px}#module-purchase p{margin:0 0 8px;font-size:13px}#module-purchase button{min-height:44px}@media(max-width:600px){.dialog-heading{padding:8px 12px}.dialog-heading h2{font-size:25px}.dialog-scroll{padding:13px}.rail,.product-catalog{grid-template-columns:1fr}.operation-details{top:54px;right:8px;bottom:194px;width:calc(100vw - 16px);padding-inline:12px}.details-heading h3{font-size:23px}.workload-strip{gap:8px}}@media(max-height:500px){.operation-details{top:8px;bottom:8px}}#glossary-facts{margin-bottom:12px;padding:12px;background:var(--lime);border-radius:8px;font-size:14px}.log-entry.bad{color:var(--danger)}.finance-panel{padding:14px;border:2px solid var(--ink);border-radius:12px;background:var(--white);margin-block:12px}.finance-panel h3,.finance-panel h4{margin:0 0 8px}.finance-panel p{margin:8px 0}.finance-panel dl{display:grid;gap:6px;margin:10px 0}.finance-panel dl div{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.finance-panel dd{margin:0;font-weight:700}.finance-panel button{min-height:44px}.finance-note{font-size:.8rem}.funding-requirements{padding-left:22px}.funding-requirements .is-met{color:var(--good)}#app{position:relative;height:100dvh;background:var(--paper)}.site-header{position:absolute;inset:0 0 auto;height:56px;z-index:3;display:flex;align-items:center;justify-content:space-between;padding:4px 16px}.brand{display:flex;gap:9px;align-items:center;text-decoration:none}.brand-mark{width:37px;height:40px;display:grid;place-items:center;border:2px solid var(--ink);border-radius:9px;background:var(--orange);transform:rotate(-5deg)}.brand-name{font:21px/.9 var(--display)}.brand-name span{display:block;font-size:14px;color:var(--orange-deep);margin-top:3px}.header-right{display:flex;gap:3px;align-items:center}.save-status{position:fixed;bottom:4px;right:18px;z-index:2;color:var(--muted);font-size:10px;pointer-events:none}.how-button{display:flex;gap:6px;align-items:center;min-height:44px;padding:0 9px;background:transparent;font-size:12px;font-weight:700}.game-shell{height:100%;padding:56px 12px 16px}.hud{position:absolute;z-index:3;top:6px;left:215px;right:275px;height:44px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:center}.hud-stat{min-width:0;display:grid;grid-template-columns:22px 1fr;align-items:center;column-gap:7px;position:relative}.hud-stat>.icon{grid-row:1 / 3;color:var(--orange-deep);width:21px;height:21px}.hud-label{font-size:10px;line-height:1;white-space:nowrap}.hud-value{font:23px/1.2 var(--display);font-variant-numeric:tabular-nums;white-space:nowrap}.hud-value small{display:none}.stress-meter{position:absolute;left:29px;right:5px;bottom:-4px;height:3px;background:var(--line);overflow:hidden}.stress-meter span{display:block;height:100%;background:var(--orange)}.workspace,.world-panel{height:100%;min-height:0}.world-panel{position:relative;display:grid;grid-template-rows:34px minmax(0,1fr) 126px}.world-heading{grid-row:1;grid-column:1;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}.world-heading>div{min-width:0}.world-heading h1{font-size:22px}.world-heading p{display:none}.quarter-tag{display:flex;align-items:center;gap:12px;font-size:11px;white-space:nowrap}.stage-label{max-width:240px;overflow:hidden;text-overflow:ellipsis;font-weight:700}.quarter-track{display:none}.world-wrap{grid-row:2;grid-column:1;position:relative;min-width:0;min-height:0;overflow:hidden;container-type:size;background:#d9bea5;border:3px solid var(--ink);border-radius:12px}#world{position:relative;margin:0 auto;width:calc(100cqh * 20 / 13);height:100cqh;overflow:hidden}.world-wrap.can-pan{cursor:grab}.world-wrap.can-pan:active{cursor:grabbing}#world canvas,.arena-canvas canvas{position:absolute!important;inset:0;margin:0!important;width:100%!important;height:100%!important;display:block;touch-action:none}.world-footer{position:relative;z-index:2;grid-row:2;grid-column:1;align-self:end;margin:0 12px 12px;display:flex;gap:8px;align-items:center;pointer-events:none}.world-footer button{pointer-events:auto;box-shadow:0 3px 9px #30283e26}.serve-button{display:flex;gap:7px;align-items:center;min-height:44px;padding:8px 12px;border:2px solid var(--ink);border-radius:8px;background:var(--lime);font-weight:700;font-size:13px}.serve-button kbd{font:10px var(--body)}.boardroom-button{margin-left:auto;font-size:13px}.world-footer .icon-button{border:2px solid var(--ink);background:var(--white)}.goal-banner{position:absolute;z-index:2;top:42px;left:11px;max-width:min(440px,calc(100% - 22px));display:flex;align-items:center;gap:12px;padding:9px 12px;background:var(--paper);border:2px solid var(--ink);border-radius:8px}.goal-banner h2{font-size:18px}.goal-banner p{font-size:12px;line-height:1.35;margin-top:3px}.action-reason{display:block;font:11px var(--body);line-height:1.25;color:var(--ink)}.goal-actions{flex:none;display:flex;align-items:center;gap:6px}.goal-actions .primary{font-size:12px;padding:6px 9px}.goal-actions .text-button{font-size:11px}.work-explanation{position:relative;z-index:2;grid-row:2;grid-column:1;align-self:end;justify-self:end;margin:0 13px 65px;max-width:400px;color:var(--ink);font-size:12px;padding:4px 8px;background:#fffaf0e8;border-radius:5px}.ops{grid-row:3;grid-column:1;min-height:0;display:grid;grid-template-rows:42px 60px 24px}.ops-heading{display:flex;align-items:center;gap:7px;min-width:0}.ops-heading #tradeoffs-button{margin-left:auto;font-size:12px}.ops-heading .icon{width:17px;height:17px}.ops-heading .chip{min-height:36px;font-size:12px}#open-career{min-height:36px;font-size:13px;background:var(--lime)}#open-career.promotion-ready{background:var(--orange)}.ops-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;min-width:0}.operation{display:grid;grid-template-columns:29px 1fr;gap:3px 7px;align-content:center;padding:7px 11px;text-align:left;background:var(--white);border:2px solid var(--ink);border-radius:8px}.operation .icon{grid-row:1 / 3;align-self:center;color:var(--orange-deep);width:25px;height:25px}.operation:hover:not(:disabled){background:var(--lilac)}.operation-name{font-size:13px;font-weight:700;line-height:1.2}.operation-cost{font:13px var(--body)}.operation-tag{display:none}.operation-feedback{display:flex;align-items:center;gap:10px;min-width:0}.ops-note{flex:1;min-width:0;font-size:11px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.operation-feedback .text-button{min-height:24px;font-size:11px}.toast{position:fixed;z-index:30;left:50%;bottom:150px;transform:translate(-50%);max-width:min(540px,90vw);padding:10px 15px;color:var(--white);background:var(--ink);border-radius:8px;font-size:13px;text-align:center}.on-title .hud,.on-title .world-heading,.on-title .goal-banner,.on-title .ops,.on-title .world-footer,.on-title .work-explanation{display:none}.on-title .brand{visibility:hidden}.on-title .header-right{margin-left:auto;color:var(--white)}.on-title .game-shell{padding:0}.on-title .world-panel{display:block}.on-title .world-wrap{height:100%;border:0;border-radius:0}.on-title #world{position:absolute;inset:0;margin:auto;width:min(100cqw,calc(100cqh * 20 / 13));height:min(100cqh,65cqw)}.on-title .save-status{display:none}.start-screen{position:absolute;inset:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(350px,440px);gap:40px;padding:60px 5vw 24px;background:#30283e45}.title-logo{align-self:start;padding-top:24px;transform:rotate(-3deg);color:var(--white);text-shadow:0 3px 8px #30283e80}.title-logo h2{font:400 clamp(64px,8.5vw,124px)/1 var(--display);letter-spacing:-.025em;-webkit-text-stroke:2px var(--ink);paint-order:stroke fill}.title-logo h2 em{color:var(--orange);font-style:normal}.title-logo p{margin-top:44px;font:27px/1.1 var(--display)}.title-logo>span{display:block;font-size:13px;margin-top:8px}.start-panel{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:0;overflow:hidden;border:3px solid var(--ink);border-radius:12px;background:var(--paper);box-shadow:var(--shadow)}.start-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 16px;border-bottom:2px solid var(--ink);background:var(--lilac)}.start-panel-heading h3{font-size:25px}.start-panel-links{display:flex;gap:12px}.start-setup{min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px}.startup-select{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.startup-choice{min-height:52px;padding:7px 5px;background:var(--white);border:2px solid var(--line);border-radius:7px;font-weight:700;font-size:11px;display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center}.startup-choice.selected,.role-choice.selected{border-color:var(--ink);background:var(--lime)}.start-tagline{font-size:12px;margin:9px 0 16px}.role-picker{min-width:0;padding:0;margin:0;border:0}.role-picker legend{font-size:12px;font-weight:700;margin-bottom:8px}.role-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.role-choice{display:grid;grid-template-columns:32px 1fr;gap:4px 7px;align-content:center;text-align:left;min-height:85px;padding:10px;background:var(--white);border:2px solid var(--line);border-radius:8px}.role-choice .icon{width:30px;height:30px;grid-row:1 / 3;align-self:center}.role-choice strong{font:19px/1 var(--display)}.role-choice>span{font-size:10px;line-height:1.3}#role-description{min-height:54px;font-size:12px;line-height:1.4;margin:12px 0 6px}.start-settings{border-top:1px solid var(--line);font-size:12px}.start-settings summary{cursor:pointer;padding:12px 0;min-height:44px;font-weight:700}.mode-choice,.contract-choice{display:block;font-size:12px;margin:8px 0;font-weight:700}.mode-choice select,.contract-choice select{display:block;margin-top:6px;min-height:44px;width:100%;min-width:0;font:12px var(--body);padding:8px;border:1px solid var(--ink);border-radius:6px;background:var(--white);color:var(--ink)}.contract-description{font-size:12px;margin:8px 0}.daily-choice{display:flex;align-items:center;gap:8px;min-height:44px;font-size:12px}.daily-choice input{width:18px;height:18px}.start-actions{padding:12px 16px;border-top:2px solid var(--ink);background:var(--white)}.start-actions .primary,.switch-career{width:100%}.replacement-note{font-size:12px;line-height:1.4;margin-top:7px}@media(max-width:900px){.site-header{height:48px;padding:2px 10px}.brand-mark{width:30px;height:34px}.brand-name{font-size:18px}.brand-name span{font-size:12px}.how-button{font-size:0;padding:0 4px}.hud{top:51px;left:12px;right:12px;height:39px;gap:10px}.hud-stat{grid-template-columns:18px 1fr;column-gap:5px}.hud-stat>.icon{width:17px;height:17px}.hud-value{font-size:20px}.game-shell{padding-top:96px}.world-panel{grid-template-rows:30px minmax(0,1fr) 126px}.world-heading h1{font-size:20px}.start-screen{gap:20px;grid-template-columns:minmax(0,1fr) minmax(330px,420px);padding:54px 20px 16px}.title-logo h2{font-size:64px}.title-logo p{font-size:23px}}@media(max-width:600px){.game-shell{padding-inline:8px;padding-bottom:9px}.hud{left:9px;right:9px;gap:8px}.hud-stat{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.hud-stat>.icon{display:none}.hud-label{font-size:10px}.hud-value{font-size:19px}.stress-meter{left:0;right:7px;bottom:-3px}.world-panel{grid-template-rows:29px minmax(0,1fr) 184px}.quarter-tag{gap:7px;font-size:10px}.stage-label{max-width:125px;font-size:10px}.goal-banner{top:36px;left:6px;max-width:calc(100% - 12px);padding:7px 8px;gap:7px}.goal-banner h2{font-size:16px}.goal-banner p{font-size:11px}.goal-actions{gap:2px;flex-direction:column}.goal-actions .primary{min-height:34px;padding:5px 6px;font-size:11px}.goal-actions .text-button{min-height:44px;min-width:44px}.world-footer{margin:0 9px 9px;gap:5px}.serve-button,.boardroom-button{font-size:11px;padding:7px}.serve-button kbd{display:none}.world-footer .icon{width:18px;height:18px}.work-explanation{margin:0 10px 60px;justify-self:stretch;font-size:11px;max-width:none}.ops{grid-template-rows:44px 112px 28px}.ops-heading{gap:5px}#open-career,.ops-heading .chip{font-size:11px;padding:5px 7px}.ops-heading #tradeoffs-button{font-size:0;width:36px;flex:none}.ops-heading #tradeoffs-button .icon{width:22px;height:22px}.ops-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:5px}.operation{padding:5px 6px;grid-template-columns:21px 1fr;gap:2px 5px}.operation .icon{width:20px;height:20px}.operation-name,.operation-cost{font-size:11px}.ops-note{font-size:10px}.toast{bottom:200px;font-size:12px}.save-status{display:none}.start-screen{display:flex;flex-direction:column;gap:10px;padding:48px 12px 12px}.title-logo{padding:0;transform:rotate(-2deg);flex:none}.title-logo h2{font-size:clamp(38px,12.5vw,53px);line-height:1}.title-logo h2 br{display:none}.title-logo h2 em{margin-left:8px}.title-logo p{margin-top:7px;font-size:20px}.title-logo>span{display:none}.start-panel{width:100%;flex:1}.start-panel-heading{padding:6px 12px}.start-panel-heading h3{font-size:22px}.start-setup{padding:12px}.role-choice{min-height:76px;padding:7px;grid-template-columns:24px 1fr}.role-choice .icon{width:23px;height:23px}.role-choice strong{font-size:17px}.role-choice>span{font-size:9px}.start-actions{padding:10px 12px}.start-actions .primary{font-size:13px}}@media(max-height:500px)and (min-width:601px){.site-header{height:46px}.hud{top:5px;left:190px;right:150px}.header-right .how-button{display:none}.game-shell{padding-top:48px;padding-bottom:4px}.world-panel{grid-template-rows:24px minmax(0,1fr) 96px}.ops{grid-template-rows:36px 60px}.operation-feedback{display:none}.operation{padding:4px 7px;grid-template-columns:20px 1fr;gap:2px 5px}.operation .icon{width:20px;height:20px}.operation-name,.operation-cost{font-size:11px}.goal-banner{top:29px;max-width:370px;padding:4px 8px}.goal-banner p{display:none}.goal-actions{flex-direction:row}.world-footer{margin-bottom:7px}.work-explanation{display:none}.start-screen{padding:48px 14px 10px}.title-logo{padding-top:18px}.title-logo h2{font-size:64px}.title-logo>span{display:none}.start-panel-heading{padding-block:3px}.start-actions{padding-block:7px}}.clock-paused{opacity:.65}.glossary-chip{min-height:44px;padding:3px 6px;font:inherit;color:inherit;text-align:left;background:transparent;text-decoration:underline dotted;border:0;border-radius:4px}.hud .glossary-chip{min-height:28px;align-self:center}#runway-value{grid-column:2;font-size:9px;line-height:1;white-space:nowrap}.hud-stat:has(#runway-value:not([hidden])){gap:0 7px}.hud-stat:has(#runway-value:not([hidden])) .hud-value{font-size:20px}.arcade-dialog{width:min(1100px,calc(100vw - 16px));height:min(900px,calc(100dvh - 16px));max-width:none;max-height:none;padding:0;overflow:hidden}.arcade-dialog[open]{display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto auto auto}.arena-header{grid-row:1;display:flex;gap:12px;align-items:center;justify-content:space-between;padding:10px 16px;background:var(--lilac);border-bottom:2px solid var(--ink)}.arena-title{display:flex;align-items:center;gap:10px;min-width:0}.arena-title h2{font-size:26px}.arena-title p{font-size:12px;line-height:1.35;margin-top:3px}.arena-title>span{flex:none}.arena-phase{grid-row:2;min-height:27px;padding:5px 10px;font-size:12px;font-weight:700;text-align:center;background:var(--lime)}.arena-phase:empty{display:none}.arena-phase.urgent{background:var(--orange)}.arena-status{grid-row:3;display:flex;align-items:center;justify-content:center;gap:16px;min-height:40px;padding:5px 12px;background:var(--paper)}.scoreboard{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:700}.scoreboard b{font:25px var(--display)}.versus{font-size:10px}.timer{font:22px var(--display);color:var(--white);background:var(--ink);border-radius:6px;padding:3px 10px}.strength-tracker{display:flex;gap:7px}.strength-dot{width:27px;height:27px;display:grid;place-items:center;border:2px solid var(--ink);border-radius:50%;font-size:12px}.strength-dot.hit{background:var(--lime)}.strength-dot.miss{background:#efbdaf}.arena-world{grid-row:4;position:relative;min-height:0;overflow:hidden;container-type:size;background:#e6d8f0}.arena-canvas{position:absolute;inset:0;margin:auto;width:min(100cqw,calc(100cqh * 20 / 13));height:min(100cqh,65cqw)}.arena-cover{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:14px;background:#f6f0e3e8}.arena-cover-inner{display:flex;flex-direction:column;min-height:0;max-height:100%;width:min(100%,620px);text-align:center}.encounter-brief,.result-copy{min-height:0;overflow:auto;overscroll-behavior:contain;padding:4px}.arena-cover h3{font-size:32px;margin-bottom:10px}.arena-cover p{font-size:13px;line-height:1.5;margin:9px auto;max-width:60ch}.arena-cover-inner>.primary{flex:none;align-self:center;min-width:190px;margin-top:10px}.stakes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;text-align:left;margin:12px 0}.stake{padding:10px;border-radius:7px;background:var(--white);font-size:12px;line-height:1.4}.stake strong{display:block;color:#426323;margin-bottom:4px}.stake.loss strong{color:var(--danger)}.familiar-label{color:var(--muted);font-size:12px}#result-panel{background:#30283e44}#result-panel .arena-cover-inner{background:var(--paper);border:2px solid var(--ink);border-radius:10px;padding:17px;box-shadow:var(--shadow);animation:motion-carried .3s cubic-bezier(.16,1,.3,1)}.result-score{font:35px var(--display);color:var(--orange-deep);margin:8px 0}.result-lesson{color:var(--muted);font-size:12px!important}.result-actions{flex:none;display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin-top:12px}.result-actions button{font-size:12px}.encounter-receipt{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:10px 0}.encounter-receipt:empty{display:none}.encounter-receipt>div{padding:7px 10px;border-radius:7px;background:var(--lime);font-size:11px}.encounter-receipt span,.encounter-receipt strong{display:block}.encounter-receipt strong{font-size:14px;margin-top:3px}.restore-result,.practice-best{font-size:12px!important;background:var(--white);padding:8px;border-radius:7px}.arena-controls{grid-row:7;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 14px;padding:10px 16px;background:var(--paper);border-top:2px solid var(--ink)}.arena-instruction{font-size:12px;max-width:40ch}.arena-instruction strong{display:block;font-size:14px;margin-bottom:4px}.keyboard-hint{display:block;font-size:11px;margin-top:4px;color:var(--muted)}.arcade-coaching{font-size:12px;text-align:center;flex-basis:100%}.arcade-coaching:empty{display:none}.aim-controls{display:flex;gap:12px}.aim-controls label{display:flex;flex-direction:column;gap:4px;font-size:11px}.aim-controls input{width:85px;min-height:24px}.arena-controls .primary{font-size:13px}.memory-board{position:absolute;inset:6% 5%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.memory-card{position:relative;overflow:hidden;isolation:isolate;backface-visibility:hidden;min-height:0;background:var(--lilac);color:var(--ink);border:2px solid var(--ink);border-radius:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font:20px var(--display)}.memory-card.open{background:var(--table-color,var(--white));animation:table-reveal .22s cubic-bezier(.16,1,.3,1)}.memory-card.matched{background:var(--lime);animation:table-filed .38s cubic-bezier(.16,1,.3,1)}.memory-card:disabled{opacity:1}.memory-card.matched:after{content:"RESTORED";position:absolute;right:5px;bottom:6px;padding:2px 4px;border:1px solid #426323;color:#426323;background:var(--lime);border-radius:2px;font:10px var(--display);transform:rotate(-8deg)}.assignment-controls{grid-row:5;padding:10px 15px;background:var(--paper);border-top:2px solid var(--ink)}#assignment-job{font-size:14px;font-weight:700;line-height:1.35}#assignment-resources{font-size:12px;margin:6px 0 9px}.assignment-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.assignment-actions button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:7px;font-size:12px}#assignment-feedback{font-size:12px;line-height:1.4;margin:8px 0 0}.traffic-controls{grid-row:6;padding:9px 15px;border-top:2px solid var(--ink);background:var(--paper)}.traffic-controls>p{font-size:13px;font-weight:700;margin-bottom:8px}.traffic-controls>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.traffic-controls button{font-size:12px;padding:8px}@keyframes table-reveal{0%{transform:perspective(600px) rotateY(-65deg)}to{transform:perspective(600px) rotateY(0)}}@keyframes table-filed{0%{transform:scale(.9)}45%{transform:scale(1.035)}to{transform:scale(1)}}@keyframes motion-carried{0%{transform:scale(.95) rotate(-2deg)}to{transform:scale(1) rotate(0)}}body:has(dialog[open]:not(#arcade-dialog)) .memory-card,body:has(dialog[open]:not(#arcade-dialog)) #result-panel .arena-cover-inner{animation-play-state:paused}@media(prefers-reduced-motion:reduce){.memory-card.open,.memory-card.matched,#result-panel .arena-cover-inner{animation:none}}@media(max-width:600px){.arcade-dialog{width:calc(100vw - 10px);height:calc(100dvh - 10px)}.arena-header{padding:7px 10px}.arena-title{gap:7px}.arena-title h2{font-size:21px}.arena-title p{font-size:11px}.arena-title>span{display:none}.arena-cover{padding:10px}.arena-cover h3{font-size:26px}.arena-cover p{font-size:12px}.arena-cover-inner>.primary{min-width:160px}.stakes{gap:7px}.stake{padding:7px;font-size:11px}.arena-controls{padding:9px;gap:7px}.arena-instruction{flex-basis:100%;max-width:none;font-size:11px}.arena-instruction strong{font-size:13px}.keyboard-hint{display:none}.aim-controls{gap:9px}.aim-controls input{width:72px}.arena-controls .primary{padding:8px;font-size:12px}.memory-board{inset:5% 4%;gap:6px}.memory-card{font-size:13px}.memory-card .icon{width:23px;height:23px}.memory-card.matched:after{font-size:8px;right:3px;bottom:4px;padding:1px 2px}.assignment-controls{padding:10px}.assignment-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.assignment-actions button{font-size:11px;padding:7px 4px}#assignment-job{font-size:13px}#assignment-resources,#assignment-feedback{font-size:11px}#assignment-feedback{min-height:4.2em}.result-score{font-size:29px}#result-panel .arena-cover-inner{padding:12px}.result-actions button{min-height:44px;padding:8px}.traffic-controls{padding:9px}.traffic-controls>p{font-size:12px}.traffic-controls button{font-size:11px;padding:7px 4px}}@media(max-height:500px)and (min-width:601px){.arcade-dialog[open]{grid-template-columns:minmax(0,1fr) 280px;grid-template-rows:46px 24px 36px minmax(0,1fr)}.arena-header{grid-column:1 / -1;padding:3px 10px}.arena-title h2{font-size:20px}.arena-title p{display:none}.arena-phase,.arena-status{grid-column:1}.arena-world{grid-column:1;grid-row:4}.assignment-controls,.traffic-controls,.arena-controls{grid-column:2;grid-row:2 / -1;min-height:0;overflow:auto;border-top:0;border-left:2px solid var(--ink);padding:10px}.arena-controls{flex-direction:column;justify-content:flex-start;flex-wrap:nowrap}.assignment-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.assignment-actions button{font-size:11px}.arcade-dialog:has(#intro-panel:not([hidden])) .arena-world,.arcade-dialog:has(#result-panel:not([hidden])) .arena-world{grid-column:1 / -1}.arena-cover h3{font-size:23px}.arena-cover p{font-size:12px}}.botched-launch{color:var(--danger)}
