/* styles/realtime-styles/realtime-connecting.css
   Full-page connecting screen for ?room= links — premium thin version
*/

.rt-conn{
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #fff;

  display: none;
  place-items: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.rt-conn.is-on{
  display: grid;
  opacity: 1;
  pointer-events: auto;
}

.rt-conn.is-off{
  opacity: 0;
  pointer-events: none;
}

.rt-conn__center{
  text-align: center;
  padding: 28px;
}

.rt-conn__wheelwrap{
  width: 108px;
  height: 108px;
  margin: 0 auto 14px;
  position: relative;
}

/* premium thin needle pointer */
.rt-conn__pointer{
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 18px;
  background: #0b0f19; /* near-black */
  opacity: .75;
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
  border-radius: 1px;
}

/* the wheel itself: thin ring + hairline details */
.rt-conn__wheel{
  width: 100%;
  height: 100%;
  border-radius: 999px;
  position: relative;

  /* thin ring */
  background: #fff;
  box-shadow:
    0 14px 44px rgba(17, 24, 39, 0.08),
    0 2px 10px rgba(17, 24, 39, 0.08);

  animation: rtWheelSpin 1.15s linear infinite;
}

/* ring stroke + subtle inner stroke */
.rt-conn__wheel::before{
  content:"";
  position:absolute;
  inset: 8px;
  border-radius: 999px;
  background: transparent;

  /* hairline ring */
  box-shadow:
    inset 0 0 0 1px rgba(17,24,39,.20),
    inset 0 0 0 9px rgba(17,24,39,.03); /* soft inner wash */
}

/* spokes: ultra thin lines */
.rt-conn__wheel::after{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: 999px;

  /* 12 spokes, super subtle */
  background:
    repeating-conic-gradient(
      from -10deg,
      rgba(17,24,39,.12) 0deg 0.6deg,
      rgba(0,0,0,0) 0.6deg 30deg
    );

  /* fade spokes toward center, keep outer crisp */
  -webkit-mask: radial-gradient(circle, transparent 46%, #000 66%);
          mask: radial-gradient(circle, transparent 46%, #000 66%);
}

/* tiny center hub dot */
.rt-conn__hub{
  position:absolute;
  inset: 0;
  display:grid;
  place-items:center;
  pointer-events:none;
}
.rt-conn__hub::before{
  content:"";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(17,24,39,.55);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

@keyframes rtWheelSpin{
  to{ transform: rotate(360deg); }
}

/* typography: thinner + premium */
.rt-conn__title{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: #0b0f19;
  line-height: 1.15;
}

/* tiny subtle dots */
.rt-conn__dots i{
  display:inline-block;
  width: 4px;
  height: 4px;
  margin-left: 5px;
  border-radius: 999px;
  background: #0b0f19;
  opacity: .18;
  transform: translateY(-1px);
}

.rt-conn__dots i:nth-child(1){ animation: rtDot 0.95s infinite; }
.rt-conn__dots i:nth-child(2){ animation: rtDot 0.95s infinite .18s; }
.rt-conn__dots i:nth-child(3){ animation: rtDot 0.95s infinite .36s; }

@keyframes rtDot{
  0%,100%{ opacity:.18; transform: translateY(-1px); }
  50%    { opacity:.70; transform: translateY(-2px); }
}

.rt-conn__sub{
  margin-top: 8px;
  font-size: 13px;
  font-weight: 450;
  letter-spacing: -0.01em;
  color: rgba(17,24,39,.55);
}
