/* ORA-Arena 6-Digit 1-Code WebRTC P2P Bridge Styles */
.ora-rtc-launcher {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(240, 200, 90, 0.55);
  background: linear-gradient(135deg, #1b172b 0%, #2b1f44 100%);
  color: #fbe6a2;
  font-family: 'Pretendard', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.ora-rtc-launcher:hover {
  transform: translateY(-2px);
  border-color: #f6d570;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 16px rgba(240, 200, 90, 0.25);
}
.ora-rtc-launcher.is-connected {
  border-color: #5ee6a0;
  color: #d6ffea;
  background: linear-gradient(135deg, #122923 0%, #173d31 100%);
}
.ora-rtc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f4c95d;
  box-shadow: 0 0 8px #f4c95d;
}
.ora-rtc-launcher.is-connected .ora-rtc-dot {
  background: #48e59b;
  box-shadow: 0 0 8px #48e59b;
}

.ora-rtc-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9600;
  background: rgba(8, 9, 14, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ora-rtc-backdrop[hidden],
.ora-rtc-backdrop [hidden] {
  display: none;
}

.ora-rtc-modal {
  width: min(460px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 222, 130, 0.28);
  background: linear-gradient(180deg, #171522 0%, #100f18 100%);
  color: #f4f2f8;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  font-family: 'Pretendard', system-ui, -apple-system, sans-serif;
  padding: 20px;
  box-sizing: border-box;
}
.ora-rtc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ora-rtc-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #ffe38f;
}
.ora-rtc-close {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #e6e3f0;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.ora-rtc-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.ora-rtc-sub {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #b8b3cc;
}

.ora-rtc-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 14px;
}
.ora-rtc-tab {
  border: 0;
  background: transparent;
  color: #aaa3c2;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.ora-rtc-tab.is-active {
  background: rgba(244, 201, 93, 0.18);
  color: #ffe38f;
}

.ora-rtc-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}
.ora-rtc-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #efeaf9;
}

.ora-rtc-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ora-rtc-code-box {
  flex: 1;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.22em;
  padding: 10px 12px;
  border-radius: 10px;
  background: #0d0c14;
  border: 1px solid rgba(255, 222, 130, 0.35);
  color: #ffe38f;
  user-select: all;
}
.ora-rtc-input {
  flex: 1;
  min-width: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #0d0c14;
  color: #fff;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ora-rtc-input::placeholder {
  letter-spacing: normal;
  text-transform: none;
  font-family: 'Pretendard', system-ui, sans-serif;
  font-weight: 500;
  color: #77718d;
}
.ora-rtc-textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0d0c14;
  color: #eae6f7;
  padding: 8px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  resize: vertical;
  margin-bottom: 8px;
}

.ora-rtc-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #f3f0fb;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.ora-rtc-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
}
.ora-rtc-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.ora-rtc-btn.is-primary {
  border-color: rgba(255, 214, 102, 0.6);
  background: linear-gradient(135deg, #d79e2b 0%, #f1c656 100%);
  color: #191307;
}
.ora-rtc-btn.is-primary:hover:not(:disabled) {
  filter: brightness(1.06);
}
.ora-rtc-btn.is-danger {
  border-color: rgba(235, 98, 98, 0.45);
  background: rgba(220, 74, 74, 0.16);
  color: #ffb3b3;
}
.ora-rtc-btn.is-full {
  width: 100%;
}

.ora-rtc-status {
  margin: 10px 0 0;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 12.5px;
  line-height: 1.45;
  background: rgba(124, 108, 224, 0.14);
  border: 1px solid rgba(154, 140, 245, 0.28);
  color: #ded8ff;
}
.ora-rtc-status.is-ok {
  background: rgba(68, 206, 138, 0.14);
  border-color: rgba(72, 229, 155, 0.35);
  color: #c8ffe3;
}
.ora-rtc-status.is-err {
  background: rgba(229, 86, 86, 0.16);
  border-color: rgba(242, 109, 109, 0.38);
  color: #ffc2c2;
}

.ora-rtc-details {
  margin-top: 10px;
  font-size: 12px;
  color: #a9a2c0;
}
.ora-rtc-details summary {
  cursor: pointer;
  font-weight: 700;
  color: #c9c3de;
  padding: 4px 0;
}
.ora-rtc-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}
.ora-rtc-field label {
  font-size: 12px;
  color: #b7b1ce;
}
.ora-rtc-field input {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0d0c14;
  color: #f4f2f8;
  padding: 7px 10px;
  font-size: 12.5px;
}

.ora-rtc-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.ora-rtc-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #cfc8e6;
}
.ora-rtc-pill.is-live {
  background: rgba(72, 229, 155, 0.18);
  color: #93f7c7;
}
