@import url('/classic.css');
#original-game{position:relative}#stage-layer{position:absolute;z-index:2;left:50%;top:50%;width:800px;height:600px;transform:translate(-50%,-50%) scale(var(--stage-scale,1));transform-origin:center;pointer-events:none;line-height:1.45;direction:rtl}#stage-layer button{pointer-events:auto;font:700 13px Tahoma;border:1px solid #794b15;border-radius:9px;padding:9px 15px;background:linear-gradient(#ffe59b,#dfa92d);color:#402a0a;cursor:pointer}.stage-roster{position:absolute;left:604px;top:10px;width:186px;height:184px;border:2px solid #ba8b25;box-sizing:border-box;padding:5px 6px;background:linear-gradient(135deg,#fff39b,#f2d34c);box-shadow:inset 0 0 0 2px #ffe883;overflow:hidden}.stage-roster h3{font-size:14px;margin:0 0 3px;text-align:center;border-bottom:1px solid #c6a043;padding-bottom:3px;color:#643e0d}.seat{height:35px;display:flex;align-items:center;gap:4px;border-radius:5px;padding:0 3px}.seat.active{background:#fff8bf;box-shadow:inset 0 0 0 1px #bf8620}.seat.out{opacity:.5}.seat img{width:29px;height:27px;object-fit:contain}.seat>span{flex:1;min-width:0}.seat b{display:block;font-size:11px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.seat small{display:block;font-size:8px;line-height:1.2}.seat strong{font-size:12px;direction:ltr;white-space:nowrap}.seat strong small{display:inline;font-weight:400}.turn-banner{position:absolute;left:604px;top:198px;width:186px;min-height:27px;background:#fff0a3;border:1px solid #b78724;border-radius:6px;display:flex;justify-content:space-between;align-items:center;padding:2px 7px;box-sizing:border-box;font-size:12px;color:#5c350c}.turn-banner span{font-size:11px;white-space:nowrap}.board-piece{position:absolute;width:30px;height:27px;object-fit:contain;transform:translate(-50%,-50%);filter:drop-shadow(1px 2px 1px #523b3770)}.purchase-timer,.auction-timer{position:absolute;border:1px solid #b58220;border-radius:6px;background:#fff3ba;font-weight:bold;color:#64350c;text-align:center;padding:4px 9px;font-size:12px}.purchase-timer{left:180px;top:237px;width:240px}.auction-timer{left:87px;top:170px;width:130px}.auction-name{position:absolute;left:265px;top:450px;width:220px;height:26px;background:#caff60;text-align:center;font:bold 19px Tahoma;color:#1b1b00}.return-center{position:absolute;left:342px;top:290px;min-width:95px;box-shadow:0 2px 6px #0004}.spectator-badge{position:absolute;left:15px;top:7px;border-radius:8px;padding:4px 8px;background:#fff5c6;font-size:11px}.results-view{position:absolute;left:18px;top:20px;width:764px;max-height:562px;overflow:auto;padding:13px;box-sizing:border-box;background:linear-gradient(#ffed8e,#f4d65a);border:2px solid #af7922;border-radius:15px;box-shadow:0 9px 24px #76501d55;pointer-events:auto}.results-view h2{text-align:center;font:bold 22px Tahoma;color:#5b300c;margin:2px 0 10px}.results-view canvas{width:100%;height:auto;display:block;border-radius:8px}.results-actions{display:flex;align-items:center;justify-content:center;gap:15px;margin-top:10px;font-size:11px}.piece-picker{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;border:0;padding:8px 0;margin:10px 0}.piece-picker legend{font-size:12px}.piece-picker label{position:relative;cursor:pointer;text-align:center;margin:0;background:#fff9d4;border:1px solid #d8b466;border-radius:10px;padding:5px 1px;font-size:10px}.piece-picker input{position:absolute;opacity:0;width:1px;height:1px}.piece-picker label:has(input:checked){background:#ffe5a2;outline:2px solid #8f571e}.piece-picker label:has(input:disabled){opacity:.3;cursor:not-allowed}.piece-picker img{width:42px;height:37px;object-fit:contain;display:block;margin:auto}.piece-picker span{display:block}.check-option{display:flex;align-items:center;gap:7px;font-size:12px}.check-option input{width:auto;accent-color:#966025}.rooms-title{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-top:8px}.rooms-title button{margin:0;padding:3px 10px;font-size:11px}.room-row{display:flex;align-items:center;gap:6px;border-bottom:1px solid #dec379;padding:8px 0;font-size:12px}.room-row>span{flex:1}.room-row small{display:block;font-size:10px}.room-row button{padding:5px 9px;margin:0;font-size:11px}#available-rooms{max-height:210px;overflow:auto}.classic-players img{width:32px;height:30px;object-fit:contain}.classic-players b{flex:1}.classic-players .kick{margin:0;padding:3px 7px;font-size:10px;color:#982b16;background:#fff4d1}.classic-players>div{align-items:center}dialog{max-width:510px;border-radius:18px;background:linear-gradient(135deg,#fff0a2,#f8dd76);box-shadow:0 20px 70px #0005;padding:28px}dialog button{border-radius:10px;border-color:#9b6a25;background:linear-gradient(#ffdf83,#d6a03d);color:#573711;transition:filter .15s}dialog button:hover{filter:brightness(1.05)}dialog .network-tabs .selected{background:linear-gradient(#8f6028,#69421c);color:#fff8db}dialog input:not([type=radio]):not([type=checkbox]){border-radius:9px;background:#fffce4;border-color:#c1984d}dialog .danger{background:#9f3823;color:white}#network-close{border-radius:9px}#kick-confirm{max-width:400px}#kick-confirm p{font-size:14px;line-height:1.9}@media(max-width:500px){dialog{padding:25px 16px}.piece-picker{gap:4px}.piece-picker img{width:35px}.classic-players>div{gap:6px!important}}
#online-message,#online-turn{font-size:12px;line-height:1.8;text-align:center;padding:0 8px;min-height:0}#online-message:not(:empty){background:#fff2a7;border:1px solid #b58c25;padding:7px;margin:5px}#classic-bar{flex-wrap:wrap;max-width:1000px;font-size:11px}#classic-status{max-width:700px}#network-close{position:absolute;left:10px;top:6px;padding:2px 9px;background:transparent;border:0;font-size:22px}dialog{line-height:1.8}.classic-players>div{display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid #c7a43f;padding:12px 0;font-size:13px}.classic-players span{font-size:11px}.network-tabs{display:flex;gap:8px}.network-tabs button{flex:1}.network-tabs .selected{background:#775112;color:#fff}dialog button:disabled{opacity:.4;cursor:not-allowed}#original-game:fullscreen{width:100vw;height:100vh;aspect-ratio:auto;background:#fae66b}#original-game:fullscreen ruffle-player{width:100%;height:100%}@media(max-width:600px){#classic-bar{font-size:10px;gap:8px}#original-game{width:100vw}body{justify-content:flex-start;padding-top:8px}}

.stage-roster[data-count="2"] .seat{height:69px}.stage-roster[data-count="3"] .seat{height:46px}.stage-roster[data-count="2"] .seat img{width:38px;height:35px}.stage-roster[data-count="2"] .seat b{font-size:12px}

.purchase-timer{top:348px;font-size:10px;padding:2px 7px;width:235px;left:175px}.auction-name{top:474px;left:260px;width:135px;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.results-preview{max-width:1000px;width:92vw}.results-preview img{width:100%;height:auto;display:block}.results-preview>div{display:flex;justify-content:center;align-items:center;gap:20px}.results-preview a{display:inline-block;color:#4b2d0e;background:#ffe6a2;padding:9px 15px;border:1px solid #af7b27;border-radius:9px;text-decoration:none}

.tax-currency{position:absolute;left:328px;top:558px;width:43px;height:21px;text-align:center;font:bold 15px Tahoma;line-height:21px;background:linear-gradient(90deg,#ff3400,#ff2600);color:#000}

/* Keep the entire turn strip above the original dice, whose top is y=202. */
.stage-roster{height:168px}.seat{height:31px}.stage-roster[data-count="2"] .seat{height:61px}.stage-roster[data-count="3"] .seat{height:41px}.turn-banner{top:180px;height:20px;min-height:20px;padding:0 6px;font-size:11px;gap:5px}.turn-banner b{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.turn-banner span{flex:none;font-size:10px}

.seat strong{display:inline-flex;direction:rtl;align-items:baseline;gap:3px}.seat strong small{display:inline}

.stage-roster.solo-roster{height:184px}.solo-roster[data-count="2"] .seat{height:69px}
