:root {
  --cyan: #00f0ff;
  --magenta: #ff2bd6;
  --yellow: #ffd24a;
  --bg: #05060f;
  --bg-2: #0a0c1f;
  --text: #cfe9ff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, var(--bg-2), var(--bg) 70%);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  overflow: hidden;
}

#stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#playfield {
  position: relative;
  width: min(100vw, 100vh);
  height: min(100vw, 100vh);
  flex-shrink: 0;
}

canvas#game {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- Overlays ---------- */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  background: rgba(5, 6, 15, 0.6);
  backdrop-filter: blur(3px);
  z-index: 5;
}

#gameover {
  z-index: 7;
}

.hidden {
  display: none !important;
}

html.invite-arrival #menu {
  display: none !important;
}

.menu-overlay {
  justify-content: space-between;
  gap: 0;
  padding: clamp(14px, 3vmin, 28px) clamp(12px, 3vmin, 20px);
}

.menu-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 0;
  width: 100%;
}

.mode-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(360px, 90vw);
}

.mode-btn {
  width: 100%;
  padding: clamp(16px, 3.5vmin, 22px) clamp(18px, 4vmin, 28px);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(14px, 3vmin, 18px);
  letter-spacing: 0.06em;
  text-align: left;
}

.mode-btn-icon {
  flex-shrink: 0;
  width: clamp(28px, 6vmin, 36px);
  height: clamp(28px, 6vmin, 36px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mode-btn-icon svg {
  width: 100%;
  height: 100%;
}

.neon-btn.cyan .mode-btn-icon {
  color: var(--cyan);
  filter: drop-shadow(0 0 5px var(--cyan));
}

.neon-btn.magenta .mode-btn-icon {
  color: var(--magenta);
  filter: drop-shadow(0 0 5px var(--magenta));
}

.mode-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.mode-btn-title {
  font-size: clamp(0.95rem, 2.8vmin, 1.2rem);
  letter-spacing: 0.05em;
}

.mode-btn-desc {
  font-size: clamp(0.62rem, 1.65vmin, 0.78rem);
  opacity: 0.65;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-shadow: none;
}

.sound-toggle {
  cursor: pointer;
  border: 1px solid rgba(207, 233, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.06);
  color: var(--text);
  padding: 8px 14px;
  font: inherit;
  font-size: clamp(0.62rem, 1.7vmin, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-shadow: 0 0 7px rgba(0, 240, 255, 0.6);
  transition: transform 0.12s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.sound-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 240, 255, 0.65);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.sound-toggle[aria-pressed="false"] {
  opacity: 0.62;
  background: rgba(255, 255, 255, 0.035);
  text-shadow: none;
}

/* ---------- Lobby overlay ---------- */
.lobby-overlay {
  gap: 14px;
  padding: clamp(16px, 3vmin, 28px);
  justify-content: flex-start;
  min-height: 100%;
  overflow-y: auto;
}

.lobby-host-tools {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(360px, 90vw);
}

.lobby-btn-icon {
  flex-shrink: 0;
  width: clamp(22px, 5vmin, 28px);
  height: clamp(22px, 5vmin, 28px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lobby-btn-icon svg {
  width: 100%;
  height: 100%;
}

.lobby-copy-link {
  width: 100%;
  padding: clamp(14px, 3vmin, 18px) clamp(18px, 4vmin, 24px);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.5vmin, 14px);
  font-size: clamp(0.85rem, 2.2vmin, 1.05rem);
  letter-spacing: 0.1em;
}

.neon-btn.yellow .lobby-btn-icon-link {
  color: var(--yellow);
  filter: drop-shadow(0 0 5px var(--yellow));
}

.lobby-copy-link.copied .lobby-btn-icon-link {
  display: none;
}

.lobby-copy-link.copied .lobby-btn-icon-check {
  display: flex !important;
  color: #00ffa3;
  filter: drop-shadow(0 0 5px rgba(0, 255, 163, 0.8));
}

.lobby-copy-link.copied {
  border-color: #00ffa3;
  color: #00ffa3;
  text-shadow: 0 0 8px rgba(0, 255, 163, 0.8);
  box-shadow: 0 0 12px rgba(0, 255, 163, 0.55), inset 0 0 10px rgba(0, 255, 163, 0.25);
}

.lobby-start-btn {
  width: 100%;
  padding: clamp(16px, 3.5vmin, 22px) clamp(18px, 4vmin, 28px);
  font-size: clamp(0.95rem, 2.6vmin, 1.15rem);
  letter-spacing: 0.12em;
}

.lobby-primary-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, 90vw);
  margin-top: 4px;
}

.lobby-leave-wrap,
.go-leave-wrap {
  margin-top: auto;
  padding-top: clamp(36px, 9vmin, 72px);
  width: min(360px, 90vw);
}

.lobby-name-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(360px, 90vw);
}

.lobby-name-input {
  width: 100%;
  text-align: center;
}

.lobby-players {
  list-style: none;
  width: min(360px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0;
  padding: 0;
}

.lobby-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  font-size: clamp(0.75rem, 2vmin, 0.9rem);
  letter-spacing: 0.06em;
}

.lobby-player-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lobby-presence-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lobby-player-color, var(--cyan));
  box-shadow:
    0 0 6px var(--lobby-player-color, var(--cyan)),
    0 0 14px var(--lobby-player-color, var(--cyan));
}

.lobby-player.not-ready .lobby-presence-dot {
  opacity: 0.38;
  box-shadow: 0 0 4px var(--lobby-player-color, var(--cyan));
}

.lobby-player-name {
  font-weight: 600;
  color: var(--lobby-player-color, var(--text));
  text-shadow: 0 0 8px var(--lobby-player-color, var(--cyan));
}

.lobby-player.not-ready .lobby-player-name {
  opacity: 0.5;
  text-shadow: 0 0 4px var(--lobby-player-color, var(--cyan));
}

.lobby-player-wait {
  flex-shrink: 0;
  font-size: 0.85em;
  opacity: 0.45;
  letter-spacing: 0.06em;
}

.lobby-player-meta {
  opacity: 0.7;
  font-size: 0.85em;
  letter-spacing: 0.08em;
}

.lobby-player-ready {
  flex-shrink: 0;
  font-size: 0.85em;
  letter-spacing: 0.06em;
  color: var(--green, #00ffa3);
  text-shadow: 0 0 6px rgba(0, 255, 163, 0.45);
}

.lobby-error {
  color: #ff6b9d;
  font-size: clamp(0.72rem, 1.9vmin, 0.88rem);
  letter-spacing: 0.06em;
  max-width: min(360px, 90vw);
}

.lobby-waiting {
  font-size: clamp(0.72rem, 1.9vmin, 0.88rem);
  opacity: 0.75;
  letter-spacing: 0.08em;
}

.neon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.title {
  font-size: clamp(2rem, 7vmin, 4.2rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #fff;
  position: relative;
  text-shadow:
    0 0 6px var(--cyan),
    0 0 16px var(--cyan),
    0 0 40px var(--cyan);
}

.title.small {
  font-size: clamp(1.6rem, 5vmin, 3rem);
  text-shadow:
    0 0 6px var(--magenta),
    0 0 18px var(--magenta),
    0 0 36px var(--magenta);
}

.subtitle {
  font-size: clamp(0.8rem, 2.2vmin, 1.05rem);
  letter-spacing: 0.12em;
  color: var(--text);
  opacity: 0.85;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.gameover-overlay {
  justify-content: flex-start;
  padding: clamp(16px, 3vmin, 28px);
  gap: 14px;
  min-height: 100%;
  overflow-y: auto;
}

.go-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(360px, 90vw);
}

.go-primary-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.go-back-lobby-btn {
  width: 100%;
  padding: clamp(14px, 3vmin, 18px) clamp(18px, 4vmin, 24px);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.5vmin, 14px);
  font-size: clamp(0.85rem, 2.2vmin, 1.05rem);
  letter-spacing: 0.1em;
}

.go-btn-icon {
  flex-shrink: 0;
  width: clamp(22px, 5vmin, 28px);
  height: clamp(22px, 5vmin, 28px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.go-btn-icon svg {
  width: 100%;
  height: 100%;
}

.neon-btn.yellow .go-btn-icon {
  color: var(--yellow);
  filter: drop-shadow(0 0 5px var(--yellow));
}

.go-players {
  list-style: none;
  width: min(360px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0;
  padding: 0;
}

.go-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  font-size: clamp(0.75rem, 2vmin, 0.9rem);
  letter-spacing: 0.06em;
  transition:
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.go-player.winner {
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
}

.go-player.winner .go-player-name,
.go-player.winner .go-player-score {
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.go-player.winner .go-player-gain {
  border-color: rgba(0, 240, 255, 0.55);
  color: #fff;
  background: rgba(0, 240, 255, 0.08);
  text-shadow:
    0 0 8px rgba(0, 240, 255, 0.95),
    0 0 18px rgba(0, 240, 255, 0.55);
  box-shadow:
    0 0 12px rgba(0, 240, 255, 0.35),
    inset 0 0 10px rgba(0, 240, 255, 0.16);
}

.go-player.eliminated .go-player-info,
.go-player.eliminated .go-player-score {
  opacity: 0.55;
}

.go-player-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.go-player-name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.go-player-meta {
  opacity: 0.75;
  font-size: 0.85em;
  letter-spacing: 0.06em;
}

.go-player-scores {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 128px;
}

.go-player-gain {
  flex-shrink: 0;
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid rgba(255, 210, 74, 0.55);
  border-radius: 999px;
  color: var(--yellow);
  background: rgba(255, 210, 74, 0.08);
  font-size: clamp(0.82rem, 2.2vmin, 1rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow:
    0 0 8px rgba(255, 210, 74, 0.95),
    0 0 18px rgba(255, 210, 74, 0.55);
  box-shadow:
    0 0 12px rgba(255, 210, 74, 0.35),
    inset 0 0 10px rgba(255, 210, 74, 0.16);
  white-space: nowrap;
  transform: translateX(-10px) scale(0.88);
  opacity: 0.45;
}

.go-player-gain.delivering {
  animation: score-deliver 0.85s ease-out both;
}

.go-player-score {
  flex-shrink: 0;
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: right;
  white-space: nowrap;
}

.go-player-score.scored {
  animation: score-total-pop 0.7s ease-out both;
}

.go-player.resorting {
  z-index: 1;
}

@keyframes score-deliver {
  0% {
    opacity: 0.35;
    transform: translateX(-16px) scale(0.82);
  }
  45% {
    opacity: 1;
    transform: translateX(4px) scale(1.18);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes score-total-pop {
  0% {
    color: #fff;
    transform: scale(1);
    text-shadow: none;
  }
  45% {
    color: var(--yellow);
    transform: scale(1.12);
    text-shadow:
      0 0 8px rgba(255, 210, 74, 0.95),
      0 0 18px rgba(255, 210, 74, 0.55);
  }
  100% {
    color: #fff;
    transform: scale(1);
    text-shadow: none;
  }
}

.go-rematch-hint {
  font-size: clamp(0.72rem, 1.9vmin, 0.88rem);
  opacity: 0.75;
  letter-spacing: 0.08em;
  max-width: min(360px, 90vw);
}

.neon-btn {
  cursor: pointer;
  background: transparent;
  color: #fff;
  border: 2px solid var(--cyan);
  border-radius: 6px;
  padding: 14px 38px;
  font-size: clamp(0.85rem, 2.2vmin, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-shadow: 0 0 8px var(--cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.5), inset 0 0 8px rgba(0, 240, 255, 0.25);
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.neon-btn:hover {
  transform: translateY(-2px) scale(1.03);
  background: rgba(0, 240, 255, 0.12);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.9), inset 0 0 14px rgba(0, 240, 255, 0.4);
}

.neon-btn.magenta {
  border-color: var(--magenta);
  text-shadow: 0 0 8px var(--magenta);
  box-shadow: 0 0 8px rgba(255, 43, 214, 0.5), inset 0 0 8px rgba(255, 43, 214, 0.25);
}

.neon-btn.magenta:hover {
  background: rgba(255, 43, 214, 0.12);
  box-shadow: 0 0 18px rgba(255, 43, 214, 0.9), inset 0 0 14px rgba(255, 43, 214, 0.4);
}

.neon-btn.yellow {
  border-color: var(--yellow);
  color: var(--yellow);
  text-shadow: 0 0 8px rgba(255, 210, 74, 0.85);
  box-shadow: 0 0 8px rgba(255, 210, 74, 0.5), inset 0 0 8px rgba(255, 210, 74, 0.25);
}

.neon-btn.yellow:hover {
  background: rgba(255, 210, 74, 0.12);
  box-shadow: 0 0 18px rgba(255, 210, 74, 0.85), inset 0 0 14px rgba(255, 210, 74, 0.4);
}

.neon-btn.green {
  border-color: #00ffa3;
  color: #00ffa3;
  text-shadow: 0 0 8px rgba(0, 255, 163, 0.8);
  box-shadow: 0 0 8px rgba(0, 255, 163, 0.45), inset 0 0 8px rgba(0, 255, 163, 0.2);
}

.neon-btn.green:hover {
  background: rgba(0, 255, 163, 0.12);
  box-shadow: 0 0 18px rgba(0, 255, 163, 0.75), inset 0 0 14px rgba(0, 255, 163, 0.35);
}

.neon-btn.green.active {
  background: rgba(0, 255, 163, 0.18);
  box-shadow: 0 0 20px rgba(0, 255, 163, 0.65), inset 0 0 12px rgba(0, 255, 163, 0.25);
}

.neon-btn.lobby-leave-btn {
  width: 100%;
  padding: clamp(12px, 2.8vmin, 16px) clamp(18px, 4vmin, 24px);
  border-color: #ff4d5a;
  color: #ff8a92;
  text-shadow: 0 0 8px rgba(255, 77, 90, 0.75);
  box-shadow: 0 0 8px rgba(255, 77, 90, 0.45), inset 0 0 8px rgba(255, 77, 90, 0.2);
}

.neon-btn.lobby-leave-btn:hover {
  background: rgba(255, 77, 90, 0.12);
  box-shadow: 0 0 16px rgba(255, 77, 90, 0.65), inset 0 0 12px rgba(255, 77, 90, 0.3);
}

.hint {
  font-size: clamp(0.7rem, 1.9vmin, 0.95rem);
  opacity: 0.8;
  letter-spacing: 0.08em;
}

.key {
  display: inline-block;
  border: 1px solid var(--text);
  border-radius: 4px;
  padding: 1px 8px;
  margin: 0 1px;
  font-weight: 700;
  box-shadow: 0 0 6px rgba(207, 233, 255, 0.4);
}

.name-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.name-label {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  opacity: 0.7;
}

.name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.name-input {
  width: min(280px, 70vw);
  background: rgba(0, 240, 255, 0.06);
  border: 2px solid rgba(0, 240, 255, 0.45);
  border-radius: 6px;
  color: #fff;
  font-size: clamp(0.85rem, 2.2vmin, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 10px 14px;
  text-align: center;
  text-shadow: 0 0 8px var(--cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25), inset 0 0 8px rgba(0, 240, 255, 0.08);
  outline: none;
}

.name-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.55), inset 0 0 12px rgba(0, 240, 255, 0.15);
}

.neon-btn.small {
  padding: 10px 14px;
  font-size: 1.1rem;
  letter-spacing: 0;
  line-height: 1;
}

.countdown-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
  z-index: 6;
  background: rgba(5, 6, 15, 0.35);
}

.countdown-number {
  font-size: clamp(4rem, 18vmin, 8rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow:
    0 0 10px var(--cyan),
    0 0 24px var(--cyan),
    0 0 48px var(--cyan);
  -webkit-font-smoothing: antialiased;
  backface-visibility: hidden;
}

.countdown-number.accent-magenta {
  text-shadow:
    0 0 10px var(--magenta),
    0 0 24px var(--magenta),
    0 0 48px var(--magenta);
}

.countdown-number.countdown-pop {
  animation: countdown-pop 0.85s ease-out forwards;
}

.countdown-label {
  font-size: clamp(0.75rem, 2.2vmin, 1rem);
  letter-spacing: 0.18em;
  opacity: 0.85;
  text-transform: uppercase;
  max-width: 85%;
  text-align: center;
}

.countdown-label.magenta {
  color: var(--magenta);
  text-shadow: 0 0 12px var(--magenta);
}

@keyframes countdown-pop {
  0% { transform: scale(1.6); opacity: 0.2; }
  35% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.hud-player-name {
  font-size: clamp(0.72rem, 2vmin, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 2px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hud-ping {
  font-size: clamp(0.62rem, 1.6vmin, 0.78rem);
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-bottom: 4px;
}

.hud-ping.ping-good { color: #00ffa3; }
.hud-ping.ping-ok { color: #ffd000; }
.hud-ping.ping-bad { color: #ff6b9d; }

/* ---------- HUD ---------- */
.hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px 12px;
  pointer-events: none;
  z-index: 4;
  background: rgba(5, 6, 15, 0.94);
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.hud-left, .hud-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hud-left { align-items: flex-start; }

.hud-label {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  opacity: 0.7;
}

.hud-value {
  font-size: clamp(1.1rem, 3.4vmin, 1.8rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-shadow: 0 0 10px var(--cyan);
}

.lives {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.hud-sep { opacity: 0.5; }

.cyan-text { color: var(--cyan); text-shadow: 0 0 10px var(--cyan); }
.magenta-text { color: var(--magenta); text-shadow: 0 0 10px var(--magenta); }

.effects-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
  max-width: 220px;
}

.effect-pill {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid;
  font-weight: 700;
}

.effect-pill.up {
  color: #00ffa3;
  border-color: #00ffa3;
  text-shadow: 0 0 6px #00ffa3;
  box-shadow: 0 0 6px rgba(0, 255, 163, 0.35);
}

.effect-pill.down {
  color: #ff6666;
  border-color: #ff4444;
  text-shadow: 0 0 6px #ff4444;
  box-shadow: 0 0 6px rgba(255, 68, 68, 0.35);
}

/* ---------- Center pickup toast ---------- */
.pickup-toast {
  --pickup-color: var(--cyan);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  padding: 8px clamp(16px, 4vmin, 34px);
  border-top: 1px solid color-mix(in srgb, var(--pickup-color), transparent 18%);
  border-bottom: 1px solid color-mix(in srgb, var(--pickup-color), transparent 18%);
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, var(--pickup-color), transparent 84%),
    transparent 72%
  );
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--pickup-color), transparent 50%));
  transition: opacity 0.35s ease, transform 0.35s ease;
  max-width: 80%;
}

.pickup-toast.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.pickup-toast::before,
.pickup-toast::after {
  content: "";
  width: clamp(18px, 4vmin, 38px);
  height: 1px;
  background: var(--pickup-color);
  box-shadow: 0 0 10px var(--pickup-color);
  opacity: 0.78;
}

.pickup-toast::before {
  margin-right: clamp(10px, 2vmin, 18px);
}

.pickup-toast::after {
  margin-left: clamp(10px, 2vmin, 18px);
}

.pickup-toast-title {
  font-size: clamp(1.4rem, 4.5vmin, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  opacity: 0.92;
  white-space: nowrap;
  text-shadow:
    0 0 12px color-mix(in srgb, var(--pickup-color), transparent 32%),
    0 0 30px color-mix(in srgb, var(--pickup-color), transparent 48%);
}

