/* ============================================================
   SSK Industries — Comments (cream + purple, matches site)
   ============================================================ */

.game-comments-wrap {
  padding-top: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.game-comments-wrap:last-of-type { border-bottom: none; }

.sc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.sc-head h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -.02em;
  line-height: 1;
}
.sc-head .sc-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.sc-head .sc-meta .sc-count {
  color: var(--ink);
  font-weight: 600;
}

/* ----- Compose ----- */
.sc-compose {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--paper);
  margin-bottom: 20px;
}
.sc-compose:focus-within {
  border-color: var(--purple);
}
.sc-compose .sc-av {
  width: 36px; height: 36px;
  flex-shrink: 0;
}
.sc-compose-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sc-compose textarea {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  padding: 6px 0;
  border: none;
  background: transparent;
  resize: vertical;
  min-height: 44px;
  max-height: 320px;
  outline: none;
  color: var(--ink);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.sc-compose textarea::placeholder { color: var(--muted); }
.sc-compose-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.sc-compose-foot .sc-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.4;
}
.sc-compose-foot .sc-hint.sc-error { color: #B82323; }
.sc-post-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sc-post-btn:hover:not(:disabled) {
  background: var(--purple);
  border-color: var(--purple);
}
.sc-post-btn:disabled { opacity: .55; cursor: not-allowed; }
.sc-post-btn .sc-spinner {
  width: 11px; height: 11px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: sc-spin .8s linear infinite;
}
@keyframes sc-spin { to { transform: rotate(360deg); } }

/* compose locked states */
.sc-compose-locked {
  padding: 18px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
}
.sc-compose-locked button,
.sc-compose-locked a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  margin-left: auto;
}
.sc-compose-locked button:hover,
.sc-compose-locked a:hover {
  background: var(--ink);
  color: var(--cream);
}

/* ----- List ----- */
.sc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sc-loading,
.sc-empty {
  padding: 40px 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 4px;
}

/* ----- Comment ----- */
.sc-comment {
  display: flex;
  gap: 12px;
  padding: 16px 4px;
  border-top: 1px solid var(--line);
  position: relative;
  min-width: 0;
}
.sc-comment:first-child { border-top: none; }
.sc-comment .sc-av {
  flex-shrink: 0;
}
.sc-av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -.01em;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.sc-av.has-photo { color: transparent; }
.sc-body {
  flex: 1;
  min-width: 0;
  max-width: 100%;
}
.sc-head-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.sc-author {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
  color: var(--ink);
}
.sc-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--purple);
  color: var(--paper);
  font-weight: 600;
  line-height: 1.3;
}
.sc-badge.you { background: var(--ink); color: var(--cream); }
.sc-badge.pinned {
  background: transparent;
  color: var(--purple-deep);
  border: 1px solid var(--purple);
}
.sc-badge.pinned::before {
  content: "📌";
  margin-right: 4px;
  font-size: 10px;
  filter: grayscale(.2);
}
.sc-time {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--muted);
}
.sc-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.sc-text .sc-edited {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  margin-left: 4px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.sc-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.sc-action {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}
.sc-action:hover { color: var(--ink); }
.sc-action.danger:hover { color: #B82323; }
.sc-action.is-on { color: var(--purple-deep); font-weight: 600; }

/* pinned comments get a faint highlight bar */
.sc-comment.is-pinned {
  background: linear-gradient(180deg, var(--purple-soft) 0%, transparent 100%);
  border-radius: 4px;
  padding-left: 12px;
  padding-right: 12px;
}
.sc-comment.is-pinned + .sc-comment { border-top-color: var(--purple); }

/* ----- Replies ----- */
.sc-replies {
  margin-top: 12px;
  padding-left: 20px;
  border-left: 2px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sc-replies .sc-comment {
  padding: 10px 4px;
  border-top: 1px solid var(--line);
}
.sc-replies .sc-comment:first-child { border-top: none; }
.sc-replies .sc-av {
  width: 28px; height: 28px;
  font-size: 12px;
}
.sc-replies .sc-author { font-size: 13px; }

.sc-reply-compose {
  margin-top: 10px;
  margin-left: 48px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--paper);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.sc-reply-compose .sc-av { width: 28px; height: 28px; font-size: 12px; }
.sc-reply-compose .sc-compose-body { gap: 6px; }
.sc-reply-compose textarea { font-size: 14px; min-height: 32px; }
.sc-reply-compose .sc-post-btn { padding: 7px 14px; font-size: 10px; }

/* inline edit form */
.sc-edit-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.sc-edit-form textarea {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  resize: vertical;
  min-height: 60px;
  width: 100%;
}
.sc-edit-form textarea:focus { border-color: var(--purple); }
.sc-edit-form .sc-edit-actions {
  display: flex; gap: 8px;
}

/* "Show more replies" */
.sc-more-replies {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: var(--purple-deep);
  cursor: pointer;
  margin-top: 4px;
  padding: 6px 0;
  align-self: flex-start;
}
.sc-more-replies:hover { color: var(--ink); }

/* ----- Responsive ----- */
@media (max-width: 720px) {
  .sc-head h4 { font-size: 22px; }
  .sc-compose { padding: 12px; }
  .sc-replies { padding-left: 14px; }
  .sc-reply-compose { margin-left: 24px; }
}
