body.stp-site {background:var(--site-background);color:var(--text-primary);margin:0;overflow-x:hidden;}
.stp-page {max-width:1160px;margin:auto;padding:20px 24px 32px;}.stp-layout {position:relative;display:grid;grid-template-columns:minmax(0,1fr);}.stp-column {min-width:0;}
.stp-board {position:relative;isolation:isolate;display:grid;grid-template-rows:88px 126px minmax(130px,1fr) 40px 220px 48px;gap:10px;padding:20px 28px 16px;height:clamp(740px,calc(100svh - 114px),960px);box-sizing:border-box;overflow:hidden;border:1px solid var(--table-rim);border-radius:38px;background:radial-gradient(ellipse at 50% 35%,#218d79 0,var(--table-felt) 48%,var(--table-dark) 100%);box-shadow:inset 0 3px 3px #bdffeb30,inset 0 0 26px #001c29,0 12px 28px #00121f40;}
.stp-board::before {content:'';position:absolute;inset:6px;border:1px solid #72e3d644;border-radius:32px;pointer-events:none;}
.stp-title {display:flex;align-items:center;justify-content:center;gap:12px;text-align:center;}.stp-title img {width:56px;height:56px;object-fit:contain;}.stp-title h1 {margin:0;font:900 58px/1 ui-rounded,'Arial Rounded MT Bold','Segoe UI',sans-serif;text-shadow:0 3px 3px #00323880;letter-spacing:-1px;}.stp-title p {margin:8px 0 0;font-size:14px;color:#b6e9e5;text-shadow:0 2px 3px #002a36;}
.stp-opponent {display:grid;grid-template-columns:140px 1fr 140px;align-items:center;}.stp-identity {display:flex;align-items:center;justify-content:center;gap:7px;color:var(--player-accent);}.stp-opponent .stp-identity {color:#bd8aff;}.stp-identity strong {font-size:17px;}.stp-identity small {display:block;font-size:12px;color:#c4e7e1;}.stp-identity .avatar {width:44px;height:44px;flex:none;border:1.5px solid currentColor;border-radius:50%;background:#073e5099;}.stp-identity svg {width:40px;height:40px;}.stp-hidden-hand {display:flex;justify-content:center;}.stp-hidden-hand .card-back {width:36px;height:52px;flex:none;margin-left:-18px;border-width:2px;}.stp-hidden-hand .card-back:first-child {margin-left:0;}
.stp-pile-zone {display:flex;flex-direction:column;align-items:center;gap:5px;font-size:12px;color:#cfede8;}.stp-pile-zone strong {font-size:14px;color:var(--player-accent);}.stp-opponent .stp-pile-zone strong {color:#bd8aff;}.stp-pile {position:relative;isolation:isolate;width:68px;height:98px;}.stp-pile.empty {display:grid;place-items:center;background:#073d4220;border-radius:8px;font-size:12px;}.stp-pile .playing-card {position:absolute;inset:0;width:100%;height:100%;box-sizing:border-box;}.stp-pile.has-stack::before,.stp-pile.has-stack::after {content:'';position:absolute;inset:0;z-index:-1;border:1px solid #ddd;border-radius:8px;background:#f0eee5;transform:translate(3px,3px);}.stp-pile.has-stack::after {transform:translate(6px,6px);}
.stp-middle {display:grid;grid-template-columns:88px minmax(0,1fr);gap:22px;min-height:0;}.stp-stock {align-self:center;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:13px;}.stp-stock .card-back {width:68px;height:98px;border-width:3px;}.stp-stock .empty {visibility:hidden;}.stp-table-zone {min-height:0;display:flex;flex-direction:column;}.stp-table-zone h2 {font-size:15px;margin:0 0 6px;}.stp-table-zone h2 small {font-size:12px;font-weight:400;margin-left:7px;}.stp-table {display:grid;grid-template-columns:repeat(auto-fill,minmax(62px,1fr));gap:10px 8px;overflow:auto;align-content:start;min-height:0;flex:1;padding:7px 9px 10px 4px;scrollbar-color:#77dfff #06413e;scrollbar-width:thin;overscroll-behavior:contain;border-block:1px solid #8ae8de25;}.stp-table .playing-card {width:62px;height:90px;position:relative;box-sizing:border-box;justify-self:center;}.stp-scroll-hint {font-size:10px;opacity:.7;margin-top:4px;}.stp-table-zone:not(.scrollable) .stp-scroll-hint {visibility:hidden;}
.stp-status {margin:0;text-align:center;align-self:center;font-size:15px;font-weight:700;line-height:1.3;color:var(--player-accent);text-shadow:0 2px 3px #002a36;}.stp-board[data-turn='1'] .stp-status {color:#bd8aff;}
.stp-human {display:grid;grid-template-columns:140px minmax(0,1fr);align-items:center;gap:12px;}.stp-hand-zone {min-width:0;align-self:start;}.stp-hand {display:flex;justify-content:center;gap:8px;margin-top:12px;padding:8px 0 12px;}.stp-hand .playing-card {position:relative;flex:none;width:104px;height:150px;border-radius:9px;padding:0;cursor:pointer;transition:transform 160ms ease,box-shadow 160ms ease;}.stp-hand .playing-card:disabled {opacity:.88;cursor:default;}.stp-board .playing-card {background:var(--card-paper);color:var(--card-ink);border:1px solid #c0d4cd;box-shadow:0 3px 5px #032b3280;border-radius:8px;}.stp-board .playing-card.red-card {color:var(--card-red);}.stp-board .playing-card .card-corner {font-size:22px;top:5px;left:5px;line-height:1;}.stp-board .playing-card .card-corner small {font-size:18px;}.stp-board .playing-card .card-corner.bottom {inset:auto 5px 5px auto;}.stp-board .playing-card .card-suit {font-size:42px;}.stp-table .playing-card .card-corner,.stp-pile .playing-card .card-corner {font-size:16px;}.stp-table .playing-card .card-corner small,.stp-pile .playing-card .card-corner small {font-size:12px;}.stp-table .playing-card .card-suit,.stp-pile .playing-card .card-suit {font-size:30px;}
.stp-actions {display:flex;align-items:center;justify-content:space-between;position:relative;z-index:4;}.stp-actions .restart-button {font-size:15px;min-height:43px;background:linear-gradient(#257f82,#155b61);border:1px solid #77dfff;color:white;cursor:pointer;}.stp-start {position:absolute;z-index:5;top:38%;left:50%;transform:translateX(-50%);width:min(600px,calc(100% - 32px));}.stp-start .game-start-primary {color:var(--player-accent);}.stp-start[hidden] {display:none!important;}.stp-board[data-phase='ready'] .stp-core {visibility:hidden;}
.stp-effects {position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:8;border-radius:inherit;}.stp-effects .playing-card {pointer-events:none;}.stp-rules {position:absolute;inset:30px 8%;background:#063b48f5;z-index:30;border:1px solid #77dfff;border-radius:20px;padding:24px;overflow:auto;box-shadow:0 12px 30px #001d3b88;}.stp-rules #close-rules {float:right;}.stp-rules p {line-height:1.6;}.stp-rules[hidden] {display:none;}.stp-board .outcome-dialog {position:absolute;inset:0;container-type:size;}.stp-board .outcome-content {pointer-events:auto;}.stp-board .outcome-score {white-space:normal;}.stp-board .outcome-dialog.lost #outcome-title {color:#bd8aff;}.stp-board .outcome-dialog #outcome-title {color:#77dfff;}
@media(hover:hover) and (pointer:fine){.stp-hand button:not(:disabled):hover {transform:translateY(-7px);z-index:2;box-shadow:0 0 0 2px #77dfff,0 0 16px #77dfff70;}.stp-actions button:hover {filter:brightness(1.15);}}
.stp-board button:focus-visible,.stp-table:focus-visible {outline:3px solid #a5f2ff;outline-offset:3px;}
.stp-layout>.reserved-slot {display:none;}
.stp-column>.reserved-slot {box-sizing:border-box;}
@media(min-width:1360px){
 .stp-page {max-width:1360px;}
 .stp-layout {grid-template-columns:minmax(0,1112px) 160px;gap:40px;}
 .stp-layout>.reserved-slot {display:block;position:relative;width:160px;height:600px;margin:40px 0 0;}
 .stp-layout>.reserved-slot::before {content:attr(aria-label);position:absolute;top:50%;left:0;right:0;transform:translateY(-50%);text-align:center;line-height:18px;pointer-events:none;}
 .stp-layout>.reserved-slot:has(ins[data-ad-status="filled"])::before {display:none;}
}
@media(min-width:1540px){
 .stp-page {max-width:1500px;}
 .stp-layout {grid-template-columns:minmax(0,1112px) 300px;}
 .stp-layout>.reserved-slot {width:300px;}
}
@media(max-width:700px){.stp-site .site-header {height:calc(48px + env(safe-area-inset-top));padding:6px 8px;padding-top:calc(6px + env(safe-area-inset-top));gap:5px;}.stp-site .brand-mark {width:25px;height:25px;}.stp-site .brand {font-size:11px;gap:3px;}.stp-site .header-controls {gap:3px;}.stp-site .quiet-button {font-size:10px;padding:5px 7px;}.stp-page {padding:4px 4px calc(12px + env(safe-area-inset-bottom));}.stp-board {height:max(600px,calc(100svh - 56px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));padding:10px 10px 8px;grid-template-rows:56px 88px minmax(115px,1fr) 36px 156px 40px;gap:6px;border-radius:28px;}.stp-board::before {inset:4px;border-radius:23px;}.stp-title {gap:7px;}.stp-title img {width:34px;height:34px;}.stp-title h1 {font-size:clamp(27px,7.8vw,34px);letter-spacing:-.6px;}.stp-title p {font-size:10px;margin-top:5px;}.stp-opponent {grid-template-columns:66px minmax(0,1fr) 66px;}.stp-identity .avatar {width:30px;height:30px;}.stp-identity svg {width:28px;height:28px;}.stp-identity strong {font-size:12px;}.stp-identity small {font-size:10px;}.stp-hidden-hand .card-back {width:26px;height:38px;margin-left:-15px;}.stp-pile {width:48px;height:69px;}.stp-pile-zone {gap:3px;font-size:10px;}.stp-pile-zone strong {font-size:11px;}.stp-middle {grid-template-columns:50px minmax(0,1fr);gap:10px;}.stp-stock .card-back {width:44px;height:64px;}.stp-stock {font-size:11px;gap:4px;}.stp-table-zone h2 {font-size:12px;}.stp-table-zone h2 small {font-size:10px;}.stp-table {grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:7px 5px;padding:5px 5px 7px 3px;}.stp-table .playing-card {width:44px;height:64px;}.stp-table .playing-card .card-corner,.stp-pile .playing-card .card-corner {font-size:13px;left:3px;top:3px;}.stp-table .playing-card .card-corner small,.stp-pile .playing-card .card-corner small {font-size:10px;}.stp-table .playing-card .card-suit,.stp-pile .playing-card .card-suit {font-size:22px;}.stp-table .playing-card .card-corner.bottom,.stp-pile .playing-card .card-corner.bottom {inset:auto 3px 3px auto;}.stp-status {font-size:12px;}.stp-human {grid-template-columns:60px minmax(0,1fr);gap:6px;}.stp-hand {gap:5px;margin-top:5px;padding-top:7px;}.stp-hand .playing-card {width:calc((100% - 15px) / 4);max-width:72px;min-width:44px;height:auto;aspect-ratio:1/1.45;}.stp-hand .playing-card .card-corner {font-size:17px;left:3px;top:3px;}.stp-hand .playing-card .card-corner small {font-size:13px;}.stp-hand .playing-card .card-suit {font-size:29px;}.stp-actions .restart-button {font-size:12px;padding:6px 10px;min-height:38px;}.stp-rules {inset:8px;padding:18px;}.stp-rules p {font-size:13px;}.stp-start {top:37%;}}
@media(max-height:500px) and (orientation:landscape){.stp-board {height:650px;}.stp-page {padding-top:4px;}}
@media(prefers-reduced-motion:reduce){.stp-hand .playing-card {transition:none;}.stp-hand button:not(:disabled):hover {transform:none;}}

.stp-board .playing-card.red {color:var(--card-red);}
.stp-effects .playing-card .card-corner {font-size:clamp(13px,calc(var(--flight-width) * .22),22px);}
.stp-effects .playing-card .card-corner small {font-size:clamp(10px,calc(var(--flight-width) * .18),18px);}
.stp-effects .playing-card .card-suit {font-size:clamp(22px,calc(var(--flight-width) * .45),42px);}

/* Override Go Fish's shared ready-screen display rule only for this game. */
.stp-board #start-panel[hidden] {display:none!important;}
/* Reset inherited avatar auto margins and align the two hand/identity axes. */
.stp-board .stp-identity .avatar {margin:0;}
.stp-opponent {grid-template-columns:140px minmax(0,1fr);grid-template-rows:52px 56px;gap:6px 12px;}
.stp-opponent>.stp-pile-zone {grid-column:1;grid-row:1 / 3;align-self:start;}
.stp-opponent>.stp-identity {grid-column:2;grid-row:1;}
.stp-opponent>.stp-hidden-hand {grid-column:2;grid-row:2;align-self:center;}
/* Div-based table/pile faces need the same centered suit as hand buttons. */
.stp-board .playing-card {display:grid;place-items:center;}
.stp-board .playing-card .card-suit {line-height:1;}
.stp-board .playing-card:not(:disabled):hover {transform:none;}
.stp-pile-zone>strong {margin-top:6px;}
.stp-board {grid-template-rows:88px 148px minmax(108px,1fr) 40px 220px 48px;}
@media(hover:hover) and (pointer:fine) {
 .stp-board .stp-hand button:not(:disabled):hover {transform:translateY(-7px);}
}
@media(max-width:700px) {
 .stp-opponent {grid-template-columns:60px minmax(0,1fr);grid-template-rows:34px 38px;gap:6px;}
 .stp-board {grid-template-rows:56px 108px minmax(95px,1fr) 36px 156px 40px;}
}
@media(prefers-reduced-motion:reduce) {
 .stp-board .stp-hand button:not(:disabled):hover {transform:none;}
}

/* Table and stock share a label / card / caption track, with centered card groups. */
.stp-stock,.stp-table-zone {display:grid;grid-template-rows:22px minmax(0,1fr) 20px;align-self:stretch;gap:0;min-height:0;}
.stp-stock>.card-back {grid-row:2;align-self:center;justify-self:center;}
.stp-stock>span {grid-row:1;align-self:center;}
.stp-stock>small {grid-row:3;align-self:center;}
.stp-table-zone>h2 {grid-row:1;margin:0;align-self:center;text-align:center;}
.stp-table {grid-row:2;grid-template-columns:repeat(var(--table-columns,1),62px);justify-content:center;align-content:safe center;padding-block:8px;}
.stp-scroll-hint {grid-row:3;margin:0;text-align:center;align-self:center;}
.stp-table button:not(:disabled),.stp-pile[aria-disabled='false'] {cursor:pointer;}
.stp-pile[role='button']:focus-visible {outline:3px solid #a5f2ff;outline-offset:4px;border-radius:8px;}
.stp-board #outcome-score {text-align:center;margin-inline:auto;width:100%;max-width:600px;}
.stp-board .outcome-content>div[role='status'] {text-align:center;width:min(92%,700px);margin-inline:auto;}
@media(max-width:700px){
 .stp-stock,.stp-table-zone {grid-template-rows:18px minmax(0,1fr) 16px;}
 .stp-table {grid-template-columns:repeat(var(--table-columns,1),44px);padding-block:5px;}
}

/* Turn feedback follows the table's center axis, slightly closer to its cards. */
.stp-status {width:calc(100% - 110px);margin:0 0 0 110px;align-self:start;text-align:center;transform:translateY(-8px);}
/* Preserve the reserved status track while avoiding duplicate endgame feedback. */
.stp-board[data-phase='finished'] .stp-status {visibility:hidden;}
/* Explicit SVG sizing wins over the shared computer-avatar class sizes. */
.stp-board #computer-avatar {display:grid;place-items:center;overflow:hidden;color:#bd8aff;border-color:#bd8aff;box-shadow:0 0 12px #bd8aff30;}
.stp-board #computer-avatar .robot-avatar {display:block;width:40px;height:40px;max-width:100%;max-height:100%;}
.stp-board #computer-avatar .robot-avatar>g:first-of-type {fill:#bd8aff;}
.stp-board #computer-avatar .robot-avatar>g:first-of-type path[stroke] {stroke:#dec9ff;}
.stp-board #computer-avatar .robot-avatar>g[color] {color:#bd8aff;}
.stp-board #computer-avatar .robot-avatar>.avatar-sparkles {fill:#dec9ff;}
.stp-table .playing-card,#computer-pile {transition:transform 160ms ease,box-shadow 160ms ease,outline-color 160ms ease;}
@media(hover:hover) and (pointer:fine) {
 .stp-board .stp-table .playing-card:hover,.stp-board #computer-pile:not(.empty):hover {outline:2px solid #77dfff;outline-offset:1px;box-shadow:0 0 16px #77dfff70;transform:translateY(-7px);z-index:2;}
}
@media(max-width:700px) {
 .stp-status {width:calc(100% - 60px);margin-left:60px;transform:translateY(-5px);}
 .stp-board #computer-avatar .robot-avatar {width:28px;height:28px;}
}
@media(prefers-reduced-motion:reduce) {
 .stp-table .playing-card,#computer-pile {transition:none;}
 .stp-board .stp-table .playing-card:hover,.stp-board #computer-pile:not(.empty):hover {transform:none;}
}

/* Fixed dimensions and preloaded layers keep the supplied mask/glasses art aligned. */
.stp-board #player-avatar.stp-art-avatar,.stp-board #computer-avatar.stp-art-avatar {position:relative;display:block;border:0;background:transparent;overflow:visible;}
.stp-board .stp-art-avatar>img {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none;transition:opacity 160ms ease;}
.stp-art-avatar .stp-avatar-mask {opacity:1;}.stp-art-avatar .stp-avatar-cool {opacity:0;}
.stp-art-avatar[data-look='cool'] .stp-avatar-mask {opacity:0;}.stp-art-avatar[data-look='cool'] .stp-avatar-cool {opacity:1;}
.stp-art-avatar[data-avatar-state='celebrate'] {animation:avatar-bounce .5s ease;}
@media(prefers-reduced-motion:reduce){.stp-board .stp-art-avatar>img {transition:none;}.stp-art-avatar[data-avatar-state='celebrate'] {animation:none;}}
