/*
  MYTHSTRIKE HUD skin (plan 07.1-05, 07.1-ART-DIRECTION "HUD").

  Loaded after hud.css + menus.css: the in-match chrome joins the chunky
  toy-box language — grape-ink glass chips with a thick stroke and a hard
  under-edge, Titan One numerals, saturated team colors. Class contracts and
  every JS-driven transform/visibility write stay untouched: this file only
  paints and nudges positions (mode line under the strip, no overlap with
  the bottom-center toasts).
*/
/* UX pass layer (title entries, settings/help screens, pause actions, HP
   bar, onboarding, z-index ladder) — cascades after menus.css. */
@import "../ux.css";

/* Shared chip/panel skin -------------------------------------------------- */
.ms-chip,
.ms-statuschip,
.ms-modeline,
.ms-toast,
.ms-matchboard {
  background: rgba(27, 23, 51, 0.84);
  border: 3px solid var(--stroke-ink);
  box-shadow: 0 4px 0 var(--stroke-ink), 0 8px 16px rgba(14, 11, 31, 0.25);
}

/* Top strip: team scores + timer ------------------------------------------ */
.ms-strip {
  border-radius: 18px;
  padding: 6px 22px;
}

.ms-strip * {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
}

/* Mode line sits under the strip (it used to collide with the bottom-center
   pointer-lock hint and death recap). */
.ms-modeline {
  top: 92px;
  bottom: auto;
  border-radius: var(--radius-pill);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
}

/* Weapon panel, money, race cluster, XP: moved to hud/hud-system.css (in-match HUD system pass). */

/* Chips -------------------------------------------------------------------- */
.ms-chip,
.ms-statuschip {
  border-radius: var(--radius-pill);
}

/* Kill feed chrome: moved to hud/hud-system.css (in-match HUD system pass). */

/* Banners + big words get the stroked display treatment -------------------- */
.ms-banner,
.ms-word {
  font-family: var(--font-display);
  text-shadow:
    3px 3px 0 var(--stroke-ink), -3px 3px 0 var(--stroke-ink),
    3px -3px 0 var(--stroke-ink), -3px -3px 0 var(--stroke-ink),
    0 7px 0 var(--stroke-ink), 0 12px 20px rgba(14, 11, 31, 0.4);
}

/* Overlays (shop / skills) join the glass-panel language ------------------ */
.ms-shop__panel,
.ms-skillscreen__panel {
  background: rgba(27, 23, 51, 0.92);
  border: 3px solid var(--stroke-ink);
  border-radius: 22px;
  box-shadow: 0 8px 0 var(--stroke-ink), 0 20px 40px rgba(14, 11, 31, 0.4);
}

.ms-shopcard {
  border: 3px solid var(--stroke-ink);
  border-radius: 16px;
  box-shadow: 0 4px 0 var(--stroke-ink);
}

/* Scoreboard --------------------------------------------------------------- */
.ms-matchboard {
  border-radius: 22px;
}

/* 08-02 reconnect overlay: a chunky centered pill over the frozen arena. */
.ms-reconnect {
  position: fixed;
  left: 50%;
  top: 38%;
  transform: translateX(-50%);
  padding: 18px 34px;
  text-align: center;
  background: rgba(27, 23, 51, 0.92);
  border: 3px solid var(--stroke-ink);
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--stroke-ink), 0 16px 30px rgba(14, 11, 31, 0.4);
  z-index: var(--z-modal);
  pointer-events: none;
}

.ms-reconnect__title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--gold);
  text-shadow: 0 3px 0 var(--stroke-ink);
  animation: ms-reconnect-pulse 900ms ease-in-out infinite;
}

.ms-reconnect__body {
  margin: 0;
  color: var(--paper);
}

@keyframes ms-reconnect-pulse {
  50% { opacity: 0.55; }
}

/* 08-03 chat: its own region top-left (the kill feed owns top-right, the
   race cluster bottom-left — separate trees, never mixed). */
.ms-chat {
  position: fixed;
  left: var(--sp-md);
  top: 96px;
  width: min(420px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: calc(var(--z-panel) + 5);
  pointer-events: none;
}

.ms-chat__log {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ms-chat__line {
  margin: 0;
  align-self: flex-start;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(27, 23, 51, 0.72);
  border: 2px solid var(--stroke-ink);
  color: var(--paper);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  pointer-events: auto;
  animation: ms-chat-in 160ms var(--ease-out);
}

.ms-chat__line--mine {
  border-color: rgba(255, 197, 49, 0.6);
}

.ms-chat__sender {
  font-weight: var(--weight-semibold);
  color: var(--gold);
  cursor: context-menu;
}

.ms-chat__sender--a { color: var(--team-a, var(--paper)); }
.ms-chat__sender--b { color: var(--team-b, var(--paper)); }

.ms-chat__row {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.ms-chat__input {
  flex: 1;
  min-height: 40px;
  padding: 6px 12px;
}

.ms-chat__hint,
.ms-chat__notice {
  color: var(--paper);
  text-shadow: 0 2px 0 var(--stroke-ink);
}

.ms-chat__notice {
  margin: 0;
  color: var(--coral);
}

.ms-mutemenu {
  position: fixed;
  z-index: var(--z-modal);
  transform: translate(4px, 4px);
  display: flex; /* Mute + the host's Kick (#246) stack */
  flex-direction: column;
  gap: 4px;
}

@keyframes ms-chat-in {
  from { opacity: 0; transform: translateX(-6px); }
}

/* Lobby mode: bottom-left beside the centered lobby panel. */
.ms-chat--lobby {
  top: auto;
  bottom: var(--sp-lg);
  width: min(240px, calc(100vw - 32px));
}

.ms-chat--lobby .ms-chat__hint {
  display: none;
}
