.screen-skeleton {
  --sk-fill: #e1e5ee;
  --sk-paper: #fafbfd;
  position: absolute;
  inset: 0;
  z-index: 8;
  overflow: hidden;
  background: #edf0f7;
  color-scheme: light;
  overscroll-behavior: contain;
  touch-action: none;
}
.screen-sk-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.screen-sk-back {
  position: absolute;
  z-index: 1;
  top: clamp(16px, 4vw, 26px);
  left: max(clamp(16px, 4vw, 26px), calc(50% - 294px));
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e2e6ee;
  color: #333946;
  cursor: pointer;
  touch-action: manipulation;
}
.screen-sk-back::before {
  content: '';
  width: 10px;
  height: 10px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: translateX(2px) rotate(45deg);
}
.screen-sk-back:focus-visible { outline: 2px solid #6c7287; outline-offset: 2px; }
.screen-skeleton.can-go-back .screen-sk-title {
  margin: 8px 0 8px 56px;
  height: 28px;
}
.screen-sk-shapes {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(12px, 2.4vh, 20px);
  height: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 26px);
  box-sizing: border-box;
}
.screen-sk-title {
  width: 44%;
  max-width: 196px;
  height: clamp(24px, 4vh, 34px);
  flex: none;
  border-radius: 8px;
  background: #d7dce7;
}
@media (prefers-reduced-motion: no-preference) {
  .screen-sk-title { animation: screen-sk-breathe 1.5s ease-in-out infinite alternate; }
  @keyframes screen-sk-breathe { to { opacity: .48; } }
}
.screen-sk-list, .screen-sk-grid, .screen-sk-options { display: grid; gap: 10px; }
.screen-sk-list { padding: 8px 14px; gap: 0; border-radius: 18px; background: var(--sk-paper); }
.screen-sk-row { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.screen-sk-row + .screen-sk-row { border-top: 1px solid #e8ebf2; }
.screen-sk-icon { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--sk-fill); }
.screen-sk-row > div { flex: 1; }
.screen-sk-line { display: block; width: 56%; height: 10px; border-radius: 5px; background: var(--sk-fill); }
.screen-sk-line.short { width: 34%; height: 7px; margin-top: 8px; }
.screen-sk-grid, .screen-sk-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.screen-sk-card { display: block; border-radius: 14px; padding: 10px; background: var(--sk-paper); }
.screen-sk-card > i:first-child { display: block; width: 100%; aspect-ratio: 1.45; margin-bottom: 12px; border-radius: 8px; background: var(--sk-fill); }
.screen-sk-scene { flex: 0 1 43%; min-height: 72px; border-radius: 17px; background: var(--sk-fill); }
.screen-sk-action, .screen-sk-options i { height: clamp(38px, 6vh, 52px); flex-shrink: 0; border-radius: 12px; background: #d8dfe9; }
.screen-sk-board {
  display: grid;
  width: min(100%, 38vh, 335px);
  max-width: 100%;
  align-self: center;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.screen-sk-board i, .screen-sk-reel i { aspect-ratio: 1; border-radius: 6px; background: var(--sk-fill); }
[data-screen-skeleton="match3"] .screen-sk-board { grid-template-columns: repeat(7, 1fr); width: min(100%, 56vh, 420px); }
[data-screen-skeleton="word"] .screen-sk-action { width: 88%; align-self: center; }
.screen-sk-reel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: auto; }
.screen-sk-basket { width: 34%; height: min(13vh, 90px); align-self: center; border-radius: 9px 9px 38% 38%; background: var(--sk-fill); }
[data-screen-skeleton="roulette"] .screen-sk-action { margin-top: auto; }
