/* fromLanding=1 브릿지: Flutter 첫 프레임 전 HTML 스켈레톤 (이슈 토론 레이아웃) */

#bridge-skeleton {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  background: #ffffff;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", sans-serif;
  overflow: hidden;
  pointer-events: none;
}

html.from-landing #bridge-skeleton {
  display: flex;
  flex-direction: column;
}

#bridge-skeleton.is-hidden {
  opacity: 0;
  transition: opacity 200ms ease;
}

.bridge-sk-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid #f2f2f2;
}

.bridge-sk-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f5f5f5 0%, #ebebeb 50%, #f5f5f5 100%);
  background-size: 200% 100%;
  animation: bridge-sk-shimmer 1.2s ease-in-out infinite;
}

.bridge-sk-title {
  width: 72px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f5f5f5 0%, #ebebeb 50%, #f5f5f5 100%);
  background-size: 200% 100%;
  animation: bridge-sk-shimmer 1.2s ease-in-out infinite;
}

.bridge-sk-body {
  flex: 1;
  overflow: hidden;
  padding: 20px 16px 0;
}

.bridge-sk-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.bridge-sk-pill {
  width: 64px;
  height: 28px;
  border-radius: 14px;
  background: linear-gradient(90deg, #f5f5f5 0%, #ebebeb 50%, #f5f5f5 100%);
  background-size: 200% 100%;
  animation: bridge-sk-shimmer 1.2s ease-in-out infinite;
}

.bridge-sk-line {
  height: 14px;
  border-radius: 4px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #f5f5f5 0%, #ebebeb 50%, #f5f5f5 100%);
  background-size: 200% 100%;
  animation: bridge-sk-shimmer 1.2s ease-in-out infinite;
}

.bridge-sk-line.w90 { width: 90%; }
.bridge-sk-line.w75 { width: 75%; }
.bridge-sk-line.w60 { width: 60%; }
.bridge-sk-line.h20 { height: 20px; margin-bottom: 14px; }

.bridge-sk-tabs {
  display: flex;
  gap: 24px;
  margin: 24px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f2f2f2;
}

.bridge-sk-tab {
  width: 40px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f5f5f5 0%, #ebebeb 50%, #f5f5f5 100%);
  background-size: 200% 100%;
  animation: bridge-sk-shimmer 1.2s ease-in-out infinite;
}

.bridge-sk-tab.active {
  width: 48px;
  background: linear-gradient(90deg, #e8e8e8 0%, #d8d8d8 50%, #e8e8e8 100%);
  background-size: 200% 100%;
}

.bridge-sk-footer {
  flex-shrink: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid #f2f2f2;
}

.bridge-sk-button {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f0e6f8 0%, #e6d4f4 50%, #f0e6f8 100%);
  background-size: 200% 100%;
  animation: bridge-sk-shimmer 1.2s ease-in-out infinite;
}

@keyframes bridge-sk-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
