/* ══ REYES CITY RP · Player UI ═══════════════════════════════════════════════
   Pure black and white. Premium, technical, minimal. No colour except a
   single red reserved for destructive and banned states.
   Two rules hold the whole system together:
     · Borderless · separation comes from spacing, elevation and shadow.
     · Surfaces sit ON the page (soft lift); controls sit IN it (recessed well). */

:root {
  /* ── Surfaces: pure black, neutral greys ──────────────────── */
  --void:  #000000;
  --bg:    #000000;
  --s1:    #0B0B0B;
  --s2:    #131313;
  --s3:    #1D1D1D;
  --well:  #050505;
  --s-hi:  rgba(255, 255, 255, 0.05);

  /* ── White scale ──────────────────────────────────────────── */
  --w-100: #FFFFFF;
  --w-200: #EDEDED;
  --w-300: #C9C9C9;
  --w:     #9E9E9E;
  --w-500: #6E6E6E;
  --w-600: #4A4A4A;
  --w-800: #262626;
  --w-soft: rgba(255, 255, 255, 0.08);
  --metal: linear-gradient(180deg, #FFFFFF 0%, #E6E6E6 52%, #BDBDBD 100%);
  --metal-edge: linear-gradient(180deg, #FFFFFF 0%, #F0F0F0 46%, #D2D2D2 100%);

  /* ── Ink ──────────────────────────────────────────────────── */
  --text:      #F5F5F5;
  --text-dim:  #8A8A8A;
  --text-faint:#4D4D4D;

  /* ── Signal: monochrome, red kept only for danger ─────────── */
  --green:      #FFFFFF;
  --green-soft: rgba(255, 255, 255, 0.08);
  --red:        #E04B4B;
  --red-soft:   rgba(224, 75, 75, 0.10);

  /* ── Depth ────────────────────────────────────────────────── */
  --shadow-1: 0 1px 2px rgba(0,0,0,.8), 0 8px 26px rgba(0,0,0,.6);
  --shadow-2: 0 2px 4px rgba(0,0,0,.85), 0 22px 60px rgba(0,0,0,.75);
  --shadow-ice: 0 12px 44px rgba(255,255,255,.06);
  --lift: inset 0 1px 0 var(--s-hi);
  /* recessed control well: light falls from above into the surface */
  --well-in: inset 0 2px 6px rgba(0,0,0,.9), inset 0 1px 1px rgba(0,0,0,1),
             inset 0 -1px 0 rgba(255,255,255,.05);
  --focus-ring: 0 0 0 2px rgba(255,255,255,.45);

  /* ── Type ─────────────────────────────────────────────────── */
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  --radius:    16px;
  --radius-sm: 11px;
  --radius-xs: 8px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hidden { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: rgba(255,255,255,.3); color: #fff; }

/* ══ Ambient field ═════════════════════════════════════════════════════════ */
.bg-grid {
  position: fixed; inset: -1px; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 30px 30px, 30px 30px, 240px 240px, 240px 240px;
  mask-image: radial-gradient(ellipse 90% 62% at 50% 20%, #000 5%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 62% at 50% 20%, #000 5%, transparent 78%);
}
.bg-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 38% at 50% -12%, rgba(255,255,255,.14), transparent 70%),
    radial-gradient(ellipse 38% 28% at 88% 6%,   rgba(255,255,255,.06), transparent 70%),
    radial-gradient(ellipse 46% 34% at 6% 76%,   rgba(255,255,255,.05), transparent 70%),
    radial-gradient(ellipse 100% 58% at 50% 112%, rgba(2,3,4,.92), transparent 60%);
}

/* ══ Type utilities ════════════════════════════════════════════════════════ */
.mono-label {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-faint);
}
.ice { color: var(--w-100); }
.gold { color: var(--w-200); }   /* legacy hook, now platinum */
.metal {
  background: var(--metal);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.num { font-variant-numeric: tabular-nums; }

/* ══ Brand mark ════════════════════════════════════════════════════════════
   Two prebuilt assets: logo-mark.png (skyline only) for small marks and
   logo.png (full lockup) for the login card. Their starfield background is
   flattened to pure black so they sit on the UI seamlessly. If a file is
   missing the img hides itself and only the wordmark text remains. */
[hidden] { display: none !important; }

.brand-icon {
  display: inline-flex; align-items: center; flex-shrink: 0;
  width: 46px; height: 38px;
}
.brand-mark { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-lockup {
  display: block; width: 168px; max-width: 100%;
  height: auto; margin: 0 auto;
}

/* ══ Navbar ════════════════════════════════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 15px clamp(18px, 5vw, 56px);
  background: linear-gradient(180deg, rgba(7,8,10,.9), rgba(7,8,10,.4) 70%, transparent);
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--metal);
  color: #0A0D10;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  box-shadow: 0 4px 16px rgba(255,255,255,.22), inset 0 1px 0 rgba(255,255,255,.7);
}
.logo-text {
  display: flex; flex-direction: column; line-height: 1.08;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700; letter-spacing: .14em;
}
.logo-rp {
  font-family: var(--font-mono);
  font-size: 8.5px; font-weight: 400; letter-spacing: .36em;
  color: var(--w-500);
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-dim);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-link i { font-size: 10px; opacity: .7; }
.nav-link:hover { color: var(--w-100); background: var(--s2); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.server-badge {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 15px; border-radius: 99px;
  background: var(--s1);
  box-shadow: var(--shadow-1), var(--lift);
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-dim);
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-faint); flex-shrink: 0;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.badge-dot.online {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(255,255,255,.14), 0 0 12px rgba(255,255,255,.75);
  animation: breathe 2.4s ease-in-out infinite;
}
.badge-dot.offline { background: var(--red); box-shadow: 0 0 0 3px rgba(224,75,75,.12); }
@keyframes breathe { 50% { opacity: .45; } }

.nav-user {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 16px 5px 5px; border-radius: 99px;
  background: var(--s1);
  box-shadow: var(--shadow-1), var(--lift);
}
.nav-user img {
  width: 26px; height: 26px; border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.35);
}
.nav-user span { font-size: 12.5px; font-weight: 500; }

/* ══ Pages ═════════════════════════════════════════════════════════════════ */
.page { position: relative; z-index: 5; }

/* ══ Hero ══════════════════════════════════════════════════════════════════ */
.hero {
  max-width: 900px; margin: 0 auto;
  padding: clamp(28px, 6vh, 68px) 24px clamp(44px, 7vh, 72px);
  text-align: center;
}
.hero-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: .4em; text-transform: uppercase;
  color: var(--w-300);
  margin-bottom: 26px;
  animation: rise .7s var(--ease) both;
}
.hero-label::before, .hero-label::after {
  content: ''; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--w-600));
}
.hero-label::after { background: linear-gradient(90deg, var(--w-600), transparent); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(46px, 9.6vw, 106px);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.045em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--w-200);
  animation: rise .7s .06s var(--ease) both;
}
/* second line is drawn as an outline so the two lines read as one mark */
.hero-title .gold,
.hero-title .metal {
  background: none;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .62);
  paint-order: stroke fill;
}
.hero-sub {
  max-width: 520px; margin: 0 auto 34px;
  color: var(--text-dim);
  font-size: 15px; font-weight: 300; line-height: 1.75;
  animation: rise .7s .12s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ── Signed-in profile chip ───────────────────────────────── */
.profile-chip {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 0 auto 30px;
  padding: 10px 22px 10px 10px;
  border-radius: 99px;
  background: var(--s1);
  box-shadow: var(--shadow-1), var(--lift);
  text-align: left;
  animation: rise .7s .1s var(--ease) both;
}
.profile-chip-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,.35), 0 6px 20px rgba(0,0,0,.6);
}
.profile-chip-name {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
}
.profile-chip-meta {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--text-faint); margin-top: 3px;
}

/* ── Telemetry strip ──────────────────────────────────────── */
.server-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 560px; margin: 0 auto;
  padding: 6px;
  border-radius: var(--radius);
  background: var(--s1);
  box-shadow: var(--shadow-2), var(--lift);
  animation: rise .7s .24s var(--ease) both;
}
.stat-card {
  padding: 17px 10px 15px;
  border-radius: var(--radius-sm);
  transition: background .25s var(--ease);
}
.stat-card:hover { background: rgba(255,255,255,.022); }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.4vw, 34px); font-weight: 600;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  background: var(--metal);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 14px rgba(255,255,255,.2));
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--text-faint); margin-top: 7px;
}

/* The CTA sits directly under the subtitle so it lands mid-viewport instead of
   below the stats strip, where short screens pushed it under the fold.
   Stacked, not side by side: the primary button gets its own row so it sits on
   the page's centre line rather than being pushed left by a neighbour. */
.hero-actions {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-bottom: 34px;
  animation: rise .7s .18s var(--ease) both;
}
/* the secondary action reads as a quiet link beneath the CTA */
.hero-actions .btn-ghost {
  background: transparent; box-shadow: none;
  padding: 8px 18px; font-size: 11px; color: var(--text-faint);
}
.hero-actions .btn-ghost:hover { background: transparent; color: var(--w-200); }
/* Signed-in players get one obvious target: a wider button with a slow halo. */
#btnGoQueue, #btnLogin { padding: 18px 52px; font-size: 14px; letter-spacing: .16em; }
#btnGoQueue:not(.hidden) { animation: cta-halo 2.8s ease-in-out infinite; }
@keyframes cta-halo {
  0%, 100% { box-shadow: 0 6px 24px rgba(255,255,255,.18), inset 0 1px 0 rgba(255,255,255,.75); }
  50%      { box-shadow: 0 8px 40px rgba(255,255,255,.42), inset 0 1px 0 rgba(255,255,255,.9); }
}

/* ══ Buttons ═══════════════════════════════════════════════════════════════ */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px;
  border: none; cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: transform .18s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), color .25s var(--ease);
}
.btn i { font-size: 13px; }
.btn:active { transform: translateY(1px) scale(.995); }
.btn.large { padding: 16px 32px; font-size: 13px; }
.btn.small { padding: 9px 17px; font-size: 11px; }

.btn-primary {
  background: var(--metal-edge);
  color: #0A0D10;
  box-shadow: 0 6px 24px rgba(255,255,255,.18), inset 0 1px 0 rgba(255,255,255,.75);
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.6) 48%, transparent 66%);
  transform: translateX(-130%);
  transition: transform .75s var(--ease);
}
.btn-primary:hover { box-shadow: 0 10px 32px rgba(255,255,255,.3), inset 0 1px 0 rgba(255,255,255,.85); }
.btn-primary:hover::after { transform: translateX(130%); }
.btn-primary:disabled { opacity: .5; cursor: wait; }
.btn-primary:disabled::after { display: none; }

.btn-success {
  background: linear-gradient(180deg, #6FE2B4, #2FB483);
  color: #04150D;
  box-shadow: 0 6px 24px rgba(255,255,255,.24), inset 0 1px 0 rgba(255,255,255,.45);
}
.btn-success:hover { filter: brightness(1.06); box-shadow: 0 10px 32px rgba(255,255,255,.32); }

.btn-ghost {
  background: var(--s2); color: var(--text-dim);
  box-shadow: var(--shadow-1), var(--lift);
}
.btn-ghost:hover { color: var(--w-100); background: var(--s3); }

.btn-danger-ghost { background: var(--red-soft); color: var(--red); }
.btn-danger-ghost:hover { background: rgba(224,75,75,.18); }

.btn-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--s2); color: var(--text-dim);
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  box-shadow: var(--lift);
  transition: color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.btn-icon:hover { color: var(--w-100); background: var(--s3); transform: translateY(-1px); }
#btnLogout:hover { color: var(--red); }

.error-msg {
  margin: 24px auto 0; max-width: 460px;
  padding: 13px 18px; border-radius: var(--radius-sm);
  background: var(--red-soft); color: var(--red);
  font-size: 13px; font-family: var(--font-mono);
}

/* ══ Capability cards ══════════════════════════════════════════════════════ */
.info-section {
  max-width: 1040px; margin: 0 auto;
  padding: 20px 24px clamp(50px, 10vh, 96px);
}
.info-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 0 4px 22px;
}
.info-section-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600; letter-spacing: -.025em;
}
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 14px;
}
.info-card {
  position: relative; overflow: hidden;
  background: var(--s1);
  box-shadow: var(--shadow-1), var(--lift);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.info-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(255,255,255,.1), transparent 70%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2), var(--shadow-ice), var(--lift); }
.info-card:hover::before { opacity: 1; }
.info-card > * { position: relative; }
.info-index {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--w-500);
  margin-bottom: 18px;
}
.info-icon {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 13px;
  background: var(--w-soft); color: var(--w-200);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
  margin-bottom: 16px;
}
.info-card h3 {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
  letter-spacing: .01em; text-transform: uppercase;
  margin-bottom: 9px;
}
.info-card p {
  color: var(--text-dim);
  font-size: 13.5px; font-weight: 300; line-height: 1.7;
}

/* ══ Footer ════════════════════════════════════════════════════════════════ */
.site-foot {
  max-width: 1040px; margin: 0 auto;
  padding: 0 28px 44px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--text-faint);
}
.foot-links { display: flex; gap: 8px; flex-wrap: wrap; }
.foot-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: var(--radius-xs);
  background: var(--s1); box-shadow: var(--lift);
  color: var(--text-dim);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.foot-link:hover { color: var(--w-100); background: var(--s2); }

/* ══ Queue console ═════════════════════════════════════════════════════════ */
.queue-container {
  display: grid; grid-template-columns: minmax(0, 1fr);
  align-items: start; gap: 14px;
  max-width: 540px; margin: 0 auto;
  padding: clamp(14px, 3vh, 30px) 20px 64px;
  transition: max-width .35s var(--ease);
}
/* staff sees the queue on the left, the full list on the right */
.queue-container.with-staff {
  max-width: 1080px;
  grid-template-columns: minmax(0, 1fr) 356px;
  gap: 16px;
}
.queue-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.user-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--s1);
  box-shadow: var(--shadow-1), var(--lift);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.user-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,.3), 0 4px 16px rgba(0,0,0,.55);
}
.user-info { flex: 1; min-width: 0; }
.user-name {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-display);
  font-weight: 600; font-size: 14.5px; letter-spacing: -.01em;
}
.user-status-text {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim); margin-top: 3px;
}
.role-badge {
  display: inline-flex; align-items: center;
  padding: 3px 8px; border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 8.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}

/* ── Telemetry rail ───────────────────────────────────────── */
.server-bar {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; padding: 4px;
  background: var(--s1);
  box-shadow: var(--shadow-1), var(--lift);
  border-radius: var(--radius);
}
.server-bar-item {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 6px; border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.server-bar-item i { color: var(--w-500); font-size: 10px; }

/* ── States ───────────────────────────────────────────────── */
.queue-state {
  position: relative; overflow: hidden;
  background: var(--s1);
  box-shadow: var(--shadow-2), var(--lift);
  border-radius: var(--radius);
  padding: clamp(28px, 5vh, 46px) 28px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 15px;
  animation: rise .5s var(--ease) both;
}
.queue-state::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 45% at 50% 0%, rgba(255,255,255,.08), transparent 70%);
}
.queue-state > * { position: relative; }
.queue-state h2 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  letter-spacing: -.01em; text-transform: uppercase;
}
.queue-state p {
  color: var(--text-dim);
  font-size: 13.5px; font-weight: 300; line-height: 1.7; max-width: 380px;
}

.state-icon {
  width: 58px; height: 58px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: var(--s2); color: var(--text-dim);
  box-shadow: var(--lift);
}
.state-icon.gold {
  background: var(--w-soft); color: var(--w-200);
  box-shadow: 0 0 30px rgba(255,255,255,.16), var(--lift);
}
.state-icon.green { background: var(--green-soft); color: var(--green); }
.state-icon.red   { background: var(--red-soft);   color: var(--red); }
.state-icon.pulse { animation: halo 2s infinite; }
@keyframes halo {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.28); }
  70%  { box-shadow: 0 0 0 18px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* ── Position readout ─────────────────────────────────────── */
.position-label {
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: .4em; text-transform: uppercase;
  color: var(--text-dim);
}
.position-number {
  font-family: var(--font-display);
  font-size: clamp(84px, 20vw, 116px);
  font-weight: 700; line-height: .92; letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
  background: var(--metal);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 34px rgba(255,255,255,.28));
  margin: -4px 0 -2px;
}
.position-sub {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-faint);
}

/* recessed track, platinum fill */
.queue-track {
  width: 100%; max-width: 340px; height: 6px;
  border-radius: 99px; overflow: hidden;
  background: var(--well);
  box-shadow: var(--well-in);
}
.queue-track-fill {
  height: 100%; width: 0%;
  border-radius: 99px;
  background: var(--metal-edge);
  box-shadow: 0 0 12px rgba(255,255,255,.5);
  transition: width .8s var(--ease);
}

.queue-meta {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; width: 100%; max-width: 340px;
}
.meta-tile {
  background: var(--well); border-radius: var(--radius-sm);
  padding: 13px 12px;
  box-shadow: var(--well-in);
}
.meta-tile-label {
  font-family: var(--font-mono);
  font-size: 8.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 7px;
}
.meta-tile-value {
  font-family: var(--font-mono);
  font-size: 19px; font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.token-timer-box {
  background: var(--well); border-radius: var(--radius-sm);
  padding: 15px 36px; box-shadow: var(--well-in);
}
.token-timer-label {
  font-family: var(--font-mono);
  font-size: 8.5px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 6px;
}
.token-timer {
  font-family: var(--font-mono);
  font-size: 32px; font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--green);
  text-shadow: 0 0 24px rgba(255,255,255,.4);
}
.token-timer.urgent { color: var(--red); text-shadow: 0 0 24px rgba(224,75,75,.45); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .45; } }

.connect-note {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px; color: var(--text-faint);
}

/* ══ Staff queue (right column) ════════════════════════════════════════════ */
.staff-queue {
  position: sticky; top: 78px;
  background: var(--s1);
  box-shadow: var(--shadow-1), var(--lift);
  border-radius: var(--radius); overflow: hidden;
}
.staff-queue-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 17px 18px 10px;
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--w-500);
}
.staff-queue-count {
  padding: 3px 9px; border-radius: 99px;
  background: var(--well); box-shadow: var(--well-in);
  color: var(--w-200); letter-spacing: .1em;
}
.staff-queue-list {
  padding: 2px 8px 12px;
  max-height: calc(100vh - 190px); min-height: 120px;
  overflow-y: auto;
}
.staff-queue-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: var(--radius-sm);
  font-size: 13px;
  transition: background .18s var(--ease);
}
.staff-queue-item:hover { background: var(--s2); }
.staff-queue-pos {
  font-family: var(--font-mono); font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--w); width: 24px; text-align: right;
}
.staff-queue-item img { width: 26px; height: 26px; border-radius: 50%; }
.staff-queue-name {
  flex: 1; min-width: 0; font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.staff-queue-time {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: .08em; color: var(--text-faint);
}

/* Short viewports (laptops with browser chrome): compress the hero so the
   primary CTA always clears the fold. Players were scrolling past it and
   reporting the site as down. */
@media (max-height: 760px) {
  .hero { padding-top: 18px; padding-bottom: 30px; }
  .hero-label { margin-bottom: 14px; }
  .hero-title { font-size: clamp(36px, 6.4vw, 62px); margin-bottom: 14px; }
  .hero-sub { margin-bottom: 20px; font-size: 14px; }
  .profile-chip { margin-bottom: 18px; padding: 8px 18px 8px 8px; }
  .profile-chip-avatar { width: 38px; height: 38px; }
  .hero-actions { margin-bottom: 22px; }
  #btnGoQueue, #btnLogin { padding: 15px 44px; }
  .stat-card { padding: 13px 10px 11px; }
}

/* ══ Responsive ════════════════════════════════════════════════════════════ */
@media (max-width: 1020px) {
  .queue-container.with-staff { max-width: 560px; grid-template-columns: minmax(0, 1fr); }
  .staff-queue { position: static; }
  .staff-queue-list { max-height: 320px; }
}
@media (max-width: 900px) {
  .nav-link { padding: 8px 10px; font-size: 9px; letter-spacing: .12em; }
  .nav-link i { display: none; }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .navbar { padding: 13px 16px; gap: 10px; }
  .logo-text { font-size: 11.5px; white-space: nowrap; }
  .logo-icon { width: 32px; height: 32px; }
  .server-badge { padding: 7px 12px; font-size: 9px; letter-spacing: .14em; white-space: nowrap; }
  .stat-card { padding: 14px 4px 12px; }
  .stat-label { font-size: 8px; letter-spacing: .18em; }
  .hero-actions .btn-primary { width: 100%; }
  .server-bar { grid-template-columns: 1fr; }
  .queue-meta { grid-template-columns: 1fr; }
  .site-foot { justify-content: center; text-align: center; }
  .profile-chip { width: 100%; justify-content: flex-start; }
}
@media (max-width: 430px) {
  .nav-user span { display: none; }
  .nav-user { padding: 5px; }
  .logo-rp { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ══ Scrollbar ═════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--s3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--w-800); }
