*{box-sizing:border-box}html{height:100%;background:#12372f}body{margin:0;min-height:100dvh;color:#f0ead6;font-family:Arial,sans-serif;background:radial-gradient(ellipse at 50% 20%,#295f4d,#153c33 75%)}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit;background:#234b40;border:1px solid #9bb99a77;border-radius:9px;padding:10px;touch-action:manipulation}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #ffda79;outline-offset:3px}header{height:64px;display:flex;align-items:center;justify-content:space-between;padding:10px 24px;border-bottom:1px solid #b6c5a128;background:#122e29aa;gap:10px}header a{font-size:13px;color:#cbdbc9;text-decoration:none}header strong{letter-spacing:4px;font-size:20px}header small{display:block;font-size:8px;letter-spacing:2px;color:#a2bcaa;margin-top:4px}nav{display:flex;gap:6px}main{width:min(100%,1100px);margin:0 auto;padding:0 20px 16px;min-height:calc(100dvh - 64px);display:flex;flex-direction:column}.stats{display:flex;justify-content:space-between;font-size:9px;letter-spacing:2px;color:#a9c2b0;padding:18px 4px}.stats b{color:#f5edd6;font:16px monospace;margin-left:8px;letter-spacing:0}.table{--cw:min(calc((100vw - 88px)/7),125px);--ch:calc(var(--cw)*1.4);--step:30px;--down:15px;flex:1}.top,.columns{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.top{margin-bottom:22px}.slot{width:100%;height:var(--ch);border:1px solid #c1d2ab55;border-radius:9px;position:relative;padding:0;background:#0f332d3b;min-width:0}.foundation:before{content:attr(data-suit);position:absolute;inset:0;display:grid;place-items:center;font-size:32px;color:#b6c69f50}.stock{background:repeating-linear-gradient(45deg,#234f51 0 3px,#316065 3px 5px);border:4px solid #e3dfc6;box-shadow:0 3px 5px #09291e66}.stock.empty{background:#12372e77;border:1px dashed #b7c79f80;color:#b5c99f}.stock.empty:before{content:'↻';font-size:35px}.stock.empty:disabled:before{content:'—'}.card{height:var(--ch);width:100%;position:absolute;left:0;top:0;background:#f5f0de;color:#203836;border:1px solid #d8d0b9;box-shadow:0 2px 4px #0a241f70;border-radius:8px;padding:0;user-select:none;overflow:hidden;text-align:left;touch-action:manipulation}.card.red{color:#bd443e}.card.back{background:repeating-linear-gradient(45deg,#234f51 0 3px,#316065 3px 5px);border:3px solid #e3dfc6;box-shadow:0 1px 2px #0a241f55}.corner{position:absolute;top:5px;left:6px;display:flex;flex-direction:column;align-items:center;font:bold 21px Georgia,serif;line-height:.9}.corner em{font-style:normal;font-size:18px;margin-top:4px}.reverse{top:auto;left:auto;right:6px;bottom:5px;transform:rotate(180deg)}.center{position:absolute;inset:0;display:grid;place-items:center;font:52px Georgia,serif;pointer-events:none}.court{font-size:45px;border:1px solid #c8ba8e66;inset:23% 20%;border-radius:50%;color:inherit}.column{position:relative;min-height:var(--ch);border:1px dashed #aec39b38;border-radius:9px}.selected{outline:3px solid #f7d676;outline-offset:-3px;filter:brightness(1.06)}.hinted{box-shadow:0 0 0 3px #f2cc71,0 0 20px #f2cc7166}.destination{outline:3px dashed #f2cc71;outline-offset:3px}footer{padding:20px 0 0}#status{font-size:12px;color:#bfd0bc;text-align:center;min-height:30px;margin:0 0 10px;line-height:1.5}.actions{display:flex;justify-content:center;gap:10px}.actions button{min-width:110px}dialog{color:#eee9d6;background:#153b31;border:1px solid #a6c09d;border-radius:20px;padding:26px;width:min(440px,calc(100% - 30px));max-height:90dvh;overflow:auto}dialog::backdrop{background:#062b23bd}dialog h2{font-size:27px}dialog p{color:#bfd0bc;line-height:1.6;font-size:14px}.primary{background:#d9c884;color:#193e31;font-weight:bold;margin-top:12px;width:100%}.eyebrow{letter-spacing:3px;font-size:10px}[hidden]{display:none!important}@media(min-width:1000px){.table{--cw:125px}}@media(max-width:600px){header{height:54px;padding:6px 10px}header strong{font-size:15px;letter-spacing:2px}header a{font-size:11px}nav button{font-size:11px;padding:8px}main{padding:0 7px 12px;min-height:calc(100dvh - 54px)}.table{--cw:calc((100vw - 38px)/7);--step:25px;--down:12px}.top,.columns{gap:4px}.top{margin-bottom:15px}.slot,.card{border-radius:5px}.stock{border-width:3px}.card.back{border-width:2px}.corner{top:4px;left:4px;font-size:16px;flex-direction:row;gap:3px}.corner em{font-size:13px;margin:0}.reverse{display:none}.center{font-size:29px}.court{font-size:25px}.foundation:before{font-size:25px}.stats{padding:13px 3px;letter-spacing:1px}.stats b{font-size:14px;margin-left:3px}.actions button{font-size:12px;min-width:90px;padding:12px}footer{padding-top:16px}#status{font-size:11px}}@media(max-height:500px) and (min-width:601px){header{height:40px;padding:4px 14px}header strong{font-size:14px}header small{display:none}nav button{padding:5px 10px}main{min-height:calc(100dvh - 40px);max-width:850px}.table{--cw:55px;--step:18px;--down:8px}.stats{padding:7px}.top{margin-bottom:10px}.corner{font-size:15px;flex-direction:row;gap:3px;top:3px;left:4px}.corner em{font-size:12px;margin:0}.reverse{display:none}.center{font-size:27px}.court{font-size:23px}.stock{border-width:2px}.slot,.card{border-radius:5px}footer{padding-top:10px}#status{margin:0;min-height:20px;font-size:10px}.actions button{padding:7px;font-size:11px}}
.empty-found,.empty-col{position:absolute;inset:0;width:100%;height:100%;opacity:0}.empty-found:focus-visible,.empty-col:focus-visible{opacity:1;background:#12372f33}main{width:min(100%,963px)}
.corner{flex-direction:row;gap:4px}.corner em{margin-top:0}
@media(max-height:500px) and (min-width:601px){.table{--cw:62px}.top,.columns{grid-template-columns:repeat(7,62px);justify-content:center}}

.playing-card{display:block;width:100%;height:100%;pointer-events:none}.card{background:#fffdf5}.card.back,.stock{background-color:#254875;background-image:repeating-linear-gradient(45deg,transparent 0 4px,#ffffff16 4px 5px),repeating-linear-gradient(-45deg,transparent 0 4px,#ffffff16 4px 5px);border-color:#faf6e7}.stock.empty{background:#12372e77}.card.back:after{content:'';position:absolute;inset:4px;border:1px solid #c9d6e4aa;border-radius:3px}
@media(min-width:601px) and (min-height:501px){.table{--step:38px}}
