@font-face { font-family: "S-Core Dream 5 Medium"; src: url(/fonts/SCDream5.otf); }
@font-face { font-family: "S-Core Dream 6 Bold"; src: url(/fonts/SCDream6.otf); }
@font-face { font-family: "BM HANNA 11yrs old"; src: url(/fonts/BMHANNA_11yrs_ttf.ttf); }
@font-face { font-family: "Pretendard ExtraBold"; src: url(/fonts/Pretendard-ExtraBold.otf); }
:root { --bg:#16181c; --panel:#1f2228; --line:#2e323a; --text:#e8e9eb; --dim:#9aa0aa; --acc:#4f8cff; --warn:#ff6b5e; --ok:#3ecf8e; }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--text); font:14px/1.5 -apple-system, "Pretendard", "Apple SD Gothic Neo", sans-serif; }
a { color: var(--acc); }
button, select, input, textarea { font: inherit; color: var(--text); background: #2a2e36; border: 1px solid var(--line); border-radius: 6px; padding: 5px 9px; }
button { cursor: pointer; }
button.primary { background: var(--acc); border-color: var(--acc); color: #fff; font-weight: 600; }
button:disabled { opacity: .45; cursor: default; }
input[type=range] { padding: 0; width: 100%; accent-color: var(--acc); }
.top { display:flex; gap:12px; align-items:center; padding:10px 16px; border-bottom:1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 5; }
.brand { font-weight:700; color:var(--text); text-decoration:none; }
.grow { flex:1; }
.status { color: var(--dim); }
.status.err { color: var(--warn); }
main { padding: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.list .row { display:flex; gap:12px; align-items:center; padding:10px 0; border-bottom:1px solid var(--line); }
.list .row:last-child { border:0; }
.tag { font-size:12px; padding:2px 8px; border-radius:99px; background:#2a2e36; color: var(--dim); }
.tag.ok { color: var(--ok); } .tag.err { color: var(--warn); } .tag.run { color: var(--acc); }
.form { display:grid; gap:8px; max-width: 520px; }
.bar { height: 6px; background: #2a2e36; border-radius: 4px; overflow: hidden; }
.bar > i { display:block; height:100%; background: var(--acc); }
.editor { display:grid; grid-template-columns: 380px 1fr; gap: 16px; align-items: start; }
.left { position: sticky; top: 60px; }
.stage { position: relative; width: 360px; height: 640px; background: #000; overflow: hidden; border-radius: 12px; }
.stage video { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; transform-origin: center; }
.stage .hook, .stage .sub { position:absolute; left: 0; right: 0; text-align: center; transform: translateY(-50%); pointer-events: none; white-space: pre-line; line-height: 1.25; }
.stage .hook span, .stage .sub span.wrap { display: inline-block; padding: 0 .18em; }
.stage .box span.wrap, .stage .hook.box span { background: #000; }
.stage .stroke { -webkit-text-stroke: 0; text-shadow: 0 0 2px #000, 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 2px 2px 2px #000; }
.stage .badge { position:absolute; left:8px; bottom:8px; font-size:12px; background: rgba(0,0,0,.6); padding:2px 6px; border-radius:4px; }
.controls { display:flex; gap:8px; margin: 10px 0; flex-wrap: wrap; }
.beat { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: var(--panel); }
.beat.on { border-color: var(--acc); }
.beat .head { display:flex; gap:8px; align-items:center; margin-bottom: 6px; }
.beat .num { font-weight: 700; width: 22px; }
.beat .text { flex: 1; font-size: 15px; }
.grid { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 12px; align-items: end; }
.grid label { font-size: 12px; color: var(--dim); display: grid; gap: 2px; }
.words { display:flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 8px; }
.words span { cursor:pointer; padding: 1px 8px; border-radius: 4px; background: #2a2e36; font-size: 13px; }
.words span.kw { background: #5a4a10; color: #ffd84a; }
.hint { color: var(--dim); font-size: 12px; }
.warn { color: var(--warn); font-size: 12px; }
.needvoice { color: #ffb84a; font-size: 12px; }
.style .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.versions a { margin-right: 10px; }
h2 { font-size: 16px; margin: 0 0 10px; }
details summary { cursor: pointer; font-weight: 600; }
