/* ============ Velo Solitaire on the painted plate (design/v2/solitaire.webp) ============
   Sizes use var(--u) = one plate pixel, so everything scales with the painting. */

.game-solitaire .vg-stage { touch-action: none; }

/* SCORE / MOVES numbers in the painted tabs */
.game-solitaire .so-num {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: calc(39 * var(--u));
  line-height: 1;
  color: #F4E8CC;
  text-shadow: 0 calc(2 * var(--u)) calc(3 * var(--u)) rgba(0, 0, 0, 0.7);
  pointer-events: none;
  z-index: 1;
}

/* Empty piles */
.game-solitaire .so-slot { z-index: 0; display: grid; place-items: center; border-radius: calc(10 * var(--u)); }
/* foundations: gold outline + faint suit, drawn sharp on the new felt (like the mockup) */
.game-solitaire .so-found-slot {
  border-radius: calc(12 * var(--u));
  background: rgba(0, 24, 12, 0.22);
  box-shadow: inset 0 0 0 calc(2.5 * var(--u)) rgba(222, 182, 96, 0.8), inset 0 0 calc(18 * var(--u)) rgba(0, 0, 0, 0.25);
}
.game-solitaire .so-found-slot span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(70 * var(--u));
  line-height: 1;
  color: rgba(214, 186, 112, 0.42);
}

/* Recreated felt: fresh green cloth cut to the exact table shape from the plate */
.game-solitaire .so-cloth {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / calc(180 * var(--u)) calc(180 * var(--u)),
    radial-gradient(ellipse calc(620 * var(--u)) calc(560 * var(--u)) at 50% 38%, rgba(255, 255, 255, 0.06), transparent 70%),
    radial-gradient(ellipse calc(760 * var(--u)) calc(820 * var(--u)) at 50% 40%, #15784C 0%, #0F6440 40%, #0A4F33 70%, #063A25 92%, #042E1D 100%);
  -webkit-mask-image: url("../../img/v2/solitaire/felt-mask.png");
  -webkit-mask-size: 100% 100%;
  mask-image: url("../../img/v2/solitaire/felt-mask.png");
  mask-size: 100% 100%;
}
.game-solitaire .so-tab-slot { box-shadow: inset 0 0 0 calc(2 * var(--u)) rgba(214, 178, 92, 0.22); background: rgba(0, 30, 12, 0.12); }
.game-solitaire .so-stock-slot { cursor: pointer; }
.game-solitaire .so-stock-slot span { opacity: 0; font-size: calc(64 * var(--u)); line-height: 1; color: #E8C46A; transition: opacity 0.2s; }
.game-solitaire .so-stock-slot.empty { box-shadow: inset 0 0 0 calc(3 * var(--u)) rgba(214, 170, 80, 0.55); background: rgba(0, 30, 12, 0.18); }
.game-solitaire .so-stock-slot.recycle span { opacity: 0.85; }

/* Cards: absolutely placed in plate pixels (solitaire.js) */
.game-solitaire .so-c {
  --cw: calc(115 * var(--u));
  touch-action: none;
  cursor: pointer;
}
.game-solitaire .so-c .vg-card {
  width: 100%;
  height: 100%;
  border-radius: calc(9 * var(--u));
  box-shadow: 0 0 0 calc(1 * var(--u)) rgba(0, 0, 0, 0.25), 0 calc(3 * var(--u)) calc(6 * var(--u)) rgba(0, 0, 0, 0.45);
}
.game-solitaire .so-c .vg-card:not(.painted) { background: linear-gradient(180deg, #FFFDF6, #F1E9D8); }
/* the mockup's number cards: big serif index top-left, one large suit low-centre */
.game-solitaire .so-c .vg-card .idx { left: 6%; top: 5%; font-family: "Times New Roman", Times, Georgia, serif; font-size: calc(var(--cw) * 0.44); line-height: 0.86; letter-spacing: -0.04em; }
.game-solitaire .so-c .vg-card .idx small { font-family: Georgia, serif; font-size: var(--so-small, 0.8em); margin-top: calc(7 * var(--u)); letter-spacing: 0; }
.game-solitaire .so-c .vg-card .big,
.game-solitaire .so-c .vg-card .ace { left: 57%; top: 56%; font-family: Georgia, serif; font-size: calc(var(--cw) * var(--so-big, 0.78)); }
/* one size per suit, so every big suit is as wide as the mockup's (about half the card) */
.game-solitaire .so-c .vg-card[data-card$="s"] { --so-big: 0.79; --so-small: 0.84em; }
.game-solitaire .so-c .vg-card[data-card$="h"] { --so-big: 0.7; --so-small: 0.76em; }
.game-solitaire .so-c .vg-card[data-card$="d"] { --so-big: 0.9; --so-small: 0.95em; }
.game-solitaire .so-c .vg-card[data-card$="c"] { --so-big: 0.69; --so-small: 0.74em; }
.game-solitaire .so-c.anim { transition: left 0.2s cubic-bezier(.3,.7,.4,1), top 0.2s cubic-bezier(.3,.7,.4,1); }
.game-solitaire .so-c.so-drag { transition: none; }
.game-solitaire .so-c.so-drag .vg-card { box-shadow: 0 0 0 calc(1 * var(--u)) rgba(0, 0, 0, 0.25), 0 calc(14 * var(--u)) calc(26 * var(--u)) rgba(0, 0, 0, 0.55); }
.game-solitaire .so-c.so-shake { animation: so-shake 0.3s; }
@keyframes so-shake { 25%, 75% { translate: calc(-8 * var(--u)) 0; } 50% { translate: calc(8 * var(--u)) 0; } }

.game-solitaire .so-hint { animation: so-hint 0.55s ease-in-out infinite alternate; }
.game-solitaire .so-c.so-hint .vg-card,
.game-solitaire .so-slot.so-hint { box-shadow: 0 0 0 calc(4 * var(--u)) #C58BFF, 0 0 calc(24 * var(--u)) calc(8 * var(--u)) rgba(170, 90, 255, 0.85); }
@keyframes so-hint { to { filter: brightness(1.15); } }

/* Painted UNDO / HINT / NEW GAME: transparent buttons on top */
.game-solitaire .so-tool { z-index: 2; border-radius: calc(26 * var(--u)); background: none; }
.game-solitaire .so-tool:active:not(:disabled) { background: rgba(255, 255, 255, 0.1); }
.game-solitaire .so-tool:disabled { cursor: default; background: rgba(8, 3, 16, 0.55); }

.game-solitaire .so-fine { font-family: -apple-system, "Helvetica Neue", Arial, sans-serif; font-weight: 400; font-size: calc(21 * var(--u)); color: #B3A9C4; transform: translateY(-50%); line-height: 1; }
/* the mockup's logo ends just above the SCORE / MOVES tabs (plate y ≈ 200): keep it off the painted labels on phones */
