@font-face {
  font-family: "ManaMetalIssue";
  src: url("/assets/ChocolateClassicalSans-Regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  --issue-bg: #141815;
  --issue-panel: #f5efe3;
  --issue-panel-soft: #e9e0cf;
  --issue-text: #202821;
  --issue-muted: #647167;
  --issue-line: #cec3ad;
  --issue-accent: #2d6d55;
  --issue-accent-dark: #1e4d3b;
  --issue-danger: #9b4033;
  --issue-white: #fffaf0;
  --issue-shadow: 0 24px 72px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--issue-text);
  background:
    linear-gradient(135deg, rgba(20, 24, 21, 0.94), rgba(15, 17, 16, 0.97)),
    url("/assets/images/background.png") center / cover fixed;
  font-family: "ManaMetalIssue", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.mm-page {
  min-height: 100vh;
}

.mm-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 9px 12px;
  color: var(--issue-white);
  background: var(--issue-accent-dark);
  transform: translateY(-140%);
}

.mm-skip:focus {
  transform: translateY(0);
}

.mm-feedback-main {
  display: grid;
  align-items: center;
  width: min(880px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) 0;
}

.mm-feedback-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--issue-panel);
  border: 1px solid rgba(255, 250, 240, 0.68);
  box-shadow: var(--issue-shadow);
}

.mm-feedback-heading,
.mm-feedback-field-wide,
.mm-feedback-actions {
  grid-column: 1 / -1;
}

.mm-feedback-heading {
  display: grid;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--issue-line);
}

.mm-kicker {
  margin: 0;
  color: var(--issue-accent-dark);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mm-feedback-heading h1 {
  margin: 0;
  color: var(--issue-text);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: 0;
}

.mm-feedback-heading p:last-child {
  margin: 0;
  color: var(--issue-muted);
  font-size: 16px;
  line-height: 1.6;
}

.mm-feedback-field {
  display: grid;
  gap: 8px;
}

.mm-feedback-field span {
  color: var(--issue-accent-dark);
  font-size: 15px;
  font-weight: 700;
}

.mm-feedback-field input,
.mm-feedback-field select,
.mm-feedback-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 13px;
  color: var(--issue-text);
  background: var(--issue-white);
  border: 1px solid var(--issue-line);
  border-radius: 0;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.mm-feedback-field input[type="file"] {
  height: auto;
  padding: 12px 13px;
}

.mm-feedback-field input:focus,
.mm-feedback-field select:focus,
.mm-feedback-field textarea:focus {
  border-color: var(--issue-accent);
  box-shadow: 0 0 0 3px rgba(45, 109, 85, 0.16);
}

.mm-feedback-field input[readonly] {
  color: var(--issue-muted);
  background: var(--issue-panel-soft);
}

.mm-feedback-field select {
  color: var(--issue-text);
  background-color: var(--issue-white);
}

.mm-feedback-field select option {
  color: var(--issue-text);
  background: var(--issue-white);
}

.mm-feedback-field textarea {
  min-height: 220px;
  padding: 13px;
  line-height: 1.7;
  resize: vertical;
}

.mm-feedback-counter {
  color: var(--issue-muted);
  font-size: 13px;
  line-height: 1.4;
}

.mm-feedback-counter[data-state="over"] {
  color: var(--issue-danger);
}

.mm-feedback-file-field small {
  color: var(--issue-muted);
  font-size: 13px;
  line-height: 1.6;
}

.mm-feedback-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 4px;
}

.mm-feedback-status {
  min-height: 28px;
  margin: 0;
  color: var(--issue-muted);
  line-height: 1.6;
}

.mm-feedback-status[data-state="success"] {
  color: var(--issue-accent-dark);
}

.mm-feedback-status[data-state="error"] {
  color: var(--issue-danger);
}

.mm-button-primary {
  min-width: 148px;
  min-height: 48px;
  padding: 0 22px;
  color: var(--issue-white);
  font-weight: 800;
  background: var(--issue-accent);
  border: 1px solid var(--issue-accent);
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.mm-button-primary:hover,
.mm-button-primary:focus-visible {
  background: var(--issue-accent-dark);
  border-color: var(--issue-accent-dark);
  outline: 2px solid rgba(45, 109, 85, 0.26);
  outline-offset: 2px;
  transform: translateY(-1px);
}

.mm-button-primary:disabled {
  color: #d3ddd6;
  background: #68746c;
  border-color: #68746c;
  cursor: wait;
}

.mm-feedback-form.is-submitting {
  opacity: 0.9;
}

@media (max-width: 720px) {
  .mm-feedback-main {
    align-items: start;
    padding-top: 18px;
  }

  .mm-feedback-form {
    grid-template-columns: 1fr;
  }

  .mm-feedback-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mm-button-primary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .mm-feedback-main {
    width: min(100% - 24px, 880px);
  }
}
