:root {
  --nc-room-red: #f20d1d;
  --nc-room-bg: #0b0b0d;
  --nc-room-panel: #121216;
  --nc-room-line: #303039;
  --nc-room-muted: #a0a0aa;
}

.nc-room-launcher {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  height: 36px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #b5b5bd;
  background: transparent;
  font: 700 12px/1 Inter, sans-serif;
  letter-spacing: 0;
  cursor: pointer;
}

.nc-room-launcher-navbar {
  position: static;
  z-index: auto;
  order: -1;
}

.nc-room-launcher-floating {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 11000;
  height: 40px;
  padding: 0 13px;
  border-color: #4a2026;
  color: #fff;
  background: rgba(13, 13, 16, .94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .34);
}

.nc-room-launcher-pending {
  display: none;
}

.nc-room-launcher:hover,
.nc-room-launcher:focus-visible {
  border-color: var(--nc-room-red);
  color: #fff;
  background: rgba(255, 255, 255, .06);
  outline: 2px solid rgba(242, 13, 29, .24);
}

.nc-room-launcher-mark {
  display: grid;
  place-items: center;
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  color: #fff;
  background: var(--nc-room-red);
  font-size: 10px;
}

.nc-room-active .nc-room-launcher-mark::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  margin: -20px 0 0 20px;
  border: 2px solid #0b0b0d;
  border-radius: 50%;
  background: #35d875;
}

.nc-room-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, .76);
  backdrop-filter: blur(10px);
}

.nc-room-dialog {
  width: min(520px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid var(--nc-room-line);
  border-radius: 8px;
  background: var(--nc-room-panel);
  color: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .62);
}

.nc-room-head,
.nc-room-section,
.nc-room-footer {
  padding: 20px 22px;
}

.nc-room-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--nc-room-line);
}

.nc-room-head h2,
.nc-room-section h3 {
  margin: 0;
  letter-spacing: 0;
}

.nc-room-head h2 { font-size: 20px; }
.nc-room-section h3 { font-size: 14px; }

.nc-room-close {
  width: 34px;
  height: 34px;
  border: 0;
  color: #bbb;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.nc-room-section + .nc-room-section {
  border-top: 1px solid var(--nc-room-line);
}

.nc-room-copy,
.nc-room-status,
.nc-room-hint {
  margin: 8px 0 0;
  color: var(--nc-room-muted);
  font-size: 13px;
  line-height: 1.5;
}

.nc-room-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 14px;
}

.nc-room-code {
  min-width: 0;
  height: 52px;
  padding: 0 14px;
  border: 1px solid #3b3b45;
  border-radius: 6px;
  outline: none;
  color: #fff;
  background: #09090b;
  font: 800 23px/1 Inter, sans-serif;
  letter-spacing: 6px;
  text-align: center;
  text-transform: uppercase;
}

.nc-room-code:focus {
  border-color: var(--nc-room-red);
  box-shadow: 0 0 0 3px rgba(242, 13, 29, .14);
}

.nc-room-btn {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid #45454f;
  border-radius: 6px;
  color: #fff;
  background: #222228;
  font: 700 13px/1 Inter, sans-serif;
  letter-spacing: 0;
  cursor: pointer;
}

.nc-room-btn:hover,
.nc-room-btn:focus-visible {
  border-color: #747480;
  outline: none;
}

.nc-room-btn-primary {
  border-color: var(--nc-room-red);
  background: var(--nc-room-red);
}

.nc-room-btn-danger {
  border-color: #6b252c;
  color: #ff8d96;
  background: transparent;
}

.nc-room-btn:disabled {
  opacity: .45;
  cursor: wait;
}

.nc-room-create {
  width: 100%;
  margin-top: 14px;
}

.nc-room-live-code {
  margin: 14px 0 5px;
  color: #fff;
  font-size: 34px;
  font-weight: 850;
  letter-spacing: 8px;
}

.nc-room-members {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.nc-room-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 11px;
  border-left: 2px solid #3b3b43;
  background: #18181d;
  font-size: 13px;
}

.nc-room-member[data-connected="true"] { border-left-color: #35d875; }
.nc-room-member-role { color: var(--nc-room-muted); font-size: 11px; }

.nc-room-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--nc-room-line);
}

.nc-room-player-badge {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 11000;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #3a3a43;
  border-radius: 6px;
  color: #fff;
  background: rgba(10, 10, 12, .9);
  transform: translateX(-50%);
  font: 650 12px/1 Inter, sans-serif;
  pointer-events: none;
}

.nc-room-player-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35d875;
}

@media (max-width: 700px) {
  .nc-room-launcher { padding: 0 7px; }
  .nc-room-launcher-floating { right: 12px; top: 12px; padding: 0 10px; }
  .nc-room-launcher-label { display: none; }
  .nc-room-head, .nc-room-section, .nc-room-footer { padding: 17px; }
  .nc-room-code-row { grid-template-columns: 1fr; }
}
