/* hazeljs-examples, Solitaire: the table, felt green; seven columns of cards whose width follows the table's (--cw) */
.felt { --cw: 64px; --ch: calc(var(--cw) * 1.4); --gap: calc(var(--cw) * 0.12); --fan-down: calc(var(--cw) * 0.16); --fan-up: calc(var(--cw) * 0.3);
  background: radial-gradient(ellipse at 50% 30%, #2f8a4e, #16532c 70%, #0d3a1e); border-radius: 12px; padding: var(--gap);
  margin: 10px 0; user-select: none; -webkit-user-select: none; touch-action: none; position: relative; min-height: calc(var(--ch) * 3.2); }
.felt .row { display: grid; grid-template-columns: repeat(7, var(--cw)); gap: var(--gap); justify-content: center; }
.felt .row + .row { margin-top: calc(var(--gap) * 1.6); }
.felt .slot { position: relative; width: var(--cw); height: var(--ch); border-radius: calc(var(--cw) * 0.07); }
.felt .slot.empty { border: 2px dashed rgba(255, 255, 255, 0.28); box-sizing: border-box; display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.4); font-size: calc(var(--cw) * 0.42); }
.felt .pile { position: relative; width: var(--cw); min-height: var(--ch); }
.felt .sc { position: absolute; left: 0; width: var(--cw); height: var(--ch); border-radius: calc(var(--cw) * 0.07); cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); background: #fff; transition: transform 0.12s; }
.felt .sc img { width: 100%; height: 100%; display: block; border-radius: inherit; pointer-events: none; }
.felt .sc.down { cursor: default; }
.felt .stock .sc { cursor: pointer; }
.felt .sc.hint { outline: 3px solid #fbbf24; outline-offset: 1px; }
.felt .slot.hint, .felt .pile.hint > .slot { outline: 3px solid #fbbf24; outline-offset: 1px; }
.felt .sc.nope { animation: sol-nope 0.28s; }
@keyframes sol-nope { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.felt .drag { position: fixed; z-index: 1000; pointer-events: none; }
.felt .drag .sc { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45); }
.felt .won { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px;
  background: rgba(8, 37, 21, 0.55); color: #fff; font-size: 1.4em; font-weight: 700; border-radius: 12px; text-align: center; }
.sol-info { margin: 4px 0 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.draw-pick { color: var(--muted); font-size: 0.92em; }
/* full screen: the controls on the left, the table filling the rest */
html.oracle-fs .solitaire-ui { grid-template-columns: minmax(200px, 0.55fr) minmax(0, 3fr); }
html.oracle-fs .solitaire-ui > .felt { grid-column: 2; grid-row: 1; align-self: stretch; margin: 0; min-height: 0; overflow: auto; }
.felt .slot.spacer { visibility: hidden; }
.felt .waste .sc.under { pointer-events: none; }
.felt .found .sc, .felt .waste .sc, .felt .stock .sc { top: 0; }
.felt .pile.hint .sc:last-child, .felt .found.hint { outline: 3px solid #fbbf24; outline-offset: 1px; }
/* ⚙️ Advanced: the card backs */
.backs-cap { margin: 10px 0 4px; font-size: 0.95em; }
.backs-themes, .backs-designs { display: flex; flex-wrap: wrap; gap: 8px; }
.back-theme, .back-design { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; width: 92px; font: inherit; font-size: 0.78em;
  line-height: 1.2; text-align: center; background: var(--paper); color: var(--ink); border: 2px solid var(--line); border-radius: 10px; cursor: pointer; }
.back-theme img, .back-design img { width: 54px; height: 76px; display: block; }
.back-theme.on, .back-design.on { border-color: var(--accent); }
