/* ============================================================
   Panels hold the stage still
   ============================================================ */
.panel-up .stage-word,
.panel-up .led,
.panel-up .stamp *,
.panel-up .critter-body,
.panel-up .fairy i,
.panel-up .neon-sign::after {
  animation-play-state: paused !important;
}

/* ============================================================
   You: the avatar button and the ME panel
   ============================================================ */
.me-btn {
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff8 0 10%, transparent 34%), linear-gradient(160deg, #ff8ae0, #c935ab);
  color: #0d0d0d;
  font: 900 22px/1 var(--display);
  box-shadow: 0 5px 0 #7d1f6a, 0 0 18px rgba(255, 106, 213, 0.45), inset 0 -3px 6px rgba(0, 0, 0, 0.25);
  border: 2px solid #0d0d0d;
  transition: transform 0.25s var(--bounce), box-shadow 0.25s;
}
.me-btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #7d1f6a, 0 0 10px rgba(255, 106, 213, 0.3), inset 0 -2px 4px rgba(0, 0, 0, 0.25);
}
.me-btn.warn::after {
  /* no backup yet: a small orange dot that breathes */
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid #0d0d0d;
  animation: dot-breathe 2.4s ease-in-out infinite;
}
@keyframes dot-breathe {
  50% { transform: scale(1.25); }
}
.me-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 2px 6px;
}
.me-avatar {
  flex: none;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 900 42px/1 var(--display);
  color: #0d0d0d;
  background: radial-gradient(circle at 35% 28%, #fff9 0 12%, transparent 36%), linear-gradient(160deg, #ff8ae0, #c935ab);
  border: 3px solid #0d0d0d;
  box-shadow: 0 7px 0 #7d1f6a, 0 0 30px rgba(255, 106, 213, 0.45);
}
.me-avatar:active { transform: translateY(5px); box-shadow: 0 2px 0 #7d1f6a; }
.me-id {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.me-id b {
  font: 900 34px/0.9 var(--display);
  font-stretch: 62%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.me-id small {
  font: 9px/1.2 var(--pixel);
  color: var(--lime);
  letter-spacing: 0.06em;
}
.me-id .link-btn { padding: 4px 0; color: #bbb; }
.p-h.danger { color: #ff4d63; }

.safe-strip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
  padding: 6px;
  border-radius: 22px;
  background: #141414;
  border: 1px solid #2a2a2a;
}
.safe-line {
  display: grid;
  grid-template-columns: 10px 28px 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
}
.safe-line b {
  display: block;
  font: 900 18px/1 var(--display);
  font-stretch: 70%;
}
.safe-line small {
  display: block;
  margin-top: 3px;
  font: 400 11px/1.35 var(--mono);
  color: #b5b5b5;
}
.safe-icon { font-size: 22px; }
.safe-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}
.safe-line.warn .safe-dot {
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
  animation: dot-breathe 2.4s ease-in-out infinite;
}
.safe-line.warn b { color: var(--orange); }

.me-rows {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  background: #141414;
}
.me-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 14px;
  text-align: left;
  color: #fff;
  transition: background 0.2s;
}
.me-row + .me-row { border-top: 1px solid #242424; }
.me-row:active { background: #1f1f1f; }
.me-row-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 900 20px/1 var(--display);
  background: #222;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.06);
}
.me-row-text b {
  display: block;
  font: 900 19px/1 var(--display);
  font-stretch: 70%;
}
.me-row-text small {
  display: block;
  margin-top: 4px;
  font: 400 11px/1.4 var(--mono);
  color: #a8a8a8;
}
.me-row-go {
  font: 900 26px/1 var(--display);
  color: #555;
}
/* A pill switch: the knob slides, the track lights up */
.switch {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 15px;
  background: #2c2c2c;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
  transition: background 0.3s;
}
.switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #c9c9c9);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.45s cubic-bezier(.3, 1.5, .5, 1);
}
.switch.on {
  background: var(--lime);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25), 0 0 14px rgba(231, 255, 61, 0.45);
}
.switch.on i { transform: translateX(22px); }
