@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@500;700&display=swap');

:root {
  --ink: #1d1416;
  --ink-2: #4d3f42;
  --muted: #7d6e70;
  --line: #ece3df;
  --bg: #ffffff;
  --bg-alt: #faf6f3;
  --accent: #cf1b3b;
  --accent-2: #a3122c;
  --accent-soft: #fbe9ec;
  --warn: #9a3b1c;
  --warn-soft: #fbece6;
  --ok: #1f6b45;
  --radius: 14px;
  --serif: 'Noto Serif KR', 'Times New Roman', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .6em; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 .8em; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.big { font-size: 1.3rem; font-weight: 600; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.demo-bar { background: #fff4c2; color: #5d4a00; text-align: center; font-size: .85rem; padding: 6px 12px; }

/* 머리글 */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.1; }
.brand-mark { font-weight: 900; font-size: 1.55rem; letter-spacing: .02em; font-family: var(--sans); }
.brand-mark span { color: var(--accent); }
.brand-mark.small { font-size: 1.3rem; margin-bottom: 8px; }
.brand-sub { font-size: .68rem; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 8px 12px; border-radius: 8px; font-size: .95rem; white-space: nowrap; }
.nav a:hover { background: var(--bg-alt); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.top-tools { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang button { white-space: nowrap; border: 0; background: none; font: inherit; font-size: .8rem; padding: 5px 10px; border-radius: 999px; cursor: pointer; color: var(--ink-2); }
.lang button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.menu-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 12px; font: inherit; font-size: .9rem; cursor: pointer; }
@media (max-width: 1100px) {
  .top-in { flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .top-tools { margin-left: auto; }
  .menu-btn { display: block; }
  .nav { display: none; order: 3; width: 100%; flex-direction: column; margin: 0; padding-bottom: 8px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
}

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--accent); color: var(--accent); background: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; min-height: 46px; }
.btn:hover { background: var(--accent-soft); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: rgba(255,255,255,.9); }
.btn-small { padding: 6px 14px; min-height: 36px; font-size: .9rem; }

/* 홈 대표 영역 */
.hero { position: relative; background: linear-gradient(160deg, #fbf1ee 0%, #fff 60%); overflow: hidden; }
.hero-in { position: relative; padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 70px); }
.hero.has-img { background: #1d1416; color: #fff; }
.hero-slides { position: absolute; inset: 0; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s; }
.hero-slides img.on { opacity: 1; }
.hero.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,12,16,.82) 0%, rgba(30,12,16,.55) 55%, rgba(30,12,16,.25) 100%); }
.hero.has-img .hero-in { z-index: 1; }
.kicker { color: var(--accent); font-weight: 700; letter-spacing: .06em; font-size: .9rem; }
.hero.has-img .kicker { color: #e6c58a; }
.hero-title { font-size: clamp(2rem, 5.4vw, 3.6rem); margin-bottom: .4em; }
.hero-sub { font-size: clamp(1rem, 1.8vw, 1.18rem); max-width: 40em; color: var(--ink-2); }
.hero.has-img .hero-sub { color: #f5e9ea; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 12px; }
.hero-note { font-size: .92rem; color: var(--muted); }
.hero.has-img .hero-note { color: #ecd9db; }
.hero.has-img .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }

.dday-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.dday { display: grid; grid-template-columns: auto auto; column-gap: 14px; align-items: baseline; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; color: var(--ink); }
.dday-label { font-size: .85rem; color: var(--muted); }
.dday-num { font-size: 1.5rem; color: var(--accent); grid-row: span 2; align-self: center; order: -1; font-variant-numeric: tabular-nums; }
.dday-date { font-size: .9rem; }

/* 구역 */
.band { padding: clamp(44px, 6vw, 72px) 0; }
.band.alt { background: var(--bg-alt); }
.page-head { background: linear-gradient(160deg, #fbf1ee 0%, #fff 80%); padding: clamp(40px, 6vw, 64px) 0 clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.lead { font-size: 1.05rem; color: var(--ink-2); max-width: 46em; }
.prose { max-width: 46em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose h3 { margin-top: 1.2em; }
.more { margin-top: 18px; font-weight: 600; }
.more a { text-decoration: none; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.steps li { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.step-no { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 12px; }
.steps p, .card p { color: var(--ink-2); margin-bottom: .4em; }

.cards4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card.accent { border-color: #efb9c2; box-shadow: 0 4px 22px rgba(207,27,59,.08); }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin: 18px 0 24px; }

.fee-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.fee { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.fee span { color: var(--muted); font-size: .92rem; }
.fee strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.notice { background: var(--accent-soft); border-radius: 10px; padding: 12px 14px; margin: 10px 0 14px; font-size: .95rem; }
.notice p:last-child { margin: 0; }
.status { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; vertical-align: middle; margin-left: 6px; font-family: var(--sans); }
.status-recruiting { background: #fff3d6; color: #7a5200; }
.status-confirmed { background: #dcf3e6; color: var(--ok); }
.status-cancelled { background: #eee; color: #555; }
.pkg dt { font-weight: 700; margin-top: 10px; }
.pkg dd { margin: 2px 0 0; color: var(--ink-2); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.logos { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: center; }
.logos img { height: 48px; width: auto; object-fit: contain; filter: grayscale(.2); }

/* 소개 */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-bottom: 36px; }
.person { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.person img, .avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-family: var(--serif); font-size: 2rem; }
.person h3 { margin-bottom: 0; }
.person p { margin: 2px 0; }
.plain-list { list-style: none; padding: 0; margin: 0 0 1em; }
.plain-list li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.org-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

/* 일정 */
.timeline { list-style: none; padding: 0; margin: 30px 0 18px; border-left: 2px solid var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: 6px 24px; padding: 14px 0 14px 26px; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--muted); }
.timeline li.key::before { background: var(--accent); border-color: var(--accent); }
.timeline li.key h3 { color: var(--accent); }
.timeline li.past { opacity: .5; }
.timeline time { font-weight: 700; font-variant-numeric: tabular-nums; }
.timeline h3 { margin: 0; }
.timeline p { margin: 2px 0 0; color: var(--ink-2); }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; } }

/* 부문 */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .92rem; cursor: pointer; color: var(--ink-2); }
.tabs button span { color: var(--muted); font-size: .8rem; margin-left: 2px; }
.tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.tabs button[aria-selected="true"] span { color: #ffd6dd; }
.cat-group { margin-top: 30px; font-size: 1.35rem; }
.cat-group small { font-family: var(--sans); font-size: .9rem; color: var(--muted); font-weight: 400; margin-left: 6px; }
.cat-list { display: grid; gap: 10px; }
.cat { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.cat[open] { border-color: #efb9c2; }
.cat summary { display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; list-style: none; }
.cat summary::-webkit-details-marker { display: none; }
.cat summary::after { content: '+'; margin-left: 8px; color: var(--muted); font-size: 1.3rem; }
.cat[open] summary::after { content: '−'; }
.cat-no { flex: none; width: 34px; height: 34px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.cat-name { flex: 1; font-weight: 700; display: flex; flex-direction: column; }
.cat-name small { font-weight: 400; color: var(--muted); font-size: .88rem; }
.cat-time { flex: none; font-size: .85rem; color: var(--ink-2); background: var(--bg-alt); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.cat-body { padding: 0 18px 18px 66px; }
.cat-body dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 12px; }
.cat-body dt { font-weight: 700; color: var(--ink-2); font-size: .92rem; }
.cat-body dd { margin: 0; }
.cat-body dd p:last-child { margin: 0; }
@media (max-width: 640px) {
  .cat-body { padding-left: 18px; }
  .cat-body dl { grid-template-columns: 1fr; gap: 2px; }
  .cat-body dd { margin-bottom: 10px; }
  .cat-time { display: none; }
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .8rem; background: var(--bg-alt); color: var(--ink-2); padding: 3px 10px; border-radius: 999px; }
.tag.warn { background: var(--warn-soft); color: var(--warn); }

/* 표 */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--accent-soft); font-size: .9rem; }

/* 규정 */
.rules { display: grid; gap: 4px; }
.rules section { padding: 18px 0; border-bottom: 1px solid var(--line); }
.rules h2 { font-size: 1.2rem; display: flex; gap: 12px; align-items: center; }
.rules h2 span { font-family: var(--sans); font-size: .85rem; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }

/* 바닥글 */
.foot { background: #1d1416; color: #e2d5d6; padding: 40px 0; font-size: .92rem; }
.foot a { color: #fff; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.foot .brand-mark { color: #fff; }
.foot .brand-mark span { color: #e6c58a; }
.foot-note { color: #ad9c9e; text-align: right; }
@media (max-width: 640px) { .foot-note { text-align: left; } }

#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 100; }
.toast { background: #1d1416; color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.2); transition: opacity .3s; font-size: .95rem; }
.toast-error { background: #8c2a10; }
.toast-ok { background: #1f6b45; }
.toast.out { opacity: 0; }
.btn:disabled { opacity: .45; cursor: default; }
.btn-primary:disabled:hover { background: var(--accent); }

/* 머리글 신청 버튼 */
.top-cta { min-height: 36px; padding: 6px 14px; white-space: nowrap; }
@media (max-width: 420px) { .top-cta { display: none; } }

/* 입력 양식 */
.wrap.narrow { width: min(760px, 100% - 40px); }
.form { display: grid; gap: 4px; }
.form h2 { font-size: 1.2rem; margin: 18px 0 8px; font-family: var(--sans); }
.form h2:first-child { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 16px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; font-weight: 600; font-size: .95rem; border: 0; padding: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: 6px; }
.field input, .field select, .piece input { font: inherit; font-weight: 400; font-size: 1rem; padding: 11px 13px; border: 1px solid #e2d6d3; border-radius: 10px; background: #fff; width: 100%; color: var(--ink); min-height: 46px; }
.field input:focus, .field select:focus, .piece input:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); }
.field small { font-weight: 400; }
.req { color: var(--warn); font-weight: 700; }
.seg { display: flex; gap: 8px; }
.seg label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #e2d6d3; border-radius: 10px; padding: 11px; cursor: pointer; font-weight: 500; }
.seg label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); font-weight: 700; }
.seg input, .choice input, .check input { accent-color: var(--accent); width: 18px; height: 18px; }
.piece { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 8px; background: #fffbfa; }
.piece-row { display: grid; grid-template-columns: 1fr 120px auto; gap: 8px; align-items: end; }
.piece-time { display: grid; gap: 2px; font-size: .8rem; color: var(--muted); font-weight: 600; position: relative; }
.piece-time small { position: absolute; right: 10px; bottom: 13px; font-size: .75rem; }
.piece-info { font-size: .9rem; font-weight: 400; margin-top: 6px; display: grid; gap: 2px; min-height: 1.2em; }
.piece-found { color: var(--ok); }
.piece-found strong { color: var(--ink); }
.warn-text { color: var(--warn); }
.icon-btn { border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 46px; height: 46px; font-size: 1.3rem; cursor: pointer; color: var(--muted); }
@media (max-width: 520px) { .piece-row { grid-template-columns: 1fr auto; } .piece-row .piece-q { grid-column: 1 / -1; } }
.total { margin: 8px 0 0; font-weight: 400; }
.choice { display: grid; gap: 10px; margin-bottom: 10px; }
.choice-item { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #e2d6d3; border-radius: 12px; padding: 14px; cursor: pointer; }
.choice-item:has(input:checked) { border-color: var(--accent); background: #fff8f8; box-shadow: 0 0 0 2px var(--accent-soft); }
.choice-item span { display: grid; gap: 4px; }
.choice-item small { color: var(--ink-2); }
.choice-item input { margin-top: 3px; flex: none; }
.consent { background: var(--bg-alt); border-radius: 12px; padding: 12px 16px; max-height: 220px; overflow: auto; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 6px; cursor: pointer; font-weight: 600; }
.check input { margin-top: 3px; flex: none; }
.form-error { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 12px 14px; font-weight: 600; margin: 10px 0; }
.btn-block { width: 100%; margin-top: 12px; font-size: 1.05rem; min-height: 54px; }
.center { text-align: center; }
.video { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; margin-bottom: 14px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 부문 찾기 결과 */
.finder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .finder { grid-template-columns: 1fr; } }
.res-title { font-family: var(--sans); font-size: 1.1rem; margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; }
.res-title span { font-size: .8rem; background: var(--bg-alt); border-radius: 999px; padding: 1px 9px; }
.res-ok { color: var(--ok); } .res-adjust { color: #8a5a00; } .res-check { color: var(--accent); } .res-no { color: var(--muted); }
.results { display: grid; gap: 10px; }
.result { border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; }
.result-ok { border-left-color: var(--ok); } .result-adjust { border-left-color: #d9a400; } .result-check { border-left-color: var(--accent); } .result-no { border-left-color: #bbb; opacity: .8; }
.result-head { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.result-head > div { flex: 1; display: grid; }
.result-head small { color: var(--muted); }
.result p { margin: 0 0 8px; color: var(--ink-2); }
.reasons { margin: 0 0 10px; padding-left: 1.2em; font-size: .9rem; color: #8a5a00; }
.result-no .reasons { color: var(--muted); }

/* 접수 완료·확인 */
.done { text-align: center; }
.code-label { color: var(--muted); margin: 10px 0 0; }
.code { font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.status-card { margin-top: 18px; }
.status-big { font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; }
.status-big.status-passed { color: var(--ok); } .status-big.status-failed { color: var(--muted); } .status-big.status-received { color: var(--accent); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 14px 0 0; }
.kv dt { color: var(--muted); font-size: .92rem; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.result.compact { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.result.compact > div { flex: 1; display: grid; }
.result.compact small { color: var(--muted); font-size: .85rem; }

/* 포스터 색 (빨강·금색) */
:root { --gold: #b8904a; }
.kicker { color: var(--gold); }
.brand-mark span { color: var(--accent); }

/* 홈: 글 + 포스터 */
.hero.with-poster { background: linear-gradient(160deg, #fbf1ee 0%, #fff 70%); }
.hero.with-poster .hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(36px, 6vw, 72px); padding-bottom: clamp(36px, 6vw, 72px); }
.hero-poster { margin: 0; }
.hero-poster img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 18px 50px rgba(120, 10, 30, .22); }
@media (max-width: 860px) {
  .hero.with-poster .hero-in { grid-template-columns: 1fr; }
  .hero-poster { max-width: 320px; margin: 8px auto 0; }
}
.checks-list { list-style: none; padding: 0; margin: 6px 0 8px; display: grid; gap: 4px; }
.checks-list li::before { content: '✓ '; color: var(--ok); font-weight: 700; }
.card h4 { margin: 14px 0 4px; font-size: .98rem; }
.pkg-sched { margin-bottom: 24px; }
.pkg-sched .timeline { margin: 14px 0 10px; }
.gallery img { aspect-ratio: auto; height: auto; object-fit: initial; }
.finals-head { margin-top: 20px; font-family: var(--sans); font-size: 1.05rem; }
.finals-list { padding-left: 1.3em; margin: 4px 0 0; }
.ok-text { color: var(--ok); font-weight: 600; }
.result-ok .reasons { color: var(--muted); }

/* 2027 지역예선 사진 띠 */
.band.prelim { padding-top: clamp(28px, 4vw, 44px); background: #1d1416; color: #fff; }
.prelim h2 { color: #fff; margin-bottom: .3em; }
.prelim .muted { color: #cdbfc1; }
.prelim-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 18px; }
.prelim-head p { margin: 0; }
.prelim-tabs { margin: 0; }
.prelim-tabs button { background: transparent; color: #e9dfe0; border-color: #4a3b3e; }
.prelim-tabs button span { color: #a8999b; }
.prelim-tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.strip-wrap { position: relative; }
.strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: #5a4a4d transparent; }
.strip-item { flex: 0 0 auto; margin: 0; scroll-snap-align: start; cursor: zoom-in; width: clamp(240px, 32vw, 420px); }
.strip-item img { width: 100%; height: clamp(170px, 22vw, 280px); object-fit: cover; border-radius: 10px; transition: transform .25s; }
.strip-item:hover img { transform: scale(1.02); }
.strip-item figcaption { font-size: .88rem; color: #e2d6d7; margin-top: 8px; }
.strip-item .tag { background: rgba(255,255,255,.12); color: #f0cf8e; }
.strip-nav { position: absolute; top: calc(50% - 30px); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.strip-nav.prev { left: -10px; } .strip-nav.next { right: -10px; }
@media (max-width: 640px) { .strip-nav { display: none; } .strip-item { width: 78vw; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 5, 6, .88); }
.lightbox img { max-width: 92vw; max-height: 82vh; display: block; margin: 0 auto; border-radius: 8px; }
.lb-cap { color: #fff; text-align: center; margin: 10px 0 0; }
.lb-close, .lb-prev, .lb-next { position: fixed; border: 0; background: rgba(255,255,255,.15); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; cursor: pointer; }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 16px; top: 50%; } .lb-next { right: 16px; top: 50%; }

/* 싱가포르 둘러보기 */
.sg-h { font-family: var(--sans); font-size: 1.1rem; margin: 26px 0 12px; }
.sg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.sg-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.sg-icon { font-size: 1.9rem; line-height: 1; flex: none; width: 46px; height: 46px; display: grid; place-items: center; background: var(--accent-soft); border-radius: 12px; }
.sg-card h4 { margin: 0 0 4px; font-size: 1rem; }
.sg-card p { margin: 0; color: var(--ink-2); font-size: .92rem; }
/* 사진 카드 (관광지·먹거리) */
.sg-grid:has(.sg-photo) { grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 16px; }
.sg-photo { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(30, 12, 16, .05); transition: transform .2s, box-shadow .2s; }
.sg-photo:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(30, 12, 16, .12); }
.sg-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.sg-photo figcaption { padding: 14px 16px 16px; }
.sg-photo h4 { margin: 0 0 6px; font-size: 1.05rem; }
.sg-photo p { margin: 0; color: var(--ink-2); font-size: .92rem; line-height: 1.55; }
@media (max-width: 560px) { .sg-grid:has(.sg-photo) { grid-template-columns: 1fr 1fr; gap: 10px; } .sg-photo figcaption { padding: 10px 12px 12px; } .sg-photo p { font-size: .85rem; } }

/* 홈 동영상 */
.home-video { background: linear-gradient(180deg, #1d1416 0%, #2a1a1d 100%); color: #fff; padding-top: 8px; }
.home-video h2 { color: #fff; }
.home-video .muted { color: #cdbfc1; }
.hv-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
@media (max-width: 860px) { .hv-grid { grid-template-columns: 1fr; } }
.hv-player { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.hv-player video, .hv-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.sg-photo .credit { display: block; margin-top: 8px; font-size: .72rem; color: var(--muted); }
.sg-photo .credit a { color: var(--muted); }
/* 심사위원장 사진 크게 */
.person { align-items: center; gap: 20px; padding: 22px; }
.person img, .person .avatar { width: 120px; height: 120px; box-shadow: 0 4px 14px rgba(30, 12, 16, .12); }
.person img { object-position: center 25%; }
