@font-face { font-family: 'SUIT'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/SUIT-Medium.woff2') format('woff2'); }
@font-face { font-family: 'SUIT'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/SUIT-Bold.woff2') format('woff2'); }
@font-face { font-family: 'SUIT'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/SUIT-ExtraBold.woff2') format('woff2'); }
:root {
  /* Layout: one phone-width app column (max 440px) on a gray wash; screens swap by hash route */
  --blue: #6FCCEB;        /* NURFIT Clear Blue */
  --blue-soft: #B6DFF0;   /* NURFIT Soft Blue */
  --blue-light: #E7F4FA;  /* NURFIT Light Blue */
  --stripe: #D9EFF8;
  --hl: rgba(111, 204, 235, 0.55);
  --ink: #1C1C1C;
  --ink-2: #3A3A3A;
  --ink-3: #575757;
  --muted: #717171;
  --line-strong: #BABABA;
  --line-mid: #D1D1D1;
  --line: #E8E8E8;
  --wash: #F3F3F3;
  --paper: #FFFFFF;
  --danger: #C2413A;
  --danger-wash: #FBEDEC;
  --font-kr: 'SUIT', 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-en: 'Inter', 'SUIT', -apple-system, sans-serif;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  color-scheme: light;
}
html, body { background: var(--wash); }
body {
  font-family: var(--font-kr); font-weight: 500; font-size: 15px; line-height: 1.6;
  letter-spacing: -0.025em; color: var(--ink); -webkit-font-smoothing: antialiased;
  word-break: keep-all; overflow-wrap: break-word;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Photo protection: no long-press save/preview menu, no drag-out, no double-tap zoom on photos */
img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.media, .nom-photo, .thumb, .adm-media .box, .origin { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
h1, h2, h3, p, ol, ul { margin: 0; }
a { color: inherit; }
button { font: inherit; letter-spacing: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.wrap { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.en { font-family: var(--font-en); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }
.num { font-variant-numeric: tabular-nums; }
.hl { position: relative; z-index: 0; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; z-index: -1; left: -0.12em; right: -0.12em; bottom: 0.06em; height: 0.46em;
  background: var(--hl); border-radius: 3px 7px 4px 8px; transform: rotate(-1.4deg);
}

/* Photo protection on print / print-to-PDF: photos print as blank boxes */
@media print { img:not(.footer-logo):not(.nom-logo), .media, .nom-photo, .thumb, .adm-media .box, .origin img { visibility: hidden !important; } }

.app { max-width: 440px; margin: 0 auto; background: var(--paper); min-height: 100vh; box-shadow: 0 0 0 1px var(--line); }
.screen { padding-bottom: 32px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--r-sm); padding: 14px 20px; font-size: 16px; font-weight: 800; cursor: pointer;
}
.btn-primary { background: var(--blue); color: var(--ink); }
.btn-primary:hover { background: var(--blue-soft); }
.btn-secondary { background: var(--paper); border-color: var(--blue); color: var(--ink); }
.btn-secondary:hover { background: var(--blue-light); }
.btn-ghost { background: none; border-color: var(--line-mid); color: var(--ink-2); }
.btn-danger { background: var(--paper); border-color: var(--danger); color: var(--danger); }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; font-weight: 700; color: var(--ink-3); cursor: pointer; }

/* Chips */
.chip { display: inline-flex; align-items: center; white-space: nowrap; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--blue-light); color: var(--ink-2); letter-spacing: -0.01em; }
.chip.t-mixed { background: var(--paper); box-shadow: inset 0 0 0 1px var(--blue-soft); }
.chip.t-story { background: var(--wash); }
.chip.gray { background: var(--wash); color: var(--ink-3); }
.chip.ok { background: var(--blue-light); }
.chip.no { background: var(--danger-wash); color: var(--danger); }


/* Main */
.hero { text-align: center; padding-block: 40px 36px; background: radial-gradient(120% 75% at 50% 0%, var(--blue-soft) 0%, var(--blue-light) 46%, var(--paper) 100%); }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); background: var(--paper); border-radius: 999px; padding: 5px 14px; box-shadow: 0 1px 0 var(--line); }
.hero h1 { font-size: clamp(36px, 10.5vw, 44px); font-weight: 800; line-height: 1.2; letter-spacing: -0.025em; margin-top: 18px; text-wrap: balance; }
.hero .en { font-size: 11px; color: var(--ink-3); margin-top: 12px; }
.lead { color: var(--ink-2); margin: 18px auto 0; max-width: 31ch; }
.lead-q { display: block; color: var(--ink); font-weight: 800; font-size: 16.5px; line-height: 1.5; margin-bottom: 8px; text-wrap: balance; }
/* Schedule: a real sequence (후보 등록 → 심사 → 시상식), so an ordered strip; .on = current phase */
.sched { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.sched li { padding: 10px 6px 11px; display: grid; gap: 2px; align-content: start; }
.sched li + li { border-left: 1px solid var(--line); }
.sched li.on { background: var(--blue-light); }
.sched span { font-size: 12px; font-weight: 700; color: var(--muted); }
.sched li.on span { color: var(--ink-2); }
.sched b { font-size: 13px; font-weight: 800; line-height: 1.4; font-variant-numeric: tabular-nums; }
.cta-col { display: grid; gap: 8px; margin-top: 26px; }
.counter { margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.counter b { color: var(--ink); }

.sec { padding-block: 36px; border-top: 8px solid var(--wash); }
.sec.center { text-align: center; }
.sec h2 { font-size: 22px; font-weight: 800; line-height: 1.3; letter-spacing: -0.025em; text-wrap: balance; }
.sec-sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.stack { display: grid; gap: 10px; margin-top: 20px; }

.cat-row {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
  text-align: left; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); cursor: pointer;
}
.cat-row:hover { border-color: var(--blue); }
.cat-name { font-size: 16px; font-weight: 800; }
.cat-q { font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.cat-ex { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.cat-q small { display: block; font-size: 12.5px; color: var(--muted); }
.chip.t-ai { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-strong); }
.panel-head p.blank { font-size: 15px; font-weight: 700; color: var(--ink); }
.nom-photo, .sheet .media, .adm-media .box { position: relative; }
.ai-badge { position: absolute; left: 6px; top: 6px; font-size: 10.5px; font-weight: 800; line-height: 1.4; letter-spacing: 0; background: rgba(28, 28, 28, 0.72); color: var(--paper); border-radius: 999px; padding: 2px 7px; }
.adm-media .ai-badge { left: 3px; top: 3px; font-size: 9px; padding: 1px 5px; }
.ai-tip { font-size: 12.5px; color: var(--ink-3); background: var(--wash); border-radius: var(--r-sm); padding: 8px 10px; }
.ai-tip summary { cursor: pointer; font-weight: 700; color: var(--ink-2); }
.ai-tip p { margin-top: 6px; }
.cat-side { display: grid; justify-items: end; gap: 6px; }
.cat-side .go { font-size: 12px; font-weight: 700; color: var(--muted); }

.awards { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; text-align: left; }
.award { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
.award:first-child { border-top: 0; background: var(--blue-light); }
.award-name { font-weight: 800; }
.award-name small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.award-what { font-weight: 800; }
.award-how { font-size: 13px; color: var(--ink-3); }
.fine { font-size: 12px; color: var(--muted); margin-top: 10px; }


/* Origin teaser: last year's grand prize photo was itself a ward "awards show" */
.origin { width: 100%; margin-top: 20px; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); text-align: left; cursor: pointer; }
.origin:hover { border-color: var(--blue); }
.origin img { width: 92px; max-width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; display: block; background: var(--wash); }
.origin-text { display: grid; gap: 4px; min-width: 0; }
.origin-text small { font-size: 12px; font-weight: 700; color: var(--muted); }
.origin-text b { font-size: 15px; font-weight: 800; line-height: 1.45; }
.origin-text span { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }

.steps { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 20px; text-align: left; }
.steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; }
.steps .n { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; font-family: var(--font-en); font-weight: 800; font-size: 14px; }
.steps b { display: block; font-weight: 800; }
.steps span { font-size: 13.5px; color: var(--ink-3); }
.rules { margin-top: 18px; padding: 16px 16px 16px 32px; background: var(--wash); border-radius: var(--r-md); text-align: left; font-size: 13.5px; color: var(--ink-2); display: grid; gap: 6px; }

.ed-list { display: grid; gap: 12px; margin-top: 20px; text-align: left; }
.ed { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: start; }
.ed-year { font-family: var(--font-en); font-weight: 800; font-size: 13px; color: var(--ink-3); padding-top: 2px; }
.ed-name { font-weight: 800; font-size: 15px; }
.ed-name small { font-weight: 600; color: var(--muted); font-size: 12px; margin-right: 6px; }
.ed-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }

.footer { text-align: center; padding-block: 40px 120px; border-top: 8px solid var(--wash); display: grid; gap: 6px; justify-items: center; }
.footer-logo { display: block; width: 110px; height: auto; }
.footer p { font-size: 13px; color: var(--ink-3); }

.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; pointer-events: none; }
.dock-inner {
  max-width: 440px; margin: 0 auto; pointer-events: auto; padding-top: 18px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(rgba(255, 255, 255, 0), var(--paper) 40%);
}

/* Shared screen header */
.s-head { padding-block: 24px 4px; display: grid; gap: 6px; }
.s-head h2 { font-size: 24px; font-weight: 800; line-height: 1.3; text-wrap: balance; }
.s-head p { color: var(--ink-3); font-size: 14px; }
.back { justify-self: start; background: none; border: 0; padding: 4px 0; font-size: 14px; font-weight: 700; color: var(--ink-3); cursor: pointer; }

/* Apply */
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-top: 20px; }
.stepper i { height: 4px; border-radius: 999px; background: var(--line); }
.stepper i.on { background: var(--blue); }
.step-label { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-top: 8px; }
.pick { position: relative; padding-right: 52px; }
.pick::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border-radius: 50%; border: 2px solid var(--line-mid); background: var(--paper);
}
.pick[aria-pressed="true"] { border: 2px solid var(--blue); background: var(--blue-light); padding: 15px 51px 15px 15px; }
.pick[aria-pressed="true"]::after { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 4px var(--blue-light); }
.pick .chip { margin-top: 8px; }
.actionbar { position: sticky; bottom: 0; z-index: 5; background: var(--paper); border-top: 1px solid var(--line); padding-block: 12px calc(12px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; margin-top: 28px; }
.actionbar .row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }

.panel { border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 16px; display: grid; gap: 16px; }
.panel-head { display: grid; gap: 4px; }
.panel-head h3 { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.panel-head p { font-size: 13.5px; color: var(--ink-3); }
.field { display: grid; gap: 6px; }
.field > label, .field > .label { font-size: 14px; font-weight: 700; }
.field .opt { font-weight: 600; color: var(--muted); font-size: 12.5px; margin-left: 4px; }
.input, .textarea, .select {
  width: 100%; font: inherit; letter-spacing: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-mid); border-radius: var(--r-sm); padding: 12px 14px;
}
.textarea { min-height: 104px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.input.bad, .textarea.bad { border-color: var(--danger); }
.help { font-size: 12.5px; color: var(--muted); }
.err { font-size: 13px; font-weight: 700; color: var(--danger); }
.count { font-size: 12px; color: var(--muted); justify-self: end; }
.drop {
  display: grid; place-items: center; gap: 2px; text-align: center; padding: 18px; cursor: pointer;
  border: 1.5px dashed var(--blue-soft); border-radius: var(--r-sm); background: var(--blue-light); font-size: 14px; font-weight: 700;
}
.drop span { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.drop.bad { border-color: var(--danger); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--wash); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(28, 28, 28, 0.72); color: var(--paper); font-weight: 800; cursor: pointer; line-height: 1; }
.thumb.note { display: grid; place-items: center; padding: 8px; font-size: 11.5px; text-align: center; color: var(--ink-3); background: repeating-linear-gradient(135deg, var(--blue-light) 0 8px, var(--stripe) 8px 16px); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg label { display: block; cursor: pointer; position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 10px; border: 1px solid var(--line-mid); border-radius: var(--r-sm); font-size: 14px; font-weight: 700; color: var(--ink-3); }
.seg input:checked + span { border: 2px solid var(--blue); background: var(--blue-light); color: var(--ink); padding: 9px; }
.seg input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.consents { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px 14px; }
.consents.bad { border-color: var(--danger); }
.consent-all { padding-block: 12px; border-bottom: 1px solid var(--line); font-weight: 800; }
.consent { padding-block: 10px; display: grid; gap: 6px; }
.consent details { font-size: 12.5px; color: var(--ink-3); padding-left: 30px; }
.consent summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.consent ul { padding-left: 18px; margin-top: 6px; display: grid; gap: 4px; }
.consent-intro { font-size: 12.5px; color: var(--ink-3); line-height: 1.55; padding-block: 12px; border-bottom: 1px solid var(--line); }

/* Nomination card */
.done { text-align: center; padding-block: 32px 8px; display: grid; gap: 8px; justify-items: center; }
.done .mark { width: 56px; height: 56px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; font-size: 26px; font-weight: 800; }
.done h2 { font-size: 24px; font-weight: 800; }
.done p { color: var(--ink-3); font-size: 14px; max-width: 30ch; }
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-block: 20px 8px; }
.rail.single { justify-content: center; }
.nom {
  flex: 0 0 76%; max-width: 290px; aspect-ratio: 9 / 16; scroll-snap-align: center; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--blue-light) 0%, var(--paper) 62%); display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 22px 16px 16px; gap: 8px; overflow: hidden;
}
.nom .en { font-size: 10px; color: var(--ink-3); }
.nom-show { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.nom-photo { width: 78%; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; margin-top: 6px; flex: none; }
.nom-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nom-cat { font-size: 22px; font-weight: 800; line-height: 1.25; margin-top: 8px; }
.nom-who { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.nom-title { font-size: 13px; color: var(--ink-3); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nom-foot { margin-top: auto; padding-top: 4px; }
.nom-logo { display: block; width: 64px; height: auto; }
.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.notice { margin-top: 10px; font-size: 13px; color: var(--ink-2); background: var(--wash); border-radius: var(--r-sm); padding: 10px 12px; }
/* 참가상 쿠폰: 왼쪽 금액, 오른쪽 받기 탭, 사이에 절취선 홈 */
.coupon { position: relative; margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) 88px; border-radius: var(--r-md); background: var(--blue); overflow: hidden; }
.coupon::before, .coupon::after { content: ""; position: absolute; right: 80px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); }
.coupon::before { top: -8px; }
.coupon::after { bottom: -8px; }
.coupon-body { padding: 16px 14px 15px 18px; display: grid; gap: 2px; text-align: left; border-right: 2px dashed rgba(28, 28, 28, 0.28); }
.coupon-kicker { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.coupon-amt { display: flex; align-items: baseline; gap: 6px; font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.coupon-amt span { font-family: var(--font-en); font-size: 13px; font-weight: 900; letter-spacing: 0.16em; }
.coupon-until { margin-top: 2px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.coupon-get { border: 0; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 800; line-height: 1.35; cursor: pointer; }
.coupon-get:hover { background: var(--ink-2); }
.event { margin-top: 16px; border-radius: var(--r-md); background: var(--blue-light); padding: 16px; font-size: 14px; }
.event b { display: block; font-weight: 800; margin-bottom: 2px; }
.after-links { display: flex; justify-content: center; gap: 18px; margin-top: 20px; flex-wrap: wrap; }
.more { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.more h3 { font-size: 17px; font-weight: 800; }
.more-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.more-list button { border: 1px solid var(--blue); background: var(--paper); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; }
.more-list button:hover { background: var(--blue-light); }

/* Photo placeholders */
.ph { width: 100%; height: 100%; display: flex; align-items: flex-end; padding: 10px; font-size: 12px; font-weight: 600; color: var(--ink-3); line-height: 1.4; text-align: left;
  background: repeating-linear-gradient(135deg, var(--blue-light) 0 10px, var(--stripe) 10px 20px); }
.ph b { display: block; font-size: 10.5px; color: var(--muted); }
.quote { width: 100%; height: 100%; display: flex; align-items: center; padding: 16px; background: var(--blue-light); font-size: 14px; font-weight: 700; line-height: 1.55; color: var(--ink-2); text-align: left; }

/* 부문 필터 (제출 목록) */
.filters { display: flex; gap: 6px; overflow-x: auto; padding-block: 16px 4px; scrollbar-width: none; }
.filters button { flex: none; border: 1px solid var(--line-mid); background: var(--paper); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--ink-3); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.g-meta { font-size: 12px; color: var(--muted); }
.empty { text-align: center; padding: 40px 12px; color: var(--muted); font-size: 14px; }

/* Sheet */
.sheet-bg { position: fixed; inset: 0; z-index: 40; background: rgba(28, 28, 28, 0.45); display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: 100%; max-width: 440px; max-height: 86vh; overflow-y: auto; background: var(--paper); border-radius: 20px 20px 0 0;
  padding-top: 20px; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 12px;
}
.sheet-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sheet h3 { font-size: 19px; font-weight: 800; line-height: 1.4; }
.sheet .media { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; }
.sheet .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sheet .media.contain { aspect-ratio: 4 / 5; background: var(--wash); }
.sheet .media.contain img { object-fit: contain; }
.sheet .story { font-size: 15px; color: var(--ink-2); white-space: pre-wrap; }
.close { border: 0; background: var(--wash); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; cursor: pointer; }


/* Admin */
.criteria { margin-top: 12px; font-size: 13px; color: var(--ink-2); background: var(--wash); border-radius: var(--r-sm); padding: 10px 12px; }
.criteria summary { font-weight: 800; cursor: pointer; }
.criteria ul { padding-left: 18px; margin-top: 6px; display: grid; gap: 3px; }
.adm { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; display: grid; gap: 10px; }
.adm-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.adm-top time { margin-left: auto; font-size: 12px; color: var(--muted); }
.adm h3 { font-size: 16px; font-weight: 800; line-height: 1.4; }
.adm .story { font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.adm-media { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink-3); }
.adm-media .box { width: 72px; height: 72px; border-radius: 6px; overflow: hidden; }
.adm-meta { font-size: 12.5px; color: var(--muted); }
.adm-count { font-size: 13px; color: var(--muted); padding-block: 10px 8px; }
.adm-note { font-size: 13px; color: var(--ink-2); background: var(--wash); border-radius: 6px; padding: 8px 10px; }
.adm-note b { display: block; font-size: 11.5px; color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50;
  width: calc(100% - 40px); max-width: 400px; background: var(--ink); color: var(--paper); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; font-weight: 700; text-align: center;
}
@media (prefers-reduced-motion: no-preference) {
  .screen:not([hidden]) { animation: rise 0.28s ease-out; }
  @keyframes rise { from { opacity: 0.4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}


/* D 키비주얼: 굵은 글자 · Clear Blue 기울인 굵은 글자 · 가는 글자를 섞은 어두운 히어로 */
.kv-d { display: none; }
:root[data-kv="d"] .kv-d { display: block; }
.kv-labels { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-family: var(--font-en); font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; color: #F3F3F3; }
.kv-labels span { display: inline-flex; align-items: center; gap: 6px; }
.kv-labels i { font-style: normal; width: 18px; height: 16px; border-radius: 4px; display: inline-grid; place-items: center; color: #1C1C1C; font-size: 9.5px; letter-spacing: 0; }
.kv-type { margin-block: 12px 8px; font-family: var(--font-en); color: #F3F3F3; letter-spacing: 0; }
.kv-row { display: flex; justify-content: space-between; align-items: flex-start; line-height: 0.86; }
.kv-row.heavy { font-weight: 900; font-size: calc((min(100vw, 440px) - 40px) * 0.266); }
.kv-row.thin { font-weight: 100; font-size: calc((min(100vw, 440px) - 40px) * 0.205); margin-top: 6px; }
.kv-row .acc { display: inline-block; color: #6FCCEB; font-style: italic; font-weight: 900; transform: rotate(-3deg); }
.kv-rule { height: 1px; background: #575757; margin-block: 18px 20px; }
:root[data-kv="d"] .hero { background: #1C1C1C; color: #F3F3F3; text-align: left; padding-block: 18px 30px; }
:root[data-kv="d"] .hero .eyebrow { background: #3A3A3A; color: #F3F3F3; box-shadow: none; }
:root[data-kv="d"] .hero h1 { font-size: 34px; margin-top: 14px; }
:root[data-kv="d"] .hero .hl::after { height: 0.3em; bottom: 0.02em; background: rgba(111, 204, 235, 0.75); }
:root[data-kv="d"] .hero .en { display: none; }
:root[data-kv="d"] .lead { color: #BABABA; margin-left: 0; }
:root[data-kv="d"] .lead-q { color: #F3F3F3; }
:root[data-kv="d"] .sched { background: #2A2A2A; border-color: #3A3A3A; }
:root[data-kv="d"] .sched li + li { border-left-color: #3A3A3A; }
:root[data-kv="d"] .sched li.on { background: #3A3A3A; }
:root[data-kv="d"] .sched span { color: #BABABA; }
:root[data-kv="d"] .sched li.on span { color: #6FCCEB; }
:root[data-kv="d"] .hero .btn-secondary { background: transparent; color: #F3F3F3; border-color: #6FCCEB; }
:root[data-kv="d"] .hero .btn-secondary:hover { background: #2A2A2A; }
:root[data-kv="d"] .counter { color: #BABABA; text-align: center; }
:root[data-kv="d"] .counter b { color: #F3F3F3; }
:root[data-kv="d"] .nom { background: #1C1C1C; border-color: #1C1C1C; color: #F3F3F3; }
:root[data-kv="d"] .nom .en { color: #6FCCEB; }
:root[data-kv="d"] .nom-show, :root[data-kv="d"] .nom-who { color: #F3F3F3; }
:root[data-kv="d"] .nom-title, :root[data-kv="d"] .nom-foot { color: #BABABA; }
:root[data-kv="d"] .nom .hl::after { height: 0.3em; bottom: 0.02em; background: rgba(111, 204, 235, 0.75); }

/* E 키비주얼: 파란 무대에 흰 조명, 빛이 닿은 바닥에 트로피 (KV 보드 E1 스포트라이트) */
.kv-e { display: none; }
:root[data-kv="e"] .kv-e { display: block; }
.kv-stage { display: block; width: calc(100% + 40px); height: auto; margin: 0 -20px; }
.kv-e-title { display: flex; justify-content: center; align-items: baseline; gap: 0.22em; margin-top: 6px; font-family: var(--font-en); font-size: calc((min(100vw, 440px) - 40px) * 0.12); line-height: 1; letter-spacing: -0.01em; }
.kv-e-title b { font-weight: 900; }
.kv-e-title span { font-weight: 100; }
.kv-e-credit { margin-top: 12px; font-family: var(--font-en); font-size: 10.5px; font-weight: 700; letter-spacing: 0.3em; color: var(--ink-3); }
:root[data-kv="e"] .hero { position: relative; padding-top: 0; background: linear-gradient(180deg, var(--blue-light) 0%, var(--paper) 100%); }
:root[data-kv="e"] .hero .eyebrow { position: absolute; left: 20px; top: 14px; box-shadow: none; }
:root[data-kv="e"] .hero h1 { font-size: clamp(28px, 8.6vw, 34px); margin-top: 14px; }
:root[data-kv="e"] .hero .en { display: none; }
:root[data-kv="e"] .nom { background: radial-gradient(75% 46% at 50% 0%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0) 100%), var(--blue); border-color: var(--blue); }
:root[data-kv="e"] .nom .en, :root[data-kv="e"] .nom-show, :root[data-kv="e"] .nom-who { color: var(--ink); }
:root[data-kv="e"] .nom-title, :root[data-kv="e"] .nom-foot { color: var(--ink-2); }
:root[data-kv="e"] .nom .hl::after { background: rgba(255, 255, 255, 0.85); }
:root[data-kv="e"] .nom-logo { filter: brightness(0) invert(1); }

/* ---------- 실제 웹앱에서 추가 ---------- */
.btn.is-closed { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.coupon-help { margin-top: 8px; }
:root[data-kv="d"] .nom-logo { filter: brightness(0) invert(1); }

/* 관리자 화면 */
.app.admin { max-width: 760px; }
.admin-bar { display: flex; align-items: center; gap: 10px; padding-block: 16px 12px; border-bottom: 1px solid var(--line); }
.admin-logo { width: 64px; height: auto; display: block; }
.admin-title { font-weight: 800; font-size: 15px; }
.admin-bar .linkbtn { margin-left: auto; }
#demo-banner .notice { margin-top: 12px; }
.admin-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.adm .story.full { display: block; -webkit-line-clamp: unset; white-space: pre-wrap; }
.adm-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-photo { display: block; width: 96px; height: 96px; border-radius: 8px; overflow: hidden; background: var(--wash); }
.adm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: auto; }
