.game-head{max-width:900px}.game-head h1{font-size:clamp(2.8rem,7vw,5.3rem)}.game-head em{font-style:normal;color:#d6b475}.game-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:28px 0}.game-pick{background:#14232be8;border:1px solid #6d6552;border-radius:10px;color:#eee9df;padding:22px 12px;text-align:left;cursor:pointer;min-height:130px;font:inherit}.game-pick strong{display:block;font-size:1.15rem;margin:12px 0}.game-pick span{color:#bdb7a8;font-size:.85rem}.game-pick[aria-pressed=true]{border:2px solid #efc477;background:#24323a}.game-symbol{font-size:2rem;color:#efc477}.game-setup{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:25px 0}.game-panel{border:1px solid #6d6552;background:#101d24ed;border-radius:12px;padding:24px;min-width:0}.game-panel h2{font-size:1.5rem;margin-top:0}.game-panel label{display:block;font-weight:700;margin-bottom:10px}.game-panel select,.game-panel input{width:100%;max-width:100%;min-height:48px;padding:12px;background:#09141b;color:#eee9df;border:1px solid #6d6552;border-radius:6px;font:inherit;font-size:16px}.game-panel button{font:inherit;cursor:pointer}.game-panel .actions{margin-top:18px}.game-room-header{display:flex;align-items:center;flex-wrap:wrap;gap:16px;justify-content:space-between}.game-code{font-size:1.65rem;letter-spacing:.12em;font-weight:800;color:#efc477}.game-players{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:20px 0}.game-seat{padding:14px;border:1px solid #6d6552;border-radius:7px;font-size:.9rem}.game-seat.you{border-color:#efc477}.game-seat.active{background:#cba97925;border-top:4px solid #efc477}.game-seat span{display:block;color:#bdb7a8;font-size:.85rem;margin-top:6px}.game-board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));max-width:560px;aspect-ratio:1;margin:20px auto;background:#0c141a;border:4px solid #75664b;touch-action:manipulation}.game-square{aspect-ratio:1;border:0;padding:0;display:grid;place-items:center;position:relative;font-size:clamp(1.4rem,6vw,3rem);font-family:Georgia,'Segoe UI Symbol',serif;cursor:pointer;min-height:0!important;line-height:1}.game-square.light{background:#dbceb7}.game-square.dark{background:#52646b}.game-square.white-piece{color:#fff;text-shadow:0 1px 2px #000,1px 0 2px #000,-1px 0 2px #000}.game-square.black-piece{color:#10151b;text-shadow:0 1px 1px #fff}.game-square.selected{box-shadow:inset 0 0 0 4px #ffcf55}.game-square.target:after{content:'';position:absolute;width:24%;height:24%;border-radius:50%;background:#f2bd35c9;border:2px solid #382a05;pointer-events:none}.game-square .coordinate{position:absolute;left:3px;bottom:2px;font:10px system-ui;color:#18212a;opacity:.8}.checker-piece{display:grid;place-items:center;width:76%;height:76%;border-radius:50%;border:3px double #e6bc6a;background:#121d29;box-shadow:0 3px 0 #0005;color:#efc477;font:bold 1.4rem system-ui}.checker-piece.red{background:#a14634;color:#fff}.four-board{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;max-width:560px;margin:20px auto;padding:12px;background:#1e4265;border-radius:12px;border:1px solid #718ca2}.four-slot{aspect-ratio:1;border-radius:50%;background:#0a1823;border:2px solid #698298}.four-slot.red{background:#d45143}.four-slot.gold{background:#e5ba61}.four-drop{min-width:0;min-height:44px;padding:4px;background:#e5ba61;border:0;border-radius:4px;color:#13212a;font-weight:800}.game-hand{display:flex;flex-wrap:wrap;gap:9px;margin:20px 0}.game-card{width:76px;min-height:108px!important;border:2px solid #d5bd8c;border-radius:8px;background:#eee7d5;color:#17212b;font:700 1.1rem system-ui!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:7px;cursor:pointer}.game-card.red-suit{color:#a32d30}.game-card:disabled{opacity:.55;cursor:default}.game-card.color0{background:#9d2d2f;color:#fff}.game-card.color1{background:#1d5e94;color:#fff}.game-card.color2{background:#257148;color:#fff}.game-card.color3{background:#e1b649;color:#17212b}.game-card.color4{background:#282b36;color:#fff}.game-card small{font-size:.7rem}.game-card.target{box-shadow:0 0 0 3px #efc477}.game-table{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:14px;min-height:150px;border:1px solid #45625d;border-radius:18px;padding:20px;background:#173b32}.game-trick-card{text-align:center}.game-trick-card span{display:block;font-size:.8rem;margin-bottom:6px}.game-trick-card .game-card{cursor:default}.game-status{color:#f0d198!important;font-weight:700;min-height:2em}.game-room-tools{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}.game-room-tools button{font:inherit;cursor:pointer}.game-rules{margin:24px 0;line-height:1.7;max-width:900px}.game-rules summary{cursor:pointer;font-weight:800;padding:14px 0}.game-rules p{color:#c7c0b3}.game-room-note{font-size:.9rem!important;color:#bbb5a9!important}.game-message{padding:20px;background:#efc47715;border-left:3px solid #efc477}.game-play h3{margin-top:26px}.game-bid{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.game-bid label{flex:1}.game-bid select{min-width:110px}.game-square:focus-visible,.game-card:focus-visible,.game-pick:focus-visible,.four-drop:focus-visible{outline:3px solid #fff;outline-offset:2px;z-index:2}.game-panel [hidden],.game-play [hidden]{display:none!important}.game-turn-note{font-size:1.1rem;color:#efc477;margin:16px 0}@media(max-width:900px){.game-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.game-setup{grid-template-columns:1fr}.game-players{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.game-panel{padding:16px}.game-square{font-size:8vw}.game-card{width:65px;min-height:94px!important;font-size:1rem!important}.game-hand{gap:7px}.game-room-tools .btn{flex:1}.game-code{font-size:1.4rem}.four-board{gap:4px;padding:7px}.checker-piece{font-size:1rem}}@media(prefers-reduced-motion:reduce){.game-play *{transition:none;animation:none}}
#game-setup[hidden],#game-picker[hidden],#game-room[hidden]{display:none!important}

.game-celebration{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:1000}.game-confetti{position:absolute;top:-20px;width:9px;height:15px;opacity:0;animation:game-winner-fall 3s ease-in forwards}@keyframes game-winner-fall{0%{opacity:1;transform:translate3d(0,-20px,0) rotate(0)}85%{opacity:1}100%{opacity:0;transform:translate3d(var(--drift),110vh,0) rotate(var(--spin))}}#game-sound{margin-top:16px}@media(prefers-reduced-motion:reduce){.game-confetti{display:none;animation:none}}
/* Original BANKKNOT Spades table: felt, rail, four seats and classic card faces. */
.game-solo-panel{border-color:#cfad6a;background:linear-gradient(145deg,#203930,#101d24)}.game-solo-panel .btn{margin-top:12px}.game-setup{grid-template-columns:repeat(3,minmax(0,1fr))}.game-solo-panel .kicker{font-size:.7rem}.spades-scoreboard{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:900px;margin:22px auto 14px}.spades-team{display:grid;grid-template-columns:1fr auto;gap:5px 15px;padding:14px 18px;background:#0a1717;border:1px solid #8a7755;border-radius:8px}.spades-team>span{font-size:.75rem;letter-spacing:.12em;color:#e2c185}.spades-team>strong{grid-column:2;grid-row:1/3;font:700 2rem Georgia,serif;color:#f8f0d8}.spades-team>small{color:#c2c7b9;font-size:.85rem}.spades-hand-label{grid-column:1/-1;text-align:center;font-size:.7rem;letter-spacing:.18em;color:#d2bc8e}.spades-felt{isolation:isolate;position:relative;max-width:900px;min-height:480px;margin:12px auto 20px;border:12px solid #493323;border-radius:36%;background:radial-gradient(ellipse at 50% 45%,#287452 0%,#155036 60%,#0a3226 100%);box-shadow:inset 0 0 0 2px #b39457,inset 0 0 0 8px #152f23,inset 0 0 70px #051d1b99,0 10px 30px #0008}.spades-felt:before{content:'';position:absolute;inset:17px;border:1px dashed #d0c08e66;border-radius:38%;pointer-events:none;z-index:-1}.spades-table-mark{position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);display:grid;place-items:center;opacity:.16;color:#fff2c9;letter-spacing:.2em;text-align:center}.spades-table-mark>strong{font:90px Georgia}.spades-table-mark>span{font-size:1rem}.spades-table-mark>small{font-size:.55rem;white-space:nowrap;margin-top:8px}.spades-seat{position:absolute;z-index:2;text-align:center;border:1px solid #d2bd8055;background:#10271fe8;padding:8px 12px;border-radius:10px;min-width:110px;max-width:160px;color:#f1eddb;box-shadow:0 3px 8px #0004}.spades-seat.active{outline:2px solid #f5ce71;outline-offset:3px;background:#284533}.spades-seat.north{left:50%;top:12px;transform:translateX(-50%)}.spades-seat.south{left:50%;bottom:13px;transform:translateX(-50%)}.spades-seat.west{left:10px;top:50%;transform:translateY(-50%)}.spades-seat.east{right:10px;top:50%;transform:translateY(-50%)}.spades-seat-name{display:grid;gap:2px}.spades-seat-role{font-size:.57rem;letter-spacing:.14em;color:#e3c885}.spades-seat-name>strong{font-size:.83rem}.spades-seat>small{display:block;font-size:.7rem;color:#e0ddc9;line-height:1.6}.spades-backs{display:flex;justify-content:center;padding:5px 10px 3px 0}.spades-card-back{display:grid;place-items:center;width:24px;height:33px;margin-right:-10px;border:2px solid #f7edcf;border-radius:3px;background:repeating-linear-gradient(45deg,#1f3b4e 0 3px,#355b70 3px 5px);color:#e5c887;font-size:15px;box-shadow:1px 2px 3px #0008}.spades-trick{position:absolute;left:50%;top:53%;width:216px;height:218px;transform:translate(-50%,-50%)}.spades-played{position:absolute}.spades-played.north{top:0;left:75px;transform:rotate(4deg)}.spades-played.south{bottom:0;left:75px;transform:rotate(-4deg)}.spades-played.west{left:0;top:64px;transform:rotate(-10deg)}.spades-played.east{right:0;top:64px;transform:rotate(10deg)}.spades-trick-label{position:absolute;bottom:70px;left:50%;transform:translateX(-50%);margin:0!important;white-space:nowrap;font-size:.58rem!important;letter-spacing:.13em;color:#e6d9a9!important}.playing-card{position:relative;display:block;width:82px;height:120px;min-height:120px!important;padding:0!important;border:1px solid #b7b0a0;border-radius:7px;background:linear-gradient(115deg,#fffefa,#f1ebdc);box-shadow:0 3px 6px #0006;flex-shrink:0;overflow:hidden;font-family:Georgia,'Times New Roman',serif!important;color:#16202b}.playing-card.red-suit{color:#b52530}.playing-card .card-index{position:absolute;display:grid;justify-items:center;gap:0;line-height:1;font-size:17px;z-index:1}.playing-card .card-index b{font:700 17px Georgia,serif}.playing-card .card-index span{font-size:17px}.playing-card .card-index.top{left:5px;top:5px}.playing-card .card-index.bottom{right:5px;bottom:5px;transform:rotate(180deg)}.playing-card .card-face{position:absolute;inset:24px 20px;display:grid;grid-template-columns:1fr 1fr;align-items:center;justify-items:center;font-size:19px;line-height:.8}.playing-card .card-face[data-count="3"],.playing-card .card-face[data-count="2"]{grid-template-columns:1fr}.playing-card .card-face .ace-pip{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:45px}.playing-card .card-face.court{inset:27px 19px;display:flex;flex-direction:column;justify-content:center;border:1px solid currentColor;background:#dfc88744;gap:7px;font-size:22px}.playing-card .card-face.court b{font-size:24px}.spades-hand{justify-content:center;gap:0;row-gap:12px;padding:12px 18px 22px;max-width:950px;margin:0 auto}.spades-hand .playing-card{margin-right:-19px;transition:transform .16s,box-shadow .16s;transform:translateY(0)}.spades-hand .playing-card:last-child{margin-right:0}.spades-hand .playing-card:disabled{opacity:.78;filter:saturate(.65)}.spades-hand .playing-card.playable{border:2px solid #e4b955;box-shadow:0 0 0 1px #e4b955,0 5px 10px #0007;cursor:pointer;opacity:1;filter:none}.spades-hand .playing-card.playable:hover,.spades-hand .playing-card.playable:focus-visible{transform:translateY(-12px);z-index:4}.spades-trick .playing-card{width:65px;height:92px;min-height:92px!important;cursor:default}.spades-trick .card-index,.spades-trick .card-index b,.spades-trick .card-index span{font-size:13px}.spades-trick .card-face{inset:20px 15px;font-size:14px}.spades-trick .card-face.court{inset:21px 16px;font-size:17px}.spades-trick .card-face.court b{font-size:17px}.spades-trick .card-face .ace-pip{font-size:33px}.spades-hand-note{text-align:center;color:#f2d99d!important;font-size:.95rem!important;margin-bottom:8px}.spades-bid{max-width:500px;margin:0 auto 18px}.spades-bid button{min-height:48px}.spades-bid label{color:#e7d7b4}.game-play .spades-felt p{margin-top:0}
@media(max-width:1000px){.game-setup{grid-template-columns:1fr 1fr}.game-solo-panel{grid-column:1/-1}.spades-seat{min-width:92px;padding:7px}.spades-trick{width:190px;height:210px}.spades-played.north,.spades-played.south{left:63px}}
@media(max-width:600px){.game-setup{grid-template-columns:1fr}.spades-scoreboard{gap:7px}.spades-team{padding:10px;gap:4px 7px}.spades-team>span{font-size:.62rem;letter-spacing:.06em}.spades-team>small{font-size:.68rem}.spades-team>strong{font-size:1.7rem}.spades-felt{min-height:422px;border-width:7px;border-radius:60px;margin-left:-8px;margin-right:-8px}.spades-felt:before{inset:9px;border-radius:49px}.spades-seat{min-width:65px;max-width:88px;padding:5px 4px}.spades-seat-name>strong{font-size:.68rem;overflow-wrap:anywhere}.spades-seat-role{font-size:.46rem;letter-spacing:.06em}.spades-seat>small{font-size:.6rem}.spades-seat.west{left:3px;top:47%}.spades-seat.east{right:3px;top:47%}.spades-seat.north{top:10px;min-width:100px}.spades-seat.south{bottom:10px;min-width:100px}.spades-card-back{width:18px;height:26px;font-size:12px;margin-right:-9px}.spades-trick{width:146px;height:180px;top:54%}.spades-trick .playing-card{width:48px;height:71px;min-height:71px!important;border-radius:4px}.spades-played.north,.spades-played.south{left:49px}.spades-played.west,.spades-played.east{top:54px}.spades-trick .card-index,.spades-trick .card-index b,.spades-trick .card-index span{font-size:11px}.spades-trick .card-index.top{top:3px;left:3px}.spades-trick .card-index.bottom{bottom:3px;right:3px}.spades-trick .card-face{inset:17px 12px;font-size:10px}.spades-trick .card-face.court{inset:17px 12px;gap:3px;font-size:13px}.spades-trick .card-face.court b{font-size:13px}.spades-trick .card-face .ace-pip{font-size:26px}.spades-trick-label{bottom:72px;font-size:.48rem!important}.spades-table-mark>span{font-size:.66rem}.spades-table-mark>strong{font-size:65px}.spades-table-mark>small{font-size:.4rem}.spades-hand{padding:12px 6px 20px}.spades-hand .playing-card{width:63px;height:98px;min-height:98px!important;margin-right:-13px}.spades-hand .card-index,.spades-hand .card-index b,.spades-hand .card-index span{font-size:14px}.spades-hand .card-face{inset:22px 16px;font-size:15px}.spades-hand .card-face.court{inset:23px 16px;gap:5px}.spades-hand .card-face.court b{font-size:20px}.spades-hand .card-face .ace-pip{font-size:37px}}
@media(prefers-reduced-motion:reduce){.spades-hand .playing-card{transition:none}.spades-hand .playing-card.playable:hover,.spades-hand .playing-card.playable:focus-visible{transform:none}}
/* Readable cards: no overlap or fading; larger faces and touch targets. */
.game-hand,.spades-hand{display:grid;grid-template-columns:repeat(auto-fit,minmax(88px,104px));gap:14px;justify-content:center;max-width:950px;margin:18px auto;padding:12px 4px 20px}.game-hand .game-card,.spades-hand .playing-card{width:100%;min-width:0;height:150px;min-height:150px!important;margin:0!important;font-size:1.4rem!important;opacity:1;filter:none}.game-hand .game-card:disabled,.spades-hand .playing-card:disabled{opacity:1;filter:none;cursor:default}.playing-card{background:#fffefa;color:#101820}.playing-card.red-suit{color:#ac1627}.playing-card .card-index,.playing-card .card-index b,.playing-card .card-index span,.spades-hand .card-index,.spades-hand .card-index b,.spades-hand .card-index span{font-size:23px;line-height:1}.playing-card .card-index.top{left:7px;top:7px}.playing-card .card-index.bottom{right:7px;bottom:7px}.spades-hand .card-face{inset:31px 25px;font-size:20px;line-height:1}.spades-hand .card-face.court{inset:33px 24px;font-size:27px;gap:10px}.spades-hand .card-face.court b{font-size:30px}.spades-hand .card-face .ace-pip{font-size:54px}.game-hand .game-card small{font-size:.85rem}.spades-hand .playing-card.playable{border:3px solid #f0bd39;box-shadow:0 0 0 2px #151f28,0 5px 10px #0007}.spades-hand .playing-card.playable:hover,.spades-hand .playing-card.playable:focus-visible{transform:translateY(-4px)}.game-hand .game-card:focus-visible{outline:4px solid #42dcff;outline-offset:4px;z-index:4}.spades-felt{min-height:560px}.spades-trick{width:266px;height:274px}.spades-played.north,.spades-played.south{left:91px}.spades-played.west,.spades-played.east{top:80px}.spades-trick .playing-card{width:84px;height:120px;min-height:120px!important;opacity:1;background:#fffefa}.spades-trick .card-index,.spades-trick .card-index b,.spades-trick .card-index span{font-size:19px}.spades-trick .card-face{inset:27px 20px;font-size:16px;line-height:1}.spades-trick .card-face.court{inset:29px 21px;font-size:23px}.spades-trick .card-face.court b{font-size:25px}.spades-trick .card-face .ace-pip{font-size:44px}.spades-trick-label{bottom:77px;font-size:.72rem!important;letter-spacing:.08em}.spades-seat-name>strong{font-size:.94rem}.spades-seat-role{font-size:.65rem}.spades-seat>small{font-size:.8rem}
.four-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:20px auto 8px}.four-team{display:block;padding:9px 14px;border:2px solid #8798ad;border-radius:24px;font-weight:700;color:#fff;font-size:1rem}.four-team.dogs{background:#7d282b;border-color:#ff9d96}.four-team.dinosaurs{background:#f3cc6c;border-color:#ffe8a7;color:#1a2630}.four-slot{display:grid;place-items:center;font-family:'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif;font-size:clamp(22px,6vw,44px);line-height:1;box-shadow:inset 0 3px 5px #0005}.four-slot.red{background:#a92e35;border:3px solid #ffb6ad}.four-slot.gold{background:#f2c95d;border:3px solid #fff1c9}.four-board{gap:7px;padding:12px}
@media(max-width:760px){.spades-seat.west,.spades-seat.east{top:143px;transform:none}.spades-seat.north{top:10px}.spades-felt{min-height:560px}.spades-trick{width:236px;height:260px;top:59%}.spades-played.north,.spades-played.south{left:78px}.spades-trick .playing-card{width:80px;height:115px;min-height:115px!important}.spades-played.west,.spades-played.east{top:74px}.spades-trick-label{bottom:71px;font-size:.63rem!important}.spades-seat.south{bottom:10px}}
@media(max-width:600px){.game-hand,.spades-hand{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:12px 0 18px}.game-hand .game-card,.spades-hand .playing-card{height:138px;min-height:138px!important;font-size:1.25rem!important}.spades-hand .card-index,.spades-hand .card-index b,.spades-hand .card-index span{font-size:21px}.spades-hand .card-face{inset:29px 21px;font-size:17px}.spades-hand .card-face.court{inset:30px 21px;font-size:24px}.spades-hand .card-face.court b{font-size:27px}.spades-hand .card-face .ace-pip{font-size:46px}.spades-felt{min-height:530px}.spades-seat.west,.spades-seat.east{top:125px;min-width:70px;max-width:86px}.spades-seat-name>strong{font-size:.76rem}.spades-seat-role{font-size:.55rem}.spades-seat>small{font-size:.69rem}.spades-seat.north,.spades-seat.south{min-width:120px}.spades-trick{width:196px;height:234px;top:60%}.spades-played.north,.spades-played.south{left:64px}.spades-played.west,.spades-played.east{top:65px}.spades-trick .playing-card{width:68px;height:100px;min-height:100px!important}.spades-trick .card-index,.spades-trick .card-index b,.spades-trick .card-index span{font-size:16px}.spades-trick .card-index.top{left:4px;top:4px}.spades-trick .card-index.bottom{right:4px;bottom:4px}.spades-trick .card-face{inset:23px 17px;font-size:13px}.spades-trick .card-face.court{inset:24px 17px;font-size:18px;gap:4px}.spades-trick .card-face.court b{font-size:22px}.spades-trick .card-face .ace-pip{font-size:36px}.spades-trick-label{bottom:66px;font-size:.59rem!important}.four-board{gap:4px;padding:7px}.four-slot{font-size:clamp(19px,6vw,32px)}.four-team{font-size:.9rem;padding:8px 12px}}
@media(prefers-reduced-motion:reduce){.spades-hand .playing-card.playable:hover,.spades-hand .playing-card.playable:focus-visible{transform:none}}

/* Slightly smaller cards, retaining the readable, non-overlapping layout. */
.game-hand,.spades-hand{grid-template-columns:repeat(auto-fit,minmax(78px,94px));gap:12px}.game-hand .game-card,.spades-hand .playing-card{height:132px;min-height:132px!important;font-size:1.25rem!important}.spades-hand .card-index,.spades-hand .card-index b,.spades-hand .card-index span{font-size:21px}.spades-hand .card-face{inset:28px 22px;font-size:18px}.spades-hand .card-face.court{inset:29px 22px;font-size:24px;gap:7px}.spades-hand .card-face.court b{font-size:26px}.spades-hand .card-face .ace-pip{font-size:48px}.spades-trick{width:242px;height:250px}.spades-played.north,.spades-played.south{left:83px}.spades-played.west,.spades-played.east{top:73px}.spades-trick .playing-card{width:76px;height:108px;min-height:108px!important}.spades-trick .card-index,.spades-trick .card-index b,.spades-trick .card-index span{font-size:17px}.spades-trick .card-face{inset:24px 18px;font-size:14px}.spades-trick .card-face.court{inset:26px 19px;font-size:20px}.spades-trick .card-face.court b{font-size:22px}.spades-trick .card-face .ace-pip{font-size:39px}
@media(max-width:760px){.spades-trick{width:216px;height:236px}.spades-played.north,.spades-played.south{left:72px}.spades-played.west,.spades-played.east{top:68px}.spades-trick .playing-card{width:72px;height:104px;min-height:104px!important}}
@media(max-width:600px){.game-hand,.spades-hand{grid-template-columns:repeat(3,minmax(0,88px));gap:10px}.game-hand .game-card,.spades-hand .playing-card{height:122px;min-height:122px!important;font-size:1.15rem!important}.spades-hand .card-index,.spades-hand .card-index b,.spades-hand .card-index span{font-size:19px}.spades-hand .card-face{inset:26px 18px;font-size:16px}.spades-hand .card-face.court{inset:27px 18px;font-size:21px}.spades-hand .card-face.court b{font-size:24px}.spades-hand .card-face .ace-pip{font-size:40px}.spades-trick{width:178px;height:214px}.spades-played.north,.spades-played.south{left:58px}.spades-played.west,.spades-played.east{top:60px}.spades-trick .playing-card{width:62px;height:90px;min-height:90px!important}.spades-trick .card-index,.spades-trick .card-index b,.spades-trick .card-index span{font-size:15px}.spades-trick .card-face{inset:21px 15px;font-size:12px}.spades-trick .card-face.court{inset:22px 15px;font-size:16px}.spades-trick .card-face.court b{font-size:19px}.spades-trick .card-face .ace-pip{font-size:32px}}
/* Compact full hand; played cards remain larger on the table. */
.game-audio-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:12px;background:#172b32;border:1px solid #77816b;border-radius:8px;margin:14px 0}.game-audio-tools #game-sound{margin:0}.game-audio-tools .game-sound-status{flex-basis:100%;font-size:.85rem!important;margin:0!important;color:#f0e2ba!important;line-height:1.5}.game-audio-tools .btn{min-height:44px}.game-hand,.spades-hand{grid-template-columns:repeat(13,minmax(0,52px));gap:6px;padding:8px 0 14px;margin:8px auto;justify-content:center}.game-hand .game-card,.spades-hand .playing-card{height:78px;min-height:78px!important;width:100%;margin:0!important;font-size:.82rem!important;border-width:1px;border-radius:4px}.game-hand .game-card small{font-size:.57rem}.spades-hand .playing-card.playable{border-width:2px;box-shadow:0 0 0 1px #f0bd39,0 2px 4px #0007}.spades-hand .card-index,.spades-hand .card-index b,.spades-hand .card-index span{font-size:14px}.spades-hand .card-index.top{left:3px;top:3px}.spades-hand .card-index.bottom{right:3px;bottom:3px}.spades-hand .card-face{display:none}.spades-hand .playing-card:after{content:attr(data-suit);position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font:24px Georgia,serif;pointer-events:none}.spades-hand-note{font-size:.85rem!important;margin:6px 0!important}
@media(max-width:760px){.game-hand,.spades-hand{grid-template-columns:repeat(7,minmax(0,48px));gap:5px}.game-hand .game-card,.spades-hand .playing-card{height:74px;min-height:74px!important}}
@media(max-width:600px){.game-hand,.spades-hand{grid-template-columns:repeat(7,minmax(0,48px));gap:4px}.game-hand .game-card,.spades-hand .playing-card{height:70px;min-height:70px!important;font-size:.72rem!important}.spades-hand .card-index,.spades-hand .card-index b,.spades-hand .card-index span{font-size:13px}.spades-hand .card-index.bottom,.spades-hand .card-index.bottom b,.spades-hand .card-index.bottom span{font-size:11px}.spades-hand .playing-card:after{font-size:21px}.game-hand .game-card small{font-size:.5rem}.spades-felt{min-height:430px}.spades-seat.west,.spades-seat.east{top:100px}.spades-seat.south{padding:4px 7px;bottom:7px;min-width:120px}.spades-seat.south .spades-seat-name{display:flex;align-items:center;justify-content:center;gap:6px}.spades-seat.south>small{line-height:1.2}.spades-trick{top:60%}.game-audio-tools{gap:7px;padding:10px}.game-audio-tools .btn{font-size:.85rem}}
@media(max-width:360px){.game-hand,.spades-hand{grid-template-columns:repeat(7,minmax(0,44px));gap:3px}}
/* Game Room upgrade: practice coaching, readable cards and visible board state. */
.solo-settings{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.solo-settings label{font-size:.8rem}.solo-settings select{margin-top:7px;font-size:15px;padding:9px}.solo-settings label:last-child{grid-column:1/-1}.game-practice-tools{display:flex;gap:9px;flex-wrap:wrap;padding:15px;border:1px solid #6c8a81;border-radius:9px;background:#142c2d;margin:18px 0}.game-practice-tools .btn{font-size:.85rem;min-height:44px}.game-hint-text{flex-basis:100%;margin:0!important;color:#b2f3e6!important;font-size:.9rem!important;line-height:1.6}.game-hint-text:empty{display:none}.game-board-summary,.game-play-tip{max-width:700px;margin:18px auto;color:#dfcfac!important;font-size:.88rem!important;line-height:1.6}.game-board-summary{text-align:center}.game-play-tip{padding:14px;background:#18303b;border-left:3px solid #6cbcb2}.game-activity{max-width:700px;margin:16px auto;border:1px solid #53665e;border-radius:7px;padding:12px 16px}.game-activity summary{cursor:pointer;font-size:.9rem;font-weight:700;color:#e5c58a}.game-activity ol{margin-bottom:0;padding-left:24px;display:grid;grid-template-columns:1fr 1fr;gap:7px 20px;font-size:.82rem;color:#b9cbc8}.game-square:disabled{opacity:1;cursor:default}.game-square.last-move{background-image:linear-gradient(#fbd66a40,#fbd66a40)}.game-square.movable{box-shadow:inset 0 -3px #58c6b3}.game-square.king-check{background:#bb493e!important;box-shadow:inset 0 0 0 4px #ffca68}.game-square.selected{box-shadow:inset 0 0 0 4px #ffcf55}.game-square.hint-target,.game-card.hint-target,.four-drop.hint-target{outline:3px dashed #57eddb;outline-offset:-5px}.four-slot.winning{outline:4px solid #fdf7d5;outline-offset:2px;box-shadow:0 0 0 5px #1d826b}.four-slot.last-disc:after{content:'•';position:absolute;bottom:0;right:0;font-size:18px;color:#fff;text-shadow:0 1px 2px #000}.four-slot{position:relative}.color-hand{grid-template-columns:repeat(auto-fit,minmax(68px,86px));gap:10px;max-width:900px}.color-hand .game-card{height:112px;min-height:112px!important;font-size:1.15rem!important;border:2px solid #798c8e;border-radius:9px;position:relative;box-shadow:0 4px 0 #0005}.color-hand .game-card small{font-size:.7rem}.color-hand .game-card:disabled{opacity:1;filter:saturate(.65);border-style:dashed}.color-hand .game-card.playable{border:3px solid #ffdc73;box-shadow:0 0 0 1px #ffdc73,0 4px 0 #0007}.color-hand .game-card.playable:after{content:'PLAY';position:absolute;bottom:5px;letter-spacing:.1em;font-size:8px;font-weight:800}.game-sort{display:block;margin:12px auto;min-height:44px}.game-practice-tools[hidden],.solo-settings [hidden]{display:none!important}.game-pick .game-symbol{line-height:1}.game-pick:hover,.game-pick:focus-visible{border-color:#f9d697;background:#283b41}
@media(max-width:600px){.game-practice-tools{gap:7px;padding:10px}.game-practice-tools .btn{flex:1 1 42%;font-size:.74rem;padding:9px}.color-hand{grid-template-columns:repeat(auto-fit,minmax(60px,1fr));gap:8px;max-width:360px}.color-hand .game-card{height:104px;min-height:104px!important;font-size:1rem!important}.color-hand .game-card small{font-size:.65rem}.game-activity ol{grid-template-columns:1fr}.solo-settings{gap:8px}.game-board{margin-left:auto;margin-right:auto;width:100%;border-width:3px}.game-square .coordinate{font-size:8px}.four-slot.winning{outline-width:2px;outline-offset:0}}
.game-board{border-radius:9px;overflow:hidden;box-shadow:0 7px 0 #26313b,0 12px 25px #0007}.chess-board .game-square{font-family:'Segoe UI Symbol','Apple Symbols',Georgia,serif}.checker-piece{border:4px double #e2b66c;box-shadow:inset 0 2px 2px #ffffff35,inset 0 -4px 5px #0007,0 4px 0 #071018,0 5px 7px #0006;background:radial-gradient(circle at 35% 25%,#4e6477,#14232f 70%)}.checker-piece.red{background:radial-gradient(circle at 35% 25%,#e47d55,#a2402d 70%)}.four-board{box-shadow:0 7px 0 #102c40,0 12px 24px #0007;border-top:3px solid #789caf}.game-panel .btn:disabled{cursor:default}.game-board .game-square:disabled{opacity:1}
#game-room,#game-picker{scroll-margin-top:100px}
/* Explicit control colors prevent browser-default white buttons on the dark table. */
.game-panel .btn{background:#1b3541;color:#f0f2e5;border:1px solid #748a88;min-height:44px}.game-panel .btn.primary{background:#e6bc76;color:#172027;border-color:#e6bc76}.game-panel .btn:hover{background:#294b56}.game-panel .btn.primary:hover{background:#f5d59a}.game-panel .btn:disabled{background:#25353e;color:#afc0c0;border-color:#61777a;opacity:1}.game-panel .game-square{font-size:clamp(1.7rem,6vw,3.3rem);font-family:'DejaVu Sans','Segoe UI Symbol','Apple Symbols',serif;line-height:1}.game-panel .game-square>span:not(.checker-piece){font-size:inherit;line-height:1}.game-panel .four-drop{font:700 1rem system-ui;color:#14242b}.game-panel .four-drop:disabled{opacity:1;background:#526d7d;color:#c4d1d6}
@media(max-width:520px){.game-panel .game-square{font-size:clamp(24px,8vw,40px)}}

/* Simple invitations and private browser friends */
.game-friends{margin:18px 0}.game-friends>summary,.game-code-entry>summary{font-size:18px;font-weight:800;cursor:pointer;padding:6px 0}.game-friends p{line-height:1.6}.game-friends form{margin:18px 0;display:grid;grid-template-columns:1fr auto;gap:10px}.game-friends label{grid-column:1/-1}.game-friends input{min-width:0;width:100%}.game-friend-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-bottom:1px solid #86704d55;padding:14px 0}.game-friend-row strong{margin-right:auto}.game-friend-row span{font-size:12px;color:#e2c893}.game-friend-row .btn{padding:10px;font-size:12px}.game-invite-panel{padding:18px;margin:16px 0;border:1px solid #bfa477;border-radius:12px;background:#112c2b}.game-invite-panel h3{margin-top:0}.game-setup{grid-template-columns:1fr 1fr}.game-code-entry{grid-column:1/-1}.game-friends-controls input,#game-friend-code,#game-friend-nickname{padding:12px;background:#182228;color:#fff;border:1px solid #978366;border-radius:6px}#game-solo-start{width:100%;font-size:16px}#game-friend-id{overflow-wrap:anywhere}@media(max-width:650px){.game-setup{grid-template-columns:1fr}.game-friends form{grid-template-columns:1fr}.game-friend-row{align-items:flex-start}.game-friend-row strong{width:100%}.game-friend-row .btn{min-height:44px}}

.game-basketball-banner{padding:16px 22px!important;display:flex;align-items:center;gap:18px;flex-wrap:wrap}.game-basketball-banner .kicker,.game-basketball-banner p:not(.kicker){display:none}.game-basketball-banner h2{font-size:22px;margin:0 auto 0 0}.game-basketball-banner .btn{margin:0}@media(max-width:650px){.game-head h1{font-size:42px;line-height:1.1}.game-basketball-banner h2{font-size:18px}.game-basketball-banner{gap:10px;padding:14px!important}.game-basketball-banner .btn{padding:10px}.game-friends{padding:16px!important}}
