.budget-room{--budget-ink:#334b52;--budget-blue:#547982;--budget-paper:#f4f2e8;--budget-line:#bec7bd;color:var(--budget-ink);width:100%;max-width:1320px;margin:auto}
.game-shell.wide:has(.budget-room) .play{width:100%;align-self:start;margin:auto}
.game-shell .play .budget-room .session-banner{max-width:none;text-align:left;margin:0 0 .7rem}
.game-shell .play .budget-room .session-banner .meta{margin-inline:0;text-align:left}
.game-shell.wide .play .budget-room h2{text-align:left;font-size:clamp(1.5rem,2.3vw,2.15rem);line-height:1.25}
.game-shell .play .budget-room p{text-align:left;line-height:1.5}
.game-shell .play .budget-room button{min-height:44px;white-space:normal}
.budget-room .actions{justify-content:flex-start;gap:.6rem}
.budget-status{display:flex;gap:2rem;align-items:center;flex-wrap:wrap;border-top:2px solid var(--budget-ink);border-bottom:1px solid var(--budget-line);padding:.65rem 0;margin-bottom:1.1rem}
.budget-status>div{display:flex;align-items:baseline;gap:.6rem}.budget-status span{font-size:.85rem}.budget-status strong{font:650 2rem ui-monospace,monospace}.budget-status small{font-size:1rem;font-weight:400}.game-shell .play .budget-room .budget-status p{margin:0 0 0 auto;font-size:.85rem;color:#606866}
.budget-desk{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.38fr);gap:1.6rem;align-items:start}
.budget-orders{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;text-align:left;align-items:start}
.budget-order{background:var(--budget-paper);border:1px solid #c6c7b8;border-top:5px solid #758f91;box-shadow:3px 3px 0 #e0e4dc;padding:.85rem;min-width:0;position:relative}
.budget-order:before{content:'';position:absolute;top:7px;left:50%;transform:translateX(-50%);height:4px;width:25px;border-radius:5px;background:#bac3b7}
.budget-order header{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem;padding:.5rem 0 .8rem;border-bottom:1px dashed #c0c7b8}.budget-order h3{font-size:1.1rem;margin:0}.budget-order header strong{font:600 1rem ui-monospace,monospace;white-space:nowrap}
.budget-order-stock{display:grid;gap:.4rem;margin:.8rem 0}.budget-order-stock>button,.budget-order-stock>div{display:flex;align-items:center;gap:.55rem;width:100%;position:relative;min-height:52px;border:1px solid #b9c3b6;border-radius:3px;padding:.35rem .55rem;background:#fffdf6;color:var(--budget-ink);font:inherit;font-size:.9rem;text-align:left}
.game-shell .play .budget-room .budget-order-stock button{min-height:52px;font-size:.9rem}.budget-order-stock>button:not(:disabled):hover{border-color:#547982;background:#e7eee9}.budget-order-stock>button[aria-pressed=true]{outline:3px solid #547982;outline-offset:-1px;background:#dbe7e6}.budget-order-stock>button:disabled{opacity:.45}.budget-order-stock strong{margin-left:auto;font:600 1rem ui-monospace,monospace;white-space:nowrap}.budget-order-stock i{position:absolute;top:-.4rem;right:-.4rem;font-size:.75rem;border-radius:50%;background:#334b52;color:#fff;width:18px;height:18px;line-height:18px;text-align:center;font-style:normal}
.budget-symbol{width:31px;height:31px;flex:none;stroke:#35474c;stroke-width:2;fill:#d8bc7e}.budget-symbol-1{fill:#8dada6}.budget-symbol-2{fill:#b594a2}
.budget-order dl{font-size:.85rem;line-height:1.45;display:grid;gap:.5rem;margin:.7rem 0 0}.budget-order dl>div{display:grid;gap:.1rem}.budget-order dt{color:#606866;font-size:.75rem}.budget-order dd{margin:0;overflow-wrap:anywhere}.game-shell .play .budget-room .budget-complete{font-size:.8rem;font-weight:650;color:#54734e;margin:.7rem 0 0}
.budget-preview{text-align:left;border-left:2px solid #8aa0a1;padding-left:1.2rem;min-width:0}.budget-preview h3{font-size:1rem;margin:.1rem 0 .7rem}.game-shell .play .budget-room .budget-waiting{font-size:.9rem;min-height:66px;color:#606866;margin:1rem 0}
.budget-offer-pair{display:flex;align-items:center;gap:.6rem;min-height:85px}.budget-offer-pair>div{display:grid;grid-template-columns:auto 1fr;gap:.25rem .5rem;align-items:center;flex:1;min-width:0}.budget-offer-pair .budget-symbol{grid-row:1/3}.budget-offer-pair strong{font-size:.85rem}.budget-offer-pair>div>span{font-size:.75rem}.budget-exchange{font-size:1.5rem;color:#4d6f78}
.budget-preview-total{display:flex;align-items:baseline;gap:.6rem;flex-wrap:wrap;padding:.65rem 0;border-top:1px solid #c4cbbb;border-bottom:1px solid #c4cbbb;margin-bottom:.65rem}.budget-preview-total>span{font-size:.8rem;width:100%}.budget-preview-total strong{font:600 1.35rem ui-monospace,monospace}.budget-preview-total b{font:600 1rem ui-monospace,monospace;margin-left:auto;color:#4d6f78}
.budget-impact{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}.budget-impact h4{font-size:.85rem;margin:.3rem 0}.game-shell .play .budget-room .budget-impact p{font-size:.75rem;margin:.3rem 0}.budget-impact>section>strong{font-size:.8rem;display:block;margin:.5rem 0 .8rem}.budget-mini-stock{display:flex;gap:.4rem;flex-wrap:wrap}.budget-mini-stock>span{display:flex;align-items:center;gap:.2rem;font-size:.8rem}.budget-mini-stock .budget-symbol{width:19px;height:19px}.budget-mini-stock [data-budget-quantity="0"]{opacity:.4}
.game-shell:not(.theme-wolf) .play .budget-room .budget-preview .button.cta{width:100%;margin-top:.5rem;background:var(--budget-blue);border-color:var(--budget-blue);color:#fff;font-size:.95rem}.game-shell:not(.theme-wolf) .play .budget-room .budget-preview .button.cta:disabled{background:#e2e8eb;color:#495b68;border-color:#aebcc3;opacity:1;cursor:default}.budget-preview .actions{margin:.3rem 0 0}.game-shell .play .budget-room .budget-warning{font-size:.85rem;color:#8d5d43;margin:.6rem 0}
.budget-ledger{list-style:none;margin:1.2rem 0;padding:0;border-top:1px solid var(--budget-line);text-align:left}.budget-ledger li{border-bottom:1px solid var(--budget-line)}.game-shell .play .budget-room .budget-ledger button{display:block;width:100%;border:0;background:transparent;color:#476f79;font:inherit;font-size:.9rem;padding:.6rem .2rem;text-align:left;min-height:44px}
.budget-history-select{display:grid;gap:.4rem;max-width:850px;text-align:left;font-size:.85rem;margin:1rem 0}.budget-history-select select{min-height:44px;width:100%;font:inherit;font-size:1rem;padding:.5rem;overflow:hidden;text-overflow:ellipsis}.game-shell .play .budget-room .budget-readonly{font-size:.9rem;max-width:850px;margin:.5rem 0}
.budget-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(min-width:1050px) and (max-height:780px){.game-shell.wide .play .budget-room .session-banner{margin-bottom:.4rem}.game-shell.wide .play .budget-room .session-banner .meta{font-size:.85rem}.budget-status{padding:.4rem 0;margin-bottom:.8rem}.budget-status strong{font-size:1.7rem}.budget-order{padding:.7rem}.budget-order-stock{margin:.6rem 0}.budget-order header{padding-bottom:.5rem}.budget-room>.actions{margin-top:.8rem}.budget-preview h3{margin-bottom:.4rem}}
@media(max-width:1049px){.budget-desk{grid-template-columns:1fr;gap:1.4rem}.budget-preview{border-left:0;border-top:2px solid #8aa0a1;padding:1rem 0 0}.budget-preview .budget-impact{max-width:600px}.budget-preview-total{max-width:600px}.budget-offer-pair{max-width:450px}.game-shell .play .budget-room .budget-waiting{min-height:0}.budget-preview .button{max-width:600px}.budget-status{gap:1rem}.game-shell .play .budget-room .budget-status p{margin-left:0;width:100%}}
@media(max-width:600px){.budget-orders{grid-template-columns:1fr;gap:1rem}.budget-order{padding:.8rem}.budget-order-stock{grid-template-columns:repeat(3,minmax(0,1fr))}.budget-order-stock>button,.budget-order-stock>div{flex-wrap:wrap;justify-content:center;gap:.3rem;padding:.45rem .2rem;text-align:center}.budget-order-stock>button>span,.budget-order-stock>div>span{width:100%;font-size:.8rem}.budget-order-stock strong{margin:0}.budget-order-stock .budget-symbol{width:29px;height:29px}.budget-order dl{grid-template-columns:1fr 1fr;gap:.8rem}.budget-order .budget-complete{position:absolute;right:.8rem;top:.3rem;font-size:.75rem!important}.budget-order:has(.budget-complete) header strong{visibility:hidden}.budget-status>div{gap:.35rem}.budget-status strong{font-size:1.8rem}.budget-status span{font-size:.8rem}.budget-status{column-gap:1.4rem}.budget-impact{grid-template-columns:1fr 1fr}}
@media(prefers-reduced-motion:reduce){.budget-room *{scroll-behavior:auto}}

.page-game .game-shell.theme-budget:not(.theme-wolf) {
  --budget-navy:#162b49;
  --budget-deep-blue:#154699;
  --budget-cream:#fff7e9;
  --budget-trim:#647e91;
  --brand:var(--budget-deep-blue);
  --stage-ink:var(--budget-navy);
  --soft:var(--budget-cream);
  --line:#a0adae;
  background:
    repeating-linear-gradient(132deg,transparent 0 3px,#28577309 3px 4px),
    radial-gradient(ellipse at top left,#e3f0f3,#b9d8e7 82%);
}
.page-game .game-shell.theme-budget .play {background:transparent;color:var(--budget-navy)}
.page-game .game-shell.theme-budget .game-toolbar {background:#fbf7ed}
.page-game .game-shell.wide.theme-budget .play:has(.budget-room) {
  max-width:100rem;
  min-height:0;
  margin-inline:auto;
  padding:clamp(.8rem,3vw,2.55rem) clamp(.75rem,3.5vw,3rem);
}
.budget-room {
  --budget-ink:var(--budget-navy);
  --budget-blue:var(--budget-deep-blue);
  --budget-paper:var(--budget-cream);
  --budget-line:var(--budget-trim);
  max-width:92rem;
}
.game-shell .play .budget-room .session-banner h2 {
  color:var(--budget-ink);
  font-size:clamp(1.7rem,min(4vw,6.5vh),3.4rem);
  font-weight:850;
  line-height:1.08;
  letter-spacing:-.034em;
}
.game-shell .play .budget-room .session-banner .meta {color:var(--budget-blue);font-weight:800}
.game-shell .play .budget-room .budget-status p {color:#314d68}
.budget-desk {gap:clamp(1rem,2vw,2rem)}
.budget-order {
  border:1px solid #a59e91;
  border-radius:.75rem;
  border-bottom:3px solid #b3a38b;
  box-shadow:0 6px 13px #2b4a6530;
  padding:clamp(.65rem,1.1vw,1rem);
  background:linear-gradient(140deg,#fff9ef,#fbeddb);
}
.budget-order::before {
  top:-.26rem;
  width:2.55rem;
  height:.55rem;
  border:1px solid #64666a;
  background:linear-gradient(#e9dfcc,#9a9385 54%,#d4c9b5);
  box-shadow:0 2px 2px #4d4b4142;
}
.budget-order header {border-color:#a2937e}
.budget-order h3 {color:var(--budget-ink);font-size:clamp(1.12rem,2.1vw,1.7rem);line-height:1.1}
.budget-order-stock > :is(button,div) {border-color:#b49f81;border-radius:.4rem;color:var(--budget-ink)}
.budget-order-stock > button:not(:disabled):hover {background:#dcebf4;border-color:var(--budget-blue)}
.budget-order-stock > button[aria-pressed=true] {
  background:#cde7f7;
  outline:2px solid var(--budget-blue);
}
.budget-order-stock > button:disabled {opacity:1;background:#f2e8d8;color:#665a4e}
.budget-order-stock > button:disabled .budget-symbol {opacity:.62}
.budget-order-stock i {background:var(--budget-blue)}
.budget-order dt {color:#65563f}
.budget-order dd {font-weight:750}
.budget-symbol {fill:#f4be39;stroke:#785016;stroke-width:2.2;filter:drop-shadow(0 2px 1px #574c4236)}
.budget-symbol-1 {fill:#75b587;stroke:#2b624a}
.budget-symbol-2 {fill:#ec907d;stroke:#84453a}
.budget-preview {
  padding:clamp(.9rem,1.5vw,1.3rem);
  border:1px solid #9eabac;
  border-radius:.68rem .68rem .3rem .3rem;
  background:linear-gradient(155deg,#fffdfa,#fff4e4);
  box-shadow:0 6px 14px #2b4a6530;
}
.budget-preview h3 {font-weight:850;font-size:clamp(1.08rem,1.65vw,1.45rem)}
.budget-preview-total strong {font-size:clamp(1.38rem,2.2vw,2.02rem)}
.budget-preview-total b {
  padding:.18rem .53rem;
  color:#173b2b;
  background:#d7e9cc;
  border-radius:.35rem;
}
.budget-preview-total b[data-budget-delta^="-"] {color:#812c2c;background:#fae3de}
.budget-preview-total b[data-budget-delta="0"] {color:#414e62;background:#e3e8ec}
.budget-mini-stock [data-budget-quantity="0"] {opacity:1;color:#665a4e}
.page-game .game-shell.theme-budget .budget-room .button.cta {
  color:#fffaf1;
  background:var(--budget-blue);
  border-color:var(--budget-blue);
}
.page-game .game-shell.theme-budget .budget-room .button.cta:disabled {
  color:#495b68;background:#e2e8eb;border-color:#aebcc3;opacity:1;
}
.page-game .game-shell.theme-budget :is(.budget-room .button.secondary,.game-toolbar .button) {
  color:var(--budget-ink);background:#fffaf1;border-color:#768da5;
}
.game-shell .play .budget-room .budget-ledger button {color:var(--budget-blue)}
.budget-room :is(button,select):focus-visible {outline:3px solid #884820;outline-offset:2px}
@media (min-width:1050px) and (max-height:780px) {
  .page-game .game-shell.wide.theme-budget .play:has(.budget-room) {padding-block:.9rem}
  .budget-offer-pair {min-height:4rem}
  .budget-preview {padding-block:.72rem}
}
@media (max-width:600px) {
  .budget-order:has(.budget-complete) header strong {visibility:visible}
  .budget-order .budget-complete {position:static}
  .budget-preview .budget-symbol {width:1.6rem;height:1.6rem}
  .budget-preview .budget-mini-stock .budget-symbol {width:1rem;height:1rem}
}
