:root{
  --bg:#0c0c0f;
  --panel: rgba(18,18,22,.78);
  --panel2: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.08);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.64);
  --blue:#2d6cdf;
  --blue2:#3a7bff;
  --shadow: 0 20px 60px rgba(0,0,0,.55);
  --r16:16px;
  --r20:20px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.root{
  height:100%;
  padding:18px;
}

.shell{
  height:100%;
  display:grid;
  grid-template-columns: 1fr 360px;
  gap:18px;
}

/* Slider */
.slider{
  display:flex;
  flex-direction:column;
  gap:12px;
  min-width: 0;
}

.slider-stage{
  position:relative;
  flex: 1 1 auto;
  border-radius: var(--r20);
  overflow:hidden;
  border:1px solid var(--stroke);
  box-shadow: var(--shadow);
  background: rgba(0,0,0,.25);
}

.slide-bg{
  position:absolute; inset:0;
  background-size: cover;
  background-position:center;
  filter: blur(18px) saturate(1.05);
  transform: scale(1.08);
  opacity: .9;
}

.slide-media{
  position:absolute; inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
}

.slide-media img,
.slide-media video{
  width:100%;
  height:100%;
  object-fit: contain; /* 핵심: 절대 안 잘리게 */
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
  background: rgba(0,0,0,.25);
}

/* Nav */
.nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:44px; height:44px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.92);
  font-size: 26px;
  line-height: 0;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: .15s ease;
}
.nav:hover{ background: rgba(0,0,0,.55); border-color: rgba(255,255,255,.18); }
.nav:active{ transform: translateY(-50%) scale(.98); }
.nav.prev{ left:14px; }
.nav.next{ right:14px; }

.dots{
  position:absolute;
  left:0; right:0;
  bottom:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  pointer-events: none;
}
.dot{
  width:8px; height:8px;
  border-radius: 99px;
  background: rgba(255,255,255,.28);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);
}
.dot.active{
  width:18px;
  background: rgba(255,255,255,.78);
}

.slide-caption{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 12px 14px;
  border-radius: var(--r16);
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
}

.cap-title{
  font-weight: 700;
  letter-spacing: .2px;
}

.cap-link{
  color: rgba(255,255,255,.92);
  text-decoration:none;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
}
.cap-link:hover{
  border-color: rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
}

/* Board */
.board{
  border-radius: var(--r20);
  overflow:hidden;
  border:1px solid var(--stroke);
  background: var(--panel);
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  min-width:0;
}

.tabs{
  display:flex;
  gap:6px;
  padding: 10px;
  background: rgba(0,0,0,.25);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.tab{
  flex:1 1 auto;
  padding: 10px 10px;
  border-radius: 14px;
  border:1px solid transparent;
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.78);
  cursor:pointer;
  font-weight: 650;
  font-size: 13px;
  transition: .15s ease;
}
.tab:hover{ background: rgba(255,255,255,.06); }
.tab.active{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.10);
  color: rgba(255,255,255,.95);
}

.panel{
  display:none;
  padding: 16px 16px 10px;
  overflow:auto;
  flex: 1 1 auto;
}
.panel.active{ display:block; }

.panel h3{
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: .2px;
}

.list{
  margin:0;
  padding-left: 18px;
  color: rgba(255,255,255,.82);
  line-height: 1.65;
}

.badge{
  display:inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(45,108,223,.25);
  border:1px solid rgba(45,108,223,.35);
  color: rgba(255,255,255,.92);
  font-size: 11px;
  margin-right: 6px;
}

.muted{ color: var(--muted); }
.small{ font-size: 12px; }

.board-footer{
  padding: 12px 14px;
  border-top:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
}



/* ===== Launcher UX overrides (rev) ===== */

/* Tabs: prevent text wrapping, allow horizontal scroll if narrow */
.tabs {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto !important;
  white-space: nowrap;
  font-size: 12px;
  padding: 10px 12px;
}

/* Slider: reduce blur dominance, add inset ("carved") frame */
.slider-stage {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.10),
    inset 0 8px 24px rgba(0,0,0,.55),
    0 14px 40px rgba(0,0,0,.35);
}
.slide-bg {
  filter: blur(10px);
  opacity: .35;
}
.slide-media {
  box-shadow: inset 0 0 18px rgba(0,0,0,.55);
}

/* Remove bottom caption bar spacing by letting stage fill */
.slider {
  gap: 0 !important;
}

/* Update modal */
.modal-backdrop{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.65);
  z-index: 9999;
  padding: 16px;
}
.modal{
  width: min(520px, 100%);
  background: rgba(16,16,16,.92);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  color: #eaeaea;
}
.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 14px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.modal-title{ font-weight: 700; font-size: 14px; letter-spacing: .2px; }
.modal-close{
  border: 0;
  background: transparent;
  color: #eaeaea;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 10px;
}
.modal-close:hover{ background: rgba(255,255,255,.08); }
.modal-body{
  padding: 14px;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.modal-actions{
  display:flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 0 14px 14px 14px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color:#eaeaea;
  text-decoration:none;
  cursor:pointer;
  font-weight: 600;
}
.btn:hover{ background: rgba(255,255,255,.10); }
.btn.primary{
  background: rgba(207,168,74,.20);
  border-color: rgba(207,168,74,.35);
}
.btn.primary:hover{ background: rgba(207,168,74,.28); }
