@import url("../js/hd-cards/hd-about.css");
/* pocket-solitaire - HD tuning, only under html.hdc (off with ?hd=0 or after the perf guard). */
html.hdc .card__face[data-hdc] .card-svg { visibility: hidden; }
html.hdc .card__face[data-hdc] { border: 0; }
html.hdc .card { filter: drop-shadow(0 3px 5px rgb(0 0 0 / .45)); }
html.hdc .card--waste-under { filter: brightness(.92) drop-shadow(0 3px 5px rgb(0 0 0 / .45)); }
html.hdc .card__face--front[data-hdc]::after { display: none; }   /* the SVG cardstock overlay would dull the atlas */

/* --- 2026-11-27 coach: progress chip + idle hint nudge --- */
.ps-coach-chip { font-size: .72rem; line-height: 1.3; color: #e8d9a8; opacity: .9; margin-top: 2px; }
.ps-coach-chip[hidden] { display: none; }
@keyframes ps-coach-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(255 214 102 / .55); } 50% { box-shadow: 0 0 0 7px rgb(255 214 102 / 0); } }
.ps-coach-nudge { animation: ps-coach-pulse 1.6s ease-in-out infinite; border-color: #ffd666; }
@media (prefers-reduced-motion: reduce) { .ps-coach-nudge { animation: none; box-shadow: 0 0 0 3px rgb(255 214 102 / .7); } }

/* --- 2026-11-27 pass 3: finish layer (CSS only; no per-frame work) --- */
/* Lamp light pooled over the felt, plus a darker rim, drawn once as a static layer. */
.table-felt::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(120% 70% at 50% -10%, rgb(255 244 200 / .16), transparent 60%),
    radial-gradient(140% 120% at 50% 50%, transparent 55%, rgb(0 0 0 / .38) 100%);
}
.table-felt > * { position: relative; z-index: 1; }
/* Foundation slots carry a faint suit mark so each pile reads as its suit before a card lands. */
.foundation-pile::before {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: calc(var(--card-width) * .62); line-height: 1; color: rgb(255 255 255 / .16);
  text-shadow: 0 1px 0 rgb(0 0 0 / .35); pointer-events: none;
}
#foundation-0::before { content: "\2660"; }
#foundation-1::before { content: "\2665"; }
#foundation-2::before { content: "\2663"; }
#foundation-3::before { content: "\2666"; }
.foundation-pile:has(.card)::before { content: none; }
/* Pill buttons: a little lift and a pressed state. */
.btn-pill { box-shadow: 0 2px 0 rgb(0 0 0 / .35), inset 0 1px 0 rgb(255 255 255 / .12); transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease; }
.btn-pill:active:not(:disabled) { transform: translateY(1px) scale(.98); box-shadow: 0 1px 0 rgb(0 0 0 / .35); }
.btn-pill { min-height: 44px; }
.hud-stat__value { font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 rgb(0 0 0 / .4); }
/* Result and stats sheets: a soft rise and a dimmed, blurred table behind. */
.overlay-backdrop { backdrop-filter: blur(3px); }
.modal-sheet { background: linear-gradient(180deg, #16223b, #0b1222); }
.modal-sheet h2 { letter-spacing: .01em; text-shadow: 0 2px 10px rgb(245 158 11 / .35); }
.stats-item { box-shadow: inset 0 1px 0 rgb(255 255 255 / .06); }
/* Full screen: keep the control row clear of the home bar and the dock. */
html.pip-immersive .bottom-bar { padding-bottom: env(safe-area-inset-bottom, 0px); }
html.pip-immersive .hub-bar, html.pip-immersive .playyard-ad { display: none !important; }
@media (prefers-reduced-motion: reduce) { .btn-pill { transition: none; } .overlay-backdrop { backdrop-filter: none; } }
