/* augh yahh! -- the lobby side of round two. Loaded after style.css on the
   lobby pages. Same house style: dark ground, neon glow, lime for anything
   open to strangers, pink for a report, amber for a warning. */

/* ====================== the list of five lobbies ====================== */

.rooms {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  text-align: left;
}
.rm {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
  border: 1px solid rgba(198,255,61,.35);
  border-radius: 7px;
  background: rgba(198,255,61,.03);
  padding: .65rem .75rem;
  text-decoration: none;
  color: inherit;
}
.rm:hover { background: rgba(198,255,61,.07); }
.rm:active { transform: translateY(1px); }
.rm .n {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lime);
  text-shadow: 0 0 10px rgba(198,255,61,.5);
}
.rm .d { font-size: .8rem; color: var(--text-3); }
.rm .c {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--text-2);
  white-space: nowrap;
  flex: 0 0 auto;
}
.rm.hot .c { color: var(--green); text-shadow: 0 0 10px rgba(59,255,158,.45); }

/* =========================== the top bar ============================= */
/* Everything on one line at 390 px: lobby name and count, your name and
   how long it is yours, Who, Log out. The count and the buttons never
   wrap; if anything has to give, it is the name, and the time left stays. */

.lobby .roomtop {
  flex-wrap: nowrap;
  gap: .4rem;
  font-size: .62rem;
  letter-spacing: .06em;
}
.lobby .roomtop .cnt { flex: 0 0 auto; white-space: nowrap; }
.lobby .roomtop button {
  flex: 0 0 auto;
  white-space: nowrap;
  letter-spacing: .06em;
  padding: .3rem .5rem;
}
.lobby .me-chip {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .3rem;
  font-size: .6rem;
  overflow: hidden;
}
.lobby .me-chip .me-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lobby .me-chip .me-left { flex: 0 0 auto; white-space: nowrap; }

/* ============================ reporting ============================== */

/* A held finger must not select the words or bring up the phone's own menu. */
.line {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: .25rem .4rem;
}
.line.held {
  border-color: rgba(255,61,166,.45);
  background: rgba(255,61,166,.05);
  box-shadow: 0 0 14px -4px rgba(255,61,166,.5);
}

.report-wrap {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem 1rem calc(4.5rem + env(safe-area-inset-bottom));
  background: rgba(5,7,12,.7);
}
.report {
  width: 100%;
  max-width: 26rem;
  border: 1px solid rgba(255,61,166,.45);
  border-radius: 8px;
  background: var(--panel-2);
  box-shadow: 0 0 22px -6px rgba(255,61,166,.5);
  padding: .9rem .9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.report-title {
  margin: 0;
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--pink);
  text-shadow: 0 0 12px rgba(255,61,166,.5);
  overflow-wrap: anywhere;   /* the name is shown as typed, however long */
}
.report-text { margin: 0; font-size: .86rem; line-height: 1.45; color: var(--text-2); }
.btn.report-go {
  background: transparent;
  color: var(--pink);
  border-color: rgba(255,61,166,.5);
  box-shadow: none;
  text-shadow: 0 0 10px rgba(255,61,166,.4);
}
.btn.report-go:hover { background: rgba(255,61,166,.08); filter: none; }
.btn.report-no {
  background: transparent;
  color: var(--text-2);
  border-color: var(--line);
  box-shadow: none;
  font-weight: 500;
}
.btn.report-no:hover { background: rgba(255,255,255,.04); filter: none; }

/* ======================= put it on your phone ======================== */

.homescreen {
  border: 1px solid rgba(33,230,255,.28);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 0 22px -8px rgba(33,230,255,.5);
  padding: .95rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  text-align: left;
}
.homescreen .icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 1px solid rgba(33,230,255,.5);
  box-shadow: 0 0 22px -4px rgba(33,230,255,.7);
  display: block;
}
.homescreen .icon-row { display: flex; align-items: center; gap: .8rem; }
.homescreen .icon-note { margin: 0; font-size: .82rem; color: var(--text-2); }
.hint {
  border: 1px solid rgba(33,230,255,.3);
  border-radius: 7px;
  padding: .55rem .65rem;
  font-size: .82rem;
  color: var(--text-2);
}
.hint b { color: var(--cyan); font-weight: 600; }
.homescreen .btn { margin-top: .1rem; }

/* Opened from the home screen, it is the app now: the box that says how to
   put it on your phone has done its job and stays out of the way. */
@media (display-mode: standalone) {
  .homescreen { display: none; }
}
