/* Classic 101 table. Scoped so other games keep their own presentation. */
.okey-rule-notice,.okey-round-strip{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 10px;font-size:11px;background:#041f2044;border-radius:5px;margin:6px 0}.okey-rule-notice{color:#ffdf91;border:1px solid #e7bd5d66}.okey-round-strip>span{color:#c5ddcb;font-size:10px}.classic-okey-help a{color:#dfd4ff;text-decoration:underline}.okey-surface .game-scoreboard{margin:5px 0;padding:4px 0}.okey-surface .score-pill{font-size:10px;padding:6px 10px;background:#062b20;color:#e7f5e8}.okey-surface .score-pill strong{color:#d4e9a8}
.okey-dialog{width:1240px;max-height:96dvh;background:#073e2d;border-color:#93b8a15c;--table-ink:#edf6ed;--tile-white:#fffdf3;color:var(--table-ink)}
.okey-dialog .game-dialog-top{padding:9px 18px;background:#082e25;border-bottom:1px solid #7fbb9133;align-items:center;min-height:48px}
.okey-dialog .game-dialog-top>div{display:flex;align-items:center;gap:13px}
.okey-dialog .game-dialog-top h2{font-size:21px;margin:0}
.okey-dialog .game-dialog-top .eyebrow{font-size:8px;color:#91d6aa}
.okey-dialog .game-dialog-top p{display:none}
.okey-dialog .game-layout{grid-template-columns:minmax(0,1fr);height:calc(96dvh - 48px);max-height:calc(96dvh - 48px);min-height:0}
.okey-dialog .game-main{padding:0;min-height:0;max-height:none;overflow:auto;background:#06452f}
.okey-dialog .game-side{display:none;background:#102d25;color:#e9f2ec;border-color:#63846d40}
.okey-dialog.show-lobby .game-layout{grid-template-columns:minmax(0,1fr) 235px}
.okey-dialog.show-lobby .game-side{display:block}
.okey-dialog .game-side .lobby-code-card{background:#ffffff0b}
.okey-dialog .game-side .eyebrow{color:#a9e2b7}
.okey-dialog .game-side input,.okey-dialog .game-side select{background:#09251d;color:#fff;border-color:#ffffff25}
.okey-dialog .game-side .game-chat{margin-top:20px}
.okey-dialog .result-banner{margin:10px 15px;background:#bcdf8c1a;border-color:#bbdf8c66;color:#e6f8cf}
.okey-surface{padding:0 16px 8px;background:radial-gradient(ellipse at 50% 40%,#16744144,transparent 65%),url('/okey-felt.svg'),#05452f;color:#edf6ed;isolation:isolate}
.okey-toolbar{display:flex;align-items:center;gap:7px;min-height:36px;padding:4px 0;font-size:10px}
.okey-connection{margin-right:auto;color:#b5dec3;font-size:9px;font-weight:750;letter-spacing:.8px}
.okey-tool{border:1px solid #7cb79840;background:linear-gradient(#244e3c,#153729);color:#e0efdf;padding:6px 10px;border-radius:5px;font-size:10px;min-height:28px;white-space:nowrap}
.okey-tool:hover{background:#33684d}
.okey-arena{display:grid;grid-template-columns:85px minmax(0,1fr) 85px;grid-template-rows:52px minmax(200px,auto) 52px;gap:5px 16px;position:relative}
.table-player{display:flex;align-items:center;gap:9px;border:1px solid #b9dbb047;background:linear-gradient(105deg,#012c20,#08522d);border-radius:8px;box-shadow:0 3px 9px #00150b33;padding:7px 12px;min-width:0;justify-self:center;color:#e4f0da;position:relative}
.table-player.has-turn{border-color:#b9f275;box-shadow:0 0 0 2px #a8ee6222,0 0 18px #8fe75d25}
.table-player.has-turn::after{content:"";height:3px;background:#b7ee71;position:absolute;left:12px;right:12px;bottom:-1px;border-radius:5px}
.table-player .table-avatar{height:44px;width:44px;border:3px solid #e1efcf;border-radius:50%;background:linear-gradient(140deg,#d5bf91,#9b7950);color:#2d412e;font-size:15px;box-shadow:0 2px 4px #0003}
.table-player .avatar::after{display:none}
.table-player-info{min-width:0}
.table-player-info strong{display:block;max-width:120px;overflow:hidden;text-overflow:ellipsis;font-size:11px;white-space:nowrap}
.table-player-info small{display:block;font-size:9px;color:#c5dda0;margin-top:4px}
.player-north{grid-column:2;grid-row:1;min-width:160px}
.player-south{grid-column:2;grid-row:3;min-width:160px}
.player-south .table-avatar{background:linear-gradient(140deg,#9dd9d9,#3a9392)}
.player-west{grid-column:1;grid-row:2;align-self:center;flex-direction:column;padding:14px 5px;min-height:125px;width:85px;text-align:center}
.player-east{grid-column:3;grid-row:2;align-self:center;flex-direction:column;padding:14px 5px;min-height:125px;width:85px;text-align:center}
.player-west .table-avatar{background:linear-gradient(140deg,#ffdd8f,#c3943a)}
.player-east .table-avatar{background:linear-gradient(140deg,#b0d9a1,#699947)}
.player-west strong,.player-east strong{max-width:75px;font-size:10px}
.empty-seat{border-color:#bddbc51a;background:#002d2330;box-shadow:none;color:#8bb69c;opacity:.8}
.empty-seat-icon{font-size:28px;opacity:.6}
.empty-seat small{font-size:9px}
.okey-board-center{grid-column:2;grid-row:2;display:grid;grid-template-columns:minmax(180px,1fr) 61px minmax(110px,.42fr);gap:10px;min-width:0}
.opened-board{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;border:1px solid #b7debdab;border-radius:5px;overflow:hidden;background:#00412966}
.opened-quadrant{position:relative;min-width:0;min-height:95px;border-right:1px solid #d8f3d56b;border-bottom:1px solid #d8f3d56b;background-image:linear-gradient(#b3daba13 1px,transparent 1px),linear-gradient(90deg,#b3daba13 1px,transparent 1px);background-size:13px 18px;padding:8px 5px 24px}
.opened-quadrant:nth-child(even){border-right:0}
.opened-quadrant:nth-child(n+3){border-bottom:0}
.quadrant-owner{position:absolute;bottom:0;right:0;background:#b5d4bd;color:#244c34;padding:2px 10px;font-size:8px;border-radius:2px 0 0 0;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.opened-groups{display:flex;flex-direction:column;gap:7px;max-height:100px;overflow:auto}
.table-meld{display:flex;flex-wrap:wrap;align-items:center;gap:1px}
.okey-dialog .table-meld .okey-tile{height:29px;width:20px;font-size:15px;border-bottom-width:2px;border-radius:3px;flex:none;cursor:default}
.okey-dialog .table-meld .tile-face-pip{font-size:5px;margin-top:1px}
.meld-append{height:23px;min-width:18px;background:#153b2be6;color:#d3e9d1;border:1px solid #b6d1b64a;border-radius:3px;font-size:14px;padding:0 3px}
.meld-append:hover{background:#47774e}
.okey-depot{display:flex;flex-direction:column;align-items:center;justify-content:space-around;gap:3px;min-width:0}
.depot-item{display:flex;flex-direction:column;align-items:center;gap:3px}
.depot-item small,.depot-label{font-size:7px;font-weight:750;color:#b2d4b8;letter-spacing:.3px}
.okey-dialog .depot-item .okey-tile{width:40px;height:54px;font-size:27px}
.okey-dialog .depot-item .okey-tile:disabled{opacity:1}
.deck-stack{height:58px;width:40px;background:linear-gradient(135deg,#f2f6e9,#fffef8);border-radius:4px;border:1px solid #c7d3b9;border-bottom:4px solid #b7c1ac;box-shadow:2px 2px 0 #849f86,4px 4px 0 #234e37;position:relative;color:#508161;flex:none;display:grid;place-items:center}
.deck-stack:disabled{opacity:.8}
.deck-stack:not(:disabled):hover{transform:translateY(-3px)}
.deck-pattern{border:1px solid #acc5ab;border-radius:3px;padding:8px;font-size:19px}
.deck-count{position:absolute;right:-13px;top:-10px;border:2px solid #d8e9c1;background:#137c58;color:#fff;border-radius:20px;min-width:27px;height:27px;display:grid;place-items:center;font-size:12px;box-shadow:0 2px 4px #0005}
.empty-discard{height:54px;width:40px;border:1px dashed #a1c5a45c;border-radius:4px;display:grid;place-items:center;color:#7cae8b}
.prepared-board{display:flex;flex-direction:column;min-width:0;border:1px solid #bad9b273;border-radius:5px;background:#00412977;background-image:linear-gradient(90deg,transparent calc(33.33% - 1px),#d0eed936 calc(33.33% - 1px),#d0eed936 33.33%,transparent 33.33%,transparent calc(66.66% - 1px),#d0eed936 calc(66.66% - 1px),#d0eed936 66.66%,transparent 66.66%);overflow:hidden}
.prepared-title{background:#0a422de6;padding:8px 4px;text-align:center;font-size:7px;letter-spacing:.7px;color:#c8dfc7}
.prepared-groups{flex:1;padding:9px 5px;display:flex;flex-direction:column;gap:7px;overflow:auto;max-height:170px}
.prepared-score{text-align:center;font-size:11px;font-weight:800;color:#d9edaa;background:#05432b;padding:5px}
.okey-commit{font-size:9px;font-weight:800;color:#203e26;background:linear-gradient(#c4e4aa,#95bd77);border-top:1px solid #d0edb7;padding:8px 3px;min-height:31px}
.okey-commit:disabled{color:#b2c0ae;background:#214a33;opacity:1}
.rack-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 2px 9px}
.rack-actions>div{display:flex;gap:5px}
.rack-action{font-size:10px;font-weight:800;color:#eff6e8;background:linear-gradient(#3d4c39,#18271d);border:1px solid #82947468;border-radius:4px;box-shadow:0 2px 2px #0003;padding:7px 10px;white-space:nowrap}
.rack-action:hover{background:linear-gradient(#596e4c,#30402a)}
.rack-action:disabled{opacity:.45}
.okey-turn-status{font-size:9px;font-weight:800;color:#e1edb5;letter-spacing:.7px;text-align:center}
.rack-scroller{overflow-x:auto;padding-top:4px;scrollbar-color:#9d704a #3c2b1e;scrollbar-width:thin}
.classic-rack{position:relative;min-width:600px;border:13px solid #5a3522;border-top-width:10px;border-bottom-width:10px;border-radius:9px;padding:5px 10px 8px;background:repeating-linear-gradient(2deg,#b57a3e33 0,#b57a3e33 1px,transparent 1px,transparent 4px),repeating-linear-gradient(176deg,#e5af6340 0,#e5af6340 2px,transparent 2px,transparent 17px),linear-gradient(95deg,#9f652e,#d29a51 28%,#c18a43 62%,#9b5f2c);box-shadow:inset 0 3px 5px #351c1399,0 5px 12px #001c15aa}
.classic-rack::before,.classic-rack::after{content:"";position:absolute;top:-7px;bottom:-7px;width:9px;border-radius:4px;background:radial-gradient(circle at 50% 10px,#bb9f69 0 2px,#35261e 3px,transparent 4px),radial-gradient(circle at 50% calc(100% - 10px),#bb9f69 0 2px,#35261e 3px,transparent 4px),linear-gradient(90deg,#2b2922,#5b5747,#2c2922);box-shadow:1px 0 3px #0007}
.classic-rack::before{left:-10px}.classic-rack::after{right:-10px}
.rack-row{display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:4px;padding:0;position:relative}
.rack-row:first-child{border-bottom:5px solid #8b5429;box-shadow:0 3px 0 #e1ac6b,0 6px 6px #572f1d77;margin-bottom:8px}
.rack-slot{height:66px;display:flex;align-items:end;justify-content:center;min-width:0;border-radius:5px;position:relative}
.rack-slot.drop-target{background:#c7e8ac80;outline:2px dashed #e7f7c9}
.okey-dialog .okey-tile{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:0;background:linear-gradient(110deg,#fffef5,#fdf9e8);color:#242630;border:1px solid #fffffc;border-bottom:3px solid #c8bea5;border-radius:4px;font-family:Impact,'Arial Narrow','Segoe UI',sans-serif;font-weight:850;text-shadow:0 1px 0 #fff;box-shadow:1px 2px 3px #1b1b1677;padding:2px 1px;line-height:1;transition:transform .12s,box-shadow .12s}
.okey-dialog .okey-tile.red{color:#d52b33}.okey-dialog .okey-tile.blue{color:#243dbd}.okey-dialog .okey-tile.yellow{color:#e9a019}.okey-dialog .okey-tile.black{color:#333e45}.okey-dialog .okey-tile.fake{color:#478b37}
.tile-face-number{display:block;line-height:1}
.tile-face-pip{display:block;font-family:'Segoe UI',sans-serif;font-size:.28em;margin-top:5px;border:1px solid #d1cbb52e;border-radius:50%;padding:2px;line-height:1}
.okey-dialog .rack-slot .okey-tile{width:100%;max-width:53px;height:65px;font-size:36px;cursor:grab;touch-action:none;user-select:none}
.okey-dialog .rack-slot .okey-tile:active{cursor:grabbing}
.okey-dialog .rack-slot .okey-tile.selected{transform:translateY(-7px);outline:2px solid #ba92ff;box-shadow:0 0 11px #9a7ad066}
.okey-dialog .okey-tile.is-joker{outline:2px solid #b794ed;box-shadow:0 0 10px #b294e755}
.okey-dialog .rack-slot .okey-tile:hover{transform:translateY(-4px)}
.okey-dialog .rack-drag-ghost{position:fixed!important;width:46px!important;height:65px!important;font-size:35px!important;pointer-events:none;z-index:1000;transform:rotate(-5deg)!important;box-shadow:0 12px 20px #0008!important;opacity:.95}
.okey-footer{display:flex;align-items:center;gap:8px;min-height:42px;padding:7px 0 0}
.okey-footer>span{font-size:9px;color:#b5d2bd;margin-right:auto}
.okey-discard{font-size:11px;font-weight:800;padding:8px 17px;color:white;background:linear-gradient(#cf4e55,#a12f3b);border:1px solid #ef858777;border-radius:5px;box-shadow:0 2px 4px #00160f55}
.okey-discard:hover{background:#d4515a}
.classic-okey-help{font-size:8px;color:#9fbdab;line-height:1.5;text-align:center;padding:3px 5px}
.okey-dialog:fullscreen{max-width:none;max-height:none;width:100vw;height:100dvh;border-radius:0;border:0}
.okey-dialog:fullscreen .game-layout{height:calc(100dvh - 48px);max-height:calc(100dvh - 48px)}
.okey-dialog:fullscreen .okey-arena{grid-template-rows:70px minmax(250px,1fr) 65px}
@media(max-width:1050px){
  .okey-arena{grid-template-columns:65px minmax(0,1fr) 65px;gap:5px 8px}
  .player-west,.player-east{width:65px;padding:10px 3px}.player-west strong,.player-east strong{max-width:59px;font-size:9px}
  .okey-board-center{grid-template-columns:minmax(150px,1fr) 50px minmax(95px,.42fr);gap:7px}
  .rack-action{font-size:9px;padding:7px}.okey-turn-status{font-size:8px}
}
@media(max-width:760px){
  .okey-dialog .game-dialog-top{padding:9px 12px}.okey-dialog .game-dialog-top>div{gap:8px}.okey-dialog .game-dialog-top .eyebrow{font-size:6px}.okey-dialog .game-dialog-top h2{font-size:18px}.okey-dialog .game-layout{display:block;height:auto;max-height:calc(96dvh - 48px);overflow:auto}
  .okey-dialog.show-lobby .game-side{display:block;max-height:none;border-top:1px solid #9bc9a340;padding:18px}
  .okey-surface{padding:0 9px 6px}.okey-arena{grid-template-columns:44px minmax(0,1fr) 44px;grid-template-rows:54px minmax(220px,auto) 50px;gap:4px}
  .table-player{padding:5px 8px;gap:6px}.table-player .table-avatar{height:35px;width:35px;font-size:12px;border-width:2px}.table-player-info strong{font-size:10px;max-width:90px}.table-player-info small{font-size:8px}
  .player-west,.player-east{width:44px;min-height:99px;padding:9px 2px}.player-west strong,.player-east strong{max-width:39px;font-size:7px}.player-west small,.player-east small{font-size:7px}.empty-seat small{font-size:7px}.empty-seat-icon{font-size:22px}
  .player-north,.player-south{min-width:140px}
  .okey-board-center{grid-template-columns:minmax(95px,1fr) 43px minmax(74px,.5fr);gap:4px}.opened-quadrant{padding:5px 2px 20px}.quadrant-owner{font-size:6px;padding:2px 4px}
  .opened-groups{max-height:88px}.okey-dialog .table-meld .okey-tile{width:16px;height:25px;font-size:12px}.meld-append{min-width:14px;font-size:11px;height:21px}.prepared-title{font-size:6px;letter-spacing:0;padding:7px 1px}.prepared-groups{padding:5px 2px}.prepared-score{font-size:10px}.okey-commit{font-size:7px}
  .okey-dialog .depot-item .okey-tile{width:32px;height:46px;font-size:24px}.deck-stack{width:32px;height:49px}.deck-count{font-size:10px;min-width:23px;height:23px;right:-7px}.deck-pattern{font-size:16px;padding:6px}.depot-item small,.depot-label{font-size:6px}
  .rack-actions{flex-wrap:wrap;justify-content:space-between;gap:5px;padding-top:6px}.okey-turn-status{order:-1;flex-basis:100%;font-size:9px}.rack-action{font-size:9px;padding:7px 8px}.rack-actions>div{gap:4px}.classic-rack{min-width:610px}
  .okey-footer{flex-wrap:wrap}.okey-footer>span{flex-basis:100%;text-align:center;margin:0}.okey-discard{margin-left:auto}.classic-okey-help{font-size:7px}
}
@media(max-height:840px) and (min-width:761px){
  .okey-dialog .game-dialog-top{padding:9px 18px}.okey-dialog .game-dialog-top p{display:none}
  .okey-arena{grid-template-rows:38px minmax(140px,auto) 38px}.opened-quadrant{min-height:66px}.opened-groups{max-height:47px}
  .table-player .table-avatar{width:36px;height:36px;font-size:13px}.table-player{padding:4px 10px}
  .okey-dialog .depot-item .okey-tile{width:33px;height:45px;font-size:24px}.deck-stack{width:33px;height:47px}.depot-item small,.depot-label{font-size:6px}
  .rack-slot{height:55px}.okey-dialog .rack-slot .okey-tile{height:54px;font-size:30px}.classic-rack{padding-top:2px;padding-bottom:4px}.rack-row{padding:3px 0}.rack-row:first-child{margin-bottom:5px}
  .okey-footer{min-height:36px;padding-top:5px}.classic-okey-help{font-size:7px;padding-top:1px}.rack-actions{padding-bottom:5px}
}
