.allfours-page{--af-green:#143f35;--af-gold:#e3c894}.allfours-page [hidden]{display:none!important}.af-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:18px 0 24px}.af-heading h1{font-size:clamp(32px,5vw,54px);margin:5px 0;letter-spacing:-2px}.af-heading h1 span{color:#d54844}.af-heading p{margin:4px 0}.af-eyebrow{font-size:10px;font-weight:700;letter-spacing:2px}.af-head-actions{display:flex;gap:8px}.af-layout{display:grid;grid-template-columns:minmax(0,1fr) 295px;gap:22px}.af-play{min-width:0}.af-scorebar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;background:#13382f;color:#f8f3e7;padding:14px 24px;border-radius:18px 18px 0 0;border-bottom:1px solid #d9bd7855}.af-scorebar>div:last-child{text-align:right}.af-scorebar strong{font-size:32px;margin-right:10px}.af-scorebar small{display:block;font-size:10px;color:#d5dacd}.af-round{text-align:center;font-size:13px}.af-round small{margin-top:4px;letter-spacing:1px;color:#ddc595}.af-felt{height:460px;position:relative;background:radial-gradient(ellipse at 45% 30%,#31785f 0,#1b5444 50%,#113d33 100%);border:12px solid #493328;box-shadow:inset 0 0 0 2px #b49867,inset 0 0 45px #001a1777,0 8px 16px #0001;border-radius:0 0 32px 32px;color:#fff}.af-felt:before{content:'';position:absolute;inset:15px;border:1px solid #d9bd782e;border-radius:50px;pointer-events:none}.af-inlay{position:absolute;top:47%;left:50%;transform:translate(-50%,-50%);font:600 38px Georgia,serif;letter-spacing:4px;color:#c6d8ae18;pointer-events:none}.af-inlay span{display:block;font:11px sans-serif;letter-spacing:5px;text-align:center;margin-top:8px}.af-seat{position:absolute;width:155px;text-align:center;z-index:2;padding:9px 8px;border:1px solid #ccdbce33;background:#102f2cb8;border-radius:13px;line-height:1.5;font-size:12px}.af-seat .af-name{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.af-seat small{font-size:10px;color:#d7e5d9;display:block}.af-seat.active{border-color:#ffe09b;box-shadow:0 0 0 3px #ffd58124;background:#315b41}.af-north{top:14px;left:50%;transform:translateX(-50%)}.af-south{bottom:12px;left:50%;transform:translateX(-50%)}.af-west{left:12px;top:47%;transform:translateY(-50%)}.af-east{right:12px;top:47%;transform:translateY(-50%)}.af-trump{position:absolute;top:20px;right:20px;text-align:center;display:grid;gap:4px;color:#f5e0b0;font-size:10px}.af-trump .pcard{width:44px;height:62px;font-size:11px;opacity:.95}.af-trump .pcard .mid{font-size:20px}.af-tricks{position:absolute;inset:0;pointer-events:none}.af-trick-card{position:absolute;transform:translate(-50%,-50%)}.af-trick-card.win .pcard{outline:3px solid #e9ca82;box-shadow:0 0 20px #e7c56266}.allfours-page .pcard{width:66px;height:94px;border-radius:8px;border:1px solid #d8ceba;background:linear-gradient(140deg,#fffef8,#efe9de);padding:5px 7px;box-shadow:0 3px 5px #0003;font-size:15px;font-weight:700;color:#1c2c33;flex-shrink:0}.allfours-page .pcard .mid{font-size:32px;line-height:1}.allfours-page .pcard.red{color:#ae302f}.allfours-page .pcard:focus-visible{outline:3px solid #dcac3a;outline-offset:3px}.allfours-page .pcard.disabled{opacity:.42;filter:grayscale(.3)}.af-action-strip{padding:14px 18px;background:var(--yg-btn-face,#fff);border:1px solid var(--yg-border,#d8dfdf);border-radius:14px;margin:16px 0 12px;min-height:70px;display:flex;gap:10px;align-items:center;justify-content:space-between}.af-action-strip p{margin:0;font-size:14px;line-height:1.55}.af-action-strip #actionRow{display:flex;gap:6px;flex-wrap:wrap;flex-shrink:0}.af-action-strip .yg-btn{min-height:42px}.af-hand{padding:14px 18px 18px;border-radius:14px;border:1px solid var(--yg-border,#d8dfdf);background:var(--yg-btn-face,#fff)}.af-hand-title{display:flex;justify-content:space-between;gap:12px;margin-bottom:16px;font-size:12px}.af-hand-title span{opacity:.7;font-size:11px}#handRow{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;padding-top:7px;min-height:98px}#handRow .pcard[role=button]{transition:transform .15s}#handRow .pcard[role=button]:hover{transform:translateY(-7px);border-color:#a58139}.af-side{display:grid;align-content:start;gap:16px}.af-side .yg-panel{margin:0}.af-side .yg-panel-body{font-size:13px;line-height:1.6}.af-side select,.af-side #practiceNew{width:100%;margin:6px 0}.af-side #chatLog{height:200px}.af-small,.af-rules-note{font-size:12px;line-height:1.6}.af-rules-note{padding:4px 8px;opacity:.85}.af-award{display:flex;justify-content:space-between;gap:6px;border-bottom:1px solid #8882;padding:6px 0}.af-award strong{white-space:nowrap}.af-award:last-child{border:0}.af-small{opacity:.75}@media(max-width:1050px){.af-layout{grid-template-columns:minmax(0,1fr)}.af-side{grid-template-columns:repeat(2,minmax(0,1fr))}.af-felt{height:450px}}@media(max-width:600px){.allfours-page .game-page-wrap{padding:10px!important}.af-heading{align-items:flex-start;gap:12px;margin-top:8px}.af-head-actions{flex-direction:column}.af-heading h1{font-size:36px}.af-eyebrow{font-size:8px;letter-spacing:1px}.af-heading>div>p:last-child{font-size:12px}.af-scorebar{padding:12px 14px}.af-scorebar strong{font-size:26px}.af-scorebar span{font-size:11px}.af-scorebar small{font-size:9px}.af-felt{height:410px;border-width:7px;border-radius:0 0 24px 24px}.af-seat{width:102px;padding:7px 4px;font-size:11px}.af-north{top:10px}.af-west{top:39%;left:7px}.af-east{top:39%;right:7px}.af-south{bottom:8px}.af-trump{top:13px;right:13px;font-size:8px}.af-trump .pcard{width:36px;height:49px;font-size:9px;padding:3px}.af-trump .pcard .mid{font-size:16px}.af-trick-card .pcard{width:46px;height:67px;font-size:11px;padding:4px}.af-trick-card .pcard .mid{font-size:24px}.af-action-strip{flex-direction:column;align-items:flex-start;padding:12px}.af-action-strip p{font-size:13px}.af-side{grid-template-columns:1fr}.af-hand{padding:12px 9px}.af-hand-title{flex-direction:column;gap:3px}#handRow{gap:5px}#handRow .pcard{width:48px;height:72px;font-size:12px;padding:4px}#handRow .pcard .mid{font-size:26px}}@media(prefers-reduced-motion:reduce){#handRow .pcard[role=button]{transition:none}}

/* Keep the hand close to the table, with a compact header on laptops. */
.af-heading{margin:5px 0 14px}.af-heading h1{font-size:36px;line-height:1.2}.af-heading p{font-size:12px;line-height:1.4}.af-heading .af-eyebrow{font-size:9px}.af-scorebar{padding:9px 20px}.af-scorebar strong{font-size:28px}.af-felt{height:clamp(290px,calc(100dvh - 590px),390px)}.af-action-strip{min-height:58px;margin:12px 0 10px;padding:10px 16px}.af-hand{padding:10px 14px 13px}.af-hand-title{margin-bottom:8px}.allfours-page .pcard{height:86px;width:61px}.af-hand #handRow{min-height:90px}.game-focus .af-heading{display:none}.game-focus .af-felt{height:clamp(310px,calc(100dvh - 350px),540px)}
@media(max-width:600px){.af-felt{height:350px}.af-heading h1{font-size:32px}.af-heading>div>p:last-child{display:none}.af-north{left:40%}.af-west,.af-east{top:34%;width:94px}.af-trick-card:nth-child(1n){margin-top:13px}.af-seat small{font-size:9px}.af-scorebar{padding:9px 12px}.af-hand #handRow{min-height:76px}.game-focus .af-felt{height:350px}.af-trick-card .pcard{height:62px;width:43px}.af-hand #handRow .pcard{width:48px;height:72px}}

.game-focus .af-heading{display:flex;justify-content:flex-end;margin:0 0 8px}.game-focus .af-heading>div:first-child{display:none}.game-focus .af-head-actions{flex-direction:row}
@media(max-width:600px){.game-focus .af-felt{height:285px}}

@media(max-width:600px){.af-trick-card[data-seat="0"]{top:59%!important}}

/* Leave a clear margin between played cards and the four player labels. */
.af-felt{min-height:310px}.af-trick-card .pcard{width:52px;height:72px;font-size:12px}.af-trick-card .pcard .mid{font-size:26px}.af-trick-card[data-seat="0"]{top:60%!important}
@media(max-width:600px){.af-felt{min-height:0}.af-trick-card .pcard{width:43px;height:62px;font-size:11px}.af-trick-card[data-seat="0"]{top:55%!important;margin-top:8px}}
