/* ─────────────────────────────────────────────────────────────────
   SupportWave (응원 물결) — section-scoped styles
   ───────────────────────────────────────────────────────────────── */

.sw-section {
  position: relative;
  padding: var(--section-y) 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(29, 78, 216, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 88% 80%, rgba(16, 185, 129, 0.07) 0%, transparent 50%),
    var(--c-bg);
  overflow: hidden;
  scroll-margin-top: 84px;
}
.sw-section::after {
  content: "心";
  position: absolute; top: -40px; right: -30px;
  font-family: var(--font-serif);
  font-size: clamp(220px, 28vw, 380px);
  font-weight: 900; line-height: 1;
  color: rgba(11, 31, 58, 0.045);
  pointer-events: none; user-select: none;
  z-index: 0;
}
[data-dark="1"] .sw-section::after { color: rgba(255,255,255,0.05); }
.sw-section > .container { position: relative; z-index: 1; }
#sw-form { scroll-margin-top: 92px; }

/* ── Background support wind ────────────────────────────────────── */
.sw-wind-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.sw-wind-chip {
  position: absolute;
  top: var(--sw-wind-top);
  left: -70vw;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  max-width: min(440px, 78vw);
  padding: 8px 14px 8px 10px;
  border: 1px solid rgba(29, 78, 216, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: rgba(11, 31, 58, 0.56);
  box-shadow: 0 16px 40px rgba(11, 31, 58, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translate3d(0, var(--sw-wind-y), 0);
  animation: sw-wind-drift var(--sw-wind-duration) linear infinite;
  animation-delay: var(--sw-wind-delay);
  will-change: transform, opacity;
}
.sw-wind-mark {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}
.sw-wind-msg {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}
@keyframes sw-wind-drift {
  0% {
    opacity: 0;
    transform: translate3d(-8vw, var(--sw-wind-y), 0) rotate(-0.5deg);
  }
  8%, 86% { opacity: 0.82; }
  100% {
    opacity: 0;
    transform: translate3d(178vw, var(--sw-wind-end-y), 0) rotate(0.5deg);
  }
}
@media (max-width: 640px) {
  .sw-wind-chip {
    max-width: 72vw;
    padding: 7px 12px 7px 9px;
    background: rgba(255, 255, 255, 0.66);
  }
  .sw-wind-msg { font-size: 12px; }
  .sw-wind-mark { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .sw-wind-layer { display: none; }
}

/* ── Hero-adjacent support flow ────────────────────────────────── */
.hero-support-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 28%, rgba(59, 130, 246, 0.94) 0%, rgba(29, 78, 216, 0.94) 48%, rgba(14, 75, 163, 0.96) 100%);
}
.hero-support-stage .hero {
  overflow: hidden;
}
.hero-support-stage .hero-bg-grad {
  background:
    radial-gradient(ellipse at 50% 28%, rgba(59, 130, 246, 0.88) 0%, rgba(29, 78, 216, 0.9) 48%, rgba(14, 75, 163, 0.9) 100%);
}
.hero-support-stage .hero-bg-grad::after,
.hero-support-stage .hero-bg-navy::after,
.hero-support-stage .hero-bg-light::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 31, 58, 0.06) 0%, rgba(11, 31, 58, 0) 26%, rgba(11, 31, 58, 0.08) 100%),
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.11), transparent 42%);
}
.hero-support-stage .hero-grid,
.hero-support-stage .hero-marquee {
  position: relative;
  z-index: 3;
}
.sw-hero-flow {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 0 -52px;
  padding: 14px 0 66px;
  border-top: 1px solid rgba(29, 78, 216, 0.12);
  background:
    radial-gradient(circle at 18% 20%, rgba(29, 78, 216, 0.1), transparent 34%),
    radial-gradient(circle at 82% 62%, rgba(20, 184, 166, 0.13), transparent 36%),
    linear-gradient(180deg,
      rgba(248, 250, 252, 0.96) 0%,
      rgba(239, 246, 255, 0.9) 38%,
      rgba(14, 165, 233, 0.36) 72%,
      rgba(29, 78, 216, 0.68) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
  z-index: 4;
}
.hero-support-stage .sw-hero-flow {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  pointer-events: none;
  z-index: 1;
}
.sw-hero-flow::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 78px;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(239, 246, 255, 0) 0%,
      rgba(14, 165, 233, 0.16) 42%,
      rgba(29, 78, 216, 0.48) 100%);
  z-index: 1;
}
.hero-support-stage .sw-hero-flow::after {
  top: 0;
  height: auto;
  background:
    linear-gradient(180deg,
      rgba(37, 99, 235, 0.18) 0%,
      rgba(29, 78, 216, 0.05) 34%,
      rgba(14, 75, 163, 0.1) 100%);
  z-index: 3;
}
.sw-hero-flow .sw-wind-layer {
  opacity: 0.28;
  mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
.hero-support-stage .sw-hero-flow .sw-wind-layer {
  opacity: 0.4;
  z-index: 1;
  mask-image:
    linear-gradient(180deg, transparent 0%, #000 10%, #000 86%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.hero-support-stage .sw-hero-flow .sw-wind-chip {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.52);
  box-shadow: none;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.hero-support-stage .sw-hero-flow .sw-wind-chip:nth-child(6n + 1) { top: 34%; }
.hero-support-stage .sw-hero-flow .sw-wind-chip:nth-child(6n + 2) { top: 45%; }
.hero-support-stage .sw-hero-flow .sw-wind-chip:nth-child(6n + 3) { top: 56%; }
.hero-support-stage .sw-hero-flow .sw-wind-chip:nth-child(6n + 4) { top: 68%; }
.hero-support-stage .sw-hero-flow .sw-wind-chip:nth-child(6n + 5) { top: 80%; }
.hero-support-stage .sw-hero-flow .sw-wind-chip:nth-child(6n) { top: 92%; }
.hero-support-stage .sw-hero-flow .sw-wind-mark {
  background: rgba(16, 185, 129, 0.18);
  color: rgba(219, 253, 238, 0.8);
}
.sw-hero-flow .sw-float-layer { z-index: 3; }
.hero-support-stage .sw-hero-flow .sw-float-layer {
  opacity: 0.32;
  z-index: 2;
}
.sw-hero-flow-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - var(--pad-x) * 2));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.hero-support-stage .sw-hero-flow-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  display: block;
  z-index: 2;
}
.sw-hero-flow-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 13px 8px 10px;
  border: 1px solid rgba(29, 78, 216, 0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  color: var(--c-text);
  box-shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
  white-space: nowrap;
}
.hero-support-stage .sw-hero-flow-cta {
  display: none;
}
.sw-hero-flow-cta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--c-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.sw-hero-flow-cta strong {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}
.sw-hero-flow-marquee {
  position: relative;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.hero-support-stage .sw-hero-flow-marquee {
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(20px, 3.8vh, 42px);
  opacity: 0.36;
  mix-blend-mode: screen;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.sw-hero-flow-track {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  animation: sw-hero-flow 54s linear infinite;
}
.hero-support-stage .sw-hero-flow-track {
  animation-duration: 70s;
}
.sw-hero-flow-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(420px, 74vw);
  min-height: 40px;
  padding: 8px 13px 8px 9px;
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: var(--c-text);
  box-shadow: 0 8px 26px rgba(11, 31, 58, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-support-stage .sw-hero-flow-chip {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.68);
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.sw-hero-flow-mark {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-size: 11px;
  font-weight: 900;
}
.hero-support-stage .sw-hero-flow-mark {
  background: rgba(16, 185, 129, 0.22);
  color: rgba(220, 252, 231, 0.9);
}
.sw-hero-flow-msg {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
}
.sw-hero-flow-meta {
  flex: 0 0 auto;
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 800;
}
@keyframes sw-hero-flow {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 768px) {
  .sw-hero-flow {
    margin-top: 0;
    margin-bottom: -42px;
    padding: 10px 0 52px;
  }
  .sw-hero-flow::after { height: 60px; }
  .sw-hero-flow-inner {
    width: min(100%, calc(100% - 20px));
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .sw-hero-flow-cta {
    justify-self: start;
    min-height: 38px;
    padding: 7px 11px 7px 8px;
  }
  .sw-hero-flow-cta strong { font-size: 12px; }
  .sw-hero-flow-chip {
    max-width: 82vw;
    min-height: 36px;
    padding: 7px 11px 7px 8px;
  }
  .sw-hero-flow-msg { font-size: 13px; }
  .sw-hero-flow-meta { display: none; }
  .hero-support-stage .sw-hero-flow {
    margin: 0;
    padding: 0;
  }
  .hero-support-stage .sw-hero-flow-marquee {
    top: 34px;
    opacity: 0.34;
  }
  .hero-support-stage .sw-hero-flow-chip {
    max-width: 84vw;
    background: rgba(255, 255, 255, 0.13);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sw-hero-flow-track { animation: none; }
}

/* ── Header ─────────────────────────────────────────────────────── */
.sw-hd { max-width: 720px; margin-bottom: 32px; }
.sw-hd .sec-title { margin-top: 12px; }

/* ── Stats strip ────────────────────────────────────────────────── */
.sw-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin: 24px 0 32px;
  padding: 20px 24px;
  background: var(--c-bg-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 720px) {
  .sw-stats { grid-template-columns: repeat(2, 1fr); padding: 16px; gap: 12px; }
}
.sw-stat { display: flex; flex-direction: column; gap: 4px; }
.sw-stat-num {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800; letter-spacing: -0.02em;
  color: var(--c-primary);
}
[data-dark="1"] .sw-stat-num { color: var(--c-text); }
.sw-stat-lbl { font-size: 12px; color: var(--c-muted); font-weight: 600; letter-spacing: -0.005em; }
.sw-stat-cta { justify-content: center; align-items: stretch; }
.sw-stat-cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-primary);
  color: #fff; border: 0;
  padding: 12px 16px; border-radius: 12px;
  font-weight: 700; font-size: 14px; cursor: pointer;
  text-decoration: none;
  transition: transform .15s, background .2s;
  width: 100%;
}
.sw-stat-cta-btn:hover { background: var(--c-primary-2); color: #fff; }
.sw-stat-cta-btn:active { transform: scale(0.97); }

.sw-form-note {
  margin: 8px 0 0; font-size: 12px; color: var(--c-muted); line-height: 1.6;
}

/* ── Top: Featured + Form/CTA ───────────────────────────────────── */
.sw-top {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px;
  margin-bottom: 28px;
  align-items: stretch;
}
@media (max-width: 900px) { .sw-top { grid-template-columns: 1fr; } }

.sw-feat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.sw-feat .sw-card.is-featured {
  background: linear-gradient(150deg, var(--c-primary) 0%, var(--c-primary-2) 100%);
  color: #fff; border: 0;
  box-shadow: var(--shadow-lg);
  padding: 28px 28px 24px;
}
.sw-feat .sw-card-msg {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700; line-height: 1.45;
  letter-spacing: -0.02em;
  color: #fff;
}
.sw-feat .sw-card-meta { color: rgba(255,255,255,0.75); }
.sw-feat .sw-card-region, .sw-feat .sw-card-time { color: rgba(255,255,255,0.65); }
.sw-feat .sw-react-btn {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.16);
  color: #fff;
}
.sw-feat .sw-react-btn:hover { background: rgba(255,255,255,0.18); }
.sw-feat .sw-react-btn.is-active {
  background: #fff; color: var(--c-primary);
  border-color: #fff;
}
.sw-feat-more {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  flex: 1;
}
.sw-mini-card {
  min-width: 0;
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(29, 78, 216, 0.12);
  border-radius: 16px;
  background:
    radial-gradient(circle at 14% 16%, rgba(29, 78, 216, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(11,31,58,0.06);
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
[data-dark="1"] .sw-mini-card {
  background:
    radial-gradient(circle at 14% 16%, rgba(29, 78, 216, 0.18), transparent 36%),
    rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.09);
}
.sw-mini-card:hover,
.sw-mini-card:active,
.sw-mini-card.is-ambient {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(11,31,58,0.1);
  border-color: rgba(29,78,216,0.22);
}
.sw-mini-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  color: var(--c-primary-2);
  letter-spacing: 0.06em;
}
.sw-mini-kicker em {
  font-style: normal;
  color: var(--c-muted);
}
.sw-mini-msg {
  margin: 0;
  color: var(--c-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sw-mini-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 700;
}
.sw-mini-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.sw-mini-actions button,
.sw-mini-total {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid var(--c-line);
  background: var(--c-bg-2);
  color: var(--c-text);
  font-size: 12px;
  font-weight: 900;
}
.sw-mini-actions button {
  cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s;
}
.sw-mini-actions button:hover,
.sw-mini-actions button:active,
.sw-mini-actions button.is-active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}
.sw-mini-actions button:active { transform: scale(0.96); }
.sw-mini-total {
  margin-left: auto;
  color: var(--c-muted);
  background: transparent;
}
@media (max-width: 900px) {
  .sw-feat-more {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sw-feat-more .sw-mini-card:nth-child(n + 3) {
    display: none;
  }
}
@media (max-width: 600px) {
  .sw-feat-more {
    grid-template-columns: 1fr;
  }
  .sw-feat-more .sw-mini-card:nth-child(n + 2) {
    display: none;
  }
}

/* ── Card ───────────────────────────────────────────────────────── */
.sw-card {
  position: relative;
  background: var(--c-bg-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  padding: 22px 22px 18px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.sw-card:hover,
.sw-card:active,
.sw-card.is-ambient {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.sw-card.is-ambient {
  border-color: rgba(29, 78, 216, 0.26);
}

/* 첫 진입 entrance — 카드가 차례로 부드럽게 등장.
   :nth-child로 가벼운 stagger (40ms 간격, 최대 8장까지). */
@keyframes sw-card-enter {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sw-card:not(.reveal-prep) { animation: sw-card-enter 0.42s ease-out both; }
.sw-card:nth-child(1) { animation-delay: 40ms; }
.sw-card:nth-child(2) { animation-delay: 80ms; }
.sw-card:nth-child(3) { animation-delay: 120ms; }
.sw-card:nth-child(4) { animation-delay: 160ms; }
.sw-card:nth-child(5) { animation-delay: 200ms; }
.sw-card:nth-child(6) { animation-delay: 240ms; }
.sw-card:nth-child(7) { animation-delay: 280ms; }
.sw-card:nth-child(8) { animation-delay: 320ms; }
@media (prefers-reduced-motion: reduce) {
  .sw-card { animation: none; }
}

.sw-card-featured {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  padding: 4px 10px;
  background: rgba(255,255,255,0.18);
  color: #FDE68A;
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sw-card-featured-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #FDE68A; box-shadow: 0 0 0 3px rgba(253, 230, 138, 0.25);
}

.sw-card-msg {
  margin: 0;
  font-size: 17px; font-weight: 600; line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--c-text);
}
.sw-card-meta {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 13px; color: var(--c-muted);
}
.sw-card-nick { font-weight: 700; color: var(--c-primary); }
[data-dark="1"] .sw-card-nick { color: var(--c-text); }
.sw-card-region { font-weight: 500; }
.sw-card-time { font-size: 12px; opacity: 0.85; }
.sw-card-dot { opacity: 0.5; }

.sw-card-reactions {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--c-line);
}

/* ── Pending receipt ────────────────────────────────────────────── */
.sw-receipts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin: -6px 0 18px;
}
.sw-receipt {
  padding: 14px 16px;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.11), rgba(29, 78, 216, 0.07));
  box-shadow: var(--shadow-sm);
  animation: sw-receipt-in 0.32s ease-out both;
}
.sw-receipt-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #047857;
  font-size: 12px;
  font-weight: 900;
}
.sw-receipt-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #10B981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}
.sw-receipt p {
  margin: 7px 0 4px;
  color: var(--c-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}
.sw-receipt div:last-child {
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 600;
}
@keyframes sw-receipt-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Reaction button ────────────────────────────────────────────── */
.sw-react-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600;
  color: var(--c-text);
  cursor: pointer;
  transition: transform .12s, background .15s, border-color .15s;
  min-height: 36px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.sw-react-btn:hover,
.sw-react-btn:active,
.sw-react-btn.is-ambient { background: var(--c-sky); border-color: var(--c-primary-2); }
.sw-react-btn.is-ambient .sw-react-emoji {
  animation: sw-react-pop 0.9s cubic-bezier(.2,.8,.3,1);
}
.sw-react-btn.is-ambient .sw-react-count {
  color: var(--c-primary-2);
  font-weight: 800;
}
@keyframes sw-react-pop {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.28) rotate(-6deg); }
  65% { transform: scale(0.96) rotate(3deg); }
}
.sw-react-btn:active { transform: scale(0.96); }
.sw-react-btn.is-active {
  background: rgba(29, 78, 216, 0.1);
  color: var(--c-primary-2);
  border-color: var(--c-primary-2);
}
.sw-react-btn[data-type="heart"].is-active { background: rgba(225, 29, 72, 0.1); color: #BE123C; border-color: #BE123C; }
.sw-react-btn[data-type="clap"].is-active  { background: rgba(245, 158, 11, 0.12); color: #B45309; border-color: #F59E0B; }
.sw-react-emoji { display: inline-block; font-size: 16px; line-height: 1; }
.sw-react-label { font-weight: 700; }
.sw-react-count {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  padding-left: 4px; opacity: 0.85;
}

/* ── Form ───────────────────────────────────────────────────────── */
.sw-form-wrap, .sw-cta-wrap {
  background: var(--c-bg-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--shadow-sm);
}
.sw-form-eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; color: var(--c-mint);
}
.sw-form-hd h3 {
  margin: 6px 0 0; font-size: 22px; font-weight: 800;
  letter-spacing: -0.02em;
}

.sw-form { display: flex; flex-direction: column; gap: 14px; }
.sw-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 520px) { .sw-form-row { grid-template-columns: 1fr; } }
.sw-form-field { display: flex; flex-direction: column; gap: 6px; }
.sw-form-label {
  font-size: 12px; font-weight: 700; color: var(--c-text);
  display: flex; align-items: center; justify-content: space-between;
}
.sw-form-label em { color: #DC2626; font-style: normal; }
.sw-form-label .sw-opt { color: var(--c-muted); font-size: 11px; font-weight: 500; }
.sw-form-counter {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--c-muted);
}
.sw-form-counter.is-over { color: #DC2626; }
.sw-form-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  font: inherit;
  color: var(--c-text);
  outline: 0;
  transition: border-color .15s, background .15s;
}
.sw-form-input:focus {
  border-color: var(--c-primary-2);
  background: var(--c-bg-2);
}
.sw-form-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }

.sw-form-consents {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px;
  background: var(--c-bg);
  border-radius: 10px;
}
.sw-form-consent-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.sw-form-consents .sw-form-agree { padding: 6px 0; background: transparent; }
.sw-form-consents .sw-form-agree + .sw-form-agree {
  border-top: 1px dashed var(--c-line);
  padding-top: 10px;
}
.sw-form-consents .sw-form-agree a {
  color: var(--c-primary-2); text-decoration: underline; text-underline-offset: 2px;
}

.sw-form-agree {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px;
  background: var(--c-bg);
  border-radius: 10px;
  font-size: 12px; color: var(--c-muted); line-height: 1.5;
}
.sw-form-agree input[type="checkbox"] {
  margin-top: 3px;
  width: 16px; height: 16px;
  accent-color: var(--c-primary-2);
}
.sw-form-agree strong { color: var(--c-text); font-weight: 700; }
.sw-form-agree em { font-style: normal; opacity: 0.85; }

.sw-turnstile-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}
.sw-form-turnstile {
  display: flex;
  justify-content: center;
  min-height: 65px;
  width: 100%;
}
.sw-form-turnstile:empty { display: none; }
.sw-turnstile-status {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-muted);
  text-align: center;
}
.sw-turnstile-error .sw-turnstile-status,
.sw-turnstile-expired .sw-turnstile-status,
.sw-turnstile-missing .sw-turnstile-status {
  color: #B91C1C;
}
.sw-turnstile-retry {
  border: 1px solid rgba(29, 78, 216, 0.28);
  background: var(--c-bg-2);
  color: var(--c-primary-2);
  border-radius: 999px;
  padding: 5px 10px;
  min-height: auto;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.sw-turnstile-retry:hover,
.sw-turnstile-retry:active {
  background: var(--c-primary-2);
  color: #fff;
}

/* 간소화된 폼 고지 + 자세히보기 모달 */
.sw-form-fineprint {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--c-muted);
  line-height: 1.55;
}
.sw-form-fineprint strong { color: var(--c-text); font-weight: 600; }
.sw-form-fineprint-more {
  margin-left: 6px;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 11.5px;
  color: var(--c-primary-2);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  font-family: inherit;
}

.sw-modal-backdrop {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(11, 31, 58, 0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: sw-modal-fade 0.18s ease-out;
}
@keyframes sw-modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.sw-modal {
  position: relative;
  width: 100%; max-width: 480px;
  max-height: 85vh; overflow-y: auto;
  background: var(--c-bg-2);
  border-radius: 14px;
  padding: 26px 24px 22px;
  box-shadow: 0 20px 60px rgba(11, 31, 58, 0.22);
  animation: sw-modal-rise 0.2s ease-out;
}
@keyframes sw-modal-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sw-modal-close {
  position: absolute; top: 10px; right: 12px;
  width: 32px; height: 32px;
  background: transparent; border: 0;
  font-size: 22px; line-height: 1; cursor: pointer;
  color: var(--c-muted);
}
.sw-modal-close:hover { color: var(--c-text); }
.sw-modal-title {
  margin: 0 0 16px;
  font-size: 16px; font-weight: 800; letter-spacing: -0.01em;
}
.sw-modal-dl { margin: 0 0 16px; font-size: 13px; line-height: 1.6; }
.sw-modal-dl dt {
  font-weight: 700; color: var(--c-text);
  margin-top: 10px;
}
.sw-modal-dl dt:first-child { margin-top: 0; }
.sw-modal-dl dd { margin: 2px 0 0; color: var(--c-muted); }
.sw-modal-links {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 14px;
  background: var(--c-bg-tint, #F1F5F9);
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 12.5px;
}
.sw-modal-links a {
  color: var(--c-primary-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sw-modal-confirm {
  width: 100%;
  padding: 11px;
  background: var(--c-primary);
  color: #fff; border: 0; border-radius: 8px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: inherit;
  min-height: 44px;
}

.sw-form-error {
  padding: 10px 12px;
  background: rgba(220, 38, 38, 0.08);
  color: #B91C1C;
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
}
[data-dark="1"] .sw-form-error { background: rgba(220, 38, 38, 0.15); color: #FCA5A5; }

.sw-form-actions { display: flex; gap: 8px; justify-content: flex-end; }
.sw-form-cancel {
  padding: 11px 16px;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  font-weight: 600; color: var(--c-muted);
  cursor: pointer;
}
.sw-form-submit {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  background: var(--c-primary);
  color: #fff; border: 0;
  border-radius: 10px;
  font-weight: 700; font-size: 14px;
  cursor: pointer;
  transition: background .2s, transform .12s;
}
.sw-form-submit:hover:not(:disabled),
.sw-form-submit:active:not(:disabled) { background: var(--c-primary-2); }
.sw-form-submit:active { transform: scale(0.97); }
.sw-form-submit:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── Form done state ────────────────────────────────────────────── */
.sw-form-done {
  text-align: center;
  padding: 24px 12px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.sw-form-done-stamp {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  background: var(--c-mint); color: #fff;
  border-radius: 16px;
  font-family: var(--font-serif); font-weight: 900; font-size: 26px;
  box-shadow: 0 8px 22px -8px rgba(16, 185, 129, 0.5);
  margin-bottom: 8px;
}
.sw-form-done h4 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.sw-form-done p { margin: 0; color: var(--c-muted); font-size: 14px; line-height: 1.55; }
.sw-form-done-btn {
  margin-top: 10px;
  padding: 9px 16px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  font-weight: 700; font-size: 13px; color: var(--c-text);
  cursor: pointer;
}

/* ── CTA wrap (when form hidden) ────────────────────────────────── */
.sw-cta-wrap {
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(160deg, var(--c-bg-2) 0%, var(--c-sky) 100%);
}
.sw-cta-quote {
  position: relative;
  font-family: var(--font-serif);
  font-size: 19px; font-weight: 700; line-height: 1.5;
  color: var(--c-primary);
  padding: 8px 0 4px;
  max-width: 280px;
}
[data-dark="1"] .sw-cta-quote { color: var(--c-text); }
.sw-cta-quote-mark {
  display: block;
  font-size: 38px; line-height: 0.6;
  color: var(--c-mint);
  margin-bottom: 4px;
}
.sw-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  background: var(--c-primary);
  color: #fff; border: 0;
  border-radius: var(--r-pill);
  font-weight: 800; font-size: 15px; letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 12px 28px -10px rgba(11, 31, 58, 0.4);
  transition: transform .15s, background .2s;
}
.sw-cta-btn:hover,
.sw-cta-btn:active { background: var(--c-primary-2); }
.sw-cta-btn:active { transform: scale(0.97); }
.sw-cta-note {
  font-size: 12px; color: var(--c-muted); line-height: 1.55;
  text-align: center;
}

/* ── Toolbar ────────────────────────────────────────────────────── */
.sw-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  margin-bottom: 16px;
}
.sw-toolbar-sort { display: flex; gap: 4px; }
.sw-sort {
  padding: 7px 14px;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 700; color: var(--c-muted);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.sw-sort:hover,
.sw-sort:active { color: var(--c-text); }
.sw-sort.is-active {
  background: var(--c-primary);
  color: #fff; border-color: var(--c-primary);
}
.sw-toolbar-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sw-toolbar-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 700; color: var(--c-primary-2);
}
.sw-toolbar-link:hover { gap: 6px; }
.sw-admin-toggle {
  position: relative;
  padding: 7px 14px;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 700; color: var(--c-muted);
  cursor: pointer;
}
.sw-admin-toggle.is-on {
  background: rgba(245, 158, 11, 0.12);
  color: #B45309; border-color: #F59E0B;
}
.sw-admin-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  margin-left: 6px;
  background: #DC2626; color: #fff;
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 800;
}

/* ── Grid ───────────────────────────────────────────────────────── */
.sw-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 900px) { .sw-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sw-grid { grid-template-columns: 1fr; } }

/* ── Ticker ─────────────────────────────────────────────────────── */
.sw-ticker {
  position: relative;
  margin: 0 calc(-1 * var(--pad-x));
  padding: 14px 0;
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.sw-ticker-track {
  display: flex; gap: 32px;
  width: max-content;
  animation: sw-ticker 90s linear infinite;
  white-space: nowrap;
}
.sw-ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--c-text);
}
.sw-ticker-emoji { color: #DC2626; }
.sw-ticker-msg { font-weight: 600; }
.sw-ticker-meta { color: var(--c-muted); font-size: 13px; }

@keyframes sw-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .sw-ticker-track { animation: none; }
}

/* ── Float Layer ────────────────────────────────────────────────── */
.sw-float-layer {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}
.sw-float-emoji {
  position: absolute;
  bottom: 0;
  transform: translateY(0) scale(0.85);
  opacity: 0;
  filter: drop-shadow(0 4px 8px rgba(11, 31, 58, 0.18));
  animation-name: sw-float;
  animation-timing-function: cubic-bezier(.2,.7,.3,1);
  animation-fill-mode: forwards;
  will-change: transform, opacity;
  user-select: none;
}
@keyframes sw-float {
  0%   { transform: translateY(20px) scale(0.85); opacity: 0; }
  15%  { opacity: 0.9; }
  60%  { opacity: 0.85; }
  100% { transform: translateY(-280px) scale(1.18) rotate(8deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sw-float-emoji { animation: none; opacity: 0; }
  .sw-react-btn.is-ambient .sw-react-emoji { animation: none; }
}

/* ── Admin panel ────────────────────────────────────────────────── */
.sw-admin {
  margin-top: 24px;
  background: var(--c-bg-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.sw-admin-hd {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.sw-admin-eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: #B45309; letter-spacing: 0.12em;
}
.sw-admin-hd h4 { margin: 4px 0 0; font-size: 18px; font-weight: 800; }
.sw-admin-reset {
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  font-size: 12px; font-weight: 700; color: var(--c-muted);
  cursor: pointer;
}
.sw-admin-reset:hover { color: #DC2626; border-color: #DC2626; }

.sw-admin-table {
  display: flex; flex-direction: column;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  overflow: hidden;
}
.sw-admin-row {
  display: grid;
  grid-template-columns: 110px 140px 1fr 130px 200px;
  gap: 12px;
  padding: 10px 14px;
  align-items: center;
  font-size: 13px;
  border-top: 1px solid var(--c-line);
}
.sw-admin-row:first-child { border-top: 0; }
.sw-admin-th {
  background: var(--c-bg);
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--c-muted);
}
@media (max-width: 900px) {
  .sw-admin-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px;
  }
  .sw-admin-th { display: none; }
}
.sw-admin-status {
  display: inline-flex; align-items: center;
  padding: 3px 9px;
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 800;
}
.sw-admin-status-pending { background: rgba(245, 158, 11, 0.16); color: #B45309; }
.sw-admin-status-hidden  { background: rgba(100, 116, 139, 0.16); color: #475569; }
.sw-admin-status-deleted { background: rgba(220, 38, 38, 0.14); color: #B91C1C; }
.sw-admin-feat {
  display: inline-block; margin-left: 6px;
  font-size: 10px; font-weight: 700;
  color: #B45309;
}
.sw-admin-meta { font-size: 12px; }
.sw-admin-meta strong { color: var(--c-text); font-weight: 700; }
.sw-admin-time { font-size: 11px; color: var(--c-muted); margin-top: 2px; }
.sw-admin-msg { font-size: 13px; color: var(--c-text); line-height: 1.5; }
.sw-admin-counts { font-family: var(--font-mono); font-size: 12px; color: var(--c-muted); }
.sw-admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.sw-admin-btn {
  padding: 5px 9px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 6px;
  font-size: 11px; font-weight: 700;
  color: var(--c-text);
  cursor: pointer;
  min-height: auto;
}
.sw-admin-btn:hover { border-color: var(--c-primary-2); color: var(--c-primary-2); }
.sw-admin-btn-go { background: var(--c-mint); color: #fff; border-color: var(--c-mint); }
.sw-admin-btn-go:hover { background: #047857; color: #fff; border-color: #047857; }
.sw-admin-btn-danger:hover { color: #DC2626; border-color: #DC2626; }
