/* 선거 SNS 포스터 스튜디오 — CEO급 1080×1080 (캡처·PNG 업로드용) */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  width: 1080px;
  height: 1080px;
  overflow: hidden;
}
body {
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 화면 미리보기: 1080 고정 캔버스를 뷰포트에 맞춤 (PNG 캡처 시 ?capture=1 또는 인쇄) */
.preview-stage {
  width: 1080px;
  height: 1080px;
  flex-shrink: 0;
}
@media screen {
  html.preview-mode,
  html.preview-mode body {
    width: 100%;
    min-height: 100dvh;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 12px 0 24px;
    background: #0a0a0a;
  }
  html.preview-mode .preview-stage {
    transform: scale(min(1, calc((100vw - 24px) / 1080)));
    transform-origin: top center;
  }
}
html.capture-mode,
html.capture-mode body {
  width: 1080px;
  height: 1080px;
  padding: 0;
  display: block;
  overflow: hidden;
}
html.capture-mode .preview-stage {
  transform: none;
}

@media print {
  html.preview-mode,
  html.preview-mode body,
  html.capture-mode,
  html.capture-mode body {
    width: 1080px;
    height: 1080px;
    padding: 0;
    display: block;
    overflow: hidden;
  }
  html.preview-mode .preview-stage,
  html.capture-mode .preview-stage {
    transform: none;
  }
}

.canvas {
  position: relative;
  width: 1080px;
  height: 1080px;
  overflow: hidden;
}
.canvas__grid {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: linear-gradient(rgba(148, 163, 184, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.55) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.canvas__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.canvas__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 52px 56px 48px;
}
.top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.badge {
  font-size: 20px;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 999px;
  letter-spacing: -0.02em;
}
.badge--vote {
  font-variant-numeric: tabular-nums;
}
.party-mark {
  text-align: right;
  line-height: 1.15;
}
.party-mark__sub {
  font-size: 18px;
  font-weight: 700;
  opacity: 0.85;
}
.party-mark__name {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.headline {
  margin-top: 28px;
  font-size: 58px;
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.04em;
}
.headline em {
  font-style: normal;
}
.headline .accent {
  display: block;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.photo-frame {
  position: relative;
  margin-top: 24px;
  flex: 1;
  min-height: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.22);
}
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
}
.photo-caption {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 28px;
  z-index: 2;
  color: #fff;
}
.symbol-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: 8px;
}
.symbol-label {
  font-size: 26px;
  font-weight: 800;
  opacity: 0.92;
}
.symbol-num {
  font-size: 120px;
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.06em;
}
.candidate-name {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-top: 4px;
}
.candidate-role {
  font-size: 24px;
  font-weight: 600;
  margin-top: 8px;
  opacity: 0.88;
  line-height: 1.4;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.chip {
  font-size: 22px;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 14px;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.chip strong {
  font-weight: 900;
}
.bar {
  margin-top: auto;
  padding-top: 22px;
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.bar-sub {
  display: block;
  font-size: 22px;
  font-weight: 700;
  margin-top: 6px;
  opacity: 0.92;
}
.legal-strip {
  position: absolute;
  right: 20px;
  bottom: 16px;
  z-index: 5;
  text-align: right;
  line-height: 1.35;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.72);
  pointer-events: none;
}
.legal-strip .provider {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}
.legal-strip .ai-made {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #fbbf24;
  margin-top: 2px;
}
.joint-mark {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.88);
  pointer-events: none;
}
.size-note {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 600;
  opacity: 0.35;
  z-index: 6;
  pointer-events: none;
}
@media print {
  .size-note {
    display: none;
  }
}
