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

:root {
  --black: #111;
  --white: #fff;
  --grey: #888;
  --red: #e94560;
  --yellow: #f6c90e;
  --bg: #1a1a1a;
  --surface: #2a2a2a;
  --border: #3a3a3a;
}

html, body { height: 100%; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Screens ── */
.screen { display: none; min-height: 100vh; flex-direction: column; }
.screen.active { display: flex; }

/* ── Landing ── */
#screen-landing {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  background: var(--black);
}
.cah-logo { font-size: 5rem; margin-bottom: 20px; }
#screen-landing h1 { font-size: 2.2rem; text-transform: uppercase; letter-spacing: 3px; }
.tagline { color: var(--grey); margin: 12px 0 32px; font-size: 1.1rem; }
.tagline em { color: var(--white); font-style: italic; }
.landing-form { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 340px; }
.landing-form input { text-align: center; }
.disclaimer { color: #555; font-size: 0.78rem; margin-top: 30px; }
.disclaimer a { color: #888; }
.build-tag {
  color: #cfd5dd;
  font-size: 0.78rem;
  margin-top: 8px;
  line-height: 1.35;
  word-break: break-word;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 8px 10px;
}

.app-build-badge {
  position: fixed;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 999;
  background: rgba(0, 0, 0, 0.78);
  color: #f0f3f7;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.25px;
  pointer-events: none;
}

/* ── Top bar ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--black);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  flex-shrink: 0;
}
.player-greeting { color: var(--white); }
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-state-text {
  color: #8a8f98;
  font-size: 0.78rem;
  letter-spacing: 0.2px;
}

/* ── Buttons ── */
input[type="text"], input[type="number"], input[type="email"], input[type="password"], textarea {
  background: #222;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  padding: 12px 16px;
  font-size: 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
input:focus { border-color: var(--white); }
input::placeholder { color: #555; }
textarea:focus { border-color: var(--white); }
textarea::placeholder { color: #555; }
textarea { resize: vertical; min-height: 120px; }

button { cursor: pointer; font-family: inherit; font-weight: 700; border-radius: 8px; border: none; transition: opacity 0.2s, transform 0.15s; }
button:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-white { background: var(--white); color: var(--black); padding: 14px 28px; font-size: 1rem; }
.btn-ghost  { background: transparent; color: var(--grey); border: 1px solid var(--border); padding: 8px 16px; font-size: 0.85rem; }
.btn-ghost.back { color: var(--white); }
.btn-ghost:hover { color: var(--white); border-color: var(--white); }
.sm { padding: 10px 16px; font-size: 0.9rem; }

/* ── Menu ── */
#screen-menu { background: var(--black); }
.menu-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 20px; }
.menu-body h2 { margin-bottom: 28px; font-size: 1.4rem; color: var(--grey); }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 400px; }
.menu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
  color: var(--white);
}
.menu-card:hover { border-color: var(--white); transform: translateY(-3px); }
.mc-icon  { font-size: 2.4rem; }
.mc-label { font-size: 0.9rem; font-weight: 700; }

/* ── Forms ── */
.form-body, .lobby-body, .stats-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 20px;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}
.form-body label { color: var(--grey); font-size: 0.85rem; font-weight: 700; margin-top: 4px; }

/* ── Mode selector ── */
.mode-selector { display: flex; gap: 10px; flex-wrap: wrap; }
.mode-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: border-color 0.2s;
  font-size: 0.9rem;
}
.mode-opt:has(input:checked) { border-color: var(--white); }
.mode-opt input { display: none; }

/* ── Room code ── */
.room-code-box { text-align: center; }
.room-code-box p { color: var(--grey); font-size: 0.85rem; }
.code-display {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 8px;
  color: var(--yellow);
  margin: 8px 0;
}
.mode-badge {
  text-align: center;
  padding: 6px 18px;
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--grey);
  align-self: center;
}
.player-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.player-chip {
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.player-chip.host { border-color: var(--yellow); color: var(--yellow); }
.player-chip .bot-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #444;
  object-fit: cover;
}
.room-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.row { display: flex; gap: 10px; }
.row input { flex: 1; }

.wallet-bar {
  display: flex;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.wallet-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: #d7d7d7;
}

.deck-store-topbar {
  gap: 12px;
}

.deck-store-topbar > span {
  margin-right: auto;
}

.deck-store-message {
  color: var(--grey);
  font-size: 0.85rem;
}

.deck-store-message-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.deck-store-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deck-category-group {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #181818;
}

.deck-category-header {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: #202020;
  color: #f2f2f2;
  border: none;
  border-bottom: 1px solid #313131;
  padding: 11px 12px;
  font-weight: 800;
}

.deck-category-header > span:first-child {
  overflow-wrap: anywhere;
}

.category-count {
  color: #bdbdbd;
  font-size: 0.8rem;
  font-weight: 700;
}

.category-toggle {
  color: #f0f0f0;
  font-size: 1rem;
}

.deck-category-body {
  padding: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.deck-category-group.collapsed .deck-category-body {
  display: none;
}

.deck-category-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 12px;
}

.deck-name-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 4px;
}

.deck-name-item {
  text-align: left;
  border: 1px solid #3a3a3a;
  background: rgba(18, 18, 18, 0.86);
  color: #dbdbdb;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 0.85rem;
  font-weight: 700;
}

.deck-name-item.active {
  border-color: #f6c90e;
  color: #fff;
  background: rgba(40, 40, 40, 0.94);
}

.deck-preview-panel {
  min-width: 0;
}

.deck-empty {
  color: #cacaca;
  background: rgba(20, 20, 20, 0.86);
  border: 1px solid #343434;
  border-radius: 10px;
  padding: 12px;
}

.deck-card {
  background: rgba(28, 28, 28, 0.92);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 124px 148px;
  align-items: center;
  gap: 12px;
}

.deck-left h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.deck-description {
  color: #d2d2d2;
  font-size: 0.82rem;
  line-height: 1.35;
  margin-bottom: 8px;
}

.deck-center {
  display: flex;
  justify-content: center;
}

.deck-right {
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  justify-self: end;
}

.deck-cover-wrap {
  position: relative;
  width: 108px;
  height: 152px;
  margin: 0 auto 4px;
  border-radius: 12px;
  border: 2px solid #d9d9d9;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.deck-cover-wrap::before,
.deck-cover-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 2px solid #cfcfcf;
  background: #f7f7f7;
  z-index: -1;
}

.deck-cover-wrap::before {
  transform: translate(-7px, 8px) rotate(-7deg);
}

.deck-cover-wrap::after {
  transform: translate(7px, 8px) rotate(7deg);
}

.deck-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.deck-meta {
  display: flex;
  gap: 8px;
  color: var(--grey);
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.deck-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.deck-price {
  font-size: 0.9rem;
  text-align: right;
  color: #f1f1f1;
  font-weight: 700;
}

.deck-price span {
  color: var(--grey);
  font-weight: 600;
}

.nsfw-opt {
  margin-top: 2px;
  width: fit-content;
}

.nsfw-opt input {
  display: inline-block;
  width: 16px;
  height: 16px;
}

.deck-tag-selected {
  color: var(--yellow);
  font-weight: 700;
}

.deck-store-actions {
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #1f1f1f;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.deck-store-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

#deckCartSummary {
  color: var(--grey);
  font-size: 0.85rem;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 16px;
}

.checkout-modal.hidden {
  display: none;
}

.checkout-card {
  width: 100%;
  max-width: 560px;
  background: #161616;
  border: 1px solid #3b3b3b;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-note {
  color: var(--grey);
  font-size: 0.85rem;
}

.checkout-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.checkout-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #222;
  padding: 10px;
}

.checkout-item-meta {
  color: var(--grey);
  font-size: 0.8rem;
  margin-top: 2px;
}

.checkout-total {
  font-weight: 700;
  color: #e9e9e9;
}

@media (max-width: 760px) {
  .deck-store-topbar {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 6px;
  }

  .deck-store-topbar > span {
    order: 2;
    flex-basis: 100%;
    margin-right: 0;
    text-align: center;
  }

  .wallet-inline {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .deck-category-body {
    padding: 10px;
  }

  .deck-category-grid {
    grid-template-columns: 1fr;
  }

  .deck-name-list {
    max-height: 240px;
    padding-right: 0;
  }

  .deck-name-item {
    min-height: 40px;
    font-size: 0.9rem;
  }

  .deck-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .deck-center {
    justify-content: flex-start;
  }

  .deck-right {
    align-items: flex-start;
  }

  .deck-actions {
    justify-content: flex-start;
  }

  .deck-price {
    text-align: left;
  }

  .wallet-inline {
    font-size: 0.78rem;
    gap: 8px;
  }

  .deck-store-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .deck-store-actions-right {
    width: 100%;
    flex-direction: column;
  }

  #deckCartSummary {
    text-align: center;
  }

  #btnOpenImportDeck,
  #btnOpenCheckout {
    width: 100%;
  }

  .checkout-card {
    max-width: 100%;
    padding: 14px;
  }

  .checkout-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .checkout-item .btn-ghost {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .topbar,
  .game-topbar {
    padding: 10px 12px;
  }

  .form-body,
  .lobby-body,
  .stats-body {
    padding: 20px 12px;
  }

  .deck-category-header {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'title toggle'
      'count count';
    row-gap: 4px;
    column-gap: 8px;
    padding: 10px;
  }

  .deck-category-header > span:first-child {
    grid-area: title;
    font-size: 0.93rem;
  }

  .category-toggle {
    grid-area: toggle;
    justify-self: end;
  }

  .category-count {
    grid-area: count;
    font-size: 0.74rem;
  }

  .deck-card {
    padding: 10px;
    gap: 10px;
  }

  .deck-left h4 {
    font-size: 0.95rem;
  }

  .deck-description {
    font-size: 0.8rem;
  }

  .deck-cover-wrap {
    width: 94px;
    height: 134px;
  }

  .checkout-head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .checkout-head .btn-ghost {
    width: 100%;
  }
}

@media (max-width: 340px) {
  .topbar {
    align-items: flex-start;
    gap: 8px;
  }

  .topbar-actions {
    flex-direction: column;
    align-items: flex-end;
  }

  .topbar .btn-ghost {
    width: auto;
  }

  .menu-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .btn-white,
  .btn-ghost {
    width: 100%;
  }

  .deck-name-item {
    font-size: 0.84rem;
    padding: 8px;
  }
}

/* ── Friends ── */
.friend-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.friend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
}

.owned-deck-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #232323;
}

.owned-deck-item + .owned-deck-item {
  margin-top: 8px;
}

.owned-deck-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.owned-deck-item summary::-webkit-details-marker {
  display: none;
}

.owned-deck-name {
  font-weight: 800;
  color: #f2f2f2;
}

.owned-deck-meta {
  color: #b4b4b4;
  font-size: 0.8rem;
}

.owned-deck-cards-wrap {
  margin-top: 10px;
  border-top: 1px solid #3a3a3a;
  padding-top: 10px;
}

.owned-deck-cards {
  margin: 0;
  padding-left: 18px;
  max-height: 240px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #d7d7d7;
  font-size: 0.84rem;
  line-height: 1.35;
}
.friend-name { font-weight: 700; }
.friend-status { color: var(--grey); font-size: 0.82rem; }

/* ── Stats ── */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
}
.stat-num { font-size: 2.4rem; font-weight: 900; color: var(--white); }
.stat-label { color: var(--grey); font-size: 0.8rem; margin-top: 4px; }

/* ── Game ── */
.game-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  background: var(--black);
  padding: 12px 20px;
  flex-shrink: 0;
}
#gameRoundInfo, #gameScoreInfo { font-size: 0.9rem; font-weight: 700; }
#gameScoreInfo { margin-right: auto; }

.black-card-wrap { padding: 20px; display: flex; justify-content: center; }
.black-card {
  background: var(--black);
  border: 2px solid var(--white);
  border-radius: 16px;
  padding: 24px;
  max-width: 400px;
  width: 100%;
  position: relative;
  min-height: 140px;
}
.black-card p { font-size: 1.15rem; font-weight: 700; line-height: 1.6; }
.pick-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: var(--white);
  color: var(--black);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 3px 10px;
}
.czar-banner {
  text-align: center;
  background: rgba(246,201,14,0.15);
  color: var(--yellow);
  border: 1px solid rgba(246,201,14,0.3);
  padding: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 20px;
  border-radius: 10px;
}
.hand-section, .czar-section { padding: 0 16px 20px; }
.hand-label { color: var(--grey); font-size: 0.85rem; margin-bottom: 12px; }
.hand-cards {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.play-drop-zone {
  margin: 10px 0 12px;
  border: 2px dashed #4a4a4a;
  border-radius: 12px;
  background: #1d1d1d;
  padding: 12px;
  min-height: 76px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: #a7a7a7;
  text-align: center;
}

.play-drop-zone.is-over {
  border-color: var(--yellow);
  background: #2a2414;
}

.play-slot-card {
  background: #fff;
  color: #111;
  border-radius: 10px;
  border: 2px solid #e6c94f;
  padding: 8px 10px;
  min-width: 130px;
  max-width: 180px;
  font-size: 0.78rem;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.play-slot-remove {
  border: 1px solid #3a3a3a;
  background: transparent;
  color: #555;
  font-size: 0.7rem;
  padding: 4px 6px;
}

.judge-drop-zone {
  margin-top: 12px;
}

.submission-card {
  cursor: pointer;
}

.submission-card.pending-winner {
  border-color: var(--yellow);
  box-shadow: 0 0 0 2px rgba(246, 201, 14, 0.25);
}
.white-card {
  background: var(--white);
  color: var(--black);
  border-radius: 12px;
  padding: 16px;
  min-width: 140px;
  max-width: 160px;
  min-height: 110px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1.5;
  border: 3px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}
.white-card:hover { transform: translateY(-4px); }
.white-card.selected { border-color: var(--yellow); }
.white-card.winner-card { border-color: var(--yellow); }
.submitted-cards { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Result ── */
#screen-result { align-items: center; justify-content: center; background: var(--black); }
.result-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 30px 20px;
  max-width: 500px;
  width: 100%;
}
.result-card-combo { display: flex; flex-direction: column; gap: 10px; align-items: center; width: 100%; }
.black-card.mini, .white-card.mini { max-width: 100%; width: 100%; min-height: auto; min-width: unset; }
.round-winner-box {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
}
.scoreboard {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border-radius: 10px;
  padding: 10px 16px;
}
.score-name { font-weight: 700; }
.score-pts  { color: var(--yellow); font-weight: 900; font-size: 1.1rem; }

/* ── Game Over ── */
#screen-gameover { align-items: center; justify-content: center; background: var(--black); }
.gameover-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 20px;
  text-align: center;
  max-width: 460px;
  width: 100%;
}
.trophy { font-size: 5rem; }
.gameover-winner { font-size: 1.6rem; font-weight: 900; color: var(--yellow); }
.gameover-praise  { color: var(--grey); font-style: italic; font-size: 1rem; padding: 10px 0; }
.gameover-scores { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }

/* ── Phase D: Chat ── */
.chat-panel {
  width: 100%;
  max-width: 520px;
  margin: 12px auto 0;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 8px;
}
.chat-collapsible > summary {
  cursor: pointer;
  font-size: .9rem;
  color: var(--grey);
  padding: 4px 0;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
}
.chat-collapsible > summary::-webkit-details-marker { display: none; }
.chat-messages {
  min-height: 60px;
  max-height: 160px;
  overflow-y: auto;
  background: rgba(0,0,0,.35);
  border-radius: 8px;
  padding: 8px 10px;
  margin: 6px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chat-msg { display: flex; flex-direction: column; align-items: flex-start; }
.chat-msg-mine { align-items: flex-end; }
.chat-name { font-size: .65rem; color: var(--grey); margin-bottom: 1px; }
.chat-text {
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 4px 10px;
  font-size: .88rem;
  color: #fff;
  word-break: break-word;
  max-width: 90%;
}
.chat-msg-mine .chat-text { background: rgba(255,220,0,.18); }
.chat-input-row {
  display: flex;
  gap: 8px;
}
.chat-input-row input {
  flex: 1;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  padding: 7px 12px;
  color: #fff;
  font-size: .9rem;
}
.chat-input-row input::placeholder { color: var(--grey); }
