/* Shared game chat — DDD open lobby + WetDrool 18+
   Time Gods MIND bureau chrome · hard corners · mono stamps · gold/mind accents */

.gchat {
  --gchat-accent: #ffd24a;
  --gchat-mind: #9dccff;
  --gchat-ink: #f5ecd8;
  --gchat-muted: #a89878;
  --gchat-line: rgba(255, 210, 74, 0.22);
  --gchat-bg: linear-gradient(165deg, rgba(255, 210, 74, 0.06), transparent 42%),
    rgba(8, 7, 5, 0.72);
  --gchat-radius: 3px;
  --gchat-mono: "IBM Plex Mono", ui-monospace, monospace;
  --gchat-serif: "Instrument Serif", Georgia, serif;
  margin-top: 1.25rem;
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: var(--gchat-radius);
  border: 1px solid var(--gchat-line);
  background: var(--gchat-bg);
  color: var(--gchat-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 210, 74, 0.06),
    0 18px 40px rgba(0, 0, 0, 0.28);
  position: relative;
}

/* foil ticket notch strip + MAPLE CLUB serial stamp */
.gchat::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 52px;
  height: 18px;
  border-radius: 2px;
  border: 1px solid rgba(255, 210, 74, 0.45);
  background:
    linear-gradient(105deg, #c9a227 0%, #f0d78c 42%, #ffe9a8 50%, #c9a227 100%);
  box-shadow: 0 0 14px rgba(255, 210, 74, 0.22);
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}
.gchat::after {
  content: "MAPLE CLUB";
  position: absolute;
  top: 11px;
  right: 14px;
  z-index: 2;
  width: 48px;
  height: 16px;
  display: grid;
  place-content: center;
  font-family: var(--gchat-mono);
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #1a1408;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  pointer-events: none;
  border-radius: 1px;
  background:
    linear-gradient(
      115deg,
      transparent 28%,
      rgba(255, 255, 255, 0.35) 48%,
      transparent 64%
    ),
    transparent;
  background-size: 200% 100%;
  animation: gchat-foil-sheen 3.6s ease-in-out infinite;
}
@keyframes gchat-foil-sheen {
  0%, 55% { background-position: 120% 0; }
  85%, 100% { background-position: -40% 0; }
}

.gchat[data-rating="adult"] {
  --gchat-accent: #ff7a9c;
  --gchat-mind: #c9a0ff;
  --gchat-ink: #fce8ef;
  --gchat-muted: #c4a0ad;
  --gchat-line: rgba(255, 45, 106, 0.35);
  --gchat-bg: linear-gradient(165deg, rgba(140, 82, 255, 0.12), transparent 40%),
    linear-gradient(200deg, rgba(255, 145, 77, 0.06), transparent 55%),
    rgba(14, 4, 10, 0.88);
  color: var(--gchat-ink);
}
.gchat[data-rating="adult"]::before {
  border-color: rgba(255, 122, 156, 0.5);
  background: linear-gradient(105deg, #8c52ff 0%, #ff7a9c 48%, #ff914d 100%);
  box-shadow: 0 0 16px rgba(255, 45, 106, 0.28);
}
.gchat[data-rating="adult"]::after {
  content: "WET CLUB 18+";
  color: #1a0610;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
  letter-spacing: 0.04em;
  font-size: 5.5px;
  background:
    linear-gradient(
      115deg,
      transparent 28%,
      rgba(255, 255, 255, 0.4) 48%,
      transparent 64%
    ),
    transparent;
  background-size: 200% 100%;
}

/* perforation notch beside foil stamp */
.gchat {
  --gchat-notch: #0b0a08;
}
.gchat__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  padding-right: 4.5rem; /* room for foil stamp */
  position: relative;
}
.gchat__head::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 66px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gchat-notch);
  box-shadow: inset 0 0 0 1px rgba(240, 215, 140, 0.55);
  pointer-events: none;
}
.gchat[data-rating="adult"] {
  --gchat-notch: #12040a;
}
.gchat[data-rating="adult"] .gchat__head::after {
  box-shadow: inset 0 0 0 1px rgba(255, 122, 156, 0.45);
}

.gchat__kicker {
  margin: 0;
  font-family: var(--gchat-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gchat-mind);
}

.gchat[data-rating="adult"] .gchat__kicker {
  color: var(--gchat-accent);
}

.gchat__title {
  margin: 0.25rem 0 0;
  font-family: var(--gchat-serif);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--gchat-ink);
}

.gchat__status {
  margin: 0;
  align-self: flex-start;
  padding: 6px 10px;
  border: 1px solid var(--gchat-line);
  border-radius: var(--gchat-radius);
  font-size: 0.72rem;
  font-family: var(--gchat-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gchat-muted);
  background: rgba(0, 0, 0, 0.35);
}
.gchat__status[data-kind="err"] {
  color: #ff8a8a;
  border-color: rgba(255, 138, 138, 0.35);
}
.gchat__status[data-kind="live"] {
  color: var(--gchat-mind);
  border-color: rgba(157, 204, 255, 0.4);
  box-shadow: 0 0 12px rgba(157, 204, 255, 0.12);
}

.gchat__lede {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: var(--gchat-muted);
  line-height: 1.45;
  text-wrap: pretty;
  max-width: 62ch;
}

.gchat__advanced {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: var(--gchat-muted);
}
.gchat__advanced summary {
  cursor: pointer;
  font-family: var(--gchat-mono);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  color: var(--gchat-accent);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.gchat--easy .gchat__log {
  min-height: 12rem;
  max-height: 20rem;
}
.gchat--easy .gchat__form textarea {
  min-height: 3.25rem;
}

.gchat__e2ee-note {
  margin: 0 0 0.85rem;
  font-family: var(--gchat-mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--gchat-muted);
  opacity: 0.9;
}

.gchat__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  align-items: end;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  color: var(--gchat-muted);
}

.gchat__meta label {
  display: grid;
  gap: 0.25rem;
  font-family: var(--gchat-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gchat__meta input {
  min-height: 44px;
  min-width: 7.5rem;
  padding: 0 0.65rem;
  border-radius: var(--gchat-radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #050504;
  color: var(--gchat-ink);
  font: 500 0.88rem/1.2 system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
.gchat__meta input:focus-visible {
  outline: 2px solid var(--gchat-mind);
  outline-offset: 1px;
  border-color: rgba(157, 204, 255, 0.45);
}

.gchat__btn,
.gchat__send {
  min-height: 44px;
  padding: 0 1rem;
  border-radius: var(--gchat-radius);
  border: 1px solid color-mix(in oklab, var(--gchat-accent) 48%, transparent);
  background: color-mix(in oklab, var(--gchat-accent) 14%, transparent);
  color: var(--gchat-ink);
  font: 650 0.78rem var(--gchat-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.gchat__btn:hover {
  background: color-mix(in oklab, var(--gchat-accent) 22%, transparent);
}
.gchat__btn:focus-visible,
.gchat__send:focus-visible,
.gchat__agent:focus-visible,
.gchat__meme:focus-visible {
  outline: 2px solid var(--gchat-mind);
  outline-offset: 2px;
}
.gchat__btn.ghost {
  background: transparent;
  color: var(--gchat-muted);
  border-color: rgba(255, 255, 255, 0.14);
}
.gchat__send {
  background: linear-gradient(180deg, #ffe27a 0%, var(--gchat-accent) 55%, #c9a227 100%);
  color: #14110a;
  border: 1px solid #f0d78c;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(255, 210, 74, 0.22);
}
.gchat__send:hover {
  filter: brightness(1.04);
}
.gchat[data-rating="adult"] .gchat__send {
  background: linear-gradient(135deg, #ff2d6a, #8c52ff 70%, #ff914d);
  color: #fff;
  border-color: rgba(255, 122, 156, 0.55);
  box-shadow: 0 6px 20px rgba(255, 45, 106, 0.25);
}

.gchat__agents {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.gchat__agent {
  min-height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--gchat-radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: var(--gchat-muted);
  font: 650 0.72rem var(--gchat-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.gchat__agent:hover {
  color: var(--gchat-ink);
  border-color: rgba(255, 255, 255, 0.22);
}
.gchat__agent.is-on {
  border-color: var(--gchat-accent);
  color: var(--gchat-ink);
  background: color-mix(in oklab, var(--gchat-accent) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--gchat-accent) 25%, transparent);
}

/* persona tints — hierarchy without icon toppers */
.gchat__agent[data-agent="droc"].is-on {
  border-color: #ffd24a;
  color: #ffd24a;
}
.gchat__agent[data-agent="ari"].is-on {
  border-color: #ff7eb6;
  color: #ff7eb6;
}
.gchat__agent[data-agent="host"].is-on,
.gchat__agent[data-agent="coach"].is-on {
  border-color: var(--gchat-mind);
  color: var(--gchat-mind);
}
.gchat__agent[data-agent="rival"].is-on {
  border-color: #df584b;
  color: #ff9a90;
}
.gchat__agent--people.is-on,
.gchat__agent[data-agent="people"].is-on {
  border-color: #5eead4;
  color: #5eead4;
  background: rgba(94, 234, 212, 0.12);
}
.gchat__people {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: var(--gchat-muted);
}
.gchat__people-label {
  font-family: var(--gchat-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5eead4;
  font-weight: 800;
}
.gchat__mode {
  margin: 0 0 10px;
  font-size: 0.78rem;
  opacity: 0.9;
  padding: 6px 10px;
  border-radius: var(--gchat-radius, 6px);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.gchat__mode[data-mode="people"] {
  border-color: rgba(94, 234, 212, 0.28);
  color: #b8fff3;
}
.gchat__mode[data-mode="hermes"] {
  border-color: color-mix(in oklab, var(--gchat-accent) 35%, transparent);
}
.gchat__msg--human .gchat__who {
  color: #5eead4;
}

.gchat__log {
  min-height: 10.5rem;
  max-height: 18rem;
  overflow: auto;
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  padding: 0.7rem;
  border-radius: var(--gchat-radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 1px dashed rgba(255, 210, 74, 0.22);
  background:
    radial-gradient(circle at 0 12px, transparent 5px, transparent 6px),
    radial-gradient(circle at 100% 12px, transparent 5px, transparent 6px),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 23px,
      rgba(255, 210, 74, 0.025) 23px,
      rgba(255, 210, 74, 0.025) 24px
    ),
    rgba(0, 0, 0, 0.45);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 210, 74, 0.35) transparent;
  position: relative;
}
.gchat[data-rating="adult"] .gchat__log {
  border-top-color: rgba(255, 122, 156, 0.28);
  scrollbar-color: rgba(255, 122, 156, 0.4) transparent;
}

.gchat__msg {
  padding: 0.45rem 0.55rem 0.5rem;
  border-radius: var(--gchat-radius);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}
/* micro ticket notches on human lines */
.gchat__msg--user::before,
.gchat__msg--user::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(8, 7, 5, 0.95);
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 1px rgba(157, 204, 255, 0.28);
  pointer-events: none;
  opacity: 0.9;
}
.gchat__msg--user::before { left: -3.5px; }
.gchat__msg--user::after { right: -3.5px; }
.gchat[data-rating="adult"] .gchat__msg--user::before,
.gchat[data-rating="adult"] .gchat__msg--user::after {
  box-shadow: inset 0 0 0 1px rgba(255, 122, 156, 0.35);
}
.gchat__msg p {
  margin: 0.2rem 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.92rem;
  line-height: 1.4;
  text-wrap: pretty;
}

.gchat__who {
  font-family: var(--gchat-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gchat-muted);
}

/* weight via surface + type — not decorative left rails */
.gchat__msg--bot {
  background: linear-gradient(90deg, rgba(255, 210, 74, 0.08), rgba(255, 255, 255, 0.03) 28%);
  border: 1px solid rgba(255, 210, 74, 0.12);
}
.gchat__msg--bot .gchat__who {
  color: var(--gchat-accent);
}
.gchat__msg--user {
  background: rgba(157, 204, 255, 0.05);
  border: 1px solid rgba(157, 204, 255, 0.1);
}
.gchat__msg--user .gchat__who {
  color: var(--gchat-mind);
}

.gchat[data-rating="adult"] .gchat__msg--bot {
  background: linear-gradient(90deg, rgba(255, 45, 106, 0.1), rgba(255, 255, 255, 0.03) 30%);
  border-color: rgba(255, 122, 156, 0.16);
}

/* cast persona micro-stamps on bot lines (weight via type, not icon toppers) */
.gchat__msg--bot[data-agent="ari"] {
  background: linear-gradient(90deg, rgba(255, 126, 182, 0.1), rgba(255, 255, 255, 0.03) 30%);
  border-color: rgba(255, 126, 182, 0.18);
}
.gchat__msg--bot[data-agent="ari"] .gchat__who { color: #ff7eb6; }
.gchat__msg--bot[data-agent="droc"] {
  background: linear-gradient(90deg, rgba(255, 210, 74, 0.12), rgba(255, 255, 255, 0.03) 30%);
  border-color: rgba(255, 210, 74, 0.2);
}
.gchat__msg--bot[data-agent="droc"] .gchat__who { color: #ffd24a; }
.gchat__msg--bot[data-agent="host"],
.gchat__msg--bot[data-agent="coach"] {
  background: linear-gradient(90deg, rgba(157, 204, 255, 0.1), rgba(255, 255, 255, 0.03) 30%);
  border-color: rgba(157, 204, 255, 0.18);
}
.gchat__msg--bot[data-agent="host"] .gchat__who,
.gchat__msg--bot[data-agent="coach"] .gchat__who { color: #9dccff; }
.gchat__msg--bot[data-agent="rival"] {
  background: linear-gradient(90deg, rgba(223, 88, 75, 0.1), rgba(255, 255, 255, 0.03) 30%);
  border-color: rgba(223, 88, 75, 0.2);
}
.gchat__msg--bot[data-agent="rival"] .gchat__who { color: #ff9a90; }
/* story-run topic accents (weight via surface — not icon toppers) */
.gchat__msg--bot[data-topic="story"] {
  box-shadow: inset 0 0 0 1px rgba(255, 210, 74, 0.1);
  background:
    linear-gradient(90deg, rgba(255, 210, 74, 0.08), rgba(255, 255, 255, 0.03) 32%);
  border-color: rgba(255, 210, 74, 0.18);
}
.gchat__msg--bot[data-topic="story"] .gchat__who {
  color: #f0d78c;
}
/* L11 lantern orange */
.gchat__msg--bot[data-topic="l11"] {
  box-shadow: inset 0 0 0 1px rgba(255, 106, 74, 0.12);
  background:
    linear-gradient(90deg, rgba(255, 106, 74, 0.1), rgba(255, 255, 255, 0.03) 32%);
  border-color: rgba(255, 106, 74, 0.2);
}
.gchat__msg--bot[data-topic="l11"] .gchat__who {
  color: #ff8a68;
}
/* L12 skybridge cyan */
.gchat__msg--bot[data-topic="l12"] {
  box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.14);
  background:
    linear-gradient(90deg, rgba(94, 234, 212, 0.1), rgba(255, 255, 255, 0.03) 32%);
  border-color: rgba(94, 234, 212, 0.22);
}
.gchat__msg--bot[data-topic="l12"] .gchat__who {
  color: #5eead4;
}
/* L13 Broadcast Spire violet-gold crown */
.gchat__msg--bot[data-topic="l13"] {
  box-shadow: inset 0 0 0 1px rgba(196, 160, 255, 0.16);
  background:
    linear-gradient(90deg, rgba(196, 160, 255, 0.12), rgba(255, 210, 74, 0.05) 40%, rgba(255, 255, 255, 0.03) 70%);
  border-color: rgba(196, 160, 255, 0.28);
}
.gchat__msg--bot[data-topic="l13"] .gchat__who {
  color: #c4a0ff;
}
/* L14 Afterglow Court rose-amber */
.gchat__msg--bot[data-topic="l14"] {
  box-shadow: inset 0 0 0 1px rgba(255, 154, 120, 0.16);
  background:
    linear-gradient(90deg, rgba(255, 154, 120, 0.12), rgba(255, 210, 74, 0.05) 42%, rgba(255, 255, 255, 0.03) 72%);
  border-color: rgba(255, 154, 120, 0.28);
}
.gchat__msg--bot[data-topic="l14"] .gchat__who {
  color: #ff9a78;
}
/* L15 Cobalt Line electric blue */
.gchat__msg--bot[data-topic="l15"] {
  box-shadow: inset 0 0 0 1px rgba(91, 140, 255, 0.18);
  background:
    linear-gradient(90deg, rgba(91, 140, 255, 0.13), rgba(200, 220, 255, 0.05) 42%, rgba(255, 255, 255, 0.03) 72%);
  border-color: rgba(91, 140, 255, 0.3);
}
.gchat__msg--bot[data-topic="l15"] .gchat__who {
  color: #8eb0ff;
}

/* persona serial foil micro-stamp on bot who lines */
.gchat__msg--bot .gchat__who {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.gchat__msg--bot .gchat__who::after {
  content: "CLUB";
  display: inline-grid;
  place-content: center;
  min-width: 2.4rem;
  height: 12px;
  padding: 0 4px;
  border-radius: 1px;
  border: 1px solid rgba(255, 210, 74, 0.4);
  background:
    linear-gradient(105deg, #8a6a18 0%, #f0d78c 42%, #fff3c4 52%, #c9a227 100%);
  color: #1a1408;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  box-shadow: 0 0 8px rgba(255, 210, 74, 0.18);
}
.gchat__msg--bot[data-agent="ari"] .gchat__who::after {
  content: "ARI";
  border-color: rgba(255, 126, 182, 0.5);
  background: linear-gradient(105deg, #6a2048, #ff7eb6 48%, #ffd0e8 60%, #c44a88);
}
.gchat__msg--bot[data-agent="droc"] .gchat__who::after {
  content: "D-ROC";
  letter-spacing: 0.04em;
  min-width: 2.8rem;
}
.gchat__msg--bot[data-agent="host"] .gchat__who::after {
  content: "HOST";
  border-color: rgba(157, 204, 255, 0.5);
  background: linear-gradient(105deg, #1a3048, #9dccff 48%, #e8f4ff 58%, #5a90c0);
}
.gchat__msg--bot[data-agent="coach"] .gchat__who::after {
  content: "COACH";
  border-color: rgba(157, 204, 255, 0.5);
  background: linear-gradient(105deg, #1a3048, #9dccff 48%, #e8f4ff 58%, #5a90c0);
}
.gchat__msg--bot[data-agent="rival"] .gchat__who::after {
  content: "RIVAL";
  border-color: rgba(223, 88, 75, 0.55);
  background: linear-gradient(105deg, #401818, #ff9a90 48%, #ffd0cc 58%, #a04038);
}
.gchat__msg--bot[data-topic="l15"] .gchat__who::after {
  content: "LINE";
  border-color: rgba(91, 140, 255, 0.58);
  background: linear-gradient(105deg, #102048, #5b8cff 42%, #d0e0ff 58%, #304878);
  color: #0a101c;
}
.gchat__msg--bot[data-topic="l14"] .gchat__who::after {
  content: "GLOW";
  border-color: rgba(255, 154, 120, 0.55);
  background: linear-gradient(105deg, #6a2818, #ff9a78 42%, #ffd24a 58%, #8a6a18);
  color: #1a1208;
}
.gchat__msg--bot[data-topic="l13"] .gchat__who::after {
  content: "SPIRE";
  border-color: rgba(196, 160, 255, 0.55);
  background: linear-gradient(105deg, #3a2060, #c4a0ff 42%, #ffd24a 58%, #8a6a18);
}
.gchat__msg--bot[data-topic="l12"] .gchat__who::after {
  content: "BRIDGE";
  border-color: rgba(94, 234, 212, 0.5);
  background: linear-gradient(105deg, #0a3030, #5eead4 48%, #e8fffa 58%, #208888);
}
.gchat__msg--bot[data-topic="l11"] .gchat__who::after {
  content: "LANTERN";
  letter-spacing: 0.04em;
  min-width: 3.2rem;
  border-color: rgba(255, 106, 74, 0.55);
  background: linear-gradient(105deg, #401808, #ff6a4a 48%, #ffd24a 62%, #8a4018);
}
.gchat[data-rating="adult"] .gchat__msg--bot .gchat__who::after {
  content: "WET+";
  border-color: rgba(255, 122, 156, 0.5);
  background: linear-gradient(105deg, #8c52ff 0%, #ff7a9c 48%, #ff914d 100%);
  color: #1a0610;
}

.gchat__gif {
  display: block;
  max-width: min(220px, 100%);
  max-height: 140px;
  border-radius: var(--gchat-radius);
  margin-top: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gchat__memes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
  max-height: 7.25rem;
  overflow: auto;
  padding-bottom: 2px;
}

.gchat__meme {
  min-height: 44px;
  min-width: 44px;
  padding: 0.28rem 0.45rem;
  border-radius: var(--gchat-radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.4);
  color: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.gchat__meme:hover {
  border-color: color-mix(in oklab, var(--gchat-accent) 50%, transparent);
}
.gchat__meme img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 2px;
}

.gchat__form {
  display: grid;
  gap: 0.5rem;
}

/* —— WetDrool Club | DMs (living Hermes sex bots) —— */
.gchat__tabs {
  display: flex;
  gap: 0.35rem;
  margin: 0 0 0.55rem;
}
.gchat__tab {
  flex: 1;
  min-height: 40px;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--gchat-muted, #b8a99a);
  font-family: var(--gchat-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.gchat__tab:hover {
  border-color: rgba(255, 122, 156, 0.4);
  color: #ffd0e0;
}
.gchat__tab.is-on {
  border-color: rgba(255, 122, 156, 0.55);
  background: linear-gradient(135deg, rgba(255, 45, 106, 0.22), rgba(255, 122, 156, 0.1));
  color: #ffd0e8;
  box-shadow: 0 0 0 1px rgba(255, 122, 156, 0.15);
}
.gchat__tab:focus-visible {
  outline: 2px solid #ff7a9c;
  outline-offset: 2px;
}
.gchat__dm-bar {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 0.55rem;
  padding: 0.5rem 0.55rem;
  border-radius: var(--gchat-radius, 8px);
  border: 1px solid rgba(255, 122, 156, 0.22);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(255, 45, 106, 0.12), transparent 55%),
    rgba(0, 0, 0, 0.35);
}
.gchat__dm-roster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-height: 7.5rem;
  overflow: auto;
}
.gchat__dm-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 36px;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--dm-c, #ff7a9c) 45%, transparent);
  background: color-mix(in oklab, var(--dm-c, #ff7a9c) 12%, rgba(0, 0, 0, 0.5));
  color: #ffe8f0;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.gchat__dm-chip small {
  opacity: 0.75;
  font-weight: 600;
  font-size: 0.68rem;
}
.gchat__dm-chip:hover {
  filter: brightness(1.12);
}
.gchat__dm-chip.is-on {
  box-shadow: 0 0 0 1px var(--dm-c, #ff7a9c), 0 0 16px color-mix(in oklab, var(--dm-c, #ff7a9c) 35%, transparent);
  border-color: var(--dm-c, #ff7a9c);
}
.gchat__dm-live {
  color: #ff4d8d;
  font-size: 0.7rem;
}
.gchat__dm-pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.gchat__dm-pay-label {
  font-family: var(--gchat-mono, ui-monospace, monospace);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gchat-muted, #b8a99a);
  margin-right: 0.25rem;
}
.gchat__dm-currency {
  min-height: 32px;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.4);
  color: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.gchat__dm-currency.is-on {
  border-color: rgba(255, 210, 74, 0.55);
  color: #ffd24a;
  background: rgba(255, 210, 74, 0.1);
}
.gchat__dm-currency[data-dm-pay="ddd"].is-on {
  border-color: rgba(94, 234, 212, 0.5);
  color: #5eead4;
  background: rgba(94, 234, 212, 0.1);
}

/* Sims-style relationship bond meters */
.gchat__dm-bond {
  margin-top: 0.15rem;
}
.rbond {
  border-radius: 10px;
  border: 1px solid color-mix(in oklab, var(--rbond-c, #ff7eb6) 45%, transparent);
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--rbond-c, #ff7eb6) 14%, transparent), rgba(0, 0, 0, 0.45));
  padding: 0.45rem 0.55rem 0.5rem;
}
.rbond__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}
.rbond__stage {
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--rbond-c, #ff7eb6);
}
.rbond__spice {
  margin-left: auto;
  font-family: var(--gchat-mono, ui-monospace, monospace);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 77, 141, 0.45);
  color: #ffb0d0;
  background: rgba(255, 45, 106, 0.15);
}
.rbond__blurb {
  margin: 0 0 0.35rem;
  font-size: 0.66rem;
  line-height: 1.3;
  opacity: 0.88;
}
.rbond__row {
  display: grid;
  grid-template-columns: 4.5rem 1fr 1.6rem;
  gap: 0.3rem;
  align-items: center;
  margin: 0.18rem 0;
}
.rbond__label {
  font-family: var(--gchat-mono, ui-monospace, monospace);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}
.rbond__bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.rbond__bar > i {
  display: block;
  height: 100%;
  width: 0;
  transition: width 0.35s ease;
  border-radius: 3px;
}
.rbond__bar--conn > i {
  background: linear-gradient(90deg, #5eead4, #9dccff);
}
.rbond__bar--heat > i {
  background: linear-gradient(90deg, #ff7eb6, #ff2d6a);
}
.rbond__num {
  font-family: var(--gchat-mono, ui-monospace, monospace);
  font-size: 0.62rem;
  font-weight: 700;
  text-align: right;
  opacity: 0.9;
}
.rbond__next {
  margin: 0.25rem 0 0;
  font-size: 0.6rem;
  font-family: var(--gchat-mono, ui-monospace, monospace);
  opacity: 0.75;
}
@media (prefers-reduced-motion: reduce) {
  .rbond__bar > i { transition: none; }
}

.gchat__msg--system {
  opacity: 0.92;
  border: 1px dashed rgba(255, 122, 156, 0.25);
}

.gchat__form textarea {
  width: 100%;
  min-height: 3.4rem;
  resize: vertical;
  padding: 0.65rem 0.75rem;
  border-radius: var(--gchat-radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #050504;
  color: var(--gchat-ink);
  font: inherit;
  line-height: 1.4;
}
.gchat__form textarea:focus-visible {
  outline: 2px solid var(--gchat-mind);
  outline-offset: 1px;
  border-color: rgba(157, 204, 255, 0.4);
}
.gchat__form textarea::placeholder {
  color: color-mix(in oklab, var(--gchat-muted) 80%, transparent);
}

.gchat__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.gchat__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
  .gchat__send,
  .gchat__btn,
  .gchat__agent {
    transition: none;
  }
}

@media (prefers-contrast: more) {
  .gchat {
    border-width: 2px;
  }
  .gchat__msg--bot,
  .gchat__msg--user {
    border-width: 2px;
  }
}

/* —— Docked in-game club (under canvas) —— */
.chat-mount--docked {
  margin: 0;
}
.gchat--docked,
.gchat--club {
  margin-top: 0;
  padding: 0.55rem 0.7rem 0.65rem;
  border-radius: 0 0 4px 4px;
}
.gchat--docked::before,
.gchat--docked::after {
  display: none;
}
.gchat__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 4px;
}
.gchat__bar-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.gchat__live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5eead4;
  box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.5);
  animation: gchat-pulse 1.5s ease infinite;
}
@keyframes gchat-pulse {
  70% { box-shadow: 0 0 0 7px rgba(94, 234, 212, 0); }
}
.gchat__bar-title {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.gchat__room-pill {
  font-family: var(--gchat-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.4);
  color: #5eead4;
  background: rgba(94, 234, 212, 0.08);
}
/* Live birthday T-minus (Aug 7 Top 10) — feel the clock */
.gchat__tminus {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.35rem 0 0.15rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, #f0d78c 55%, transparent);
  background:
    linear-gradient(105deg, transparent 30%, rgba(255, 243, 196, 0.18) 48%, transparent 62%),
    color-mix(in oklab, #f0d78c 12%, transparent);
  background-size: 200% 100%, auto;
  animation: gchat-tminus-sheen 4.5s ease-in-out infinite;
  color: #f0d78c;
  font: 700 0.72rem/1.2 var(--gchat-mono, ui-monospace, monospace);
  letter-spacing: 0.04em;
  text-transform: none;
}
.gchat__tminus[data-closed="1"] {
  border-color: color-mix(in oklab, #ff8a8a 50%, transparent);
  color: #ffb4b4;
  background: color-mix(in oklab, #ff8a8a 10%, transparent);
  animation: none;
}
@keyframes gchat-tminus-sheen {
  0%,
  100% {
    background-position: 100% 0, 0 0;
  }
  50% {
    background-position: 0% 0, 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gchat__tminus {
    animation: none;
  }
}

/* iMessage-style thinking / typing while Hermes generates */
.gchat__typing {
  margin: 0 0 0.45rem;
  min-height: 0;
}
.gchat__typing[hidden] {
  display: none !important;
}
.gchat__typing-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  padding: 0.45rem 0.65rem;
  border-radius: 12px 12px 12px 4px;
  border: 1px solid rgba(255, 126, 182, 0.35);
  background: linear-gradient(135deg, rgba(40, 12, 28, 0.92), rgba(10, 6, 14, 0.95));
  box-shadow: 0 0 18px rgba(255, 45, 106, 0.12);
  animation: gchatTypingIn 0.22s ease;
}
@keyframes gchatTypingIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.gchat__typing-who {
  font: 800 0.62rem/1 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff7eb6;
}
.gchat__typing-label {
  font-size: 0.72rem;
  opacity: 0.9;
  color: #f0e0ea;
}
.gchat__typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 0.2rem 0.35rem;
}
.gchat__typing-dots i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff9ad4;
  opacity: 0.35;
  animation: gchatDot 1.15s ease-in-out infinite;
}
.gchat__typing-dots i:nth-child(2) {
  animation-delay: 0.15s;
  background: #ff7eb6;
}
.gchat__typing-dots i:nth-child(3) {
  animation-delay: 0.3s;
  background: #ffd24a;
}
@keyframes gchatDot {
  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
.gchat__typing[data-phase="typing"] .gchat__typing-row {
  border-color: rgba(255, 210, 74, 0.4);
}
.gchat[data-rating="sfw"] .gchat__typing-row {
  border-color: rgba(255, 210, 74, 0.35);
  background: linear-gradient(135deg, rgba(30, 24, 10, 0.92), rgba(10, 8, 4, 0.95));
}
.gchat[data-rating="sfw"] .gchat__typing-who {
  color: #ffd24a;
}
@media (prefers-reduced-motion: reduce) {
  .gchat__typing-row,
  .gchat__typing-dots i {
    animation: none;
  }
  .gchat__typing-dots i {
    opacity: 0.75;
  }
}

/* Quick topic chips (SFW Maple Club deepen) */
.gchat__prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.35rem 0 0.55rem;
}
.gchat__prompt {
  min-height: 34px;
  padding: 0.35rem 0.7rem;
  border-radius: var(--gchat-radius);
  border: 1px solid color-mix(in oklab, var(--gchat-mind) 45%, transparent);
  background: color-mix(in oklab, var(--gchat-mind) 12%, transparent);
  color: var(--gchat-mind);
  font: 650 0.68rem var(--gchat-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
/* touchfloor1 — 34px + 0.68rem (~9.92px measured) is under both the hit-size
   and legibility floor on a thumb. Or-shaped gate matches the convention
   used across games/ddd (pointer: coarse alone has shipped broken here). */
@media (max-width: 900px), (pointer: coarse) {
  .gchat__prompt {
    min-height: 44px;
    min-width: 44px;
    font-size: 14px;
  }
}
.gchat__prompt:hover {
  filter: brightness(1.1);
  border-color: var(--gchat-accent);
  color: var(--gchat-accent);
}
.gchat__prompt:focus-visible {
  outline: 2px solid var(--gchat-mind);
  outline-offset: 2px;
}

.gchat[data-rating="adult"] .gchat__prompt {
  border-color: color-mix(in oklab, var(--gchat-accent) 45%, transparent);
  background: color-mix(in oklab, var(--gchat-accent) 12%, transparent);
  color: var(--gchat-accent);
}
.gchat[data-rating="adult"] .gchat__prompt:hover {
  border-color: #c9a0ff;
  color: #fce8ef;
}

/* docked club keeps a slim foil strip (no floating stamp clutter) */
.gchat--docked {
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, #8a6a18, #f0d78c 40%, #fff3c4 52%, #c9a227 85%, #9dccff) 1;
}
.gchat--docked[data-rating="adult"] {
  border-image: linear-gradient(90deg, #8c52ff, #ff7a9c 48%, #ff914d 90%) 1;
}
.gchat--docked .gchat__bar {
  position: relative;
  padding-right: 0.25rem;
}
.gchat--docked .gchat__bar-title::after {
  content: " · FOIL";
  font-family: var(--gchat-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--gchat-accent);
  opacity: 0.7;
  font-weight: 700;
}

.gchat__cast {
  margin: 0 0 6px;
  font-size: 0.72rem;
  color: var(--gchat-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gchat--docked .gchat__log {
  min-height: 7.5rem;
  max-height: 11rem;
  margin-bottom: 0.45rem;
}
.gchat__composer {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 6px;
  align-items: center;
  margin-bottom: 0.35rem;
}
.gchat__alias,
.gchat__compose {
  min-height: 40px;
  padding: 0 10px;
  border-radius: var(--gchat-radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #050504;
  color: inherit;
  font: inherit;
}
.gchat__compose { min-width: 0; }
.gchat__send {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--gchat-radius);
  background: linear-gradient(90deg, var(--gchat-accent), #ff914d);
  color: #111;
  font: 800 12px inherit;
  cursor: pointer;
  white-space: nowrap;
}
.gchat[data-rating="adult"] .gchat__send {
  background: linear-gradient(135deg, #ff2d6a, #7c1d3a);
  color: #fff;
}
.gchat__memes--row {
  max-height: 3.2rem;
  margin-bottom: 0.25rem;
}
.gchat__memes--row .gchat__meme {
  min-height: 32px;
  min-width: 32px;
  font-size: 0.75rem;
  padding: 0.15rem 0.35rem;
}
.gchat__memes--row .gchat__meme img {
  width: 36px;
  height: 36px;
}
/* touchfloor1 — the row variant shrinks the base .gchat__meme 44px floor
   back down to 32x32. Restore both axes to 44px on coarse pointers, or-shaped
   per the games/ddd convention (pointer: coarse alone has shipped inert). */
@media (max-width: 900px), (pointer: coarse) {
  .gchat__memes--row .gchat__meme {
    min-height: 44px;
    min-width: 44px;
  }
}
.gchat--docked .gchat__advanced {
  margin-top: 2px;
  font-size: 0.72rem;
  opacity: 0.75;
}
.gchat--docked .gchat__head { display: none; }
.gchat--docked .gchat__lede { display: none; }
@media (max-width: 560px) {
  .gchat__composer {
    grid-template-columns: 1fr auto;
  }
  .gchat__alias {
    grid-column: 1 / -1;
  }
}

/* Phone 430 — club dock density (ticket foil readable, 44px targets) */
@media (max-width: 430px) {
  .gchat {
    padding: 0.85rem 0.75rem 0.95rem;
  }
  .gchat__title {
    font-size: 1.15rem;
  }
  .gchat__head {
    padding-right: 3.6rem;
  }
  .gchat::before {
    width: 44px;
    height: 16px;
    top: 8px;
    right: 8px;
  }
  .gchat::after {
    width: 40px;
    height: 14px;
    top: 9px;
    right: 10px;
    font-size: 5.5px;
  }
  .gchat__head::after {
    right: 54px;
    top: 12px;
  }
  .gchat__log {
    min-height: 9rem;
    max-height: 14rem;
    padding: 0.55rem;
    gap: 0.35rem;
  }
  .gchat__msg {
    padding: 0.4rem 0.5rem 0.45rem;
  }
  .gchat__msg p {
    font-size: 0.88rem;
  }
  .gchat__msg--bot .gchat__who::after {
    min-width: 2.1rem;
    height: 11px;
    font-size: 5.5px;
  }
  .gchat--docked,
  .gchat--club {
    padding: 0.45rem 0.55rem 0.55rem;
  }
  .gchat--docked .gchat__log {
    min-height: 6.5rem;
    max-height: 9.5rem;
  }
  .gchat__tminus {
    font-size: 0.65rem;
    padding: 0.28rem 0.55rem;
    max-width: 100%;
  }
  .gchat__prompt {
    /* Was 36px / 0.62rem (9.92px) here — this block re-shrank the coarse-
       pointer floor set above. Keep the 44px/14px floor on phones too. */
    min-height: 44px;
    min-width: 44px;
    padding: 0.3rem 0.55rem;
    font-size: 14px;
  }
  .gchat__send,
  .gchat__compose,
  .gchat__alias {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gchat__live-dot { animation: none; }
  .gchat::after { animation: none; }
}

/* Sims bond quick beats */
.gchat__dm-bond-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin: 0.25rem 0 0.15rem;
}
.gchat__bond-act {
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid rgba(255, 126, 182, 0.35);
  background: rgba(255, 126, 182, 0.08);
  color: #ffc2dc;
  font: 700 0.65rem/1.1 var(--gchat-mono, ui-monospace, monospace);
  letter-spacing: 0.04em;
  padding: 0.28rem 0.55rem;
  min-height: 32px;
  touch-action: manipulation;
}
.gchat__bond-act:hover,
.gchat__bond-act:focus-visible {
  background: rgba(255, 126, 182, 0.2);
  border-color: #ff7eb6;
  color: #fff;
  outline: none;
}
.gchat__bond-act:active {
  transform: scale(0.97);
}
@media (prefers-reduced-motion: reduce) {
  .gchat__bond-act:active { transform: none; }
}
