:root {
  --ink: #171717;
  --paper: #f7f5ef;
  --white: #ffffff;
  --yellow: #eee751;
  --yellow-deep: #d8d12e;
  --green: #244e42;
  --muted: #6b6b65;
  --line: #d9d6cd;
  --shadow: 0 20px 50px rgba(20, 20, 15, .10);
  --radius: 24px;
  --max-width: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.65;
  word-break: keep-all;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 70px;
  padding: 14px max(24px, calc((100vw - var(--max-width)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(247,245,239,.91);
  border-bottom: 1px solid rgba(23,23,23,.09);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.03em;
}
.brand-mark {
  color: var(--yellow-deep);
  font-size: 21px;
}
.header-cta {
  border: 0;
  border-radius: 999px;
  padding: 11px 19px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}

main > section, .info-strip, footer {
  max-width: var(--max-width);
  margin-inline: auto;
}

.hero {
  min-height: 720px;
  padding: 80px 24px 64px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 70px;
}
.eyebrow {
  margin: 0 0 17px;
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-size: clamp(54px, 7vw, 98px);
  line-height: .98;
  letter-spacing: -.075em;
}
.hero h1 em {
  position: relative;
  display: inline-block;
  margin-top: 14px;
  font-style: normal;
  z-index: 1;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -2%;
  right: -3%;
  bottom: 4px;
  height: .32em;
  background: var(--yellow);
  transform: rotate(-1deg);
}
.hero-description {
  max-width: 620px;
  margin: 34px 0 0;
  color: #3f3f3a;
  font-size: 19px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.button {
  min-height: 54px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.11); }
.button-primary { background: var(--ink); color: var(--white); }
.button-secondary { background: transparent; color: var(--ink); }
.button-full { width: 100%; border: 0; border-radius: 14px; }
.hero-note {
  max-width: 600px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.hero-visual {
  overflow: hidden;
  border-radius: 36px;
  background: var(--yellow);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}
.hero-visual img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

.info-strip {
  margin-bottom: 110px;
  padding: 28px 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  background: var(--ink);
  color: var(--white);
  border-radius: 24px;
}
.info-strip div { padding: 5px 20px; border-right: 1px solid rgba(255,255,255,.18); }
.info-strip div:last-child { border-right: 0; }
.info-strip span { display: block; color: var(--yellow); font-size: 13px; font-weight: 900; }
.info-strip strong { display: block; margin-top: 4px; font-size: 18px; }

.how-it-works { padding: 0 24px 130px; }
.section-heading h2,
.gallery-heading h2,
.closing-section h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -.055em;
}
.steps {
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
}
.steps li {
  min-height: 250px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.55);
}
.steps span { color: var(--green); font-weight: 900; }
.steps strong { display: block; margin-top: 44px; font-size: 22px; letter-spacing: -.035em; }
.steps p { margin: 10px 0 0; color: var(--muted); }

.gallery-section {
  max-width: none;
  padding: 110px max(24px, calc((100vw - var(--max-width)) / 2)) 140px;
  background: var(--white);
}
.gallery-heading {
  display: grid;
  grid-template-columns: 1fr .7fr;
  gap: 80px;
  align-items: end;
}
.gallery-heading > p { margin: 0 0 8px; color: var(--muted); font-size: 17px; }
.gallery-toolbar {
  margin: 46px 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tab, .shuffle-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 17px;
  background: var(--white);
  font-weight: 800;
  cursor: pointer;
}
.filter-tab.active { border-color: var(--ink); background: var(--ink); color: var(--white); }
.shuffle-button { color: var(--green); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 18px;
}
.story-card {
  overflow: hidden;
  border: 1px solid #e4e1d8;
  border-radius: 22px;
  background: var(--white);
  cursor: pointer;
  transition: transform .23s ease, box-shadow .23s ease;
}
.story-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.story-image-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; background: #ece9df; }
.story-image { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.story-card:hover .story-image { transform: scale(1.03); }
.category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(247,245,239,.91);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}
.story-content { padding: 22px; }
.story-content h3 { margin: 0; font-size: 23px; line-height: 1.3; letter-spacing: -.04em; }
.story-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 11px 0 0;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.story-meta {
  margin-top: 22px;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #eeeae0;
  color: #4c4c47;
  font-size: 13px;
  font-weight: 800;
}
.story-vote-state { color: var(--green); }
.empty-state { padding: 80px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state strong { font-size: 22px; }

.closing-section {
  margin: 120px auto;
  padding: 80px 24px;
  text-align: center;
}
.closing-section .button { margin-top: 30px; }

footer {
  padding: 36px 24px 55px;
  display: flex;
  align-items: center;
  gap: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
footer p { margin: 0; }
footer a { margin-left: auto; color: var(--muted); }

.modal {
  width: min(760px, calc(100vw - 28px));
  max-height: calc(100vh - 34px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 30px 100px rgba(0,0,0,.28);
}
.modal::backdrop { background: rgba(14,16,14,.72); backdrop-filter: blur(6px); }
.modal-close {
  position: sticky;
  z-index: 5;
  float: right;
  top: 14px;
  margin: 14px 14px -60px 0;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,.1);
}
.modal-header { padding: 48px 46px 28px; }
.modal-header h2 { margin: 0; font-size: clamp(36px, 7vw, 58px); line-height: 1.05; letter-spacing: -.06em; }
.modal-header > p:last-child { color: var(--muted); }

.form-modal form, .vote-modal form { padding: 0 46px 50px; }
fieldset { margin: 0; padding: 31px 0; border: 0; border-top: 1px solid var(--line); }
legend { padding: 0 0 18px; font-size: 18px; font-weight: 900; }
.form-grid { display: grid; gap: 18px; }
.two-columns { grid-template-columns: 1fr 1fr; }
.form-grid label:not(.file-field), fieldset > label {
  display: grid;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
}
input, textarea {
  width: 100%;
  border: 1px solid #cfcbbf;
  border-radius: 12px;
  padding: 14px 15px;
  background: var(--white);
  outline: none;
}
input:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(36,78,66,.13); }
textarea { resize: vertical; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice-card { cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card span {
  min-height: 110px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}
.choice-card input:checked + span { border: 2px solid var(--green); background: #edf2ef; }
.choice-card strong { font-size: 18px; }
.choice-card small { margin-top: 6px; color: var(--muted); }
.field-help { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.character-count { text-align: right; color: var(--muted); font-size: 12px; }
.file-field { display: grid; gap: 8px; font-weight: 800; font-size: 14px; }
.file-field input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop {
  padding: 34px 20px;
  border: 2px dashed #c8c4b8;
  border-radius: 14px;
  background: rgba(255,255,255,.55);
  text-align: center;
  cursor: pointer;
}
.file-drop small { color: var(--muted); }
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.preview-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.check-label {
  grid-template-columns: 20px 1fr !important;
  align-items: start;
  margin: 13px 0;
  font-weight: 500 !important;
}
.check-label input { width: 18px; height: 18px; margin-top: 4px; }
.form-notice { margin: 0 0 22px; padding: 18px; border-radius: 14px; background: #ece9df; }
.form-notice p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }

.detail-cover { width: 100%; aspect-ratio: 16/11; object-fit: cover; background: #ddd; }
.detail-body { padding: 38px 44px 48px; }
.detail-category { color: var(--green); font-weight: 900; font-size: 13px; }
.detail-body h2 { margin: 9px 0 0; font-size: clamp(34px, 7vw, 54px); line-height: 1.08; letter-spacing: -.055em; }
.detail-author { margin: 15px 0 0; color: var(--muted); font-weight: 800; }
.detail-description { margin: 30px 0; white-space: pre-wrap; font-size: 17px; }
.detail-photo-list { display: grid; gap: 12px; margin: 28px 0; }
.detail-photo-list img { width: 100%; border-radius: 16px; }
.vote-info { padding: 16px; margin-bottom: 12px; border-radius: 12px; background: #ece9df; color: var(--muted); font-size: 13px; }

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 24px);
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 관리자 */
.admin-main { max-width: var(--max-width); margin: auto; padding: 70px 24px 120px; }
.admin-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 30px; }
.admin-heading h1 { margin: 0; font-size: clamp(42px, 7vw, 72px); line-height: 1; letter-spacing: -.06em; }
.admin-note { max-width: 700px; padding: 18px; border-radius: 15px; background: #fff5c7; }
.admin-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.admin-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 15px; border-bottom: 1px solid #ece8dd; text-align: left; vertical-align: top; font-size: 13px; }
.admin-table th { background: #efede6; }
.admin-thumb { width: 82px; height: 62px; object-fit: cover; border-radius: 8px; }
.small-button { padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); cursor: pointer; font-weight: 800; }
.small-button.danger { color: #9e2424; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 30px 0; }
.stat-card { padding: 25px; border-radius: 18px; background: var(--ink); color: var(--white); }
.stat-card span { display: block; color: var(--yellow); font-size: 12px; font-weight: 900; }
.stat-card strong { display: block; margin-top: 5px; font-size: 32px; }

@media (max-width: 900px) {
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 40px; padding-top: 58px; }
  .hero-visual { max-width: 650px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-heading { grid-template-columns: 1fr; gap: 25px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: auto; }
  .steps strong { margin-top: 20px; }
}
@media (max-width: 620px) {
  .site-header { min-height: 62px; padding-inline: 16px; }
  .brand span:last-child { font-size: 13px; }
  .header-cta { padding: 9px 12px; font-size: 12px; }
  .hero { padding-inline: 18px; }
  .hero h1 { font-size: 54px; }
  .hero-description { font-size: 16px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .info-strip { margin: 0 14px 80px; padding: 16px 20px; grid-template-columns: 1fr; gap: 0; border-radius: 18px; }
  .info-strip div { padding: 13px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .info-strip div:last-child { border-bottom: 0; }
  .how-it-works { padding-inline: 18px; padding-bottom: 90px; }
  .gallery-section { padding: 80px 16px 100px; }
  .gallery-toolbar { align-items: stretch; flex-direction: column; }
  .filter-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
  .filter-tab { padding-inline: 8px; font-size: 12px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .story-content h3 { font-size: 21px; }
  footer { margin-inline: 16px; align-items: flex-start; flex-direction: column; }
  footer a { margin-left: 0; }
  .modal-header, .form-modal form, .vote-modal form, .detail-body { padding-left: 22px; padding-right: 22px; }
  .two-columns, .choice-grid { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-stats { grid-template-columns: 1fr; }
}

/* ==========================================================
   2단계 디자인: 포스터형 편집 디자인 + 민쿱 로고 컬러
   ========================================================== */
:root {
  --pink: #f4afb5;
  --poster-ink: #111111;
  --poster-yellow: #ffea36;
  --poster-green: #06aa72;
  --poster-cream: #f7f3e8;
}
body { background: var(--poster-cream); color: var(--poster-ink); }
.site-header {
  min-height: 72px;
  background: rgba(244,175,181,.93);
  border-bottom: 2px solid var(--poster-ink);
}
.brand-logo {
  width: 48px; height: 48px; object-fit: cover;
  border: 2px solid var(--poster-ink); border-radius: 50%;
}
.brand { gap: 11px; color: var(--poster-ink); font-weight: 950; }
.header-links { display: flex; align-items: center; gap: 24px; }
.header-links a { color: var(--poster-ink); font-size: 13px; font-weight: 900; text-decoration: none; }
.header-cta { border: 2px solid var(--poster-ink); background: var(--poster-yellow); color: var(--poster-ink); }

.poster-hero {
  max-width: none;
  min-height: calc(100vh - 72px);
  padding: 48px max(24px, calc((100vw - var(--max-width)) / 2)) 38px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  background: var(--pink);
  border-bottom: 3px solid var(--poster-ink);
}
.poster-head { display: grid; grid-template-columns: 1fr auto; gap: 55px; }
.poster-kicker { font-family: "Arial Narrow", Impact, sans-serif; letter-spacing: .14em; color: var(--poster-ink); }
.poster-head h1 {
  margin: 0;
  max-width: 1000px;
  font-size: clamp(58px, 9.2vw, 136px);
  line-height: .88;
  letter-spacing: -.095em;
  font-weight: 950;
}
.poster-head h1 em { margin-top: 12px; }
.poster-head h1 em::after { display: none; }
.poster-meta {
  display: flex; align-items: flex-start; gap: 20px; padding-top: 6px;
  font-family: "Arial Narrow", Impact, sans-serif;
  font-size: 16px; font-weight: 900; line-height: 1.05; text-transform: uppercase;
}
.poster-meta p { margin: 0; }
.poster-meta span {
  width: 62px; height: 104px; display: grid; place-items: center;
  border: 2px solid var(--poster-ink); border-radius: 999px; font-size: 39px;
}
.poster-visual { min-height: 390px; display: grid; place-items: center; }
.poster-visual img { width: min(780px, 82vw); max-height: 535px; }
.poster-bottom { text-align: center; }
.poster-stamp {
  display: inline-block; margin: 0; padding: 5px 25px;
  border: 2px solid var(--poster-ink); border-radius: 50%;
  font-family: Georgia, serif; font-size: 19px; font-style: italic; transform: rotate(-1deg);
}
.poster-bottom .hero-description {
  margin: 15px auto 0; max-width: 800px; color: var(--poster-ink);
  font-size: 14px; font-weight: 850;
}
.poster-bottom .hero-actions { justify-content: center; margin-top: 23px; }
.poster-bottom .button { border: 2px solid var(--poster-ink); }
.poster-bottom .button-primary { background: var(--poster-ink); }
.poster-bottom .button-secondary { background: transparent; }

.info-strip { max-width: none; margin: 0; padding-inline: max(24px, calc((100vw - var(--max-width)) / 2)); border-radius: 0; border-bottom: 3px solid var(--poster-ink); }
.how-it-works { padding-top: 120px; }
.section-heading h2, .gallery-heading h2, .closing-section h2 { letter-spacing: -.065em; }
.steps { border-top: 2px solid var(--poster-ink); gap: 0; }
.steps li { border-radius: 0; border: 0; border-right: 2px solid var(--poster-ink); border-bottom: 2px solid var(--poster-ink); background: transparent; }
.steps li:first-child { border-left: 2px solid var(--poster-ink); }
.steps span { color: var(--poster-green); font-family: "Arial Narrow", Impact, sans-serif; }

.gallery-section { border-top: 3px solid var(--poster-ink); border-bottom: 3px solid var(--poster-ink); background: #fffdf7; }
.gallery-toolbar { border-top: 2px solid var(--poster-ink); padding-top: 20px; }
.filter-tab, .shuffle-button { border: 2px solid var(--poster-ink); background: transparent; }
.filter-tab.active { background: var(--poster-yellow); color: var(--poster-ink); }
.shuffle-button { background: var(--pink); color: var(--poster-ink); }
.gallery-grid { gap: 19px; }
.story-card { border: 2px solid var(--poster-ink); border-radius: 0; background: var(--poster-cream); }
.story-card:nth-child(3n+2) { transform: translateY(20px); }
.story-card:hover { transform: translate(-4px,-4px); box-shadow: 8px 8px 0 var(--poster-ink); }
.story-card:nth-child(3n+2):hover { transform: translate(-4px,16px); }
.story-image-wrap { border-bottom: 2px solid var(--poster-ink); }
.category-badge { border: 2px solid var(--poster-ink); background: var(--poster-yellow); }
.story-content h3 { font-size: 25px; letter-spacing: -.05em; }
.story-meta { border-top: 1px solid var(--poster-ink); }
.story-vote-state { color: #9c4b14; }

.closing-section { max-width: none; margin: 0; padding: 115px 24px; background: var(--pink); border-bottom: 3px solid var(--poster-ink); }
footer { max-width: none; padding-inline: max(24px, calc((100vw - var(--max-width)) / 2)); background: var(--poster-green); color: white; border-top: 0; }
footer a { color: white; }

.modal { border: 3px solid var(--poster-ink); border-radius: 0; box-shadow: 15px 15px 0 var(--poster-ink); }
.modal-close { border: 2px solid var(--poster-ink); background: var(--poster-yellow); }
.modal-header { background: var(--pink); border-bottom: 2px solid var(--poster-ink); }
fieldset { border-top: 2px solid var(--poster-ink); }
input, textarea { border: 2px solid var(--poster-ink); border-radius: 0; }
input:focus, textarea:focus { box-shadow: 5px 5px 0 var(--poster-yellow); }
.choice-card span { border: 2px solid var(--poster-ink); border-radius: 0; }
.choice-card input:checked + span { border: 2px solid var(--poster-ink); background: var(--poster-yellow); box-shadow: 6px 6px 0 var(--poster-ink); }
.file-drop { border: 2px dashed var(--poster-ink); border-radius: 0; background: #f9d6d8; }
.preview-grid img { border: 2px solid var(--poster-ink); border-radius: 0; }
.form-notice { border: 2px solid var(--poster-ink); border-radius: 0; background: var(--poster-yellow); }
.detail-cover { border-bottom: 3px solid var(--poster-ink); }
.detail-category { border: 2px solid var(--poster-ink); background: var(--poster-yellow); }
.vote-info { border: 2px solid var(--poster-ink); background: #f9d6d8; }
.toast { border: 2px solid var(--poster-ink); background: var(--poster-yellow); color: var(--poster-ink); box-shadow: 5px 5px 0 var(--poster-ink); }

.admin-main { max-width: var(--max-width); }
.admin-note { border: 2px solid var(--poster-ink); background: var(--poster-yellow); }
.admin-table-wrap { border: 2px solid var(--poster-ink); border-radius: 0; }
.admin-table th { background: var(--poster-green); color: white; }
.stat-card { border: 2px solid var(--poster-ink); border-radius: 0; background: var(--pink); color: var(--poster-ink); }
.stat-card span { color: var(--poster-ink); }
.small-button { border: 2px solid var(--poster-ink); border-radius: 0; background: var(--poster-yellow); }

@media (max-width: 900px) {
  .poster-head { grid-template-columns: 1fr; }
  .poster-meta { display: none; }
  .poster-visual { min-height: 350px; }
  .story-card:nth-child(3n+2) { transform: none; }
  .story-card:nth-child(3n+2):hover { transform: translate(-4px,-4px); }
}
@media (max-width: 620px) {
  .brand-logo { width: 40px; height: 40px; }
  .brand span, .header-links a { display: none; }
  .header-links { gap: 0; }
  .poster-hero { padding: 34px 16px 36px; }
  .poster-head h1 { font-size: 59px; }
  .poster-visual { min-height: 320px; }
  .poster-visual img { width: 100%; }
  .poster-bottom .hero-actions { display: grid; }
  .info-strip { margin: 0; padding-inline: 20px; border-radius: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-left: 2px solid var(--poster-ink); }
}


/* ==========================================================
   사진 5장 업로드 및 모바일 최적화
   ========================================================== */
.file-drop {
  min-height: 128px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
  touch-action: manipulation;
}
.file-drop strong { display: block; font-size: 16px; }
.file-drop.has-files { background: #fff9c9; }
.file-drop.dragover {
  background: var(--poster-yellow);
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--poster-ink);
}

.preview-grid {
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 12px;
}
.preview-item {
  position: relative;
  min-width: 0;
  border: 2px solid var(--poster-ink);
  background: #fff;
}
.preview-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 0;
}
.preview-number {
  position: absolute;
  left: 7px;
  bottom: 7px;
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 2px solid var(--poster-ink);
  border-radius: 999px;
  background: var(--poster-yellow);
  font-size: 12px;
  font-weight: 950;
}
.preview-remove {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 2px solid var(--poster-ink);
  border-radius: 999px;
  background: var(--pink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.preview-remove:hover { background: var(--poster-yellow); }

@media (max-width: 700px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  body { -webkit-text-size-adjust: 100%; }

  .site-header {
    min-height: 60px;
    padding: 8px 12px;
  }
  .brand-logo, .brand img { width: 40px; height: 40px; }
  .header-cta {
    min-height: 44px;
    padding: 9px 13px;
    font-size: 13px;
  }

  .poster-hero {
    min-height: auto;
    padding: 30px 14px 34px;
  }
  .poster-head h1 { font-size: clamp(48px, 16vw, 66px); }
  .poster-visual { min-height: 265px; }
  .poster-bottom .hero-description { font-size: 14px; }
  .poster-bottom .button { min-height: 50px; }

  .gallery-section { padding: 72px 14px 90px; }
  .gallery-heading h2 { font-size: 43px; }
  .gallery-toolbar { gap: 14px; }
  .filter-tabs { width: 100%; }
  .filter-tab, .shuffle-button { min-height: 46px; }
  .shuffle-button { width: 100%; }
  .story-card:hover,
  .story-card:nth-child(3n+2):hover { transform: none; box-shadow: none; }

  .modal {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
    overscroll-behavior: contain;
  }
  .modal-close {
    position: sticky;
    top: max(10px, env(safe-area-inset-top));
    margin: max(10px, env(safe-area-inset-top)) 10px -55px 0;
    width: 46px;
    height: 46px;
    z-index: 20;
  }
  .modal-header {
    padding: calc(62px + env(safe-area-inset-top)) 18px 24px;
  }
  .modal-header h2 {
    font-size: clamp(38px, 12vw, 50px);
  }
  .form-modal form,
  .vote-modal form,
  .detail-body {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: calc(36px + env(safe-area-inset-bottom));
  }
  fieldset { padding: 25px 0; }
  legend { font-size: 18px; }
  .two-columns,
  .choice-grid { grid-template-columns: 1fr; }
  .choice-card span { min-height: 92px; }

  input,
  textarea {
    min-height: 50px;
    padding: 13px 12px;
    font-size: 16px; /* Prevents iOS automatic zoom */
  }
  textarea { min-height: 150px; }

  .file-drop {
    min-height: 132px;
    padding: 26px 14px;
  }
  .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .preview-remove {
    width: 38px;
    height: 38px;
  }

  .check-label {
    grid-template-columns: 26px 1fr !important;
    gap: 10px !important;
    line-height: 1.5;
  }
  .check-label input {
    width: 22px;
    height: 22px;
  }

  .form-modal .button-full,
  .vote-modal .button-full {
    min-height: 54px;
    font-size: 16px;
  }
  .toast {
    width: calc(100vw - 28px);
    max-width: 520px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    border-radius: 14px;
    text-align: center;
  }

  .detail-cover { aspect-ratio: 4 / 3; }
  .detail-body h2 { font-size: 39px; }

  .admin-main { padding: 45px 12px 90px; }
  .admin-table-wrap {
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }
  .admin-stats { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 390px) {
  .poster-head h1 { font-size: 48px; }
  .filter-tab { font-size: 11px; padding-inline: 5px; }
  .preview-grid { grid-template-columns: 1fr 1fr; }
  .admin-stats { grid-template-columns: 1fr !important; }
}
