@font-face{font-family:AuctionPixel;src:url('/assets/auction-v2/fusion-pixel-12px.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
:root{--paper:#fff4d9;--ink:#352a1e;--muted:#766043;--gold:#8a5b18;--line:#cbb080;--danger:#aa3529;--scene:#193337;--pixel-font:AuctionPixel,"MiSans","PingFang SC","Microsoft YaHei",sans-serif;font-family:"MiSans","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--scene);font-synthesis:none;color-scheme:light}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}
body{line-height:1.4;min-width:280px;background:#14292d}
p,h1,h2{margin:0}
button,input,select{font:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{cursor:default}
[hidden]{display:none!important}
button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ffe39a;outline-offset:3px}
.game-app{width:min(100%,620px);height:100dvh;height:var(--visible-height,100dvh);position:fixed;top:var(--visible-top,0px);left:50%;transform:translateX(-50%);display:flex;flex-direction:column;padding:calc(8px + env(safe-area-inset-top)) 18px calc(12px + env(safe-area-inset-bottom));gap:10px;overflow:hidden;background:var(--scene);isolation:isolate}
.game-app::before{content:"";position:absolute;inset:0;z-index:-2;background:url('/assets/auction-v3/auction-hall-mobile.webp') center 58%/cover no-repeat;image-rendering:pixelated}
.game-app::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(#102a32a6 0%,#1731353d 28%,#17313500 62%,#10292dae 100%)}
.topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;column-gap:8px;min-height:46px;flex-shrink:0;color:#fff3d1}
h1{grid-column:1;grid-row:1;align-self:end;font-family:var(--pixel-font);font-size:24px;line-height:1.1;font-weight:400;white-space:nowrap;text-shadow:2px 2px 0 #172d30}
#round-count{grid-column:1;grid-row:2;align-self:start;color:#e7d7ad;font-size:13px;line-height:1.5;white-space:nowrap}
.topbar:has(#round-count[hidden]) h1{grid-row:1 / 3;align-self:center}
.top-actions{grid-column:2;grid-row:1 / 3;display:flex;gap:2px;align-items:center}
.top-actions button{background:#152c3373;color:#f7e5bd;border:0;font-size:15px;padding:6px;min-height:44px;min-width:44px}
.top-actions button:hover{background:#fff1c21c}
.top-actions button:disabled{opacity:.45}
.top-actions .sound-button{color:#f4cf74;font-size:24px;padding:6px 8px}
.sound-button[aria-pressed=true]{color:#fff2bf;text-shadow:1px 1px 0 #8d5e19}
.scoreboard{display:grid;grid-template-columns:1fr 1fr;gap:10px;flex-shrink:0}
.score{position:relative;min-width:0;display:flex;flex-direction:column;gap:3px;border:2px solid #886533;border-radius:0;background:#fff2d8ee;box-shadow:3px 3px 0 #2c2b23b3;padding:8px 11px}
.score::before{content:"";position:absolute;left:7px;right:7px;top:-2px;height:2px;background:#f7dc99;pointer-events:none}
.score.active{border-color:#ffd77f;background:#fff3d6;box-shadow:0 0 0 1px #795622,3px 3px 0 #2c2b23b3}
.score-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:15px;line-height:1.25}
.score-heading>span:first-child{font-weight:700;color:#51422c}
.score.active .score-heading>span:first-child{color:#8b5716}
.score-caption{font-size:12px;color:#897356;white-space:nowrap}
.score>b{display:block;min-width:0;max-width:100%;font-family:var(--pixel-font);font-size:30px;font-weight:400;line-height:1.25;white-space:nowrap;letter-spacing:-.6px;font-variant-numeric:tabular-nums}
.summon-list{min-width:0;max-height:56px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#c4a669 transparent;border-top:1px solid #cbb080;margin-top:3px;padding-top:2px}
.summon-list:empty{display:none}
.summon-list::-webkit-scrollbar{width:3px}
.summon-list::-webkit-scrollbar-thumb{background:#c4a669}
.summon-item{display:flex;align-items:baseline;gap:5px;min-width:0;min-height:25px;font-size:15px;line-height:25px}
.summon-word{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:550}
.summon-price{flex-shrink:0;white-space:nowrap;color:#8a5b18;font-weight:700;font-variant-numeric:tabular-nums}
.main{min-width:0;min-height:0;flex:1;display:flex;flex-direction:column}
.setup{min-height:0;display:flex;flex-direction:column;justify-content:center;gap:24px;width:100%;max-width:390px;margin:auto;align-self:center;background:#fff2d9ed;padding:26px;border:2px solid #906d3c;box-shadow:4px 4px 0 #14262b99}
.setup-title{font-family:var(--pixel-font);font-weight:400;font-size:28px;line-height:1.25;text-align:center}
.setup-title::before{content:"";display:block;width:180px;height:108px;margin:0 auto 20px;background:url('/assets/auction-v3/coffer-open-v3.png') center/contain no-repeat;image-rendering:pixelated}
.setup-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.setup-fields label{font-size:15px;color:var(--muted);display:flex;flex-direction:column;gap:8px}
.setup-fields select{min-width:0;width:100%;border:2px solid #b89b68;border-radius:0;background:#fffaf0;color:var(--ink);font-size:20px;height:50px;padding:8px 10px}
.ai-setup .setup-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ai-setup .setup-fields label{min-width:0}
.ai-setup .setup-fields select{font-size:17px;padding-left:6px;padding-right:4px}
@media(min-width:900px){.ai-setup .setup-fields{gap:12px}.ai-setup .setup-fields select{font-size:19px}}
@media(max-width:359px){.ai-setup .setup-fields{gap:6px}.ai-setup .setup-fields label{font-size:13px}.ai-setup .setup-fields select{font-size:15px;padding-left:4px;padding-right:2px}}
.primary{border:2px solid #674919;border-radius:0;background:#b47b24;color:#fff8df;font-size:20px;font-weight:750;min-height:52px;padding:10px 18px;box-shadow:3px 3px 0 #483719;text-shadow:1px 1px 0 #77501b}
.primary:hover:not(:disabled){background:#c98c2b}
.primary:active:not(:disabled){transform:translate(2px,2px);box-shadow:1px 1px 0 #483719}
.primary:disabled{background:#998568;border-color:#6c5c46;color:#dfd3bd;box-shadow:none;text-shadow:none}
.play{flex:1;display:flex;flex-direction:column;min-height:0;gap:8px;container-type:inline-size;container-name:auction-play}
.turn-label{text-align:center;font-size:18px;font-weight:700;line-height:1.4;flex-shrink:0;color:#fff1cb;text-shadow:2px 2px 0 #203235;padding:2px 0}
.challenge{flex:0 1 166px;min-height:110px;display:flex;align-items:center;justify-content:center;gap:34px;padding:0 4px;color:#fff0c5;background:linear-gradient(90deg,transparent,#17343aa8 22%,#17343aa8 78%,transparent)}
.chain{text-align:center;min-width:0}
.chain p{font-size:15px;line-height:1.3;color:#ebd5a8;margin-bottom:7px;white-space:nowrap;text-shadow:1px 1px 0 #213331}
.chain>b{display:block;font-family:var(--pixel-font);font-weight:400;font-size:96px;line-height:1.05;color:#ffe8a2;text-shadow:3px 3px 0 #82591e,5px 5px 0 #152a2d}
.chain>b.free{font-size:34px;letter-spacing:1px}
.timer{flex-shrink:0;min-width:86px;display:flex;flex-direction:column;align-items:center;gap:4px;color:#ffdc81}
.clock-face{display:block;width:90px;height:90px;overflow:visible;fill:none;filter:drop-shadow(2px 2px 0 #1c2a2b)}
.clock-track{stroke:#65807a;stroke-width:4}
.clock-progress{stroke:currentColor;stroke-width:4;stroke-linecap:square}
.clock-ticks{stroke:#eddaad;stroke-width:2;stroke-linecap:square}
#clock-hand path{stroke:currentColor;stroke-width:4;stroke-linecap:square}
.clock-pin{fill:currentColor}
.timer-readout{display:flex;align-items:baseline;gap:4px;color:#fff4d7;text-shadow:1px 1px 0 #1c2a2b}
.timer-readout b{font-family:var(--pixel-font);font-size:24px;line-height:1.2;font-variant-numeric:tabular-nums;font-weight:400}
.timer-readout span{font-size:14px;color:#ebd8ac;white-space:nowrap}
.timer.urgent{color:#ff9f82}
.timer.urgent .timer-readout b{color:#ffb4a0}
.timer.paused{color:#bdc1aa}
.timer.paused .timer-readout b{color:#e0decb}
.latest-summon{flex-shrink:0;min-height:54px;min-width:0;width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:9px;padding:7px 11px;border:2px solid #a17b39;background:#fff2d9f0;box-shadow:3px 3px 0 #2033349c}
.latest-summon-owner{font-size:12px;line-height:1.25;color:#7c694c;white-space:nowrap}
.latest-summon-word{font-family:var(--pixel-font);font-size:24px;font-weight:400;line-height:1.2;white-space:nowrap;color:#4e3620;min-width:max-content}
.latest-summon-value{font-family:var(--pixel-font);font-size:24px;font-weight:400;line-height:1.2;white-space:nowrap;color:#946013;font-variant-numeric:tabular-nums;letter-spacing:-.5px}
.latest-summon[data-neutral=true] .latest-summon-value{font-family:inherit;font-size:16px;color:#7c694c;letter-spacing:0}
.auction-stage{position:relative;flex:1 1 180px;min-height:120px;max-height:360px;width:100%;isolation:isolate;pointer-events:none;overflow:hidden}
.auction-stage .auction-receipts:empty{display:none}
.reward-chest{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);width:196px;height:auto;max-height:calc(100% - 28px);object-fit:contain;image-rendering:pixelated;z-index:1;transform-origin:50% 85%;user-select:none}
.auction-floor{display:none}
.auction-floor::before,.auction-floor::after{content:"";position:absolute;top:-3px;width:10px;height:3px;background:#193337}
.auction-floor::before{left:0}.auction-floor::after{right:0}
.game-app[data-phase=appraising] .auction-stage::after{content:"";position:absolute;inset:10% 10% 5%;z-index:0;pointer-events:none;background:radial-gradient(ellipse at 50% 82%,#ffd77955,transparent 58%);animation:auction-charge-glow 1.4s ease-in-out infinite alternate}
.game-app[data-phase=appraising] .reward-chest{animation:auction-charge-chest 1.4s ease-in-out infinite alternate}
@keyframes auction-charge-glow{from{opacity:.3}to{opacity:.85}}
@keyframes auction-charge-chest{from{filter:brightness(1)}to{filter:brightness(1.16)}}
.result{flex:0 1 166px;min-height:110px;display:flex;flex-direction:column;justify-content:center;text-align:center;gap:8px;color:#fff1cc}
.result strong{font-family:var(--pixel-font);font-size:38px;line-height:1.2;color:#ffe4a0;font-weight:400;text-shadow:3px 3px 0 #714b1a}
.result p{font-size:17px;color:#eddfba}
.feedback-row{display:flex;align-items:center;gap:8px;flex-shrink:0;min-height:26px;padding:0 2px}
#feedback{flex:1;min-width:0;font-size:14px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#f5e4ba;text-shadow:1px 1px 0 #233439}
#feedback:empty{visibility:hidden}
#feedback.error{color:#ffb59e}
#retry-button{border:2px solid #ccaa68;border-radius:0;background:#1a353be0;color:#ffe2aa;min-height:40px;padding:6px 10px;font-size:14px;flex-shrink:0}
.move-form{display:flex;gap:9px;flex-shrink:0}
#word{flex:1;min-width:0;width:0;border:2px solid #b99a61;border-radius:0;background:#fff7e7;color:var(--ink);padding:10px 12px;height:54px;font-size:20px;box-shadow:3px 3px 0 #203334a8}
#word::placeholder{font-size:16px;color:#877258}
#word:disabled{background:#dcd1bb;border-color:#aa9270;color:#6d624f}
#submit-button{flex-shrink:0;min-width:86px}
@media(max-width:350px){.game-app{padding-left:12px;padding-right:12px;gap:8px}h1{font-size:24px}.topbar{column-gap:4px}.top-actions button{min-width:40px;padding:4px}.scoreboard{gap:8px}.score{padding:7px 9px}.score>b{font-size:24px}.summon-item{font-size:14px}.challenge{gap:22px;flex-basis:148px}.chain>b{font-size:84px}.chain p{font-size:14px}.timer{min-width:80px}.clock-face{width:80px;height:80px}.latest-summon{padding:7px 8px;column-gap:7px}.latest-summon-word{font-size:24px}.latest-summon-value{font-size:20px}.setup{padding:22px 18px}.setup-title{font-size:24px}}
@media(max-height:740px) and (min-height:500px) and (max-width:899px){.game-app{gap:8px;padding-bottom:8px}.play{gap:6px}.score{padding-top:6px;padding-bottom:6px}.summon-list{max-height:48px}.summon-item{line-height:23px;min-height:23px}.challenge{flex-basis:128px;min-height:108px}.chain>b{font-size:84px}.clock-face{width:80px;height:80px}.timer{min-width:80px}.latest-summon{min-height:48px;padding-top:5px;padding-bottom:5px}.latest-summon-word{font-size:24px}.latest-summon-value{font-size:20px}.auction-stage{flex-basis:136px;min-height:100px}.reward-chest{width:160px;bottom:14px}.feedback-row{min-height:24px}}
.game-app.compact{gap:6px;padding-top:3px;padding-bottom:7px}
.compact .topbar{min-height:38px}
.compact h1{font-size:18px}
.compact #round-count{font-size:12px}
.compact .top-actions button{min-height:38px;min-width:38px;font-size:14px;padding:4px}
.compact .top-actions .sound-button{font-size:22px}
.compact .score{padding:4px 9px;gap:1px}
.compact .score-heading{font-size:14px}
.compact .score>b{font-size:24px}
.compact .summon-list{max-height:23px;margin-top:0;padding-top:0}
.compact .summon-item{line-height:22px;min-height:22px;font-size:14px}
.compact .play{gap:4px}
.compact .turn-label{font-size:16px;padding:0}
.compact .challenge{flex:1 1 85px;min-height:67px;gap:24px;padding:0}
.compact .chain p{font-size:13px;margin-bottom:3px}
.compact .chain>b{font-size:60px}
.compact .chain>b.free{font-size:27px}
.compact .timer{min-width:60px;gap:0}
.compact .clock-face{width:57px;height:57px}
.compact .timer-readout b{font-size:18px}
.compact .timer-readout span{font-size:12px}
.compact .latest-summon{min-height:35px;padding:3px 8px;column-gap:6px}
.compact .latest-summon-owner{font-size:11px}
.compact .latest-summon-word{font-size:18px}
.compact .latest-summon-value{font-size:18px}
.compact .latest-summon[data-neutral=true] .latest-summon-value{font-size:14px}
.compact .auction-stage{flex:0 1 45px;min-height:0;max-height:45px}
.compact .reward-chest{width:85px;max-height:100%;bottom:5px}
.compact .auction-floor{bottom:0;height:5px;border-top-width:2px;box-shadow:0 3px 0 #64452a}
.compact .feedback-row{min-height:22px}
.compact #feedback{font-size:13px;-webkit-line-clamp:1}
.compact #word,.compact .primary{height:46px;min-height:46px;font-size:18px;padding:8px 12px}
.compact #word::placeholder{font-size:15px}
.compact .result{flex:1 1 85px;min-height:67px}
.compact .result strong{font-size:30px}
.compact .result p{font-size:15px}
.compact .setup{gap:14px;padding:18px}
.compact .setup-title{font-size:24px}
.compact .setup-title::before{height:70px;width:120px;margin-bottom:8px}
.compact .setup-fields select{height:44px;font-size:18px}
.game-app.tiny{gap:4px;padding:0 10px 4px}
.tiny .topbar{min-height:32px}
.tiny h1{font-size:18px}
.tiny #round-count{font-size:11px;line-height:1.2}
.tiny .top-actions button{min-width:34px;min-height:32px;font-size:12px}
.tiny .top-actions .sound-button{font-size:20px}
.tiny .score{padding:2px 7px}
.tiny .score-heading{font-size:12px}
.tiny .score-caption{font-size:10px}
.tiny .score>b{font-size:24px;line-height:1.1}
.tiny .summon-list{max-height:19px}
.tiny .summon-item{min-height:18px;line-height:18px;font-size:12px}
.tiny .play{gap:3px}
.tiny .turn-label{font-size:14px;line-height:1.2}
.tiny .challenge{min-height:58px;flex-basis:62px;gap:22px}
.tiny .chain p{font-size:12px;margin-bottom:1px}
.tiny .chain>b{font-size:48px}
.tiny .chain>b.free{font-size:22px}
.tiny .timer{min-width:50px}
.tiny .clock-face{width:44px;height:44px}
.tiny .timer-readout b{font-size:18px}
.tiny .timer-readout span{font-size:11px}
.tiny .latest-summon{min-height:29px;padding:2px 7px}
.tiny .latest-summon-word,.tiny .latest-summon-value{font-size:18px}
.tiny .latest-summon-owner{font-size:10px}
.tiny .auction-stage{flex-basis:24px;max-height:24px;min-height:0}
.tiny .reward-chest{width:48px;bottom:0}
.tiny .auction-floor{height:3px;border-top-width:1px;bottom:0;box-shadow:none}
.tiny .feedback-row{min-height:18px}
.tiny #feedback{font-size:12px}
.tiny #word,.tiny .primary{height:42px;min-height:42px;font-size:17px;padding:7px 10px}
.tiny .setup{gap:10px;padding:14px;max-width:320px}
.tiny .setup-title{font-size:24px}
.tiny .setup-title::before{display:none}
.tiny .setup-fields label{font-size:14px;gap:4px}
.tiny .setup-fields select{height:40px;font-size:17px}
@media(min-width:900px){.game-app{width:min(100%,1520px);padding:20px clamp(24px,3vw,52px) 24px;display:grid;grid-template-columns:minmax(185px,260px) minmax(300px,1fr) minmax(185px,260px);grid-template-rows:60px minmax(0,1fr) 30px 56px;column-gap:clamp(24px,3vw,48px);row-gap:12px;background:#193337}.game-app::before{background-image:url('/assets/auction-v3/auction-hall-desktop.png');background-position:center center}.game-app::after{background:linear-gradient(#122c3299 0%,#14323820 26%,#132b3500 68%,#142b33b3 100%)}.topbar{grid-column:1 / -1;grid-row:1;grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:1fr;column-gap:24px;min-height:60px}.topbar h1,.topbar:has(#round-count[hidden]) h1{grid-column:1;grid-row:1;align-self:center;font-size:36px;letter-spacing:1px}.topbar #round-count{grid-column:2;grid-row:1;align-self:center;font-size:17px;color:#f2deb0}.top-actions{grid-column:3;grid-row:1;gap:8px}.top-actions button{font-size:16px;min-width:48px;min-height:44px}.top-actions .sound-button{font-size:25px}.scoreboard{display:contents}.score{grid-row:2 / -1;align-self:stretch;min-height:0;padding:17px 18px 18px;gap:10px;background:linear-gradient(#fff1d7f2,#f9e7c1ec);border-color:#b99959;box-shadow:4px 4px 0 #203035b3}.score::before{left:12px;right:12px;height:3px}.score.active{background:linear-gradient(#fff6de,#f9e7c2f2);border-color:#ffd482;box-shadow:0 0 0 1px #8e632a,4px 4px 0 #203035b3}.score#player-card{grid-column:1}.score#opponent-card{grid-column:3}.score-heading{font-size:20px}.score-caption{font-size:14px}.score>b{font-size:36px;line-height:1.25;letter-spacing:-1px}.summon-list{flex:1;max-height:none;min-height:0;padding-top:10px;margin-top:6px;border-top:2px solid #c5a96e;scrollbar-width:thin}.summon-item{font-size:17px;min-height:36px;line-height:36px;gap:8px}.main{grid-column:2;grid-row:2}.play{gap:10px}.turn-label{font-size:20px;line-height:1.3;padding:4px 0}.challenge{flex:0 1 186px;min-height:136px;gap:50px}.chain p{font-size:18px;margin-bottom:10px}.chain>b{font-size:108px}.chain>b.free{font-size:38px}.timer{min-width:112px;gap:5px}.clock-face{width:112px;height:112px}.timer-readout b{font-size:30px}.timer-readout span{font-size:17px}.latest-summon{width:100%;min-height:64px;padding:10px 15px;column-gap:14px}.latest-summon-owner{font-size:14px}.latest-summon-word{font-size:30px}.latest-summon-value{font-size:30px}.latest-summon[data-neutral=true] .latest-summon-value{font-size:19px}.auction-stage{flex:1 1 280px;min-height:180px;max-height:440px}.reward-chest{width:min(65%,296px);max-height:calc(100% - 34px);bottom:22px}.auction-floor{bottom:9px;left:4%;right:4%;height:14px;border-top-width:4px;box-shadow:0 6px 0 #64452a,0 12px 0 #24373d9c}.feedback-row{grid-column:2;grid-row:3;min-height:26px}#feedback{font-size:15px}.move-form{grid-column:2;grid-row:4;gap:12px}#word{height:56px;font-size:22px}#word::placeholder{font-size:18px}.primary{min-height:56px;font-size:22px}#submit-button{min-width:108px}.result{flex:0 1 186px;min-height:136px}.result strong{font-size:48px}.result p{font-size:20px}.game-app:has(#setup:not([hidden])) .main{grid-column:1 / -1;grid-row:2 / 4;align-items:center;justify-content:center}.game-app:has(#setup:not([hidden])) .feedback-row{grid-column:2;grid-row:4;align-self:center}.setup{max-width:460px;gap:28px;padding:34px;margin:auto}.setup-title{font-size:36px}.setup-title::before{width:240px;height:150px;margin-bottom:24px}.setup-fields label{font-size:17px}.setup-fields select{height:54px;font-size:22px}}
@media(min-width:900px) and (max-height:740px){.game-app{padding-top:12px;padding-bottom:16px;grid-template-rows:48px minmax(0,1fr) 26px 50px;row-gap:8px;column-gap:24px}.topbar{min-height:48px}.topbar h1{font-size:30px}.score{padding:12px 14px;gap:6px}.score>b{font-size:36px}.summon-item{font-size:16px;line-height:31px;min-height:31px}.turn-label{font-size:18px;padding:0}.play{gap:7px}.challenge{flex-basis:138px;min-height:112px;gap:36px}.chain>b{font-size:84px}.chain p{font-size:16px;margin-bottom:6px}.clock-face{width:88px;height:88px}.timer{min-width:88px}.timer-readout b{font-size:24px}.latest-summon{min-height:53px;padding:6px 12px;column-gap:10px}.latest-summon-word{font-size:24px}.latest-summon-value{font-size:24px}.auction-stage{min-height:110px;flex-basis:190px}.reward-chest{width:min(58%,230px)}#word,.primary{height:50px;min-height:50px;font-size:20px}.result{flex-basis:138px;min-height:112px}.result strong{font-size:42px}.setup{padding:24px;gap:20px}.setup-title::before{height:100px;margin-bottom:12px}}
@media(prefers-reduced-motion:reduce){button:active:not(:disabled){transform:none}}
@container auction-play (max-width:560px){.latest-summon{display:flex;flex-wrap:wrap;justify-content:center;row-gap:1px;padding-top:5px;padding-bottom:5px}.latest-summon-owner{max-width:none}.latest-summon-word,.latest-summon-value{flex:0 0 auto}.compact .latest-summon,.tiny .latest-summon{padding-top:2px;padding-bottom:2px}.compact .latest-summon-word,.compact .latest-summon-value{font-size:18px}.tiny .latest-summon-word,.tiny .latest-summon-value{font-size:16px}}
@media(max-height:700px) and (min-height:500px) and (max-width:899px){.score>b{font-size:24px}}
@media(max-height:620px) and (min-height:500px) and (max-width:899px){.summon-list{max-height:25px}.auction-stage{min-height:70px}.turn-label{font-size:16px}.challenge{flex-basis:108px;min-height:96px}.chain p{font-size:13px;margin-bottom:4px}.chain>b{font-size:72px}.clock-face{width:68px;height:68px}.timer{min-width:68px}#word,#submit-button{height:48px;min-height:48px}}
@media(max-height:350px) and (max-width:899px){.tiny .auction-stage{display:none}.tiny .challenge{min-height:64px}}

/* Rooms use the same small, readable pixel panels as the existing game. */
.setup.online-setup{gap:14px}
.online-setup .setup-title::before{width:120px;height:70px;margin-bottom:10px}
.online-entry{display:flex;flex-direction:column;gap:10px}
.room-join-row{display:flex;gap:8px;min-width:0}
.room-join-row input{min-width:0;flex:1;width:0;height:46px;padding:8px 10px;border:2px solid #b89b68;border-radius:0;background:#fffaf0;color:var(--ink);font-size:20px;text-transform:uppercase;letter-spacing:2px}
.room-join-row input::placeholder{font-size:16px;letter-spacing:0}
.room-join-row button,.room-invite button,.room-secondary{min-height:44px;border:2px solid #b89b68;border-radius:0;background:#fffaec;color:#735423;padding:8px 12px;font-size:16px}
.room-join-row button:disabled,.room-invite button:disabled,.room-secondary:disabled{opacity:.5}
.online-hint{font-size:13px;line-height:1.5;color:#806c4d}
.online-lobby{display:flex;flex-direction:column;gap:15px;padding:24px;width:100%;max-width:420px;margin:auto;align-self:center;min-height:0;border:2px solid #906d3c;box-shadow:4px 4px 0 #14262b99;background:#fff2d9ed}
.room-caption{font-size:15px;color:var(--muted)}
.room-invite{display:flex;align-items:center;justify-content:space-between;gap:8px}
.room-invite strong{font-family:var(--pixel-font);font-size:30px;font-weight:400;line-height:1.25;letter-spacing:2px;color:#68471b}
.room-invite button{font-size:14px;white-space:nowrap;padding:7px 9px}
.room-share-link{min-height:44px;width:100%;min-width:0;border:2px solid #b89b68;border-radius:0;background:#fffaf0;padding:8px;font-size:13px;color:var(--ink)}
.room-phase{font-size:18px;font-weight:700;color:#614b2b;line-height:1.4}
.room-members{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:14px;color:#7d6a4c}
.room-members span{white-space:nowrap}
.room-members [data-ready=true]{color:#3c7657;font-weight:700}
.room-opening-word{font-size:18px;text-align:center;color:#72521f;line-height:1.4}
.online-lobby .room-secondary{background:transparent;border-color:transparent;color:#826d4c;padding:4px 8px}
.room-lobby-actions{display:flex;flex-direction:column;gap:15px}
.online-lobby #room-retry-button{border-color:#b89b68;color:#9b492a}
.compact .online-setup{gap:10px;padding:14px 18px}
.compact .online-setup .setup-title::before{display:none}
.compact .online-entry{gap:6px}
.compact .online-lobby{gap:9px;padding:16px 18px}
.compact .room-lobby-actions{gap:9px}
.compact .room-invite strong{font-size:28px}
.compact .room-phase{font-size:16px}
.tiny .online-setup{gap:7px;padding:10px 14px}
.tiny .online-setup .setup-title{font-size:20px}
.tiny .online-setup .setup-fields label{gap:3px;font-size:12px}
.tiny .online-setup .setup-fields select{height:38px;font-size:16px}
.tiny .online-setup .primary,.tiny .online-lobby .primary{min-height:44px;height:44px}
.tiny .online-hint{font-size:11px;line-height:1.3}
.tiny .room-join-row input,.tiny .room-join-row button{height:44px;min-height:44px}
.tiny .online-lobby{gap:6px;padding:10px 14px}
.tiny .room-caption,.tiny .room-members{font-size:12px}
.tiny .room-phase{font-size:15px}
.tiny .room-opening-word{font-size:15px}
.tiny .online-lobby .room-secondary{min-height:44px;font-size:14px}
.tiny .room-lobby-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.tiny .room-lobby-actions .primary{min-width:0;padding-left:8px;padding-right:8px}
@media(min-width:900px){.game-app:has(#online-lobby:not([hidden])) .main{grid-column:1 / -1;grid-row:2 / 4;align-items:center;justify-content:center}.game-app:has(#online-lobby:not([hidden])) .feedback-row{grid-column:2;grid-row:4;align-self:center}.online-setup .setup-title::before{width:170px;height:100px;margin-bottom:14px}.online-lobby{max-width:450px;padding:30px;gap:19px}.room-invite strong{font-size:36px}.room-phase{font-size:20px}.room-members{font-size:16px}}
@media(prefers-reduced-motion:reduce){.game-app[data-phase=appraising] .auction-stage::after,.game-app[data-phase=appraising] .reward-chest{animation:none}}
@media(min-width:900px){.game-app::before{background-image:url('/assets/auction-v3/auction-hall-desktop.webp')}.score{align-self:start;max-height:100%}}

/* Midnight auction: matte ledgers, one paper receipt, and brass pixel edges. */
:root{--paper:#f2e2b9;--ink:#342721;--muted:#786247;--gold:#b78336;--line:#a07b42;--scene:#102b30;--ledger:#193c3e;--ivory:#f2e2b9;--brass:#e4b75b;--shadow:#101820}
body,.game-app{background:var(--scene)}
.game-app::before{background-image:url('/assets/auction-v4/auction-hall-mobile-v4b.webp');background-position:center 64%;image-rendering:pixelated;transform:scale(1.04);transform-origin:center top}
.game-app::after{background:linear-gradient(#10182058 0%,transparent 32%,transparent 70%,#10182075 100%)}
.topbar{position:relative;border-bottom:2px solid #b7833638;padding-bottom:4px}
h1{color:#f2e2b9;letter-spacing:1px;text-shadow:2px 2px 0 #101820}
#round-count{color:#d8c9a4}
.top-actions button{background:transparent;color:#e0d2b0;border:0}
.top-actions button:hover{background:#f2e2b913;color:#fff1bd}
.top-actions .sound-button{color:#e4b75b}
.sound-button[aria-pressed=true]{color:#fff1bd;text-shadow:2px 2px 0 #715038}

/* Dark accounts keep the new summon as the only bright panel. */
.score{border:2px solid #817044;background:#193c3ef5;box-shadow:inset 0 2px 0 #315052,2px 3px 0 #101820a0}
.score::before{left:8px;right:8px;top:3px;height:1px;background:#e4b75b20}
.score.active{border-color:#e4b75b;background:#1e4445fa;box-shadow:inset 0 2px 0 #47605a,2px 3px 0 #101820a0}
.score-heading>span:first-child{color:#e6dbbd}
.score.active .score-heading>span:first-child{color:#f2e2b9}
.score-caption{color:#c3b79a}
.score>b{color:#f2e2b9;text-shadow:2px 2px 0 #101820}
.summon-list{border-color:#b7833660;scrollbar-color:#a98245 transparent}
.summon-item{border-bottom:1px solid #b7833624}
.summon-item:last-child{border-bottom:0}
.summon-word{color:#e3d8b9}
.summon-price{color:#e4b75b}

/* Entry and multiplayer rooms share the same invitation plaque. */
.setup,.online-lobby{position:relative;border:2px solid #b78336;background:#173638f7;color:#f2e2b9;box-shadow:inset 0 2px 0 #466052,inset 0 -2px 0 #0e2528,4px 5px 0 #101820a0}
.setup::after,.online-lobby::after{content:'';position:absolute;inset:6px;border:1px solid #b7833638;pointer-events:none}
.setup-title{color:#f2e2b9;text-shadow:2px 2px 0 #101820}
.setup-title::before{background-image:url('/assets/auction-v4/coffer-closed-v4.png')}
.setup-fields label,.room-caption{color:#d5c6a1}
.setup-fields select,.room-join-row input,.room-share-link{border:2px solid #a07b42;background:#f2e2b9;color:#342721;box-shadow:inset 0 2px 0 #71503818}
.setup-fields select:disabled{background:#c9bfa3;color:#62523d}
.primary{border:2px solid #b78336;border-bottom:4px solid #715038;background:#b78336;box-shadow:inset 0 2px 0 #e4b75b,2px 3px 0 #101820a0;color:#101820;text-shadow:0 1px 0 #e4b75b}
.primary:hover:not(:disabled){background:#c69547;border-color:#c69547}
.primary:active:not(:disabled){transform:translate(1px,2px);box-shadow:inset 0 2px 0 #e4b75b,1px 1px 0 #101820a0}
.primary:disabled{background:#706a52;border-color:#706a52;border-bottom-color:#494638;color:#d4c9aa;box-shadow:inset 0 2px 0 #918970;text-shadow:none}
.room-join-row button,.room-invite button,.room-secondary{border:2px solid #a07b42;background:#234346;color:#f2e2b9}
.online-hint,.room-members{color:#d5c6a1}
.room-invite strong{color:#e4b75b;text-shadow:2px 2px 0 #101820}
.room-phase,.room-opening-word{color:#f2e2b9}
.room-members [data-ready=true]{color:#b8dfbc}
.online-lobby .room-secondary{color:#d5c6a1}
.online-lobby #room-retry-button{border-color:#b78336;color:#ffd5a4}

.turn-label{color:#f2e2b9;font-weight:550;letter-spacing:.5px;text-shadow:2px 2px 0 #101820}
.challenge{background:none;transition:opacity 150ms linear}
.chain p{color:#d5c6a1;text-shadow:2px 2px 0 #101820}
.chain>b{color:#f2e2b9;text-shadow:2px 2px 0 #b78336,4px 4px 0 #101820}
.clock-face{filter:drop-shadow(2px 3px 0 #101820)}
.clock-rim{fill:#102b30;stroke:#8e733f;stroke-width:2;stroke-linejoin:miter;shape-rendering:crispEdges}
.clock-track{stroke:#425e59;stroke-width:3}
.clock-progress{stroke-width:3}
.clock-ticks{stroke:#c7ac6d;stroke-width:2}
.timer{color:#e4b75b}
.timer-readout{color:#f2e2b9;text-shadow:2px 2px 0 #101820}
.timer-readout span{color:#d5c6a1}
.timer.paused{color:#a8b0a1}
.timer.paused .timer-readout b{color:#d3d3ba}
.timer.urgent{color:#ffad86}
.timer.urgent .timer-readout b{color:#ffd0b5}

/* The receipt is revealed in the established word / price / reward order. */
.latest-summon{position:relative;border:2px solid #b78336;background:#f2e2b9;box-shadow:inset 0 2px 0 #fff1bd,2px 3px 0 #101820a0}
.latest-summon-owner{color:#786247}
.latest-summon-word{color:#342721;letter-spacing:1px}
.latest-summon-value{color:#825722;min-height:1.2em}
.latest-summon[data-neutral=true] .latest-summon-value{color:#786247}
.latest-summon[data-stage=word] .latest-summon-value::before{content:attr(data-price);visibility:hidden}
.game-app[data-presenting=true] .challenge{opacity:.5}
.game-app[data-presentation-phase=intro] .challenge,.game-app[data-presentation-phase=handover] .challenge{opacity:1}
.game-app[data-presentation-phase=word] .latest-summon-word{animation:auction-word-reveal 200ms steps(4,end) both}
.game-app[data-presentation-phase=price] .latest-summon-value{animation:auction-price-reveal 150ms steps(3,end) both}
.game-app[data-presentation-phase=reward] .latest-summon{border-color:#e4b75b}
.game-app:has(.latest-summon[data-stage=bank][data-who=player]) #player-total,.game-app:has(.latest-summon[data-stage=bank][data-who=opponent]) #opponent-total{animation:auction-bank-receipt 400ms ease-out both}
.game-app[data-presentation-phase=handover] .chain>b{animation:auction-handover 250ms steps(4,end) both}
.reward-chest{filter:drop-shadow(0 4px 0 #10182080)}
#word{border:2px solid #a07b42;background:#f2e2b9;color:#342721;box-shadow:inset 0 2px 0 #71503818,2px 3px 0 #101820a0}
#word::placeholder{color:#786247}
#word:disabled{background:#c9c5a9e8;border-color:#8f8060;color:#625e4a}
#feedback{color:#e3d8b9;text-shadow:2px 2px 0 #101820}
#feedback.error{color:#ffd0b5}
#retry-button{border:2px solid #b78336;background:#193c3e;color:#f2e2b9}
.result strong{color:#fff1bd;text-shadow:3px 3px 0 #715038}
.result p{color:#f2e2b9}

@keyframes auction-word-reveal{from{opacity:.35;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@keyframes auction-price-reveal{from{opacity:.2;transform:translateY(3px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes auction-bank-receipt{0%{color:#ffe69a;transform:translateY(-2px)}100%{color:#f2e2b9;transform:translateY(0)}}
@keyframes auction-handover{from{opacity:.55;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}

@media(min-width:900px){
  .game-app::before{background-image:url('/assets/auction-v4/auction-hall-desktop.webp');background-position:center center;transform:none}
  .game-app::after{background:linear-gradient(#10182040,transparent 30%,transparent 75%,#10182075)}
  .score{border-width:2px;background:#193c3ef5;box-shadow:inset 0 2px 0 #315052,2px 3px 0 #101820a0}
  .score::before{height:1px;top:5px}
  .score.active{background:#1e4445fa;border-color:#e4b75b;box-shadow:inset 0 2px 0 #47605a,2px 3px 0 #101820a0}
  .summon-list{border-top-width:1px}
  .latest-summon{padding:12px 18px}
  .latest-summon-word,.latest-summon-value{font-size:36px}
  .reward-chest{width:min(65%,310px)}
}
@media(min-width:900px) and (max-height:740px){
  .latest-summon{padding:6px 12px}
  .latest-summon-word,.latest-summon-value{font-size:24px}
  .reward-chest{width:min(58%,230px)}
}
@media(min-width:900px) and (min-height:621px) and (max-height:740px){.reward-chest{bottom:86px;max-height:calc(100% - 100px)}}
@media(min-height:741px) and (max-width:899px){.reward-chest{bottom:66px;max-height:calc(100% - 80px)}}
@media(min-width:900px) and (min-height:741px){.reward-chest{bottom:106px;max-height:calc(100% - 120px)}}
@media(prefers-reduced-motion:reduce){
  .challenge{transition:none}
  .game-app[data-presentation-phase] .latest-summon-word,.game-app[data-presentation-phase] .latest-summon-value,.game-app[data-presentation-phase] .chain>b,.game-app:has(.latest-summon[data-stage=bank]) #player-total,.game-app:has(.latest-summon[data-stage=bank]) #opponent-total{animation:none}
  .primary:active:not(:disabled){transform:none}
}

/* The auction counter: values belong to objects, with the same data and space. */
.asset-vault{isolation:isolate;border-color:#8e673b;background:#193c3e;box-shadow:inset 0 3px 0 #9a6d3c,inset 0 -5px 0 #251e1b,3px 4px 0 #101820b0}
.asset-vault::before{inset:-2px;top:-2px;height:auto;border:8px solid transparent;border-image-source:url('/assets/auction-v5/asset-vault-frame.png');border-image-slice:36;border-image-repeat:stretch;background:none;image-rendering:pixelated;z-index:-1;box-shadow:none}
.asset-vault::after{content:'';position:absolute;left:calc(50% - 12px);bottom:1px;width:24px;height:4px;border:1px solid #c39750;background:#68482d;box-shadow:inset 0 1px 0 #e4b75b;pointer-events:none}
.asset-vault.active{border-color:#d8a753;background:#214647;box-shadow:inset 0 3px 0 #b78336,inset 0 -5px 0 #251e1b,3px 4px 0 #101820b0}
.asset-vault .score-heading{position:relative;background:#664b2e;box-shadow:inset 0 1px 0 #a7834d,inset 0 -1px 0 #342721;text-shadow:1px 1px 0 #342721}
.asset-vault .score-heading>span:first-child,.asset-vault.active .score-heading>span:first-child{color:#f2e2b9}
.asset-vault .score-caption{color:#e1cda4}
.asset-vault>b{position:relative;background:#112f31;box-shadow:inset 2px 2px 0 #0b2023,inset -2px -2px 0 #967343;color:#f2e2b9;text-shadow:2px 2px 0 #0b2023}
.asset-vault.active>b{background:#173b3b;box-shadow:inset 2px 2px 0 #0b2023,inset -2px -2px 0 #d8a753}
.asset-vault .summon-list{border-top:1px solid #221e1a;background:#241f1b;box-shadow:0 -3px 0 #221e1a,0 -4px 0 #8a6239,inset 0 2px 0 #101820;scrollbar-color:#a98248 #241f1b}
.asset-vault .summon-item{position:relative;border-bottom:1px solid #403025;background:#d6bf8f;box-shadow:inset 0 1px 0 #e8d5aa,inset 0 -2px 0 #403025;isolation:isolate}
.asset-vault .summon-item:last-child{border-bottom:0}
.asset-vault .summon-word{color:#342721;font-weight:600;text-shadow:none}
.asset-vault .summon-price{color:#68471f;text-shadow:none}

/* The chain prompt is a brass-framed standing tile, not floating typography. */
.chain-tag>b{position:relative;isolation:isolate;color:#f2e2b9;text-shadow:2px 2px 0 #715038,3px 3px 0 #101820}
.chain-tag>b::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:#214244;border:2px solid #b78336;box-shadow:inset 0 3px 0 #557065,inset 0 -3px 0 #112b2e,3px 3px 0 #101820;clip-path:polygon(4px 0,calc(100% - 4px) 0,calc(100% - 4px) 4px,100% 4px,100% calc(100% - 4px),calc(100% - 4px) calc(100% - 4px),calc(100% - 4px) 100%,4px 100%,4px calc(100% - 4px),0 calc(100% - 4px),0 4px,4px 4px)}
.chain-tag>b::after{content:'';position:absolute;width:72%;height:4px;left:14%;bottom:-4px;background:#926a3b;box-shadow:0 2px 0 #342721;z-index:-1;pointer-events:none}
.chain-tag>b.free::before{inset:0}
.chain-tag>b.free::after{height:3px;bottom:-3px}
.chain-tag p{position:relative;z-index:1}

/* A small base ties the clock to the counter without changing its hit box. */
.clock-face{position:relative;filter:drop-shadow(2px 3px 0 #101820)}
.timer{position:relative}
.timer::before{content:'';position:absolute;width:70%;height:5px;top:calc(100% - 35px);background:#8e673b;border-bottom:2px solid #342721;box-shadow:inset 0 1px 0 #d8a753;z-index:-1;pointer-events:none}
.timer-readout{position:relative;padding:0 3px;background:#102b30b8;box-shadow:0 1px 0 #b7833650}

/* The latest word and its price are printed on one clipped appraisal tag. */
.appraisal-ticket{isolation:isolate;border-color:#ad884c;background:#f2e2b9;box-shadow:inset 0 2px 0 #fff1bd,inset 0 -2px 0 #c6a674,2px 3px 0 #101820a0}
.appraisal-ticket::before{content:'';position:absolute;width:28px;height:10px;left:calc(50% - 14px);top:-6px;z-index:-1;background:#98723f;border:2px solid #d0aa63;border-bottom-color:#684a2c;box-shadow:2px 1px 0 #101820;pointer-events:none}
.appraisal-ticket::after{content:'';position:absolute;inset:4px;z-index:-1;border-top:1px solid #c6a67466;border-bottom:1px dashed #9f7b424a;pointer-events:none}
.appraisal-ticket .latest-summon-owner{border-bottom:1px solid #9f7b4255}
.appraisal-ticket .latest-summon-value{color:#79501f;background:#d9be8760;box-shadow:0 1px 0 #a7834d80}
.appraisal-ticket[data-neutral=true] .latest-summon-value{background:transparent;box-shadow:none}
.game-app[data-presentation-phase=reward] .appraisal-ticket{border-color:#e4b75b;box-shadow:inset 0 2px 0 #fff1bd,inset 0 -2px 0 #c6a674,2px 3px 0 #101820a0}
.game-app[data-presenting=true]:has(.appraisal-ticket[data-stage=bank][data-who=player]) #player-items .summon-item:last-child,.game-app[data-presenting=true]:has(.appraisal-ticket[data-stage=bank][data-who=opponent]) #opponent-items .summon-item:last-child{animation:auction-vault-file 300ms steps(5,end) both}
.game-app[data-presenting=true]:has(.appraisal-ticket[data-stage=bank][data-who=player]) #player-card>b,.game-app[data-presenting=true]:has(.appraisal-ticket[data-stage=bank][data-who=opponent]) #opponent-card>b{animation:auction-vault-window 400ms steps(5,end) both}

/* A writing slot and a stamp handle are the two actual controls. */
.counter-form{position:relative;isolation:isolate}
.counter-form::before{content:'';position:absolute;inset:-4px -3px -3px;z-index:-1;border:2px solid #694a30;background:repeating-linear-gradient(0deg,#493428 0 3px,#59412d 3px 5px,#453125 5px 8px);box-shadow:inset 0 2px 0 #a57642,0 3px 0 #101820;pointer-events:none}
.counter-form #word{background:#e8d5aa;box-shadow:inset 0 3px 0 #3427214a,inset 0 -2px 0 #f2e2b9;border-color:#735633}
.counter-form #word::placeholder{color:#6f573c}
.counter-form #word:disabled{background:#c9c5a9e8;color:#625e4a}
.counter-form #submit-button{border-color:#956c34;border-bottom-color:#493023;background:#b78336;box-shadow:inset 0 3px 0 #e4b75b,inset 0 -4px 0 #715038,0 3px 0 #101820;text-shadow:0 1px 0 #e4b75b}
.counter-form #submit-button:hover:not(:disabled){background:#c69547}
.counter-form #submit-button:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 1px 0 #e4b75b,inset 0 -2px 0 #715038,0 1px 0 #101820}
.counter-form #submit-button:disabled{background:#706a52;border-color:#706a52;border-bottom-color:#494638;color:#d4c9aa;box-shadow:inset 0 2px 0 #918970,inset 0 -3px 0 #494638;transform:none;text-shadow:none}

@keyframes auction-vault-file{from{opacity:.3;transform:translateY(-7px)}to{opacity:1;transform:translateY(0)}}
@keyframes auction-vault-window{0%{color:#ffe69a;background:#4b4930}100%{color:#f2e2b9;background:#173b3b}}
@media(min-width:900px){
  .asset-vault{background:#193c3e;border-color:#8e673b;box-shadow:inset 0 4px 0 #9a6d3c,inset 0 -6px 0 #251e1b,4px 5px 0 #101820b0}
  .asset-vault.active{background:#214647;border-color:#d8a753;box-shadow:inset 0 4px 0 #b78336,inset 0 -6px 0 #251e1b,4px 5px 0 #101820b0}
  .asset-vault::before{inset:-2px;height:auto;top:-2px;border-width:12px}
  .asset-vault::after{width:36px;left:calc(50% - 18px);height:5px;bottom:2px}
  .asset-vault .summon-list{border-top-width:1px}
  .chain-tag>b::before{inset:0;border-width:3px;box-shadow:inset 0 4px 0 #557065,inset 0 -4px 0 #112b2e,4px 4px 0 #101820}
  .chain-tag>b::after{height:6px;bottom:-6px;box-shadow:0 3px 0 #342721}
  .timer::before{height:7px;top:calc(100% - 43px)}
  .appraisal-ticket::before{width:40px;left:calc(50% - 20px);height:12px;top:-7px}
  .counter-form::before{inset:-5px -5px -4px;border-width:3px}
}
@media(min-width:900px) and (max-height:740px){.timer::before{top:calc(100% - 35px)}}
@media(max-width:359px){.asset-vault .summon-item{font-size:13px;gap:3px}.asset-vault .summon-price{font-size:13px;letter-spacing:-.3px}}
.compact .timer::before{top:calc(100% - 28px);height:4px}
.tiny .timer::before{top:calc(100% - 24px);height:3px}
.tiny .asset-vault::before{inset:-2px;top:-2px;border-width:4px}
.tiny .asset-vault::after{height:2px;bottom:0;width:18px;left:calc(50% - 9px)}
.tiny .chain-tag>b::before{inset:0;border-width:1px;box-shadow:inset 0 2px 0 #557065,inset 0 -2px 0 #112b2e,2px 2px 0 #101820}
.tiny .chain-tag>b::after{height:2px;bottom:-2px;box-shadow:0 1px 0 #342721}
.tiny .appraisal-ticket::before{width:18px;left:calc(50% - 9px);height:6px;top:-4px;border-width:1px}
.tiny .appraisal-ticket::after{inset:2px}
.tiny .counter-form::before{inset:-2px -2px -1px;border-width:1px}
@media(prefers-reduced-motion:reduce){
  .game-app[data-presenting=true]:has(.appraisal-ticket[data-stage=bank]) .summon-item:last-child,.game-app[data-presenting=true]:has(.appraisal-ticket[data-stage=bank]) #player-card>b,.game-app[data-presenting=true]:has(.appraisal-ticket[data-stage=bank]) #opponent-card>b{animation:none}
  .counter-form #submit-button:active:not(:disabled){transform:none}
}

/* A persistent theme picker shares the existing round line on phones. */
.theme-select{grid-column:1;grid-row:2;justify-self:end;align-self:start;width:90px;max-width:40%;height:20px;min-height:0;border:1px solid #8e733f;border-radius:0;background:#102b30;color:#f2e2b9;font-size:11px;line-height:1.1;padding:0 2px 0 5px;color-scheme:dark;cursor:pointer}
#round-count{width:max-content;max-width:100%}
.classroom-clock-outline{display:none}
.topbar:has(#round-count[hidden]) h1{grid-row:1;align-self:end}
.compact .theme-select{height:18px;font-size:11px;width:84px}
.tiny .theme-select{height:14px;font-size:10px;width:76px;border-width:1px;padding-left:3px}
@media(max-width:359px){#round-count{font-size:11px;line-height:19.5px}.game-app .theme-select{width:80px;max-width:none}}
@media(min-width:900px){
  .topbar{grid-template-columns:minmax(0,1fr) auto auto auto;column-gap:18px}
  .theme-select{grid-column:3;grid-row:1;align-self:center;max-width:none;width:112px;height:34px;font-size:14px;padding-left:8px}
  .top-actions{grid-column:4}
  .topbar h1,.topbar:has(#round-count[hidden]) h1{grid-row:1;align-self:center}
}

/* Two classmates made this game on a crumpled sheet between their desks. */
body:has(.game-app[data-theme=classroom]){background:#a87649}
.game-app[data-theme=classroom]{--paper:#f1e9d5;--ink:#263b62;--muted:#586170;--gold:#a96c23;--line:#7a8080;--scene:#f1e9d5;--ledger:#e4d9c3;--ivory:#f1e9d5;--brass:#c98d31;--shadow:#604935;color:#263b62;background:#f1e9d5;font-family:"MiSans","PingFang SC","Microsoft YaHei",sans-serif}
.game-app[data-theme=classroom]::before{background-image:url('/assets/auction-classroom-v1/classroom-mobile.webp');background-position:center center;background-size:cover;transform:none;image-rendering:auto}
.game-app[data-theme=classroom]::after{background:linear-gradient(#f1e9d520,transparent 12%,transparent 90%,#c5ad8b25)}
.game-app[data-theme=classroom] .topbar{border-bottom:2px dashed #59687a70}
.game-app[data-theme=classroom] h1{font-family:"KaiTi","STKaiti","MiSans","PingFang SC",sans-serif;font-weight:700;color:#263b62;letter-spacing:0;text-shadow:none;justify-self:start;background:#f1e9d580}
.game-app[data-theme=classroom] #round-count{color:#3d4f6b}
.game-app[data-theme=classroom] .theme-select{border-color:#6b7785;background:#f1e9d5;color:#263b62;color-scheme:light}
.game-app[data-theme=classroom] .top-actions{background:#f1e9d5cc}
.game-app[data-theme=classroom] .top-actions button{color:#3d4f6b;background:transparent}
.game-app[data-theme=classroom] .top-actions button:hover{background:#35568b15;color:#183967}
.game-app[data-theme=classroom] .top-actions .sound-button{color:#a46a25;text-shadow:none}
.game-app[data-theme=classroom] .sound-button[aria-pressed=true]{color:#263b62;text-shadow:none}

/* The two hand-drawn columns are the classmates' real item/value records. */
.game-app[data-theme=classroom] .asset-vault,.game-app[data-theme=classroom] .asset-vault.active{border:2px solid transparent;background:#f1e9d5cc;box-shadow:none}
.game-app[data-theme=classroom] .asset-vault::before{inset:-2px;top:-2px;border:2px solid #657184;border-radius:4px 2px 5px 3px;border-image-source:none;background:none;box-shadow:1px 1px 0 #263b6230;transform:skewY(-.35deg)}
.game-app[data-theme=classroom] .asset-vault.active::before{border-color:#31578f;box-shadow:1px 1px 0 #31578f40}
.game-app[data-theme=classroom] .asset-vault::after{height:3px;bottom:0;border:0;border-top:1px solid #536580;background:none;box-shadow:none;width:60%;left:20%;transform:rotate(-1deg)}
.game-app[data-theme=classroom] .asset-vault .score-heading{background:transparent;color:#263b62;box-shadow:none;border-bottom:1px solid #8b91904d;text-shadow:none}
.game-app[data-theme=classroom] .asset-vault .score-heading>span:first-child,.game-app[data-theme=classroom] .asset-vault.active .score-heading>span:first-child{color:#263b62}
.game-app[data-theme=classroom] .asset-vault .score-caption{color:#586170}
.game-app[data-theme=classroom] .asset-vault>b,.game-app[data-theme=classroom] .asset-vault.active>b{font-family:"KaiTi","STKaiti","MiSans","PingFang SC",sans-serif;font-weight:700;background:transparent;color:#263b62;box-shadow:none;text-shadow:none;letter-spacing:-1px}
.game-app[data-theme=classroom] .asset-vault .summon-list{border-color:#718099;background:transparent;box-shadow:none;scrollbar-color:#6b7785 transparent}
.game-app[data-theme=classroom] .asset-vault .summon-item{background:#f1e9d545;border-bottom-color:#71809955;box-shadow:inset 0 -1px 0 #71809930}
.game-app[data-theme=classroom] .asset-vault .summon-word{color:#263b62;font-weight:550}
.game-app[data-theme=classroom] .asset-vault .summon-price{color:#80511d;font-weight:700}

.game-app[data-theme=classroom] .turn-label{color:#263b62;font-weight:700;letter-spacing:0;text-shadow:none}
.game-app[data-theme=classroom] .chain p{color:#3d4f6b;text-shadow:none}
.game-app[data-theme=classroom] .chain-tag>b{font-family:"KaiTi","STKaiti","MiSans","PingFang SC",sans-serif;font-weight:700;color:#263b62;text-shadow:1px 1px 0 #263b6225}
.game-app[data-theme=classroom] .chain-tag>b::before{background:#f1e9d52b;border-color:#536580;border-width:2px;box-shadow:inset 1px 0 0 #71809955;clip-path:none;transform:skewX(-1deg)}
.game-app[data-theme=classroom] .chain-tag>b::after{background:transparent;height:4px;border-top:2px solid #536580;box-shadow:none;bottom:-4px;transform:rotate(.7deg)}
.game-app[data-theme=classroom] .timer{color:#31578f}
.game-app[data-theme=classroom] .clock-face{filter:none}
.game-app[data-theme=classroom] .clock-rim{fill:none;stroke:none}
.game-app[data-theme=classroom] .classroom-clock-outline{display:block;fill:none;stroke:#536580;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}
.game-app[data-theme=classroom] .clock-track{stroke:#929da355}
.game-app[data-theme=classroom] .clock-ticks{stroke:#536580;stroke-width:1.5;stroke-linecap:round}
.game-app[data-theme=classroom] .clock-pin{fill:#31578f}
.game-app[data-theme=classroom] .timer::before{background:transparent;border-bottom:2px solid #536580;box-shadow:none;transform:rotate(-1deg)}
.game-app[data-theme=classroom] .timer-readout{font-family:"KaiTi","STKaiti","MiSans","PingFang SC",sans-serif;color:#263b62;background:transparent;text-shadow:none;box-shadow:none}
.game-app[data-theme=classroom] .timer-readout b{font-family:inherit;font-weight:700}
.game-app[data-theme=classroom] .timer-readout span{color:#586170}
.game-app[data-theme=classroom] .timer.urgent,.game-app[data-theme=classroom] .timer.urgent .timer-readout b{color:#9c402e}
.game-app[data-theme=classroom] .timer.paused,.game-app[data-theme=classroom] .timer.paused .timer-readout b{color:#586170}

/* Pencil brackets and a ballpoint price underline keep one summon together. */
.game-app[data-theme=classroom] .appraisal-ticket,.game-app[data-theme=classroom][data-presentation-phase=reward] .appraisal-ticket{border-color:#657184;background:#f1e9d545;box-shadow:1px 2px 0 #263b6230}
.game-app[data-theme=classroom] .appraisal-ticket::before{width:24px;left:calc(50% - 12px);height:6px;top:-4px;background:transparent;border:0;border-top:2px solid #536580;border-bottom:1px solid #536580;box-shadow:none;transform:rotate(-3deg)}
.game-app[data-theme=classroom] .appraisal-ticket::after{border-color:#71809955;inset:4px}
.game-app[data-theme=classroom] .appraisal-ticket .latest-summon-owner{color:#586170;border-bottom-color:#71809966}
.game-app[data-theme=classroom] .latest-summon-word{font-family:"KaiTi","STKaiti","MiSans","PingFang SC",sans-serif;font-weight:700;color:#263b62;letter-spacing:0}
.game-app[data-theme=classroom] .appraisal-ticket .latest-summon-value{font-family:"KaiTi","STKaiti","MiSans","PingFang SC",sans-serif;font-weight:700;color:#80511d;background:transparent;box-shadow:0 1px 0 #80511d66}
.game-app[data-theme=classroom] .latest-summon[data-neutral=true] .latest-summon-value{color:#586170;font-family:inherit}
.game-app[data-theme=classroom] .reward-chest{filter:none}
.game-app[data-theme=classroom][data-phase=appraising] .auction-stage::after{background:radial-gradient(ellipse at 50% 82%,#edbc523d,transparent 58%)}

/* The invitation and real controls look like forms scribbled on the same sheet. */
.game-app[data-theme=classroom] .setup,.game-app[data-theme=classroom] .online-lobby{border-color:#657184;background:#f1e9d5e8;color:#263b62;box-shadow:2px 3px 0 #6049353b}
.game-app[data-theme=classroom] .setup::after,.game-app[data-theme=classroom] .online-lobby::after{border-color:#71809955;transform:skewY(-.35deg)}
.game-app[data-theme=classroom] .setup-title{font-family:"KaiTi","STKaiti","MiSans","PingFang SC",sans-serif;font-weight:700;color:#263b62;text-shadow:none}
.game-app[data-theme=classroom] .setup-title::before{background-image:url('/assets/auction-classroom-v1/chest-closed-classroom.png')}
.game-app[data-theme=classroom] .setup-fields label,.game-app[data-theme=classroom] .room-caption,.game-app[data-theme=classroom] .online-hint,.game-app[data-theme=classroom] .room-members{color:#586170}
.game-app[data-theme=classroom] .setup-fields select,.game-app[data-theme=classroom] .room-join-row input,.game-app[data-theme=classroom] .room-share-link{border-color:#718099;background:#f6f0e3;color:#263b62;box-shadow:none}
.game-app[data-theme=classroom] .setup-fields select:disabled{background:#ddd8cb;color:#656a6b}
.game-app[data-theme=classroom] .primary{border-color:#657184;border-bottom-color:#536580;background:#e2d8bd;color:#263b62;box-shadow:inset 0 1px 0 #f6f0e3,1px 2px 0 #53658055;text-shadow:none}
.game-app[data-theme=classroom] .primary:hover:not(:disabled){background:#ece2cd;border-color:#31578f}
.game-app[data-theme=classroom] .primary:disabled{background:#ddd8cb;color:#656a6b;border-color:#929da3;box-shadow:none;text-shadow:none}
.game-app[data-theme=classroom] .room-join-row button,.game-app[data-theme=classroom] .room-invite button,.game-app[data-theme=classroom] .room-secondary{border-color:#718099;background:#f1e9d5;color:#263b62}
.game-app[data-theme=classroom] .room-invite strong,.game-app[data-theme=classroom] .room-phase,.game-app[data-theme=classroom] .room-opening-word{color:#263b62;text-shadow:none}
.game-app[data-theme=classroom] .room-invite strong{font-family:"KaiTi","STKaiti","MiSans","PingFang SC",sans-serif;font-weight:700}
.game-app[data-theme=classroom] .room-members [data-ready=true]{color:#365f43}
.game-app[data-theme=classroom] .online-lobby .room-secondary{color:#586170}
.game-app[data-theme=classroom] .online-lobby #room-retry-button{border-color:#718099;color:#9c402e}
.game-app[data-theme=classroom] .counter-form::before{border-color:#718099;background:#f1e9d5;box-shadow:1px 2px 0 #53658040}
.game-app[data-theme=classroom] .counter-form #word{border-color:#718099;background:#f6f0e3;color:#263b62;box-shadow:inset 0 -1px 0 #53658055}
.game-app[data-theme=classroom] .counter-form #word::placeholder{color:#586170}
.game-app[data-theme=classroom] .counter-form #word:disabled{background:#ddd8cbe0;color:#656a6b;border-color:#929da3}
.game-app[data-theme=classroom] .counter-form #submit-button{background:#e2d8bd;color:#263b62;border-color:#657184;border-bottom-color:#536580;box-shadow:inset 0 -2px 0 #71809955,1px 2px 0 #53658055;text-shadow:none}
.game-app[data-theme=classroom] .counter-form #submit-button:hover:not(:disabled){background:#ece2cd}
.game-app[data-theme=classroom] .counter-form #submit-button:disabled{background:#ddd8cb;color:#656a6b;border-color:#929da3;box-shadow:none}
.game-app[data-theme=classroom] #feedback{color:#3d4f6b;text-shadow:none}
.game-app[data-theme=classroom] #feedback.error{color:#9c402e}
.game-app[data-theme=classroom] #retry-button{border-color:#718099;background:#f1e9d5;color:#263b62}
.game-app[data-theme=classroom] .result strong{font-family:"KaiTi","STKaiti","MiSans","PingFang SC",sans-serif;font-weight:700;color:#263b62;text-shadow:none}
.game-app[data-theme=classroom] .result p{color:#3d4f6b}
.game-app[data-theme=classroom][data-presenting=true]:has(.appraisal-ticket[data-stage=bank][data-who=player]) #player-card>b,.game-app[data-theme=classroom][data-presenting=true]:has(.appraisal-ticket[data-stage=bank][data-who=opponent]) #opponent-card>b{animation:classroom-bank-note 400ms steps(5,end) both}
@keyframes classroom-bank-note{0%{color:#31578f;background:#e4c96b70}100%{color:#263b62;background:transparent}}
@media(min-width:900px){.game-app[data-theme=classroom]::before{background-image:url('/assets/auction-classroom-v1/classroom-desktop.webp');background-position:center center}.game-app[data-theme=classroom]::after{background:linear-gradient(#f1e9d510,transparent 12%,transparent 92%,#c5ad8b20)}}
.game-app[data-theme=classroom].tiny .asset-vault::before{inset:-2px;top:-2px;border-width:1px}
.game-app[data-theme=classroom].tiny .appraisal-ticket::before{height:4px;top:-3px;width:18px;left:calc(50% - 9px)}
@media(prefers-reduced-motion:reduce){
  .game-app[data-presenting=true]:has(.appraisal-ticket[data-stage=bank][data-who=player]) #player-items .summon-item:last-child,.game-app[data-presenting=true]:has(.appraisal-ticket[data-stage=bank][data-who=opponent]) #opponent-items .summon-item:last-child,
  .game-app[data-presenting=true]:has(.appraisal-ticket[data-stage=bank][data-who=player]) #player-card>b,.game-app[data-presenting=true]:has(.appraisal-ticket[data-stage=bank][data-who=opponent]) #opponent-card>b,
  .game-app[data-theme=classroom][data-presenting=true]:has(.appraisal-ticket[data-stage=bank][data-who=player]) #player-card>b,.game-app[data-theme=classroom][data-presenting=true]:has(.appraisal-ticket[data-stage=bank][data-who=opponent]) #opponent-card>b{animation:none}
}

/* Match rules are configured on the invitation, then folded away during play. */
.setup{gap:16px;padding:24px;max-height:100%}
.setup .setup-title::before{width:180px;height:90px;margin-bottom:12px}
.setup .setup-fields,.setup.ai-setup .setup-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.setup .setup-fields label{gap:5px}
.setup .setup-fields select{height:44px;font-size:18px;padding:5px 8px}
.ban-settings{min-width:0;flex-shrink:0;color:#e1d4b1}
.ban-settings summary{cursor:pointer;min-height:34px;border:1px solid #a07b42;background:#193c3e;padding:6px 10px;font-size:14px;line-height:20px;list-style-position:inside;touch-action:manipulation}
.ban-fields{display:flex;flex-direction:column;gap:8px;padding-top:8px;min-width:0}
.ban-fields label{display:flex;flex-direction:column;gap:4px;font-size:13px;line-height:18px;color:#e1d4b1}
.ban-fields textarea{width:100%;min-width:0;resize:none;height:44px;min-height:44px;border:1px solid #a07b42;border-radius:0;background:#f2e2b9;color:#342721;font-size:16px;line-height:20px;padding:4px 8px}
.ban-fields textarea::placeholder{font-size:13px;color:#786247}
.ban-fields textarea:disabled{background:#c9c5a9;color:#625e4a}
.ban-hint{font-size:12px;line-height:18px;color:#cfc1a0}
.setup:has(#bans-settings[open]) .setup-title::before{display:none}
.online-lobby:has(#room-ban-settings[open]){gap:6px;padding:14px}
.online-lobby:has(#room-ban-settings[open]) .room-members{display:none}
.online-lobby:has(#room-ban-settings[open]) .room-lobby-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.online-lobby:has(#room-ban-settings[open]) .primary{min-height:44px;height:44px;font-size:16px;padding:6px}
#room-ban-union{max-height:54px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.game-app[data-theme=classroom] .ban-settings summary{border-color:#718099;background:#f1e9d5;color:#263b62}
.game-app[data-theme=classroom] .ban-fields label,.game-app[data-theme=classroom] .ban-hint{color:#586170}
.game-app[data-theme=classroom] .ban-fields textarea{border-color:#718099;background:#f6f0e3;color:#263b62}
.game-app[data-theme=classroom] .ban-fields textarea::placeholder{color:#586170}
.game-app[data-theme=classroom] .ban-fields textarea:disabled{background:#ddd8cb;color:#656a6b}
@media(max-width:899px){
  .setup{gap:12px;padding:18px 16px}
  .setup .setup-title::before{display:none}
  .setup .setup-fields label{font-size:14px;gap:4px}
  .setup .setup-fields select{height:42px;font-size:16px;padding:4px 6px}
  .setup.online-setup{gap:10px}
  .setup.online-setup .setup-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .setup.online-setup .setup-fields label{font-size:13px}
  .setup.online-setup .setup-fields select{font-size:13px;padding-left:3px;padding-right:2px}
  .setup:has(#bans-settings[open]) .setup-fields{display:none}
  .setup:has(#bans-settings[open]){gap:10px;padding:16px}
}
@media(min-width:900px) and (max-height:740px){.setup:has(#bans-settings[open]) .setup-fields{display:none}}
.tiny .setup{gap:6px;padding:10px 14px}
.tiny .setup .setup-title{font-size:22px}
.tiny .setup .setup-fields{gap:6px}
.tiny .setup .setup-fields label{font-size:12px;gap:3px}
.tiny .setup .setup-fields select{height:34px;font-size:14px;padding:3px 5px}
.tiny .setup.online-setup .setup-fields select{font-size:12px;padding-left:2px;padding-right:1px}
.tiny .setup.online-setup .setup-title,.tiny .setup:has(#bans-settings[open]) .setup-title{display:none}
.tiny .setup:has(#bans-settings[open]) .online-entry{display:none}
.tiny .ban-settings summary{min-height:26px;padding:3px 7px;font-size:12px;line-height:18px}
.tiny .ban-fields{gap:6px;padding-top:6px}
.tiny .ban-fields label{font-size:12px;line-height:15px;gap:3px}
.tiny .ban-fields textarea{height:30px;min-height:30px;font-size:16px;line-height:20px;padding:3px 6px}
.tiny .ban-hint{font-size:11px;line-height:14px}
.tiny .online-lobby:has(#room-ban-settings[open]){padding:10px 12px;gap:6px}
.tiny .online-lobby:has(#room-ban-settings[open]) .room-invite{display:none}

/* Invalid attempts never enter the priced receipt or hide the writing slot. */
.invalid-edge{position:fixed;inset:0;border:4px solid #d9563d;box-shadow:inset 0 0 70px 16px #e8403580;background:radial-gradient(ellipse at center,transparent 48%,#d62d242e 100%);pointer-events:none;z-index:60;opacity:0}
.invalid-edge.is-visible{animation:auction-invalid-edge 750ms ease-out both}
.invalid-attempt{position:absolute;left:50%;transform:translateX(-50%);z-index:40;max-width:calc(100% - 24px);width:max-content;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:10px;padding:5px 12px;border:2px solid #dc7960;background:#172e30f5;color:#ffe0c9;box-shadow:3px 3px 0 #10182080;pointer-events:none}
.invalid-cross{grid-row:1 / 3;font-family:Arial,sans-serif;font-size:62px;font-weight:800;line-height:.9;color:#f19880}
#invalid-attempt-word{font-family:var(--pixel-font);font-size:24px;line-height:1.2;font-weight:400;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#invalid-attempt-message{font-size:12px;line-height:18px;color:#edc5b4}
.invalid-attempt.header-mode{display:flex;gap:8px;padding:2px 9px;max-width:calc(100% - 16px)}
.invalid-attempt.header-mode .invalid-cross{font-size:30px}
.invalid-attempt.header-mode #invalid-attempt-word{font-size:18px}
.invalid-attempt.header-mode #invalid-attempt-message{font-size:11px;white-space:nowrap}
.game-app[data-theme=classroom] .invalid-attempt{border-color:#9c402e;background:#f1e9d5f5;color:#9c402e;box-shadow:1px 2px 0 #60493535}
.game-app[data-theme=classroom] .invalid-cross,.game-app[data-theme=classroom] #invalid-attempt-message{color:#9c402e}
.game-app[data-theme=classroom] #invalid-attempt-word{font-family:"KaiTi","STKaiti","MiSans","PingFang SC",sans-serif;font-weight:700}
@keyframes auction-invalid-edge{0%{opacity:.9}25%{opacity:.65}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.invalid-edge.is-visible{animation:none;opacity:.45}}

@media(min-height:700px){.setup:has(#bans-settings[open]) .setup-fields{display:grid}}
.latest-summon-unit{grid-column:1 / -1;flex-basis:100%;text-align:center;font-size:12px;line-height:18px;color:#786247}
.compact .latest-summon-unit,.tiny .latest-summon-unit{font-size:11px;line-height:14px}
.game-app[data-theme=classroom] .latest-summon-unit{color:#586170}
/* v6 海派夜拍: the hall's own fan and stepped-corner motifs frame every panel. */
.segment-source{display:none!important}
.paddle-no,.lot-no,.sold-stamp{display:none}
.segmented{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:3px;padding:3px;min-width:0;border:1px solid #a07b42;background:#0d2326;box-shadow:inset 0 2px 0 #08191b}
.segmented button{min-width:0;min-height:42px;padding:3px 4px;border:0;border-radius:0;background:transparent;color:#d5c6a1;font-size:16px;font-weight:600;line-height:1.15;white-space:nowrap;display:flex;flex-direction:column;align-items:center;justify-content:center}
.segmented button:hover:not(:disabled):not([aria-checked=true]){background:#f2e2b912;color:#f2e2b9}
.segmented button[aria-checked=true]{background:linear-gradient(#f0c873,#c9963f);color:#21170f;box-shadow:inset 0 1px 0 #ffe9b0,inset 0 -2px 0 #8a5b18;text-shadow:0 1px 0 #f6d996}
.segmented button:disabled{opacity:.55}
.segmented button:focus-visible{outline:2px solid #ffe39a;outline-offset:1px;position:relative;z-index:1}
.segment-note{font-size:11px;font-weight:400;line-height:1.1;opacity:.75}
.game-app .setup .setup-fields,.game-app .setup.ai-setup .setup-fields,.game-app .setup.online-setup .setup-fields{grid-template-columns:minmax(0,1fr);gap:8px}
.game-app .setup .setup-fields label{display:grid;grid-template-columns:4.6em minmax(0,1fr);align-items:center;column-gap:10px;font-size:15px}
.setup-eyebrow{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:-10px;font-size:13px;letter-spacing:.3em;color:#e4b75b;white-space:nowrap}
.setup-eyebrow::before,.setup-eyebrow::after{content:'';flex:1;max-width:56px;height:4px;border-top:1px solid #b78336;border-bottom:1px solid #b7833670}
.compact .segmented button{min-height:36px;font-size:15px}
.tiny .segmented button{min-height:32px;font-size:14px}
.tiny .segment-note,.tiny .setup-eyebrow{display:none}
@media(max-width:359px){.game-app .setup .setup-fields label{grid-template-columns:4.2em minmax(0,1fr);column-gap:6px;font-size:13px}.segmented button{font-size:14px;padding:3px 2px}}
@media(min-width:900px){.segmented button{min-height:46px;font-size:17px}.setup-eyebrow{font-size:14px}}

.game-app[data-theme=auction]{
  --deco-frame:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' shape-rendering='crispEdges'><path d='M8 1H40V4H44V8H47V40H44V44H40V47H8V44H4V40H1V8H4V4H8Z' fill='%23163537' stroke='%23b78336' stroke-width='2'/><path d='M11 6.5H37V9.5H39V11.5H41.5V37H39V39H37V41.5H11V39H9V37H6.5V11.5H9V9.5H11Z' fill='none' stroke='%23e4b75b' stroke-opacity='.4'/><path d='M0 0h3v3H0zM45 0h3v3h-3zM0 45h3v3H0zM45 45h3v3h-3z' fill='%23e4b75b'/></svg>");
  --deco-frame-active:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' shape-rendering='crispEdges'><path d='M8 1H40V4H44V8H47V40H44V44H40V47H8V44H4V40H1V8H4V4H8Z' fill='%231c4143' stroke='%23e4b75b' stroke-width='2'/><path d='M11 6.5H37V9.5H39V11.5H41.5V37H39V39H37V41.5H11V39H9V37H6.5V11.5H9V9.5H11Z' fill='none' stroke='%23ffe6a0' stroke-opacity='.55'/><path d='M0 0h3v3H0zM45 0h3v3h-3zM0 45h3v3H0zM45 45h3v3h-3z' fill='%23ffe6a0'/></svg>");
  --deco-tile:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' shape-rendering='crispEdges'><path d='M8 1H40V4H44V8H47V40H44V44H40V47H8V44H4V40H1V8H4V4H8Z' fill='%231b3d3f' stroke='%23c99a4a' stroke-width='2'/><path d='M11 6.5H37V9.5H39V11.5H41.5V37H39V39H37V41.5H11V39H9V37H6.5V11.5H9V9.5H11Z' fill='none' stroke='%23e4b75b' stroke-opacity='.5'/><path d='M0 0h3v3H0zM45 0h3v3h-3zM0 45h3v3H0zM45 45h3v3h-3z' fill='%23e4b75b'/></svg>");
  --deco-ivory:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' shape-rendering='crispEdges'><path d='M8 1H40V4H44V8H47V40H44V44H40V47H8V44H4V40H1V8H4V4H8Z' fill='%23f2e2b9' stroke='%23a37a3c' stroke-width='2'/><path d='M11 6.5H37V9.5H39V11.5H41.5V37H39V39H37V41.5H11V39H9V37H6.5V11.5H9V9.5H11Z' fill='none' stroke='%23b78336' stroke-opacity='.45'/><path d='M0 0h3v3H0zM45 0h3v3h-3zM0 45h3v3H0zM45 45h3v3h-3z' fill='%23b78336'/></svg>");
  --deco-ivory-hot:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' shape-rendering='crispEdges'><path d='M8 1H40V4H44V8H47V40H44V44H40V47H8V44H4V40H1V8H4V4H8Z' fill='%23f6e8c4' stroke='%23e4b75b' stroke-width='2'/><path d='M11 6.5H37V9.5H39V11.5H41.5V37H39V39H37V41.5H11V39H9V37H6.5V11.5H9V9.5H11Z' fill='none' stroke='%23d9a347' stroke-opacity='.7'/><path d='M0 0h3v3H0zM45 0h3v3h-3zM0 45h3v3H0zM45 45h3v3h-3z' fill='%23e4b75b'/></svg>");
  --deco-fan:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 22'><g fill='none' stroke='%23e4b75b' stroke-width='1.8'><path d='M3 20A17 17 0 0 1 37 20Z'/><path d='M20 20L5.3 11.5M20 20L11.5 5.3M20 20V3M20 20L28.5 5.3M20 20L34.7 11.5'/><path d='M10 20A10 10 0 0 1 30 20'/></g></svg>");
  --deco-caret:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'><path d='M0 0h10L5 6z' fill='%23e4b75b'/></svg>");
  --word-font:"MiSans","PingFang SC","Microsoft YaHei",sans-serif;
}
.game-app[data-theme=auction] .topbar{border-bottom:0;padding-bottom:7px;background:linear-gradient(#b7833690,#b7833690) left bottom/100% 1px no-repeat,linear-gradient(#b7833640,#b7833640) left calc(100% - 4px)/100% 1px no-repeat}
.game-app[data-theme=auction] h1::before{content:'';display:inline-block;width:1.2em;height:.66em;margin-right:.32em;vertical-align:.06em;background:var(--deco-fan) center/contain no-repeat}
.game-app[data-theme=auction] .theme-select{appearance:none;-webkit-appearance:none;border:1px solid #b78336;background:#0f2629 var(--deco-caret) right 6px center/8px 5px no-repeat;color:#f2e2b9;padding-right:18px}

/* Entry, lobby and both paddles share one stepped brass frame drawn as a nine-slice. */
.game-app[data-theme=auction] :is(.setup,.online-lobby,.asset-vault,.appraisal-ticket){border:2px solid transparent;background:none;box-shadow:none;border-image:var(--deco-frame) 14 fill / 14px stretch}
.game-app[data-theme=auction] :is(.setup,.online-lobby){filter:drop-shadow(4px 5px 0 #0b1518a6)}
.game-app[data-theme=auction] :is(.setup,.online-lobby)::after{display:none}
.game-app[data-theme=auction] .setup-title{letter-spacing:2px}
.game-app[data-theme=auction] .setup-fields label{color:#d5c6a1}
.game-app[data-theme=auction] .ban-settings summary{background:#0d2326;border-color:#a07b42;color:#e1d4b1}

.game-app[data-theme=auction] .asset-vault{filter:drop-shadow(3px 4px 0 #0b1518b0)}
.game-app[data-theme=auction] .asset-vault.active{border-image-source:var(--deco-frame-active)}
.game-app[data-theme=auction] .asset-vault::before{display:none}
.game-app[data-theme=auction] .asset-vault::after{display:none}
.game-app[data-theme=auction] .asset-vault.active::after{display:block;content:'出价中';position:absolute;left:50%;top:-9px;bottom:auto;width:auto;height:auto;transform:translateX(-50%);padding:0 8px;border:1px solid #e4b75b;background:#0f2629;color:#ffe6a0;font-size:11px;line-height:15px;letter-spacing:.2em;white-space:nowrap;box-shadow:none}
.game-app[data-theme=auction] .asset-vault .score-heading{justify-content:flex-start;gap:7px;background:none;box-shadow:none;text-shadow:1px 1px 0 #0b1518}
.game-app[data-theme=auction] .paddle-no{order:-1;flex-shrink:0;display:inline-grid;place-items:center;min-width:2.1em;height:1.45em;padding:0 3px;font-family:var(--pixel-font);font-size:.8em;line-height:1;color:#21170f;text-shadow:none;background:linear-gradient(#f0c873,#c9963f);box-shadow:inset 0 1px 0 #ffe9b0,inset 0 -2px 0 #8a5b18;clip-path:polygon(3px 0,calc(100% - 3px) 0,100% 3px,100% calc(100% - 3px),calc(100% - 3px) 100%,3px 100%,0 calc(100% - 3px),0 3px)}
.game-app[data-theme=auction] .asset-vault:not(.active) .paddle-no{background:linear-gradient(#b99a62,#8e6f3d);box-shadow:inset 0 1px 0 #d8bf8a,inset 0 -2px 0 #5e4524}
.game-app[data-theme=auction] .asset-vault .score-caption{margin-left:auto}
.game-app[data-theme=auction] .asset-vault>b,.game-app[data-theme=auction] .asset-vault.active>b{padding:0 6px;background:#0a1f22;box-shadow:inset 2px 2px 0 #050f11,inset -1px -1px 0 #b7833670;color:#ffe2a0;text-shadow:0 0 10px #e4b75b40,2px 2px 0 #050f11}
.game-app[data-theme=auction] .asset-vault .summon-list{background:none;box-shadow:none;border-top:1px solid #b7833666;padding-top:3px}
.game-app[data-theme=auction] .asset-vault .summon-item{justify-content:space-between;border-bottom:0;box-shadow:none;background:radial-gradient(circle,#b78336a0 .9px,transparent 1.3px) 0 calc(50% + .32em)/5px 5px repeat-x}
.game-app[data-theme=auction] .asset-vault .summon-word{flex:0 1 auto;padding-right:6px;background:#163537;color:#e6dbbd;font-weight:500}
.game-app[data-theme=auction] .asset-vault .summon-price{padding-left:6px;background:#163537;color:#e4b75b}
.game-app[data-theme=auction] .asset-vault.active :is(.summon-word,.summon-price){background:#1c4143}

/* The chain character is engraved on a brass-framed plaque in a clean heavy face. */
.game-app[data-theme=auction] .chain-tag>b{padding:0 .14em;font-family:var(--word-font);font-weight:700;color:#fbecc4;text-shadow:0 3px 0 #8a5b18,3px 5px 0 #071416}
.game-app[data-theme=auction] .chain-tag>b.free{font-weight:600;padding:.25em .5em;text-shadow:0 2px 0 #8a5b18}
.game-app[data-theme=auction] .chain-tag>b::before{clip-path:none;background:none;box-shadow:none;border:2px solid transparent;border-image:var(--deco-tile) 14 fill / 14px stretch;filter:drop-shadow(3px 4px 0 #0b1518b0)}
.game-app[data-theme=auction] .clock-rim{fill:#0f2629;stroke:#c99a4a}
.game-app[data-theme=auction] .clock-ticks{stroke:#e4b75b}

/* The latest summon is a numbered lot tag; the price is sealed with a cinnabar stamp. */
.game-app[data-theme=auction] .appraisal-ticket{border-image-source:var(--deco-ivory);filter:drop-shadow(3px 4px 0 #0b1518a0)}
.game-app[data-theme=auction][data-presentation-phase=reward] .appraisal-ticket{border-image-source:var(--deco-ivory-hot);box-shadow:none}
.game-app[data-theme=auction] .appraisal-ticket::after{display:none}
.game-app[data-theme=auction] .appraisal-ticket .latest-summon-owner{border-bottom:0}
.game-app[data-theme=auction] .latest-summon-word{font-family:var(--word-font);font-weight:700;letter-spacing:.06em;color:#2a1f17}
.game-app[data-theme=auction] .appraisal-ticket .latest-summon-value{background:none;box-shadow:inset 0 -2px 0 #d9be87}
.game-app[data-theme=auction] .lot-no{display:block;position:absolute;left:14px;top:-9px;padding:0 7px;border:1px solid #b78336;background:#0f2629;color:#ffe6a0;font-size:11px;line-height:15px;letter-spacing:.12em;white-space:nowrap;pointer-events:none}
.game-app[data-theme=auction] .sold-stamp{display:block;position:absolute;right:-8px;top:-15px;z-index:2;padding:1px 6px;border:2px solid #c2412d;background:#f6e8c4;box-shadow:inset 0 0 0 1px #f6e8c4,inset 0 0 0 2px #c2412d;color:#c2412d;font-family:var(--word-font);font-weight:700;font-size:15px;line-height:1.25;letter-spacing:.12em;transform:rotate(-10deg);pointer-events:none}
.game-app[data-theme=auction] .latest-summon:is([data-neutral=true],[data-stage=word]) .sold-stamp{display:none}
.game-app[data-theme=auction] .latest-summon[data-stage=price] .sold-stamp{animation:deco-stamp 240ms steps(4,end) both}
@keyframes deco-stamp{from{opacity:0;transform:rotate(-10deg) scale(1.9)}to{opacity:1;transform:rotate(-10deg) scale(1)}}

/* A soft spotlight falls from the lot tag onto the coffer. */
.game-app[data-theme=auction] .auction-stage::before{content:'';position:absolute;left:50%;top:0;bottom:0;z-index:0;width:min(80%,480px);transform:translateX(-50%);background:linear-gradient(#ffe6a026,#ffe6a00e 72%,#ffe6a000);clip-path:polygon(41% 0,59% 0,100% 100%,0 100%);pointer-events:none}
.game-app[data-theme=auction] .reward-chest{filter:drop-shadow(0 4px 0 #10182080) drop-shadow(0 0 22px #ffd77938)}

.game-app[data-theme=auction].compact :is(.asset-vault,.appraisal-ticket,.setup,.online-lobby),.game-app[data-theme=auction].compact .chain-tag>b::before{border-image-width:10px}
.game-app[data-theme=auction].tiny :is(.asset-vault,.appraisal-ticket,.setup,.online-lobby),.game-app[data-theme=auction].tiny .chain-tag>b::before{border-image-width:7px}
.game-app[data-theme=auction].tiny :is(.lot-no,.paddle-no),.game-app[data-theme=auction].tiny .asset-vault.active::after{display:none}
.game-app[data-theme=auction].tiny .sold-stamp{font-size:11px;top:-8px;right:-4px;padding:0 3px}

@media(min-width:900px){
  .game-app[data-theme=auction] .top-actions button:not(.sound-button){min-height:36px;margin-left:4px;padding:4px 14px;border:1px solid #b7833699;background:#0f2629b3;color:#f2e2b9;font-size:15px;letter-spacing:.1em}
  .game-app[data-theme=auction] .top-actions button:not(.sound-button):hover:not(:disabled){border-color:#e4b75b;background:#173a3c}
  .game-app[data-theme=auction] .asset-vault.active::after{font-size:12px;line-height:17px;top:-10px}
  .game-app[data-theme=auction] .lot-no{font-size:12px;line-height:17px;top:-10px;left:20px}
  .game-app[data-theme=auction] .sold-stamp{font-size:20px;right:-12px;top:-20px;padding:2px 9px}
}

.game-app[data-theme=classroom] .segmented{border-color:#718099;background:#f6f0e3;box-shadow:none}
.game-app[data-theme=classroom] .segmented button{color:#3d4f6b}
.game-app[data-theme=classroom] .segmented button:hover:not(:disabled):not([aria-checked=true]){background:#35568b12;color:#183967}
.game-app[data-theme=classroom] .segmented button[aria-checked=true]{background:#dfe5ef;color:#183967;box-shadow:inset 0 -2px 0 #31578f;text-shadow:none}
.game-app[data-theme=classroom] .setup-eyebrow{display:none}
@media(prefers-reduced-motion:reduce){.game-app[data-theme=auction] .latest-summon[data-stage=price] .sold-stamp{animation:none}}
.tiny .setup .setup-title{display:none}
.tiny .segmented{padding:2px;gap:2px}
.tiny .segmented button{min-height:30px}
.tiny .setup .setup-fields{gap:5px}
@media(min-width:900px) and (max-height:740px){.game-app[data-theme=auction] .sold-stamp{font-size:17px;top:-24px;right:-14px}}
/* The hammer falls: the result is a framed plaque and the winning paddle is marked. */
.game-app[data-theme=auction] .result{flex:0 0 auto;align-self:center;width:fit-content;min-width:min(100%,340px);max-width:100%;min-height:0;margin:auto 0;padding:12px 34px 14px;gap:6px;border:2px solid transparent;border-image:var(--deco-frame) 14 fill / 14px stretch;filter:drop-shadow(4px 5px 0 #0b1518a6)}
.game-app[data-theme=auction] .result strong{font-family:var(--word-font);font-weight:700;letter-spacing:.08em;color:#ffe6a0;text-shadow:0 3px 0 #8a5b18,3px 5px 0 #071416}
.game-app[data-theme=auction] .result strong::before{content:'';display:block;width:2.4em;height:1.3em;margin:0 auto 2px;background:var(--deco-fan) center/contain no-repeat;font-size:.6em}
.game-app[data-theme=auction] .result p{display:flex;align-items:center;justify-content:center;gap:10px;white-space:nowrap;color:#e6dbbd}
.game-app[data-theme=auction] .result p::before,.game-app[data-theme=auction] .result p::after{content:'';flex:1 0 18px;max-width:40px;height:4px;border-top:1px solid #b78336;border-bottom:1px solid #b7833670}
.game-app[data-theme=auction][data-winner=player] #player-card,.game-app[data-theme=auction][data-winner=opponent] #opponent-card,.game-app[data-theme=auction][data-winner=third] #third-card,.game-app[data-theme=auction][data-winner=fourth] #fourth-card,.game-app[data-theme=auction][data-winner=fifth] #fifth-card,.game-app[data-theme=auction][data-winner=sixth] #sixth-card{border-image-source:var(--deco-frame-active)}
.game-app[data-theme=auction][data-winner=player] #player-card::after,.game-app[data-theme=auction][data-winner=opponent] #opponent-card::after,.game-app[data-theme=auction][data-winner=third] #third-card::after,.game-app[data-theme=auction][data-winner=fourth] #fourth-card::after,.game-app[data-theme=auction][data-winner=fifth] #fifth-card::after,.game-app[data-theme=auction][data-winner=sixth] #sixth-card::after{display:block;content:'得标';position:absolute;left:50%;top:-9px;bottom:auto;width:auto;height:auto;transform:translateX(-50%);padding:0 10px;border:1px solid #c2412d;background:#c2412d;color:#fff1d6;font-size:11px;font-weight:700;line-height:15px;letter-spacing:.3em;text-indent:.3em;white-space:nowrap;box-shadow:none}
.game-app[data-theme=auction][data-goal=lowest][data-winner=player] #player-card::after,.game-app[data-theme=auction][data-goal=lowest][data-winner=opponent] #opponent-card::after,.game-app[data-theme=auction][data-goal=lowest][data-winner=third] #third-card::after,.game-app[data-theme=auction][data-goal=lowest][data-winner=fourth] #fourth-card::after,.game-app[data-theme=auction][data-goal=lowest][data-winner=fifth] #fifth-card::after,.game-app[data-theme=auction][data-goal=lowest][data-winner=sixth] #sixth-card::after{content:'最穷'}
.game-app[data-theme=auction][data-winner=player] #player-card .paddle-no,.game-app[data-theme=auction][data-winner=opponent] #opponent-card .paddle-no,.game-app[data-theme=auction][data-winner=third] #third-card .paddle-no,.game-app[data-theme=auction][data-winner=fourth] #fourth-card .paddle-no,.game-app[data-theme=auction][data-winner=fifth] #fifth-card .paddle-no,.game-app[data-theme=auction][data-winner=sixth] #sixth-card .paddle-no{background:linear-gradient(#f0c873,#c9963f);box-shadow:inset 0 1px 0 #ffe9b0,inset 0 -2px 0 #8a5b18}
.game-app[data-theme=auction] :is(.primary,.counter-form #submit-button){outline:1px solid #ffe6a070;outline-offset:-6px;letter-spacing:.2em;text-indent:.2em}
.game-app[data-theme=auction] :is(.primary,.counter-form #submit-button):disabled{outline-color:#d4c9aa40}
.game-app[data-theme=auction] :is(.primary,.counter-form #submit-button):focus-visible{outline:3px solid #ffe39a;outline-offset:3px}
.compact.game-app[data-theme=auction] .result,.tiny.game-app[data-theme=auction] .result{padding:6px 20px 8px;gap:2px}
.tiny.game-app[data-theme=auction] .result strong::before{display:none}
@media(min-width:900px){.game-app[data-theme=auction][data-winner=player] #player-card::after,.game-app[data-theme=auction][data-winner=opponent] #opponent-card::after,.game-app[data-theme=auction][data-winner=third] #third-card::after,.game-app[data-theme=auction][data-winner=fourth] #fourth-card::after,.game-app[data-theme=auction][data-winner=fifth] #fifth-card::after,.game-app[data-theme=auction][data-winner=sixth] #sixth-card::after{font-size:12px;line-height:17px;top:-10px}}
.tiny.game-app[data-theme=auction] .result{margin:0;padding:3px 18px 5px}
.tiny.game-app[data-theme=auction] .result strong{font-size:24px}
.tiny.game-app[data-theme=auction] .result p{font-size:13px}
/* Split-flap totals: four leaves per character, a dark hinge seam and gold station-board glyphs. */
.flap-row{display:none}
.game-app[data-theme=auction] .flap-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.game-app[data-theme=auction] .flap-row{display:inline-flex;gap:.07em;vertical-align:top;padding:.07em 0}
.game-app[data-theme=auction] .asset-vault>b,.game-app[data-theme=auction] .asset-vault.active>b{padding:2px 5px;background:#050d0f;line-height:1.18}
.game-app[data-theme=auction] .flap{position:relative;flex:none;width:.7em;height:1.18em;line-height:1.18em;text-align:center;perspective:2.4em;color:#ffe2a0}
.game-app[data-theme=auction] .flap[data-kind=narrow]{width:.42em}
.game-app[data-theme=auction] .flap[data-kind=wide]{width:1.08em}
.game-app[data-theme=auction] .flap::before,.game-app[data-theme=auction] .flap::after,.game-app[data-theme=auction] .flap>i{position:absolute;inset:0;display:block;text-align:center;font-style:normal;border-radius:1px;background:linear-gradient(#2b3f42,#1b2d30 calc(50% - 1px),#020607 calc(50% - 1px),#020607 calc(50% + 1px),#182a2c calc(50% + 1px),#0e1c1e);box-shadow:inset 0 0 0 1px #0000008c,inset 0 1px 0 #ffffff14;backface-visibility:hidden}
.game-app[data-theme=auction] .flap::before{content:attr(data-ch);clip-path:inset(0 0 50% 0)}
.game-app[data-theme=auction] .flap::after{content:attr(data-from);clip-path:inset(50% 0 0 0)}
.game-app[data-theme=auction] .flap>i{opacity:0;transform-origin:50% 50%}
.game-app[data-theme=auction] .flap>i::before{content:attr(data-c)}
.game-app[data-theme=auction] .flap>i:first-child{clip-path:inset(0 0 50% 0)}
.game-app[data-theme=auction] .flap>i:last-child{clip-path:inset(50% 0 0 0)}
/* One compact sound control keeps the mobile header clear; music and effects remain independent. */
.auction-audio-settings{position:relative;flex:none;z-index:60}
.auction-audio-settings>summary{display:flex;align-items:center;justify-content:center;list-style:none;width:44px;min-height:44px;color:#e4b75b;font-size:24px;cursor:pointer;user-select:none;touch-action:manipulation}
.auction-audio-settings>summary::-webkit-details-marker{display:none}
.auction-audio-settings>summary:focus-visible{outline:3px solid #ffe39a;outline-offset:2px}
.auction-audio-settings[open]>summary,.auction-audio-settings>summary:hover{background:#f2e2b91c;color:#fff1bd}
.auction-audio-panel{position:absolute;right:0;top:calc(100% + 5px);width:218px;max-width:calc(100vw - 28px);padding:12px 14px;border:2px solid #b78336;background:#142d30;color:#f2e2b9;box-shadow:4px 4px 0 #071c1ee6;display:flex;flex-direction:column;gap:10px;font-size:14px;text-shadow:none}
.auction-audio-title{font-family:var(--pixel-font);font-size:18px;border-bottom:1px solid #b7833655;padding-bottom:5px;color:#f4cf74}
.auction-audio-row{display:flex;align-items:center;justify-content:space-between;gap:14px}
#auction-audio-settings .audio-toggle{min-height:34px;min-width:66px;margin:0;padding:4px 10px;border:1px solid #b7833666;background:#102629;color:#adab98;font-size:14px;letter-spacing:0;text-shadow:none}
#auction-audio-settings .audio-toggle[aria-pressed=true]{border-color:#e4b75b;color:#ffdf91;background:#3c3825}
#auction-sound>span[aria-hidden=true]{display:none}
.auction-music-volume{display:grid;grid-template-columns:auto minmax(0,1fr) 34px;align-items:center;gap:7px}
.auction-music-volume input{width:100%;min-width:0;height:28px;margin:0;accent-color:#e4b75b;cursor:pointer}
.auction-music-volume output{font-size:12px;text-align:right;font-variant-numeric:tabular-nums;color:#dfc58e}
.auction-music-status{font-size:12px;color:#b7b99c;min-height:17px}
.compact .auction-audio-settings>summary{min-height:38px;width:38px;font-size:22px}
.tiny .auction-audio-settings>summary{min-height:32px;width:34px;font-size:20px}
@media(max-width:350px){.auction-audio-settings>summary{width:40px}}
.game-app[data-theme=classroom] .auction-audio-settings>summary{color:#263b62}
.game-app[data-theme=classroom] .auction-audio-panel{background:#f6efd9;color:#263b62;border-color:#536886;box-shadow:4px 4px 0 #52688744}
.game-app[data-theme=classroom] .auction-audio-title{color:#263b62;border-bottom-color:#53688666}
.game-app[data-theme=classroom] #auction-audio-settings .audio-toggle{background:#ece5ce;color:#697082;border-color:#53688666}
.game-app[data-theme=classroom] #auction-audio-settings .audio-toggle[aria-pressed=true]{background:#d7e0df;color:#263b62;border-color:#263b62}
.game-app[data-theme=classroom] :is(.auction-music-status,.auction-music-volume output){color:#596578}
.game-app .top-actions #home-button,.game-app .top-actions #restart-button{white-space:nowrap}
.game-app .top-actions #home-button[data-armed=true]{color:#ffb39f;border-color:#c2412d;background:#5a1d1499}
.game-app[data-theme=classroom] .top-actions #home-button[data-armed=true]{color:#b0362a;background:#b0362a14}
/* Keyboard-short viewports: 玩法 and 玩几轮 share one row (their chips name themselves), so the
   added goal row costs no height. Anything still taller scrolls inside the panel instead of
   spilling under the top bar. */
.game-app.tiny .setup{overflow-y:auto;overscroll-behavior:contain;justify-content:safe center}
.game-app.tiny .setup .setup-fields{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row dense;gap:4px}
.game-app.tiny .setup .setup-fields>label{grid-column:1 / -1}
.game-app.tiny .setup .setup-fields>label:is(:has(#goal-select),:has(#rounds-select)){grid-column:auto;grid-template-columns:0 minmax(0,1fr);column-gap:0;font-size:0}
.game-app.tiny .setup .segmented button{min-height:27px}

.game-app .result p.result-slogan{display:block;max-width:24em;margin:0 auto;white-space:normal;overflow-wrap:anywhere;font-size:clamp(13px,2vw,17px);line-height:1.45}
.game-app .result p.result-slogan::before,.game-app .result p.result-slogan::after{display:none;content:none}

/* Three collectors share one chain and keep their own ledgers. */
#mode-select+.segmented{grid-auto-flow:row;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-columns:auto}
#mode-select+.segmented button{font-size:13px;min-height:36px;white-space:normal}
#mode-select+.segmented button:first-child{grid-row:1 / 3}
.three-player-rules{font-size:12px;line-height:1.5;color:#d5c6a1}
.game-app[data-theme=classroom] .three-player-rules{color:#586170}
.game-app .setup{overflow-y:auto;overscroll-behavior:contain;justify-content:safe center}
.game-app[data-multi=true] .scoreboard{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.game-app[data-multi=true] .score{padding:7px 6px;gap:2px}
.game-app[data-multi=true] .score-heading{gap:3px;font-size:12px}
.game-app[data-multi=true] .score-heading>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.game-app[data-multi=true] .score-caption{font-size:10px;flex:none}
.game-app[data-multi=true] .paddle-no{display:none}
.game-app[data-multi=true] .score>b{font-size:23px;letter-spacing:-.6px}
.score-skips{font-size:10px;line-height:14px;color:#d5c6a1}
.game-app[data-theme=classroom] .score-skips{color:#586170}
.game-app[data-multi=true] .summon-list{max-height:36px;margin-top:1px;padding-top:1px}
.game-app[data-multi=true] .summon-item{display:block;font-size:12px;line-height:16px;min-height:32px;background:none}
.game-app[data-multi=true] .summon-word,.game-app[data-multi=true] .summon-price{display:block;padding:0;background:none}
.game-app[data-multi=true] .summon-word{max-width:100%}
.game-app[data-multi=true] .summon-price{font-size:11px}
.game-app[data-multi=true] .room-members{grid-template-columns:1fr;gap:4px}
.game-app .result-rankings{padding:0;margin:7px 0 0;list-style:none;width:100%;display:grid;gap:6px;text-align:left}
.result-rankings li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1px 8px;border-top:1px solid #b7833660;padding-top:5px;font-size:14px;line-height:1.4}
.result-rankings li>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.result-rankings small{grid-column:1 / -1;font-size:11px;opacity:.8}
.game-app[data-multi=true] .result strong{font-size:clamp(22px,5vw,36px);letter-spacing:.02em;overflow-wrap:anywhere}
.game-app[data-multi=true] .result p{white-space:normal;text-align:center;font-size:13px}
.game-app[data-multi=true] .result strong::before{display:none}
@media(max-width:359px){
  .game-app[data-multi=true] .scoreboard{gap:5px}
  .game-app[data-multi=true] .score{padding:6px 4px}
  .game-app[data-multi=true] .score-heading{font-size:11px}
  .game-app[data-multi=true] .score-caption{font-size:9px}
  .game-app[data-multi=true] .score>b{font-size:19px}
  #mode-select+.segmented button{font-size:12px;padding:3px 1px}
}
@media(min-width:900px){
  .game-app[data-multi=true]:has(#scoreboard:not([hidden])){grid-template-rows:60px auto minmax(0,1fr) 30px 56px}
  .game-app[data-multi=true] .scoreboard{display:grid;grid-column:1 / -1;grid-row:2;gap:16px}
  .game-app[data-multi=true] .score{grid-column:auto!important;grid-row:auto;min-height:0;padding:12px 16px;gap:3px}
  .game-app[data-multi=true] .score-heading{font-size:18px}
  .game-app[data-multi=true] .score-caption{font-size:13px}
  .game-app[data-multi=true] .paddle-no{display:inline-grid}
  .game-app[data-multi=true] .score>b{font-size:30px}
  .game-app[data-multi=true] .summon-list{max-height:40px;flex:none}
  .game-app[data-multi=true] .summon-item{display:flex;line-height:28px;min-height:28px;font-size:15px}
  .game-app[data-multi=true] .summon-price{font-size:15px}
  .game-app[data-multi=true]:has(#scoreboard:not([hidden])) .main{grid-column:1 / -1;grid-row:3;width:min(100%,720px);justify-self:center}
  .game-app[data-multi=true]:has(#scoreboard:not([hidden])) .feedback-row{grid-row:4}
  .game-app[data-multi=true]:has(#scoreboard:not([hidden])) .move-form{grid-row:5}
  .game-app[data-multi=true] .room-members{grid-template-columns:1fr}
  #mode-select+.segmented button{font-size:15px;min-height:40px}
}
@media(max-height:620px) and (max-width:899px){
  .game-app[data-multi=true] .summon-list{max-height:32px}
  .game-app[data-multi=true] .score{gap:0}
  .game-app[data-multi=true] .result{padding:7px 14px;gap:3px}
  .game-app[data-multi=true] .result-rankings{gap:3px;margin-top:3px}
}

.game-app[data-multi=true][data-phase=finished] .play{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.result-ban-settings{width:100%;text-align:left;margin-top:8px}
.game-app .result .result-ban-settings .ban-hint{display:block;white-space:normal;font-size:12px;text-align:left;line-height:1.5}
.game-app .result .result-ban-settings .ban-hint::before,.game-app .result .result-ban-settings .ban-hint::after{display:none}

.setup-eyebrow{white-space:normal;letter-spacing:.08em;line-height:1.5;text-align:center}
@media(max-width:359px){.setup-eyebrow::before,.setup-eyebrow::after{display:none}}

/* Keep the modern setup visible while its controls finish loading. */
.valuation-startup{position:fixed;z-index:100;left:50%;bottom:max(18px,env(safe-area-inset-bottom));transform:translateX(-50%);max-width:calc(100vw - 24px);display:flex;align-items:center;gap:12px;padding:10px 14px;border:1px solid #b78336;background:#102b30;color:#f2deb0;font-size:14px;line-height:1.4;box-shadow:3px 3px 0 #07141680}
.valuation-startup button{flex:none;min-height:36px;padding:4px 12px;border:1px solid #b78336;background:#263f40;color:inherit;font:inherit;cursor:pointer}

/* Auction-floor NPCs: a roster button beside the blacklist opens the regulars'
   own screen; during play a badge shows this game's guest. */
.setup-extras{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:start;min-width:0}
.setup-extras>#bans-settings[open]{grid-column:1 / -1}
.npc-roster-button{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;min-width:0;min-height:34px;padding:5px 8px 5px 10px;border:1px solid #a07b42;border-radius:0;background:#0d2326;color:#e1d4b1;font:inherit;font-size:14px;line-height:20px;cursor:pointer;touch-action:manipulation}
.npc-roster-button:hover{color:#fff1cb;border-color:#e4b75b}
.npc-roster-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.npc-faces{display:flex;flex:none}
.npc-faces .npc-face+.npc-face{margin-left:-5px}
/* Faces are head crops of the full-body portraits. */
.npc-face{display:block;flex:none;width:22px;height:22px;overflow:hidden;border:1px solid #a07b42;background:#f2e2b9}
.npc-face img{display:block;width:56px;height:auto;max-width:none;margin:-1px 0 0 -17px}
.npc-guest .npc-face{width:34px;height:34px}
.npc-guest .npc-face img{width:86px;margin:-2px 0 0 -26px}
@media(max-width:420px){.npc-roster-button{padding:5px 6px 5px 8px;gap:4px}.npc-faces .npc-face+.npc-face{margin-left:-11px}}
.tiny .npc-roster-button{min-height:26px;padding:2px 6px;font-size:12px}
.tiny .npc-face{width:18px;height:18px}
.tiny .npc-face img{width:46px;margin-left:-14px}

/* The regulars' roster, after Slay the Spire's character select: a row of
   faces picks one guest, and only that guest is shown — portrait on the left,
   tastes on the right. Each taste reads like a Balatro joker. */
.profile-dialog.npc-dialog{width:min(820px,calc(100vw - 24px))}
.profile-sheet.npc-sheet{max-height:calc(100dvh - 24px)}
.npc-sheet-head{flex:none;display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.npc-sheet-head h2{margin:0;font-family:var(--menu-pixel);font-weight:400;font-size:26px;line-height:1.2;letter-spacing:.06em;color:var(--menu-text)}
.npc-roster-hint{margin:2px 0 0;font-size:13px;line-height:1.5;color:var(--menu-muted)}
.npc-picker{flex:none;display:flex;justify-content:center;gap:10px}
#valuation-app .npc-pick{flex:0 1 112px;min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 4px 6px;border:2px solid var(--menu-line);border-radius:12px;background:var(--menu-panel);color:var(--menu-muted);font:inherit;font-size:14px;line-height:1.3;cursor:pointer;transition:transform .12s,border-color .12s,box-shadow .12s}
#valuation-app .npc-pick:hover{border-color:var(--menu-line-strong);color:var(--menu-text)}
#valuation-app .npc-pick[aria-selected=true]{border-color:var(--menu-gold);background:var(--menu-panel-hover);color:var(--menu-text);box-shadow:0 0 0 2px rgba(201,162,90,.25),0 10px 18px rgba(0,0,0,.3);transform:translateY(-3px)}
.npc-pick .npc-face{width:48px;height:48px;border:0;border-radius:10px;background:#d9cdb0}
.npc-pick .npc-face img{width:122px;margin:-3px 0 0 -37px}
.npc-pick:not([aria-selected=true]) .npc-face img{filter:saturate(.45) brightness(.8)}
.npc-pick-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.npc-roster-list{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:rgba(236,228,210,.25) transparent}
.npc-card{display:grid;grid-template-columns:200px minmax(0,1fr);gap:22px;align-items:start;min-height:min(330px,44dvh);box-sizing:border-box;padding:16px 18px;border:1px solid var(--menu-line);border-radius:14px;background:var(--menu-panel)}
.npc-card[hidden]{display:none}
/* The portrait stands under a soft spotlight with a shadow at its feet. */
.npc-card-stage{align-self:stretch;display:flex;align-items:flex-end;justify-content:center;min-height:240px;padding:10px 0 8px;border-radius:10px;background:radial-gradient(ellipse 42% 6% at 50% calc(100% - 10px),rgba(0,0,0,.5),transparent 100%),radial-gradient(ellipse 70% 60% at 50% 45%,rgba(201,162,90,.16),transparent 70%)}
.npc-card-portrait{display:block;width:auto;height:min(270px,36dvh);flex:none}
.npc-card-body{min-width:0;display:flex;flex-direction:column;gap:4px}
.npc-card-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
.npc-card-head h3{margin:0;font-family:var(--menu-pixel);font-weight:400;font-size:30px;line-height:1.15;letter-spacing:.06em;color:var(--menu-text)}
.npc-title{padding:0 10px;border-radius:999px;background:rgba(201,162,90,.16);color:var(--menu-gold);font-size:12px;line-height:22px}
.npc-card-intro{margin:0;font-size:13px;color:var(--menu-muted)}
.npc-card-quote{margin:2px 0 0;font-size:15px;color:#e9cf93}
.npc-card-rules{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.npc-rule{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;align-items:start;padding:10px 12px;border-radius:10px;background:rgba(0,0,0,.24)}
.npc-rule-badge{display:grid;place-items:center;min-height:40px;padding:0 6px;border-radius:8px;font-family:var(--menu-pixel);font-weight:400;font-size:20px;line-height:1;white-space:nowrap}
.npc-rule[data-mood=like] .npc-rule-badge{background:var(--menu-gold);color:var(--menu-gold-ink);box-shadow:0 3px 0 var(--menu-gold-shadow)}
.npc-rule[data-mood=dislike] .npc-rule-badge{background:#a8443a;color:var(--menu-light-ink);box-shadow:0 3px 0 #5c231b}
.npc-rule[data-mood=failure]{padding:6px 12px;background:none}
.npc-rule[data-mood=failure] .npc-rule-badge{min-height:30px;font-size:16px;background:var(--menu-slate);color:var(--menu-light-ink);box-shadow:0 3px 0 var(--menu-slate-shadow)}
/* A ranged multiplier (×2～100) widens the badge column for all of that guest's rules. */
@supports (grid-template-columns:subgrid){
  .npc-card-rules{display:grid;grid-template-columns:minmax(64px,max-content) minmax(0,1fr)}
  .npc-rule{grid-column:1 / -1;grid-template-columns:subgrid}
}
.npc-rule-text{min-width:0}
.npc-rule-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px}
.npc-rule-kicker{font-size:11px;letter-spacing:.14em;color:var(--menu-faint)}
.npc-rule[data-mood=like] .npc-rule-kicker{color:var(--menu-gold)}
.npc-rule[data-mood=dislike] .npc-rule-kicker{color:#e0806f}
.npc-rule-head b{font-size:16px;color:var(--menu-text)}
.npc-rule-reaction{font-size:13px;color:#e9cf93}
.npc-rule-scope{display:block;margin-top:2px;font-size:13px;line-height:1.5;color:var(--menu-muted)}
.npc-rule-examples{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
.npc-rule-examples i{padding:0 8px;border-radius:6px;background:rgba(236,228,210,.08);color:var(--menu-text);font-size:12px;font-style:normal;line-height:20px}
/* Phones: four faces in a row; the portrait sits beside the name and the tastes run full width below. */
@media(max-width:719px){
  .npc-sheet-head h2{font-size:22px}
  .npc-picker{gap:6px}
  #valuation-app .npc-pick{flex:1 1 0;padding:6px 2px 4px;font-size:12px}
  .npc-pick .npc-face{width:38px;height:38px}
  .npc-pick .npc-face img{width:96px;margin:-2px 0 0 -29px}
  .npc-card{grid-template-columns:76px minmax(0,1fr);grid-auto-rows:auto;align-content:start;gap:4px 12px;padding:12px}
  .npc-card-body{display:contents}
  .npc-card-stage{grid-row:1 / span 3;align-self:start;min-height:0;padding:4px 0}
  .npc-card-portrait{width:68px;height:auto}
  .npc-card-body>:not(.npc-card-rules){grid-column:2}
  .npc-card-head h3{font-size:22px}
  .npc-card-rules{grid-column:1 / -1;margin-top:6px}
  .npc-rule{gap:10px;padding:8px 10px}
  .npc-rule-badge{min-height:34px;font-size:17px}
}
@media(min-width:720px) and (max-height:640px){.npc-card-stage{min-height:0}.npc-card-portrait{height:min(200px,30dvh)}}

.npc-guest{flex-shrink:0;align-self:center;display:flex;align-items:center;gap:8px;max-width:min(100%,560px);padding:4px 10px 4px 4px;border:1px solid #a07b42;background:#0d2326e6;color:#e1d4b1;box-shadow:2px 2px 0 #10182099}
.npc-guest .npc-guest-text{min-width:0;display:flex;flex-direction:column;font-size:12px;line-height:16px}
.npc-guest b{font-size:13px;color:#fff1cb}
.latest-summon-npc{grid-column:1 / -1;flex-basis:100%;text-align:center;font-size:12px;line-height:18px;font-weight:700;color:#8a5b18}
.latest-summon-npc[data-mood=dislike]{color:#aa3529}
.latest-summon-npc[data-mood=failure]{color:#586170}
.summon-item[data-npc-mood=like] .summon-price::after{content:' ▲';color:#e4b75b;font-size:.75em}
.summon-item[data-npc-mood=dislike] .summon-price::after{content:' ▼';color:#e0806f;font-size:.75em}
.compact .npc-guest,.tiny .npc-guest{padding:2px 8px 2px 2px}
.tiny .npc-guest #npc-guest-rules{display:none}
.game-app[data-theme=classroom] :is(.npc-card,.npc-guest,.npc-roster-button){border-color:#718099;background:#f1e9d5e6;color:#263b62;box-shadow:none}
.game-app[data-theme=classroom] :is(.npc-card-head h3,.npc-sheet-head h2,.npc-guest b){color:#263b62}
.game-app[data-theme=classroom] :is(.npc-card-intro,.npc-rule,.npc-roster-hint){color:#586170}
.game-app[data-theme=classroom] :is(.npc-card-quote,.npc-title){border-color:#718099;color:#a96c23}
.game-app[data-theme=classroom] .npc-face{border-color:#718099}

/* The guest behind the auction table: placed by placeNpcStage(), clipped at the table edge. */
.npc-stage{position:absolute;z-index:-1;overflow:hidden;pointer-events:none}
.npc-stage[data-fits=false]{display:none}
.npc-stage img{display:block;width:100%;height:auto;max-width:none;filter:brightness(.94) saturate(.95)}
.npc-stage[data-motion=arrive] img{animation:npc-arrive 2.6s ease-out both}
.npc-stage[data-motion=leave] img{animation:npc-leave 1.1s ease-in both}
@keyframes npc-arrive{0%{opacity:0;transform:translateY(16px);filter:brightness(2.4) blur(4px)}45%{opacity:.7;filter:brightness(1.6) blur(1px) drop-shadow(0 0 14px #ffd779)}100%{opacity:1;transform:none;filter:brightness(.94) saturate(.95)}}
@keyframes npc-leave{to{opacity:0;transform:translateY(12px);filter:brightness(.5) blur(3px)}}
@media(prefers-reduced-motion:reduce){.npc-stage img{animation:none!important}.npc-stage[data-motion=leave]{display:none}}

/* In a game the top bar also carries 认输 and 主界面; a narrow phone keeps the title clear of them. */
@media(max-width:399px){.topbar:has(#round-count:not([hidden])) h1{font-size:20px;letter-spacing:0}.topbar:has(#round-count:not([hidden])) h1::before{display:none}}
/* Phones: the room code is in the lobby and invite; in play it would run under the theme picker. */
@media(max-width:479px){#round-count .round-room{display:none}}
@media(max-width:359px){.game-app .top-actions :is(#resign-button,#home-button){min-width:0;padding-left:3px;padding-right:3px;font-size:14px}.game-app .topbar .theme-select{width:72px}}
.game-app .result .result-again{align-self:center;height:auto;min-height:40px;margin-top:4px;padding:6px 28px;font-size:17px;letter-spacing:.12em;white-space:nowrap}
.compact.game-app .result .result-again{min-height:34px;margin-top:2px;padding:4px 22px;font-size:15px}
.tiny.game-app .result .result-again{min-height:28px;margin-top:1px;padding:2px 18px;font-size:13px}

/* Result vignette: rich win, poor win or empty pockets, above the title. */
.game-app .result .result-art{display:block;width:auto;height:clamp(96px,22vh,170px);max-width:100%;margin:0 auto -2px;object-fit:contain;filter:drop-shadow(0 6px 10px rgba(0,0,0,.4));animation:result-art-in .5s cubic-bezier(.2,1.4,.4,1) both}
.game-app .result .result-art[hidden]{display:none}
.game-app[data-theme=auction] .result:not([data-art=""]) strong::before{display:none}
.compact.game-app .result .result-art{height:clamp(72px,14vh,110px)}
.game-app[data-multi=true] .result .result-art{height:clamp(60px,11vh,96px)}
.tiny.game-app .result .result-art{display:none}
.game-app[data-motion=reduced] .result .result-art{animation:none}
@keyframes result-art-in{from{opacity:0;transform:translateY(12px) scale(.9)}}

/* Outside the auction house: setup and lobby show the street entrance; play moves inside the hall. */
.game-app[data-theme=auction]:is(:has(#setup:not([hidden])),:has(#online-lobby:not([hidden])))::before{background-image:url('/assets/auction-v6/entrance-mobile.webp');background-position:center 58%;transform:none;image-rendering:auto}
@media(min-width:900px){.game-app[data-theme=auction]:is(:has(#setup:not([hidden])),:has(#online-lobby:not([hidden])))::before{background-image:url('/assets/auction-v6/entrance-desktop.webp');background-position:center center}}

/* A single free smile. No gameplay state or price changes. */
.emote-send{flex:none;width:32px;min-height:32px;padding:0;border:1px solid #b58e4c;border-radius:50%;background:#fff0ca;color:#4a3520;font:24px/1 sans-serif;cursor:pointer}
.emote-send:disabled{opacity:.4;cursor:default}.emote-send:focus-visible{outline:2px solid #e4b75b;outline-offset:3px}
.score .seat-emote{position:absolute;z-index:12;right:8px;top:38px;display:grid;place-items:center;width:38px;height:38px;border:2px solid #b58e4c;border-radius:50% 50% 50% 3px;background:#fff0ca;color:#4a3520;font:32px/1 sans-serif;pointer-events:none;box-shadow:0 2px 7px #0005}
.emote-status{margin:0;text-align:center;font-size:12px;color:#d9af77}.emote-status:empty{display:none}
.result-achievements{font-size:14px;color:#e4b75b}.result #result-achievements-open{font-size:13px;min-height:32px;padding:4px 12px}

/* Multiplayer turn spotlight: warm white focus, readable waiting seats. */
.game-app .score.asset-vault{transition:filter 220ms ease,box-shadow 220ms ease,outline-color 220ms ease}
.game-app[data-turn-focus=true] .score.asset-vault:not(.turn-current){filter:brightness(.72) saturate(.72)}
.game-app[data-turn-focus=true] .score.asset-vault.turn-current{outline:2px solid #fff4d7;outline-offset:1px;filter:brightness(1.16) drop-shadow(0 0 9px #fff1cd66);box-shadow:inset 0 0 24px #fff6df24,0 0 0 4px #fff1cd20;z-index:2}
.game-app[data-turn-focus=true] .score.asset-vault.turn-current::after{display:block;content:attr(data-turn-label);position:absolute;left:50%;top:-10px;bottom:auto;width:auto;height:auto;transform:translateX(-50%);padding:1px 9px;border:1px solid #fff4d7;background:#fff1cd;color:#273a35;font-size:11px;font-weight:700;line-height:16px;letter-spacing:.08em;white-space:nowrap;text-shadow:none;box-shadow:0 2px 5px #07141666;pointer-events:none}
.game-app[data-turn-focus=false]:not([data-winner]:not([data-winner=""])) .score.asset-vault.active::after{display:none}
.game-app[data-turn-focus=true] .turn-label{color:#fff4d7;font-weight:750;text-shadow:0 0 14px #fff1cd55,1px 2px 0 #101820}
.game-app[data-turn-focus=true][data-own-turn=true] .turn-label::before{content:'▶';display:inline-block;margin-right:8px;font-size:.8em}
.game-app[data-turn-focus=true][data-own-turn=true] #word:not(:disabled){border-color:#fff1cd;box-shadow:0 0 0 2px #fff1cd40}
.game-app[data-theme=classroom][data-turn-focus=true] .turn-label{color:#263b62;text-shadow:none}
.game-app[data-motion=reduced] .score.asset-vault{transition:none}
@media(prefers-reduced-motion:reduce){.game-app .score.asset-vault{transition:none}}

/* Target-price tables keep the limit visible beside the running totals. */
.target-banner{margin:0;text-align:center;padding:6px 12px;color:#f4d58b;background:#193d39;font-size:13px;flex-shrink:0}
.target-setting{display:flex;align-items:center;gap:4px;font-size:12px;margin-top:4px}
.target-setting input{min-width:0;width:110px;padding:4px 6px;color:inherit;background:transparent;border:1px solid #958567;border-radius:4px}
.target-setting[hidden],.target-banner[hidden]{display:none}
#stand-button{color:#15332f;background:#e8c77f}

.target-banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 12px;width:100%;border:1px solid #958567}
#stand-button{border:1px solid #e8c77f;border-radius:4px;padding:7px 12px;white-space:nowrap;font-size:14px;min-height:36px}
#stand-button:disabled{opacity:.5}
.game-app[data-goal=target] #result-reason{white-space:normal;overflow-wrap:anywhere;line-height:1.5}
