/* Vertical auction card. Project details may scroll; quote and controls stay visible. */
.compact-auction .auction-project .auction-seller-identity{display:flex;justify-content:center;align-items:baseline;gap:2px;margin:2px 0 10px;font-size:14px;line-height:1.4;color:#b9c9ad;overflow-wrap:anywhere}
.compact-auction .auction-seller-identity strong{min-width:0;font-size:inherit;font-weight:600;color:#edd49a}
.compact-auction .auction-seller-identity span{flex-shrink:0}
/* All auction seats share the financial layout; normal seats keep their layout. */
body .game-table .seat-card.auction-seat-finances .seat-finances{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-areas:'cash worth' 'flow flow'!important;gap:4px!important}
body .game-table .seat-card.auction-seat-finances .seat-finances>.seat-bitcoin,body .game-table .seat-card.auction-seat-finances .seat-finances>.seat-month-income,body .game-table .seat-card.auction-seat-finances .seat-finances>.seat-month-expense{display:none!important}
body .game-table .seat-card.auction-seat-finances .seat-finances>.seat-cash,body .game-table .seat-card.auction-seat-finances .seat-finances>.seat-worth{display:flex!important;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;padding:4px 7px!important}
body .game-table .seat-card.auction-seat-finances .seat-finances>.seat-flow{display:flex!important;flex-direction:row!important;align-items:baseline;justify-content:space-between;gap:6px;padding:0 7px!important;background:none;border:0}
body .game-table .seat-card.auction-seat-finances .seat-finances>.seat-flow strong{font-size:12px!important;line-height:1.2!important}
body .game-table .seat-card.auction-seat-finances .seat-finances>.seat-flow span{font-size:10px!important;line-height:1.2!important}
@container seat (min-height:250px){
 body .game-table .seat-card.auction-seat-finances .seat-finances{grid-template-areas:'btc btc' 'cash worth' 'flow flow'!important}
 body .game-table .seat-card.auction-seat-finances .seat-finances>.seat-bitcoin{display:block!important}
}
body .board-center.turn-auction-center:has(.compact-auction){padding:4px}
body .board-center .compact-auction.board-auction-card{width:min(600px,100%);max-width:100%;gap:7px;padding:10px 20px;text-align:left;border-radius:21px}
body .board-center .compact-auction .board-auction-top{padding-bottom:6px;gap:8px}
body .board-center .compact-auction .board-card-category{padding-block:3px;line-height:1.2}
body .board-center .compact-auction .board-auction-content{display:flex;flex-direction:column;gap:7px;padding:0;min-width:0;min-height:0;overflow:hidden}
body .board-center .compact-auction .auction-project{min-width:0;min-height:45px;flex:0 1 auto;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin;scrollbar-color:#83956b #172c20;scroll-padding-block:5px}
body .board-center .compact-auction .auction-bidding{min-width:0;flex:none}
body .board-center .compact-auction h2{font:800 27px/1.25 system-ui;text-align:center;margin:0 0 7px;text-wrap:pretty;overflow-wrap:anywhere;letter-spacing:.025em}
.auction-project-facts{padding:8px 10px;border:1px solid #9fb4813c;border-radius:13px;background:#10261b85}
.auction-payroll{display:flex;justify-content:center;align-items:baseline;gap:10px;padding:1px 0 7px;border-bottom:1px solid #b6c29738;flex-wrap:wrap}
.auction-payroll>span{font:500 13px/1.4 system-ui;color:#bdcdb4}
.auction-payroll>strong{color:#d4e9ac;font:850 26px/1.2 system-ui;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.auction-payroll>strong.down{color:#f5b09d}
body .board-center .compact-auction .auction-payback{margin:7px 0 0;font:500 14px/1.5 system-ui;text-align:center;color:#d0d8bc}
.auction-payback b{color:#ffe1a0;font-size:20px;line-height:1.2;margin:0 3px}
.auction-outcome-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 10px;font:500 12px/1.5 system-ui;color:#c8d3b7;margin-bottom:7px}
.auction-outcome-heading b{font-weight:700;color:#edcf94}
.auction-outcomes{display:grid;grid-template-columns:repeat(var(--outcome-count,3),minmax(0,1fr));gap:8px}
.auction-outcome{padding:5px;text-align:center;border:1px solid #9caf794d;border-radius:9px;background:#314330;min-width:0}
.auction-outcome.loss{background:#6e413026;border-color:#d5946245}
.auction-outcome>b{display:block;font:850 24px/1.15 system-ui;color:#f6d492;font-variant-numeric:tabular-nums}
.auction-outcome.loss>b{color:#efa58d}
.auction-outcome>span{display:block;font:500 12px/1.4 system-ui;color:#c2cfb6;margin:3px 0;overflow-wrap:anywhere}
.auction-outcome>strong{display:block;border-top:1px solid #bdc3942a;padding-top:5px;font:800 16px/1.4 system-ui;color:#c9e5a7;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.auction-outcome.loss>strong{color:#ffb1a0}.auction-outcome.mixed>strong{color:#efd19a}
body .board-center .compact-auction .auction-cost-note{font:500 11px/1.5 system-ui;color:#b5c5a8;margin:6px 0 0}
body .board-center .compact-auction .auction-payback+.auction-cost-note{text-align:center}
body .board-center .compact-auction .auction-resale-note{margin:8px 0 0;font:500 14px/1.5 system-ui;color:#d0d8bc}
.auction-block-warning{padding:10px 12px;border:1px solid #e1ac5480;border-radius:11px;background:#8b612d26;color:#f2d5a0;font:550 13px/1.6 system-ui;margin:0}
.auction-block-warning>b{display:block;color:#ffd996;margin-bottom:5px;font-size:16px}
body .board-center .compact-auction .auction-block-warning p{font:500 13px/1.6 system-ui;margin:0}
body .board-center .compact-auction .auction-block-warning .auction-block-cost{margin-top:7px}
.auction-block-cost strong{font-size:20px;color:#ffe1a0}
body .board-center .compact-auction .turn-auction-high.auction-quote{display:block;position:relative;isolation:isolate;overflow:hidden;margin:0 0 8px;padding:8px 14px 9px;border:1px solid #cba655aa;border-radius:12px;background:radial-gradient(ellipse at 50% 105%,#b28a3a27,transparent 73%),linear-gradient(115deg,#2a3724,#101d13 45%,#25341f);box-shadow:inset 0 1px 0 #ffe9b125,0 4px 14px #07120940;text-align:center}
.auction-quote::before{content:"";position:absolute;top:0;left:20%;right:20%;height:1px;background:linear-gradient(90deg,transparent,#ffe2a0,transparent)}
.auction-quote-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;min-width:0}
body .board-center .compact-auction .auction-quote-heading>span{font:500 12px/1.4 system-ui;color:#d3c08e;letter-spacing:.1em}
body .board-center .compact-auction .auction-quote-heading>small{font:500 11px/1.4 system-ui;color:#b1c3a5}
.auction-quote-player{display:flex;align-items:center;gap:7px;min-width:0;max-width:70%;font:650 13px/1.3 system-ui;color:#e8e5c9}
.auction-quote-player>b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.auction-quote-player>.avatar{flex:none;width:23px;height:23px;font-size:12px;margin:0}
body .board-center .compact-auction .auction-quote-player>small{flex:none;color:#efcf8c;background:#d1aa5620;border:1px solid #d2b16444;border-radius:4px;padding:1px 5px;font:500 10px/1.3 system-ui}
.auction-quote-amount{display:flex;justify-content:center;align-items:baseline;gap:7px;margin-top:2px;min-width:0;color:#ffe3a2;font-family:system-ui;font-variant-numeric:tabular-nums;white-space:nowrap;text-shadow:0 2px 0 #8a673f,0 5px 14px #0008,0 0 22px #ecc36b20}
body .board-center .compact-auction .auction-quote-amount .auction-currency{font:750 28px/1 system-ui;color:#cfae6c}
body .board-center .compact-auction .auction-quote-amount>strong{font:900 min(var(--quote-font,64px),14cqw)/1.04 system-ui;letter-spacing:-.035em;color:#ffe3a2;white-space:nowrap}
body .board-center .compact-auction .is-start .auction-quote-amount>strong{font-size:min(var(--quote-font,64px),42px)}
body .board-center .compact-auction .auction-quote.is-start{display:flex;flex-direction:row;justify-content:space-between;gap:12px;padding-block:5px}
.is-start .auction-quote-heading{display:grid;gap:2px;text-align:left}
.is-start .auction-quote-amount{margin:0}
body .board-center .compact-auction .auction-turn-name{font:700 13px/1.4 system-ui;margin:0 0 6px}
body .board-center .compact-auction.auction-own-turn .auction-turn-name{display:none}
body .board-center .compact-auction .auction-round-actions label{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:2px 8px;font:500 13px/1.5 system-ui;color:#c5d0b5;margin:0 0 5px}
.auction-round-actions label small{font:500 11px/1.4 system-ui;color:#a8bd9f}
body .board-center .compact-auction .auction-round-actions input{height:42px;font:800 21px/1.25 system-ui;padding:8px 12px;border:1px solid #d5b467;border-radius:9px;color:#ffe1a0;background:#101f17;box-shadow:inset 0 2px 3px #0003}
body .board-center .compact-auction .turn-bid-quick{margin-top:7px;gap:7px}
body .board-center .compact-auction .turn-bid-quick button{min-height:30px;padding:4px 3px;font-size:12px;box-shadow:none}
body .board-center .compact-auction .auction-funding-hint{font:500 11px/1.4 system-ui;margin:5px 0;color:#bccfae}
body .board-center .compact-auction>.auction-turn-help{flex:none;text-align:center;font:500 10px/1.4 system-ui;margin:0;color:#aabc9e}
body .board-center .compact-auction .auction-wait,body .board-center .compact-auction .auction-seller-note{font:500 13px/1.5 system-ui;margin:0 0 8px;padding:0;color:#bdcdb7}
body .board-center .compact-auction>.turn-bid-buttons{margin:0;padding:0;gap:10px;flex:none}
body .board-center .compact-auction>.turn-bid-buttons button{min-height:44px;font:800 16px/1.3 system-ui;padding:8px 7px}
body .board-center .compact-auction>.turn-bid-buttons button.primary{flex:1.55}
@container auctioncard (min-height:471px) and (max-height:610px){
 body .board-center .compact-auction.board-auction-card:has(.auction-outcomes){gap:4px;padding-block:8px}
 body .board-center .compact-auction:has(.auction-outcomes) .board-auction-content{gap:4px}
 body .board-center .compact-auction:has(.auction-outcomes) .auction-quote.has-leader{padding-block:4px;margin-bottom:5px}
 body .board-center .compact-auction:has(.auction-outcomes) .auction-outcome-heading{margin-bottom:4px}
 body .board-center .compact-auction:has(.auction-outcomes) .auction-outcome>strong{padding-top:3px}
 body .board-center .compact-auction:has(.auction-outcomes) .turn-bid-quick{margin-top:5px}
}
@container auctioncard (max-height:510px){
 body .board-center .compact-auction.board-auction-card{padding:9px 12px;gap:6px}
 body .board-center .compact-auction .board-auction-top{padding-bottom:5px}
 body .board-center .compact-auction h2{font-size:21px;margin-bottom:6px}
 body .board-center .compact-auction .board-auction-content{gap:6px}
 body .board-center .compact-auction .turn-auction-high.auction-quote{padding:5px 9px;margin-bottom:6px}
 body .board-center .compact-auction .auction-quote-amount>strong{font-size:min(var(--quote-font,64px),40px)}
 body .board-center .compact-auction .auction-quote-amount .auction-currency{font-size:20px}
 body .board-center .compact-auction .auction-round-actions input{height:36px;font-size:18px;padding:6px 9px}
 body .board-center .compact-auction .turn-bid-quick{margin-top:5px}
 body .board-center .compact-auction .turn-bid-quick button{min-height:28px;padding:3px;font-size:11px}
 body .board-center .compact-auction>.turn-bid-buttons button{min-height:36px;font-size:14px;padding:6px}
 .auction-project-facts{padding:8px}.auction-payroll>strong{font-size:22px}.auction-outcome{padding:5px}.auction-outcome>b{font-size:20px}.auction-outcome>strong{font-size:14px}
}
@container auctioncard (max-width:430px){
 body .board-center .compact-auction h2{font-size:23px}
 .auction-outcomes{gap:5px}.auction-outcome{padding:7px 3px}.auction-outcome>strong{font-size:13px}.auction-outcome>span{font-size:11px}
 .auction-payroll{gap:4px 8px}.auction-payroll>span{font-size:12px}
 .auction-outcome-heading{font-size:11px;gap:3px}.auction-quote-player{max-width:67%;font-size:12px}
 body .board-center .compact-auction .auction-round-actions label{font-size:12px}
}
/* Visible-screen auction surface for portrait and short landscape phones. */
body #mobileAuctionHost.board-center{position:fixed;left:6px;right:6px;bottom:auto;width:auto;min-width:0;min-height:0;max-height:none;margin:0;padding:4px;box-sizing:border-box;z-index:24;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#0b1b1299;border:0;border-radius:16px;container-type:size;container-name:auctioncard;box-shadow:none}
body #mobileAuctionHost::before,body #mobileAuctionHost::after{display:none}
body #mobileAuctionHost .compact-auction{width:min(600px,100%);padding:12px;gap:8px}
body.has-board-card #mobileAuctionHost{visibility:hidden;pointer-events:none}
@media(max-height:500px) and (max-width:1000px){body #mobileAuctionHost .compact-auction{padding:8px 12px;gap:5px}}

/* Separate the opportunity fee from the actual project investment. */
.auction-investment{display:flex;justify-content:center;align-items:baseline;flex-wrap:wrap;gap:3px 9px;padding:0 0 7px;color:#edcf94;font:650 14px/1.4 system-ui}
.auction-investment strong{font-weight:850;color:#ffe1a0;font-variant-numeric:tabular-nums}
.auction-investment small{font-size:11px;color:#b9c9ab;font-weight:550}
.auction-purchase-receipt{display:grid;grid-template-columns:1fr 1fr;gap:10px;border:1px solid #d3af6666;border-radius:12px;background:#263b28;padding:12px;margin-bottom:10px;font:600 12px/1.5 system-ui;color:#bbcbaf}
.auction-purchase-receipt b,.auction-purchase-receipt strong{display:block;font:850 25px/1.3 system-ui;color:#ffe1a0;font-variant-numeric:tabular-nums}
.auction-purchase-receipt strong{color:#d6eab5}
body .board-center .auction-purchase-card .auction-turn-help{font-size:12px;line-height:1.5}
@container auctioncard (max-height:510px){.auction-investment{font-size:12px;padding-bottom:4px}.auction-purchase-receipt{padding:7px;margin-bottom:6px}.auction-purchase-receipt b,.auction-purchase-receipt strong{font-size:21px}}
@container auctioncard (max-height:510px){body .board-center .compact-auction .auction-resale-note{margin:4px 0 0;font-size:12px;line-height:1.4}body .board-center .compact-auction .auction-resale .auction-payback{margin-top:4px}.auction-resale .auction-payback b{font-size:17px}}
/* Keep the new funding summary compact inside the existing auction surface. */
body .board-center .compact-auction.auction-own-turn{gap:5px}
body .board-center .compact-auction.auction-own-turn .board-auction-content{gap:5px}
body .board-center .compact-auction.auction-own-turn h2{font-size:23px;margin-bottom:4px}
body .board-center .compact-auction.auction-own-turn .auction-project-facts{padding:6px 8px}
body .board-center .compact-auction.auction-own-turn .auction-investment{padding-bottom:4px;font-size:12px}
body .board-center .compact-auction.auction-own-turn .auction-payroll{padding-bottom:4px;gap:4px 8px}
body .board-center .compact-auction.auction-own-turn .auction-payroll>strong{font-size:23px}
body .board-center .compact-auction.auction-own-turn .auction-payback{margin-top:4px;font-size:12px;line-height:1.35}
body .board-center .compact-auction.auction-own-turn .auction-payback b{font-size:18px}
body .board-center .compact-auction.auction-own-turn .auction-cost-note{margin-top:4px;font-size:10px;line-height:1.35}
body .board-center .compact-auction.auction-own-turn .turn-bid-quick{margin-top:5px}
body .board-center .compact-auction.auction-own-turn .turn-bid-quick button{min-height:26px}
/* Very short landscape screens scroll the facts, keeping action buttons pinned. */
@media(max-height:500px) and (max-width:1000px){
 body #mobileAuctionHost .compact-auction.auction-own-turn .board-auction-content{overflow:auto;flex:1 1 auto;overscroll-behavior:contain;scrollbar-width:thin}
 body #mobileAuctionHost .compact-auction.auction-own-turn .auction-project{flex:none;overflow:visible}
}

/* Brief contextual funding notice; no repeated balance panel. */
body .board-center .compact-auction .auction-funding-notice{margin:5px 0;font:550 11px/1.4 system-ui;color:#ffc28b}
.auction-funding-notice[hidden]{display:none!important}
body .board-center .compact-auction .auction-outcome-certain{display:flex;justify-content:center;align-items:baseline;flex-wrap:wrap;gap:5px 16px;padding:8px 10px}
body .board-center .compact-auction .auction-outcome-certain>span{margin:0;font-size:14px}
body .board-center .compact-auction .auction-outcome-certain>strong{border:0;padding:0;font-size:18px}
