/* =========================================================
   WHITEHAT 2026 — main stylesheet
   ========================================================= */
:root {
  --navy-900: #01061a;
  --navy-800: #030b2a;
  --navy-700: #06154a;
  --blue-500: #1f6bff;
  --blue-400: #3d8bff;
  --cyan-400: #2fd3ff;
  --cyan-300: #6fe3ff;
  --line: rgba(78, 140, 255, .45);
  --line-soft: rgba(78, 140, 255, .22);
  --card-bg: linear-gradient(180deg, rgba(10, 30, 95, .72), rgba(4, 14, 52, .78));
  --text: #ffffff;
  --text-sub: #c3cff0;
  --text-mute: #8a9cc9;
  --gold: #f5c451;
  --silver: #c9d3e6;
  --bronze: #e7865a;
  --header-h: 80px;
  --radius: 10px;
  --inner: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--navy-900);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd, p, h1, h2, h3 { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.inner { width: 100%; max-width: var(--inner); margin: 0 auto; padding: 0 40px; }
.pc-only { display: inline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px;
  border-radius: 8px; font-weight: 700; font-size: 17px;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn .arrow { transition: transform .2s; font-weight: 400; }
.btn:hover .arrow { transform: translateX(4px); }
.btn--primary {
  background: linear-gradient(180deg, #2b8cff 0%, #1450f0 100%);
  border: 1px solid #6fb2ff;
  box-shadow: 0 0 22px rgba(40, 130, 255, .55), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn--primary:hover { box-shadow: 0 0 32px rgba(60, 150, 255, .85), inset 0 1px 0 rgba(255,255,255,.35); transform: translateY(-2px); }
.btn--ghost { border: 1px solid rgba(255,255,255,.75); background: rgba(3, 10, 40, .45); }
.btn--ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn--line { border: 1px solid var(--blue-400); background: rgba(10, 35, 110, .5); color: #dfe9ff; }
.btn--line:hover { background: rgba(40, 110, 255, .35); border-color: var(--cyan-300); }
.btn--sm { height: 44px; padding: 0 26px; font-size: 16px; }
.btn--xs { height: 32px; padding: 0 14px; font-size: 12.5px; font-weight: 600; border-radius: 5px; gap: 8px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  border-bottom: 1px solid rgba(80, 130, 255, .18);
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(2, 8, 30, .55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .3s;
}
.header.is-scrolled::before, body.menu-open .header::before { background: rgba(2, 8, 30, .95); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.header__logo img { height: 34px; width: auto; }
.gnb { display: flex; align-items: center; gap: 28px; }
.gnb ul { display: flex; gap: 40px; margin-right: 8px; }
.gnb ul a { font-size: 16px; font-weight: 600; position: relative; padding: 8px 0; color: #eaf0ff; }
.gnb ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--cyan-400); transform: scaleX(0); transition: transform .25s; box-shadow: 0 0 8px var(--cyan-400);
}
.gnb ul a:hover::after, .gnb ul a.is-active::after { transform: scaleX(1); }
.gnb__apply { min-width: 140px; }

/* 언어 선택 */
.lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(3, 12, 45, .55); }
.lang__icon { width: 16px; height: 16px; margin: 0 4px 0 6px; fill: none; stroke: var(--cyan-300); stroke-width: 1.6; }
.lang__btn { height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--text-sub); transition: background .2s, color .2s; }
.lang__btn:hover { color: #fff; }
.lang__btn[aria-pressed="true"] { background: linear-gradient(180deg, #2b8cff, #1450f0); color: #fff; box-shadow: 0 0 10px rgba(40, 130, 255, .5); }
.menu-dim { display: none; }
.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Section common ---------- */
.section { position: relative; overflow: hidden; border-top: 1px solid rgba(70, 120, 255, .25); }
.section__bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--bg) center / cover no-repeat;
}
.section > .inner { position: relative; z-index: 1; }

.sec-title { position: relative; padding-left: 16px; }
.sec-title::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px;
  background: linear-gradient(180deg, var(--cyan-400), var(--blue-500));
  box-shadow: 0 0 10px var(--cyan-400);
}
.sec-title__en { display: block; white-space: nowrap; font-size: 12px; letter-spacing: .12em; color: var(--text-sub); font-weight: 500; }
.sec-title__ko { white-space: nowrap; font-size: 34px; font-weight: 800; line-height: 1.3; letter-spacing: -0.03em; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: var(--header-h); min-height: 1080px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(90deg, rgba(1,6,26,.88) 0%, rgba(1,6,26,.55) 32%, rgba(1,6,26,0) 55%),
    linear-gradient(0deg, rgba(1,6,26,.95) 0%, rgba(1,6,26,0) 30%),
    linear-gradient(90deg, #01061a 0, rgba(1,6,26,0) calc(50% - 860px), rgba(1,6,26,0) calc(50% + 860px), #01061a 100%),
    url("../images/01_main_bg.jpg") center top / 1920px 1080px no-repeat;
  background-color: var(--navy-900);
  animation: fadeIn 1.2s ease-out both;
}
.hero > .inner { position: relative; z-index: 1; }
.hero__inner { flex: 1; display: flex; justify-content: space-between; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.hero__content { max-width: 560px; animation: fadeUp 1s .2s both; }
.hero__logo img { width: 100%; max-width: 520px; filter: drop-shadow(0 0 30px rgba(60, 130, 255, .45)); }
.hero__logo-en { display: none; }
html[lang="en"] .hero__logo-ko { display: none; }
html[lang="en"] .hero__logo-en { display: block; max-width: 560px; }
.hero__title { margin-top: 28px; font-size: 32px; font-weight: 800; line-height: 1.4; letter-spacing: -0.03em; }
.hero__desc { margin-top: 18px; font-size: 17px; color: var(--text-sub); line-height: 1.7; }
.hero__btns { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__btns .btn { min-width: 200px; }
.hero__slogans {
  align-self: flex-start; display: flex; flex-direction: column; gap: 90px; margin-top: 30px;
  text-align: right; font-size: 13px; letter-spacing: .35em; line-height: 2; color: rgba(210, 225, 255, .9); text-shadow: 0 0 8px rgba(1,6,26,.9);
  animation: fadeIn 1.4s .6s both;
}

.quick { display: flex; gap: 12px; padding: 0 0 36px; animation: fadeUp 1s .5s both; }
.quick__item {
  flex: 1 1 auto; display: flex; align-items: center; gap: 14px; padding: 22px 20px; min-height: 96px;
  background: linear-gradient(180deg, rgba(10, 32, 105, .78), rgba(3, 14, 58, .82));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: inset 0 0 24px rgba(40, 110, 255, .18), 0 0 18px rgba(20, 80, 255, .15);
  backdrop-filter: blur(6px);
}
.quick__icon { width: 44px; height: 44px; object-fit: contain; flex: none; filter: drop-shadow(0 0 8px rgba(47, 211, 255, .45)); }
.quick__label { font-size: 15px; font-weight: 600; color: #e6edff; }
.quick__value { white-space: nowrap; font-size: 20px; font-weight: 800; color: var(--cyan-300); letter-spacing: -0.02em; }
.quick__value .nw, .quick__label { white-space: nowrap; }
.quick__time { margin-top: 2px; font-size: 14px; font-weight: 600; color: #fff; letter-spacing: .01em; white-space: nowrap; }
.quick__value small { font-size: 13px; font-weight: 600; color: var(--text-sub); }
.quick__note { font-size: 13.5px; color: var(--text-sub); }
/* 참가신청 마감 표시 */
.closed-badge {
  display: inline-block; margin-left: 8px; padding: 1px 9px; vertical-align: 2px;
  border: 1px solid #ff6b6b; border-radius: 999px; background: rgba(255, 80, 80, .14);
  font-size: 12px; font-weight: 800; letter-spacing: 0; color: #ff8a8a;
}
.quick__item.is-closed .quick__value { color: var(--text-mute); }
.quick__item.is-closed .quick__value small { color: #6f7fa8; }
.quick__item { min-width: 0; }
/* 참가신청 기간·예선·본선 카드는 항상 한 줄, 공간이 모자라면 컨퍼런스 카드의 안내 문구가 줄바꿈 */
.quick__item { flex-shrink: 0; }
.quick__item:last-child { flex-shrink: 1; }
.quick__item .btn { margin-left: auto; }

/* ---------- About ---------- */
.about { padding: 64px 0; }
.about .section__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1,6,26,.7) 0%, rgba(1,6,26,.2) 45%, rgba(1,6,26,0) 62%, rgba(1,6,26,.85) 100%); }
.about__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 30px; min-height: 420px; }
.about__lead { margin-top: 32px; font-size: 23px; font-weight: 800; line-height: 1.5; letter-spacing: -0.03em; }
.about__lead em { font-style: normal; color: var(--cyan-400); text-shadow: 0 0 14px rgba(47, 211, 255, .5); }
.about__desc { margin-top: 18px; color: var(--text-sub); font-size: 15.5px; line-height: 1.75; }
.about__contact { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.about__mail { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; color: #dfe8ff; }
.about__mail img { width: 24px; height: 18px; object-fit: contain; }
.about__mail u { text-underline-offset: 3px; text-decoration-color: rgba(111, 227, 255, .6); }
.about__mail:hover { color: var(--cyan-300); }
.about__visual { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: flex-start; }
.about__stage { position: relative; width: 100%; max-width: 440px; margin-left: -30px; transform: translateY(8px); }
.about__object { display: none; }
.about__type-en { display: none; margin: 0; font-family: "Kaushan Script", "Brush Script MT", cursive; font-size: 46px; line-height: 1.15; color: #fff; text-align: center; transform: rotate(-4deg); text-shadow: 0 0 18px rgba(120, 180, 255, .55), 0 2px 12px rgba(0, 0, 0, .8); white-space: nowrap; }
html[lang="en"] .about__type { display: none; }
html[lang="en"] .about__type-en { display: block; }
.about__type { width: 100%; filter: drop-shadow(0 2px 14px rgba(0,0,0,.7)); transform: rotate(-4deg); }
/* 주최·주관 CI : 캘리그래피 문구 바로 아래 */
.about__org { position: absolute; left: 50%; top: calc(100% + 22px); transform: translateX(-50%); width: max-content; display: flex; align-items: flex-end; gap: 44px; white-space: nowrap; }
.org { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.org__label { font-size: 13px; font-weight: 600; color: var(--text-sub); letter-spacing: .04em; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.org img { height: 54px; width: auto; max-width: none; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .75)); }

/* ---------- Guide ---------- */
.guide { padding: 36px 0; }
.guide__inner { display: grid; grid-template-columns: 190px 1fr; gap: 20px; align-items: start; }
.guide .sec-title { margin-top: 6px; }
.guide__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
/* 문제 유형 */
.ptype { margin-top: 18px; display: grid; grid-template-columns: 1fr; gap: 10px; }
.ptype li {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 16px;
  border: 1px solid var(--line-soft); border-left: 3px solid var(--cyan-400); border-radius: 6px;
  background: rgba(3, 12, 45, .55);
}
.ptype strong { font-size: 16px; font-weight: 800; color: #fff; }
.ptype span { font-size: 14px; color: var(--text-sub); line-height: 1.55; }
.card {
  padding: 22px 20px 24px; border-radius: var(--radius);
  background: var(--card-bg); border: 1px solid var(--line);
  box-shadow: inset 0 0 22px rgba(40, 110, 255, .15);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--cyan-400); box-shadow: inset 0 0 22px rgba(40, 110, 255, .2), 0 0 24px rgba(47, 160, 255, .3); }
.card__title { display: flex; align-items: center; gap: 10px; font-size: 17px; white-space: nowrap; font-weight: 800; color: var(--cyan-300); }
.card__title img { width: 34px; height: 30px; object-fit: contain; filter: drop-shadow(0 0 6px rgba(47, 211, 255, .45)); }
.track { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.track li { display: grid; grid-template-columns: minmax(76px, max-content) 1fr; border: 1px solid var(--line-soft); border-radius: 5px; overflow: hidden; font-size: 14px; }
.track strong { background: rgba(40, 90, 220, .45); padding: 9px 10px; text-align: center; font-weight: 800; }
.track span { white-space: nowrap; padding: 9px 12px; color: var(--text-sub); background: rgba(3, 12, 45, .55); }
.card__pill {
  margin-top: 18px; padding: 8px 12px; text-align: center; font-size: 15px; font-weight: 600;
  background: rgba(20, 60, 170, .55); border: 1px solid var(--line); border-radius: 5px;
}
.card__text { margin-top: 16px; font-size: 14px; color: var(--text-sub); line-height: 1.65; }
.card__sub { margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(78, 140, 255, .3); }
.card__sub h4 { margin: 0; font-size: 14.5px; font-weight: 800; color: var(--cyan-300); }
.card__sub .card__text { margin-top: 8px; }
.card__list { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--text-sub); line-height: 1.55; }
.card__pill + .card__list { margin-top: 12px; }
.card__list li { position: relative; padding-left: 13px; }
.card__list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 4px; height: 4px; border-radius: 50%; background: var(--cyan-400); }
.card__note { margin-top: 8px; font-size: 12.5px; color: var(--text-mute); line-height: 1.55; }
.card__text--warn { color: #e6edff; }
.card__text + .card__text { margin-top: 10px; }
.card__spec { margin-top: 14px; padding-left: 12px; font-size: 14px; color: var(--text-sub); line-height: 1.75; }
.card__btn { margin-top: 18px; }

/* ---------- Schedule ---------- */
.schedule { padding: 60px 0; }
.schedule .section__bg { background-position: center right; }
.schedule .section__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1,6,26,.55) 0%, rgba(1,6,26,.1) 60%, rgba(1,6,26,0) 100%); }
.schedule__inner { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; align-items: start; min-height: 260px; }
.schedule__desc { margin-top: 20px; font-size: 14.5px; color: var(--text-sub); line-height: 1.7; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; max-width: 760px; }
.step {
  position: relative; text-align: center; padding: 22px 12px 24px;
  background: var(--card-bg); border: 1px solid var(--line); border-radius: 16px 4px 16px 4px;
  box-shadow: inset 0 0 22px rgba(40, 110, 255, .15);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.step:hover { transform: translateY(-4px); border-color: var(--cyan-400); box-shadow: inset 0 0 22px rgba(40, 110, 255, .2), 0 0 24px rgba(47, 160, 255, .3); }
.step + .step::before {
  content: ""; position: absolute; left: -20px; top: 50%; width: 10px; height: 10px;
  border-top: 2px solid #cfe1ff; border-right: 2px solid #cfe1ff; transform: translateY(-50%) rotate(45deg);
}
.step__icon { width: 36px; height: 36px; object-fit: contain; margin: 0 auto 10px; filter: drop-shadow(0 0 6px rgba(47, 211, 255, .5)); }
.step__num { display: block; font-size: 12px; letter-spacing: .06em; color: var(--cyan-300); font-weight: 600; }
.step__title { display: block; margin-top: 2px; font-size: 19px; font-weight: 800; }
.step__date { margin-top: 12px; font-size: 14px; font-weight: 700; line-height: 1.5; }
.step__place { margin-top: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.place-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 10px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .04em; color: #fff;
  border: 1px solid rgba(111, 227, 255, .6); border-radius: 999px;
  background: linear-gradient(180deg, rgba(47, 160, 255, .35), rgba(20, 70, 200, .35));
  box-shadow: 0 0 12px rgba(47, 211, 255, .25);
  transition: background .2s, box-shadow .2s;
}
a.place-tag:hover { background: linear-gradient(180deg, rgba(47, 180, 255, .55), rgba(20, 90, 230, .5)); box-shadow: 0 0 18px rgba(47, 211, 255, .45); }
.place-tag .pin { width: 13px; height: 13px; fill: var(--cyan-300); }
.place-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: #3dffa8; box-shadow: 0 0 8px #3dffa8; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.step__addr { font-size: 11.5px; line-height: 1.45; color: var(--text-sub); }
.step__date small { display: block; font-size: 11.5px; font-weight: 500; color: var(--text-sub); margin-top: 2px; }

/* ---------- Awards ---------- */
.awards { padding: 44px 0 56px; }
.awards .section__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(1,6,26,.2), rgba(1,6,26,.5)); }
.awards__head { display: grid; grid-template-columns: 190px 240px auto 1fr; align-items: center; gap: 20px; }
.awards__trophy { width: 240px; filter: drop-shadow(0 0 24px rgba(40, 110, 255, .4)); }
.awards__total { padding-left: 20px; }
.awards__total-label { font-size: 26px; font-weight: 800; }
.awards__total-value { font-size: 52px; font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; color: var(--cyan-400); text-shadow: 0 0 24px rgba(47, 211, 255, .5); }
.awards__msg { font-size: 16px; color: #dfe8ff; line-height: 1.6; padding-left: 20px; }

.awards__body { margin-top: 20px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr); gap: 12px; align-items: start; }
.prize-table { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(3, 12, 48, .78); overflow: hidden; }
.prize-table__cap { padding: 13px 16px; text-align: center; font-size: 17px; font-weight: 800; letter-spacing: .02em; border-bottom: 1px solid var(--line-soft); background: rgba(12, 36, 110, .55); }
.table-scroll { overflow-x: auto; }
.prize-table table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.prize-table th, .prize-table td { padding: 13px 8px; text-align: center; border-bottom: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); font-weight: 600; }
.prize-table tr > *:last-child { border-right: 0; }
.prize-table tbody tr:last-child > * { border-bottom: 0; }
.prize-table thead th { background: rgba(14, 42, 125, .5); font-weight: 700; }
.prize-table tbody th { font-weight: 700; white-space: nowrap; }
.prize-table tbody tr:hover { background: rgba(40, 110, 255, .12); }

.prize-side { display: flex; flex-direction: column; gap: 12px; }
.prize-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.prize { border-radius: var(--radius); padding: 14px 10px 10px; background: rgba(6, 16, 50, .82); transition: transform .25s; }
.prize:hover { transform: translateY(-4px); }
.prize--gold   { --c: var(--gold);   border: 1px solid rgba(245, 196, 81, .75); box-shadow: 0 0 20px rgba(245, 196, 81, .25), inset 0 0 26px rgba(245, 196, 81, .12); background: linear-gradient(180deg, rgba(70, 50, 10, .75), rgba(12, 12, 30, .85)); }
.prize--silver { --c: var(--silver); border: 1px solid rgba(160, 190, 255, .7);  box-shadow: 0 0 20px rgba(120, 160, 255, .25), inset 0 0 26px rgba(120, 160, 255, .12); background: linear-gradient(180deg, rgba(20, 40, 100, .75), rgba(6, 14, 45, .85)); }
.prize--bronze { --c: var(--bronze); border: 1px solid rgba(231, 134, 90, .75); box-shadow: 0 0 20px rgba(231, 134, 90, .25), inset 0 0 26px rgba(231, 134, 90, .12); background: linear-gradient(180deg, rgba(75, 30, 20, .75), rgba(14, 10, 28, .85)); }
.prize__head { display: flex; align-items: center; gap: 10px; padding: 0 4px 14px; }
.prize__head img { width: 46px; height: 48px; object-fit: contain; }
.prize__head strong { display: block; font-size: 15px; color: var(--c); font-weight: 800; }
.prize__head span { display: block; font-size: 13px; font-weight: 600; }
.prize ul { border: 1px solid rgba(255,255,255,.14); border-radius: 6px; overflow: hidden; background: rgba(0,0,0,.25); }
.prize li { display: flex; justify-content: space-between; gap: 6px; padding: 10px 10px; font-size: 12.5px; border-bottom: 1px solid rgba(255,255,255,.1); }
.prize li:last-child { border-bottom: 0; }
.prize li b { font-weight: 800; white-space: nowrap; }

.notice-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px 16px; background: rgba(3, 12, 48, .8); }
.notice-box__title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.notice-box__title .i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #cfe1ff; display: grid; place-items: center; font-size: 11px; font-style: italic; font-family: Georgia, serif; }
.notice-box ul { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.notice-box li { position: relative; padding-left: 14px; font-size: 13px; color: #dbe5ff; }
.notice-box li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 4px; height: 4px; border-radius: 50%; background: #dbe5ff; }

/* ---------- Footer ---------- */
.footer { background: #020822; border-top: 1px solid rgba(70, 120, 255, .3); }
.footer__inner { display: flex; align-items: center; gap: 60px; padding-top: 28px; padding-bottom: 20px; }
.footer__logo { height: 30px; width: auto; }
.footer__info { display: flex; align-items: center; flex-wrap: wrap; font-size: 14px; color: #dbe5ff; }
.footer__info li + li::before { content: "|"; margin: 0 26px; color: rgba(180, 200, 255, .4); }
.footer__info a:hover { color: var(--cyan-300); }
.footer__privacy { color: var(--blue-400); font-weight: 700; }
.footer__inner .btn { margin-left: auto; min-width: 130px; }
.footer__copy { max-width: var(--inner); margin: 0 auto; padding: 0 40px 26px; font-size: 12px; color: var(--text-mute); }

/* ---------- Modal (대회 규정 / 개인정보처리방침) ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.modal[hidden] { display: none; }
.modal__dim { position: absolute; inset: 0; background: rgba(1, 5, 20, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .25s ease both; }
.modal__panel {
  position: relative; width: 100%; max-width: 920px; max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px);
  display: flex; flex-direction: column; overflow: hidden; outline: none;
  border: 1px solid var(--line); border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(3, 12, 45, .5) 0%, rgba(2, 8, 30, .88) 30%, rgba(2, 8, 30, .95) 100%),
    url("../images/03_guide_bg.jpg") center top / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(47, 211, 255, .08), 0 0 60px rgba(31, 107, 255, .35), 0 30px 80px rgba(0, 0, 0, .6);
  animation: modalIn .35s cubic-bezier(.2, .8, .2, 1) both;
}
.modal__panel::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-400), var(--blue-500), transparent);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 30px 36px 20px; border-bottom: 1px solid var(--line-soft); }
.modal__head .sec-title__ko { font-size: 26px; white-space: normal; }
.modal__close { position: relative; width: 40px; height: 40px; flex: none; border: 1px solid var(--line); border-radius: 8px; background: rgba(10, 35, 110, .5); transition: background .2s, border-color .2s; }
.modal__close:hover { background: rgba(40, 110, 255, .35); border-color: var(--cyan-300); }
.modal__close span { position: absolute; left: 10px; right: 10px; top: 19px; height: 2px; background: #fff; border-radius: 2px; transform: rotate(45deg); }
.modal__close span + span { transform: rotate(-45deg); }
.modal__toc { flex: none; display: flex; gap: 8px; padding: 14px 36px; overflow-x: auto; border-bottom: 1px solid var(--line-soft); scrollbar-width: none; }
.modal__toc::-webkit-scrollbar { display: none; }
.modal__toc a { flex: none; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--text-sub); border: 1px solid var(--line-soft); border-radius: 999px; background: rgba(10, 30, 90, .4); transition: .2s; }
.modal__toc a:hover { color: #fff; border-color: var(--cyan-400); background: rgba(40, 110, 255, .3); }
.modal__body { overflow-y: auto; padding: 8px 36px 36px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(78, 140, 255, .5) transparent; }
body.modal-open { overflow: hidden; }

.doc { font-size: 15px; color: var(--text-sub); line-height: 1.75; }
.doc__intro { margin-top: 22px; padding: 16px 18px; border-left: 3px solid var(--cyan-400); background: rgba(20, 60, 170, .22); color: #dfe8ff; border-radius: 0 8px 8px 0; }
.doc__sec { padding-top: 28px; scroll-margin-top: 10px; }
.doc__sec + .doc__sec { margin-top: 4px; border-top: 1px dashed rgba(78, 140, 255, .18); }
.doc h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 19px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.doc h4 { margin: 18px 0 8px; font-size: 15px; font-weight: 700; color: var(--cyan-300); }
.doc h3 + h4 { margin-top: 4px; }
.doc__num {
  display: inline-grid; place-items: center; width: 34px; height: 26px; flex: none;
  font-size: 12.5px; font-weight: 800; letter-spacing: .02em; color: var(--cyan-300);
  border: 1px solid var(--line); border-radius: 6px; background: rgba(20, 60, 170, .4);
  box-shadow: 0 0 10px rgba(47, 160, 255, .25);
}
.doc p + p, .doc p + .doc__table, .doc p + .doc__list, .doc p + .doc__olist, .doc p + .doc__chips, .doc .doc__table + p { margin-top: 10px; }
.doc strong { color: #fff; }
.doc a { color: var(--cyan-300); text-decoration: underline; text-underline-offset: 3px; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; padding: 2px 8px; border-radius: 4px; background: rgba(20, 60, 170, .45); color: #e8f1ff; word-break: break-all; }
.doc__list li { position: relative; padding-left: 16px; }
.doc__list li + li { margin-top: 4px; }
.doc__list li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan-400); box-shadow: 0 0 6px var(--cyan-400); }
.doc__olist { display: flex; flex-direction: column; gap: 6px; }
.doc__olist li { display: flex; gap: 10px; padding: 9px 14px; border-radius: 6px; background: rgba(10, 30, 90, .35); border: 1px solid rgba(78, 140, 255, .14); }
.doc__olist b { flex: none; color: var(--cyan-300); }
.doc__table { border: 1px solid var(--line-soft); border-radius: 8px; overflow: hidden; }
.doc__table > div { display: grid; grid-template-columns: 170px 1fr; }
.doc__table > div + div { border-top: 1px solid var(--line-soft); }
.doc__table dt { padding: 11px 16px; font-weight: 700; color: #fff; background: rgba(20, 60, 170, .32); }
.doc__table dd { padding: 11px 16px; background: rgba(2, 8, 30, .35); }
.doc__note { margin-top: 12px !important; font-size: 13.5px; color: var(--text-mute); }
.doc__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.doc__chips li { padding: 6px 14px; border-radius: 6px; border: 1px solid var(--line); background: rgba(10, 35, 110, .45); color: #e8f1ff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; }
.doc__chips--ko li { font-family: inherit; font-weight: 600; }

@media (max-width: 768px) {
  .quick__item.quick__item--wide .quick__value { white-space: normal; }
  .modal { padding: 0; align-items: stretch; }
  .modal__panel { max-width: none; max-height: none; height: 100%; border-radius: 0; border: 0; }
  .modal__head { padding: 22px 20px 16px; }
  .modal__head .sec-title__ko { font-size: 21px; }
  .modal__toc { padding: 12px 20px; }
  .modal__body { padding: 0 20px 40px; }
  .doc { font-size: 14.5px; }
  .doc h3 { font-size: 17px; }
  .doc__table > div { grid-template-columns: 1fr; }
  .doc__table dt { padding: 9px 14px 4px; }
  .doc__table dd { padding: 4px 14px 11px; background: rgba(20, 60, 170, .18); }
  .doc__table dt { background: rgba(20, 60, 170, .18); }
}

/* ---------- English layout tweaks ---------- */
html[lang="en"] body { word-break: normal; overflow-wrap: break-word; }
html[lang="en"] .hero__title { font-size: 30px; }
html[lang="en"] .sec-title__ko { white-space: normal; }
html[lang="en"] .guide .sec-title__ko, html[lang="en"] .schedule .sec-title__ko { font-size: 30px; line-height: 1.2; }
html[lang="en"] .card__title { white-space: normal; line-height: 1.3; }
html[lang="en"] .track span { white-space: normal; }
html[lang="en"] .track strong { display: flex; align-items: center; }
html[lang="en"] .prize li { font-size: 12px; }
html[lang="en"] .prize__head span { font-size: 11.5px; line-height: 1.35; }
html[lang="en"] .prize-table table { font-size: 13px; }
@media (min-width: 769px) { html[lang="en"] .doc__table > div { grid-template-columns: 190px 1fr; } }
html[lang="en"] .awards__total-value { font-size: 44px; }
html[lang="en"] .prize__head { min-height: 86px; }
@media (max-width: 768px) { html[lang="en"] .prize__head { min-height: 0; } html[lang="en"] .hero__title { font-size: 23px; } }

/* =========================================================
   풀페이지 스크롤 (데스크톱 : html.fp-on 일 때만 적용)
   ========================================================= */
html.fp-on { scroll-behavior: auto; scroll-padding-top: 0; }
html.fp-on .hero { min-height: 100vh; }
html.fp-on .section {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--header-h) + 40px); padding-bottom: 48px;
}
html.fp-on .section > .inner { width: 100%; }
html.fp-on .guide { padding-top: calc(var(--header-h) + 18px); padding-bottom: 22px; }
.guide .card { padding: 20px 18px 20px; }
.guide .card__title { font-size: 16.5px; }
/* 배경 이미지(1920×640 내외)는 최대 약 1.2배까지만 키워 가운데 두고, 남는 위아래는 남색으로 자연스럽게 이어지게 */
html.fp-on .section__bg {
  background:
    linear-gradient(180deg, var(--navy-900) 0, rgba(1,6,26,0) calc(50% - 300px), rgba(1,6,26,0) calc(50% + 300px), var(--navy-900) 100%),
    linear-gradient(90deg, var(--navy-900) 0, rgba(1,6,26,0) calc(50% - 860px), rgba(1,6,26,0) calc(50% + 860px), var(--navy-900) 100%),
    var(--bg) center / max(100%, min(300vh, 2300px)) auto no-repeat,
    var(--navy-900);
}
html.fp-on .schedule .section__bg { background-position: center, center, center right, center; }
html.fp-on .about .section__bg { background-position: center, center, 70% center, center; }

/* 오른쪽 점 내비게이션 */
.fp-dots { display: none; }
html.fp-on .fp-dots {
  display: flex; flex-direction: column; gap: 14px;
  position: fixed; right: 28px; top: 50%; transform: translateY(-50%); z-index: 90;
}
.fp-dots__btn { position: relative; width: 14px; height: 14px; padding: 0; border-radius: 50%; display: grid; place-items: center; }
.fp-dots__btn::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(200, 220, 255, .45); transition: transform .25s, background .25s, box-shadow .25s;
}
.fp-dots__btn:hover::before { background: #fff; }
.fp-dots__btn.is-active::before { background: var(--cyan-400); transform: scale(1.5); box-shadow: 0 0 10px var(--cyan-400); }
.fp-dots__label {
  position: absolute; right: 24px; top: 50%; transform: translate(6px, -50%);
  padding: 4px 10px; border-radius: 6px; white-space: nowrap;
  font-size: 12.5px; font-weight: 600; color: #fff;
  background: rgba(3, 12, 45, .9); border: 1px solid var(--line);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.fp-dots__btn:hover .fp-dots__label, .fp-dots__btn:focus-visible .fp-dots__label { opacity: 1; transform: translate(0, -50%); }

/* ---------- Motion ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1280px) {
  .gnb { gap: 18px; }
  .gnb ul { gap: 24px; margin-right: 0; }
  .gnb ul a { font-size: 15px; }
  .gnb__apply { min-width: 0; padding: 0 18px; }
  .header__logo img { height: 28px; }
  .quick { flex-wrap: wrap; }
  .quick__item, .quick__item:nth-child(n) { flex-basis: 40%; flex-shrink: 1; }
  .guide__inner, .schedule__inner { grid-template-columns: 1fr; gap: 26px; }
  .guide__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { max-width: none; }
  .pc-only { display: none; }
  .awards__head { grid-template-columns: auto 1fr; column-gap: 40px; grid-template-areas: "title title" "trophy total" "trophy msg"; row-gap: 12px; }
  .awards__head .sec-title { grid-area: title; }
  .awards__trophy { grid-area: trophy; }
  .awards__total { grid-area: total; align-self: end; }
  .awards__msg { grid-area: msg; align-self: start; }
  .awards__body { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .inner { padding: 0 24px; }
  .menu-toggle { display: block; }
  .gnb {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
    max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 20px; padding: 8px 24px 28px;
    background: rgba(2, 8, 30, .97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .55);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .gnb.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease, visibility 0s; }
  .menu-dim { display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 98; background: rgba(1, 5, 20, .6); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s linear .25s; }
  body.menu-open .menu-dim { opacity: 1; visibility: visible; transition: opacity .25s, visibility 0s; }
  .gnb ul { flex-direction: column; gap: 0; }
  .gnb ul a { display: block; padding: 16px 4px; font-size: 17px; border-bottom: 1px solid rgba(80, 130, 255, .18); }
  .gnb ul a::after { display: none; }
  .gnb__apply { height: 52px; }
  .lang { align-self: flex-start; }
  .lang__btn { height: 34px; padding: 0 16px; font-size: 14px; }
  body.menu-open { overflow: hidden; }

  .hero__slogans { display: none; }
  .hero__bg {
    background:
      linear-gradient(0deg, rgba(1,6,26,.96) 0%, rgba(1,6,26,.35) 45%, rgba(1,6,26,.7) 100%),
      url("../images/01_main_bg.jpg") 60% top / 1920px 1080px no-repeat;
    background-color: var(--navy-900);
  }
  .hero { min-height: 0; }
  .about__inner { grid-template-columns: 1fr; gap: 36px; }
  .about .section__bg { background-position: 70% center; }
  .about .section__bg::after { background: rgba(1, 6, 26, .72); }
  .about__visual { flex-direction: column; justify-content: center; }
  .about__stage { margin: 0 auto; transform: none; max-width: 360px; display: flex; flex-direction: column; align-items: center; }
  .about__org { position: static; transform: none; width: auto; flex-wrap: wrap; justify-content: center; gap: 22px 36px; }
  .about__object { display: block; width: 100%; max-width: 620px; opacity: .95; }
  .about__type { max-width: 360px; margin-top: -30px; }
  .about__stage { margin-top: -30px; }
  .about__stage .about__type { margin-top: 0; }
  .about__org { margin-top: 24px; }
  .about__visual { gap: 28px; }
  .schedule .section__bg::after { background: rgba(1, 6, 26, .65); }
  .awards__head { grid-template-columns: 1fr; grid-template-areas: none; text-align: center; }
  .awards__head > * { grid-area: auto !important; }
  .awards__head .sec-title { text-align: left; }
  .awards__trophy { margin: 0 auto; width: 220px; }
  .awards__total, .awards__msg { padding-left: 0; }
  .prize-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__inner { flex-wrap: wrap; gap: 20px 40px; }
}

@media (max-width: 768px) {
  .pc-only { display: none; }
  .hero__content { max-width: none; }
  .hero__logo img { max-width: 380px; }
  .hero__title { font-size: 25px; }
  .hero__desc { font-size: 15px; }
  .hero__inner { padding-bottom: 28px; }
  .hero__btns .btn { flex: 1 1 160px; min-width: 0; height: 52px; font-size: 16px; }
  .quick { flex-direction: column; gap: 10px; }
  .quick__item { flex-basis: auto; }
  .quick__note { white-space: normal; }
  .quick__item { min-height: 0; padding: 16px 18px; gap: 16px; }
  .quick__icon { width: 40px; height: 40px; }
  .quick__value { font-size: 18px; }
  .quick__item--wide:last-child { flex-wrap: wrap; }
  .sec-title__ko { font-size: 28px; }
  .about { padding: 56px 0; }
  .about__lead { font-size: 20px; }
  .guide { padding: 52px 0; }
  .guide__cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 28px 28px; }
  .step:nth-child(3)::before { display: none; }
  .awards__total-label { font-size: 22px; }
  .awards__total-value { font-size: 42px; }
  .prize-cards { grid-template-columns: 1fr; }
  .prize-table { display: none; }
  .prize li { font-size: 14px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__info { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer__info li + li::before { display: none; }
  .footer__inner .btn { margin-left: 0; }
  .footer__copy { padding: 0 24px 26px; }
}

@media (max-width: 420px) {
  .inner { padding: 0 16px; }
  .org img { height: 40px; max-width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .step + .step::before { left: 50%; top: -18px; transform: translateX(-50%) rotate(135deg); }
  .step:nth-child(3)::before { display: block; }
  .footer__copy { padding: 0 16px 26px; }
}
