*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,Arial,sans-serif;background:#101915;color:#fff;overscroll-behavior-y:auto;overflow-y:auto}button,select,input{font:inherit}.game{max-width:1320px;margin:auto;padding:16px}.brand h1{margin:0;font-size:clamp(22px,4vw,38px)}.brand small{font-size:.42em;background:#f3c86d;color:#3a2b12;padding:3px 7px;border-radius:20px;vertical-align:middle}.brand p{margin:5px 0 0;color:#c7d8cf}header{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:12px}.gameTools{display:flex;align-items:end;justify-content:flex-end;gap:7px;flex-wrap:wrap}.gameTools label{display:grid;gap:3px;font-size:11px;font-weight:800;color:#dce8e1}.gameTools select,.gameTools input{min-height:38px;border:0;border-radius:9px;padding:7px 9px}.volume input{width:90px;padding:0}.gameTools button,.actions button,.modal button{border:0;border-radius:10px;padding:10px 12px;font-weight:800;cursor:pointer;background:#f1c46a;color:#292116;box-shadow:0 3px 8px #0004}.table{position:relative;min-height:730px;border:9px solid #75451f;border-radius:38px;box-shadow:0 18px 45px #0008,inset 0 0 80px #0005;overflow:hidden;transition:.35s;background:radial-gradient(circle,#287b50,#145337 72%)}.table.wood{background:radial-gradient(circle,#8d5d30,#4d2c16 75%);border-color:#c68a46}.table.dark{background:radial-gradient(circle,#26344a,#0e1625 75%);border-color:#303b51}.player{position:absolute;text-align:center;z-index:4;min-width:115px}.player b,.player span,.player em{display:block}.player em{font-size:10px;color:#ffd47b;font-style:normal;min-height:13px}.player span{font-size:11px;color:#d4e4db;margin:3px}.avatar{font-size:25px;filter:drop-shadow(0 3px 3px #0008)}.top{top:12px;left:50%;transform:translateX(-50%)}.left{left:14px;top:37%}.right{right:14px;top:37%}.backs:after{content:"";display:block;margin:auto;width:82px;height:40px;border-radius:7px;background:repeating-linear-gradient(45deg,#942d2d 0 5px,#fff 5px 8px);border:3px solid #eee;box-shadow:0 3px 8px #0007}.left .backs:after,.right .backs:after{width:40px;height:82px}.bubble{position:absolute;display:none;width:145px;padding:7px 9px;background:#fff;color:#222;border-radius:12px;font-size:11px;font-weight:700;box-shadow:0 5px 14px #0007;z-index:20}.bubble.show{display:block;animation:pop .25s ease}.top .bubble{left:100%;top:10px}.left .bubble{left:85px;top:5px}.right .bubble{right:85px;top:5px}@keyframes pop{from{opacity:0;transform:scale(.7)}to{opacity:1;transform:scale(1)}}.center{position:absolute;left:50%;top:37%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:24px;z-index:2}.indicator,.discard{text-align:center;position:relative}.indicator small,.discard small{display:block;margin-bottom:6px}.deck{width:92px;height:122px;border:4px solid #eee;border-radius:12px;background:repeating-linear-gradient(45deg,#253b84 0 8px,#3851a0 8px 16px);color:#fff;box-shadow:0 7px 15px #0006;cursor:pointer;transition:.15s}.deck:active{transform:scale(.95)}.deck span{display:block;font-size:28px;font-weight:900}.deck em{font-style:normal;font-size:12px}.tile,#indicator,#discardPile{width:54px;height:78px;border:0;border-radius:8px;background:linear-gradient(145deg,#fff,#e8e2d4);box-shadow:0 5px 9px #0007,inset 2px 2px 3px #fff;display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:900;font-size:27px;cursor:pointer;position:relative;user-select:none;touch-action:pan-y;transition:transform .16s,filter .16s}.tile i,#indicator i,#discardPile i{font-size:15px;font-style:normal;margin-top:-2px}.red{color:#ef3e45}.yellow{color:#e99a00}.black{color:#252b30}.blue{color:#3f63f0}.joker:after{content:"★";font-size:14px;position:absolute;right:4px;bottom:3px}.fake{color:#17864e}.tile.selected{transform:translateY(-10px) scale(1.04);outline:4px solid #ffef7c;z-index:5}.tile.dragging{opacity:.25}.tile.draw-in{animation:drawIn .4s ease}.tile.throw-out{animation:throwOut .35s ease}@keyframes drawIn{from{transform:translateY(-80px) scale(.4);opacity:0}}@keyframes throwOut{to{transform:translateY(-130px) rotate(25deg);opacity:0}}.discard{min-width:72px}.discard:before,.discard:after{content:"";position:absolute;left:50%;top:36px;width:54px;height:78px;border-radius:7px;background:#eee8d8;border:1px solid #ccc;box-shadow:0 4px 8px #0004;transform:translateX(-50%) rotate(-5deg);opacity:.82}.discard:after{transform:translateX(-50%) rotate(5deg);opacity:.92}.discard #discardPile{z-index:2;transform:rotate(var(--rot,0deg))}.discard #discardPile:empty{visibility:hidden}.tile-land{animation:tileLand .42s cubic-bezier(.2,.9,.25,1.2)}@keyframes tileLand{0%{transform:translate(42px,-55px) rotate(-18deg) scale(1.12);opacity:.2}100%{transform:rotate(var(--rot,0deg));opacity:1}}.status{position:absolute;left:50%;bottom:238px;transform:translateX(-50%);padding:10px 18px;border-radius:30px;background:#0d201add;font-weight:800;white-space:nowrap;z-index:10;box-shadow:0 5px 14px #0006}.rackWrap{position:absolute;left:18px;right:18px;bottom:14px;z-index:7}.rack{height:177px;padding:13px;display:grid;grid-template-columns:repeat(15,54px);grid-template-rows:repeat(2,78px);gap:8px;justify-content:center;align-content:center;background:linear-gradient(#efc981,#ce913b);border:5px solid #90561f;border-radius:14px;box-shadow:0 8px 18px #0008}.rack-slot{width:54px;height:78px;border-radius:7px;border:1px dashed #8a571f55;display:flex;align-items:center;justify-content:center}.rack-slot.drag-over{background:#fff5;border:2px dashed #fff}.actions{display:flex;justify-content:center;gap:7px;margin-top:8px;flex-wrap:wrap}.actions button{padding:8px 12px}.actions #finish{background:#e75555;color:#fff}.actions #throwTile{background:#fff;color:#222}.actions #hint{background:#7bd4ff}.me{position:absolute;right:10px;bottom:5px;text-align:right}.me span{display:block;font-size:12px}.help{margin-top:13px;padding:13px 15px;background:#ffffff10;border-radius:12px;color:#d7e5de;line-height:1.5}.modal{position:fixed;inset:0;background:#000a;display:none;place-items:center;z-index:50}.modal.show{display:grid}.modal>div{width:min(500px,92vw);max-height:90vh;overflow:auto;padding:25px;border-radius:18px;background:#fff;color:#222;text-align:center}.modal h2{margin-top:0}.modal button{min-width:130px}.analysis-card{margin:12px 0;padding:12px;text-align:left;background:#f3f5f4;border-radius:10px;font-size:13px;line-height:1.45}.confetti{position:absolute;inset:0;pointer-events:none;z-index:40}.confetti i{position:absolute;top:-20px;width:10px;height:16px;background:hsl(var(--h) 80% 55%);animation:fall 2.5s linear forwards}@keyframes fall{to{transform:translate(var(--x),760px) rotate(720deg)}}.table:fullscreen{width:100vw;height:100vh;min-height:100vh;border-radius:0;border:0}.table:fullscreen::backdrop{background:#101915}
@media(max-width:760px){.game{padding:6px}.game header{display:block}.brand p{font-size:12px}.gameTools{display:grid;grid-template-columns:1fr 1fr;margin-top:8px}.gameTools label{min-width:0}.gameTools select,.gameTools button{width:100%;font-size:11px;padding:6px}.volume{grid-column:1/-1}.volume input{width:100%}.table{min-height:700px;border-width:6px;border-radius:24px}.top{top:6px}.left,.right{top:22%}.player{min-width:85px}.avatar{font-size:20px}.center{top:33%;gap:8px;width:calc(100% - 20px);justify-content:center}.discard{position:absolute;right:2px;top:108px;min-width:50px}.discard:before,.discard:after{top:28px;width:36px;height:52px}.status{left:7px;right:7px;bottom:172px;transform:none;white-space:normal;text-align:center;font-size:11px;line-height:1.25;padding:8px}.rackWrap{left:3px;right:3px;bottom:max(6px,env(safe-area-inset-bottom))}.rack{height:132px;padding:7px 4px;grid-template-columns:repeat(15,32px);grid-template-rows:repeat(2,49px);gap:2px;justify-content:start;overflow-x:auto;scrollbar-width:thin}.rack-slot,.tile,#indicator,#discardPile{width:32px;height:49px}.tile,#indicator,#discardPile{font-size:17px;border-radius:5px}.tile i,#indicator i,#discardPile i{font-size:9px}.tile.selected{transform:translateY(-5px);outline-width:2px}.deck{width:57px;height:77px}.deck span{font-size:21px}.deck em{font-size:9px}.actions{gap:4px;margin-top:5px}.actions button{font-size:10px;padding:6px 7px}.me{display:none}.help{font-size:12px}.bubble{width:115px;font-size:9px}.left .bubble{left:58px}.right .bubble{right:58px}}
@media(max-width:430px){.table{min-height:660px}.rack{grid-template-columns:repeat(15,29px);grid-template-rows:repeat(2,45px);height:122px}.rack-slot,.tile,#indicator,#discardPile{width:29px;height:45px}.tile,#indicator,#discardPile{font-size:15px}.status{bottom:160px}.left,.right{top:20%}.center{top:31%}.actions button{padding:5px 6px}}
@media(orientation:landscape) and (max-height:600px){header,.help{display:none}.game{padding:0}.table{height:100vh;min-height:100vh;border-radius:0;border:0}.rackWrap{bottom:3px}.rack{height:118px;grid-template-rows:repeat(2,46px)}.rack-slot,.tile{height:46px}.status{bottom:152px}.center{top:34%}.left,.right{top:28%}}
/* V10: fullscreen-safe result screen and revealed winning rack */
.table .modal{position:absolute;inset:0;z-index:9999;background:rgba(0,0,0,.78);padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom));align-items:center;justify-items:center;overflow:auto}
.table:fullscreen .modal{position:fixed;inset:0;width:100vw;height:100vh;z-index:2147483647}
.modalCard{width:min(760px,96vw)!important;max-height:min(92vh,820px)!important;overflow:auto;overscroll-behavior:contain}
#winnerReveal:empty{display:none}.revealTitle{display:block;margin:12px 0 9px;font-size:15px}.winnerRack{display:flex;gap:10px;align-items:flex-end;justify-content:center;flex-wrap:wrap;padding:14px;background:linear-gradient(#efc981,#ce913b);border:4px solid #90561f;border-radius:14px;box-shadow:inset 0 2px 5px #fff6,0 6px 18px #0003}.winnerGroup{display:flex;gap:3px;padding-right:8px;border-right:2px solid #7b4a2480}.winnerGroup:last-child{border-right:0;padding-right:0}.winnerRack .tile{width:43px;height:62px;font-size:21px;cursor:default;box-shadow:0 3px 6px #0005,inset 1px 1px 2px #fff}.winnerRack .tile i{font-size:11px}.player.turn{filter:drop-shadow(0 0 8px #ffdf69)}
@media(max-width:760px){.table .modal{padding:8px}.modalCard{width:98vw!important;max-height:96vh!important;padding:15px!important}.winnerRack{gap:6px;padding:8px}.winnerGroup{gap:2px;padding-right:5px}.winnerRack .tile{width:29px;height:43px;font-size:15px}.winnerRack .tile i{font-size:8px}.analysis-card{font-size:11px;margin:8px 0;padding:9px}}
/* V11: konuşma balonları kaldırıldı, oyun sonu ıstakası gerçek taş dizilimine çevrildi */
.bubble{display:none!important}
.winnerRack{display:none!important}
.winnerRackBoard{display:grid;grid-template-columns:repeat(15,43px);grid-template-rows:repeat(2,62px);gap:5px;padding:14px;background:linear-gradient(#efc981,#ce913b);border:5px solid #90561f;border-radius:14px;box-shadow:inset 0 3px 7px #fff6,0 7px 20px #0004;justify-content:center;overflow-x:auto}
.winnerSlot{width:43px;height:62px;border-radius:6px;border:1px dashed #8a571f55;display:flex;align-items:center;justify-content:center}
.winnerRackBoard .tile{width:43px;height:62px;font-size:21px;cursor:default;box-shadow:0 3px 6px #0005,inset 1px 1px 2px #fff}
.winnerRackBoard .tile i{font-size:11px}
@media(max-width:760px){.winnerRackBoard{grid-template-columns:repeat(15,29px);grid-template-rows:repeat(2,43px);gap:2px;padding:8px;justify-content:start}.winnerSlot,.winnerRackBoard .tile{width:29px;height:43px}.winnerRackBoard .tile{font-size:15px}.winnerRackBoard .tile i{font-size:8px}}
/* V12: rakamsız gerçek Okey, klasik/modern taş ve ölçeklenen sonuç ıstakası */
.okey-tile{color:#b57500;overflow:hidden}.okey-tile:before{content:"";position:absolute;inset:-35%;background:linear-gradient(115deg,transparent 35%,#fff9 50%,transparent 65%);animation:okeyGlow 2.4s ease-in-out infinite;pointer-events:none}.okey-tile .okeyMark{font-size:34px;line-height:1;filter:drop-shadow(0 1px 1px #8a5a00)}.okey-tile.modern{background:linear-gradient(145deg,#fffbe8,#e8c866);border:1px solid #d1a83a}.okey-tile.modern .okeyMark{font-size:30px}.okey-tile i{font-size:9px!important;letter-spacing:1px}.fakeMark{display:inline-grid;place-items:center;margin-left:3px;width:12px;height:12px;border-radius:50%;background:#17864e;color:#fff;font-size:8px;vertical-align:1px}@keyframes okeyGlow{0%,45%,100%{transform:translateX(-80%);opacity:0}55%,75%{transform:translateX(80%);opacity:.9}}
.tile.modern,#indicator.modern,#discardPile.modern{border-radius:12px;background:linear-gradient(155deg,#fff,#e9edf2);box-shadow:0 6px 12px #0006,inset 1px 1px 5px #fff, inset -2px -2px 4px #b8c0ca}.tile.classic,#indicator.classic,#discardPile.classic{border:1px solid #d5ccbb}
.winnerRackBoard{width:100%;grid-template-columns:repeat(15,minmax(0,1fr));grid-template-rows:repeat(2,auto);gap:4px;overflow:hidden}.winnerSlot{width:100%;height:auto;aspect-ratio:43/62;min-width:0}.winnerRackBoard .tile{width:100%;height:100%;min-width:0;font-size:clamp(10px,2.3vw,21px)}.winnerRackBoard .okey-tile .okeyMark{font-size:clamp(14px,3vw,30px)}
@media(max-width:760px){.winnerRackBoard{grid-template-columns:repeat(15,minmax(0,1fr));gap:1px;padding:5px}.winnerSlot{width:100%;height:auto}.winnerRackBoard .tile{width:100%;height:100%;font-size:10px;border-radius:3px}.winnerRackBoard .tile i{font-size:5px!important}.winnerRackBoard .fakeMark{width:7px;height:7px;font-size:5px;margin-left:1px}}

/* V13: Sahte Okey göstergeyle aynıdır; sonuç ekranında renkler daha belirgin */
.fake{font-weight:900}.fake.red{color:#ef3e45}.fake.yellow{color:#e99a00}.fake.black{color:#252b30}.fake.blue{color:#3f63f0}
.winnerRackBoard .tile.red{color:#ef3e45!important;border-top:3px solid #ef3e45}
.winnerRackBoard .tile.yellow{color:#d98a00!important;border-top:3px solid #e99a00}
.winnerRackBoard .tile.black{color:#20262b!important;border-top:3px solid #252b30}
.winnerRackBoard .tile.blue{color:#315eea!important;border-top:3px solid #3f63f0}
.winnerRackBoard .tile.fake{box-shadow:0 0 0 2px currentColor inset,0 3px 6px #0005!important}
.winnerRackBoard .tile i{font-weight:900;opacity:1}
.winnerRackBoard .fakeMark{background:currentColor;color:#fff;border:1px solid #fff}
@media(max-width:760px){.winnerRackBoard .tile.red,.winnerRackBoard .tile.yellow,.winnerRackBoard .tile.black,.winnerRackBoard .tile.blue{border-top-width:2px}}

/* V14: Robot sırası sırasında ıstaka sürükleme aktif; robot turu yaklaşık 1,65 saniye. */
/* V15 FINAL+ — akıcı 1.50 sn robot zaman çizelgesi ve sıra bağımsız ıstaka düzenleme */
.rack,.rack-slot,.rack-slot .tile{touch-action:none}.rack-slot{position:relative}.rack-slot.drag-over{box-shadow:inset 0 0 0 3px #fff9;background:#fff4}.tile.dragging{opacity:.42;transform:scale(.96);filter:brightness(1.08)}
/* V16 Hybrid lobby + chat */
.lobbyBar{position:absolute;left:50%;top:12px;transform:translateX(-50%);z-index:40;width:min(920px,calc(100% - 24px));display:grid;grid-template-columns:auto minmax(150px,220px) 1fr auto;align-items:center;gap:10px;padding:10px 12px;border:1px solid rgba(255,255,255,.14);border-radius:16px;background:rgba(7,18,24,.86);backdrop-filter:blur(14px);box-shadow:0 12px 30px rgba(0,0,0,.28);color:#fff}.lobbyBar.hidden{display:none}.roomInfo{display:flex;flex-direction:column;gap:2px}.roomInfo strong{font-size:14px}.roomInfo span,.startHint{font-size:11px;opacity:.72}.lobbyName label{display:flex;align-items:center;gap:6px;font-size:11px;opacity:.9}.lobbyName input{width:130px;border:1px solid rgba(255,255,255,.16);border-radius:9px;padding:7px 9px;background:rgba(255,255,255,.08);color:#fff;outline:none}.lobbySeats{display:flex;gap:5px;justify-content:center;min-width:0}.seatChip{display:flex;align-items:center;gap:4px;max-width:110px;padding:6px 8px;border-radius:999px;background:rgba(255,255,255,.08);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.seatChip.empty{opacity:.5;border:1px dashed rgba(255,255,255,.22)}.seatChip.bot{background:rgba(79,70,229,.2)}.seatChip.meSeat{outline:1px solid rgba(34,197,94,.7)}.startHybrid{border:0;border-radius:11px;padding:9px 13px;background:#22c55e;color:#06240f;font-weight:800;cursor:pointer}.startHybrid:disabled{opacity:.45;cursor:not-allowed}.startHint{grid-column:1/-1;text-align:center;margin-top:-3px}.chatFab{position:absolute;right:18px;bottom:18px;z-index:80;width:48px;height:48px;border:0;border-radius:50%;font-size:21px;cursor:pointer;background:#111827;color:#fff;box-shadow:0 10px 28px rgba(0,0,0,.35)}.chatFab span{position:absolute;right:-3px;top:-4px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:#ef4444;color:#fff;font-size:10px;line-height:18px;display:none}.chatPanel{position:absolute;right:18px;bottom:76px;z-index:90;width:min(340px,calc(100% - 28px));height:390px;display:none;grid-template-rows:auto 1fr auto;border:1px solid rgba(255,255,255,.14);border-radius:16px;overflow:hidden;background:rgba(6,14,20,.96);backdrop-filter:blur(18px);box-shadow:0 18px 45px rgba(0,0,0,.45);color:#fff}.chatPanel.show{display:grid}.chatHead{display:flex;justify-content:space-between;align-items:center;padding:12px 13px;border-bottom:1px solid rgba(255,255,255,.08)}.chatHead div{display:flex;flex-direction:column}.chatHead small{opacity:.55;font-size:10px}.chatHead button{border:0;background:none;color:#fff;font-size:24px;cursor:pointer}.chatMessages{padding:10px;overflow:auto;display:flex;flex-direction:column;gap:7px}.chatMsg{max-width:88%;padding:7px 9px;border-radius:11px;background:rgba(255,255,255,.08);font-size:12px;line-height:1.35}.chatMsg.mine{align-self:flex-end;background:rgba(37,99,235,.28)}.chatMsg b{display:block;font-size:10px;margin-bottom:2px;opacity:.72}.chatPanel form{display:grid;grid-template-columns:1fr auto;gap:7px;padding:9px;border-top:1px solid rgba(255,255,255,.08)}.chatPanel input{min-width:0;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:rgba(255,255,255,.08);color:#fff;padding:9px 10px;outline:none}.chatPanel form button{border:0;border-radius:10px;padding:0 12px;background:#2563eb;color:#fff;font-weight:700}.player.human .avatar{background:rgba(34,197,94,.18)}.player.empty{opacity:.52}.player .avatar{display:grid;place-items:center}.connectionPill{position:absolute;left:14px;bottom:14px;z-index:45;padding:6px 9px;border-radius:999px;background:rgba(0,0,0,.38);color:#fff;font-size:10px}.modal{z-index:150!important}.modal.show{display:flex!important}.winnerRackBoard .tile{pointer-events:none}
@media(max-width:760px){.lobbyBar{top:8px;grid-template-columns:1fr auto;gap:7px;padding:8px}.roomInfo{grid-column:1}.lobbyName{grid-column:2}.lobbyName label{font-size:0}.lobbyName input{width:105px}.lobbySeats{grid-column:1/-1;justify-content:flex-start;overflow-x:auto}.startHybrid{grid-column:1/-1}.startHint{display:none}.chatFab{right:10px;bottom:10px}.chatPanel{right:7px;bottom:65px;height:min(390px,65vh)}.seatChip{flex:0 0 auto}.table{padding-top:70px!important}}

/* V16.1 HYBRID REVIZE — mobil ıstaka, oyuncu aydınlatması, atan oyuncuya bağlı son taş, radyo */
.radioToggle.playing{background:#22c55e!important;color:#06240f!important;box-shadow:0 0 0 2px #86efac55,0 0 18px #22c55e66!important}
#radioPlayer{display:none}
.player.human .avatar{position:relative;width:38px;height:38px;margin:0 auto 3px;border-radius:50%;border:1px solid #7fffd4;background:radial-gradient(circle at 35% 30%,#d8fff5 0 9%,#20c997 30%,#075d4b 72%);box-shadow:0 0 0 3px #16a08533,0 0 16px #26ffd499,0 0 34px #26ffd444;filter:none;animation:humanGlow 2.2s ease-in-out infinite}
.player.human .avatar:after{content:"";position:absolute;right:-1px;bottom:1px;width:9px;height:9px;border-radius:50%;background:#54ff88;border:2px solid #10221b;box-shadow:0 0 8px #54ff88}
.player.human b{color:#e8fff7;text-shadow:0 0 8px #3fffd477}.player.human em{color:#78ffd4;font-weight:800}.player.bot .avatar{width:36px;height:36px;margin:0 auto 3px;border-radius:50%;background:#5b3ea91f;box-shadow:0 0 0 2px #8b5cf633,0 0 10px #8b5cf644;filter:none}.player.turn .avatar{animation:none;box-shadow:0 0 0 3px #ffd166aa,0 0 18px #ffd166,0 0 38px #ffd16677!important}.seatChip.human{background:linear-gradient(90deg,#0b6b55aa,#0f9f78aa);box-shadow:inset 0 0 0 1px #5fffd077}.seatChip.human:before{content:"●";color:#57ff8a;text-shadow:0 0 7px #57ff8a;font-size:9px}.seatChip.meSeat{outline:2px solid #f6d365}
@keyframes humanGlow{0%,100%{box-shadow:0 0 0 3px #16a08533,0 0 12px #26ffd477,0 0 25px #26ffd433}50%{box-shadow:0 0 0 4px #16a08555,0 0 21px #26ffd4bb,0 0 40px #26ffd455}}
.discardFloat{position:absolute!important;z-index:6;min-width:76px;text-align:center;transition:left .35s ease,right .35s ease,top .35s ease,bottom .35s ease,transform .35s ease}.discardFloat small{display:block;margin-bottom:6px;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#f6f2df;text-shadow:0 1px 3px #000}.discardFloat:before,.discardFloat:after{top:28px}.discard-center{left:calc(50% + 85px);top:calc(37% - 45px);right:auto;bottom:auto;transform:none}.discard-rel-0{right:88px;bottom:225px;left:auto;top:auto;transform:none}.discard-rel-1{left:105px;top:53%;right:auto;bottom:auto;transform:translateY(-50%)}.discard-rel-2{left:calc(50% - 145px);top:112px;right:auto;bottom:auto;transform:none}.discard-rel-3{right:105px;top:24%;left:auto;bottom:auto;transform:translateY(-50%)}
@media(max-width:760px){.game{overflow-x:hidden}.rackWrap{left:2px!important;right:2px!important}.rack{width:100%;height:128px!important;padding:6px 3px!important;grid-template-columns:repeat(15,minmax(0,1fr))!important;grid-template-rows:repeat(2,48px)!important;gap:2px 1px!important;justify-content:stretch!important;overflow:visible!important}.rack-slot{width:100%!important;min-width:0!important;height:48px!important}.rack .tile{width:100%!important;min-width:0!important;height:48px!important;font-size:clamp(12px,4vw,17px)!important;border-radius:4px!important}.rack .tile i{font-size:clamp(6px,2vw,9px)!important}.rack .okey-tile .okeyMark{font-size:clamp(15px,5vw,22px)!important}.rack .fakeMark{width:8px;height:8px;font-size:5px;margin-left:1px}.discardFloat{min-width:45px}.discardFloat small{font-size:8px;max-width:76px}.discard-rel-0{right:8px;bottom:202px}.discard-rel-1{left:8px;top:48%}.discard-rel-2{left:calc(50% - 82px);top:102px}.discard-rel-3{right:8px;top:17%}.discard-center{left:calc(50% + 52px);top:31%}.player.human .avatar{width:31px;height:31px;font-size:18px}.player.bot .avatar{width:30px;height:30px;font-size:18px}.gameTools{grid-template-columns:repeat(2,minmax(0,1fr))}.radioToggle{width:100%}}
@media(max-width:430px){.rack{height:119px!important;grid-template-rows:repeat(2,44px)!important;padding:5px 2px!important;gap:2px 1px!important}.rack-slot,.rack .tile{height:44px!important}.rack .tile{font-size:12px!important}.rack .tile i{font-size:6px!important}.rack .okey-tile .okeyMark{font-size:16px!important}.status{bottom:156px!important}.discard-rel-0{bottom:184px}.discard-rel-2{top:96px}.discard-rel-3{top:16%}.discard-rel-1{top:46%}}
@media(orientation:landscape) and (max-height:600px){.rack{height:105px!important;grid-template-rows:repeat(2,40px)!important}.rack-slot,.rack .tile{height:40px!important}.discard-rel-0{bottom:136px}.discard-rel-1{left:72px;top:55%}.discard-rel-2{top:68px}.discard-rel-3{right:72px;top:28%}.discard-center{top:34%;left:calc(50% + 65px)}}

/* V16.5: kutulu hızlı kontroller + mobil ıstaka revizyonu */
.quickTools{display:grid;grid-template-columns:repeat(4,minmax(74px,1fr));gap:7px;align-items:stretch}
.toolBox{min-width:78px!important;min-height:58px!important;padding:6px 8px!important;border:1px solid #ffffff26!important;border-radius:12px!important;background:#17241f!important;color:#eaf7f0!important;box-shadow:inset 0 0 0 1px #0004,0 4px 12px #0005!important;display:grid!important;grid-template-columns:24px 1fr;grid-template-rows:1fr 1fr;align-items:center;column-gap:5px;text-align:left}
.toolBox .toolIcon{grid-row:1/3;font-size:20px;line-height:1}.toolBox .toolText{font-size:10px;letter-spacing:.4px;font-weight:900}.toolBox small{font-size:9px;color:#9bb5aa;font-weight:800}.toolBox.active{border-color:#58e7a2!important;background:#173127!important;box-shadow:0 0 0 1px #58e7a255,0 0 15px #42e9952e,inset 0 0 12px #31d88216!important}.toolBox.active small{color:#7df0b3}.radioToggle.active{border-color:#f0c765!important;box-shadow:0 0 16px #f0c76536!important}.radioToggle.active small{color:#ffd97e}
.player.human .avatar{border:2px solid #5af0b1!important;background:radial-gradient(circle,#274c3e,#14271f)!important;box-shadow:0 0 0 3px #53e6a424,0 0 18px #4ff2ad8a!important}.player.human b{color:#caffdf!important;text-shadow:0 0 8px #43e89f70}.player.human.turn .avatar{border-color:#ffd56e!important;box-shadow:0 0 0 3px #ffd56e30,0 0 22px #ffd56eb0!important}
@media(max-width:900px){.quickTools{grid-template-columns:repeat(4,minmax(0,1fr));width:100%}.gameTools{width:100%}.gameTools>label{flex:1}.volume{min-width:180px}}
@media(max-width:760px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}.game{width:100%;max-width:100%;overflow:hidden}
  .gameTools{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important}.quickTools{grid-column:1/-1;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
  .toolBox{min-width:0!important;min-height:52px!important;padding:5px!important;grid-template-columns:18px 1fr!important}.toolBox .toolIcon{font-size:16px}.toolBox .toolText{font-size:8px}.toolBox small{font-size:7px}
  .rackWrap{left:2px!important;right:2px!important;width:auto!important;max-width:calc(100% - 4px)!important;overflow:hidden!important}
  .rack{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important;grid-template-columns:repeat(15,minmax(0,1fr))!important;grid-template-rows:repeat(2,46px)!important;gap:2px 1px!important;padding:6px 3px!important;height:124px!important}
  .rack-slot{box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;height:46px!important;overflow:visible}
  .rack .tile{box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;height:46px!important;padding:0!important;font-size:clamp(11px,3.7vw,16px)!important}
  .rack .tile i{font-size:clamp(6px,1.9vw,8px)!important}.status{bottom:158px!important}
}
@media(max-width:430px){
  .rack{grid-template-rows:repeat(2,42px)!important;height:114px!important;padding:5px 2px!important}
  .rack-slot,.rack .tile{height:42px!important}.rack .tile{font-size:11px!important}.status{bottom:148px!important}
  .toolBox{min-height:48px!important}.toolBox .toolText{font-size:7px}.toolBox small{font-size:6px}
}

/* V16.6: dört ayrı atılan-taş alanı */
.discardSeat{position:absolute;z-index:6;width:78px;min-height:105px;text-align:center;pointer-events:none}
.discardSeat small{display:block;min-height:16px;margin-bottom:5px;font-size:9px;color:#eee4c9;text-shadow:0 1px 3px #000;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.discardSeat .discardPile{pointer-events:auto;width:54px;height:78px;margin:auto;border:1px dashed #ffffff35;border-radius:8px;background:#ffffff10;box-shadow:inset 0 0 0 1px #0003;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative}
.discardSeat .discardPile:empty{visibility:visible}
.discardSeat.hasTile .discardPile{border:0;background:linear-gradient(145deg,#fff,#e8e2d4);box-shadow:0 5px 9px #0007,inset 2px 2px 3px #fff;transform:rotate(var(--rot,0deg))}
.discardSeat .discardPile:disabled{cursor:default;opacity:1}
.discardTop{left:17%;top:17%}      /* üst oyuncunun sağı = ekranın solu */
.discardRight{right:13%;top:34%}   /* sağ oyuncunun sağı = yukarısı */
.discardLeft{left:13%;top:54%}     /* sol oyuncunun sağı = aşağısı */
.discardSelf{right:14%;bottom:205px} /* senin sağın = ekranın sağı */
.source-dragging{filter:brightness(1.25);transform:scale(.94)!important;opacity:.72}
.rack.draw-target{outline:4px solid #8ff0bd;outline-offset:-5px;box-shadow:0 0 20px #5ff0a955,inset 0 0 18px #50d99735}
.deck,.discardPile{touch-action:none}

/* Mobil: tek parmakla sayfa kaydırma + ıstaka içinde yatay taş sürükleme */
@media(max-width:760px){
  html,body{overflow-y:auto!important;overscroll-behavior-y:auto!important;touch-action:pan-y!important}
  .game{overflow:visible!important}
  .table{overflow:hidden}
  .rackWrap{touch-action:pan-y}
  .rack,.rack-slot,.rack .tile{touch-action:pan-y!important}
  .discardSeat{width:48px;min-height:78px}
  .discardSeat small{font-size:6px;max-width:48px}
  .discardSeat .discardPile{width:38px;height:56px;font-size:17px}
  .discardSeat .discardPile i{font-size:9px}
  .discardTop{left:10%;top:16%}
  .discardRight{right:5%;top:32%}
  .discardLeft{left:5%;top:51%}
  .discardSelf{right:5%;bottom:155px}
}
@media(max-width:430px){
  .discardSeat .discardPile{width:34px;height:50px;font-size:15px}
  .discardSelf{bottom:145px}
}


/* =========================================================
   V16.7 FINAL LAYOUT PASS
   - Simetrik atılan taş alanları
   - Web / tablet / mobil masa optimizasyonu
   - Sonuç ıstakası tam ortalı
   ========================================================= */

/* Masa oranı ve merkez */
.table{
  min-height:720px;
  isolation:isolate;
}
.center{
  left:50%!important;
  top:39%!important;
  transform:translate(-50%,-50%)!important;
}

/* Dört atık yuvası aynı ölçü ve aynı görsel dil */
.discardSeat{
  width:72px!important;
  min-height:102px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  transform:translate(-50%,-50%)!important;
}
.discardSeat small{
  width:88px!important;
  max-width:88px!important;
  min-height:14px!important;
  margin:0 0 5px!important;
  font-size:8px!important;
  line-height:14px!important;
  opacity:.82;
}
.discardSeat .discardPile{
  width:52px!important;
  height:75px!important;
  flex:0 0 auto!important;
  border:1px dashed rgba(255,255,255,.30)!important;
  background:rgba(255,255,255,.055)!important;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.18)!important;
}
.discardSeat:not(.hasTile) .discardPile:after{
  content:"";
  width:26px;
  height:38px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:5px;
}
.discardSeat.hasTile .discardPile{
  background:linear-gradient(145deg,#fff,#e8e2d4)!important;
  border:0!important;
  box-shadow:0 5px 10px rgba(0,0,0,.46),inset 2px 2px 3px #fff!important;
}

/*
 Oyuncuların kendi bakış yönüne göre sağ tarafı:
 Üst oyuncu -> ekranın sol-altı
 Sağ oyuncu -> ekranın sağ-üstü
 Sol oyuncu -> ekranın sol-altı
 Sen -> ekranın sağ-altı
 Konumlar aynı merkez etrafında dengeli tutulur.
*/
.discardTop{
  left:38%!important;
  top:24%!important;
  right:auto!important;
  bottom:auto!important;
}
.discardRight{
  left:81%!important;
  top:35%!important;
  right:auto!important;
  bottom:auto!important;
}
.discardLeft{
  left:19%!important;
  top:51%!important;
  right:auto!important;
  bottom:auto!important;
}
.discardSelf{
  left:68%!important;
  top:auto!important;
  right:auto!important;
  bottom:181px!important;
  transform:translate(-50%,0)!important;
}

/* Oyuncular da daha dengeli */
.top{left:50%!important;top:14px!important;transform:translateX(-50%)!important}
.left{left:18px!important;top:40%!important;transform:translateY(-50%)!important}
.right{right:18px!important;top:40%!important;transform:translateY(-50%)!important}

/* Durum mesajı ıstakanın önünde/arkasında kalmasın */
.status{
  bottom:208px!important;
  max-width:min(720px,calc(100% - 36px));
  white-space:normal!important;
  text-align:center;
  line-height:1.25;
}

/* Sonuç penceresi profesyonel ve geniş */
.modal{
  padding:18px!important;
  align-items:center!important;
  justify-content:center!important;
}
.modal>div,.modalCard{
  width:min(820px,94vw)!important;
  max-width:820px!important;
  max-height:92vh!important;
  margin:auto!important;
  overflow:auto!important;
  padding:22px!important;
}
#winnerReveal{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.revealTitle{
  width:100%;
  text-align:center!important;
  margin:12px 0 10px!important;
}
.winnerRackBoard{
  width:min(720px,100%)!important;
  max-width:720px!important;
  margin:12px auto 18px!important;
  padding:12px!important;
  grid-template-columns:repeat(15,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,58px)!important;
  gap:4px!important;
  justify-content:center!important;
  align-content:center!important;
  overflow:hidden!important;
}
.winnerSlot{
  width:100%!important;
  height:58px!important;
  min-width:0!important;
  aspect-ratio:auto!important;
}
.winnerRackBoard .tile{
  width:100%!important;
  height:58px!important;
  min-width:0!important;
  font-size:clamp(14px,2.25vw,21px)!important;
}

/* Tablet */
@media(max-width:980px){
  .table{min-height:700px}
  .discardTop{left:36%!important;top:23%!important}
  .discardRight{left:80%!important;top:34%!important}
  .discardLeft{left:20%!important;top:50%!important}
  .discardSelf{left:69%!important;bottom:177px!important}
}

/* Telefon */
@media(max-width:760px){
  .game{padding:5px!important}
  .table{
    min-height:690px!important;
    border-width:5px!important;
    border-radius:22px!important;
    overflow:hidden!important;
  }
  .top{top:78px!important}
  .left{left:3px!important;top:34%!important}
  .right{right:3px!important;top:34%!important}
  .center{
    top:38%!important;
    gap:7px!important;
  }

  .discardSeat{
    width:43px!important;
    min-height:67px!important;
  }
  .discardSeat small{
    display:none!important;
  }
  .discardSeat .discardPile{
    width:35px!important;
    height:51px!important;
    border-radius:5px!important;
    font-size:15px!important;
  }
  .discardSeat:not(.hasTile) .discardPile:after{
    width:18px;
    height:27px;
  }

  /* Mobilde eşit görsel aralıklarla elmas düzen */
  .discardTop{
    left:34%!important;
    top:25%!important;
  }
  .discardRight{
    left:84%!important;
    top:39%!important;
  }
  .discardLeft{
    left:16%!important;
    top:49%!important;
  }
  .discardSelf{
    left:70%!important;
    bottom:143px!important;
  }

  .status{
    left:8px!important;
    right:8px!important;
    bottom:151px!important;
    transform:none!important;
    max-width:none!important;
    padding:7px 10px!important;
    font-size:10px!important;
  }

  .rackWrap{
    left:2px!important;
    right:2px!important;
    bottom:max(5px,env(safe-area-inset-bottom))!important;
  }

  /* Sonuçta 30 slot tek bakışta, tam ortada */
  .modal{
    padding:6px!important;
  }
  .modal>div,.modalCard{
    width:96vw!important;
    max-width:96vw!important;
    padding:13px 8px!important;
  }
  .winnerRackBoard{
    width:100%!important;
    max-width:100%!important;
    margin:8px auto 13px!important;
    padding:6px 4px!important;
    grid-template-rows:repeat(2,42px)!important;
    gap:2px!important;
  }
  .winnerSlot,.winnerRackBoard .tile{
    height:42px!important;
  }
  .winnerRackBoard .tile{
    font-size:clamp(9px,3vw,13px)!important;
    border-radius:3px!important;
  }
  .winnerRackBoard .tile i{font-size:6px!important}
}

/* Küçük telefon */
@media(max-width:430px){
  .table{min-height:660px!important}
  .top{top:74px!important}
  .center{top:37%!important}
  .discardTop{left:33%!important;top:25%!important}
  .discardRight{left:85%!important;top:38%!important}
  .discardLeft{left:15%!important;top:48%!important}
  .discardSelf{left:71%!important;bottom:132px!important}
  .status{bottom:139px!important}
  .winnerRackBoard{
    grid-template-rows:repeat(2,38px)!important;
    gap:1px!important;
    padding:5px 3px!important;
  }
  .winnerSlot,.winnerRackBoard .tile{height:38px!important}
  .winnerRackBoard .tile{font-size:9px!important}
}

/* Mobil yatay */
@media(orientation:landscape) and (max-height:600px){
  .table{min-height:560px!important}
  .top{top:10px!important}
  .left,.right{top:38%!important}
  .center{top:36%!important}
  .discardTop{left:38%!important;top:19%!important}
  .discardRight{left:82%!important;top:31%!important}
  .discardLeft{left:18%!important;top:48%!important}
  .discardSelf{left:68%!important;bottom:111px!important}
  .status{bottom:116px!important}
}

/* V16.8 - merkez eksenli simetrik atık alanları + stabil mobil dokunma */
:root{--discard-x:24%;--discard-y:39%}
.discardSeat{z-index:7!important}
.discardTop,.discardRight,.discardLeft,.discardSelf{right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important}
.discardTop{left:calc(50% - var(--discard-x))!important;top:calc(var(--discard-y) - 15%)!important}
.discardRight{left:calc(50% + var(--discard-x))!important;top:var(--discard-y)!important}
.discardLeft{left:calc(50% - var(--discard-x))!important;top:var(--discard-y)!important}
.discardSelf{left:calc(50% + var(--discard-x))!important;top:calc(var(--discard-y) + 15%)!important}
@media(max-width:980px){:root{--discard-x:27%;--discard-y:39%}}
@media(max-width:760px){
 :root{--discard-x:31%;--discard-y:38%}
 html,body{touch-action:pan-y!important;-webkit-overflow-scrolling:touch}
 .rackWrap,.rack{touch-action:pan-y!important}
 .rack .tile,.rack-slot{touch-action:pan-y!important;-webkit-user-select:none;user-select:none}
 .deck,.discardPile{touch-action:none!important}
 .discardTop{top:calc(var(--discard-y) - 13%)!important}
 .discardSelf{top:calc(var(--discard-y) + 13%)!important}
}
@media(max-width:430px){:root{--discard-x:32%;--discard-y:37%}}

/* =========================================================
   V16.9 PRO TABLE — reference-concept layout
   ========================================================= */
:root{
  --pro-edge:#32425c;
  --pro-bg1:#0c1626;
  --pro-bg2:#132139;
  --pro-panel:#07111d;
  --pro-gold:#efbb54;
  --pro-green:#1fca63;
  --rack-top:200px;
}
body{background:#07101a!important}
.game{max-width:1540px!important;margin:0 auto!important;padding:8px!important}
.table{
  min-height:930px!important;
  border:7px solid var(--pro-edge)!important;
  border-radius:32px!important;
  background:
    radial-gradient(circle at 50% 42%,rgba(31,73,132,.20),transparent 34%),
    radial-gradient(circle at 50% 55%,rgba(21,42,78,.18),transparent 58%),
    linear-gradient(180deg,var(--pro-bg1),var(--pro-bg2))!important;
  box-shadow:inset 0 0 70px rgba(0,0,0,.55),0 18px 45px rgba(0,0,0,.4)!important;
  overflow:hidden!important;
}

/* lobby/top rail */
.lobby{
  width:min(1120px,calc(100% - 300px))!important;
  min-height:84px!important;
  left:50%!important;
  top:10px!important;
  transform:translateX(-50%)!important;
  border:1px solid rgba(132,162,193,.25)!important;
  background:rgba(4,13,23,.90)!important;
  border-radius:17px!important;
  box-shadow:0 9px 22px rgba(0,0,0,.28)!important;
}
.lobbySeats{gap:8px!important}
.lobbySeat{border-radius:22px!important}
.startNow{background:linear-gradient(180deg,#24d368,#19b955)!important;color:#06170c!important;font-size:18px!important;font-weight:900!important;border-radius:10px!important}

/* player plaques */
.player{
  min-width:188px!important;
  min-height:83px!important;
  padding:7px 10px!important;
  border:1px solid rgba(170,192,216,.25)!important;
  border-radius:17px!important;
  background:rgba(4,12,22,.68)!important;
  display:grid!important;
  grid-template-columns:54px 1fr!important;
  grid-template-rows:auto auto auto!important;
  align-items:center!important;
  column-gap:10px!important;
}
.player .avatar{grid-row:1/4;width:50px!important;height:50px!important;font-size:28px!important}
.player b{font-size:18px!important;line-height:20px!important}
.player small{font-size:12px!important}
.player .role{font-size:12px!important;color:#f2c355!important}
.top{left:50%!important;top:112px!important;transform:translateX(-50%)!important}
.left{left:26px!important;top:42%!important;transform:translateY(-50%)!important}
.right{right:26px!important;top:42%!important;transform:translateY(-50%)!important}
.me{left:50%!important;bottom:235px!important;transform:translateX(-50%)!important}

/* center stack */
.center{
  left:50%!important;
  top:43%!important;
  transform:translate(-50%,-50%)!important;
  gap:18px!important;
}
.indicator,.deck{transform:scale(1.08)}
.center small{font-size:13px!important}

/* discard cells aligned around center, visually equidistant */
.discardSeat{
  width:95px!important;
  min-height:118px!important;
  z-index:8!important;
}
.discardSeat small{
  display:block!important;
  width:110px!important;
  max-width:110px!important;
  text-align:center!important;
  font-size:11px!important;
  line-height:14px!important;
  color:#f2f4f8!important;
  opacity:.94!important;
}
.discardSeat .discardPile{
  width:76px!important;
  height:96px!important;
  border-radius:9px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.025))!important;
  border:2px solid rgba(255,255,255,.18)!important;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.28),0 5px 14px rgba(0,0,0,.18)!important;
}
.discardSeat:not(.hasTile) .discardPile:after{
  width:38px!important;
  height:52px!important;
  border-color:rgba(255,255,255,.13)!important;
}
.discardSeat.hasTile .discardPile{
  border:0!important;
  background:linear-gradient(145deg,#fff,#ece8df)!important;
}
.discardTop{left:57%!important;top:19.5%!important}
.discardRight{left:81%!important;top:42%!important}
.discardLeft{left:19%!important;top:42%!important}
.discardSelf{left:57%!important;top:68.5%!important}

/* rack */
.rackWrap{
  left:28px!important;
  right:28px!important;
  bottom:78px!important;
  max-width:none!important;
}
.rack{
  width:100%!important;
  max-width:none!important;
  height:220px!important;
  padding:12px 145px!important;
  grid-template-columns:repeat(15,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,82px)!important;
  gap:6px 8px!important;
  border:5px solid #a36b20!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,#f0c36a,#d9973d)!important;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.35),0 8px 16px rgba(0,0,0,.35)!important;
}
.rack-slot{height:82px!important;border:1px dashed rgba(114,72,24,.42)!important;border-radius:8px!important}
.rack .tile{
  height:82px!important;
  min-width:0!important;
  width:100%!important;
  border-radius:8px!important;
  font-size:28px!important;
  box-shadow:0 5px 9px rgba(0,0,0,.28),inset 1px 1px 1px #fff!important;
}

/* status */
.status{
  bottom:290px!important;
  background:rgba(3,20,15,.88)!important;
  border:1px solid rgba(100,230,166,.15)!important;
  border-radius:24px!important;
  padding:10px 22px!important;
  font-size:15px!important;
}

/* action buttons centered */
.actions{
  bottom:18px!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  gap:8px!important;
}
.actions button{min-height:44px!important;padding:0 18px!important;border-radius:10px!important;font-size:15px!important;font-weight:900!important}

/* lower-right quick controls */
.gameTools{
  position:absolute!important;
  right:18px!important;
  bottom:14px!important;
  top:auto!important;
  width:auto!important;
  z-index:25!important;
  pointer-events:auto!important;
}
.gameTools>label{display:none!important}
.quickTools{
  grid-template-columns:repeat(4,92px)!important;
  gap:8px!important;
}
.toolBox{
  width:92px!important;
  min-width:92px!important;
  min-height:76px!important;
  padding:7px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  background:rgba(7,17,29,.92)!important;
  border:1px solid rgba(164,191,219,.28)!important;
  border-radius:12px!important;
}
.toolBox .toolIcon{font-size:26px!important}
.toolBox .toolText{font-size:10px!important}
.toolBox small{font-size:8px!important}
.toolBox.active{border-color:#61db9e!important;box-shadow:0 0 16px rgba(75,224,150,.20)!important}

/* result rack */
.modal>div,.modalCard{width:min(900px,94vw)!important;max-width:900px!important}
#winnerReveal{align-items:center!important}
.winnerRackBoard{
  width:min(790px,100%)!important;
  max-width:790px!important;
  margin:12px auto 18px!important;
  padding:12px!important;
  grid-template-columns:repeat(15,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,62px)!important;
  gap:5px!important;
}
.winnerSlot,.winnerRackBoard .tile{height:62px!important}

/* ===== MOBILE ===== */
@media(max-width:760px){
  .game{padding:2px!important}
  .table{min-height:770px!important;border-width:4px!important;border-radius:20px!important}
  .lobby{
    width:calc(100% - 18px)!important;
    min-height:82px!important;
    top:7px!important;
    padding:6px!important;
  }
  .startNow{font-size:13px!important}
  .player{
    min-width:116px!important;
    min-height:64px!important;
    padding:5px 6px!important;
    grid-template-columns:37px 1fr!important;
    column-gap:5px!important;
  }
  .player .avatar{width:34px!important;height:34px!important;font-size:19px!important}
  .player b{font-size:12px!important;line-height:14px!important}
  .player small,.player .role{font-size:8px!important}
  .top{top:96px!important}
  .left{left:3px!important;top:35%!important}
  .right{right:3px!important;top:35%!important}
  .me{bottom:185px!important;min-width:126px!important}

  .center{top:39%!important;gap:8px!important;transform:translate(-50%,-50%) scale(.86)!important}

  .discardSeat{width:46px!important;min-height:66px!important}
  .discardSeat small{display:none!important}
  .discardSeat .discardPile{width:40px!important;height:58px!important;border-width:1px!important}
  .discardSeat:not(.hasTile) .discardPile:after{width:20px!important;height:29px!important}
  .discardTop{left:61%!important;top:22%!important}
  .discardRight{left:86%!important;top:39%!important}
  .discardLeft{left:14%!important;top:39%!important}
  .discardSelf{left:61%!important;top:60%!important}

  .rackWrap{left:3px!important;right:3px!important;bottom:66px!important}
  .rack{
    height:124px!important;
    padding:6px 3px!important;
    grid-template-rows:repeat(2,51px)!important;
    gap:3px 1px!important;
    border-width:3px!important;
    border-radius:12px!important;
  }
  .rack-slot,.rack .tile{height:51px!important}
  .rack .tile{font-size:clamp(11px,3.8vw,17px)!important;border-radius:4px!important}
  .rack .tile i{font-size:7px!important}
  .status{bottom:200px!important;font-size:10px!important;padding:7px 12px!important}

  .actions{bottom:17px!important;left:4px!important;transform:none!important;gap:4px!important}
  .actions button{min-height:38px!important;padding:0 8px!important;font-size:10px!important}

  .gameTools{
    right:3px!important;
    bottom:8px!important;
  }
  .quickTools{grid-template-columns:repeat(4,48px)!important;gap:3px!important}
  .toolBox{
    width:48px!important;
    min-width:48px!important;
    min-height:48px!important;
    padding:3px!important;
    border-radius:8px!important;
  }
  .toolBox .toolIcon{font-size:16px!important}
  .toolBox .toolText{font-size:6px!important}
  .toolBox small{display:none!important}

  .winnerRackBoard{
    width:100%!important;
    grid-template-rows:repeat(2,42px)!important;
    gap:2px!important;
    padding:6px 4px!important;
  }
  .winnerSlot,.winnerRackBoard .tile{height:42px!important}
  .winnerRackBoard .tile{font-size:10px!important}
}

/* very small phones */
@media(max-width:430px){
  .table{min-height:740px!important}
  .left,.right{top:34%!important}
  .discardTop{left:60%!important;top:21.5%!important}
  .discardRight{left:87%!important;top:38%!important}
  .discardLeft{left:13%!important;top:38%!important}
  .discardSelf{left:60%!important;top:58.5%!important}
  .me{bottom:175px!important}
  .status{bottom:194px!important}
  .actions button{padding:0 6px!important;font-size:9px!important}
  .quickTools{grid-template-columns:repeat(4,43px)!important}
  .toolBox{width:43px!important;min-width:43px!important}
}
