/* 글꼴 — 모두 SIL OFL 1.1(웹 배포 가능), 같은 출처에서 내려줌(브라우저 렌더러는 같은 출처 @font-face 만 그림) */
@font-face { font-family: "GowunBatangBold"; src: url("fonts/GowunBatang-Bold.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "GowunBatang"; src: url("fonts/GowunBatang-Regular.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "NanumPen"; src: url("fonts/NanumPenScript.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Parisienne"; src: url("fonts/Parisienne.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "PretendardSB"; src: url("fonts/Pretendard-SemiBold.woff2") format("woff2"); font-display: block; }

:root {
  --bg: #faf6f0; --card: #fff; --ink: #2e2620; --sub: #7a6c60; --line: #eadfd2; --accent: #c8644a; --accent2: #f6e3d6; --bad: #b3261e;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #17130f; --card: #221c17; --ink: #f2e9df; --sub: #b4a594; --line: #3a3028; --accent: #e8866a; --accent2: #3a2a22; --bad: #ff8a80; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "PretendardSB", system-ui, -apple-system, "Malgun Gothic", sans-serif; font-weight: 500; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 16px 16px 60px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 6px 0 14px; border-bottom: 1px solid var(--line); }
.brand { font-family: "GowunBatangBold", serif; font-size: 22px; }
.beta { font-family: "PretendardSB", sans-serif; font-size: 12px; background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 99px; vertical-align: 3px; margin-left: 6px; }
nav { color: var(--sub); font-size: 14px; }
.hero h1 { font-family: "GowunBatangBold", serif; font-size: clamp(24px, 5vw, 36px); margin: 26px 0 8px; letter-spacing: -0.01em; }
.hero p { color: var(--sub); line-height: 1.6; margin: 0 0 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 14px 0; }
h2 { font-size: 18px; margin: 0 0 14px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
h2 i { font-style: normal; background: var(--accent); color: #fff; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
h2 small { color: var(--sub); font-size: 13px; font-weight: 400; }
.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 22px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--sub); }
.drop input, .music input[type=file] { display: none; }
.btn { background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 10px 16px; font: inherit; cursor: pointer; text-decoration: none; display: inline-block; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.big { padding: 14px 26px; font-size: 17px; }
.ghost, .ghostbtn { background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; margin-left: 8px; text-decoration: underline; }
.loading { color: var(--accent); }
.bar { display: flex; gap: 10px; align-items: center; margin: 14px 0 10px; flex-wrap: wrap; }
.bad { color: var(--bad); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.th { position: relative; border-radius: 8px; overflow: hidden; background: var(--accent2); aspect-ratio: 1; cursor: grab; }
.th.dragging { opacity: 0.4; }
.th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th em { position: absolute; left: 4px; top: 4px; background: rgba(0,0,0,.6); color: #fff; font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 99px; }
.th u { position: absolute; right: 4px; top: 4px; background: var(--accent); color: #fff; text-decoration: none; font-size: 11px; padding: 1px 6px; border-radius: 99px; }
.th s { position: absolute; right: 6px; bottom: 26px; color: #7CFF9B; text-decoration: none; font-size: 10px; text-shadow: 0 0 3px #000; }
.th .ctl { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; background: rgba(0,0,0,.45); }
.th .ctl button { background: none; border: 0; color: #fff; padding: 4px 8px; cursor: pointer; font-size: 12px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--sub); }
.field input, .betabox input { font: inherit; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; }
details { margin-top: 14px; }
summary { cursor: pointer; color: var(--accent); margin-bottom: 10px; }
.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.theme { text-align: left; background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; color: var(--ink); font: inherit; display: flex; flex-direction: column; gap: 4px; }
.theme.on { border-color: var(--accent); }
.theme small { color: var(--sub); }
.sw { display: flex; gap: 4px; margin-bottom: 4px; }
.sw b { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.1); }
.row { display: flex; gap: 8px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.lab { width: 84px; color: var(--sub); font-size: 14px; }
.pill { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 99px; padding: 7px 14px; font: inherit; cursor: pointer; }
.pill.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.note { color: var(--sub); font-size: 13px; }
.music > div { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; flex: 1; min-width: 220px; }
.check { font-size: 13px; color: var(--sub); display: flex; gap: 6px; align-items: flex-start; }
.soon { font-size: 13px; color: var(--sub); background: var(--accent2); padding: 6px 10px; border-radius: 8px; }
.player { border-radius: 12px; overflow: hidden; background: #000; }
.ph { aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; color: var(--sub); border: 1px dashed var(--line); border-radius: 12px; }
.go { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.prog { width: 100%; height: 10px; background: var(--accent2); border-radius: 99px; overflow: hidden; }
.prog b { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.done { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.warn { background: #fdecea; color: #8c1d18; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.betabox p { color: var(--sub); line-height: 1.6; margin: 0 0 6px; }
.betabox .row input { flex: 1; min-width: 200px; }
footer { color: var(--sub); font-size: 12px; line-height: 1.6; margin-top: 28px; }
