/* 공개 페이지(제작 기록·둘러보기)와 가입 화면 */
.pub main { min-height: 60vh; padding-top: var(--nav-h); }
.pubhero { position: relative; padding: 96px 0 140px; overflow: hidden; }
.pubhero__in { position: relative; z-index: 1; text-align: center; }
.pubhero h1 { font-size: clamp(40px, 7vw, 84px); line-height: 1.02; letter-spacing: -0.04em; margin: 8px 0 16px; }
.pubhero .section__lead { margin: 0 auto 32px; max-width: 640px; }
.pubhero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 32px 0 0; }
.facts { list-style: none; padding: 0; margin: 0 auto; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.facts li { background: rgba(255,255,255,.82); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.7); border-radius: var(--r-md); padding: 14px 20px; min-width: 150px; text-align: left; }
.facts b { display: block; font-size: 26px; letter-spacing: -0.03em; }
.facts span { font-size: 13px; color: var(--ink-2); }
.log { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.log__req { padding: 20px 24px; background: var(--card); border-bottom: 1px solid var(--line); }
.log__req span { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.log__req p { margin: 6px 0 0; font-size: 18px; letter-spacing: -0.01em; }
.log__list { list-style: none; margin: 0; padding: 8px 0; max-height: 640px; overflow: auto; font-size: 14px; }
.log__row { display: grid; grid-template-columns: 76px 210px 170px 1fr; gap: 12px; padding: 7px 24px; align-items: baseline; }
.log__row time { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.log__who { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log__what { color: var(--ink-2); }
.log__d { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log__row.is-key { background: #EEF3FF; }
.log__row.is-sale { background: #E9F6EE; }
.log__row.is-warn .log__what { color: var(--warn); }
.crew { margin: 56px 0 0; }
.crew h3 { font-size: 20px; letter-spacing: -0.02em; margin: 0 0 16px; }
.crew ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.crew li { background: var(--card); border-radius: var(--r-md); padding: 14px 16px; }
.crew b { display: block; }
.crew span { font-size: 13px; color: var(--muted); }
.pubcta { margin-top: 72px; text-align: center; }
.pubcta h2 { margin: 0 0 8px; }
.pub__report { text-align: center; margin: 32px 0 0; font-size: 13px; }
.pub__report a, .pub__foot a { color: var(--muted); }
.pub__foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 32px; padding-bottom: 40px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.pub__h { font-size: 24px; letter-spacing: -0.025em; margin: 56px 0 8px; }
.pub__note { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.cos { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.co a { display: block; height: 100%; padding: 22px; border-radius: var(--r-lg); background: var(--card); text-decoration: none; color: var(--ink); transition: transform .15s, background .15s; }
.co a:hover { background: var(--card-2); transform: translateY(-2px); }
.co__dot { display: block; width: 28px; height: 28px; border-radius: 9px; margin-bottom: 28px; }
.co b { display: block; font-size: 19px; letter-spacing: -0.02em; }
.co span { display: block; color: var(--ink-2); font-size: 14px; margin: 4px 0 14px; min-height: 40px; }
.co em { font-style: normal; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.rank { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.rank li { display: grid; grid-template-columns: 44px 1fr 60px 120px 100px; gap: 12px; padding: 14px 20px; align-items: center; border-bottom: 1px solid var(--line); }
.rank li:last-child { border-bottom: 0; }
.rank span { color: var(--muted); font-variant-numeric: tabular-nums; }
.rank a { font-weight: 600; color: var(--ink); text-decoration: none; }
.rank em { font-style: normal; color: var(--muted); font-size: 13px; }
.rank b { text-align: right; font-variant-numeric: tabular-nums; }
.rank i { font-style: normal; color: var(--muted); font-size: 13px; text-align: right; }
@media (max-width: 760px) {
  .pubhero { padding: 56px 0 96px; }
  .log__row { grid-template-columns: 64px 1fr; row-gap: 0; padding: 8px 16px; }
  .log__what, .log__d { grid-column: 2; white-space: normal; }
  .rank li { grid-template-columns: 28px 1fr 90px; }
  .rank em, .rank i { display: none; }
}

/* ---------- 가입·온보딩 ---------- */
.gate { min-height: 100vh; min-height: 100dvh; position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }
.gate__top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter); max-width: 1248px; width: 100%; margin: 0 auto; }
.gate__body { position: relative; z-index: 2; flex: 1; display: grid; place-items: center; padding: 24px var(--gutter) 72px; }
.gate .mesh::before { background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 12%, #E3EEFF 30%, var(--sky) 44%, var(--azure) 58%, var(--cobalt) 72%, var(--indigo) 84%, var(--coral) 96%, var(--amber) 106%); }
.sheet { width: 100%; max-width: 480px; background: rgba(255,255,255,.94); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.8); border-radius: var(--r-xl); padding: 40px; box-shadow: 0 24px 80px rgba(20, 24, 60, .18); }
.sheet--wide { max-width: 640px; }
.sheet h1 { font-size: clamp(28px, 4.4vw, 38px); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 10px; }
.sheet p.lead { color: var(--ink-2); margin: 0 0 28px; font-size: 16px; }
.sheet .steps { display: flex; gap: 6px; margin: 0 0 28px; }
.sheet .steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--card-2); transition: background .3s; }
.sheet .steps i.on { background: var(--ink); }
.abtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font: 600 15px/1 var(--font); cursor: pointer; text-decoration: none; transition: background .15s, transform .05s; margin-bottom: 10px; }
.abtn:hover { background: var(--card); }
.abtn:active { transform: translateY(1px); }
.abtn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.abtn--dark:hover { background: #2B2A24; }
.abtn[disabled] { opacity: .55; cursor: default; }
.abtn svg { width: 20px; height: 20px; flex: none; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fld { display: block; margin: 0 0 14px; }
.fld > span { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.fld small { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.inp, .sel, .txa { width: 100%; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: #fff; font: 400 16px/1.4 var(--font); color: var(--ink); padding: 0 16px; min-height: 52px; }
.txa { padding: 14px 16px; min-height: 132px; resize: vertical; }
.inp:focus, .sel:focus, .txa:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(46, 91, 255, .16); }
.code { letter-spacing: .4em; font-size: 24px; text-align: center; font-weight: 600; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; }
.opt { position: relative; display: block; border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 16px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt b { display: block; font-size: 15px; }
.opt span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.opt:has(input:checked) { border-color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--ink); }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.row2 { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 24px; }
.link { background: none; border: 0; color: var(--ink-2); font: 500 14px var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; }
.err { background: #FDECEA; color: #8A1C14; border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; margin: 0 0 16px; }
.fine { font-size: 12px; color: var(--muted); margin: 20px 0 0; text-align: center; line-height: 1.5; }
.fine a { color: inherit; }
.boot { list-style: none; padding: 0; margin: 8px 0 0; }
.boot li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; transition: color .3s; }
.boot li:last-child { border-bottom: 0; }
.boot li i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; position: relative; }
.boot li.run { color: var(--ink); }
.boot li.run i { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.boot li.ok { color: var(--ink); }
.boot li.ok i { border-color: var(--ok); background: var(--ok); }
.boot li.ok i::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) { .sheet { padding: 28px 22px; border-radius: var(--r-lg); } .opts { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .boot li.run i { animation: none; } }
