:root {
  --bg: #08080A; --panel: #101014; --panel2: #0C0C10; --line: #25252E;
  --text: #FFFFFF; --text2: #B4B4C6; --lime: #D8F064; --blue: #3D6BF0;
  --floorA: #121A2E; --floorB: #18223A;
  --display: "Archivo Black", "Noto Sans KR", sans-serif;
  --body: Inter, "Noto Sans KR", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--lime); }
button { font-family: inherit; }
h1, h2, p { margin: 0; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 20px 16px 48px; display: flex; flex-direction: column; gap: 28px; }
.mono { font-family: var(--mono); }
.muted { color: var(--text2); }

/* temporary notice strip */
.notice { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 16px; background: repeating-linear-gradient(135deg, #D8F064 0 14px, #C4DC50 14px 28px); color: #08080A; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; text-align: center; }
.notice .dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 2px; background: #08080A; }

/* top */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.brand img { width: 44px; height: 44px; border-radius: 12px; }
.brand { min-width: 0; }
.brand span { font-family: var(--mono); font-size: 12px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 4px; font-size: 14px; font-weight: 600; }
.lang { display: flex; padding: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; }
.lang button { white-space: nowrap; min-height: 36px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--text2); font-size: 13px; font-weight: 500; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--blue); color: #fff; font-weight: 600; }
.toplinks { display: flex; align-items: center; gap: 8px; }
.toplinks a.about { display: none; align-items: center; min-height: 44px; padding: 0 10px; font-size: 14px; color: var(--text2); }

.hero h1 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.02; letter-spacing: -0.01em; }
.hero p { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--text2); max-width: 560px; }

/* labels */
.eyebrow { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--lime); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); }
.tag { display: inline-block; padding: 4px 8px; border-radius: 6px; background: var(--blue); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: #fff; }
.tag.off { background: transparent; border: 1px solid var(--line); color: var(--text2); }
.tested { display: inline-block; padding: 5px 9px; border: 1px solid var(--lime); border-radius: 6px; font-family: var(--mono); font-size: 11px; color: var(--lime); white-space: nowrap; }
.section { display: flex; flex-direction: column; gap: 14px; }
.section > h2 { font-family: var(--display); font-weight: 400; font-size: 22px; }

/* clip frame */
.clip { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background-color: var(--floorA); background-image: conic-gradient(var(--floorB) 25%, var(--floorA) 0 50%, var(--floorB) 0 75%, var(--floorA) 0); background-size: 36px 36px; }
.clip video, .clip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* latest card */
.latest { display: grid; grid-template-columns: 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.latest .info { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.latest .name { font-family: var(--display); font-size: 26px; line-height: 1.1; color: #fff; }
.latest .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.latest .names { display: none; gap: 6px; flex-wrap: wrap; }
.latest .names span { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: #fff; }
.new { position: absolute; right: 10px; top: 10px; padding: 4px 8px; border-radius: 6px; background: rgba(8,8,10,0.75); font-family: var(--mono); font-size: 11px; color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--lime); color: var(--bg); font-weight: 700; font-size: 15px; }
a:hover .btn, a.btn:hover { color: var(--bg); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: #fff; font-weight: 600; }

/* tracks */
.track { display: flex; flex-direction: column; gap: 10px; }
.track .head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.track .head > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.track .desc { font-size: 13px; color: var(--text2); }
.count { font-family: var(--mono); font-size: 12px; color: var(--text2); white-space: nowrap; }
.sets { display: grid; grid-template-columns: 1fr; gap: 10px; }
.setcard { display: flex; gap: 12px; align-items: center; padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.setcard .clip { flex: 0 0 132px; border-radius: 8px; background-size: 18px 18px; }
.setcard .meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.setcard .name { font-family: var(--display); font-size: 17px; color: #fff; }
.setcard .tested { font-size: 10px; border: 0; padding: 0; }
.soon { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 0 16px; border: 1.5px dashed var(--line); border-radius: 14px; font-size: 13px; color: var(--text2); }
.soon b { font-family: var(--mono); font-weight: 400; }

footer { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
footer nav { display: flex; gap: 8px; flex-wrap: wrap; }
footer small { font-family: var(--mono); font-size: 11px; color: var(--text2); }

/* set page */
.sethead { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.sethead h1 { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; }
.sethead p { font-size: 16px; color: var(--text2); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px; margin: 0 -16px; scrollbar-width: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 14px; font-weight: 600; white-space: nowrap; }
.num { width: 30px; height: 30px; border-radius: 999px; background: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; font-weight: 700; color: #fff; }
.fx { padding: 22px 0 26px; display: grid; grid-template-columns: 1fr; gap: 12px; border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }
.fx .title { display: flex; align-items: flex-start; gap: 12px; }
.fx .title .num { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; font-size: 16px; }
.fx h2 { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.15; }
.fx .sum { margin-top: 3px; font-size: 14px; line-height: 1.45; color: var(--text2); }
.player { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.player .bar { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.seg { display: flex; gap: 2px; padding: 2px; background: var(--bg); border-radius: 10px; }
.seg button { min-height: 40px; min-width: 56px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text2); font: 500 12px var(--mono); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--blue); color: #fff; font-weight: 700; }
.view { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--text2); font: 400 11px var(--mono); cursor: pointer; }
.view span { padding: 3px 7px; border-radius: 5px; }
.view[data-raw="0"] .s, .view[data-raw="1"] .r { background: var(--line); color: #fff; }
.player .clip { border-radius: 11px; box-shadow: inset 0 0 0 1px #2A3656; }
.side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.copy { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; border: 0; border-radius: 14px; cursor: pointer; background: var(--lime); color: var(--bg); font-weight: 700; font-size: 17px; }
.copy.done { background: #fff; }
.prompt { position: relative; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.prompt .ph { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--text2); }
.prompt pre { margin: 0; padding: 12px; font-family: var(--mono); font-size: 12px; line-height: 20px; color: #E6E6F0; white-space: pre-wrap; word-break: break-word; tab-size: 4; }
.prompt.long:not(.open) pre { max-height: 200px; overflow: hidden; }
.prompt .fade { display: none; position: absolute; left: 0; right: 0; bottom: 44px; height: 56px; background: linear-gradient(rgba(12,12,16,0), var(--panel2)); pointer-events: none; }
.prompt.long:not(.open) .fade { display: block; }
.prompt .more { display: none; width: 100%; min-height: 44px; border: 0; border-top: 1px solid var(--line); background: var(--panel); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; }
.prompt.long .more { display: block; }
.usage { font-size: 13px; line-height: 1.5; color: var(--text2); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; display: flex; align-items: center; gap: 10px; width: min(342px, calc(100vw - 32px)); padding: 14px 16px; border-radius: 14px; background: #fff; color: var(--bg); font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 10; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast i { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 999px; background: var(--lime); display: flex; align-items: center; justify-content: center; }

/* coming soon / about */
.soonpage { flex: 1; border: 1.5px dashed var(--line); border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 40px 24px; text-align: center; }
.soonpage img { width: 140px; height: 140px; border-radius: 28px; }
.soonpage .big { font-family: var(--display); font-size: 22px; line-height: 1.2; }
.soonpage p { max-width: 280px; font-size: 14px; line-height: 1.5; color: var(--text2); }
.steps { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 0; margin: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; font-size: 15px; }
.prose { font-size: 15px; line-height: 1.6; color: var(--text2); max-width: 640px; }

@media (min-width: 900px) {
  .wrap { padding: 28px 40px 56px; gap: 48px; }
  .toplinks a.about { display: inline-flex; }
  .brand img { width: 64px; height: 64px; border-radius: 16px; }
  .hero h1 { font-size: 52px; }
  .hero p { font-size: 16px; }
  .section > h2 { font-size: 28px; }
  .latest { grid-template-columns: 1.2fr 1fr; border-radius: 22px; }
  .latest .info { padding: 36px; justify-content: center; gap: 16px; }
  .latest .name { font-size: 52px; line-height: 1; }
  .latest .names { display: flex; }
  .latest .btn { min-height: 52px; padding: 0 22px; font-size: 16px; border-radius: 14px; }
  .tracks { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; align-items: start; }
  .sets { grid-template-columns: 1fr 1fr; gap: 16px; }
  .setcard { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; border-radius: 16px; gap: 0; }
  .setcard .clip { flex: none; border-radius: 0; background-size: 28px 28px; }
  .setcard .meta { padding: 16px; gap: 8px; }
  .setcard .name { font-size: 20px; }
  .soon { min-height: 200px; flex-direction: column; justify-content: center; }
  footer { flex-direction: row; align-items: center; justify-content: space-between; }
  .sethead h1 { font-size: 64px; }
  .chips { margin: 0; padding: 14px 0; flex-wrap: wrap; }
  .fx { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 32px; padding: 36px 0 40px; }
  .fx .title { grid-column: 1 / -1; }
  .fx h2 { font-size: 30px; }
  .fx .sum { font-size: 16px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .toast { transition: none; } }
