:root {
  --cm77-community-gold: #e6b061;
  --cm77-community-gold-soft: #f4ca89;
  --cm77-community-ink: #1a0e08;
  --cm77-community-panel: #29170f;
  --cm77-community-line: rgba(230, 176, 97, .22);
  --cm77-community-text: #fff8ee;
  --cm77-community-muted: #cbb7a7;
}

.feedback-dialog .eyebrow {
  margin: 0 0 5px;
  color: var(--cm77-community-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.feedback-dialog h2 {
  margin: 0;
  color: var(--cm77-community-text);
  font-size: clamp(20px, 2.2vw, 27px);
}

.community-intro {
  margin: 8px 0 16px;
  color: var(--cm77-community-muted);
  line-height: 1.65;
}

.player-quick-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-height: 42px;
  padding: 5px 12px 9px;
  border-top: 1px solid var(--cm77-community-line);
}

.quick-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid var(--cm77-community-line);
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, .045);
  color: var(--cm77-community-text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.quick-action:hover,
.quick-action:focus-visible {
  transform: translateY(-1px);
  border-color: var(--cm77-community-gold);
  background: rgba(230, 176, 97, .12);
  outline: none;
}

.quick-action.primary {
  border-color: var(--cm77-community-gold);
  background: var(--cm77-community-gold);
  color: #2c1709;
}

.quick-action.primary:hover,
.quick-action.primary:focus-visible {
  background: var(--cm77-community-gold-soft);
}

.share-feedback {
  min-height: 16px;
  margin-right: auto;
  color: var(--cm77-community-gold-soft);
  font-size: 11px;
}

.feedback-modal[hidden] {
  display: none !important;
}

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  transition: opacity .18s ease;
}

.feedback-modal.is-open {
  opacity: 1;
}

.feedback-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(8, 4, 2, .78);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.feedback-dialog {
  position: relative;
  z-index: 1;
  width: min(590px, 100%);
  max-height: min(90vh, 760px);
  overflow-y: auto;
  box-sizing: border-box;
  border: 1px solid var(--cm77-community-line);
  border-radius: 16px;
  padding: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(230, 176, 97, .13), transparent 38%),
    var(--cm77-community-panel);
  color: var(--cm77-community-text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .48);
  transform: translateY(10px) scale(.985);
  transition: transform .18s ease;
}

.feedback-modal.is-open .feedback-dialog {
  transform: translateY(0) scale(1);
}

.feedback-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.feedback-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid var(--cm77-community-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: var(--cm77-community-text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.feedback-close:hover,
.feedback-close:focus-visible {
  border-color: var(--cm77-community-gold);
  outline: none;
}

.feedback-modal-open {
  overflow: hidden;
}

.feedback-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feedback-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feedback-field.full {
  grid-column: 1 / -1;
}

.feedback-field label {
  color: var(--cm77-community-text);
  font-size: 13px;
  font-weight: 700;
}

.feedback-field input,
.feedback-field select,
.feedback-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--cm77-community-line);
  border-radius: 9px;
  padding: 11px 12px;
  background: rgba(0, 0, 0, .25);
  color: var(--cm77-community-text);
  font: inherit;
}

.feedback-field select option {
  color: #22130c;
  background: #fff8ee;
}

.feedback-field textarea {
  min-height: 125px;
  resize: vertical;
}

.feedback-field input:focus,
.feedback-field select:focus,
.feedback-field textarea:focus {
  border-color: var(--cm77-community-gold);
  outline: 2px solid rgba(230, 176, 97, .12);
}

.feedback-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 5px;
  color: var(--cm77-community-muted);
  font-size: 11px;
}

.feedback-submit {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 10px 19px;
  background: var(--cm77-community-gold);
  color: #2c1709;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.feedback-submit:hover,
.feedback-submit:focus-visible {
  background: var(--cm77-community-gold-soft);
  outline: none;
}

.feedback-submit:disabled {
  cursor: wait;
  opacity: .65;
}

.feedback-result {
  min-height: 22px;
  margin: 10px 0 0;
  font-size: 13px;
}

.feedback-result.success { color: #9ee2b5; }
.feedback-result.error { color: #ffaaa2; }
.feedback-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@media (max-width: 560px) {
  .player-quick-actions { padding: 5px 9px 8px; }
  .feedback-dialog { padding: 16px; max-height: 92vh; }
  .feedback-grid { grid-template-columns: 1fr; }
  .feedback-field.full { grid-column: auto; }
}
