/* public/css/rankrush-lobby.css */

/* Lobby Screen (Open middle stage so Subway artwork shines through) */
.lobby-card {
  flex: 1;
  min-height: 0;
  background: transparent;
  border: none;
  padding: 4px 0 calc(8px + var(--app-height, 100dvh) * 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-shadow: none;
}

.lobby-hero {
  align-self: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 56px;
  background: rgba(13, 16, 22, 0.84);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  box-shadow: 0 0 0 3px rgba(13, 16, 22, 0.78), 0 0 0 4.5px rgba(255, 255, 255, 0.16), 0 8px 24px rgba(0, 0, 0, 0.45);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* Phone only: push the title box ~9% of screen height down */
@media (max-width: 767px) {
  .lobby-hero {
    margin-top: calc(var(--app-height, 100dvh) * 0.09);
  }
}

.lobby-controls {
  width: 72%;
  align-self: center;
  background: rgba(17, 19, 23, 0.16);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.lobby-kicker {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: var(--accent);
}

.lobby-title {
  font-size: 2.65rem;
  font-weight: 800;
  letter-spacing: -0.7px;
  color: var(--text);
  line-height: 1.04;
}

.lobby-sub {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.38;
  max-width: 340px;
}

/* NYC Subway Vignelli Enamel Sign for Top Players of the Day */
.nyc-sign {
  width: 100%;
  max-width: 440px;
  margin-top: 6px;
  background: #08080a;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 3px solid #ffffff;
  border-radius: 4px;
  padding: 6px 10px 7px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.nyc-sign-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding-bottom: 3px;
}

.nyc-sign-title {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #e5e7eb;
  text-transform: uppercase;
  white-space: nowrap;
}

.nyc-tabs {
  display: inline-flex;
  gap: 3px;
}

.nyc-tab {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  color: #9ca3af;
  font-family: inherit;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 6px;
  cursor: pointer;
}

.nyc-tab.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #08080a;
}

.nyc-sign-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  overflow: hidden;
}

.nyc-sign-list.vertical {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

/* Leaderboard score histogram */
.rr-hist {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 8px 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

.rr-hist-title {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}

.rr-hist-mock {
  color: var(--gold);
}

.rr-hist-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 84px;
}

.rr-hist-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
}

.rr-hist-count {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--muted);
}

.rr-hist-bar {
  width: 100%;
  min-height: 2px;
  background: #2c5282;
  border-top: 2px solid #60a5fa;
  border-radius: 1px;
}

.rr-hist-col.is-you .rr-hist-bar {
  background: #b45309;
  border-top-color: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.35);
}

.rr-hist-col.is-you .rr-hist-count {
  color: #fde68a;
}

.rr-hist-you {
  font-size: 0.48rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  color: #08080a;
  background: #fbbf24;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1.1;
}

.rr-hist-you-summary {
  color: #fde68a;
}

.rr-hist-labels {
  display: flex;
  gap: 4px;
}

.rr-hist-labels span {
  flex: 1;
  text-align: center;
  font-size: 0.54rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.nyc-sign-list.vertical .nyc-leader-item {
  justify-content: space-between;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  font-size: 0.82rem;
}

.nyc-leader-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  white-space: nowrap;
}

.mta-bullet {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
}

.mta-1 { background: #0039A6; }
.mta-2 { background: #EE352E; }
.mta-3 { background: #FCCC0A; color: #000000; }
.mta-4 { background: #00933C; }
.mta-5 { background: #FF6319; }

.nyc-leader-pts {
  color: #9ca3af;
  font-weight: 600;
}

.daily-teaser {
  background: rgba(19, 22, 28, 0.24);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid rgba(234, 179, 8, 0.38);
  border-radius: 12px;
  padding: 8px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-cta {
  width: 100%;
  padding: 11px 12px;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
}

.party-drawer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid var(--border);
  border-radius: 2px;
}

.lobby-meta-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.compact-input {
  padding: 9px 11px;
  font-size: 0.84rem;
}

.rr-input {
  width: 100%;
  background: #13151a;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  padding: 11px 14px;
  outline: none;
}

.rr-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.25);
}

.btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rr-btn {
  border: 2px solid var(--btn-edge, rgba(148, 163, 184, 0.45));
  border-radius: 2px;
  padding: 12px 14px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 0 var(--btn-ledge, #090d16);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.12s ease, opacity 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.rr-btn:hover:not(:disabled) { filter: brightness(1.1); }
.rr-btn:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 1px 0 var(--btn-ledge, #090d16);
}
.rr-btn:focus-visible,
.rr-pill:focus-visible,
.daily-teaser:focus-visible,
.lobby-controls a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.25);
}
.rr-btn.primary {
  background: #1d3b6b;
  color: #dbeafe;
  --btn-edge: #2c5282;
  --btn-ledge: #0f2140;
}
.rr-btn.emerald {
  background: #134e2e;
  color: #d1fae5;
  --btn-edge: #1e6b43;
  --btn-ledge: #082917;
}
.rr-btn.gold {
  background: #6b3410;
  color: #fde68a;
  --btn-edge: #924a18;
  --btn-ledge: #3d1c06;
}
.rr-btn.ghost {
  background: rgba(15, 20, 30, 0.92);
  color: #94a3b8;
  --btn-edge: rgba(148, 163, 184, 0.18);
  --btn-ledge: #05080f;
}

/* Translucent splash page buttons so the subway background shows through */
.lobby-controls .rr-btn {
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.lobby-controls .rr-btn.primary {
  background: rgba(29, 59, 107, 0.32);
}
.lobby-controls .rr-btn.emerald {
  background: rgba(19, 78, 46, 0.32);
}
.lobby-controls .rr-btn.gold {
  background: rgba(107, 52, 16, 0.32);
}
.lobby-controls .rr-btn.ghost {
  background: rgba(15, 20, 30, 0.22);
}

.join-row {
  display: flex;
  gap: 8px;
}

