@font-face { font-family: "Galmuri11"; src: url("fonts/Galmuri11-Bold-sub.ttf") format("truetype"); font-weight: 700; }
@font-face { font-family: "Geist"; src: url("fonts/GeistVariable.ttf") format("truetype"); font-weight: 100 900; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #141415; color: #eeebe5; overflow: hidden;
	font-family: "Pretendard", "Wanted Sans", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body.stack { overflow-y: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
.dim { color: #8d8982; }
#wrap { position: relative; width: 100%; height: 100%; }
#stage { position: absolute; left: 0; top: 0; width: 770px; height: 723px; transform-origin: 0 0; user-select: none; -webkit-user-select: none; }

/* device */
#dev { position: absolute; left: 0; top: 0; width: 470px; height: 671px; background: #1b1b1c; overflow: hidden; touch-action: manipulation; }
#skinImg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.key { position: absolute; border-radius: 6px; cursor: pointer; touch-action: none; }
.key .shade { position: absolute; inset: 2.4px; border-radius: 6px; background: #000; opacity: 0; pointer-events: none; }
.key .glow { position: absolute; inset: 3.2px; border-radius: 6px; opacity: 0; pointer-events: none; }
.key .gap { position: absolute; left: 9.6px; right: 9.6px; height: 4px; bottom: -4.4px; opacity: 0; pointer-events: none; }
.key .face { position: absolute; pointer-events: none; }
.key .sym { position: absolute; left: 2.4px; top: 1.6px; font-family: "Geist", sans-serif; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.key .fn { position: absolute; left: 2.4px; right: 3px; bottom: 3px; height: 14px; font-family: "Geist", sans-serif; font-weight: 650; font-size: 11px;
	letter-spacing: .5px; line-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.key .lamp { position: absolute; width: 6.4px; height: 6.4px; border-radius: 50%; display: none; }
.key .selbar { position: absolute; width: 10.4px; height: 3px; border-radius: 1.5px; display: none; }
.key.drop { outline: 2px dashed #ffc9a8; outline-offset: -4px; }
.key.pulse .glow { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 0; } 50% { opacity: .75; } }
#disp { position: absolute; cursor: pointer; font-family: "Galmuri11", "Consolas", monospace; font-weight: 700; font-size: 12px; }
#disp .ln { position: absolute; left: 4px; right: 4px; display: flex; justify-content: space-between; align-items: center; white-space: nowrap; overflow: hidden; }
#disp::after { content: ""; position: absolute; inset: 0; pointer-events: none;
	background: repeating-linear-gradient(to bottom, rgba(0,0,0,.18) 0 0.6px, transparent 0.6px 2px); }
#d3 { gap: 0; justify-content: flex-start !important; }
#d3 .c { width: 9px; height: 7px; margin-right: 3.2px; position: relative; flex: none; }
#d3 .c.g { margin-right: 6.2px; }
#d3 .c u { position: absolute; left: 0; right: 0; top: 9px; height: 2px; }
#d3 .lamps { margin-left: auto; display: flex; align-items: center; gap: 7px; padding-right: 8px; }
#devKnob { position: absolute; border-radius: 50%; cursor: ns-resize; touch-action: none; }
#devKnobDot { position: absolute; width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 .8px 1px rgba(0,0,0,.4); }

/* panel */
#panel { position: absolute; left: 470px; top: 0; width: 300px; height: 671px; background: #29292a; padding: 12px 18px 0 18px; }
.phead { display: flex; align-items: center; height: 24px; gap: 8px; }
.phead b { font-family: "Geist", sans-serif; font-size: 12px; letter-spacing: .8px; color: #b2aea6; }
.phead .brand { margin-left: auto; font-size: 11px; color: #8d8982; letter-spacing: .4px; }
.round { width: 24px; height: 24px; border-radius: 50%; border: 0; background: #48484c; color: #eeebe5; font-weight: 700; font-size: 13px; }
.vrow { display: flex; align-items: center; margin-top: 8px; height: 34px; }
.vrow #vName { flex: 1; text-align: center; font-size: 22px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arrow { width: 24px; height: 26px; border: 0; background: none; font-size: 22px; line-height: 20px; color: #eeebe5; padding: 0; }
.arrow:hover { color: #fff; background: rgba(255,255,255,.06); border-radius: 4px; }
.crow { margin-top: 8px; height: 28px; display: flex; gap: 6px; align-items: center; }
.crow .btn { height: 28px; }
.crow .full { flex: 1; font-size: 12px; }
.crow .sname { flex: 1; min-width: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #b2aea6; }
.btn { height: 30px; border: 1px solid rgba(255,255,255,.08); background: #313133; border-radius: 4px; font-family: "Geist", "Malgun Gothic", sans-serif;
	font-weight: 650; font-size: 12px; letter-spacing: .6px; color: #eeebe5; padding: 0 8px; }
.btn:hover { background: #3a3a3d; }
.btn i { font-style: normal; color: #b2aea6; margin-left: 4px; }
.btn.on { background: #48484c; }
.btn.recon { background: #5a2420; border-color: #ff4a3a66; }
.knobs { display: flex; margin-top: 8px; }
.knob { flex: 1; display: flex; flex-direction: column; align-items: center; touch-action: none; }
.knob .kb { position: relative; cursor: ns-resize; }
.knob .kb .dot { position: absolute; width: 2.6px; height: 2.6px; border-radius: 50%; }
.knob .kb .cap { position: absolute; border-radius: 50%; background: linear-gradient(#3a3a3d, #242426); box-shadow: 0 1.5px 0 rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.09); }
.knob .kb .cap.hot { background: linear-gradient(#48484c, #242426); }
.knob .kb .ptr { position: absolute; left: 50%; top: 50%; width: 2.2px; margin-left: -1.1px; border-radius: 1px; transform-origin: 50% 0; }
.knob .kl { margin-top: 3px; font-family: "Geist", sans-serif; font-weight: 650; font-size: 11px; letter-spacing: .6px; color: #b2aea6; }
.knob .kv { font-family: "Geist", sans-serif; font-size: 12px; color: #eeebe5; height: 14px; white-space: nowrap; }
.lab { display: flex; justify-content: space-between; margin-top: 8px; font-family: "Geist", sans-serif; font-weight: 650; font-size: 11px; letter-spacing: .8px; color: #b2aea6; }
.lab .dim { font-weight: 400; letter-spacing: 0; }
#steps { position: relative; height: 24px; margin-top: 6px; touch-action: none; }
#steps .s { position: absolute; top: 0; width: 12.5px; height: 24px; border-radius: 2px; background: #3a3a3d; cursor: pointer; }
#steps .s.now { box-shadow: inset 0 -2px 0 #eeebe5; }
#map { position: relative; height: 101px; margin-top: 6px; touch-action: none; }
#map .rn { position: absolute; left: 0; width: 14px; font-family: "Geist", sans-serif; font-size: 9.5px; line-height: 9px; color: #8d8982; cursor: pointer; text-align: center; }
#map .rn.sel { color: #eeebe5; font-weight: 700; }
#map .m { position: absolute; width: 11.5px; height: 9px; border-radius: 1.5px; background: #333335; cursor: pointer; }
#map .col { position: absolute; top: -1px; width: 11.5px; height: 101px; border-radius: 2px; background: rgba(255,255,255,.07); pointer-events: none; display: none; }
.prow { display: flex; gap: 8px; margin-top: 6px; }
.sel { display: flex; align-items: center; gap: 8px; height: 26px; width: 150px; background: #313133; border-radius: 4px; padding: 0 0 0 10px; font-family: "Geist", sans-serif; font-size: 11px; font-weight: 650; letter-spacing: .6px; }
.sel select { flex: 1; min-width: 0; height: 26px; background: transparent; border: 0; color: #eeebe5; font: 600 13px "Geist", sans-serif; cursor: pointer; }
.sel select option { background: #29292a; }
#clearBtn { margin-left: auto; height: 26px; width: 70px; }
.sep { height: 1px; background: rgba(255,255,255,.08); margin: 10px 0 0; }
#globKnobs { margin-top: 8px; }
.brow { display: flex; gap: 8px; margin-top: 10px; }
.brow .btn { height: 30px; }
#playBtn { width: 78px; } #recBtn { width: 66px; } .brow .wide { flex: 1; letter-spacing: 0; }
.small { font-size: 11px; margin-top: 6px; height: 14px; }
.srow { display: flex; align-items: center; margin-top: 10px; height: 30px; }
.lab0 { font-family: "Geist", sans-serif; font-weight: 650; font-size: 11px; letter-spacing: .8px; color: #b2aea6; width: 58px; }
#skinDots { display: flex; gap: 8px; }
.sdot { width: 26px; height: 26px; border-radius: 50%; border: 0; padding: 0; position: relative; }
.sdot.on { box-shadow: 0 0 0 2px #29292a, 0 0 0 3.5px #b2aea6; }
.sdot i { position: absolute; right: 2px; bottom: 2px; width: 9px; height: 9px; border-radius: 50%; }
#skinName { margin-left: 12px; font-size: 12px; }

/* bar */
#bar { position: absolute; left: 0; top: 671px; width: 770px; height: 52px; background: #1b1b1c; display: flex; align-items: center; padding: 0 10px 0 12px; }
#bar .kit { display: flex; align-items: center; width: 186px; gap: 6px; }
#bar .kit .dim { font-family: "Geist", sans-serif; font-size: 10px; letter-spacing: 1px; margin-left: 2px; }
#bar .kit b { font-family: "Geist", sans-serif; font-size: 15px; letter-spacing: 1px; flex: 1; }
#bar .hint { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding-left: 4px; }
#bar .hint b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#bar .hint span { font-size: 11.5px; color: #b2aea6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sq { width: 26px; height: 28px; border: 1px solid rgba(255,255,255,.14); background: none; border-radius: 4px; font-size: 18px; line-height: 20px; padding: 0; margin: 0 8px; }
.ver { font-family: "Geist", sans-serif; font-size: 11px; color: #8d8982; }

/* folded / stacked */
.folded #panel { display: none; }
.folded #bar { width: 470px; }
.folded #bar .kit { width: 150px; }
.stack #panel { left: 0; top: 671px; width: 470px; height: 640px; padding: 14px 103px 0; }
.stack #bar { top: 1311px; width: 470px; }
.stack.folded #bar { top: 671px; }
.stack #foldBtn { display: none; }

/* overlays */
.overlay { position: fixed; inset: 0; background: rgba(10,10,11,.78); display: flex; align-items: center; justify-content: center; z-index: 10; padding: 16px; }
.overlay.hidden { display: none; }
.card { background: #29292a; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 26px 26px 20px; max-width: 440px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.card .t1 { font-family: "Geist", sans-serif; font-size: 18px; letter-spacing: .5px; }
.card .t2 { color: #b2aea6; font-size: 13.5px; margin-top: 4px; }
.card .t3 { color: #8d8982; font-size: 12px; margin-top: 12px; text-align: center; }
#tour { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.tc { display: flex; gap: 10px; align-items: flex-start; background: #313133; border-radius: 6px; padding: 10px 12px; font-size: 13px; line-height: 1.5; color: #d6d2ca; }
.tc i { font-style: normal; flex: none; width: 20px; height: 20px; border-radius: 50%; background: #ee7a66; color: #3a1a14; font: 700 12px/20px "Geist", sans-serif; text-align: center; margin-top: 1px; }
.tc b { color: #fff; }
.go { display: block; width: 100%; margin-top: 18px; height: 46px; border: 0; border-radius: 6px; background: #ee7a66; color: #2a120e; font-size: 16px; font-weight: 700; }
.go:hover { filter: brightness(1.06); }
.help { max-width: 620px; }
.help table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 12.5px; }
.help th { text-align: left; color: #8d8982; font-weight: 600; padding: 4px 6px; border-bottom: 1px solid rgba(255,255,255,.08); }
.help td { padding: 5px 6px; border-bottom: 1px solid rgba(255,255,255,.05); }
.help td:first-child, .help td:nth-child(2) { font-family: "Geist", sans-serif; white-space: nowrap; }
.help p { font-size: 12px; line-height: 1.55; margin: 10px 0 0; }
#toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); background: #48484c; color: #fff; padding: 8px 14px; border-radius: 6px; font-size: 13px; z-index: 20; display: none; }
