/*
@media screen and (orientation: portrait) {
  body::before {
    content: "📱 기기를 가로로 돌려주세요";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 99999;
  }
}
*/

/* PWA 모달 오버레이 */
#pwa-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  animation: fadeInOverlay 0.3s ease-out;
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* PWA 설치 배너 스타일 */
#pwa-install-banner {
  display: none;
  position: fixed;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(150deg, #3ebba8 0%, #329b8b 100%);
  color: white;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 10000;
  width: 90%;
  max-width: 400px;
  box-sizing: border-box;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateX(-50%) translateY(-40%);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(-50%);
    opacity: 1;
  }
}

#pwa-install-banner .banner-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  text-align: center;
}

#pwa-install-banner .banner-text {
  width: 100%;
}

#pwa-install-banner h3 {
  margin: 0 0 5px 0;
  font-size: 17px;
  font-weight: bold;
}

#pwa-install-banner p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

#pwa-install-banner .banner-buttons {
  display: flex;
  gap: 10px;
  width: 100%;
}

#pwa-install-banner button {
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

#install-button {
  background: white;
  color: #349385;
}

#install-button:hover {
  transform: scale(1.05);
}

#pwa-banner-description .kbd-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12) inset;
  white-space: pre-line;
}

#pwa-banner-description .pwa-note {
  display: block;
  margin-top: 6px;
  opacity: 0.9;
  font-size: 0.90em;
}