:root {
  --main: #ff71ad;
  --main-dark: #d92d82;
  --sub: #67c9ff;
  --sub-dark: #288bc6;
  --yellow: #ffd84d;
  --green: #83d451;
  --ink: #4c3b53;
  --muted: #756879;
  --line: #ffc8df;
  --soft-pink: #fff0f7;
  --soft-blue: #eefaff;
  --soft-yellow: #fff9dc;
  --white: #fff;
  --shadow: 0 13px 28px rgba(170, 68, 119, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background-color: #ffd94a;
  background-image:
    linear-gradient(rgba(255, 255, 255, .32), rgba(255, 255, 255, .32)),
    url("../../assets/bg/main-bg.jpg");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  font-family: "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: rgba(255, 249, 252, .72);
}

button, input, select { font: inherit; }
button { touch-action: manipulation; }
a { color: inherit; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: -70px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--main-dark);
  color: #fff;
  font-weight: 900;
  transition: top .15s;
}

.skip-link:focus { top: 12px; }

.wiki-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 3px solid var(--line);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 5px 16px rgba(0, 0, 0, .07);
  backdrop-filter: blur(10px);
}

.wiki-nav__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(1180px, calc(100% - 24px));
  margin: auto;
  padding: 9px 0;
}

.wiki-nav__links {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.wiki-nav__links a {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--main-dark);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.wiki-nav__links a:hover,
.wiki-nav__links a[aria-current="page"] { background: var(--soft-pink); }

.wiki-nav__search {
  display: flex;
  flex: 1 0 250px;
  gap: 6px;
  margin-left: auto;
}

.wiki-nav__search input {
  min-width: 0;
  width: 100%;
  padding: 8px 13px;
  border: 2px solid var(--line);
  border-radius: 999px;
  outline: none;
  background: #fff;
  color: var(--ink);
}

.wiki-nav__search input:focus { border-color: var(--main); }

.wiki-nav__search button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--main);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  min-height: 300px;
  width: min(1180px, calc(100% - 28px));
  margin: 24px auto 18px;
  padding: 24px 32px 26px;
  overflow: hidden;
  border: 4px solid var(--main);
  border-radius: 30px;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, .8) 0 7px, transparent 8px),
    radial-gradient(circle at 18% 76%, rgba(255, 255, 255, .65) 0 5px, transparent 6px),
    linear-gradient(125deg, #fff 0%, #fff4fa 46%, #eaf9ff 100%);
  box-shadow: var(--shadow), 0 7px 0 #f7acd0;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  right: 235px;
  top: -100px;
  width: 260px;
  height: 260px;
  border: 34px solid rgba(103, 201, 255, .14);
}

.hero::after {
  right: -75px;
  bottom: -120px;
  width: 280px;
  height: 280px;
  background: rgba(255, 216, 77, .28);
}

.hero__copy {
  position: relative;
  z-index: 2;
  align-self: center;
}

.hero__logo {
  display: block;
  width: min(330px, 72%);
  height: auto;
  margin: 0 0 8px;
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 2px;
  padding: 4px 11px;
  border: 2px solid #f1bd26;
  border-radius: 999px;
  background: var(--yellow);
  color: #7b4d14;
  font-size: 12px;
  font-weight: 900;
}

.hero h1 {
  margin: 2px 0 4px;
  color: var(--main-dark);
  font-size: clamp(36px, 5.6vw, 59px);
  line-height: 1.08;
  letter-spacing: .02em;
  text-shadow: 0 3px 0 #fff, 0 5px 0 rgba(103, 201, 255, .28);
}

.hero p {
  max-width: 670px;
  margin: 0;
  color: #66536b;
  font-size: 14px;
  font-weight: 800;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.hero__chips span {
  padding: 4px 10px;
  border: 2px solid #d0efff;
  border-radius: 999px;
  background: #fff;
  color: var(--sub-dark);
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 3px 0 #dff5ff;
}

.hero__puni-showcase {
  position: relative;
  z-index: 1;
  min-height: 240px;
}

.hero-puni {
  position: absolute;
  display: grid;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #ffeaf4);
  box-shadow: 0 7px 16px rgba(143, 58, 102, .2);
}

.hero-puni img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 4px 2px rgba(87, 46, 73, .18));
}

.hero-puni--enma { z-index: 3; right: 104px; top: 40px; width: 142px; height: 142px; border-color: #ffe17a; }
.hero-puni--kyubi { z-index: 2; right: 0; top: 4px; width: 112px; height: 112px; border-color: #aee7ff; transform: rotate(7deg); }
.hero-puni--fubuki { z-index: 2; right: 14px; bottom: 2px; width: 116px; height: 116px; border-color: #ffb6d5; transform: rotate(-6deg); }
.hero-puni--maou { z-index: 1; left: 6px; bottom: 0; width: 108px; height: 108px; border-color: #c7b1ff; transform: rotate(-7deg); }

.maker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, .93fr);
  align-items: start;
  gap: 20px;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto 64px;
}

.editor,
.preview-section {
  min-width: 0;
  padding: 22px;
  border: 3px solid var(--line);
  border-radius: 25px;
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--shadow);
}

.preview-section {
  position: sticky;
  top: 80px;
  border-color: #bfeaff;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 11px 14px;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--soft-pink), var(--soft-blue));
}

.section-heading h2 {
  margin: 0;
  color: var(--main-dark);
  font-size: 24px;
  line-height: 1.2;
}

.section-heading__step {
  margin: 0 0 1px;
  color: var(--sub-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}

.save-state,
.progress-badge {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 2px solid #a9e2ff;
  border-radius: 999px;
  background: #fff;
  color: var(--sub-dark);
  font-size: 11px;
  font-weight: 900;
}

.save-state.is-saved { border-color: #bde99f; color: #438520; }
.progress-badge { border-color: #ffb5d4; color: var(--main-dark); }

.form-card {
  min-width: 0;
  margin: 0 0 15px;
  padding: 17px;
  border: 2px solid #f4c8dc;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 5px 0 #fff0f7;
}

.form-card:nth-of-type(3) { border-color: #c7eaff; box-shadow: 0 5px 0 #eefaff; }
.form-card:nth-of-type(4) { border-color: #f4dd86; box-shadow: 0 5px 0 #fff9dc; }
.form-card--collection { border-color: #f4dd86; background: linear-gradient(120deg, #fff, #fffdf0); box-shadow: 0 5px 0 #fff9dc; }
.form-card--records { border-color: #ccebb8; box-shadow: 0 5px 0 #f1fbe9; }
.form-card:last-child { margin-bottom: 0; }
.form-card--profile { background: linear-gradient(120deg, #fffafd, #f6fcff); }

.form-card legend {
  padding: 0 7px;
  color: #5c435f;
  font-size: 16px;
  font-weight: 900;
}

.legend-number {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--main);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 2px 0 #d92d82;
}

.field-help {
  margin: -2px 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.input-grid { display: grid; gap: 11px; }
.input-grid--3 { grid-template-columns: 1fr 160px 1.12fr; }
.input-grid--records { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.event-collect-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
  align-items: stretch;
  gap: 11px;
}

.field {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #604f64;
  font-size: 12px;
  font-weight: 900;
}

.field small { color: #a091a4; font-size: 10px; }

.field__label-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.field__label-with-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(77, 48, 70, .16));
}

.field input,
.field select {
  min-width: 0;
  width: 100%;
  padding: 10px 11px;
  border: 2px solid #ead6e2;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  transition: border-color .15s, box-shadow .15s;
}

.field input:focus,
.field select:focus {
  border-color: var(--main);
  box-shadow: 0 0 0 4px rgba(255, 113, 173, .13);
}

.field__control {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 2px solid #ead6e2;
  border-radius: 12px;
  background: #fff;
}

.field__control:focus-within {
  border-color: var(--main);
  box-shadow: 0 0 0 4px rgba(255, 113, 173, .13);
}

.field__control input { border: 0; border-radius: 0; box-shadow: none !important; }
.field__control input[readonly] {
  background: #eef9ff;
  color: #237daf;
  cursor: not-allowed;
}
.field__control b { flex: 0 0 auto; padding: 0 10px 0 3px; color: #8c7d90; font-size: 11px; white-space: nowrap; }
.records-wide { grid-column: 1 / -1; }

.growth-rule {
  margin: -2px 0 0;
  padding: 8px 11px;
  border-radius: 11px;
  background: #eefaff;
  color: #5b7d91;
  font-size: 11px;
  font-weight: 800;
}

.growth-rule.is-forced {
  background: #fff4d7;
  color: #8a5d00;
}

.check-grid { display: grid; gap: 8px; }
.check-grid--characters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check-grid--compact { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.check-grid--seals { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.check-card {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 7px 9px;
  border: 2px solid #eadbe6;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: transform .12s, border-color .12s, background .12s;
}

.check-card:hover { transform: translateY(-1px); border-color: #f29bc3; }
.check-card input { position: absolute; opacity: 0; pointer-events: none; }

.check-card--character {
  min-height: 83px;
  padding: 6px 8px 6px 5px;
  background: linear-gradient(135deg, #fff, #fff8fc);
}

.check-card__puni {
  display: grid;
  place-items: center;
  flex: 0 0 72px;
  width: 72px;
  height: 68px;
  margin-right: 6px;
  overflow: hidden;
  border-radius: 13px;
  background: radial-gradient(circle, #fff 0 48%, #ffeaf4 50% 100%);
}

.check-card__puni img {
  display: block;
  width: 66px;
  height: 62px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .38;
  transition: filter .15s, opacity .15s, transform .15s;
}

.check-card__puni--future {
  border: 2px dashed #d8c9d4;
  color: #9a8996;
  font-size: 10px;
  font-weight: 900;
}

.check-card__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  margin-right: 7px;
  border: 2px solid #d8c8d6;
  border-radius: 50%;
  background: #fff;
  color: transparent;
  font-size: 14px;
  font-weight: 900;
}

.check-card--character .check-card__mark {
  position: absolute;
  right: 7px;
  top: 7px;
  z-index: 2;
  margin: 0;
}

.check-card__main { display: block; min-width: 0; line-height: 1.25; }
.check-card__name { display: block; overflow: hidden; color: #55465a; font-size: 12px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.check-card__meta { display: inline-block; margin-top: 4px; padding: 2px 7px; border-radius: 999px; background: #f3edf4; color: #8d7990; font-size: 9px; font-weight: 900; }

.check-card input:checked ~ .check-card__mark {
  border-color: #fff;
  background: var(--main);
  color: #fff;
  box-shadow: 0 2px 0 #d92d82;
}

.check-card:has(input:checked) {
  border-color: var(--main);
  background: var(--soft-pink);
}

.check-card:has(input:checked) .check-card__puni img { filter: none; opacity: 1; transform: scale(1.04); }
.check-card:has(input:checked) .check-card__meta { background: var(--yellow); color: #76531a; }
.check-card:has(input:focus-visible) { outline: 3px solid rgba(103, 201, 255, .55); outline-offset: 2px; }

.check-grid--compact .check-card { justify-content: center; padding: 8px 4px; }
.check-grid--compact .check-card__mark { margin-right: 5px; }
.check-grid--compact .check-card__name { font-size: 11px; }

.sub-field + .sub-field { margin-top: 17px; }
.sub-field__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sub-field__head h3 { margin: 0; color: #5c4b61; font-size: 13px; }
.sub-field__head output { padding: 2px 8px; border-radius: 999px; background: var(--soft-blue); color: var(--sub-dark); font-size: 11px; font-weight: 900; }

.wide-check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 17px;
  padding: 10px 12px;
  border: 2px solid #efce62;
  border-radius: 15px;
  background: var(--soft-yellow);
  cursor: pointer;
}

.wide-check input { position: absolute; opacity: 0; }
.wide-check__mark { display: grid; place-items: center; flex: 0 0 auto; width: 25px; height: 25px; border: 2px solid #d8b841; border-radius: 50%; background: #fff; }
.wide-check__mark::after { content: "✓"; color: transparent; font-weight: 900; }
.wide-check input:checked + .wide-check__mark { border-color: #fff; background: var(--main); box-shadow: 0 2px 0 #d92d82; }
.wide-check input:checked + .wide-check__mark::after { color: #fff; }
.wide-check:has(input:focus-visible) { outline: 3px solid rgba(103, 201, 255, .55); }
.wide-check strong, .wide-check small { display: block; }
.wide-check strong { color: #654e36; font-size: 13px; }
.wide-check small { color: #907a60; font-size: 10px; font-weight: 700; }

.wide-check__boss-thumb {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  padding: 3px;
  border: 2px solid rgba(216, 184, 65, .48);
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
}

.wide-check__boss-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wide-check--watch {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-areas: "watch-image watch-copy";
  align-items: center;
  column-gap: 11px;
  min-height: 100px;
  margin-top: 0;
  padding: 10px 46px 10px 10px;
  background: linear-gradient(120deg, #fffdf0, #fff6df);
}

.wide-check--watch .wide-check__mark {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 1;
}

.wide-check__image {
  grid-area: watch-image;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding: 4px;
  border: 2px solid #efd978;
  border-radius: 15px;
  background: #fff;
}

.wide-check__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wide-check__copy {
  grid-area: watch-copy;
  min-width: 0;
  line-height: 1.35;
}

.wide-check--watch .wide-check__copy strong {
  font-size: 13px;
  line-height: 1.35;
}

.wide-check--watch .wide-check__copy small {
  margin-top: 4px;
  line-height: 1.4;
}

.field--collect {
  align-content: center;
  min-height: 94px;
  padding: 10px 12px;
  border: 2px solid #efce62;
  border-radius: 15px;
  background: var(--soft-yellow);
}

.field__title {
  display: flex;
  align-items: center;
  gap: 7px;
}

.field__title img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 2px 1px rgba(92, 56, 35, .14));
}

.preview-shell {
  overflow: hidden;
  border: 3px solid var(--main);
  border-radius: 18px;
  background: var(--yellow);
  box-shadow: 0 7px 0 #ffc3dd, 0 14px 24px rgba(131, 69, 98, .16);
}

#cardCanvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #fff6c8; }

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 19px;
}

.action-button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 58px;
  padding: 8px 11px;
  border: 2px solid #ead8e6;
  border-radius: 15px;
  background: #fff;
  color: #5b4b60;
  text-align: left;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, border-color .12s;
}

.action-button:hover { transform: translateY(-1px); border-color: #ef99c1; box-shadow: 0 6px 0 #fff0f7; }
.action-button:focus-visible { outline: 3px solid rgba(103, 201, 255, .55); outline-offset: 2px; }
.action-button:disabled { opacity: .58; cursor: wait; transform: none; box-shadow: none; filter: grayscale(.18); }
.action-button__icon { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--soft-pink); color: var(--main-dark); font-size: 16px; font-weight: 900; }
.action-button strong, .action-button small { display: block; }
.action-button strong { font-size: 13px; line-height: 1.2; }
.action-button small { margin-top: 2px; color: #958796; font-size: 9px; font-weight: 800; }

.action-button--primary { border-color: var(--main); background: var(--main); color: #fff; box-shadow: 0 4px 0 #d92d82; }
.action-button--primary .action-button__icon { background: #fff; color: var(--main-dark); }
.action-button--primary small { color: rgba(255, 255, 255, .82); }
.action-button--x { border-color: #34313a; background: #34313a; color: #fff; box-shadow: 0 4px 0 #17151a; }
.action-button--x .action-button__icon { background: #fff; color: #111; }
.action-button--x small { color: rgba(255, 255, 255, .72); }
.action-button--danger { color: #b43a5f; }

.action-status {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border: 2px solid #b9e697;
  border-radius: 13px;
  background: #f2fde9;
  color: #477a25;
  font-size: 12px;
  font-weight: 800;
}

.action-status.is-visible { display: block; }
.action-status.is-error { border-color: #efb4c5; background: #fff1f5; color: #a02f55; }

.share-note { margin-top: 14px; padding: 12px 14px; border: 2px solid #c8edff; border-radius: 15px; background: var(--soft-blue); }
.share-note h3 { margin: 0 0 3px; color: var(--sub-dark); font-size: 12px; }
.share-note p { margin: 0; color: #6e6c7a; font-size: 10px; font-weight: 700; }
.privacy-note { margin: 10px 2px 0; color: #8c7d8d; font-size: 10px; font-weight: 700; text-align: center; }

.site-footer {
  padding: 25px 14px 34px;
  border-top: 3px solid var(--line);
  background: rgba(255, 255, 255, .86);
  color: #746574;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.site-footer a { color: var(--main-dark); }

@media (max-width: 1020px) {
  .hero { grid-template-columns: minmax(0, 1fr) 320px; }
  .hero-puni--enma { right: 84px; }
  .maker { grid-template-columns: 1fr; }
  .preview-section { position: static; }
  .input-grid--3 { grid-template-columns: 1fr 170px; }
  .input-grid--3 .field:last-child { grid-column: 1 / -1; }
}

@media (min-width: 1021px) and (max-width: 1160px) {
  .event-collect-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { background-attachment: scroll; }
  .wiki-nav__inner { flex-wrap: wrap; }
  .wiki-nav__search { flex-basis: 100%; }
  .hero { grid-template-columns: 1fr; min-height: 0; margin-top: 16px; padding: 20px 19px 15px; border-radius: 24px; }
  .hero__logo { width: min(270px, 76%); }
  .hero h1 { font-size: 39px; }
  .hero p { padding-right: 0; font-size: 13px; }
  .hero__puni-showcase { min-height: 150px; margin-top: 6px; }
  .hero-puni--enma { right: calc(50% - 65px); top: 10px; width: 126px; height: 126px; }
  .hero-puni--kyubi { right: calc(50% - 170px); top: 4px; width: 94px; height: 94px; }
  .hero-puni--fubuki { right: calc(50% - 180px); bottom: 0; width: 93px; height: 93px; }
  .hero-puni--maou { left: calc(50% - 180px); bottom: 0; width: 92px; height: 92px; }
  .maker { width: min(100% - 20px, 680px); gap: 14px; }
  .editor, .preview-section { padding: 14px; border-radius: 20px; }
  .section-heading h2 { font-size: 21px; }
  .form-card { padding: 13px; }
  .input-grid--3, .input-grid--records { grid-template-columns: 1fr; }
  .input-grid--3 .field:last-child { grid-column: auto; }
  .check-grid--characters { grid-template-columns: 1fr; }
  .check-grid--seals { grid-template-columns: 1fr; }
  .check-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .event-collect-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 34px; }
  .hero__chips { gap: 5px; }
  .hero__chips span { padding: 3px 7px; font-size: 9px; }
  .editor, .preview-section { padding: 11px; }
  .form-card { padding: 11px; }
  .wide-check--watch {
    grid-template-columns: 60px minmax(0, 1fr);
    column-gap: 9px;
    min-height: 84px;
    padding: 8px 40px 8px 8px;
  }
  .wide-check--watch .wide-check__mark { top: 9px; right: 9px; }
  .wide-check__image { width: 60px; height: 60px; padding: 3px; border-radius: 13px; }
  .wide-check--watch .wide-check__copy strong { font-size: 12px; }
  .wide-check--watch .wide-check__copy small { margin-top: 2px; font-size: 9px; }
  .action-grid { grid-template-columns: 1fr; }
  .action-button { min-height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* v322: SAOコラボ版 */
.hero--sao {
  border-color: #2ca9df;
  background:
    radial-gradient(circle at 12% 22%, rgba(255,255,255,.86) 0 6px, transparent 7px),
    linear-gradient(125deg, #ffffff 0%, #edf9ff 48%, #e8f0ff 100%);
  box-shadow: var(--shadow), 0 7px 0 #8cd9f4;
}
.hero--sao .hero__eyebrow { border-color: #43b8e7; background: #dff6ff; color: #176c95; }
.hero--sao h1 { color: #197ca8; text-shadow: 0 3px 0 #fff, 0 5px 0 rgba(93, 151, 255, .28); }
.hero--sao .hero-puni--enma { border-color: #65d6ff; }
.hero--sao .hero-puni--kyubi { border-color: #ffcf70; }
.hero--sao .hero-puni--fubuki { border-color: #ec8ee3; }
.hero--sao .hero-puni--maou { border-color: #a894ff; }

.check-grid--characters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.check-card--character { min-height: 80px; padding: 8px; }
.check-card__puni { width: 58px; height: 58px; flex-basis: 58px; }
.check-card__puni img { width: 54px; height: 54px; max-width: 100%; max-height: 100%; }
.check-card__name { white-space: normal; line-height: 1.25; }

.trade-input-grid { display: grid; gap: 10px; }
.trade-field {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 128px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px;
  border: 2px solid #dceaf2;
  border-radius: 17px;
  background: linear-gradient(105deg, #fff, #f8fcff);
}
.trade-field__image {
  display: grid;
  place-items: center;
  width: 78px;
  height: 68px;
  border-radius: 14px;
  background: #f2fbff;
}
.trade-field__image img { max-width: 72px; max-height: 64px; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(20,63,92,.14)); }
.trade-field__copy { min-width: 0; }
.trade-field__copy b, .trade-field__copy small { display: block; }
.trade-field__copy b { color: #36566c; font-size: 12px; line-height: 1.35; }
.trade-field__copy small { margin-top: 3px; color: #7e919e; font-size: 9px; font-weight: 800; }
.trade-field .field__control { min-width: 0; }
.trade-field .field__control input { min-width: 0; width: 100%; }

@media (max-width: 900px) {
  .check-grid--characters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .check-grid--characters { grid-template-columns: 1fr; }
  .trade-field { grid-template-columns: 62px minmax(0, 1fr); }
  .trade-field__image { width: 62px; height: 58px; }
  .trade-field__image img { max-width: 58px; max-height: 54px; }
  .trade-field .field__control { grid-column: 1 / -1; }
}


/* v324: 封印ボス育成入力 */
.growth-box {
  margin-top: 14px;
  padding: 12px;
  border: 2px solid #cdbdf7;
  border-radius: 16px;
  background: linear-gradient(135deg, #fbf9ff, #f2edff);
}
.growth-box__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.growth-box__head strong, .growth-box__head small { display: block; }
.growth-box__head strong { color: #5d438c; font-size: 13px; }
.growth-box__head small { color: #7d6f98; font-size: 10px; font-weight: 700; line-height: 1.45; }
.growth-box__inputs { margin-top: 0; }
@media (max-width: 720px) { .growth-box__head { align-items: flex-start; } }
