*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: #fff;
  color: #111;
}
h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

html {
  --font-sans: "Wanted Sans Variable", "Wanted Sans", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Wanted Sans Variable", monospace;
}
html.font-pretendard { --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif; }
html.font-suit { --font-sans: "SUIT Variable", SUIT, -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif; }
html, .proto-root { --font-display: var(--font-sans); }
html.font-src .proto-root {
  --font-sans: var(--src-sans, "Wanted Sans Variable", sans-serif);
  --font-display: var(--src-display, var(--src-sans, "Wanted Sans Variable", sans-serif));
  --font-mono: var(--src-mono, "Geist Mono", "Wanted Sans Variable", monospace);
}

.proto-slot { position: relative; }
.proto-root { position: relative; }
.proto-empty-box {
  padding: 120px 24px; text-align: center; color: #8a8a8a;
  font: 500 15px/1.5 -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
  background: repeating-linear-gradient(135deg, #f6f6f6 0 14px, #efefef 14px 28px);
}
.proto-err { margin: 0; padding: 24px; background: #2a0d0d; color: #ffb4b4; font: 12px/1.5 Consolas, monospace; white-space: pre-wrap; }

.proto-sw-holder { position: sticky; top: 88px; height: 0; z-index: 2147483000; pointer-events: none; }
.proto-sw {
  position: absolute; right: 14px; top: 0;
  display: flex; align-items: center; gap: 4px; padding: 5px 6px 5px 12px;
  border-radius: 999px; background: rgba(18, 18, 18, .86); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .28), 0 0 0 1px rgba(255, 255, 255, .08) inset;
  font: 500 12px/1 -apple-system, "Segoe UI", "Malgun Gothic", sans-serif; letter-spacing: 0;
  pointer-events: auto; white-space: nowrap;
}
.proto-sw-name { margin-right: 6px; opacity: .92; }
.proto-sw-name em, .proto-row em { font-style: normal; font-size: 10.5px; padding: 2px 6px; border-radius: 99px; background: #3b5bfd; color: #fff; margin-left: 4px; }
.proto-sw button {
  width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #fff; font: 600 12px/26px -apple-system, "Segoe UI", sans-serif; padding: 0;
}
.proto-sw button:hover { background: rgba(255, 255, 255, .22); }
.proto-sw button.on { background: #fff; color: #111; }
.proto-sw button.extra:not(.on) { box-shadow: 0 0 0 1px #3b5bfd inset; }
.proto-sw-label { margin: 0 4px 0 6px; opacity: .7; }
.proto-sw-none { opacity: .6; margin: 0 6px; }
.proto-sw-src { padding: 6px 10px; border-radius: 99px; background: rgba(255, 255, 255, .1); color: #fff; }
.proto-sw-src:hover { background: rgba(255, 255, 255, .22); }

.proto-bar {
  position: fixed; left: 14px; bottom: 14px; z-index: 2147483001;
  display: flex; align-items: center; gap: 4px; padding: 5px;
  border-radius: 12px; background: rgba(18, 18, 18, .9); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .3);
  font: 500 12px/1 -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
}
.proto-bar button, .proto-sel {
  height: 30px; padding: 0 10px; border: 0; border-radius: 8px;
  background: transparent; color: #fff; display: inline-flex; align-items: center; gap: 6px;
}
.proto-bar button:hover, .proto-sel:hover { background: rgba(255, 255, 255, .1); }
.proto-bar button.on { background: rgba(255, 255, 255, .16); }
.proto-bar kbd { font: 600 10px/1 Consolas, monospace; padding: 2px 5px; border-radius: 4px; background: rgba(255, 255, 255, .15); }
.proto-sel select { background: #2a2a2a; color: #fff; border: 0; border-radius: 6px; height: 22px; font-size: 12px; }
.proto-seg { display: inline-flex; background: rgba(255, 255, 255, .06); border-radius: 8px; }
.proto-restore {
  display: none; position: fixed; left: 14px; bottom: 14px; z-index: 2147483001;
  padding: 7px 11px; border: 0; border-radius: 99px; background: rgba(18, 18, 18, .55); color: #fff;
  font: 500 11px/1 -apple-system, "Segoe UI", "Malgun Gothic", sans-serif; opacity: .35;
}
.proto-restore:hover { opacity: 1; }
html.proto-ui-off .proto-sw-holder, html.proto-ui-off .proto-bar, html.proto-ui-off .proto-panel { display: none; }
html.proto-ui-off .proto-restore { display: block; }
html.proto-solo .proto-restore { display: none; }

.proto-panel {
  position: fixed; left: 14px; bottom: 60px; z-index: 2147483002; width: 340px;
  padding: 12px; border-radius: 14px; background: rgba(18, 18, 18, .95); color: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
  font: 500 13px/1.4 -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
}
.proto-panel-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.proto-panel button { border: 0; border-radius: 6px; background: rgba(255, 255, 255, .12); color: #fff; padding: 4px 8px; font-size: 12px; }
.proto-panel button:disabled { opacity: .3; cursor: default; }
.proto-row { display: flex; align-items: center; gap: 6px; padding: 7px 4px; border-top: 1px solid rgba(255, 255, 255, .08); }
.proto-row.off .proto-row-name { opacity: .4; }
.proto-row-n { width: 18px; opacity: .6; font-size: 12px; }
.proto-row-name { flex: 1; }
.proto-row-name small { opacity: .5; font-size: 11px; }
.proto-row label { font-size: 12px; display: flex; align-items: center; gap: 4px; }
.proto-panel-f { margin-top: 8px; font-size: 11.5px; opacity: .55; }
.proto-panel-list { max-height: 56vh; overflow-y: auto; }
.proto-panel-a { margin-top: 8px; }
.proto-panel-a button { width: 100%; padding: 8px; background: rgba(255, 255, 255, .08); }
.proto-row-name i { font-style: normal; opacity: .5; }
.proto-row label { padding: 0 2px; }

.proto-sw.proto-sw-pool {
  flex-direction: column; align-items: stretch; gap: 7px;
  padding: 9px 10px 10px; border-radius: 16px;
}
.proto-sw-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 22px; }
.proto-sw-pool .proto-sw-name { margin: 0 0 0 2px; }
.proto-sw-pool .proto-sw-name b { font-weight: 600; }
.proto-sw-pool .proto-sw-name small { opacity: .6; font-size: 11px; margin-left: 2px; }
.proto-sw-pool .proto-sw-src { padding: 4px 9px; }
.proto-sw-grid { display: grid; grid-template-columns: repeat(12, 24px); gap: 4px 4px; }
.proto-sw .proto-sw-grid button {
  width: 24px; height: 24px; font: 600 10.5px/24px -apple-system, "Segoe UI", sans-serif; letter-spacing: -.02em;
}
.proto-sw .proto-sw-grid button.used { opacity: .22; cursor: not-allowed; }
.proto-sw .proto-sw-grid button.used:hover { background: rgba(255, 255, 255, .1); }
.proto-sw .proto-sw-grid button.on { background: #fff; color: #111; opacity: 1; }
.proto-sw .proto-sw-grid button.cat { box-shadow: -3px 0 0 -1px rgba(255, 255, 255, .28); }
.proto-sw .proto-sw-grid button.extra:not(.on) { box-shadow: 0 0 0 1px #3b5bfd inset; }
.proto-sw .proto-sw-grid button.extra.cat:not(.on) { box-shadow: 0 0 0 1px #3b5bfd inset, -3px 0 0 -1px rgba(255, 255, 255, .28); }
@media (max-width: 640px) {
  .proto-sw-pool .proto-sw-name small, .proto-sw-pool .proto-sw-name em, .proto-sw-label, .proto-sw-src { display: none; }
  .proto-sw-grid { grid-template-columns: repeat(9, 24px); }
  .proto-bar { flex-wrap: wrap; right: 14px; }
}

.proto-combo {
  position: fixed; left: 14px; top: 88px; z-index: 2147483001; width: 262px;
  max-height: calc(100vh - 88px - 72px); overflow-y: auto;
  padding: 10px; border-radius: 14px; background: rgba(18, 18, 18, .92); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .3), 0 0 0 1px rgba(255, 255, 255, .08) inset;
  font: 500 12.5px/1.45 -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
}
.proto-combo-h { display: flex; justify-content: space-between; align-items: center; padding: 2px 2px 8px; }
.proto-combo-h b { font-size: 13px; font-weight: 600; }
.proto-combo-fold { width: 24px; height: 24px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 14px; line-height: 24px; padding: 0; }
.proto-combo-list { display: flex; flex-direction: column; gap: 3px; }
.proto-combo-list button {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 9px;
  background: transparent; color: #fff; text-align: left; font-size: 12.5px;
}
.proto-combo-list button:hover { background: rgba(255, 255, 255, .08); }
.proto-combo-list button.on { background: #fff; color: #111; }
.proto-combo-list .k {
  flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); font-weight: 700; font-size: 11.5px;
}
.proto-combo-list button.on .k { background: #111; color: #fff; }
.proto-combo-list .t { flex: 1; }
.proto-combo-list i { font-style: normal; font-size: 10px; padding: 1px 6px; border-radius: 99px; background: #f5a524; color: #111; }
.proto-combo-d { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .1); }
.proto-combo-d .d { opacity: .85; }
.proto-combo-d .w { margin: 8px 0 0; padding-left: 16px; list-style: disc; opacity: .7; font-size: 12px; }
.proto-combo-d .w li + li { margin-top: 3px; }
.proto-combo-d .ft { margin-top: 12px; font-size: 11.5px; opacity: .55; }
.proto-combo-d .ft small { margin-left: 4px; opacity: .8; }
.proto-combo-d .f { margin: 6px 0 0; padding: 0; list-style: none; }
.proto-combo-d .f li { display: flex; align-items: baseline; gap: 7px; padding: 4px 6px; border-radius: 7px; cursor: pointer; }
.proto-combo-d .f li:hover { background: rgba(255, 255, 255, .08); }
.proto-combo-d .f .n { flex: none; width: 22px; opacity: .5; font-size: 11px; text-align: right; }
.proto-combo-d .f .l { flex: 1; }
.proto-combo-d .f small { opacity: .5; font-size: 11px; white-space: nowrap; }
.proto-combo-d .note { margin-top: 8px; font-size: 11px; opacity: .5; }
.proto-combo-reset { width: 100%; margin-top: 8px; padding: 7px; border: 0; border-radius: 8px; background: #f5a524; color: #111; font-weight: 600; font-size: 12px; }
.proto-combo.fold { width: 46px; padding: 8px 6px; overflow: hidden; }
.proto-combo.fold .proto-combo-h { justify-content: center; padding-bottom: 6px; }
.proto-combo.fold .proto-combo-h b, .proto-combo.fold .t, .proto-combo.fold i, .proto-combo.fold .proto-combo-d { display: none; }
.proto-combo.fold .proto-combo-list button { justify-content: center; padding: 4px 0; }
html.proto-ui-off .proto-combo { display: none; }

.proto-slot[data-mod~="short"] .v-hero-cinemaflow { --cfh-pad-hero: 72px; }
@media screen and (max-width: 991px) { .proto-slot[data-mod~="short"] .v-hero-cinemaflow { --cfh-pad-hero: 56px; } }
@media screen and (max-width: 767px) { .proto-slot[data-mod~="short"] .v-hero-cinemaflow { --cfh-pad-hero: 48px; } }

.proto-combo-list b.fin { font-weight: 600; font-size: 10px; padding: 1px 6px; border-radius: 99px; background: #2fbf71; color: #fff; }
.proto-combo.fold b.fin { display: none; }

.proto-slot[data-mod~="short"] .v-hero-brex .hb-visual--d { height: max(520px, min(calc(100vh - 300px), 900px)); }
.proto-slot[data-mod~="short"] .v-hero-brex .hb-grid { min-height: max(520px, min(calc(100vh - 300px), 900px)); }

.proto-bar .proto-link { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 8px; background: #2fbf71; color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.proto-bar .proto-link:hover { background: #27a862; }
