/* Shared interactive card language, inspired by the Mini App game cards. */
:root { --card-motion: cubic-bezier(.22,1,.36,1); }
.stats > div, .steps > article, .safety-grid > article, .unified-card, .games-start, .cta-box {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(169,130,241,.23);
  border-radius: 28px;
  background: linear-gradient(145deg,rgba(251,246,255,.95),rgba(255,255,255,.98));
  box-shadow: 0 8px 28px rgba(43,25,83,.035);
  transition: transform .32s var(--card-motion), box-shadow .32s ease, border-color .32s ease, background .32s ease;
}
.stats > div:nth-child(3n+2), .steps > article:nth-child(3n+2), .safety-grid > article:nth-child(3n+2) {
  border-color: rgba(255,109,152,.25);
  background: linear-gradient(145deg,#fff5f8,#fff);
}
.stats > div:nth-child(3n+3), .steps > article:nth-child(3n+3), .safety-grid > article:nth-child(3n+3) {
  border-color: rgba(108,159,238,.25);
  background: linear-gradient(145deg,#f2f7ff,#fff);
}
@media (hover: hover) and (pointer: fine) {
  .stats > div:hover, .steps > article:hover, .safety-grid > article:hover,
  .unified-card:hover, .games-start:hover, .cta-box:hover {
    transform: translateY(-6px);
    border-color: rgba(160,107,255,.65);
    box-shadow: 0 20px 46px rgba(110,76,174,.13), 0 0 0 1px rgba(184,149,255,.12);
  }
  .steps > article:nth-child(3n+2):hover, .safety-grid > article:nth-child(3n+2):hover { border-color: rgba(255,109,152,.65); box-shadow: 0 20px 46px rgba(235,94,141,.13); }
  .steps > article:nth-child(3n+3):hover, .safety-grid > article:nth-child(3n+3):hover { border-color: rgba(108,159,238,.65); box-shadow: 0 20px 46px rgba(80,132,222,.13); }
}
.steps > article > span, .safety-grid .icon { transition: transform .3s var(--card-motion); }
@media (hover: hover) and (pointer: fine) {
  .steps > article:hover > span, .safety-grid > article:hover .icon { transform: translateY(-3px) scale(1.06); }
}
.button, .top-action { transition: transform .24s ease, box-shadow .24s ease, background-color .24s ease, border-color .24s ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover, .top-action:hover { transform: translateY(-2px); }
}
.button:focus-visible, .top-action:focus-visible, .game-card:focus-visible { outline: 3px solid #9568ee; outline-offset: 4px; }
@media (hover: none) {
  .stats > div:active, .steps > article:active, .safety-grid > article:active, .button:active { transform: scale(.99); }
}
@media (prefers-reduced-motion: reduce) {
  .stats > div, .steps > article, .safety-grid > article, .unified-card, .games-start, .cta-box,
  .steps > article > span, .safety-grid .icon, .button, .top-action { transition: none !important; transform: none !important; }
}

/* Stats: restore generous internal spacing after the shared card treatment. */
.stats > div {
  padding: 26px 28px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
}
.stats > div strong, .stats > div span {
  display: block;
  margin: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}
.stats > div strong { line-height: 1.2; }
.stats > div span { line-height: 1.45; }
@media (max-width: 800px) {
  .stats > div { padding: 22px 24px; min-height: 108px; }
}
