/* ==========================================================================
   Shell — brand, profile, dock, boot
   ========================================================================== */

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  flex: none;
  padding: 2px var(--space-2) 2px 2px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  transition: background 0.2s ease;
}

.brand:hover {
  background: rgba(255, 255, 255, 0.045);
}

.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: radial-gradient(circle at 50% 30%, #2a2030, #0a0b12 70%);
  box-shadow:
    0 0 0 1px rgba(217, 179, 108, 0.32),
    0 0 20px rgba(217, 179, 108, 0.16),
    inset 0 0 14px rgba(0, 0, 0, 0.7);
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), transparent 45%);
  pointer-events: none;
}

.brand__mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  image-rendering: pixelated;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
  text-align: left;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--ink);
  text-shadow: 0 0 18px rgba(217, 179, 108, 0.25);
}

.brand__text small {
  font-size: 0.5rem;
  font-weight: 650;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

/* Profile chip ------------------------------------------------------------*/
.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 40px;
  max-width: 190px;
  padding: 0 var(--space-3) 0 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.profile-chip:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.profile-chip__avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(155deg, color-mix(in srgb, var(--profile-color, #d9b36c) 55%, #101522), #0b0e16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.profile-chip__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-soft);
}

.topbar__return-icon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--town);
  box-shadow: 0 0 9px var(--town);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Dock -------------------------------------------------------------------*/
.dock {
  position: fixed;
  left: 50%;
  bottom: calc(var(--space-4) + var(--safe-bottom));
  z-index: var(--z-dock);
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 5px;
  border: 1px solid rgba(217, 179, 108, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(8, 11, 18, 0.82);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px) saturate(1.2);
  transform: translateX(-50%);
}

.dock__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 78px;
  min-height: 46px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.dock__btn svg {
  opacity: 0.85;
}

.dock__btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.dock__btn.is-active {
  color: var(--night-1);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  box-shadow: 0 6px 18px rgba(217, 179, 108, 0.24);
}

.dock__btn.is-active svg {
  opacity: 1;
}

body:not([data-route="session"]) .screen {
  padding-bottom: calc(110px + var(--safe-bottom));
}

/* Boot -------------------------------------------------------------------*/
.boot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  min-height: 100dvh;
  padding: var(--space-8);
  text-align: center;
}

.boot__mark {
  position: relative;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(217, 179, 108, 0.14), transparent 70%);
  box-shadow:
    0 0 0 1px rgba(217, 179, 108, 0.22),
    0 0 60px rgba(217, 179, 108, 0.12);
  animation: boot-breathe 3.4s var(--ease-in-out) infinite;
}

.boot__mark img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.6));
}

.boot__text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}

.noscript {
  position: fixed;
  inset: auto var(--space-4) var(--space-4);
  z-index: 200;
  padding: var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-solid);
  color: var(--ink);
  text-align: center;
}

body.route-session #dock {
  display: none;
}

@keyframes boot-breathe {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 1px rgba(217, 179, 108, 0.2), 0 0 46px rgba(217, 179, 108, 0.1);
  }
  50% {
    transform: scale(1.035);
    box-shadow: 0 0 0 1px rgba(217, 179, 108, 0.36), 0 0 76px rgba(217, 179, 108, 0.2);
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.8);
  }
}

/* ==========================================================================
   Main menu
   ========================================================================== */

.menu-screen {
  overflow: clip;
}

.menu {
  position: relative;
  width: min(100%, var(--content-max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  grid-template-areas:
    "intro poster"
    "play poster"
    "cards cards"
    "bots bots";
  align-items: start;
  gap: clamp(var(--space-5), 3.2vw, var(--space-10)) clamp(var(--space-5), 4vw, var(--space-12));
  padding-top: clamp(var(--space-4), 3vh, var(--space-8));
}

.menu::before {
  content: "";
  position: absolute;
  top: -18vh;
  left: -10vw;
  width: 70vw;
  height: 70vh;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(216, 75, 87, 0.09), transparent 66%);
  filter: blur(20px);
  z-index: -1;
}

.menu__intro {
  grid-area: intro;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-2);
}

.menu__intro .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 5px 12px 5px 9px;
  border: 1px solid rgba(217, 179, 108, 0.24);
  border-radius: var(--radius-pill);
  background: rgba(217, 179, 108, 0.055);
  letter-spacing: 0.18em;
  font-size: 0.62rem;
}

.menu__logo {
  display: flex;
  flex-direction: column;
  gap: 0.08em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.menu__logo > span {
  font-size: var(--fs-hero);
  background: linear-gradient(174deg, #fff7e3 4%, #f0d9a5 34%, #d9b36c 58%, #9c722f 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 14px 34px rgba(217, 179, 108, 0.16));
}

.menu__logo > small {
  align-self: flex-end;
  margin-top: 0.3em;
  font-family: var(--font-body);
  font-size: clamp(0.56rem, 1.4vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: var(--crimson-soft);
  text-shadow: 0 0 22px rgba(216, 75, 87, 0.4);
}

.menu__tagline {
  max-width: 46ch;
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  line-height: 1.45;
  color: var(--ink-soft);
}

.menu__tagline span {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--muted);
}

.menu__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.menu__stat {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line-cold);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
}

.menu__stat b {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-soft);
}

.menu__stat span {
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Poster -----------------------------------------------------------------*/
.menu__poster {
  grid-area: poster;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-self: stretch;
  perspective: 1200px;
}

.poster__frame {
  position: relative;
  flex: 1;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(217, 179, 108, 0.22);
  border-radius: 6px 6px 2px 2px;
  background:
    radial-gradient(ellipse 80% 55% at 50% 18%, rgba(216, 75, 87, 0.22), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 80%, rgba(217, 179, 108, 0.1), transparent 70%),
    linear-gradient(168deg, #191018 0%, #0d0c12 52%, #07080d 100%);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    inset 0 0 0 6px rgba(5, 6, 10, 0.7),
    inset 0 0 0 7px rgba(217, 179, 108, 0.14);
  transform: rotate(-0.8deg);
  transition: transform 0.6s var(--ease-out);
}

.menu__poster:hover .poster__frame {
  transform: rotate(0deg) translateY(-3px);
}

.poster__frame::before,
.poster__frame::after {
  content: "";
  position: absolute;
  inset: 12% 8%;
  pointer-events: none;
  border: 1px solid rgba(217, 179, 108, 0.1);
}

.poster__frame::after {
  inset: 14% 10%;
  border-style: dashed;
  border-color: rgba(217, 179, 108, 0.07);
}

.poster__noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
}

.poster__mafia {
  position: absolute;
  top: 17%;
  left: 50%;
  width: 62%;
  max-width: 240px;
  height: auto;
  transform: translateX(-50%);
  image-rendering: pixelated;
  filter:
    drop-shadow(0 18px 34px rgba(0, 0, 0, 0.8))
    drop-shadow(0 0 40px rgba(216, 75, 87, 0.26));
  animation: float-soft 7s var(--ease-in-out) infinite;
}

.poster__sheriff {
  position: absolute;
  right: 7%;
  bottom: 16%;
  width: 30%;
  max-width: 112px;
  height: auto;
  image-rendering: pixelated;
  opacity: 0.72;
  filter: grayscale(0.45) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8));
  transform: rotate(6deg);
}

.poster__line {
  position: absolute;
  top: 7%;
  left: 50%;
  transform: translateX(-50%);
  width: 84%;
  padding: 6px 0;
  border-top: 1px solid rgba(216, 75, 87, 0.3);
  border-bottom: 1px solid rgba(216, 75, 87, 0.3);
  font-family: var(--font-mono);
  font-size: clamp(0.52rem, 1.1vw, 0.66rem);
  font-weight: 700;
  letter-spacing: 0.42em;
  text-align: center;
  color: var(--crimson-soft);
  text-shadow: 0 0 14px rgba(216, 75, 87, 0.4);
}

.poster__stamp {
  position: absolute;
  left: 8%;
  bottom: 22%;
  padding: 7px 10px;
  border: 2px solid rgba(217, 179, 108, 0.35);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.2em;
  color: rgba(217, 179, 108, 0.62);
  transform: rotate(-7deg);
  opacity: 0.85;
}

.poster__caption {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* Play panel -------------------------------------------------------------*/
.menu__play {
  grid-area: play;
  padding: clamp(var(--space-4), 2vw, var(--space-6));
  overflow: hidden;
}

.menu__play::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -30%;
  width: 60%;
  height: 180%;
  background: radial-gradient(ellipse at center, rgba(217, 179, 108, 0.12), transparent 65%);
  pointer-events: none;
}

.identity {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--space-4);
}

.identity__preview {
  align-self: center;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.45));
}

.identity__fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}

.input--nick {
  height: 50px;
  font-family: var(--font-display);
  font-size: 1.06rem;
  letter-spacing: 0.02em;
}

.identity__colors {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.swatch {
  position: relative;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: var(--swatch, var(--gold));
  box-shadow:
    inset 0 0 0 2px rgba(5, 6, 10, 0.65),
    0 0 0 1px color-mix(in srgb, var(--swatch, var(--gold)) 45%, transparent);
  transition: transform 0.18s var(--ease-spring), box-shadow 0.18s ease;
}

.swatch:hover {
  transform: scale(1.12);
}

.swatch.is-active {
  box-shadow:
    inset 0 0 0 2px rgba(5, 6, 10, 0.55),
    0 0 0 2px var(--ink),
    0 0 14px color-mix(in srgb, var(--swatch, var(--gold)) 55%, transparent);
  transform: scale(1.08);
}

.swatch.is-active::after {
  content: "";
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: rgba(5, 6, 10, 0.62);
}

.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.menu__play-btn {
  min-width: 168px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.menu__secondary {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}

.menu__secondary .btn {
  min-height: 36px;
}

/* Menu cards -------------------------------------------------------------*/
.menu__cards {
  grid-area: cards;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.menu-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(11, 14, 22, 0.6);
  color: var(--ink);
  text-align: left;
  overflow: hidden;
  transition:
    transform 0.3s var(--ease-out),
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.3s ease;
}

.menu-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 0%, rgba(217, 179, 108, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.menu-card:hover::before {
  opacity: 1;
}

.menu-card > svg {
  flex: none;
  color: var(--muted);
  transition: transform 0.25s var(--ease-out), color 0.2s ease;
}

.menu-card:hover > svg {
  transform: translateX(3px);
  color: var(--gold);
}

.menu-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(217, 179, 108, 0.06);
  color: var(--gold);
}

.menu-card--create .menu-card__icon {
  color: var(--crimson-soft);
  background: rgba(216, 75, 87, 0.07);
  border-color: rgba(216, 75, 87, 0.22);
}

.menu-card--roles .menu-card__icon {
  color: var(--violet-soft);
  background: rgba(176, 124, 255, 0.07);
  border-color: rgba(176, 124, 255, 0.22);
}

.menu-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.menu-card__body b {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
}

.menu-card__body span {
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--muted);
}

/* Bots -------------------------------------------------------------------*/
.menu__bots {
  grid-area: bots;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-2);
}

.menu__bots-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.menu__bots-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.menu__bots-head .muted {
  font-size: var(--fs-xs);
}

.bot-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82px;
  gap: var(--space-2);
  overflow-x: auto;
  padding: 4px 2px var(--space-2);
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 24px), transparent 100%);
}

.bot-strip::-webkit-scrollbar {
  display: none;
}

.bot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--space-2) 4px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--ink-dim);
  scroll-snap-align: start;
  transition: 0.2s ease;
}

.bot-card span:last-child {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.bot-card:hover {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.bot-card--more {
  color: var(--muted);
}

/* Role art ---------------------------------------------------------------*/
.role-art {
  --role-art-size: 64px;
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--role-art-size);
  height: var(--role-art-size);
  padding: 3px;
  border-radius: 28%;
  background:
    radial-gradient(circle at 50% 22%, color-mix(in srgb, var(--role-color, #d9b36c) 20%, transparent), transparent 62%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.012)),
    rgba(8, 10, 17, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 8px 20px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.role-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.role-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}

.role-art--xs {
  --role-art-size: 34px;
  padding: 2px;
  border-radius: 22%;
}

.role-art--sm {
  --role-art-size: 44px;
}

.role-art--md {
  --role-art-size: 66px;
}

.role-art--lg {
  --role-art-size: 112px;
  padding: 5px;
}

.role-art--unknown {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

/* Role/team badges -------------------------------------------------------*/
.badge--role {
  border-color: color-mix(in srgb, var(--role-color, #d9b36c) 38%, transparent);
  background: color-mix(in srgb, var(--role-color, #d9b36c) 12%, transparent);
  color: color-mix(in srgb, var(--role-color, #d9b36c) 74%, #fff);
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.66rem;
  font-weight: 650;
  padding: 2px 8px 2px 3px;
}

.badge--role img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: contain;
  image-rendering: pixelated;
}

.badge--team {
  border-color: color-mix(in srgb, var(--team-color, #d9b36c) 36%, transparent);
  background: color-mix(in srgb, var(--team-color, #d9b36c) 10%, transparent);
  color: color-mix(in srgb, var(--team-color, #d9b36c) 78%, #fff);
}

.badge--team::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.avatar__you {
  position: absolute;
  top: -5px;
  left: -6px;
  z-index: 2;
  padding: 1px 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #241809;
  font-size: 0.45rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Bot detail modal -------------------------------------------------------*/
.bot-detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.bot-detail__head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.bot-detail__tagline {
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-style: italic;
  color: var(--ink-soft);
}

.trait-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.trait {
  display: grid;
  grid-template-columns: 7.6em minmax(0, 1fr) 2.4em;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-xs);
  color: var(--muted);
}

.trait b {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold-soft);
  text-align: right;
}

.trait__bar {
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.trait__bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft));
  box-shadow: 0 0 10px rgba(217, 179, 108, 0.3);
}

/* Small shake used on invalid nick input */
.shake {
  animation: shake 0.45s var(--ease-in-out);
}
