/* ---------- 색·글꼴 (여기 값만 바꾸면 전체에 반영) ---------- */
:root {
  --accent: #62d7ff;
  --bg: #02050b;
  --hero-bg: #030712;
  --line: #e5e7eb;
  --line-soft: rgba(255, 255, 255, 0.1);
  --text: #fff;
  --font: Inter, Arial, sans-serif; /* 한글은 기기 기본 글꼴로 나옵니다 (기존 사이트와 같음) */
}

/* 화면 폭 기준: 640px 이상(sm), 768px 이상(md), 1024px 이상(lg). 기본값은 모바일입니다. */

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
iframe { display: block; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
[hidden] { display: none !important; }

/* 가운데 정렬 폭 */
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

/* 작은 하늘색 대문자 라벨 */
.kicker { color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; }

/* ---------- 왼쪽 위 KBW 로고 ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; pointer-events: none; }
.site-header .wrap { display: flex; padding-top: 16px; }
.corner-logo { pointer-events: auto; display: inline-flex; filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.55)); transition: opacity 0.15s; }
.corner-logo:hover { opacity: 0.8; }
.corner-logo img { height: 24px; width: auto; }

/* ---------- 히어로 ---------- */
main { overflow: hidden; }
.hero { position: relative; min-height: 100svh; background: var(--hero-bg); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg video, .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 44%, rgba(98, 215, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(2, 5, 11, 0.14) 0%, rgba(2, 5, 11, 0.3) 42%, rgba(2, 5, 11, 0.92) 100%);
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; min-height: 100svh; padding: 80px 0 40px; text-align: center; }
.tagline { max-width: 920px; padding: 12px 16px; font-size: 17px; font-weight: 600; line-height: 1.25; }
.lockup { width: min(88vw, 680px); height: auto; margin-bottom: 8px; filter: drop-shadow(0 26px 72px rgba(2, 5, 11, 0.62)); }

/* 테두리 박스 */
.panel {
  width: 100%; max-width: 896px; margin-top: 8px; padding: 20px 16px; text-align: left;
  border: 1px solid var(--line); background: rgba(2, 5, 11, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); backdrop-filter: blur(12px);
}
#winners { margin-top: 4px; }
.panel-title { color: var(--accent); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; text-align: center; }

/* 우승팀 */
.winner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.card { display: block; width: 100%; min-width: 0; overflow: hidden; text-align: left; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.035); transition: border-color 0.15s, background 0.15s; }
.card:hover { border-color: rgba(98, 215, 255, 0.55); background: rgba(255, 255, 255, 0.06); }
.card-photo { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #041322; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; opacity: 0.9; transition: transform 0.5s, opacity 0.5s; }
.winner:nth-child(3) .card-photo img { object-position: center 40%; }
.card:hover .card-photo img { transform: scale(1.03); opacity: 1; }
.winner-text { display: block; min-height: 66px; padding: 8px 6px; }
.winner-place { display: block; color: var(--accent); font-size: 8px; font-weight: 600; text-transform: uppercase; }
.winner-team { display: block; margin-top: 4px; font-size: 10px; line-height: 16px; font-weight: 600; overflow-wrap: break-word; }
.finalists { margin-top: 12px; }
.finalists .card-photo { aspect-ratio: 2 / 1; }
.finalists .card-photo img { object-position: center; }
.finalists-caption { display: block; padding: 12px 16px; text-align: center; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }

/* 행사 스케치 영상 (Vimeo) */
.sketch { position: relative; width: 100%; max-width: 896px; margin-top: 8px; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); background: #000; }
.sketch iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* 일정 */
.schedule-main { padding-bottom: 20px; border-bottom: 1px solid var(--line); text-align: center; }
.schedule-label { color: var(--accent); font-size: 16px; line-height: 24px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.schedule-date { margin-top: 8px; font-size: 20px; line-height: 32px; font-weight: 600; }
.schedule-place { margin-top: 4px; font-size: 8px; line-height: 20px; font-weight: 600; white-space: nowrap; }
.schedule-sub { display: grid; gap: 20px; padding-top: 20px; }
.schedule-sub > div + div { padding-top: 20px; border-top: 1px solid var(--line); }
.schedule-sub-label { color: var(--accent); font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.schedule-sub-text { margin-top: 8px; min-height: 56px; font-size: 16px; line-height: 28px; font-weight: 600; }

/* TOP 20 */
.team-list { display: grid; grid-template-columns: 1fr; gap: 10px 32px; margin-top: 16px; }
.team-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.team-name { min-width: 0; line-height: 24px; }
.flags { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.flags img { width: 20px; height: 14px; border-radius: 1px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28); }

/* 인터뷰 */
.interviews { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.interviews-head { display: flex; flex-direction: column; gap: 8px; }
.interviews-label { color: var(--accent); font-size: 10px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; }
.interviews-title { margin-top: 4px; font-size: 18px; line-height: 1.25; font-weight: 600; text-transform: uppercase; }
.interviews-hint { font-size: 12px; line-height: 20px; }
.interview-grid { display: grid; gap: 10px; margin-top: 16px; }
.interview { display: flex; min-height: 76px; overflow: hidden; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.035); transition: border-color 0.15s, background 0.15s; }
.interview:hover { border-color: rgba(98, 215, 255, 0.5); background: rgba(255, 255, 255, 0.06); }
.interview-thumb { display: block; width: 112px; height: 76px; flex-shrink: 0; overflow: hidden; background: #041322; }
.interview-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; transition: transform 0.5s, opacity 0.5s; }
.interview:hover .interview-thumb img { transform: scale(1.04); opacity: 1; }
.interview-text { display: flex; flex: 1; min-width: 0; flex-direction: column; justify-content: center; padding: 10px 12px; }
.interview-team { display: block; color: var(--accent); font-size: 9px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.interview-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 4px; font-size: 12px; line-height: 20px; font-weight: 600; color: rgba(255, 255, 255, 0.9); }

/* 펼치기 */
.collapsible:not(.open) > .extra { display: none; }
.dots { margin-top: 12px; text-align: center; font-size: 16px; line-height: 24px; letter-spacing: 0.36em; }
.more { display: flex; justify-content: center; margin-top: 16px; }
.more-btn { padding: 8px 16px; border: 1px solid rgba(98, 215, 255, 0.45); background: rgba(98, 215, 255, 0.1); color: var(--accent); font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; transition: border-color 0.15s; }
.more-btn:hover { border-color: rgba(98, 215, 255, 0.7); }

/* 주최·후원 (로고 높이는 content.js의 height 값) */
.partners { display: grid; gap: 24px; width: 100%; max-width: 896px; }
.partner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.partner-role { flex-shrink: 0; font-size: 10px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; }
.partner img { height: var(--h-mobile); width: auto; object-fit: contain; }

/* ---------- 아래 섹션 공통 ---------- */
.block { padding: 64px 0; background-color: var(--bg); background-repeat: no-repeat; background-size: cover; }
#scan-prizes { background-image: linear-gradient(180deg, rgba(2, 5, 11, 0.98), rgba(2, 5, 11, 0.88) 45%, rgba(2, 5, 11, 0.98)), url("assets/scan-2026-bg-wide.webp"); background-position: center top; }
#scan-gallery { background-image: linear-gradient(180deg, rgba(2, 5, 11, 0.98), rgba(2, 5, 11, 0.82) 45%, rgba(2, 5, 11, 0.96)), url("assets/scan-2026-bg-portrait.webp"); background-position: center; }
.big-title { margin-top: 16px; font-size: 36px; line-height: 0.98; font-weight: 600; text-transform: uppercase; }

/* 상금 */
.total-prize { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.total-prize img { width: 48px; height: 48px; flex-shrink: 0; object-fit: contain; }
.total-text { display: flex; align-items: center; justify-content: center; gap: 4px 12px; }
.total-label, .total-value { flex-shrink: 0; color: var(--accent); font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.total-bar { flex-shrink: 0; color: rgba(98, 215, 255, 0.35); }
.prize-panel { max-width: 896px; margin: 40px auto 0; padding: 32px 20px; border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); backdrop-filter: blur(4px); }
.prize-table { margin-top: 32px; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 2px; }
.prize-head, .prize-table li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.prize-head { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.04); color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; }
.prize-head p:last-child { text-align: right; }
.prize-table li { align-items: center; gap: 12px; padding: 14px 16px; font-size: 14px; line-height: 20px; }
.prize-table li + li, .prize-dots { border-top: 1px solid var(--line); }
.prize-rank { font-weight: 500; }
.medal { margin-right: 8px; }
.prize-value { text-align: right; color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.prize-dots { padding: 12px 16px; text-align: center; font-size: 18px; line-height: 28px; letter-spacing: 0.4em; color: rgba(255, 255, 255, 0.45); }
.prize-panel .more { margin-top: 24px; }
.prize-panel .more-btn { padding: 10px 20px; font-size: 11px; letter-spacing: 0.24em; }

/* 언론 보도 */
.featured { margin-top: 56px; text-align: center; }
.featured-title { font-size: 36px; line-height: 1.25; font-weight: 700; }
.featured-text { max-width: 768px; margin: 16px auto 0; font-size: 16px; line-height: 1.625; }
.logo-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; max-width: 1180px; margin: 40px auto 0; padding: 0 4px; }
.logo-wall li { display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; aspect-ratio: 3.4 / 1; overflow: hidden; }
.logo-wall a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; overflow: hidden; border-radius: 2px; }
.logo-wall img { width: 100%; height: 100%; object-fit: contain; opacity: 0.9; transition: opacity 0.15s; }
.logo-wall img:hover { opacity: 1; }

/* 아카이브 */
.archive { display: grid; gap: 32px; margin-bottom: 40px; }
.archive-text { max-width: 672px; margin-top: 24px; font-size: 14px; line-height: 28px; color: #c4d4e8; }
.video-frame { overflow: hidden; padding: 8px; border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); backdrop-filter: blur(4px); }
.video-frame iframe { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.marquee { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; padding-right: 12px; animation: marquee 48s linear infinite; }
.marquee-track img { width: 300px; height: 180px; max-width: none; flex-shrink: 0; border-radius: 2px; object-fit: cover; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* 하단 */
footer { padding: 24px 0; border-top: 1px solid var(--line-soft); background: var(--bg); }
footer p { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; text-align: center; font-size: 11px; line-height: 20px; color: rgba(255, 255, 255, 0.55); }
footer span { white-space: nowrap; }
footer .sep { display: none; color: rgba(255, 255, 255, 0.2); }
footer a { color: rgba(255, 255, 255, 0.7); transition: color 0.15s; }
footer a:hover { color: var(--accent); }

/* 사진 확대 */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 0, 0, 0.85); }
.lightbox img { max-height: 90vh; width: auto; }
.lightbox-close { position: absolute; top: 12px; right: 20px; font-size: 36px; }

/* ---------- 640px 이상 ---------- */
@media (min-width: 640px) {
  .site-header .wrap { padding-top: 24px; }
  .corner-logo img { height: 32px; }
  .hero-inner { justify-content: center; gap: 20px; padding: 28px 0; }
  .tagline { padding: 12px 32px; font-size: 24px; line-height: 32px; }
  .lockup { width: min(84vw, 800px); margin-bottom: 16px; }
  .panel { margin-top: 12px; padding: 24px 32px; }
  #winners { margin-top: 8px; padding: 24px; }
  .panel-title { font-size: 14px; line-height: 20px; }
  .winner-grid { gap: 12px; }
  .winner-text { min-height: 0; padding: 10px 12px; }
  .winner-place { font-size: 9px; letter-spacing: 0.2em; }
  .winner-team { font-size: 14px; line-height: 20px; }
  .finalists-caption { font-size: 14px; line-height: 20px; letter-spacing: 0.26em; }
  .sketch { margin-top: 12px; }
  .schedule-main { padding-bottom: 24px; }
  .schedule-label { font-size: 18px; line-height: 28px; }
  .schedule-date { margin-top: 12px; font-size: 24px; line-height: 36px; }
  .schedule-place { font-size: 11px; }
  .schedule-sub { padding-top: 24px; }
  .schedule-sub-label { font-size: 11px; }
  .team-list { grid-template-columns: 1fr 1fr; margin-top: 20px; }
  .team-list li { font-size: 16px; }
  .flags img { width: 22px; height: 15px; }
  .interviews { margin-top: 28px; padding-top: 24px; }
  .interviews-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .interviews-title { font-size: 20px; line-height: 28px; }
  .interviews-hint { max-width: 280px; text-align: right; }
  .interview-grid { grid-template-columns: 1fr 1fr; }
  .interview-thumb { width: 104px; }
  .partners { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .partner { flex-direction: row; gap: 16px; }
  .partner img { height: var(--h); }
  .total-prize { flex-direction: row; gap: 20px; }
  .total-prize img { width: 56px; height: 56px; }
  .total-text { flex-wrap: wrap; column-gap: 20px; }
  .total-label, .total-value { letter-spacing: 0.28em; }
  .total-label { font-size: 18px; line-height: 28px; }
  .total-value { font-size: 24px; line-height: 32px; }
  .prize-panel { padding: 40px 32px; }
  .prize-head { padding: 12px 24px; }
  .prize-table li { padding: 16px 24px; font-size: 16px; line-height: 24px; }
  .prize-dots { padding: 12px 24px; font-size: 20px; }
  .logo-wall { grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 28px 12px; margin-top: 48px; }
  .marquee-track img { width: 360px; height: 216px; }
  footer .sep { display: inline; }
}

/* ---------- 768px 이상 ---------- */
@media (min-width: 768px) {
  .tagline { font-size: 30px; line-height: 36px; }
  .schedule-date { font-size: 30px; line-height: 40px; }
  .schedule-place { font-size: 14px; }
  .schedule-sub { grid-template-columns: 1fr 1fr; gap: 0; }
  .schedule-sub > div:first-child { padding-right: 24px; }
  .schedule-sub > div + div { padding: 0 0 0 24px; border-top: 0; border-left: 1px solid var(--line); }
  .block { padding: 96px 0; }
  .big-title { font-size: 60px; line-height: 1; }
  .total-prize img { width: 64px; height: 64px; }
  .total-label { font-size: 20px; }
  .total-value { font-size: 30px; line-height: 36px; }
  .prize-panel { margin-top: 48px; }
  .featured { margin-top: 64px; }
  .featured-title { font-size: 48px; line-height: 1; }
  .featured-text { margin-top: 20px; font-size: 18px; line-height: 28px; }
  .archive-text { line-height: 32px; }
  footer { padding: 32px 0; }
  footer p { column-gap: 16px; font-size: 12px; line-height: 24px; }
}

/* ---------- 1024px 이상 ---------- */
@media (min-width: 1024px) {
  .hero-inner { gap: 24px; }
  .lockup { width: min(76vw, 840px); }
  .panel, .sketch { margin-top: 16px; }
  #winners { margin-top: 8px; }
  .schedule-place { font-size: 16px; line-height: 24px; }
  .archive { grid-template-columns: 0.72fr 1.28fr; align-items: end; }
}
