.sol-table { container-type: inline-size; background: #0e5a4e; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.2px); background-size: 5px 5px; border-radius: 14px; padding: 12px; min-height: 480px; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
@media (max-width: 560px) { .sol-table { border-radius: 0; padding: 8px 6px; margin: 0 -8px; } }
.sol-top, .sol-tableau { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1.6cqw; }
.sol-top { margin-bottom: 3cqw; }
.sol-pile { position: relative; aspect-ratio: 5 / 7; border-radius: 1.2cqw; }
.sol-pile.stock, .sol-pile.foundation, .sol-pile.waste { border: 2px dashed rgba(255,255,255,.25); }
.sol-pile.stock { cursor: pointer; }
.sol-pile.column { aspect-ratio: auto; min-height: calc((100cqw - 9.6cqw) / 7 * 1.4 + var(--h, 0) * 4.6cqw); }
.sol-ph, .sol-recycle { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.35); font: 800 5cqw var(--font-display); }

.card { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 5 / 7; background: #fffdf8; border-radius: 1.2cqw; border: 1px solid #b9b3a4; box-shadow: 0 1px 2px rgba(0,0,0,.35); color: #14211e; cursor: pointer; overflow: hidden; }
.column .card { top: calc(var(--y, 0) * 4.6cqw); }
@media (min-width: 900px) { .column .card { top: calc(var(--y, 0) * 3.6cqw); } .sol-pile.column { min-height: calc((100cqw - 9.6cqw) / 7 * 1.4 + var(--h, 0) * 3.6cqw); } }
.card.red { color: #c8323a; }
.card.back { background: #c8323a; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.18) 0 3px, transparent 3px 7px); border: 2px solid #fffdf8; cursor: default; }
.card .cr { position: absolute; left: 6%; top: 3%; font: 800 clamp(.7rem, 3.6cqw, 1.35rem)/1 var(--font-display); display: flex; flex-direction: column; align-items: center; letter-spacing: -0.04em; }
.card .cr i { font-style: normal; font-size: .85em; margin-top: 1px; }
.card .cs { position: absolute; right: 8%; bottom: 4%; font-size: clamp(1.1rem, 6.5cqw, 2.6rem); line-height: 1; }
.waste.fan .card { left: calc(var(--fan, 0) * 2.6cqw); }
.card.dragging { z-index: 50; box-shadow: 0 10px 20px rgba(0,0,0,.35); cursor: grabbing; transition: none; }
.card.shake { animation: sol-shake .3s ease; }
@keyframes sol-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.sol-table.won .foundation .card { animation: sol-win 1s ease infinite alternate; }
@keyframes sol-win { to { transform: translateY(-6px); } }
