/* Helpdesk Rush — Reonex Games
 * Structural language shared with the rest of the set.
 * Palette: Lumo Green #00CE58, Pewter #63666B, Putty #FAFAF5.
 * Red and amber appear only as SLA status, never as branding. */

:root {
  --lumo: #00CE58;
  --lumo-dim: #00a246;
  --lumo-deep: #04361f;
  --pewter: #63666B;
  --pewter-lift: #9AA0A6;
  --putty: #FAFAF5;

  --ink: #060A08;
  --ink-mid: #0B1410;
  --ink-lift: #101C16;

  --sla-ok: #00CE58;
  --sla-warn: #FFB020;
  --sla-bad: #FF4242;

  --glass: rgba(250, 250, 245, 0.05);
  --glass-border: rgba(0, 206, 88, 0.26);
  --hair: rgba(250, 250, 245, 0.08);

  --font-display: "Orbitron", "Rajdhani", sans-serif;
  --font-body: "Rajdhani", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--putty);
  background: var(--ink);
}

.scene {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 206, 88, 0.13), transparent 62%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(99, 102, 107, 0.16), transparent 72%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-mid) 55%, var(--ink) 100%);
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 206, 88, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 206, 88, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
  animation: drift 30s linear infinite;
  pointer-events: none;
}

@keyframes drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 42px 84px, 84px 42px; }
}

.bg-glow {
  position: absolute;
  top: -22%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0, 206, 88, 0.12), transparent 65%);
  pointer-events: none;
  filter: blur(10px);
}

/* ---- Header ---- */

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px clamp(12px, 3vw, 48px) 6px;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-logo {
  height: 40px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(0, 206, 88, 0.3);
}

/* Until the real logo asset lands */
.brand-logo.logo-fallback {
  width: 40px;
  height: 40px;
  box-shadow: none;
  border: 1px dashed var(--glass-border);
  background: rgba(0, 206, 88, 0.07);
}

.brand-title { display: flex; flex-direction: column; line-height: 1.1; }

.brand-game {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(16px, 2vw, 26px);
  letter-spacing: 3px;
  background: linear-gradient(90deg, var(--putty), var(--lumo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-tag {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(250, 250, 245, 0.45);
}

.stat-pills { display: flex; gap: 8px; }

.pill {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}

.pill-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(250, 250, 245, 0.48);
}

.pill-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--lumo);
  text-shadow: 0 0 12px rgba(0, 206, 88, 0.55);
  transition: transform 0.12s ease;
}

.pill-value.bump { transform: scale(1.22); }

.pill-breach { border-color: rgba(255, 66, 66, 0.3); }
.pill-breach .pill-value { color: var(--sla-bad); text-shadow: 0 0 12px rgba(255, 66, 66, 0.5); }

.breach-pips { display: flex; gap: 3px; margin-top: 3px; }
.breach-pips i {
  width: 7px; height: 3px; border-radius: 2px;
  background: rgba(250, 250, 245, 0.16);
}
.breach-pips i.on { background: var(--sla-bad); box-shadow: 0 0 6px rgba(255, 66, 66, 0.8); }

/* ---- Stage ---- */

.stage {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(150px, 230px) minmax(0, 1fr) minmax(150px, 230px);
  align-items: stretch;
  justify-content: center;
  gap: clamp(14px, 2.5vw, 44px);
  padding: 6px clamp(10px, 3vw, 48px);
  min-height: 0;
}

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--hair);
  backdrop-filter: blur(6px);
  align-self: center;
  max-height: 100%;
  min-height: 0;
}

.side-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--lumo);
}

.leaderboard, .log {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  min-height: 0;
  overflow-y: auto;
}

.log { gap: 4px; font-size: 12px; max-height: 240px; }

.log-row {
  display: flex;
  gap: 7px;
  align-items: baseline;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(250, 250, 245, 0.03);
  color: rgba(250, 250, 245, 0.72);
  line-height: 1.25;
}
.log-row b { font-weight: 700; flex: 0 0 auto; font-family: var(--font-display); font-size: 10px; }
.log-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-row.good b { color: var(--lumo); }
.log-row.part b { color: var(--sla-warn); }
.log-row.bad  b { color: var(--sla-bad); }

.lb-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 5px 6px;
  border-radius: 6px;
  color: rgba(250, 250, 245, 0.75);
}
.lb-row:nth-child(odd) { background: rgba(250, 250, 245, 0.03); }
.lb-row.lb-you {
  background: rgba(0, 206, 88, 0.13);
  color: var(--putty);
  box-shadow: inset 0 0 0 1px rgba(0, 206, 88, 0.35);
}
.lb-rank { font-family: var(--font-display); font-size: 11px; color: var(--lumo); }
.lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lb-score { font-family: var(--font-display); font-weight: 700; color: var(--putty); }
.lb-empty { font-size: 12px; color: rgba(250, 250, 245, 0.42); padding: 4px 2px; }

.sys-block { margin-top: auto; padding-top: 10px; }

.sys-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(250, 250, 245, 0.58);
  border-top: 1px solid var(--hair);
  padding-top: 8px;
  margin-top: 8px;
}
.sys-row:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.sys-row span:last-child { color: var(--putty); font-weight: 600; }

.mini-btn {
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 206, 88, 0.1);
  color: var(--lumo);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 1px;
  cursor: pointer;
}

/* ---- Board ---- */

.board-frame {
  position: relative;
  width: min(100%, 760px);
  justify-self: center;
  padding: 10px;
  display: flex;
  min-height: 0;
}

.board-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid var(--lumo);
  opacity: 0.8;
  filter: drop-shadow(0 0 6px rgba(0, 206, 88, 0.65));
  pointer-events: none;
  z-index: 3;
}
.board-corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.board-corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.board-corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.board-corner.br { bottom: 0; right: 0; border-left: none; border-top: none; }

.board-inner {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 206, 88, 0.1), transparent 62%), var(--ink-mid);
  border: 1px solid rgba(0, 206, 88, 0.28);
  box-shadow:
    0 0 0 1px rgba(99, 102, 107, 0.25),
    0 30px 80px rgba(0, 0, 0, 0.6),
    inset 0 0 60px rgba(0, 206, 88, 0.05);
  overflow: hidden;
  touch-action: none;
}

/* ---- Incident banner ---- */

.incident-banner {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 7px 12px;
  background: linear-gradient(90deg, rgba(255, 66, 66, 0.18), rgba(255, 176, 32, 0.2), rgba(255, 66, 66, 0.18));
  border-bottom: 1px solid rgba(255, 176, 32, 0.45);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sla-warn);
  text-align: center;
  transform: translateY(-110%);
  transition: transform 0.25s ease;
  pointer-events: none;
}
.incident-banner.show { transform: translateY(0); }

.incident-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sla-bad);
  box-shadow: 0 0 8px rgba(255, 66, 66, 0.9);
  animation: pulse 0.9s ease-in-out infinite;
  flex: 0 0 auto;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ---- Inbox ---- */

.inbox-head {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 14px 6px;
  border-bottom: 1px solid var(--hair);
}

.inbox-title {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--lumo);
}

.inbox-queue {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(250, 250, 245, 0.4);
  transition: color 0.2s ease;
}
.inbox-queue.busy { color: var(--sla-warn); }
.inbox-queue.swamped { color: var(--sla-bad); font-weight: 700; }

.inbox {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(var(--rows, 5), minmax(0, 1fr));
  gap: 7px;
  padding: 9px 10px;
  overflow: hidden;
}

.inbox-hint {
  grid-column: 1 / -1;
  align-self: center;
  text-align: center;
  font-size: 13px;
  color: rgba(250, 250, 245, 0.28);
  letter-spacing: 1px;
}

/* ---- Ticket card ---- */

.ticket {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 62px;
  padding: 8px 10px 11px;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(250, 250, 245, 0.07), rgba(250, 250, 245, 0.03));
  border: 1px solid var(--hair);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  touch-action: none;
  cursor: grab;
  overflow: hidden;
  animation: ticket-in 0.22s ease;
}

@keyframes ticket-in {
  from { opacity: 0; transform: translateY(-10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.ticket.sel {
  border-color: var(--lumo);
  box-shadow: 0 0 0 1px var(--lumo), 0 0 18px rgba(0, 206, 88, 0.35);
  background: linear-gradient(180deg, rgba(0, 206, 88, 0.14), rgba(0, 206, 88, 0.05));
}

.ticket.dragging {
  position: fixed;
  z-index: 40;
  width: var(--dw, 300px);
  pointer-events: none;
  cursor: grabbing;
  transform: scale(1.03) rotate(-1.2deg);
  border-color: var(--lumo);
  box-shadow: 0 0 0 1px var(--lumo), 0 14px 34px rgba(0, 0, 0, 0.6), 0 0 26px rgba(0, 206, 88, 0.3);
  animation: none;
}

.ticket.leaving { animation: ticket-out 0.2s ease forwards; pointer-events: none; }
@keyframes ticket-out {
  to { opacity: 0; transform: scale(0.9) translateY(6px); }
}

.ticket.breached { animation: ticket-breach 0.45s ease forwards; pointer-events: none; }
@keyframes ticket-breach {
  0% { transform: none; }
  18% { transform: translateX(-7px); border-color: var(--sla-bad); }
  38% { transform: translateX(7px); }
  58% { transform: translateX(-4px); }
  100% { opacity: 0; transform: scale(0.94); border-color: var(--sla-bad); }
}

.ticket.wrongway { animation: ticket-wrong 0.4s ease; }
@keyframes ticket-wrong {
  0%,100% { transform: none; }
  25% { transform: translateX(-9px) rotate(-2deg); }
  75% { transform: translateX(9px) rotate(2deg); }
}

.t-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.t-prio {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid currentColor;
}
.t-prio.p1 { color: var(--sla-bad); background: rgba(255, 66, 66, 0.12); }
.t-prio.p2 { color: var(--sla-warn); background: rgba(255, 176, 32, 0.1); }
.t-prio.p3 { color: var(--lumo); background: rgba(0, 206, 88, 0.1); }
.t-prio.p4 { color: var(--pewter-lift); background: rgba(154, 160, 166, 0.1); }

.t-title {
  flex: 1 1 auto;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--putty);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.t-meta {
  display: flex;
  gap: 6px;
  align-items: baseline;
  font-size: 11px;
  color: rgba(250, 250, 245, 0.42);
  padding-left: 1px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.t-note { color: var(--sla-warn); font-style: italic; opacity: 0.8; }
.t-note::before { content: '· '; }

.t-sla {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: rgba(250, 250, 245, 0.07);
}
.t-sla i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--sla-ok);
  transform-origin: left center;
  transition: background-color 0.3s linear;
}
.ticket.warn .t-sla i { background: var(--sla-warn); }
.ticket.crit .t-sla i { background: var(--sla-bad); }
.ticket.crit { border-color: rgba(255, 66, 66, 0.55); animation: crit-throb 0.65s ease-in-out infinite; }
@keyframes crit-throb {
  0%,100% { box-shadow: 0 3px 10px rgba(0,0,0,0.35); }
  50% { box-shadow: 0 0 0 1px rgba(255,66,66,0.5), 0 0 18px rgba(255, 66, 66, 0.35); }
}
.ticket.dragging.crit { animation: none; }

/* ---- Lane dock ---- */

.lane-dock {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  padding: 8px 10px 12px;
  border-top: 1px solid var(--hair);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
}

.lane {
  grid-column: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 62px;
  padding: 8px 4px;
  border-radius: 11px;
  background: rgba(250, 250, 245, 0.04);
  border: 1px solid var(--lane, var(--pewter));
  color: var(--lane, var(--pewter-lift));
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}
.lane:nth-child(4), .lane:nth-child(5) { grid-column: span 3; }

.lane-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
}
.lane-sub {
  font-size: 10px;
  letter-spacing: 0.6px;
  color: rgba(250, 250, 245, 0.36);
  text-align: center;
}
.lane-key-hint {
  position: absolute;
  top: 4px; right: 6px;
  font-family: var(--font-display);
  font-size: 9px;
  opacity: 0.35;
}

.lane.hot {
  background: color-mix(in srgb, var(--lane) 22%, transparent);
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px var(--lane), 0 0 22px color-mix(in srgb, var(--lane) 45%, transparent);
}
.lane.armed { background: color-mix(in srgb, var(--lane) 10%, transparent); }

.lane.hit-good { animation: lane-good 0.34s ease; }
@keyframes lane-good {
  0% { box-shadow: 0 0 0 2px var(--lumo), 0 0 26px rgba(0, 206, 88, 0.6); background: rgba(0, 206, 88, 0.26); }
  100% { box-shadow: none; }
}
.lane.hit-bad { animation: lane-bad 0.34s ease; }
@keyframes lane-bad {
  0% { box-shadow: 0 0 0 2px var(--sla-bad), 0 0 26px rgba(255, 66, 66, 0.6); background: rgba(255, 66, 66, 0.26); }
  100% { box-shadow: none; }
}

/* ---- Toasts & flash ---- */

.toast-layer {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  overflow: hidden;
}

.toast {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, 0);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  animation: toast-float 0.95s ease-out forwards;
}
.toast.good { color: var(--lumo); }
.toast.part { color: var(--sla-warn); }
.toast.bad  { color: var(--sla-bad); font-size: 17px; }
@keyframes toast-float {
  0% { opacity: 0; transform: translate(-50%, 14px) scale(0.85); }
  22% { opacity: 1; transform: translate(-50%, 0) scale(1.06); }
  100% { opacity: 0; transform: translate(-50%, -52px) scale(1); }
}

.toast.level {
  color: var(--putty);
  font-size: 13px;
  letter-spacing: 3px;
  top: 32%;
}

.breach-flash {
  position: absolute;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 66, 66, 0) 35%, rgba(255, 66, 66, 0.45) 100%);
  opacity: 0;
}
.breach-flash.go { animation: flash 0.5s ease-out; }
@keyframes flash {
  0% { opacity: 0; }
  12% { opacity: 1; }
  100% { opacity: 0; }
}
.board-inner.shake { animation: board-shake 0.4s ease; }
@keyframes board-shake {
  0%,100% { transform: none; }
  20% { transform: translate(-5px, 3px); }
  45% { transform: translate(5px, -3px); }
  70% { transform: translate(-3px, 1px); }
}

/* ---- Overlay ---- */

.overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 18px 16px;
  text-align: center;
  background: rgba(6, 10, 8, 0.9);
  backdrop-filter: blur(6px);
  overflow-y: auto;
}
.overlay.hidden { display: none; }

.overlay-logo { height: 32px; width: auto; margin-bottom: 2px; opacity: 0.9; }

.overlay-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 5vw, 42px);
  letter-spacing: 5px;
  background: linear-gradient(90deg, var(--lumo), var(--putty), var(--pewter-lift));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(0, 206, 88, 0.3);
}

.overlay-msg {
  margin: 0;
  font-size: 14px;
  color: rgba(250, 250, 245, 0.72);
  white-space: pre-line;
  max-width: 330px;
  line-height: 1.55;
}

.overlay-note {
  margin: 2px 0 0;
  font-size: 11.5px;
  letter-spacing: 0.5px;
  color: rgba(250, 250, 245, 0.42);
  min-height: 14px;
}

.lane-key {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  max-width: 340px;
  margin: 2px 0;
}
.lane-key b {
  font-family: var(--font-display);
  font-size: 9.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-weight: 700;
}

.overlay-btn {
  margin-top: 4px;
  padding: 11px 30px;
  border-radius: 999px;
  border: 1px solid var(--lumo);
  background: linear-gradient(90deg, rgba(0, 206, 88, 0.2), rgba(99, 102, 107, 0.2));
  color: var(--putty);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 206, 88, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.overlay-btn:hover { transform: translateY(-1px); box-shadow: 0 0 30px rgba(0, 206, 88, 0.45); }
.overlay-btn:active { transform: translateY(1px); }

.name-field { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 2px; }
.name-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(250, 250, 245, 0.42);
}
.name-input {
  width: 220px;
  max-width: 70vw;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(250, 250, 245, 0.06);
  color: var(--putty);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  cursor: text;
  user-select: text;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.name-input::placeholder { color: rgba(250, 250, 245, 0.32); font-weight: 500; }
.name-input:focus { border-color: var(--lumo); box-shadow: 0 0 16px rgba(0, 206, 88, 0.3); }
.name-input.shake { animation: shake 0.35s ease; border-color: var(--sla-bad); }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.overlay-leaderboard {
  width: 100%;
  max-width: 270px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  max-height: 132px;
  overflow-y: auto;
}

/* ---- Footer ---- */

.footer {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(250, 250, 245, 0.3);
  text-align: center;
}
.footer .dot { color: var(--lumo); }

/* ---- Responsive ---- */

/* Desktop gets two columns of tickets and a roomier board */
@media (min-width: 901px) {
  .inbox { grid-template-columns: 1fr 1fr; }
  .board-frame { width: min(100%, 720px); }
  .ticket { min-height: 70px; }
}

@media (max-width: 900px) {
  .side-panel { display: none; }
  .stage { grid-template-columns: 1fr; padding-left: 8px; padding-right: 8px; }
  .board-frame { width: 100%; padding: 8px; }
}

@media (max-width: 480px) {
  .topbar { padding: 12px 10px 4px; gap: 8px; }
  .brand-tag { display: none; }
  .brand-logo, .brand-logo.logo-fallback { height: 30px; width: 30px; }
  .brand-game { font-size: 15px; letter-spacing: 2px; }
  .stat-pills { gap: 5px; }
  .pill { min-width: 46px; padding: 4px 7px; }
  .pill-label { font-size: 9px; letter-spacing: 1px; }
  .pill-value { font-size: 15px; }
  .breach-pips i { width: 5px; }
  .footer { font-size: 9px; letter-spacing: 1px; gap: 5px; }
  .t-title { font-size: 14px; }
  .lane { min-height: 58px; }
  .lane-name { font-size: 11px; letter-spacing: 1px; }
  .lane-sub { font-size: 9px; }
  .overlay-msg { font-size: 13px; }
}

/* Short phones: trim the fat so the dock stays thumb-reachable */
@media (max-height: 700px) and (max-width: 900px) {
  .footer { display: none; }
  .ticket { min-height: 54px; padding: 6px 9px 10px; }
  .inbox { gap: 6px; padding: 7px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-grid, .incident-dot, .ticket.crit { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
