/* SSG GAMES — Room V4 | visual layer ONLY; preserves original game logic. */
:root{--gold:#f8cf69;--green:#00572b;--text:#ffefd0}
body{background:linear-gradient(180deg,#100b09e6 0%,#130c09f5 72%,#090806 100%)!important;color:#fff3d3}
.shell{max-width:1510px;padding:12px clamp(8px,1.6vw,24px) 30px}
.header{background:linear-gradient(90deg,#100b09,#281709 55%,#100b09);border-bottom:2px solid #e4a641;box-shadow:0 4px 18px #000b}
.title{margin:12px 0 8px}.title h1{font:900 clamp(27px,4.2vw,58px)/1.15 Georgia,serif;text-shadow:0 2px #a2671d,0 4px 10px #000,0 0 19px #dcaa46;letter-spacing:.04em}
.banner{margin:5px 0 9px}.tag{background:#17100ce8;box-shadow:0 1px 9px #000b}
.frame{padding:0!important;border-radius:15px;background:transparent!important;box-shadow:none!important;animation:none!important;}
.table{position:relative;overflow:hidden;aspect-ratio:16/9;min-height:670px;border:0!important;border-radius:14px!important;background:url('room-v4.webp') center center/cover no-repeat #084c26!important;box-shadow:0 0 0 2px #d2a354,0 0 25px #c0822280,0 20px 28px #000b!important;}
.table::before{content:'';position:absolute;inset:0;border:0!important;border-radius:0!important;background:linear-gradient(0deg,#06080525 0%,transparent 23%,transparent 72%,#08080715 100%);box-shadow:none!important;pointer-events:none}
.table::after{display:none!important}
.opponent{position:absolute;z-index:2;top:20%;left:21%;width:30%;padding:0;text-align:center}
.opponent .cards{min-height:55px;gap:0;padding:2px 0;flex-wrap:nowrap}
.opponent .card.backcard{width:clamp(22px,2.4vw,35px);height:clamp(36px,4.3vw,58px);margin-left:-6px;border-width:1px}
.opponent .card.backcard:first-child{margin-left:0}
.opponent .card.backcard:after{font:700 7px Georgia,serif;padding:5px 2px}
.opponent .who,.bottom .who{background:#050e0bd9;border:1px solid #ffd17a;border-radius:18px;box-shadow:0 3px 12px #0009,0 0 12px #cf9b5277;font-size:clamp(11px,1.3vw,16px)}
.board-middle{position:absolute;z-index:2;left:12%;right:12%;top:42%;min-height:176px;padding:0;grid-template-columns:minmax(80px,125px) minmax(0,1fr) minmax(70px,110px);gap:6px}
.tablecards{min-height:170px}.pile{background:#04170ee0;border:1px solid #c49a48;border-radius:13px;padding:6px 2px;box-shadow:0 5px 15px #0009}
.pile .card{margin:4px auto}.pile-label{color:#ffdc9e}
.turn{position:absolute;z-index:2;top:67%;left:16%;right:16%;min-height:30px;text-align:center;padding:3px 5px;color:#fff3ce;text-shadow:0 2px 6px #000,0 0 8px #000}
.bottom{position:absolute;z-index:2;bottom:11%;left:13%;right:13%;padding:0;display:flex;align-items:center;flex-direction:column-reverse;gap:5px}
.bottom .cards{padding:2px 0;min-height:82px;flex-wrap:nowrap;gap:0}
.bottom .cards .card{width:clamp(40px,5.2vw,70px);height:clamp(60px,7.8vw,106px);margin-left:-8px}
.bottom .cards .card:first-child{margin-left:0}
.bottom .cards .card .symbol{font-size:clamp(27px,3vw,44px)}
.bottom .who{display:inline-block;margin:0 auto;min-width:100px}
.announcement{z-index:6;background:#061009b6!important}
.room-seats{position:absolute;z-index:2;inset:0;pointer-events:none}
.room-seat{position:absolute;display:flex;align-items:center;justify-content:center;color:#e7d2a2;font:700 clamp(9px,1.05vw,13px)/1.2 system-ui,sans-serif;white-space:nowrap;padding:6px 9px;border-radius:25px;background:#0b0c0bdc;border:1px solid #c69b4f;box-shadow:0 3px 10px #000c,0 0 8px #ddad3955}
.room-seat:before{content:'○';margin-right:5px;color:#d8bd84}
.room-seat:after{content:'Свободно'}
html[lang='sv'] .room-seat:after{content:'Ledig'}
html[lang='en'] .room-seat:after{content:'Available'}
.room-seat--tr{top:20%;left:65%}.room-seat--l{top:43%;left:1%}.room-seat--r{top:43%;right:1%}.room-seat--bl{top:69%;left:10%}
.msg{margin-top:12px}.controls{margin:10px 0 12px}.action{border-radius:14px;box-shadow:inset 0 2px #fff3d3,0 4px #54360d,0 8px 15px #000b,0 0 11px #c88d3c60}.help{margin-top:11px;background:#100c09ed;border:2px solid #bf8a32}
@media(max-width:950px){
  .table{min-height:570px;aspect-ratio:auto;background-size:cover;background-position:center}
  .opponent{top:23%;left:17%;width:37%}.board-middle{top:40%;left:7%;right:7%;grid-template-columns:72px minmax(0,1fr) 72px;min-height:170px}
  .bottom{left:6%;right:6%;bottom:11%}.turn{top:69%}.room-seat--tr{left:66%;top:23%}.room-seat--l{top:44%;left:1%}.room-seat--r{top:44%;right:1%}.room-seat--bl{left:5%;top:68%}
}
@media(max-width:600px){
  .table{min-height:575px;background-position:center;background-size:auto 100%;}
  .opponent{top:25%;left:17%;width:67%}.board-middle{top:46%;left:0;right:0;gap:2px;grid-template-columns:63px minmax(0,1fr) 63px;padding:0 3px;min-height:150px}
  .bottom{left:0;right:0;bottom:7%}.bottom .cards{max-width:96%;overflow-x:auto;justify-content:center;gap:2px}.bottom .cards .card{margin-left:0;width:clamp(41px,11vw,54px);height:clamp(62px,15vw,78px)}
  .turn{top:73%;font-size:12px}.opponent .card.backcard{width:28px;height:42px}.room-seat{font-size:9px;padding:4px 6px}.room-seat--tr{top:13%;right:5%;left:auto}.room-seat--l{top:41%}.room-seat--r{top:41%}.room-seat--bl{top:81%;left:3%}.title h1{font-size:31px}
}
@media(prefers-reduced-motion:reduce){.card,.action{transition:none}}
