@font-face {
  font-family: "Noto Sans SC";
  src: url("./assets/fonts/NotoSansSC-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif SC";
  src: url("./assets/fonts/NotoSerifSC-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #11171a;
  --panel: #192126;
  --field: #10171b;
  --line: #303c42;
  --text: #e6e8e4;
  --muted: #839398;
  --gold: #e7bd73;
  --gold-dim: #5d4b32;
  --accent: #66d3bb;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
summary,
select {
  cursor: pointer;
}
button {
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.34;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
button,
input,
textarea,
select {
  transition:
    border-color 0.15s,
    background 0.15s;
}
input,
textarea,
select {
  width: 100%;
  background: var(--field);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  outline: none;
}
input:hover,
textarea:hover,
select:hover {
  border-color: #58686d;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
}
input::placeholder,
textarea::placeholder {
  color: #64767e;
}
textarea {
  resize: vertical;
  line-height: 1.75;
}
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  accent-color: var(--gold);
}
label {
  display: block;
  line-height: 1.5;
}
.structure-mode {
  margin: 18px 0 24px;
}
.structure-mode > .muted {
  display: block;
  margin: 5px 0 0 24px;
  font-size: 11px;
}
.quest-card {
  border: 1px solid var(--line);
  background: #151d21;
  border-radius: 7px;
  padding: 14px;
  margin-bottom: 12px;
}
.quest-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--gold);
}
.quest-card > label,
.quest-card > .field-row {
  margin: 12px 0;
}
.quest-card .check-label {
  font-size: 12px;
}
.footer-actions {
  display: flex;
  gap: 8px;
}
label > input,
label > select {
  margin-top: 7px;
}
.button {
  border: 1px solid var(--line);
  background: #222d33;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
}
.button:hover {
  background: #2c3a40;
  border-color: #52626a;
}
.button.primary {
  background: var(--gold);
  color: #231e16;
  border-color: var(--gold);
  font-weight: 700;
}
.button.primary:hover {
  background: #f0cc8c;
}
.button.subtle {
  background: transparent;
}
.button.small {
  padding: 7px 12px;
}
.button.text {
  border: 0;
  background: transparent;
  padding: 5px 8px;
  color: var(--muted);
}
.button.text:hover {
  color: var(--gold);
}
.masthead {
  height: 82px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  max-width: 1800px;
  margin: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Noto Serif SC", serif;
  font-size: 23px;
  color: var(--gold);
}
.brand-mark {
  font-size: 37px;
  transform: rotate(8deg);
}
.brand-sub {
  font-family: "Noto Sans SC", sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  margin-left: 18px;
  color: var(--muted);
}
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.header-actions > span {
  font-size: 11px;
  margin-right: 14px;
  color: var(--muted);
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(390px, 1fr);
  gap: 24px;
  max-width: 1640px;
  padding: 28px 32px 18px;
  margin: auto;
  align-items: start;
}
.preview-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  position: sticky;
  top: 20px;
  background: #151d21;
}
.panel-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}
.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 5px;
  vertical-align: middle;
}
.tier-switch {
  display: flex;
  gap: 6px;
}
.tier-button {
  font-weight: 600;
  padding: 10px 16px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
.tier-button.selected {
  color: var(--tier-color);
  border-color: var(--tier-color);
  background: color-mix(in srgb, var(--tier-color) 12%, transparent);
}
.preview-stage {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 8px;
  background: radial-gradient(ellipse at 40% 45%, #242e31 0%, #151d21 65%);
  overflow: hidden;
}
canvas {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  touch-action: pan-y;
}
#art-interaction {
  position: absolute;
  touch-action: none;
  cursor: grab;
}
#art-interaction:active {
  cursor: grabbing;
}
#art-interaction:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.upload-overlay {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #adb7ad;
  text-align: center;
  pointer-events: none;
  background: rgba(17, 23, 23, 0.64);
  border-radius: 8px;
}
.upload-overlay .button {
  pointer-events: auto;
}
.upload-overlay > strong {
  font-size: 14px;
  color: #e8dcbf;
}
.upload-overlay > span:not(.upload-icon) {
  font-size: 10px;
}
.upload-icon {
  font-size: 28px;
  color: var(--gold);
}
.preview-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
  gap: 8px;
}
.preview-tools > span:first-child {
  color: var(--gold);
  font-size: 12px;
}
.editor-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
}
.editor-heading {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
h1 {
  font-size: 19px;
  margin: 8px 0 0;
  font-weight: 500;
}
h2 {
  margin: 0;
  font-size: 20px;
}
.step-chip {
  font-size: 10px;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  padding: 4px 10px;
  letter-spacing: 1px;
}
.editor-scroll {
  padding: 24px;
}
.field-row {
  display: grid;
  gap: 12px;
}
.field-row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.field-row.two {
  grid-template-columns: 1fr 1fr;
}
.field-row label {
  font-size: 12px;
  color: #afbbbd;
}
.hero-field {
  color: #afbbbd;
  font-size: 12px;
  line-height: 1.5;
}
.hero-picker {
  position: relative;
  margin-top: 7px;
}
#hero-toggle {
  width: 100%;
  height: 45px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 12px;
  font-size: 13px;
  text-align: left;
}
#hero-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#hero-toggle img,
.hero-option img {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  object-fit: cover;
  object-position: center 18%;
  background: #232d32;
  flex-shrink: 0;
}
.hero-chevron {
  color: var(--muted);
  font-size: 13px;
}
#hero-list {
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  width: max(100%, 215px);
  max-height: min(405px, 55vh);
  overflow-y: auto;
  border: 1px solid #657076;
  border-radius: 7px;
  padding: 5px;
  background: #111a20;
  box-shadow: 0 12px 30px #0009;
  z-index: 20;
}
.hero-option {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 13px;
  min-height: 44px;
}
.hero-option:hover,
.hero-option:focus-visible {
  background: #34434b;
}
.hero-option[aria-selected="true"] {
  color: var(--gold);
  background: #2b302d;
}
select {
  padding-right: 20px;
}
.tag-picker {
  margin: 22px 0;
  border: 1px solid var(--line);
  background: var(--field);
  border-radius: 6px;
}
.tag-picker summary {
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  gap: 10px;
}
summary {
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
.chevron {
  color: var(--muted);
  margin-left: auto;
}
details[open] > .chevron,
details[open] > summary > .chevron {
  transform: rotate(180deg);
}
#selected-types {
  display: inline;
  color: #b4bafa;
  font-size: 11px;
  margin-left: 9px;
}
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 12px 16px;
  min-height: 185px;
  align-content: start;
}
.tag {
  background: #1c222c;
  color: #aaaef7;
  border: 1px solid #364351;
  border-radius: 4px;
  padding: 6px 9px;
  font-size: 12px;
}
.tag.active {
  border-color: #a5aaf0;
  background: #34364b;
  color: #d9dcff;
}
.tag:disabled {
  opacity: 0.75;
}
.name-field {
  font-size: 12px;
  color: #afbbbd;
}
.section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 25px 0 12px;
  font-size: 13px;
  color: #dce1dc;
}
.muted {
  font-size: 11px;
  color: var(--muted);
}
.switch-label {
  display: flex;
  align-items: center;
}
.switch-label input {
  position: absolute;
  opacity: 0;
}
.switch {
  display: block;
  width: 32px;
  height: 18px;
  background: #3c484d;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
}
.switch:after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #bac2c0;
  left: 3px;
  top: 3px;
  transition: transform 0.15s;
}
.switch-label input:checked + .switch {
  background: #b9975f;
}
.switch-label input:checked + .switch:after {
  background: #fff4df;
  transform: translateX(14px);
}
.switch-label input:focus-visible + .switch {
  outline: 2px solid var(--gold);
}
.cd-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}
/* Keep two independently editable digits without neighboring values. */
.cd-picker { display: flex; align-items: center; justify-content: center; gap: 5px; }
.cd-wheel { position: relative; width: 64px; height: 40px; overflow: hidden; touch-action: none; user-select: none; border: 1px solid var(--line); background: #10191d; border-radius: 6px; }
.cd-wheel.fraction { width: 38px; }
.cd-wheel-input { height: 38px; padding: 0 !important; text-align: center; font-size: 19px !important; font-variant-numeric: tabular-nums; border: 0 !important; border-radius: 0; background: transparent !important; color: #ffe4b3; }
.cd-dot { font-size: 20px; color: var(--gold); }
.cd-unit { font-size: 13px; color: var(--muted); margin-left: 3px; }
.help {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  padding-top: 19px;
}
.effect-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  align-items: start;
}
.effect-number {
  font-size: 12px;
  color: var(--gold);
  padding-top: 12px;
  width: 12px;
}
.effect-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}
.effect-input-wrap textarea {
  min-height: 74px;
  position: relative;
  background: transparent;
  z-index: 1;
  font-size: 13px;
  padding: 10px 12px;
}
.effect-input-wrap {
  background: var(--field);
  border-radius: 6px;
}
.ghost-suggestion {
  position: relative;
  padding: 8px 12px;
  border-top: 1px dashed #3f504e;
  border-radius: 0 0 6px 6px;
  color: #718580;
  font-size: 13px;
  line-height: 1.75;
  pointer-events: none;
  z-index: 2;
  background: var(--field);
  white-space: pre-wrap;
}
.ghost-suggestion small {
  color: var(--gold);
  font-size: 9px;
  margin-left: 7px;
}
.icon-button {
  padding: 8px;
  min-width: 27px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.icon-button:hover {
  color: #f48b76;
}
.effect-remove {
  padding-top: 13px;
  font-size: 17px;
}
.add {
  width: 100%;
  border-style: dashed;
  background: transparent;
  color: var(--muted);
}
.field-help {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
kbd {
  font: inherit;
  background: #263239;
  border: 1px solid #394951;
  border-radius: 3px;
  padding: 1px 4px;
  color: #a9bcbd;
}
.extra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-top: 15px;
}
.optional-options details {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.optional-options summary {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.check-label {
  font-size: 11px;
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 7px;
}
.check-label input {
  margin: 0;
}
.suffix-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
}
.suffix-input input {
  border: 0;
  background: transparent;
  margin: 0;
}
.suffix-input span {
  padding-right: 12px;
  color: var(--muted);
}
.notice {
  color: #dba65f;
  font-size: 11px;
  background: #2c261f;
  padding: 10px 12px;
  border-radius: 5px;
  line-height: 1.7;
}
.editor-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 24px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  background: #151e22;
}
.site-footer {
  max-width: 1640px;
  display: flex;
  justify-content: space-between;
  padding: 10px 32px 30px;
  margin: auto;
  font-size: 10px;
  color: #64767e;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
dialog {
  max-width: 480px;
  width: calc(100% - 32px);
  border: 1px solid #48555b;
  border-radius: 12px;
  background: #192327;
  color: var(--text);
  padding: 28px;
  box-shadow: 0 24px 80px #0009;
}
dialog::backdrop {
  background: #081013bb;
  backdrop-filter: blur(5px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.dialog-actions .primary {
  flex: 1;
}
#structure-dialog p {
  font-size: 13px;
  line-height: 1.9;
  color: #b6c0bd;
}
.export-choice {
  display: flex;
  gap: 13px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  margin-top: 12px;
  cursor: pointer;
}
.export-choice:has(input:checked) {
  border-color: var(--gold);
  background: #292a25;
}
.export-choice:has(input:disabled) {
  opacity: 0.4;
  cursor: not-allowed;
}
.export-choice strong {
  font-size: 13px;
  font-weight: 500;
}
.export-choice small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted);
}
.recommended {
  margin-left: auto;
  font-size: 10px;
  color: var(--gold);
}
.export-settings {
  margin-top: 20px;
}
#export-dialog { max-width: 980px; max-height: calc(100dvh - 32px); overflow: auto; }
.export-content { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, 1fr); gap: 24px; align-items: start; }
.export-preview-column { min-width: 0; }
.export-preview-frame { min-height: 180px; max-height: 520px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background-color: #192327; background-image: linear-gradient(45deg, #293338 25%, transparent 25%), linear-gradient(-45deg, #293338 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #293338 75%), linear-gradient(-45deg, transparent 75%, #293338 75%); background-size: 24px 24px; background-position: 0 0, 0 12px, 12px -12px, -12px 0; }
#export-preview { width: 100%; height: auto; display: block; }
.export-preview-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 12px; }
#export-view-original { color: var(--gold); white-space: nowrap; }
#export-preview-status.error { color: #f69e86; }
.export-options .export-choice:first-child { margin-top: 0; }
@media (max-width: 720px) {
  #export-dialog { padding: 20px; }
  .export-content { grid-template-columns: 1fr; gap: 20px; }
  .export-preview-frame { max-height: 280px; }
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #34423e;
  color: #f1ead6;
  border: 1px solid #52685e;
  border-radius: 7px;
  padding: 12px 20px;
  max-width: 90vw;
  font-size: 12px;
  box-shadow: 0 8px 30px #0005;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 10;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
[hidden] {
  display: none !important;
}
.editor-tabs { display: flex; gap: 8px; padding: 0 24px 16px; border-bottom: 1px solid var(--line); }
.editor-tabs button { flex: 1; border: 1px solid var(--line); border-radius: 6px; padding: 10px; color: var(--muted); background: #111a1e; cursor: pointer; }
.editor-tabs button[aria-selected="true"] { color: var(--gold); border-color: #b49257; background: #b4925714; }
.next-step { margin-top: 22px; width: 100%; border-color: #b4925766; color: var(--gold); background: #b4925710; }
.enchantment-intro strong { font-size: 16px; }
.enchantment-intro p { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 10px 0; }
.enchantment-intro > span { display: block; font-size: 12px; line-height: 1.8; margin-bottom: 16px; }
#regenerate-enchantments { margin-bottom: 18px; }
.enchantment-card { border: 1px solid var(--line); border-radius: 8px; padding: 13px; margin-bottom: 12px; background: #111a1e; }
.enchantment-card .enchantment-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.enchantment-card .check-label { color: var(--enchantment-color); font-size: 15px; font-weight: 700; }
.enchantment-card textarea { width: 100%; font-size: 14px; line-height: 1.7; }
.enchantment-card.excluded { opacity: .6; }
.enchantment-card .button.text { padding: 3px; font-size: 11px; white-space: nowrap; }
.export-enchantments { margin: 18px 0; color: var(--text); }
/* Each editor page owns its fields, including at the former two-column breakpoint. */
.editor-scroll:has(#base-editor-page) { display: block; }
@media (min-width: 1600px) {
  .preview-stage {
    min-height: 530px;
  }
  .editor-scroll {
    padding: 26px;
  }
  .preview-panel {
    top: 28px;
  }
}
@media (max-width: 1150px) {
  .workspace {
    grid-template-columns: 1fr;
    max-width: 940px;
  }
  .preview-panel {
    position: relative;
    top: 0;
  }
  .preview-stage {
    min-height: 0;
    padding: 25px 15px;
  }
  .editor-scroll {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 26px;
  }
  .editor-scroll > .field-row,
  .editor-scroll > .structure-mode,
  .editor-scroll > .tag-picker,
  .editor-scroll > .name-field,
  .editor-scroll > .section-label,
  .editor-scroll > #active-editor,
  .editor-scroll > #passive-wrap,
  .editor-scroll > .optional-options,
  .editor-scroll > .notice {
    grid-column: 1/-1;
  }
}
@media (max-width: 640px) {
  .masthead {
    padding: 0 16px;
    height: 68px;
  }
  .brand {
    font-size: 19px;
  }
  .brand-mark {
    font-size: 28px;
  }
  .brand-sub {
    display: none;
  }
  .header-actions {
    gap: 7px;
  }
  .header-actions > span {
    display: none;
  }
  .header-actions .button {
    padding: 8px 9px;
    font-size: 11px;
  }
  .header-actions #save-project {
    display: none;
  }
  .workspace {
    padding: 16px 12px;
    gap: 16px;
  }
  .panel-top {
    padding: 14px;
    gap: 10px;
  }
  .tier-button {
    font-size: 10px;
    padding: 6px 8px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .preview-stage {
    padding: 25px 2px;
    min-height: 0;
  }
  .upload-overlay > strong {
    font-size: 10px;
  }
  .upload-overlay > span:not(.upload-icon) {
    display: none;
  }
  .upload-overlay .button {
    padding: 4px 7px;
    font-size: 9px;
  }
  .upload-icon {
    font-size: 18px;
  }
  .preview-tools {
    padding: 10px 12px;
    flex-wrap: wrap;
  }
  .preview-tools > span:nth-child(2) {
    display: none;
  }
  .art-controls {
    gap: 9px;
    padding: 12px;
  }
  .art-controls > .button {
    font-size: 10px;
    padding: 7px 9px;
  }
  .zoom-control {
    gap: 6px;
  }
  .preview-note {
    padding: 12px;
    font-size: 10px;
  }
  .editor-heading {
    padding: 18px;
  }
  .editor-scroll {
    padding: 18px;
    display: block;
  }
  h1 {
    font-size: 17px;
  }
  .field-row.three {
    gap: 8px;
  }
  .field-row.three select {
    padding: 10px 7px;
    font-size: 11px;
  }
  .field-row.three label {
    font-size: 11px;
  }
  #hero-toggle {
    height: 39px;
    font-size: 11px;
    padding-left: 7px;
  }
  #hero-toggle img {
    width: 25px;
    height: 29px;
  }
  .tag-picker {
    margin: 18px 0;
  }
  .editor-footer {
    padding: 14px 18px;
  }
  .site-footer {
    padding: 8px 16px 20px;
    display: block;
    line-height: 2;
  }
  .site-footer span {
    display: block;
  }
  .preview-panel {
    border-radius: 7px;
  }
  .upload-overlay {
    gap: 7px;
  }
  .ghost-suggestion {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media (max-width: 640px) { .tier-button { padding: 10px 12px; font-size: 13px; } .panel-top { flex-wrap: wrap; gap: 12px; } }


.editor-scroll label, .hero-field > span, .section-label { font-size: 13px; }
.editor-scroll input:not(.cd-wheel-input), .editor-scroll select, .effect-text, #passive, .quest-card textarea { font-size: 14px; }
#hero-toggle, .hero-option { font-size: 14px; }
#hero-toggle img, .hero-option img { width: 34px; height: 34px; border-radius: 5px; object-fit: contain; }
.effect-input-wrap textarea { font-size: 14px; }
.preview-tools { flex-wrap: wrap; }

@media (max-width: 640px) {
  .editor-scroll .field-row.three select, #hero-toggle { font-size: 12px; }
  #hero-toggle img { width: 29px; height: 29px; }
}
