/* Hand & Foot table: fixed felt in a pan/zoom camera, a rack of tappable cards, and server-listed actions only. */
.hf-game{height:min(680px,calc(100dvh - 230px));min-height:360px;display:grid;grid-template-rows:auto minmax(120px,1fr) auto auto auto;gap:7px;color:#f5ead2;min-width:0}
.hf-seats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.hf-seats>div{min-width:0;padding:5px 8px;border:1px solid #697c7355;border-radius:7px;background:#142e30;border-top:3px solid #3f5a74}.hf-seats>div.ally{border-top-color:#d7b55e}
.hf-seats b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}.hf-seats small{display:block;font-size:12px;color:#becdc1;white-space:nowrap}.hf-seats .acting{border-color:#e5c77a;background:#3c4934;box-shadow:inset 0 -2px #d7b55e}
.hf-camera{position:relative;isolation:isolate;overflow:hidden;min-height:0;border:2px solid #9a8253;border-radius:13px;background:radial-gradient(ellipse at 50% 40%,#2b5d4f,#123029 85%);box-shadow:inset 0 0 55px #0005;touch-action:none;cursor:grab;user-select:none}.hf-camera.panning{cursor:grabbing}
.hf-camera-tools{position:absolute;left:7px;right:7px;top:6px;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:5px;pointer-events:none}.hf-camera-tools>span{font-size:13px;font-weight:800;color:#e7dcc0;text-shadow:0 1px 3px #000}
.hf-camera-tools>div{display:flex;gap:4px;pointer-events:auto}.hf-camera-tools button{min-width:30px;min-height:30px;padding:3px 7px;border:1px solid #bba069;border-radius:6px;background:#122e2ecc;color:#f5ead2;font:700 13px system-ui,sans-serif;cursor:pointer}
.hf-world{position:absolute;left:50%;top:50%;width:max-content;transform-origin:50% 50%;will-change:transform}
.hf-felt{width:640px;display:grid;grid-template-columns:118px minmax(0,1fr);grid-template-areas:"center them" "center us";gap:12px;padding:12px}.hf-side.rival{grid-area:them}.hf-side.ally{grid-area:us}
.hf-side{padding:10px 12px;border:1px solid #f5e6b833;border-radius:12px;background:#0d241f66}.hf-side.ally{border-color:#d7b55e88;background:#2b2a1a44}
.hf-side header{display:flex;justify-content:space-between;gap:10px;align-items:baseline;margin-bottom:8px;font-size:18px;font-weight:700}.hf-side header b{font-weight:800;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hf-side header span{flex:none;white-space:nowrap}.hf-side header span{font-size:16px;font-weight:600;color:#e2d7b6}
.hf-piles{display:flex;flex-wrap:wrap;gap:12px;min-height:66px}.hf-empty{margin:0;align-self:center;color:#ddd3b4;font-style:italic;font-weight:600;font-size:17px}
.hf-pile{display:grid;gap:4px;padding:5px 6px;border-radius:9px;background:#0004;border:1px solid transparent}.hf-pile.book.clean{border-color:#f2d27c;background:#5a481855}.hf-pile.book.dirty{border-color:#c98b6b;background:#4a2a1d55}.hf-pile.target{border-color:#fff2b0;box-shadow:0 0 0 2px #f6d77a,0 0 18px #f6d77a88}
.hf-pile-head{display:flex;justify-content:space-between;gap:8px;font-size:14px}.hf-pile-head b{font-size:18px;font-weight:800}.hf-pile-head small{font-size:13px;color:#eddcae;font-weight:800;letter-spacing:.5px}
.hf-fan{display:flex}.hf-fan .hf-card+.hf-card{margin-left:-20px}
.hf-card{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;flex:none;width:38px;height:54px;border-radius:5px;background:linear-gradient(160deg,#fffaf0,#efe2c6);border:1px solid #bba57c;color:#1b2521;box-shadow:1px 2px 3px #0006;line-height:1}
.hf-card b{font-size:18px;font-weight:800}.hf-card i{font-style:normal;font-size:15px}.hf-card.red{color:#b0263a}.hf-card.joker{color:#6a3f9e}.hf-card.joker i{font-size:9px;font-weight:700;letter-spacing:.5px}
.hf-card.back{background:repeating-linear-gradient(45deg,#7a2433 0 5px,#8e3241 5px 10px);border-color:#e6c98a}.hf-card.empty{background:#0003;border-style:dashed;box-shadow:none}
.hf-center{grid-area:center;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px;padding:4px}
.hf-stock,.hf-discard{position:relative;display:flex;align-items:center;gap:4px;padding:8px 12px 22px;border:2px solid transparent;border-radius:12px;background:#0003;color:#f5ead2;cursor:pointer;font:inherit}
.hf-stock .hf-card+.hf-card{margin-left:-30px}.hf-stock small,.hf-discard small{position:absolute;left:0;right:0;bottom:4px;font-size:15px;font-weight:700;text-align:center;color:#efe4c2}
.hf-stock.ready,.hf-discard.ready{border-color:#f0cf74;box-shadow:0 0 14px #f0cf7499}.hf-stock:disabled,.hf-discard:disabled{cursor:default;opacity:1}
.hf-banter{position:absolute;left:10px;right:10px;bottom:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;color:#fae1a3;pointer-events:none;text-shadow:0 1px 3px #000}
.hf-chips{display:flex;gap:6px;overflow-x:auto;padding:1px}.hf-chips button{flex:none;min-height:34px;padding:4px 12px;border:1px solid #d8bc79;border-radius:999px;background:#2a3a2c;color:#f8e7b9;font:700 15px system-ui,sans-serif;cursor:pointer}.hf-chips button.selected{background:#d8bc79;color:#1b2521}
.hf-rack{padding:7px 8px;border:1px solid #9a825366;border-radius:10px;background:#101b22}.hf-rack-label{display:flex;justify-content:space-between;margin-bottom:5px;font-size:14px}.hf-rack-label span{color:#bfb59b;font-size:12px}
.hf-hand{display:flex;flex-wrap:wrap;gap:4px;max-height:132px;overflow:auto}
.hf-choice{padding:0;border:2px solid transparent;border-radius:7px;background:none;cursor:pointer;transition:transform .12s}.hf-choice:disabled{cursor:default}
.hf-choice.playable .hf-card{box-shadow:0 0 0 2px #f0cf74,1px 2px 3px #0006}.hf-choice.selected{transform:translateY(-6px)}.hf-choice.selected .hf-card{background:linear-gradient(160deg,#fff3c4,#f2d983);box-shadow:0 0 0 3px #fff,0 0 12px #f0cf74}
.hf-bottom{display:grid;gap:5px}.hf-message{margin:0;font-size:14px;color:#f1dfae;min-height:1.3em}
.hf-actions{display:flex;flex-wrap:wrap;gap:6px}.hf-actions>button{flex:1;min-width:88px;min-height:40px;padding:6px 10px;border:1px solid #607083;border-radius:8px;background:#26374a;color:#eee8dc;font:700 15px system-ui,sans-serif;cursor:pointer}.hf-actions>button.primary{background:#ddbf7c;border-color:#ddbf7c;color:#17202b}.hf-actions>button:disabled{opacity:.45;cursor:default}
.hf-options{position:relative;pointer-events:auto}.hf-options summary{display:grid;place-items:center;list-style:none;border:1px solid #bba069;background:#122e2e;border-radius:6px;width:30px;height:30px;cursor:pointer}.hf-options summary::-webkit-details-marker{display:none}
.hf-options>div{position:absolute;right:0;top:35px;width:min(360px,75vw);max-height:250px;overflow:auto;padding:10px;background:#122b2ff5;border:1px solid #d8bc79;border-radius:8px;box-shadow:0 10px 25px #0009}.hf-options .tt-controls{display:flex;flex-wrap:wrap;gap:5px;margin:0}.hf-options .tt-feed{font-size:12px}
@media(max-width:520px){.hf-camera-tools>span{display:none}.hf-card{width:32px;height:46px}.hf-card b{font-size:15px}.hf-card i{font-size:13px}}
/* Second Life HUD: everything in rem so it scales with the media face. */
.moap-shell[data-game-key="hand-foot"]>.content{display:flex;flex-direction:column;overflow:auto}
.moap-shell[data-game-key="hand-foot"] .game-toolbar{flex:none}
.moap-shell[data-game-key="hand-foot"] .hf-game{flex:1;height:auto;min-height:0;gap:.25rem;grid-template-rows:auto minmax(4.5rem,1fr) auto auto auto}
.moap-shell[data-game-key="hand-foot"] .hf-seats{gap:.2rem}.moap-shell[data-game-key="hand-foot"] .hf-seats>div{padding:.15rem .3rem}.moap-shell[data-game-key="hand-foot"] .hf-seats b{font-size:.75rem}.moap-shell[data-game-key="hand-foot"] .hf-seats small{font-size:.62rem}
.moap-shell[data-game-key="hand-foot"] .hf-camera{min-height:4.5rem}.moap-shell[data-game-key="hand-foot"] .hf-watching .hf-hand{max-height:2.6rem}.moap-shell[data-game-key="hand-foot"] .hf-camera-tools>span{font-size:.66rem}.moap-shell[data-game-key="hand-foot"] .hf-camera-tools button{font-size:.75rem;min-height:1.4rem;min-width:1.4rem;padding:.1rem .25rem}
.moap-shell[data-game-key="hand-foot"] .hf-chips button{font-size:.75rem;min-height:1.5rem;padding:.1rem .45rem}
.moap-shell[data-game-key="hand-foot"] .hf-rack{padding:.2rem .3rem}.moap-shell[data-game-key="hand-foot"] .hf-rack-label{font-size:.72rem;margin-bottom:.15rem}.moap-shell[data-game-key="hand-foot"] .hf-rack-label span{font-size:.6rem}
.moap-shell[data-game-key="hand-foot"] .hf-hand{gap:.15rem;max-height:5.4rem}.moap-shell[data-game-key="hand-foot"] .hf-hand .hf-card{width:1.55rem;height:2.2rem}.moap-shell[data-game-key="hand-foot"] .hf-hand .hf-card b{font-size:.8rem}.moap-shell[data-game-key="hand-foot"] .hf-hand .hf-card i{font-size:.7rem}.moap-shell[data-game-key="hand-foot"] .hf-hand .hf-card.joker i{font-size:.42rem}
.moap-shell[data-game-key="hand-foot"] .hf-choice.selected{transform:translateY(-.25rem)}
.moap-shell[data-game-key="hand-foot"] .hf-message{font-size:.72rem}.moap-shell[data-game-key="hand-foot"] .hf-actions{gap:.2rem;padding-right:2.8rem}.moap-shell[data-game-key="hand-foot"] .hf-actions>button{font-size:.8rem;min-height:1.75rem;min-width:3.2rem;padding:.15rem .3rem}
.moap-shell[data-game-key="hand-foot"] .hf-banter{font-size:.6rem}
