/* ── game.php-specific styles ────────────────────────────────────────────── */

/* ── Chat input form ── */
.gamecomm {
  padding: 10px 12px 6px;
  margin-top: 0 !important;
}
.gamecomm .chat-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
:is(#commentForm, #pmForm) textarea.comment {
  flex: 1;
  width: 100%;
  resize: vertical;
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-family: inherit;
  color: #374151;
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  line-height: 1.45;
  box-sizing: border-box;
}
:is(#commentForm, #pmForm) textarea.comment:focus {
  outline: none;
}
:is(#commentForm, #pmForm) textarea.comment::placeholder { color: #b0b0b8; }
.game-send-btn {
  flex-shrink: 0;
  align-self: center;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3b551;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.game-send-btn:hover { background: #e0a040; }
.game-send-btn:active { background: #c98c30; }

/* ── Chat-style comment cards (overrides frenzy.css for :is(#commentsec, #pm-commentsec)) ── */

/* Reset frenzy.css's order:1 so the avatar anchor stays on the left */
:is(#commentsec, #pm-commentsec) .comm > a:first-of-type,
:is(#commentsec, #pm-commentsec) .systemcomm > a:first-of-type {
  order: 0;
}

:is(#commentsec, #pm-commentsec) .smallava {
  width: 50px;
  height: 50px;
}

:is(#commentsec, #pm-commentsec) .comm,
:is(#commentsec, #pm-commentsec) .systemcomm {
  flex-wrap: nowrap;
  align-items: flex-start;
  padding: 8px 12px;
  margin-bottom: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
:is(#commentsec, #pm-commentsec) .comm {
  background: #fafafb;
}
:is(#commentsec, #pm-commentsec) .comm:hover {
  background: #fafafb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
:is(#commentsec, #pm-commentsec) .systemcomm:hover {
  background: linear-gradient(135deg, #fdf8e8 0%, #f8e7d1 100%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* Body column: sits to the right of the avatar */
.comm-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Header row: flame + name + timestamp */
.comm-header {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.comm-header a {
  display: flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
}
.comm-level {
  height: 13px;
  vertical-align: middle;
}
:is(#commentsec, #pm-commentsec) .timedetails {
  font-size: 11px;
  color: #9ca3af;
  display: inline;
  margin-left: 0;
}

:is(#commentsec, #pm-commentsec) .private-indicator {
  width: auto;
  order: unset;
}

/* Scrollbar styling for commentsec */
:is(#commentsec, #pm-commentsec)::-webkit-scrollbar {
  width: 6px;
}
:is(#commentsec, #pm-commentsec)::-webkit-scrollbar-track {
  background: transparent;
}
:is(#commentsec, #pm-commentsec)::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 10px;
}
:is(#commentsec, #pm-commentsec)::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}

/* System message overrides */
:is(#commentsec, #pm-commentsec) .systemcomm {
  border-left: none;
  min-height: 0;
  background: linear-gradient(135deg, #fdf8e8 0%, #f8e7d1 100%);
}

/* Message text */
:is(#commentsec, #pm-commentsec) .conty {
  flex: unset;
  order: unset;
  margin-bottom: 0;
  background: none;
  padding: 0;
  border-radius: 0;
  margin-top: 2px;
}

.des, .mod, .user, .adm {
    font-size: 14px;
    margin-right: 4px;
}
