/* A full-screen playing table. Explanations and records belong in the menu. */
:root{--cw:clamp(64px,min(10.5vw,16dvh),136px);--ch:calc(var(--cw)*1.43);--gap:clamp(8px,1.5vw,20px)}
body{min-height:100dvh;background-color:#0e382b;background-size:cover;background-position:center}
body:before{z-index:0;background:radial-gradient(ellipse at 50% 48%,transparent 30%,#031b1480 100%)}
.game-shell{position:relative;width:100%;max-width:none;min-height:100dvh;padding:0 24px 108px;margin:0}
.game-hud{height:66px;max-width:1240px;margin:0 auto;display:flex;align-items:center;gap:20px;border:0;color:#e8e5d0}
.exit-game{font:30px/1 Georgia,serif;width:28px;text-align:center;color:#c9ccac}
.game-name{font:italic 23px/1 Georgia,serif;min-width:110px;color:#f0ead7}
.game-name small{display:block;font:8px/1.3 Arial,sans-serif;letter-spacing:.3px;color:#a5bba7;margin-top:6px}
.game-hud .scorebar{border:0;background:none;box-shadow:none;border-radius:0;margin:0 auto;padding:0;gap:36px;height:auto}
.game-hud .scorebar>div{min-width:48px;text-align:center}
.game-hud .scorebar>div>span{font-size:8px;letter-spacing:1.5px;margin-bottom:5px;color:#a3bda9}
.game-hud .scorebar strong{font:20px/1 Georgia,serif;color:#f1edda;letter-spacing:.5px}
.game-hud .scorebar strong small{font:10px Arial,sans-serif;color:#9db49f;margin-left:3px}
.hud-buttons{display:flex;gap:8px;flex-shrink:0}
.hud-buttons .icon-button{border:0;background:#06261e66;box-shadow:inset 0 1px #b5c7a514,0 2px 7px #001a1330;border-radius:50%;width:38px;height:38px;font-size:19px;color:#ded9bd}
.hud-buttons .icon-button:hover{background:#244d3b}
.table-field{padding:34px 0 0;max-width:1160px;margin:0 auto}
.play-area{width:100%;margin:auto}
.board-frame{position:relative;min-height:calc(var(--ch)*2 + 145px)}
.board{padding:17px 0 0;margin:0 auto;max-width:calc(var(--cw)*7 + var(--gap)*6);column-gap:var(--gap);row-gap:38px;width:100%}
.pile-label{font-size:8px;letter-spacing:1px;color:#c1c9a66b}
.pile{border-color:#b6c7a522;box-shadow:inset 0 1px 10px #041e1725}
.pile[data-kind=tab]{border-color:#b6c7a514}
.card{border-radius:7px;box-shadow:0 3px 3px #00180f6b,0 10px 16px #00180f30}
.card.back{border-width:3px}
.card .corner{font-size:clamp(17px,2vw,26px)}
.pip{font-size:clamp(21px,2.5vw,34px)}
.ace-pip{font-size:clamp(45px,5vw,76px)}
.court b{font-size:clamp(32px,4vw,59px)}
.table-message{font:11px/1.6 Arial,sans-serif;color:#e5d6a5;text-align:center;min-height:20px;margin:15px auto 0;max-width:620px;padding:0 14px}
.table-controls{position:fixed;bottom:29px;left:50%;transform:translateX(-50%);z-index:4;display:flex;gap:18px;padding:8px 25px 10px;border:1px solid #b9c6a51b;background:#06261ebd;backdrop-filter:blur(7px);border-radius:50px;box-shadow:0 7px 20px #0017104a}
.table-controls .tool-button{display:flex;flex-direction:column;gap:3px;min-height:43px;width:63px;flex:none;border:0;background:none;box-shadow:none;padding:0;color:#e1dec5;border-radius:20px;font-size:10px}
.table-controls .tool-button>span{font-size:27px;line-height:1;color:#e2c98e}
.table-controls .tool-button>b{font-size:9px;line-height:1.3;font-weight:400}
.table-controls .tool-button:hover:not(:disabled){background:none;color:#fff5ce;filter:brightness(1.2)}
.table-controls .tool-button:disabled{opacity:.25}
.save-status{position:fixed;bottom:102px;left:50%;transform:translateX(-50%);z-index:4;max-width:calc(100% - 24px);width:max-content;font-size:10px;color:#f6d3a4;line-height:1.7;margin:0;padding:7px 12px;border-radius:8px;background:#1e271ce8}
.save-status:not([data-state=error]){display:none}
.game-credit{position:fixed;bottom:7px;left:0;right:0;text-align:center;color:#aab39770;font:7px/1.5 Arial,sans-serif;letter-spacing:.6px;pointer-events:none}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.menu-dialog{padding:27px 30px 19px;width:min(370px,calc(100% - 28px));border-radius:24px;background:linear-gradient(#174832f5,#0b2f22fa);border-color:#b9a26370;box-shadow:0 20px 90px #00130cb3}
.menu-dialog h2{font-size:50px;margin:5px 0 24px}
.menu-dialog .card-fan{height:98px;margin:10px auto 15px}
.menu-settings{margin:17px 0 20px}
.menu-settings legend{font-size:8px;letter-spacing:1px}
.menu-dialog .primary{font-size:15px;min-height:48px;letter-spacing:.8px;border-radius:25px}
.menu-dialog .dialog-link{margin:13px 0 5px;font-size:10px}
.menu-dialog .dialog-credit{font-size:7px;margin-top:12px;opacity:.65}
.menu-records{text-align:left;margin:17px auto 0;font-size:10px;color:#a7bda5;border-top:1px solid #b0c09b1f;padding-top:12px}
.menu-records summary{cursor:pointer;text-align:center;font-size:10px;list-style-position:inside;color:#c0cbb1}
.menu-records>div{display:flex;justify-content:space-between;gap:15px;margin-top:12px}
.menu-records strong{font-weight:400;color:#e7dfbc}
.menu-records>small{display:block;font-size:8px;margin-top:10px}
@media(max-width:850px){.game-shell{padding:0 18px 108px}.game-hud{gap:12px;height:60px}.game-hud .scorebar{gap:20px}.game-name{font-size:21px;min-width:95px}.hud-buttons{gap:6px}.hud-buttons .icon-button{width:34px;height:34px}.table-field{padding-top:35px}.board{column-gap:var(--gap);row-gap:32px}.board-frame{min-height:calc(var(--ch)*2 + 130px)}}
@media(max-width:600px){:root{--cw:calc((100vw - 52px)/7);--ch:calc(var(--cw)*1.46);--gap:4px}.game-shell{padding:0 14px 112px}.game-hud{height:87px;display:grid;grid-template-columns:22px 1fr auto;gap:0 10px;align-content:center;row-gap:10px}.exit-game{font-size:26px;width:22px}.game-name{font-size:20px;min-width:0}.game-name small{display:none}.hud-buttons{gap:7px}.hud-buttons .icon-button{height:31px;width:31px;font-size:17px}.game-hud .scorebar{grid-column:1/-1;justify-content:center;gap:30px;padding:0;height:24px}.game-hud .scorebar>div{display:flex;align-items:baseline;gap:6px;min-width:0}.game-hud .scorebar>div>span{font-size:6px;letter-spacing:.6px;margin:0}.game-hud .scorebar strong{font-size:15px}.game-hud .scorebar .cards-collected{display:none}.table-field{padding-top:20px}.board{column-gap:4px;row-gap:32px;padding-top:15px}.board-frame{min-height:calc(var(--ch)*2 + 130px)}.pile-label{font-size:6px;letter-spacing:.6px;top:-14px}.card{border-radius:4px}.card.back{border-width:2px}.card .corner{font-size:14px}.card .corner i{font-size:11px}.card .corner.bottom{display:none}.pips{inset:0}.pips .pip:not(:first-child){display:none}.pips .pip:first-child{font-size:27px}.ace-pip{font-size:36px}.court b{font-size:27px}.table-message{font-size:10px;line-height:1.7;margin-top:17px;max-width:345px;padding:0 6px}.table-controls{bottom:27px;gap:17px;padding:8px 25px 10px}.table-controls .tool-button{width:56px;min-height:43px}.table-controls .tool-button>span{font-size:27px}.menu-dialog{padding:24px 24px 16px}.menu-dialog .card-fan{height:84px;margin:0 auto 10px}.menu-dialog h2{font-size:45px;margin:0 0 20px}.menu-dialog .dialog-copy{display:none}.save-status{bottom:102px;font-size:9px}.game-credit{font-size:6px}}
@media(max-width:350px){.game-hud .scorebar{gap:23px}.hud-buttons{gap:5px}.hud-buttons .icon-button{width:29px;height:29px}.game-name{font-size:19px}.card .corner{font-size:13px}.table-controls{gap:12px;padding-left:22px;padding-right:22px}}
@media(max-height:500px) and (min-width:601px){:root{--cw:clamp(44px,15dvh,72px);--ch:calc(var(--cw)*1.43);--gap:clamp(8px,2vw,18px)}.game-hud{height:43px}.game-shell{padding-bottom:78px}.game-name{font-size:19px}.game-hud .scorebar{gap:26px}.game-hud .scorebar strong{font-size:16px}.game-hud .scorebar>div>span{font-size:6px}.hud-buttons .icon-button{width:30px;height:30px}.table-field{padding-top:16px}.board{row-gap:20px;padding-top:12px}.board-frame{min-height:calc(var(--ch)*2 + 55px)}.pile-label{font-size:6px;top:-12px}.table-message{margin:5px auto 0;font-size:9px}.table-controls{bottom:16px;padding:5px 20px 6px;gap:20px}.table-controls .tool-button{min-height:33px;width:50px;gap:1px}.table-controls .tool-button>span{font-size:23px}.table-controls .tool-button>b{font-size:8px}.game-credit{bottom:1px;font-size:6px}.card .corner{font-size:14px}.pip{font-size:19px}.ace-pip{font-size:34px}.court b{font-size:28px}.court span{font-size:11px}.game-dialog{max-height:94dvh}.save-status{bottom:70px}}
@media(min-width:601px){.pips{inset:24% 32%}.pip{font-size:clamp(18px,2.1vw,28px)}}
@media(max-width:600px){.game-hud>.exit-game{grid-column:1;grid-row:1}.game-hud>.game-name{grid-column:2;grid-row:1}.game-hud>.hud-buttons{grid-column:3;grid-row:1}.game-hud>.scorebar{grid-row:2}}
@media(max-height:500px) and (min-width:601px){.game-shell{padding-bottom:64px}}
