/* Nully global KOC Talent Contest · 접수 페이지 프로토타입
   nullylab.com v3 토큰 재사용 (색·서체·폼 규격). 모바일 퍼스트 (광고 유입 = 폰). */
:root {
  --bg: #06060b; --bg-2: #0c0c14; --surface: #12121c; --surface-2: #181826;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.16);
  --text: #f3f3f8; --muted: #a9a9c2; --dim: #7d7d96;
  --blue: #5b8cff; --purple: #b57cf2; --cyan: #38d1ec; --gold: #ffd166;
  --grad: linear-gradient(90deg, var(--blue) 0%, var(--purple) 55%, var(--cyan) 100%);
  --display: 'Unbounded', 'Pretendard Variable', Pretendard, sans-serif;
  --body: 'Pretendard Variable', Pretendard, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
  --wrap: 1100px; --gutter: clamp(20px, 4vw, 48px);
  --sec: clamp(64px, 8vw, 110px);
}
.lang-vi { --body: 'Be Vietnam Pro', 'Pretendard Variable', sans-serif; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 200 900; font-display: swap; src: url('/assets/fonts/unbounded-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 200 900; font-display: swap; src: url('/assets/fonts/unbounded-vietnamese.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
.lang-ko body, body.lang-ko { line-height: 1.72; }
h1, h2, h3, p, ul, ol { margin: 0; } ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; } .skip:focus { left: 8px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 12px; z-index: 99; }
.hp { position: absolute; left: -9999px; }

/* 프로토타입 배지 */
.proto-badge { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 80; padding: 6px 12px; border-radius: 999px; background: rgba(255,209,102,.14); border: 1px solid rgba(255,209,102,.5); color: var(--gold); font-family: var(--display); font-size: 10px; letter-spacing: .14em; white-space: nowrap; pointer-events: none; }

/* 헤더 */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background .4s var(--ease), backdrop-filter .4s; }
.top.is-scrolled { background: rgba(6,6,11,.8); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand img { width: 118px; height: auto; }
.lang { display: flex; gap: 4px; }
.lang a { font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--dim); padding: 8px 10px; min-height: 36px; display: inline-flex; align-items: center; border-radius: 999px; }
.lang a[aria-current="true"] { color: var(--text); background: rgba(255,255,255,.08); }

/* 공통 타이포 */
.kicker { font-family: var(--display); font-weight: 700; font-size: clamp(11px, 1.1vw, 14px); letter-spacing: .22em; color: var(--cyan); margin-bottom: 18px; }
.display { font-family: var(--display); font-weight: 900; line-height: 1.08; letter-spacing: -.01em; font-size: clamp(32px, 7vw, 76px); }
.display .w { display: inline-block; }
.display .em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.display.sm { font-size: clamp(28px, 5vw, 52px); }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 3.2vw, 34px); line-height: 1.18; letter-spacing: -.01em; }
.h3 { font-family: var(--display); font-weight: 700; font-size: clamp(14px, 1.4vw, 17px); letter-spacing: .02em; }
.lang-ko .h2, .lang-ko .display { letter-spacing: -.025em; line-height: 1.18; }
.sub { color: var(--muted); margin-top: 10px; }
.section { padding: var(--sec) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }

/* 히어로 */
.hero { position: relative; overflow: hidden; padding: calc(64px + 12vh + env(safe-area-inset-top, 0px)) 0 clamp(56px, 8vw, 96px); min-height: 78svh; display: flex; align-items: center; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(60% 50% at 80% 20%, rgba(91,140,255,.18), transparent 70%),
  radial-gradient(50% 40% at 15% 85%, rgba(181,124,242,.16), transparent 70%),
  repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 56px),
  repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 56px);
  mask-image: radial-gradient(80% 80% at 50% 40%, #000 40%, transparent 100%); }
.glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; animation: drift 14s ease-in-out infinite alternate; }
.g1 { width: 46vw; height: 46vw; max-width: 560px; max-height: 560px; right: -10vw; top: -10vw; background: radial-gradient(circle, var(--blue), transparent 65%); }
.g2 { width: 40vw; height: 40vw; max-width: 480px; max-height: 480px; left: -12vw; bottom: -14vw; background: radial-gradient(circle, var(--purple), transparent 65%); animation-delay: -6s; }
@keyframes drift { to { transform: translate(-4%, 6%) scale(1.08); } }
.hero .display { max-width: 12ch; animation: rise .9s var(--ease) both; }
.hero .display .em { animation: rise .9s var(--ease) .12s both; }
.tag { margin-top: 22px; font-family: var(--display); font-weight: 900; font-size: clamp(26px, 5.4vw, 60px); letter-spacing: -.02em; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(243,243,248,.75); animation: rise .9s var(--ease) .24s both; }
.lead { margin-top: 22px; max-width: 56ch; color: var(--muted); font-size: clamp(15px, 1.3vw, 18px); animation: rise .9s var(--ease) .34s both; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 30px; animation: rise .9s var(--ease) .44s both; }
.cta-sub { color: var(--dim); font-size: 14px; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* 버튼 (v3 규격) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .06em; transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s, border-color .3s; }
.btn-primary { color: var(--bg); background: var(--text); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 12px 40px -8px rgba(91,140,255,.6); }
.btn-ghost { color: #dfe7ff; border: 1px solid rgba(91,140,255,.65); }
.btn-ghost:hover { border-color: var(--purple); box-shadow: 0 0 24px -6px rgba(181,124,242,.6); }
.btn-wide { width: 100%; min-height: 56px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none !important; }

/* 3단계 */
.steps { margin-top: 28px; display: grid; gap: 14px; counter-reset: s; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 20px 20px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.step::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; -webkit-mask-composite: xor; opacity: 0; transition: opacity .35s; }
.step:hover::before { opacity: .7; }
.step .n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--bg); background: var(--grad); box-shadow: 0 0 24px -6px rgba(91,140,255,.8); }
.step h3 { font-size: 16px; font-weight: 700; line-height: 1.35; }
.step p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.step-link { display: inline-flex; align-items: center; min-height: 36px; margin-top: 6px; color: var(--cyan); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } .step { grid-template-columns: 1fr; gap: 14px; padding: 26px 24px; } }

/* 접수 폼 */
.apply-sec { background: var(--bg-2); }
.apply-sec .wrap { max-width: 640px; }
.apply-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.form-note { color: var(--dim); font-size: 13px; white-space: nowrap; }
.form { display: grid; gap: 18px; padding: clamp(20px, 3.5vw, 32px); border-radius: 22px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 30px 80px -40px rgba(91,140,255,.35); }
.form label { display: grid; gap: 7px; }
.form label > span, .form legend { font-size: 14px; font-weight: 600; color: rgba(243,243,248,.82); }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: #15161e; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; min-height: 52px; padding: 12px 14px; transition: border-color .25s, box-shadow .25s; appearance: none; -webkit-appearance: none; }
.form input::placeholder { color: var(--dim); }
.form input:focus, .form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(91,140,255,.22); }
.form select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.row2 { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.help { color: var(--dim); font-size: 13px; }
.err { color: #ff7b7b; font-size: 13px; }
.field-error { border-color: #ff7b7b !important; }
fieldset.chips { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
fieldset.chips.field-error { border: 0; } fieldset.chips.field-error .chip span { border-color: #ff7b7b; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; min-height: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: #15161e; color: var(--muted); font-weight: 600; font-size: 15px; transition: all .25s var(--ease); }
.chip input:checked + span { color: var(--bg); background: var(--text); border-color: var(--text); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(91,140,255,.35); }
.more summary { list-style: none; cursor: pointer; color: var(--cyan); font-size: 14px; font-weight: 600; min-height: 36px; display: inline-flex; align-items: center; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: '+'; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; border: 1px solid rgba(56,209,236,.5); font-family: var(--display); font-size: 13px; }
.more[open] summary::before { content: '−'; }
.more label { margin-top: 10px; }
.check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.form .check input { width: 20px; height: 20px; min-height: 0; padding: 0; margin-top: 3px; accent-color: var(--purple); appearance: auto; -webkit-appearance: auto; }
.form .check span { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.check-more { background: none; border: 0; padding: 4px 2px; margin: -4px 0 -4px 4px; color: var(--cyan); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.form-msg { min-height: 1.4em; font-size: 14px; color: var(--cyan); }

/* 완료 화면 */
.done { text-align: left; padding: clamp(24px, 4vw, 40px); border-radius: 22px; background: var(--surface); border: 1px solid var(--line-2); animation: rise .6s var(--ease) both; }
.ticket { margin-top: 22px; display: grid; gap: 6px; padding: 18px 20px; border-radius: 16px; background: linear-gradient(135deg, rgba(91,140,255,.18), rgba(181,124,242,.14) 60%, rgba(56,209,236,.14)); border: 1px dashed rgba(255,255,255,.3); }
.t-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-family: var(--display); }
.t-code { font-family: var(--display); font-weight: 900; font-size: clamp(26px, 5vw, 38px); letter-spacing: .04em; }
.done-body { margin-top: 20px; color: var(--muted); display: grid; gap: 8px; }
.done .btn { margin-top: 22px; }

/* 시상·정보 */
.prizes { margin-top: 28px; display: grid; gap: 12px; }
.prize { padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.prize:first-child { background: linear-gradient(135deg, rgba(255,209,102,.1), var(--surface) 55%); border-color: rgba(255,209,102,.4); }
.p-head { display: flex; flex-direction: column; gap: 4px; }
.prize h3 { font-family: var(--display); font-weight: 800; font-size: clamp(15px, 1.6vw, 19px); }
.prize:first-child h3 { color: var(--gold); }
.p-count { font-family: var(--display); font-size: 12px; letter-spacing: .1em; color: var(--muted); white-space: nowrap; }
.prize p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
@media (min-width: 760px) { .prizes { grid-template-columns: repeat(3, 1fr); } .prize:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 240px 1fr; gap: 10px 32px; align-items: start; } .prize:first-child p { margin-top: 0; grid-column: 2; grid-row: 1; } }
.info-grid { margin-top: 36px; display: grid; gap: 28px; }
@media (min-width: 760px) { .info-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
.plain { margin-top: 12px; counter-reset: j; display: grid; gap: 8px; color: var(--muted); }
.plain li { counter-increment: j; display: grid; grid-template-columns: 26px 1fr; gap: 6px; }
.plain li::before { content: counter(j, decimal-leading-zero); font-family: var(--display); font-size: 12px; color: var(--cyan); padding-top: 4px; }
.big { margin-top: 10px; font-family: var(--display); font-weight: 700; font-size: clamp(16px, 2vw, 22px); }
.mt { margin-top: 20px; }
.notes { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 18px; }
.notes summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; list-style: none; }
.notes summary::-webkit-details-marker { display: none; }
.notes summary::after { content: '+'; margin-left: auto; font-family: var(--display); color: var(--cyan); }
.notes[open] summary::after { content: '−'; }
.notes ul { display: grid; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 14.5px; padding-left: 18px; list-style: disc; }

/* 푸터 */
.foot { border-top: 1px solid var(--line); padding: 48px 0 calc(56px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; }
.foot img { width: 120px; height: auto; }
.f-tag { margin-top: 14px; font-family: var(--display); font-size: 12px; letter-spacing: .1em; color: var(--dim); }
.f-contact { margin-top: 18px; } .f-contact a { color: var(--text); }
.f-addr, .f-copy { margin-top: 6px; color: var(--dim); font-size: 13px; }

/* 동의 모달 (v3 규격) */
.consent-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(6,6,11,.78); }
.consent-modal[hidden] { display: none; }
.cm-box { position: relative; width: min(640px, 100%); max-height: min(86svh, 760px); overflow: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 28px 24px 22px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); }
.cm-close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.06); font-size: 22px; line-height: 1; }
.cm-list { margin-top: 16px; display: grid; gap: 10px; padding-left: 18px; list-style: disc; color: var(--muted); font-size: 14.5px; }

/* 등장 */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.steps .rv:nth-child(2) { transition-delay: .08s; } .steps .rv:nth-child(3) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) { .glow, .hero .display, .hero .display .em, .tag, .lead, .cta-row { animation: none; } .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* 모바일 */
@media (max-width: 600px) {
  :root { --sec: 56px; }
  .hero { min-height: 0; padding-top: calc(64px + 7vh + env(safe-area-inset-top, 0px)); }
  .hero .display { font-size: clamp(30px, 9.4vw, 40px); max-width: none; }
  .tag { font-size: clamp(28px, 9vw, 38px); }
  .cta-row .btn { width: 100%; }
  .row2 { grid-template-columns: 1fr; }
  .apply-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  }
