/* KY-CORE v0.1 – iOS Overlay Styles */
/* Scope: /pwa-ky/assets/overlay.css */
.ky-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  z-index: 9999;
  animation: kyFadeIn 150ms ease;
}

.ky-overlay.ky-hide { animation: kyFadeOut 150ms ease forwards; }

@keyframes kyFadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes kyFadeOut { from { opacity: 1 } to { opacity: 0 } }

.ky-card {
  width: min(92vw, 460px);
  background: #fff;
  color: #111;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  padding: 20px 20px 16px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  transform: translateY(6px);
}

.ky-close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  opacity: .6;
}

.ky-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.ky-text {
  margin: 12px 0 4px;
  font-size: 15px;
  line-height: 1.5;
}

.ky-hint {
  color: #666;
  font-size: 12px;
  margin-top: 6px;
}

.ky-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.ky-btn {
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}

.ky-row { display: flex; }
.ky-gap-sm { gap: 10px; }
.ky-align-center { align-items: center; }

.ky-emoji { font-size: 20px; }

.ky-chip {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  height: 22px;
  border-radius: 999px;
  background: #f1f3f5;
  border: 1px solid #e9ecef;
  font-weight: 600;
}