/* The arcade's start card: a big centred Play over the live scene, so it is plain
   when a game is waiting. The scene stays sharp and moving and takes clicks around the card;
   only a soft shade sits behind the words. Same in every game; start.js builds it.
   It sits under the bottom bar (z 15) and the panels (z 30). */
.sc {
  position: fixed; inset: 0; z-index: 12; display: grid; place-items: center; padding: 24px 16px 120px;
  opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
  font-family: "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; text-align: center;
}
.sc.on { opacity: 1; }
.sc.on .sc-in { pointer-events: auto; }
.sc-in { position: relative; display: grid; justify-items: center; gap: 14px; max-width: 520px;
  transform: translateY(10px) scale(0.98); transition: transform 0.45s cubic-bezier(.2, .8, .2, 1); }
.sc.on .sc-in { transform: none; }
/* behind the words only: a shade with an eased falloff (many stops, so no visible edge) and a blur
   that builds toward the middle (three backdrop layers, each masked tighter and blurring harder).
   Past the shade's edge the game is untouched. */
.sc-in::before { content: ""; position: absolute; inset: -90px -160px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side,
    rgba(2, 4, 10, 0.46) 0%, rgba(2, 4, 10, 0.44) 12%, rgba(2, 4, 10, 0.39) 25%, rgba(2, 4, 10, 0.32) 38%,
    rgba(2, 4, 10, 0.24) 50%, rgba(2, 4, 10, 0.16) 62%, rgba(2, 4, 10, 0.09) 74%, rgba(2, 4, 10, 0.04) 86%, rgba(2, 4, 10, 0) 100%); }
.sc-blur { position: absolute; inset: -90px -160px; z-index: -2; pointer-events: none; }
.sc-blur i { position: absolute; inset: 0; }
.sc-blur i:nth-child(1) { backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  mask-image: radial-gradient(closest-side, #000 45%, transparent 95%); -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 95%); }
.sc-blur i:nth-child(2) { backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  mask-image: radial-gradient(closest-side, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 75%); }
.sc-blur i:nth-child(3) { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  mask-image: radial-gradient(closest-side, #000 15%, transparent 55%); -webkit-mask-image: radial-gradient(closest-side, #000 15%, transparent 55%); }
.sc h2 { margin: 0; font: 600 64px/1 "Rajdhani", "Inter", system-ui, sans-serif; letter-spacing: 0.01em; color: #fff;
  text-shadow: 0 0 28px rgba(90, 150, 255, 0.45), 0 2px 18px rgba(0, 0, 0, 0.6); text-wrap: balance; }
.sc-play {
  position: relative; appearance: none; margin-top: 18px; display: inline-flex; align-items: center; gap: 14px; cursor: pointer;
  font: 600 24px/1 "Inter", system-ui, sans-serif; color: #fff;
  padding: 20px 44px 20px 38px; border-radius: 999px;
  border: 1px solid rgba(90, 150, 255, 0.7); background: rgba(90, 150, 255, 0.28);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);   /* frosted: the scene goes softest right under Play */
  box-shadow: 0 0 0 0 rgba(90, 150, 255, 0.5), 0 18px 50px -18px rgba(90, 150, 255, 0.8);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  animation: sc-pulse 2.2s ease-out infinite;
}
.sc-play svg { width: 18px; height: 18px; fill: currentColor; }
.sc-play:hover { background: rgba(90, 150, 255, 0.42); border-color: rgba(140, 190, 255, 0.95); transform: scale(1.03); }
.sc-play:active { transform: scale(0.98); }
.sc-play:focus-visible { outline: 2px solid rgba(160, 200, 255, 0.9); outline-offset: 4px; }
@keyframes sc-pulse {
  0% { box-shadow: 0 0 0 0 rgba(90, 150, 255, 0.45), 0 18px 50px -18px rgba(90, 150, 255, 0.8); }
  70%, 100% { box-shadow: 0 0 0 22px rgba(90, 150, 255, 0), 0 18px 50px -18px rgba(90, 150, 255, 0.8); }
}
.sc-best { margin: 2px 0 0; min-height: 1em; font: 500 14px/1 "Inter", system-ui, sans-serif; color: rgba(205, 222, 255, 0.6); font-variant-numeric: tabular-nums; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7); }
.sc-best:empty { display: none; }
/* the game's bar stays above the card and usable (Kepesh-Yakshi's bar is its own #bar) */
body.sc-up #bar { z-index: 15; }
/* while the card is up, the bar's own start button steps aside */
body.sc-wait .sc-hide { display: none !important; }
@media (max-width: 720px) {
  .sc-in::before, .sc-blur { inset: -70px -40px; }
  .sc h2 { font-size: 46px; }
  .sc-play { font-size: 24px; padding: 20px 40px 19px 34px; }
}
@media (prefers-reduced-motion: reduce) { .sc-play { animation: none; } .sc, .sc-in { transition: none; } }
