:root {
  --outer-bg: #1e1e1f;
  --canvas-bg: #efefed;
  --yellow: #f5d31f;
  --yellow-soft: rgba(245, 211, 31, 0.2);
  --phone-bg: #090b10;
  --panel-bg: #121721;
  --panel-alt: #1b202d;
  --card-bg: #1b202e;
  --card-border: #2b3649;
  --text: #f4f4f7;
  --muted: #9aa6ba;
  --muted-strong: #d5d9e2;
  --blue: #244bc1;
  --blue-border: #3775ff;
  --red: #ff4058;
  --shadow: rgba(0, 0, 0, 0.3);
  --font-display: "Rajdhani", sans-serif;
  --font-body: "Inter", sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--outer-bg);
  font-family: var(--font-body);
  color: var(--text);
}

h1,
h2,
h3,
.brand-mark,
.brand p,
.connection-status,
.status-bar,
.chat-topbar,
.nav-item,
.welcome-eyebrow {
  font-family: var(--font-display);
}

body {
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.page-shell {
  max-width: 1300px;
  margin: 0 auto;
  padding: 32px 16px 40px;
}

@media (min-width: 721px) {
  .home-board {
    max-width: none;
    min-height: 100vh;
    padding: 0;
  }

  .home-board .presentation-board {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    border: 0;
    background:
      linear-gradient(rgba(7, 10, 18, 0.16), rgba(7, 10, 18, 0.25)),
      url("../images/Desktop-Background.png") center / cover no-repeat;
  }

  .home-board .phone-shell {
    margin: 0;
  }
}

.presentation-board {
  position: relative;
  margin-inline: auto;
  background: var(--canvas-bg);
  border: 6px solid var(--yellow);
  min-height: 760px;
  overflow: hidden;
}

.presentation-board::after {
  content: "X-MEN FIELD ARCHIVE";
  position: absolute;
  z-index: 1;
  top: 50%;
  right: clamp(36px, 8%, 112px);
  width: clamp(190px, 21%, 270px);
  height: 350px;
  display: flex;
  align-items: flex-end;
  padding: 18px 14px;
  transform: translateY(-50%) rotate(5deg);
  clip-path: polygon(5% 0, 100% 4%, 95% 100%, 0 96%);
  border: 5px solid var(--yellow);
  background:
    linear-gradient(0deg, rgba(5, 8, 15, 0.88), transparent 48%),
    radial-gradient(circle, rgba(245, 211, 31, 0.18) 1px, transparent 1.7px),
    url("../images/gold-squad-pfp.jpeg") center 25% / cover,
    #10131a;
  background-size: auto, 7px 7px, cover, auto;
  box-shadow: 12px 14px 0 rgba(20, 23, 29, 0.23), 0 20px 45px rgba(0, 0, 0, 0.25);
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-shadow: 0 2px 5px #000;
  pointer-events: none;
}

.desktop-caption {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: clamp(36px, 8%, 112px);
  width: clamp(190px, 22%, 270px);
  padding: 22px 20px;
  transform: translateY(-50%) rotate(-3deg);
  border: 3px solid #111;
  background:
    linear-gradient(145deg, transparent 0 72%, rgba(245, 211, 31, 0.36) 72%),
    #f9f6e9;
  box-shadow: 9px 10px 0 rgba(17, 17, 17, 0.2);
  color: #111;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.desktop-caption:hover,
.desktop-caption:focus-visible {
  transform: translateY(-50%) rotate(-1deg) scale(1.02);
  box-shadow: 12px 14px 0 rgba(17, 17, 17, 0.24);
  outline: 3px solid var(--blue-border);
  outline-offset: 4px;
}

.desktop-caption > span {
  display: block;
  margin-bottom: 12px;
  color: #725b00;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.desktop-caption strong {
  display: block;
  font-size: clamp(1.1rem, 1.6vw, 1.55rem);
  font-weight: 950;
  line-height: 1.05;
  text-transform: uppercase;
}

.desktop-caption p {
  margin: 12px 0 0;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.5;
}

.desktop-caption p span {
  color: #244bc1;
  font-size: 1rem;
}

.presentation-board .brand-mark {
  position: absolute;
  top: 54px;
  right: 50px;
  z-index: 2;
  font-size: clamp(1.1rem, 1.6vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #111;
  text-transform: uppercase;
}

.phone-shell {
  position: relative;
  z-index: 2;
  width: min(100%, 370px);
  height: 690px;
  margin: 42px auto 0;
  background: var(--phone-bg);
  border: 4px solid var(--yellow);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.18);
}

.phone-shell::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: 132px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  background: rgba(7, 10, 14, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.connection-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--yellow);
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 10px rgba(245, 211, 31, 0.8);
}

.phone-status {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: rgba(255, 255, 255, 0.9);
}

.cell-bars {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 9px;
}

.cell-bars::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.95) 0 25%, transparent 25% 100%);
  clip-path: polygon(0 100%, 25% 100%, 25% 70%, 50% 70%, 50% 35%, 75% 35%, 75% 10%, 100% 10%, 100% 100%);
}

.phone-status > i {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  line-height: 1;
}

.messenger-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand h1 {
  margin: 0;
  color: var(--text);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  font-weight: 900;
}

.brand h1 .mutant {
  color: var(--text);
}

.brand h1 .comms {
  color: var(--yellow);
}

.brand p {
  margin: 0;
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.settings-button,
.tips-button {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  position: relative;
}

.settings-button,
.tips-button {
  display: grid;
  place-items: center;
  padding: 0;
}

.settings-button i,
.tips-button i {
  font-size: 0.85rem;
}

.search-section {
  padding: 10px 14px 8px;
}

.search-label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.search-wrap {
  position: relative;
}

.search-wrap > .fa-magnifying-glass {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

.search-field {
  width: 100%;
  padding: 11px 12px 11px 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.72rem;
  outline: none;
}

.search-field::placeholder {
  color: rgba(255,255,255,0.28);
}

.conversation-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 0 0;
}

.conversation-item {
  border-top: 1px solid rgba(255,255,255,0.04);
}

.conversation-item:first-child {
  border-top: 0;
}

.conversation-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  min-height: 72px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: 2px solid var(--yellow);
  flex-shrink: 0;
}

.conversation-content {
  flex: 1;
  min-width: 0;
}

.conversation-top,
.conversation-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.conversation-top {
  margin-bottom: 3px;
}

.conversation-top h3 {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text);
  text-transform: uppercase;
  white-space: nowrap;
}

.conversation-top time {
  font-size: 0.56rem;
  color: var(--muted);
}

.conversation-bottom {
  align-items: center;
}

.conversation-bottom p {
  margin: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.7rem;
  color: var(--muted);
}

.unread-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.56rem;
  font-weight: 700;
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(18, 21, 32, 0.96);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 8px 8px 10px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 8px 6px;
  color: rgba(255,255,255,0.52);
  font-size: 0.54rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-item.active {
  color: var(--yellow);
  border-radius: 10px;
  background: rgba(245, 211, 31, 0.08);
}

.nav-item-unavailable {
  gap: 3px;
  opacity: 0.38;
  cursor: not-allowed;
  user-select: none;
}

.nav-unavailable-label {
  font-size: 0.39rem;
  letter-spacing: 0.06em;
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
}

.chat-page .phone-shell {
  margin-top: 18px;
}

.chat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 8px;
  background: rgba(7, 10, 14, 0.4);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.chat-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 10px;
  background: rgba(19, 24, 33, 0.95);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.back-button,
.info-button {
  display: grid;
  place-items: center;
  min-width: 28px;
  min-height: 28px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.chat-user {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.group-avatar {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  background-position: center;
  background-size: cover;
  border: 2px solid var(--yellow);
}

.chat-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat-title h1 {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 900;
}

.chat-title p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.52rem;
  letter-spacing: 0.02em;
}

.chat-title p i {
  margin-right: 3px;
  color: var(--yellow);
}

.chat-messages {
  position: relative;
  height: 480px;
  overflow-y: auto;
  padding: 14px 12px 12px;
  background: rgba(9, 11, 16, 0.95);
}

.message-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.message-author {
  margin: 0;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--yellow);
}

.message-bubble {
  position: relative;
  display: inline-block;
  max-width: 82%;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 10px 10px 12px;
  color: var(--text);
}

.message-bubble p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
}

.message-bubble time {
  display: block;
  margin-top: 6px;
  text-align: right;
  font-size: 0.48rem;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.48);
}

.message-you {
  align-items: flex-end;
}

.message-you .message-bubble {
  background: rgba(36, 75, 193, 0.96);
  border-color: var(--blue-border);
  margin-left: auto;
}

.message-you .message-bubble time {
  color: rgba(255,255,255,0.72);
}

.message-receipt {
  margin: -5px 10px 0;
  color: var(--muted);
  font-size: 0.48rem;
  letter-spacing: 0.02em;
}

.reaction-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  width: fit-content;
  gap: 2px;
  margin: 4px 0 0 12px;
  padding: 2px 4px;
  background: rgba(10, 12, 17, 0.9);
  border: 1px solid var(--yellow);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.54rem;
  font-weight: 700;
}

.message-you .reaction-badge {
  align-self: flex-end;
  margin-right: 12px;
  margin-left: 0;
}

.reaction-symbol {
  display: inline-grid;
  place-items: center;
  width: 14px;
  color: var(--yellow);
  font-size: 0.66rem;
  line-height: 1;
}

.reaction-option i {
  font-size: 1rem;
}

.settings-button:hover,
.tips-button:hover,
.back-button:hover,
.info-button:hover,
.send-button:hover,
.reaction-option:hover {
  filter: brightness(1.15);
}

.typing-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.62rem;
}

.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 8px rgba(245, 211, 31, 0.8);
}

.message-composer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px 14px;
  background: rgba(11, 13, 18, 0.96);
  border-top: 1px solid rgba(255,255,255,0.07);
}

.message-composer input {
  flex: 1;
  min-width: 0;
  background: rgba(16, 18, 22, 0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  color: var(--text);
  padding: 10px 14px;
  font-size: 0.7rem;
  outline: none;
}

.message-composer input::placeholder {
  color: rgba(255,255,255,0.35);
}

.send-button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: #0a0b10;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(245, 211, 31, 0.35);
}

.send-button i {
  font-size: 0.9rem;
  transform: translateX(-1px);
}

.info-panel {
  position: absolute;
  right: 18px;
  top: 92px;
  z-index: 5;
  width: 150px;
  background: rgba(240, 232, 183, 0.96);
  color: #111;
  border: 1px solid rgba(17,17,17,0.08);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.14);
  padding: 12px 12px 10px;
  display: none;
  font-size: 0.62rem;
  line-height: 1.5;
  max-height: calc(100% - 112px);
  overflow-y: auto;
}

.info-panel.visible {
  display: block;
}

.info-panel h3 {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.info-panel ul {
  margin: 0;
  padding-left: 18px;
}

.info-panel li + li {
  margin-top: 4px;
}

.board-note {
  position: absolute;
  z-index: 3;
  width: 180px;
  padding: 14px 12px 10px;
  background: rgba(245, 225, 110, 0.9);
  border: 1px solid rgba(27, 27, 27, 0.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  color: #111;
  font-size: 0.7rem;
  line-height: 1.55;
}

.board-note h4 {
  margin: 0 0 8px;
  font-size: 0.68rem;
  font-weight: 700;
}

.board-note ul {
  margin: 0;
  padding-left: 18px;
}

.note-left {
  left: 54px;
  top: 240px;
}

.note-right {
  right: 50px;
  top: 350px;
}

.home-board .phone-shell {
  margin-top: 24px;
}

@media (max-width: 720px) {
  .screen-label {
    margin-left: 0;
    text-align: center;
  }

  .presentation-board {
    min-height: 680px;
  }

  .board-note {
    display: none;
  }

  .presentation-board .brand-mark {
    right: 18px;
    top: 20px;
  }
}

.status-indicator {
  animation: cerebro-pulse 2s ease-in-out infinite;
}

.connection-status:hover .status-indicator {
  box-shadow: 0 0 12px rgba(245, 211, 31, 0.95);
}

@keyframes cerebro-pulse {
  0%, 100% {
    opacity: 0.82;
    box-shadow: 0 0 7px rgba(245, 211, 31, 0.52);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 11px rgba(245, 211, 31, 0.86);
  }
}

.info-panel.visible {
  animation: info-panel-enter 200ms ease-in-out both;
}

.avatar,
.group-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  background-color: var(--avatar-bg, #596579);
  background-position: var(--avatar-position, 50% 50%);
  background-size: cover;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.message-group {
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
}

.message-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  overflow: hidden;
  border: 1px solid var(--yellow);
  border-radius: 50%;
  background-color: var(--avatar-bg, #596579);
  background-position: var(--avatar-position, 50% 50%);
  background-size: cover;
  color: #fff;
  font-size: 0.47rem;
  font-weight: 900;
}

.message-content {
  display: flex;
  flex: 0 1 82%;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.message-bubble {
  max-width: 100%;
}

.message-group--continuation .message-avatar,
.message-group--continuation .message-author {
  visibility: hidden;
}

.message-group--continuation .message-author {
  display: none;
}

.message-you {
  justify-content: flex-end;
}

.message-you .message-avatar {
  order: 2;
}

.message-you .message-content {
  align-items: flex-end;
}

.message-you .message-receipt {
  align-self: flex-end;
}

.message-group .reaction-badge {
  align-self: flex-start;
  margin: 0;
}

.message-you .reaction-badge {
  align-self: flex-end;
  margin: 0;
}

.chat-settings-button {
  flex: 0 0 28px;
}

.settings-button {
  cursor: pointer;
}

.settings-panel {
  position: absolute;
  z-index: 20;
  top: 88px;
  right: 10px;
  width: min(320px, calc(100% - 20px));
  max-height: calc(100% - 108px);
  overflow-y: auto;
  padding: 14px;
  border: 1px solid rgba(245, 211, 31, 0.55);
  border-radius: 14px;
  background: rgba(18, 23, 33, 0.98);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  color: var(--text);
  font-size: 0.68rem;
}

.settings-panel[hidden] {
  display: none;
}

.tips-button {
  cursor: pointer;
}

.tips-button:hover,
.tips-button:focus-visible {
  border-color: var(--yellow);
  color: var(--yellow);
  outline: none;
}

.tips-panel {
  position: absolute;
  z-index: 21;
  top: 88px;
  right: 10px;
  width: min(344px, calc(100% - 20px));
  max-height: calc(100% - 108px);
  overflow-y: auto;
  padding: 14px;
  border: 1px solid rgba(245, 211, 31, 0.55);
  border-radius: 14px;
  background: rgba(18, 23, 33, 0.99);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.48);
  color: var(--text);
}

.tips-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tips-title-row h2 {
  margin: 0;
  color: var(--yellow);
  font-size: 0.88rem;
  text-transform: uppercase;
}

.tips-close {
  display: grid;
  flex: 0 0 28px;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.tips-close:hover,
.tips-close:focus-visible {
  border-color: var(--yellow);
  color: var(--yellow);
  outline: none;
}

.tips-description {
  margin: 7px 0 12px;
  color: var(--muted);
  font-size: 0.6rem;
  line-height: 1.45;
}

.tips-category {
  margin-top: 12px;
}

.tips-category h3 {
  margin: 0 0 7px;
  color: var(--yellow);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tips-prompt-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.tips-prompt {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(55, 117, 255, 0.38);
  border-radius: 7px;
  background: rgba(36, 75, 193, 0.12);
  color: var(--muted-strong);
  font-size: 0.58rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.tips-prompt:hover,
.tips-prompt:focus-visible {
  border-color: var(--blue-border);
  background: rgba(36, 75, 193, 0.3);
  color: #fff;
  outline: none;
}

.tips-hint {
  margin: 0;
  padding: 8px 9px;
  border-left: 2px solid var(--blue-border);
  background: rgba(36, 75, 193, 0.11);
  color: var(--muted-strong);
  font-size: 0.6rem;
  line-height: 1.45;
}

.settings-title-row,
.profile-picture-row,
.settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.settings-title-row {
  margin-bottom: 12px;
}

.settings-about {
  margin-left: auto;
  padding: 5px 7px;
  border: 1px solid rgba(55, 117, 255, 0.48);
  border-radius: 7px;
  background: rgba(36, 75, 193, 0.14);
  color: var(--muted-strong);
  font-size: 0.56rem;
  cursor: pointer;
}

.settings-about:hover,
.settings-about:focus-visible {
  border-color: var(--blue-border);
  color: #fff;
  outline: none;
}

.settings-title-row h2,
.settings-panel h3 {
  margin: 0;
  color: var(--yellow);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.settings-panel h3 {
  margin-bottom: 8px;
}

.settings-close {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
}

.profile-picture-row {
  justify-content: flex-start;
  margin-bottom: 12px;
}

.profile-picture-wrap {
  position: relative;
  display: grid;
  flex: 0 0 54px;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  background: var(--avatar-bg, #3158bf);
  color: #fff;
  font-size: 0.57rem;
  font-weight: 900;
}

.profile-picture-preview,
.profile-picture-placeholder {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.profile-picture-preview {
  transform-origin: center;
}

.avatar-crop-editor {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px 64px;
}

.avatar-crop-editor[hidden] {
  display: none;
}

.avatar-crop-viewport {
  position: relative;
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
  overflow: hidden;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  background: #090b10;
  cursor: grab;
  touch-action: none;
}

.avatar-crop-viewport:active {
  cursor: grabbing;
}

.avatar-crop-preview {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.avatar-crop-control {
  display: grid;
  flex: 1;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 0.62rem;
}

.avatar-crop-zoom {
  width: 100%;
  accent-color: var(--yellow);
}

.profile-picture-placeholder {
  display: grid;
  place-items: center;
}

.profile-upload-label,
.settings-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted-strong);
}

.profile-upload {
  width: 100%;
  max-width: 195px;
  color: var(--muted);
  font-size: 0.58rem;
}

.settings-field {
  margin-bottom: 11px;
}

.profile-vibe {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 7px;
  background: var(--panel-alt);
  color: var(--text);
  font-size: 0.67rem;
}

.settings-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.spicy-mode-toggle {
  accent-color: var(--yellow);
}

.settings-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.settings-save,
.settings-remove {
  padding: 7px 10px;
  border: 1px solid rgba(245, 211, 31, 0.45);
  border-radius: 7px;
  background: rgba(245, 211, 31, 0.12);
  color: var(--text);
  font-size: 0.62rem;
  cursor: pointer;
}

.settings-remove {
  border-color: rgba(255,255,255,0.15);
  background: transparent;
}

.settings-reset-chats {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 64, 88, 0.34);
  border-radius: 7px;
  background: rgba(255, 64, 88, 0.08);
  color: var(--muted-strong);
  font-size: 0.62rem;
  text-align: left;
  cursor: pointer;
}

.settings-reset-chats:hover,
.settings-reset-chats:focus-visible {
  border-color: var(--red);
  background: rgba(255, 64, 88, 0.16);
  color: #fff;
  outline: none;
}

.settings-save:disabled,
.settings-remove:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.settings-status {
  min-height: 1em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.58rem;
  line-height: 1.4;
}

@media (max-width: 420px) {
  .settings-panel {
    right: 7px;
    width: calc(100% - 14px);
  }

  .message-avatar {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }

  .message-content {
    flex-basis: calc(100% - 34px);
  }
}

@keyframes info-panel-enter {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-empty {
  margin: 14px;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
}

.unread-count {
  box-shadow: 0 0 8px rgba(255, 64, 88, 0.26);
  animation: notification-glow 2s ease-in-out infinite;
}

.unread-count.notification-pop {
  animation: notification-pop 300ms ease-out, notification-glow 2s ease-in-out 300ms infinite;
}

.unread-count.notification-cleared {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 180ms ease, transform 180ms ease;
}

@keyframes notification-pop {
  0% {
    transform: scale(0.65);
  }
  75% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes notification-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 64, 88, 0.18);
  }
  50% {
    box-shadow: 0 0 9px rgba(255, 64, 88, 0.38);
  }
}

.message-bubble {
  cursor: pointer;
}

.message-enter {
  animation: message-enter 250ms ease-out both;
}

@keyframes message-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reaction-menu {
  position: absolute;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  gap: 2px;
  width: 242px;
  padding: 5px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: var(--panel-bg);
  box-shadow: 0 6px 18px var(--shadow);
  opacity: 0;
  transform: scale(0.92);
  transform-origin: center;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

.reaction-menu-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.reaction-option {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease;
}

.reaction-option:hover,
.reaction-option:focus-visible {
  background: var(--card-bg);
  transform: scale(1.12);
  outline: none;
}

.reaction-option:active {
  transform: scale(0.9);
}

.reaction-bounce {
  animation: reaction-bounce 250ms ease-out;
}

@keyframes reaction-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(-3px);
  }
}

.typing-row {
  display: none;
}

.typing-row.typing-visible,
.typing-row.typing-hiding {
  display: flex;
}

.typing-row.typing-visible {
  animation: typing-fade-in 180ms ease-out both;
}

.typing-row.typing-hiding {
  animation: typing-fade-out 180ms ease-in both;
}

.typing-dot {
  flex: 0 0 7px;
  animation: typing-bounce 450ms ease-in-out infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 100ms;
}

.typing-dot:nth-child(3) {
  animation-delay: 200ms;
}

@keyframes typing-bounce {
  0%, 60%, 100% {
    opacity: 0.62;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes typing-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes typing-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.message-composer input {
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.message-composer input:focus {
  border-color: var(--blue-border);
  box-shadow: 0 0 0 2px rgba(55, 117, 255, 0.16);
}

.send-button,
.back-button,
.info-button,
.settings-button,
.tips-button {
  transition: transform 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.send-button:active,
.back-button:active,
.info-button:active,
.settings-button:active,
.tips-button:active {
  transform: scale(0.92);
}

.send-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  box-shadow: none;
}

.send-button.send-press {
  animation: send-press 150ms ease-out;
}

@keyframes send-press {
  50% {
    transform: scale(0.88);
  }
}

.keyboard-toggle {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: var(--panel-bg);
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
}

.keyboard-toggle:hover,
.keyboard-toggle[aria-expanded="true"] {
  background: var(--card-bg);
  color: var(--yellow);
}

.keyboard-toggle:active {
  transform: scale(0.92);
}

.custom-keyboard {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 7px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--phone-bg);
  opacity: 0;
  transform: translateY(12px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 250ms ease, transform 250ms ease, visibility 250ms;
}

.custom-keyboard.keyboard-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.keyboard-row {
  display: flex;
  justify-content: center;
  gap: 3px;
  min-height: 25px;
}

.keyboard-key {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  background: var(--card-bg);
  color: var(--text);
  font-size: 0.65rem;
  cursor: pointer;
  transition: background-color 100ms ease, transform 100ms ease, border-color 100ms ease;
}

.keyboard-key:active,
.keyboard-key-active {
  border-color: var(--yellow);
  background: var(--panel-alt);
  transform: translateY(1px);
}

.keyboard-wide {
  flex: 1.4 1 0;
  font-size: 0.54rem;
}

.keyboard-space {
  flex: 5 1 0;
  color: var(--muted-strong);
  font-size: 0.54rem;
}

.keyboard-row:nth-last-child(2) .keyboard-key {
  font-size: 0.82rem;
}

.chat-page .phone-shell .chat-messages {
  height: 468px;
}

.phone-shell.keyboard-open .chat-messages {
  height: 310px;
}

.chat-page .phone-shell .message-composer {
  bottom: 70px;
}

.phone-shell.keyboard-open .message-composer {
  z-index: 5;
  bottom: 184px;
}

.phone-shell.keyboard-open .bottom-nav,
.phone-shell.keyboard-open::after {
  display: none;
}

.nav-item {
  transition: color 160ms ease, transform 160ms ease;
}

.nav-item:hover,
.nav-item:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
  outline: none;
}

.nav-item.active:hover,
.nav-item.active:focus-visible {
  color: var(--yellow);
}

@media (pointer: coarse) {
  .keyboard-toggle {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-indicator,
  .unread-count,
  .unread-count.notification-pop,
  .message-enter,
  .reaction-bounce,
  .typing-dot,
  .send-button.send-press {
    animation: none !important;
  }

  .reaction-menu,
  .reaction-option,
  .typing-row,
  .message-composer input,
  .send-button,
  .back-button,
  .info-button,
  .settings-button,
  .tips-button,
  .keyboard-toggle,
  .custom-keyboard,
  .keyboard-key,
  .nav-item,
  .unread-count.notification-cleared {
    transition-duration: 0.01ms !important;
  }

  .info-panel.visible {
    animation: none;
  }
}

.messenger-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.messenger-header {
  justify-content: flex-start;
  gap: 12px;
}

.messenger-actions .settings-button,
.messenger-actions .archive-quick-link,
.messenger-actions .tips-button {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
}

.chat-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.chat-header-actions .archive-quick-link,
.chat-header-actions .settings-button,
.chat-header-actions .info-button,
.chat-header-actions .tips-button {
  display: grid;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
}

.messenger-actions .archive-quick-link,
.chat-header-actions .archive-quick-link {
  color: var(--muted-strong);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.info-panel {
  inset: 0 0 0 auto;
  z-index: 15;
  display: flex;
  width: min(88%, 320px);
  max-height: none;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 0;
  border-left: 1px solid rgba(245, 211, 31, 0.45);
  border-radius: 0 24px 24px 0;
  background: rgba(18, 23, 33, 0.98);
  color: var(--text);
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.3);
  visibility: hidden;
  transform: translateX(100%);
  pointer-events: none;
  transition: transform 220ms ease, visibility 220ms ease;
}

.info-panel.visible {
  display: flex;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
  animation: none;
}

.info-panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.info-panel-title-row h2 {
  margin: 0;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
}

.info-panel-close {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.info-profile-identity {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 8px 0;
  text-align: center;
}

.info-profile-avatar {
  width: 84px;
  height: 84px;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  object-fit: cover;
}

.info-profile-avatar[src$="wolverine-pfp.webp"] {
  object-position: center 20%;
}

.info-profile-codename,
.info-profile-name {
  margin: 0;
}

.info-profile-codename {
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.info-profile-name {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.info-profile-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: var(--panel-alt);
}

.info-profile-details dt {
  margin-top: 6px;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-profile-details dt:first-child {
  margin-top: 0;
}

.info-profile-details dd {
  margin: 0;
  color: var(--text);
  font-size: 0.68rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.info-profile-biography {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.72rem;
  line-height: 1.55;
}

.info-profile-member-section {
  border-top: 1px solid var(--card-border);
  padding-top: 10px;
}

.info-profile-member-section h3 {
  margin: 0 0 6px;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.info-profile-members {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-profile-members li {
  padding: 3px 7px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 0.58rem;
}

.doom-notice {
  position: absolute;
  z-index: 30;
  top: 28%;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 10px 14px;
  transform: translateX(-50%);
  border: 1px solid #78d66d;
  border-radius: 8px;
  background: rgba(11, 34, 20, 0.96);
  box-shadow: 0 0 22px rgba(67, 220, 87, 0.45);
  color: #b7ff9a;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  animation: doom-notice-enter 240ms ease-out both;
}

.phone-shell.doom-glitch {
  animation: doom-glitch 420ms ease-in-out 2;
}

.phone-shell.doom-glitch::after {
  background: #79ff73;
  box-shadow: 0 0 12px #79ff73;
}

@keyframes doom-glitch {
  0%, 100% { filter: none; transform: translateX(0); }
  25% { filter: hue-rotate(35deg); transform: translateX(-2px); }
  55% { filter: hue-rotate(75deg); transform: translateX(2px); }
}

@keyframes doom-notice-enter {
  from { opacity: 0; transform: translate(-50%, -8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (min-width: 721px) {
  body {
    background-image:
      linear-gradient(rgba(7, 10, 18, 0.42), rgba(7, 10, 18, 0.62)),
      url("../images/Desktop-Background.png");
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
  }
}

@media (max-width: 720px) {
  .info-panel {
    width: min(100%, 340px);
    border-radius: 0 24px 24px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .info-panel {
    transition: none;
  }

  .phone-shell.doom-glitch {
    animation: none;
  }

  .doom-notice {
    animation: none;
  }
}

.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-block: 32px;
}

@media (min-width: 721px) {
  .page-shell.home-board {
    padding: 0;
  }

  .home-board .phone-shell {
    margin-top: 0;
  }

  .page-shell.chat-page {
    max-width: none;
    padding: 0;
  }

  .chat-page .presentation-board {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    border: 0;
    background:
      linear-gradient(rgba(7, 10, 18, 0.16), rgba(7, 10, 18, 0.25)),
      url("../images/Desktop-Background.png") center / cover no-repeat;
  }

  .chat-page .phone-shell {
    margin: 0;
    transform: none;
  }
}

.presentation-board {
  width: 100%;
  margin-block: auto;
}

@media (max-width: 1000px) {
  .presentation-board::after {
    display: none;
  }

  .desktop-caption {
    left: 12px;
    width: min(190px, calc((100vw - 370px) / 2 - 28px));
  }

}

@media (max-width: 720px) {
  .page-shell {
    padding: 12px 10px 24px;
  }

  .presentation-board {
    min-height: 0;
  }

  .presentation-board::after {
    display: none;
  }

  .desktop-caption {
    display: none;
  }

  .phone-shell,
  .home-board .phone-shell {
    transform: none;
  }

  .presentation-board .brand-mark {
    top: 14px;
    right: 14px;
  }

  .phone-shell {
    margin-top: 38px;
  }

  .home-board .phone-shell {
    margin-top: 38px;
  }

}

@media (max-width: 420px) {
  .avatar-crop-editor {
    margin-left: 0;
  }
}

.archive-quick-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border: 1px solid rgba(55, 117, 255, 0.48);
  border-radius: 7px;
  background: rgba(36, 75, 193, 0.14);
  color: var(--muted-strong);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.archive-quick-link:hover,
.archive-quick-link:focus-visible {
  border-color: var(--blue-border);
  background: rgba(36, 75, 193, 0.3);
  color: #fff;
  outline: none;
}

.archive-quick-icon {
  color: var(--yellow);
  font-size: 0.88rem;
  line-height: 1;
}

.chat-topbar .archive-quick-link {
  padding: 3px 5px;
  font-size: 0.48rem;
}

.welcome-open {
  overflow: hidden;
}

.welcome-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 14px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(36, 75, 193, 0.24), transparent 58%),
    rgba(3, 6, 12, 0.88);
  backdrop-filter: blur(8px);
  animation: welcome-overlay-enter 240ms ease-out both;
}

.welcome-overlay[hidden] {
  display: none;
}

.welcome-dialog {
  position: relative;
  width: min(540px, 100%);
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  padding: clamp(20px, 5vw, 34px);
  border: 2px solid var(--yellow);
  border-radius: 16px;
  background:
    radial-gradient(circle, rgba(245, 211, 31, 0.09) 1px, transparent 1.6px) 0 0 / 9px 9px,
    linear-gradient(150deg, #19253e 0%, #111721 56%, #090b10 100%);
  box-shadow: 0 0 0 6px rgba(36, 75, 193, 0.18), 0 22px 70px rgba(0, 0, 0, 0.7);
  animation: welcome-panel-enter 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.welcome-dialog::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 22px;
  width: 54px;
  height: 5px;
  background: var(--blue-border);
  box-shadow: 68px 0 0 rgba(55, 117, 255, 0.44);
}

.welcome-eyebrow,
.welcome-feature-number {
  color: var(--yellow);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.welcome-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
}

.welcome-eyebrow i {
  font-size: 0.75rem;
}

.welcome-dialog h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.7rem, 7vw, 2.55rem);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 rgba(36, 75, 193, 0.76);
}

.welcome-dialog-copy {
  margin: 13px 0 18px;
  color: var(--muted-strong);
  font-size: 0.88rem;
  line-height: 1.55;
}

.welcome-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.welcome-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(7, 11, 19, 0.72);
}

.welcome-feature-number {
  flex: 0 0 auto;
  font-size: 0.58rem;
}

.welcome-feature-text {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.4;
}

.welcome-feature-text strong {
  color: var(--text);
  font-size: 0.69rem;
}

.welcome-fan-note {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--blue-border);
  background: rgba(36, 75, 193, 0.13);
  color: var(--muted-strong);
  font-size: 0.65rem;
  line-height: 1.5;
}

.welcome-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.welcome-enter,
.welcome-close {
  min-height: 44px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.welcome-enter {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid #ffe45c;
  background: var(--yellow);
  box-shadow: 0 4px 0 #987d0b;
  color: #11151d;
  text-transform: uppercase;
}

.welcome-enter:hover,
.welcome-enter:focus-visible {
  background: #ffe45c;
  outline: 3px solid var(--blue-border);
  outline-offset: 2px;
}

.welcome-close {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--muted-strong);
}

.welcome-close[hidden] {
  display: none;
}

.welcome-close:hover,
.welcome-close:focus-visible {
  border-color: var(--muted-strong);
  color: #fff;
  outline: none;
}

.welcome-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.4;
}

@keyframes welcome-overlay-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes welcome-panel-enter {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 720px) {
  .desktop-caption {
    display: none;
  }

  .presentation-board .brand-mark {
    top: 14px;
    right: auto;
    left: 14px;
    font-size: 0.86rem;
  }

  .archive-quick-link {
    padding: 4px 5px;
    font-size: 0.48rem;
  }
}

@media (max-width: 380px) {
  .welcome-overlay {
    padding: 8px;
  }

  .welcome-dialog {
    max-height: calc(100dvh - 16px);
    padding: 18px 14px;
  }

  .welcome-feature-list {
    gap: 6px;
  }

  .welcome-feature-list li {
    gap: 6px;
    padding: 8px 6px;
  }

  .welcome-feature-text {
    font-size: 0.59rem;
  }

  .welcome-feature-text strong {
    font-size: 0.64rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-overlay,
  .welcome-dialog {
    animation: none;
  }

  .desktop-caption,
  .archive-quick-link {
    transition-duration: 0.01ms !important;
  }
}
