/* Shared styles for the "Собери букву" runtime. */
.game-root,
.game-root * {
  box-sizing: border-box;
}

.game-root {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #edf3ef;
  touch-action: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
}

.made-abvgd-shell,
.made-abvgd-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
}

.made-abvgd-shell {
  background: #edf3ef;
}

.made-letters-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 32, 51, 0.28);
  backdrop-filter: blur(5px);
}

.made-letters-overlay[hidden] {
  display: none;
}

.made-letters-card {
  width: min(92vw, 520px);
  border: 3px solid rgba(255, 255, 255, 0.94);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 38px);
  background: rgba(255, 252, 245, 0.97);
  box-shadow: 0 28px 70px rgba(21, 32, 48, 0.30);
  color: #294861;
  text-align: center;
}

.made-letters-kicker {
  margin: 0 0 6px;
  color: #548267;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.made-letters-card h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 900;
  line-height: 1.05;
}

.made-letters-card p:not(.made-letters-kicker) {
  margin: 14px auto 0;
  color: #547086;
  font-size: clamp(15px, 1.9vw, 18px);
  font-weight: 700;
  line-height: 1.45;
}

.made-letters-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.made-letters-button,
.made-letters-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 0 21px;
  background: #e17a6e;
  color: #ffffff;
  font: 900 16px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(225, 122, 110, 0.28);
  cursor: pointer;
}

.made-letters-link {
  background: #568ec8;
  box-shadow: 0 10px 20px rgba(86, 142, 200, 0.26);
}

.made-letters-button:focus-visible,
.made-letters-link:focus-visible {
  outline: 3px solid #294861;
  outline-offset: 3px;
}

.made-letters-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.made-abvgd-error {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #edf3ef;
  color: #8d4038;
  font: 800 18px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .made-abvgd-shell * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
