/* Klondike uses the existing LemonYak shell with a dedicated card table. */
body[data-game="50"] .game-layout { max-width: 1120px; }
body[data-game="50"] .game-surface { padding: 20px; }
body[data-game="50"] #play,body[data-game="50"] #message { max-width:none; }
.sol-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:18px; }
.sol-actions button { border:1px solid var(--line); background:white; color:var(--ink); border-radius:100px; padding:9px 15px; font-weight:700; font-size:13px; }
.sol-actions button:hover:not(:disabled) { background:#fff0f6; }
.sol-actions button:disabled { opacity:.45; cursor:default; }
.sol-actions [hidden] { display:none; }
.sol-timer { margin-left:auto; color:var(--muted); font-size:14px; font-variant-numeric:tabular-nums; }
.sol-board { --gap:12px; --card-width:100px; --card-height:142px; --down-step:14px; --up-step:29px; padding:24px; border-radius:20px; background:#dfeee7; border:1px solid #c8dfd3; min-height:480px; box-sizing:border-box; }
.sol-top,.sol-columns { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:var(--gap); }
.sol-top { margin-bottom:32px; }
.sol-pile { position:relative; min-width:0; height:var(--card-height); }
.sol-columns { align-items:start; }
.sol-slot,.sol-card { width:100%; height:var(--card-height); padding:0; border-radius:6px; box-sizing:border-box; }
.sol-slot { display:flex; justify-content:center; align-items:center; border:1px dashed #8ebba4; background:#d2e5db; color:#719b84; font:32px Georgia,serif; }
.sol-card { position:absolute; top:0; left:0; border:0; background:#fff; color:#252836; box-shadow:0 1px 3px #1a3c2826; cursor:grab; touch-action:none; overflow:hidden; user-select:none; font-family:Georgia,"Times New Roman",serif; }
.sol-red { color:#ff2d62; }
.sol-back { position:relative; background:#d7e9fc; border:0; overflow:hidden; }
.sol-card.sol-back { position:absolute; }
.sol-board button:disabled { opacity:1; cursor:default; }
.sol-board button.sol-slot { box-shadow:none; }
body[data-game="50"] .sol-board button:active { transform:none; translate:none; }
/* The 64×64 source has a 42×60 card at (11,2). Show that rectangle directly. */
.sol-art { position:absolute; display:block; width:152.380952%; height:106.666667%; max-width:none; left:-26.190476%; top:-3.333333%; pointer-events:none; image-rendering:pixelated; }
.sol-mobile-index { display:none; }
.sol-desktop-suit { position:absolute; top:5px; right:7px; font:19px/1 Georgia,serif; pointer-events:none; }
.sol-board button.sol-card:disabled { opacity:1; }
.sol-board button.sol-card:not(:disabled) { box-shadow:0 1px 3px #1a3c2826; }
.sol-board .sol-legal button.sol-card:last-child { box-shadow:0 0 0 2px #b32867; }
.sol-waste .sol-card { left:calc(var(--fan,0) * 22%); width:100%; }
.sol-legal .sol-slot { border:2px solid #b32867; background:#c6ddcf; }
.sol-legal .sol-card:last-child { box-shadow:0 0 0 2px #b32867; }
.sol-board button.sol-card.sol-selected { box-shadow:0 0 0 2px #e13b88; }
.sol-hint,.sol-hint-destination .sol-slot,.sol-hint-destination .sol-card:last-child { outline:3px solid #bb7b11; outline-offset:2px; }
.sol-card:focus-visible,.sol-slot:focus-visible,.sol-actions button:focus-visible { outline:3px solid #aa245f; outline-offset:2px; }
.sol-dragging { opacity:.3; }
.sol-drag-ghost { position:fixed; z-index:10000; pointer-events:none; transform:rotate(2deg); }
.sol-controls-note { font-size:13px; line-height:1.6; color:var(--muted); margin:16px 0 0; }
.preview-klondike { display:flex; align-items:center; justify-content:center; gap:7px; }
.preview-klondike .mini-tile { position:relative; width:44px; height:63px; padding:0; min-width:0; min-height:0; border:0; background:transparent; border-radius:0; box-shadow:none; }
.preview-klondike .mini-content { position:static; }
.preview-klondike .preview-before { display:block; }
.preview-klondike img { position:absolute; width:152.380952%; height:106.666667%; max-width:none; left:-26.190476%; top:-3.333333%; object-fit:fill; image-rendering:pixelated; }
.preview-klondike .mini-tile:nth-child(1) { transform:rotate(-8deg); }
.preview-klondike .mini-tile:nth-child(2) { transform:translateY(5px); }
.preview-klondike .mini-tile:nth-child(3) { transform:rotate(8deg); }
@media(max-width:700px) {
 body[data-game="50"] .game-surface { padding:12px; }
 .sol-board { padding:14px; --up-step:26px; --down-step:12px; min-height:420px; }

 .sol-controls-note { font-size:12px; }
}
@media(max-width:500px) {
 body[data-game="50"] .game-layout { padding-left:8px; padding-right:8px; }
 body[data-game="50"] .game-surface { padding:8px; }
 .sol-board { --gap:5px; --up-step:29px; --down-step:10px; padding:8px; border-radius:12px; min-height:390px; }
 .sol-top { margin-bottom:22px; }
 .sol-slot,.sol-card { border-radius:4px; }
 .sol-desktop-suit { display:none; }
 .sol-mobile-index { display:flex; position:absolute; top:2px; left:2px; right:2px; height:14px; justify-content:space-between; align-items:center; padding:0 2px; background:#fff; font:12px/1 Arial,sans-serif; }
 .sol-mobile-index b { font-weight:700; }


 .sol-slot { font-size:22px; }
 .sol-actions { gap:5px; }
 .sol-actions button { padding:8px 10px; font-size:12px; }
 .sol-timer { font-size:12px; }
}

@media(max-width:500px) { .preview-klondike .mini-tile { width:32px; min-width:0; height:48px; font-size:15px; } }
