/* speed-cards · HD tuning for the shared card kit, all under html.hdc (classic returns with ?hd=0 or the perf guard). */
html.hdc .sc-hand .sc-card.ok { box-shadow: 0 0 0 3px #fde047, 0 0 16px 3px #fde04799, 0 10px 14px -4px #0008; }
html.hdc .sc-hand .sc-card.bad { filter: saturate(.6) brightness(.85); }
html.hdc .sc-hand .sc-card.empty { background: transparent !important; box-shadow: none; }
html.hdc .sc-back { box-shadow: 0 1px 2px #0006; }
html.hdc .sc-pile.glow::after { box-shadow: 0 0 0 3px #fde047, 0 0 16px 3px #fde04788; }

/* Full screen finish: larger touch targets, safe areas, felt depth and a soft table light. Layout fit itself is done by fs-fit. */
html.pip-immersive .sc-board, html.pip-native .sc-board { padding-left: max(8px, env(safe-area-inset-left)); padding-right: max(8px, env(safe-area-inset-right)); padding-bottom: max(8px, env(safe-area-inset-bottom)); }
html.pip-immersive .sc-lvl, html.pip-native .sc-lvl, html.pip-immersive .sc-over .btn, html.pip-native .sc-over .btn { min-height: 48px; min-width: 48px; }
html.pip-immersive .hud .btn, html.pip-native .hud .btn { min-height: 44px; }
html.pip-native .facts, html.pip-native #sc-chain-guide, html.pip-native #speed-depth-gameplay, html.pip-native #speed-depth-replay, html.pip-native .pip-actions { display: none !important; }
html.hdc .sc-board { background-image: radial-gradient(ellipse at 50% 38%, #ffffff14 0, #0000 62%), radial-gradient(ellipse at 50% 100%, #0006 0, #0000 70%), linear-gradient(#0f5132, #14532d); }
html.hdc .sc-pile { filter: drop-shadow(0 6px 6px #0006); }
html.hdc .sc-side.has { box-shadow: 0 3px 0 #0b3d26, 0 6px 8px #0006; }
html.hdc .sc-over { backdrop-filter: blur(2px); }
html.hdc .sc-over h2 { letter-spacing: .02em; text-shadow: 0 2px 0 #0006; }
@media (orientation: landscape) and (max-height: 520px) {
  html.pip-immersive .sc-over { gap: 6px; padding: 8px; }
  html.pip-immersive .sc-over p { font-size: .8rem; }
  html.pip-immersive .sc-stats { display: none; }
}
