:root{color:#111;font-synthesis:none;background:#176843;font-family:system-ui,-apple-system,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;margin:0}button,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible,select:focus-visible{outline-offset:2px;outline:3px solid #ffd568}[hidden]{display:none!important}.page-header{background:#fff;padding:10px 12px 8px}.game-heading{margin-left:-4px}.breadcrumb{color:#000;margin:0 0 4px 4px;font-size:.84rem}.breadcrumb a{color:#000}.title-row{flex-wrap:wrap;align-items:baseline;gap:18px;display:flex}h1{margin:0;font-size:2rem;line-height:1.2}.text-button{color:#111;background:0 0;border:0;border-radius:3px;padding:3px 0}.text-button:hover:not(:disabled){text-decoration:underline}.text-button:disabled{opacity:.4}.toolbar{flex-wrap:wrap;align-items:center;gap:4px 16px;margin-top:10px;font-size:.88rem;display:flex}.difficulty-label{align-items:center;gap:8px;display:flex}.start-controls{flex-wrap:wrap;align-items:center;gap:16px;display:flex}.tableau-area{position:relative}.start-panel{place-items:center;padding:16px;display:grid;position:absolute;inset:0}.start-panel .start-controls{background:#fff;border:1px solid #aabbb0;border-radius:4px;flex-direction:column;justify-content:center;align-items:center;max-width:100%;padding:18px;box-shadow:0 3px 12px #0002}.start-panel #start{color:#fff;text-align:center;background:#176843;padding:10px 16px}select{color:#111;background:#fff;border:1px solid #a1ada5;border-radius:3px;padding:4px 6px}.game-main{max-width:1200px;padding:20px 12px 28px}.board-scroll{padding:3px 3px 12px;overflow-x:auto}.board{--overlap:24px;--card-height:calc((max(640px, min(100vw - 30px, 1170px)) - 54px) / 10 * 1008 / 712);min-width:640px;min-height:max(280px, calc(var(--card-height) + var(--reserved-depth,10) * var(--overlap)));color:#fff;grid-template-columns:repeat(10,minmax(0,1fr));gap:6px;display:grid}.column{min-width:0;height:calc(var(--card-height) + var(--depth) * var(--overlap));position:relative}.slot{aspect-ratio:712/1008;background:#ffffff08;border:1px dashed #b5cdbf;border-radius:3px;width:100%}.card{top:calc(var(--position) * var(--overlap));aspect-ratio:712/1008;touch-action:none;-webkit-user-select:none;user-select:none;background:0 0;border:0;border-radius:3px;width:100%;padding:0;position:absolute;left:0}.card img,.complete-slot img{object-fit:fill;pointer-events:none;border-radius:3px;width:100%;height:100%;display:block}.card-back{background:repeating-linear-gradient(45deg,#164e83 0 5px,#3474ad 5px 9px);border:2px solid #eee;border-radius:3px;width:100%;height:100%;display:block}.card.selected img{outline-offset:-2px;outline:2px solid #ffda58}.drag-hidden{visibility:hidden}.drag-ghost{pointer-events:none;z-index:1000;position:fixed}.drag-ghost img{border-radius:3px;width:100%;position:absolute;left:0;box-shadow:0 3px 9px #0004}.deal-layer{pointer-events:none;z-index:900;position:fixed;inset:0;overflow:hidden}.dealing-card{object-fit:fill;transform-origin:0 0;will-change:transform;border-radius:3px;display:block;position:absolute;box-shadow:0 3px 9px #0004}.lower-row{color:#fff;justify-content:space-between;align-items:flex-end;gap:18px;margin-top:22px;display:flex}.completed-area{min-width:0}.completed-area p{margin:0 0 7px;font-size:.85rem}.completed{flex-wrap:wrap;gap:5px;display:flex}.complete-slot{aspect-ratio:712/1008;border:1px dashed #aac5b5;border-radius:3px;width:36px}.complete-slot:has(img){border:0}.stock-button{color:#fff;white-space:nowrap;background:0 0;border:0;border-radius:3px;justify-items:center;gap:6px;padding:0;font-size:.85rem;display:grid}.stock-button .card-back{width:62px;height:88px}.stock-button:disabled{opacity:.65}.stock-button.is-empty .card-back{background:0 0;border:1px dashed #b5cdbf}.status{color:#e6efe8;min-height:3em;margin:18px 0 0;font-size:.85rem;line-height:1.5}dialog{color:#111;border:1px solid #73897b;border-radius:4px;width:min(620px,100% - 24px);max-height:calc(100vh - 32px);padding:22px;overflow:auto}dialog::backdrop{background:#0008}dialog h2{margin-top:0;font-size:1.35rem}dialog h3{margin-bottom:5px}dialog p{line-height:1.75}.dialog-actions{flex-wrap:wrap;justify-content:center;gap:10px;margin-top:22px;display:flex}.dialog-actions button{color:#fff;background:#176843;border:0;border-radius:3px;padding:10px 18px}@media (width<=600px){.game-main{padding:14px 5px 24px}.board{--overlap:22px}.toolbar{gap:4px 12px}.start-panel{padding:12px}.start-panel .start-controls{gap:12px;padding:14px}.complete-slot{width:24px}.completed{gap:3px}.stock-button .card-back{width:45px;height:64px}.lower-row{gap:8px}}
