:root {
  color-scheme: light;
  --bg: #07111b;
  --bg-deep: #13283b;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.13);
  --text: #eaf4ff;
  --muted: #9fb7d0;
  --line: rgba(255, 255, 255, 0.16);
  --accent: #53d1ff;
  --accent-2: #79f6a0;
  --accent-soft: rgba(83, 209, 255, 0.16);
  --good: #57dd8c;
  --warn: #f2bf5d;
  --shadow: 0 24px 60px rgba(4, 10, 20, 0.46);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "LXGW WenKai", "Kaiti SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(83, 209, 255, 0.24), transparent 36%),
    radial-gradient(circle at 88% 10%, rgba(121, 246, 160, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(130, 150, 255, 0.14), transparent 32%),
    linear-gradient(130deg, #071019 0%, var(--bg) 42%, var(--bg-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 85%);
  opacity: 0.24;
}

.page-shell {
  width: min(1600px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
  position: relative;
  z-index: 1;
}

.card {
  background: var(--card);
  border: 1px solid rgba(67, 94, 78, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.70)),
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(161, 98, 7, 0.12));
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.70)), linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(161, 98, 7, 0.12)), var(--hero-image);
  background-size: auto, auto, cover;
  background-position: center, center, right center;
  background-repeat: no-repeat;
}

.hero-copy h1,
.form-head h2,
.result-head h2,
.notice h2,
.result-block h3 {
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero-copy h1 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  margin-bottom: 10px;
  color: #0f172a;
}

.hero-top {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 10px;
}

.hero-help-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(68, 45, 25, 0.08);
  flex: 0 0 auto;
  line-height: 1;
}

.hero-help-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(68, 45, 25, 0.12);
}

.hero-subline {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #0f766e;
  font-weight: 700;
}

.hero-text,
.form-head p,
.fine-print,
.help,
.notice li,
.notice-chip span {
  color: var(--muted);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.hero-materials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  max-width: 520px;
}

.material-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(124, 92, 57, 0.14);
  box-shadow: 0 10px 20px rgba(68, 45, 25, 0.06);
}

.material-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
}

.material-card span {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-align: center;
}

.badge,
.chance-pill,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  border: 1px solid rgba(15, 118, 110, 0.16);
}

.badge {
  gap: 6px;
  background: rgba(255, 255, 255, 0.84);
  color: #0f172a;
}

.badge i {
  font-size: 12px;
  line-height: 1;
}

.badge-link {
  color: #0f172a;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.badge-link:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 10px 18px rgba(68, 45, 25, 0.10);
}

.badge-strong,
.chance-pill {
  background: linear-gradient(135deg, var(--accent), #159e92);
  color: #fff;
  border-color: transparent;
}

.egg-page-shell {
  width: min(1200px, calc(100% - 32px));
}

.hero-egg .hero-copy h1 {
  font-size: clamp(26px, 2.8vw, 38px);
}

.egg-query-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.94fr) minmax(420px, 1.06fr);
  gap: 16px;
  align-items: start;
  padding: 22px;
}

.egg-query-layout-single {
  grid-template-columns: 1fr;
}

.egg-main-col {
  display: grid;
  gap: 14px;
}

.egg-extra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.egg-extra-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(67, 94, 78, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 249, 0.9));
}

.egg-size-inputs {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.egg-size-actions {
  display: grid;
  gap: 8px;
}

.egg-inline-help {
  margin: 0;
}

.egg-size-inputs-precise {
  margin-top: 4px;
}

.egg-mini-result {
  display: grid;
  gap: 8px;
}

.egg-group-result-shell {
  gap: 14px;
}

.egg-group-summary {
  display: grid;
  gap: 8px;
}

.egg-member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.egg-member-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(100, 116, 139, 0.18);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
}

.egg-member-figure {
  position: relative;
  width: 96px;
  height: 96px;
  min-height: 0;
  justify-self: start;
  border-radius: 14px;
  border: 1px solid rgba(15, 118, 110, 0.10);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.14), transparent 42%),
    linear-gradient(135deg, rgba(236, 254, 255, 0.98), rgba(255, 251, 235, 0.98));
  overflow: hidden;
}

.egg-member-figure img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
  padding: 6px;
}

.egg-member-copy {
  display: grid;
  gap: 6px;
}

.egg-member-copy strong {
  font-size: 14px;
  color: #0f172a;
  line-height: 1.35;
}

.egg-member-copy p {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

.egg-member-status {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 900;
}

.egg-member-status-yes {
  color: #166534;
  background: rgba(220, 252, 231, 0.96);
  border: 1px solid rgba(22, 163, 74, 0.22);
}

.egg-member-status-no {
  color: #92400e;
  background: rgba(255, 247, 237, 0.96);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.egg-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.egg-page-btn {
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: var(--accent);
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.egg-page-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(68, 45, 25, 0.08);
}

.egg-page-btn.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), #0b5e57);
  border-color: transparent;
}

.egg-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.egg-page-meta {
  margin-left: auto;
  font-size: 12px;
  color: #64748b;
}

.paternal-pagination {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.paternal-pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.paternal-page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.paternal-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  border-radius: 8px;
  padding: 8px 13px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 36px;
  text-align: center;
}

.paternal-page-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.34);
  background: rgba(236, 254, 255, 0.96);
  color: var(--accent);
}

.paternal-page-btn.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), #0b5e57);
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.18);
}

.paternal-page-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.paternal-page-btn.paternal-page-prev,
.paternal-page-btn.paternal-page-next {
  min-width: 96px;
  font-weight: 800;
  gap: 6px;
  padding-inline: 16px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.98));
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.paternal-page-btn-label {
  white-space: nowrap;
}

.paternal-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  cursor: default;
  padding: 0 2px;
}

.paternal-page-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
}

.egg-pair-result {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  padding: 12px;
  border-radius: 12px;
  background:
    radial-gradient(circle at top left, rgba(83, 209, 255, 0.14), transparent 40%),
    linear-gradient(160deg, rgba(8, 21, 38, 0.95), rgba(13, 35, 58, 0.92));
  border: 1px solid rgba(83, 209, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow-x: visible;
}

.egg-pair-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(159, 183, 208, 0.26);
  min-width: fit-content;
  flex: 0 0 auto;
}

.egg-pair-item strong {
  font-size: 12px;
  color: #eaf4ff;
  white-space: nowrap;
  font-weight: 800;
}

.egg-pair-intro {
  font-size: 10px;
  color: #9fb7d0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.egg-pair-symbol {
  font-size: 13px;
  font-weight: 900;
  color: #79f6a0;
  flex: 0 0 auto;
}

.egg-pair-result-item {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(121, 246, 160, 0.28) !important;
  padding: 10px 12px !important;
  min-width: 156px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.egg-pair-result-item i {
  font-size: 16px;
}

.egg-pair-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cfe3f7;
}

.egg-pair-check-success {
  color: #79f6a0;
}

.egg-pair-check-fail {
  color: #ffb786;
}

.egg-pair-check-note {
  font-size: 11px;
  color: #9fb7d0;
}

.egg-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.egg-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.2;
  color: #334155;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.96);
}

.magic-result-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.magic-result-section {
  display: grid;
  gap: 8px;
}

.magic-result-section + .magic-result-section {
  margin-top: 4px;
}

.magic-result-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
}

.magic-result-section-title i {
  margin-right: 6px;
  color: #0f766e;
}

.magic-result-section-title span {
  font-size: 11px;
  color: #475569;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(248, 250, 252, 0.94);
}

.magic-result-card {
  display: grid;
  gap: 10px;
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.magic-result-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.magic-result-card-fuzzy .magic-result-head {
  align-items: center;
}

.magic-result-media {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(248, 250, 252, 0.92);
}

.magic-result-media img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: rgba(255, 255, 255, 0.94);
  padding: 4px;
}

.magic-result-media-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #0f766e;
  margin-bottom: 6px;
}

.magic-open-detail-btn {
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.magic-open-detail-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

body.drawer-open {
  overflow: hidden;
}

.magic-detail-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  justify-items: end;
}

.magic-detail-drawer[hidden] {
  display: none !important;
}

.magic-detail-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(7, 17, 27, 0.46);
  cursor: pointer;
}

.magic-detail-panel {
  position: relative;
  z-index: 2;
  width: min(460px, calc(100% - 20px));
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 248, 0.96));
  border-left: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: -16px 0 32px rgba(15, 23, 42, 0.18);
  padding: 16px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.magic-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.magic-detail-head h3 {
  margin: 0;
  font-size: 18px;
  color: #0f172a;
}

.magic-detail-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.96);
  color: #334155;
  cursor: pointer;
}

.magic-detail-content {
  overflow: auto;
  display: grid;
  gap: 12px;
}

.magic-detail-hero {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.9);
}

.magic-detail-avatar-wrap {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  background: rgba(255, 255, 255, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}

.magic-detail-avatar-wrap img {
  max-width: 64px;
  max-height: 64px;
  object-fit: contain;
}

.magic-detail-summary {
  display: grid;
  gap: 8px;
  align-content: start;
}

.magic-detail-summary strong {
  font-size: 16px;
  color: #0f172a;
}

.magic-detail-body-wrap {
  height: 230px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}

.magic-detail-body-wrap img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
}

.magic-pet-evolution {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.9);
}

.magic-pet-evolution-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
  color: #0f172a;
}

.magic-evo-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.magic-evo-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.96);
}

.magic-evo-empty {
  font-size: 12px;
  color: #64748b;
}

@media (max-width: 680px) {
  .magic-detail-drawer {
    justify-items: stretch;
  }

  .magic-detail-panel {
    width: 100%;
    height: min(82vh, 620px);
    align-self: end;
    border-left: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -14px 28px rgba(15, 23, 42, 0.2);
  }

  .magic-detail-body-wrap {
    width: 100%;
    height: 180px;
  }
}

.magic-result-name {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  color: #0f172a;
}

.magic-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.magic-result-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #475569;
}

.magic-result-grid-tight {
  margin-top: 2px;
}

.magic-result-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.2;
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #334155;
  background: rgba(248, 250, 252, 0.96);
}

.magic-result-tag-source {
  gap: 6px;
  color: #0f766e;
  background: rgba(240, 253, 250, 0.98);
  border-color: rgba(15, 118, 110, 0.22);
}

.magic-result-tag-source i {
  font-size: 11px;
}

.magic-result-tag-muted {
  color: #475569;
  background: rgba(248, 250, 252, 0.96);
}

.magic-result-tag-confidence-high {
  color: #166534;
  background: rgba(220, 252, 231, 0.96);
  border-color: rgba(34, 197, 94, 0.22);
}

.magic-result-tag-confidence-medium {
  color: #92400e;
  background: rgba(255, 247, 237, 0.98);
  border-color: rgba(245, 158, 11, 0.24);
}

.magic-result-tag-confidence-low {
  color: #1d4ed8;
  background: rgba(239, 246, 255, 0.98);
  border-color: rgba(96, 165, 250, 0.24);
}

.egg-search-picker {
  min-height: 0;
  align-content: start;
}

.egg-page-tip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.egg-selected-card.has-value {
  border-style: solid;
  border-color: rgba(15, 118, 110, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 252, 249, 0.94));
}

.hatch-inline-text {
  color: #0f766e !important;
  font-weight: 700;
}

.egg-result-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.egg-result-title {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: #eaf4ff;
  text-shadow: 0 1px 2px rgba(7, 17, 27, 0.45);
}

.egg-result-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(100, 116, 139, 0.18);
  background: rgba(255, 255, 255, 0.92);
}

.egg-result-card strong {
  font-size: 18px;
  color: #0f172a;
}

.egg-result-card p {
  margin: 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
}

.egg-search-context-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at top left, rgba(83, 209, 255, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 249, 0.92));
}

.egg-search-context-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.egg-search-context-head strong {
  font-size: 15px;
  color: #0f172a;
}

.egg-search-context-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.egg-search-context-pill.is-good {
  color: #166534;
  background: rgba(220, 252, 231, 0.96);
  border: 1px solid rgba(22, 163, 74, 0.18);
}

.egg-search-context-pill.is-warn {
  color: #b45309;
  background: rgba(255, 237, 213, 0.96);
  border: 1px solid rgba(245, 158, 11, 0.18);
}

.egg-search-context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.egg-search-context-kv {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(248, 250, 252, 0.92);
}

.egg-search-context-kv span {
  font-size: 11px;
  color: #64748b;
}

.egg-search-context-kv b {
  font-size: 13px;
  line-height: 1.45;
  color: #0f172a;
  word-break: break-word;
}

.egg-search-context-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #475569;
}

.egg-search-context-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.egg-search-context-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(248, 250, 252, 0.96);
}

.egg-result-empty {
  border-style: dashed;
  background: rgba(248, 250, 252, 0.9);
}

.egg-disabled-card {
  padding: 16px;
}

.egg-disabled-notice {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px dashed rgba(15, 118, 110, 0.35);
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.10), transparent 42%),
    rgba(255, 255, 255, 0.9);
}

.egg-disabled-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  color: #0f172a;
}

.egg-disabled-title i {
  color: #0f766e;
}

.egg-disabled-notice p {
  margin: 0;
  color: #475569;
  font-size: 13px;
}

.egg-result-yes {
  border-color: rgba(22, 163, 74, 0.28);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.96);
}

.egg-result-no {
  border-color: rgba(245, 158, 11, 0.30);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.96);
}

.hatch-status-pill {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 900;
}

.hatch-status-yes {
  color: #166534;
  background: rgba(220, 252, 231, 0.96);
  border: 1px solid rgba(22, 163, 74, 0.22);
}

.hatch-status-no {
  color: #92400e;
  background: rgba(255, 247, 237, 0.96);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.egg-detail-list {
  display: grid;
  gap: 8px;
}

.egg-detail-line {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(248, 250, 252, 0.9);
}

.egg-detail-line span {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.egg-detail-line b {
  font-size: 13px;
  color: #0f172a;
  font-weight: 800;
}

.egg-detail-line a {
  color: #0f766e;
  text-decoration: none;
}

.egg-detail-line a:hover {
  text-decoration: underline;
}

.egg-detail-line-paternal {
  gap: 12px;
}

.egg-paternal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.egg-paternal-head-copy {
  display: grid;
  gap: 4px;
}

.egg-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  background: rgba(236, 254, 255, 0.94);
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.egg-mode-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--accent);
}

.egg-manual-pair-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(circle at top left, rgba(83, 209, 255, 0.10), transparent 34%),
    rgba(255, 255, 255, 0.84);
}

.egg-manual-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #475569;
}

.egg-paternal-search-input {
  margin: 0;
}

.egg-paternal-results {
  max-height: 320px;
}

.egg-picked-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: linear-gradient(135deg, rgba(236, 254, 255, 0.96), rgba(255, 251, 235, 0.96));
}

.egg-picked-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 118, 110, 0.14);
  background: rgba(255, 255, 255, 0.94);
  overflow: hidden;
}

.egg-picked-avatar img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.egg-picked-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.egg-picked-copy span {
  font-size: 11px;
  font-weight: 800;
  color: #0f766e;
}

.egg-picked-copy strong {
  font-size: 14px;
  line-height: 1.35;
  color: #0f172a;
}

.egg-picked-copy p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}

.egg-picked-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f766e;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
  cursor: pointer;
}

.egg-picked-clear:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(15, 118, 110, 0.08);
}

.egg-paternal-results .result-item.is-selected {
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.10);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 254, 255, 0.94));
}

.egg-paternal-results .result-item:disabled,
.egg-paternal-results .result-item.is-disabled {
  cursor: not-allowed;
  opacity: 0.76;
  box-shadow: none;
  border-style: dashed;
}

.egg-paternal-results .result-item:disabled:hover,
.egg-paternal-results .result-item.is-disabled:hover {
  transform: none;
  box-shadow: none;
}

.egg-paternal-results .result-item.is-disabled .result-item-count {
  color: #92400e;
  background: rgba(255, 237, 213, 0.96);
  border-color: rgba(245, 158, 11, 0.18);
}

.egg-paternal-results .result-item.is-selected .result-item-count {
  color: #0f766e;
  background: rgba(204, 251, 241, 0.96);
  border-color: rgba(15, 118, 110, 0.20);
}

.egg-detail-line-pair-result {
  gap: 10px;
}

.egg-pair-summary-mobile {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.94);
}

.egg-pair-summary-icon {
  font-size: 15px;
  flex: 0 0 auto;
}

.egg-pair-summary-text {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.egg-pair-summary-sep {
  font-size: 12px;
  font-weight: 900;
  color: #0f766e;
}

.egg-pair-summary-result {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  color: #0f172a;
  background: rgba(236, 254, 255, 0.96);
  border: 1px solid rgba(15, 118, 110, 0.16);
}

.egg-pair-summary-mobile.is-success {
  border-color: rgba(22, 163, 74, 0.22);
  background: rgba(240, 253, 244, 0.96);
}

.egg-pair-summary-mobile.is-success .egg-pair-summary-icon,
.egg-pair-summary-mobile.is-success .egg-pair-summary-result {
  color: #166534;
}

.egg-pair-summary-mobile.is-success .egg-pair-summary-result {
  background: rgba(220, 252, 231, 0.98);
  border-color: rgba(22, 163, 74, 0.18);
}

.egg-pair-summary-mobile.is-fail {
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(255, 251, 235, 0.96);
}

.egg-pair-summary-mobile.is-fail .egg-pair-summary-icon,
.egg-pair-summary-mobile.is-fail .egg-pair-summary-result {
  color: #b45309;
}

.egg-pair-summary-mobile.is-fail .egg-pair-summary-result {
  background: rgba(255, 237, 213, 0.98);
  border-color: rgba(245, 158, 11, 0.18);
}

.egg-pair-summary-mobile.is-error {
  border-color: rgba(234, 179, 8, 0.22);
  background: rgba(254, 252, 232, 0.96);
}

.egg-pair-summary-mobile.is-error .egg-pair-summary-icon,
.egg-pair-summary-mobile.is-error .egg-pair-summary-result {
  color: #a16207;
}

.egg-pair-summary-mobile.is-error .egg-pair-summary-result {
  background: rgba(254, 249, 195, 0.98);
  border-color: rgba(234, 179, 8, 0.18);
}

.egg-pair-summary-mobile.is-loading .egg-pair-summary-icon,
.egg-pair-summary-mobile.is-loading .egg-pair-summary-result {
  color: #0f766e;
}

.egg-pair-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.egg-pair-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
}

.egg-pair-card-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #64748b;
}

.egg-pair-card-body {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.egg-pair-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 118, 110, 0.12);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.10), transparent 40%),
    rgba(255, 255, 255, 0.96);
  overflow: hidden;
}

.egg-pair-card-avatar img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.egg-pair-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  align-content: center;
}

.egg-pair-card-copy strong {
  font-size: 14px;
  line-height: 1.35;
  color: #0f172a;
  word-break: break-word;
}

.egg-pair-card-copy span {
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.egg-pair-link {
  display: none;
}

.egg-pair-card-result {
  grid-column: 1 / -1;
  background:
    radial-gradient(circle at top left, rgba(83, 209, 255, 0.14), transparent 40%),
    linear-gradient(160deg, rgba(8, 21, 38, 0.95), rgba(13, 35, 58, 0.92));
  border-color: rgba(83, 209, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.egg-pair-card-result .egg-pair-card-label {
  color: #9fb7d0;
}

.egg-pair-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 0;
  color: #cfe3f7;
}

.egg-pair-status i {
  font-size: 20px;
}

.egg-pair-status-copy {
  display: grid;
  gap: 4px;
}

.egg-pair-status-copy strong {
  font-size: 15px;
  color: #eaf4ff;
}

.egg-pair-status-copy p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #9fb7d0;
}

.egg-pair-status.is-loading {
  color: #cfe3f7;
}

.egg-pair-status.is-success {
  color: #79f6a0;
}

.egg-pair-status.is-success .egg-pair-status-copy strong {
  color: #79f6a0;
}

.egg-pair-status.is-fail {
  color: #ffb786;
}

.egg-pair-status.is-fail .egg-pair-status-copy strong {
  color: #ffb786;
}

.egg-pair-status.is-error {
  color: #fde68a;
}

.egg-pair-status.is-error .egg-pair-status-copy strong {
  color: #fde68a;
}

.blocked-page-shell {
  width: min(960px, calc(100% - 24px));
  min-height: 100vh;
  display: grid;
  align-items: center;
}

.blocked-card {
  display: grid;
  gap: 16px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(239, 68, 68, 0.14), transparent 30%),
    rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(239, 68, 68, 0.16);
}

.blocked-card::before {
  content: "";
  position: absolute;
  right: -48px;
  top: -48px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.22), rgba(239, 68, 68, 0));
  pointer-events: none;
}

.blocked-card::after {
  content: "";
  position: absolute;
  left: -44px;
  bottom: -44px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.20), rgba(245, 158, 11, 0));
  pointer-events: none;
}

.blocked-head {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.blocked-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
  color: #b91c1c;
  background: rgba(254, 226, 226, 0.96);
  border: 1px solid rgba(239, 68, 68, 0.24);
  box-shadow: 0 10px 18px rgba(185, 28, 28, 0.12);
}

.blocked-card h1 {
  margin: 0;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.22;
  color: #111827;
}

.blocked-subline {
  margin-top: 8px;
  margin-bottom: 0;
}

.blocked-kv-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.blocked-kv-item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.20);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.blocked-kv-label {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.blocked-kv-value {
  margin: 0;
  font-size: 14px;
  color: #334155;
  line-height: 1.45;
}

.blocked-note-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px dashed rgba(148, 163, 184, 0.30);
}

.blocked-note-list p {
  margin: 0;
  color: #475569;
  line-height: 1.55;
}

.blocked-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blocked-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 14px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.blocked-link:hover {
  transform: translateY(-1px);
}

.blocked-link-main {
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #159e92);
  border: 1px solid transparent;
  box-shadow: 0 12px 22px rgba(15, 118, 110, 0.22);
}

.blocked-link-sub {
  color: #0f766e;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 118, 110, 0.18);
}

.blocked-link-sub:hover {
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 10px 18px rgba(15, 118, 110, 0.12);
}

.notice {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  padding: 22px 24px;
  margin-bottom: 18px;
}

.notice h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.notice ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.notice-grid {
  display: grid;
  gap: 10px;
  align-content: start;
}

.notice-chip {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.notice-chip.active {
  border-color: rgba(15, 118, 110, 0.34);
  background: linear-gradient(135deg, rgba(236, 254, 255, 0.92), rgba(255, 251, 235, 0.92));
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.88fr);
  gap: 18px;
  align-items: start;
}

.form-card,
.result-card {
  padding: 24px;
}

.form-card {
  display: grid;
  gap: 18px;
}

.form-head,
.result-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.form-head p {
  margin: 6px 0 0;
}

.form-head {
  align-items: start;
}

.primary-btn {
  border: 0;
  cursor: pointer;
  padding: 14px 20px;
  border-radius: 16px;
  font: inherit;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #0b5e57);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.24);
}

.primary-btn:hover {
  transform: translateY(-1px);
}

.primary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
  box-shadow: none;
}

.primary-btn-large {
  min-width: 168px;
  padding-inline: 26px;
}

.section-block {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 252, 250, 0.86));
  border: 1px solid rgba(67, 94, 78, 0.12);
}

.section-block-nested {
  margin: 0 14px 14px;
}

.section-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-help-btn {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.section-inline-help {
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(236, 254, 255, 0.96), rgba(255, 251, 235, 0.96));
  border: 1px solid rgba(15, 118, 110, 0.10);
}

.section-inline-help p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
}

.section-auto-note {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(236, 254, 255, 0.96), rgba(255, 251, 235, 0.96));
  border: 1px solid rgba(15, 118, 110, 0.10);
}

.section-auto-copy strong {
  display: block;
  font-size: 13px;
  color: #0f172a;
}

.section-auto-copy p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: #475569;
}

.inline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.inline-toggle input {
  margin: 0;
  accent-color: var(--accent);
}

.section-subfold {
  border: 1px solid rgba(124, 92, 57, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.70);
  overflow: hidden;
}

.section-subfold summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
}

.section-subfold summary::-webkit-details-marker {
  display: none;
}

.section-subfold-body {
  padding: 0 16px 16px;
}

.section-fold {
  border: 1px solid rgba(124, 92, 57, 0.10);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  overflow: hidden;
}

.section-fold-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  cursor: pointer;
}

.section-fold-summary::-webkit-details-marker {
  display: none;
}

.section-fold-copy {
  display: grid;
  gap: 4px;
}

.section-fold-title {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
}

.section-fold-help {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.section-fold-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  color: #9a3412;
  background: rgba(255, 247, 237, 0.92);
  border: 1px solid rgba(249, 115, 22, 0.14);
  white-space: nowrap;
}

.section-fold[open] .section-fold-summary {
  border-bottom: 1px solid rgba(124, 92, 57, 0.10);
}

.form-submit-bar {
  position: sticky;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 118, 110, 0.14);
  box-shadow: 0 18px 34px rgba(68, 45, 25, 0.10);
  backdrop-filter: blur(12px);
}

.form-submit-copy {
  display: grid;
  gap: 4px;
}

.form-submit-copy strong {
  font-size: 15px;
  color: #0f172a;
}

.form-submit-copy p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.field-grid {
  display: grid;
  gap: 14px;
}

.picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.search-picker {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 249, 0.9));
  border: 1px solid rgba(67, 94, 78, 0.14);
}

.search-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.search-head label {
  font-size: 15px;
}

.mini-btn {
  border: 1px solid rgba(15, 118, 110, 0.22);
  background: rgba(236, 254, 255, 0.92);
  color: var(--accent);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.search-input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(100, 116, 139, 0.20);
  background: rgba(255, 255, 255, 0.98);
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  outline: none;
}

.search-input:focus {
  border-color: rgba(15, 118, 110, 0.72);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.search-input::placeholder {
  color: #94a3b8;
}

.selected-card {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 252, 250, 0.92));
  border: 1px dashed rgba(95, 111, 132, 0.22);
}

.selected-card.has-value {
  border-style: solid;
  border-color: rgba(15, 118, 110, 0.22);
}

.selected-pet.has-value {
  align-items: stretch;
  gap: 18px;
  padding: 18px;
  min-height: 188px;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.10), transparent 36%),
    radial-gradient(circle at bottom right, rgba(161, 98, 7, 0.10), transparent 30%),
    rgba(255, 255, 255, 0.97);
  border-color: rgba(15, 118, 110, 0.18);
  box-shadow: 0 18px 32px rgba(68, 45, 25, 0.08);
}

.selected-empty {
  color: #64748b;
  font-size: 13px;
}

.selected-icon-wrap {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(236, 254, 255, 0.96), rgba(255, 251, 235, 0.96));
  border: 1px solid rgba(15, 118, 110, 0.12);
}

.selected-icon-wrap img,
.selected-avatar {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.selected-avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(236, 254, 255, 0.96), rgba(255, 251, 235, 0.96));
  border: 1px solid rgba(15, 118, 110, 0.12);
}

.selected-body {
  width: 96px;
  height: 96px;
}

.selected-pet-art {
  position: relative;
  width: 196px;
  min-width: 196px;
  border-radius: 24px;
  padding: 18px 16px 16px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.10), transparent 28%),
    linear-gradient(180deg, rgba(244, 252, 255, 0.98), rgba(255, 248, 238, 0.98));
  border: 1px solid rgba(15, 118, 110, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.selected-pet-art::before {
  content: "";
  position: absolute;
  inset: auto auto -34px -24px;
  width: 128px;
  height: 128px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.14), rgba(15, 118, 110, 0));
}

.selected-pet-art::after {
  content: "";
  position: absolute;
  top: 12px;
  right: -24px;
  width: 104px;
  height: 104px;
  border-radius: 28px;
  transform: rotate(18deg);
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.10), rgba(249, 115, 22, 0));
}

.selected-pet-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #0f766e;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 118, 110, 0.16);
  z-index: 1;
}

.selected-pet-figure {
  width: 100%;
  height: 176px;
  border: 0;
  background: transparent;
  border-radius: 0;
  filter: drop-shadow(0 18px 22px rgba(15, 23, 42, 0.12));
  z-index: 1;
}

.selected-pet-copy {
  flex: 1 1 auto;
  align-content: start;
  gap: 12px;
}

.selected-pet-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: start;
}

.selected-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.info-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #334155;
  font-size: 12px;
  line-height: 1.2;
}

.info-pill-link {
  text-decoration: none;
  color: #0f766e;
  background: rgba(236, 254, 255, 0.98);
  border-color: rgba(15, 118, 110, 0.16);
}

.info-pill-link:hover {
  background: rgba(204, 251, 241, 0.98);
}

.area-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  background: rgba(236, 254, 255, 0.96);
  border: 1px solid rgba(15, 118, 110, 0.16);
  white-space: nowrap;
}

.area-preview-block {
  display: grid;
  gap: 10px;
  margin-top: 2px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(124, 92, 57, 0.10);
}

.area-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.area-preview-title {
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}

.ghost-btn {
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: var(--accent);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ghost-btn:hover,
.mini-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(68, 45, 25, 0.08);
}

.ghost-btn-strong {
  padding-inline: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.98));
}

.map-entry-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 2px;
  padding: 14px 16px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.map-entry-card-muted {
  border-style: dashed;
  background: rgba(248, 250, 252, 0.86);
}

.map-entry-copy {
  display: grid;
  gap: 4px;
}

.map-entry-label {
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
}

.map-entry-meta {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #475569;
}

.area-chip-row,
.area-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.area-chip,
.area-mini-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  line-height: 1.35;
}

.area-chip {
  background: rgba(240, 249, 255, 0.96);
  color: #0f172a;
  border: 1px solid rgba(59, 130, 246, 0.12);
}

.area-chip-empty,
.area-mini-chip-plain {
  background: rgba(248, 250, 252, 0.96);
  color: #64748b;
  border: 1px dashed rgba(100, 116, 139, 0.18);
}

.selected-copy {
  display: grid;
  gap: 4px;
}

.selected-copy strong {
  font-size: 15px;
}

.selected-copy span,
.selected-copy p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.selected-copy .selected-catch-line,
.selected-copy .selected-catch-meta {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.selected-copy .selected-catch-line {
  -webkit-line-clamp: 2;
  color: #0f172a;
  font-weight: 700;
}

.selected-copy .selected-catch-meta {
  -webkit-line-clamp: 1;
  color: #475569;
}

.result-area-line {
  color: #475569;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.area-dialog {
  width: min(960px, calc(100% - 40px));
  border: 0;
  padding: 0;
  border-radius: 28px;
  background: transparent;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.28);
}

.area-dialog::backdrop {
  background: rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(6px);
}

.area-dialog-shell {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.10), transparent 32%),
    radial-gradient(circle at bottom right, rgba(161, 98, 7, 0.10), transparent 28%),
    rgba(255, 255, 255, 0.98);
}

.area-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.area-dialog-body {
  max-height: min(70vh, 720px);
  overflow: auto;
  padding-right: 4px;
}

.area-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.area-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(124, 92, 57, 0.12);
  box-shadow: 0 12px 24px rgba(68, 45, 25, 0.06);
}

.area-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.area-card-title {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
}

.area-card-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  color: #9a3412;
  background: rgba(255, 247, 237, 0.96);
  border: 1px solid rgba(249, 115, 22, 0.16);
  white-space: nowrap;
}

.search-results {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.result-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(95, 111, 132, 0.15);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  border-radius: 20px;
  padding: 12px;
  cursor: pointer;
  font: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.result-item:hover {
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 14px 28px rgba(35, 64, 54, 0.12);
  transform: translateY(-1px);
}

.result-item-figure {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 42%),
    linear-gradient(135deg, rgba(236, 254, 255, 0.98), rgba(255, 251, 235, 0.98));
  border: 1px solid rgba(15, 118, 110, 0.10);
  overflow: hidden;
}

.result-item-figure img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.result-item-figure-pet {
  width: 64px;
  height: 64px;
  border-radius: 20px;
}

.result-item-figure-pet img {
  width: 54px;
  height: 54px;
}

.result-item-copy {
  display: grid;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}

.result-item-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.result-item strong {
  font-size: 14px;
  color: #0f172a;
}

.result-item-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  color: #0f766e;
  background: rgba(236, 254, 255, 0.94);
  border: 1px solid rgba(15, 118, 110, 0.14);
  white-space: nowrap;
}

.result-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.result-mini-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  background: rgba(248, 250, 252, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.result-mini-pill-link {
  text-decoration: none;
  color: #0f766e;
  background: rgba(236, 254, 255, 0.98);
  border-color: rgba(15, 118, 110, 0.14);
}

.result-mini-pill-link:hover {
  background: rgba(204, 251, 241, 0.98);
}

.result-mini-pill-strong {
  color: #9a3412;
  background: rgba(255, 247, 237, 0.98);
  border-color: rgba(249, 115, 22, 0.16);
}

.result-item p,
.result-item span {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.result-item-desc {
  color: #475569;
}

.result-item-ball {
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.06), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
}

.result-item-pet {
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.07), transparent 32%),
    radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
}

.empty-state {
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed rgba(100, 116, 139, 0.22);
  color: #64748b;
  background: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-top {
  margin-top: -2px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field label,
.hint-card label {
  font-size: 13px;
  font-weight: 800;
  color: #334155;
}

.field-help-detail {
  position: relative;
  flex: 0 0 auto;
}

.field-info-btn {
  list-style: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(68, 45, 25, 0.06);
}

.field-info-btn::-webkit-details-marker {
  display: none;
}

.field-help-detail[open] .field-info-btn {
  background: rgba(236, 254, 255, 0.98);
  border-color: rgba(15, 118, 110, 0.36);
}

.field-help-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 4;
  width: min(320px, 78vw);
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(236, 254, 255, 0.98), rgba(255, 251, 235, 0.98));
  border: 1px solid rgba(15, 118, 110, 0.14);
  box-shadow: 0 20px 36px rgba(68, 45, 25, 0.10);
}

.field-help-popover strong {
  display: block;
  font-size: 12px;
  color: #0f172a;
}

.field-help-list {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.field-help-list li {
  color: #334155;
  font-size: 12px;
  line-height: 1.55;
}

.field input,
.field select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(100, 116, 139, 0.22);
  background: rgba(255, 255, 255, 0.94);
  padding: 12px 14px;
  color: #0f172a;
  font: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.field select option {
  color: #0f172a;
  background: #ffffff;
}

.field input[readonly] {
  background: rgba(241, 245, 249, 0.96);
  color: #475569;
}

.field input:focus,
.field select:focus {
  border-color: rgba(15, 118, 110, 0.72);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.field-check {
  align-content: start;
  padding-top: 4px;
  gap: 10px;
}

.field-check-title {
  font-size: 13px;
  font-weight: 800;
  color: #334155;
}

.check-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(100, 116, 139, 0.18);
  font-weight: 700;
}

.check-label input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.check-label-text {
  flex: 1 1 auto;
  color: #0f172a;
}

.help {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.field-quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.field-quick-pick {
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 999px;
  background: rgba(236, 254, 255, 0.92);
  color: var(--accent);
  padding: 6px 10px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.field-quick-pick:hover {
  background: rgba(204, 251, 241, 0.92);
}

.field-quick-pick:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hint-card {
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(236, 254, 255, 0.96), rgba(255, 251, 235, 0.96));
  border: 1px solid rgba(15, 118, 110, 0.10);
}

.hint-card p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
}

.result-card {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 16px;
}

.result-head h2 {
  font-size: 20px;
}

.chance-pill {
  font-size: 18px;
  white-space: nowrap;
}

.chance-pill-max {
  background: linear-gradient(135deg, #15803d, #22c55e);
}

.chance-pill-muted {
  background: rgba(241, 245, 249, 0.96);
  color: #475569;
  border-color: rgba(148, 163, 184, 0.22);
}

.result-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.result-targets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.result-target-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(124, 92, 57, 0.10);
}

.result-target-card span {
  font-size: 12px;
  color: var(--muted);
}

.result-target-card strong {
  font-size: 15px;
  line-height: 1.4;
  color: #0f172a;
}

.stat {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.82));
  border: 1px solid rgba(124, 92, 57, 0.10);
  display: grid;
  gap: 6px;
}

.stat span {
  font-size: 12px;
  color: #64748b;
}

.stat strong {
  font-size: 18px;
  line-height: 1.2;
  color: #0f172a;
}

.stat-wide {
  grid-column: 1 / -1;
}

.result-block {
  display: grid;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px dashed rgba(124, 92, 57, 0.16);
}

.result-highlight {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(236, 254, 255, 0.96), rgba(255, 251, 235, 0.96));
  border: 1px solid rgba(15, 118, 110, 0.12);
}

.result-highlight strong {
  font-size: 14px;
  color: #0f172a;
}

.result-highlight p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
}

.help-dialog {
  width: min(760px, calc(100% - 36px));
  border: 0;
  padding: 0;
  border-radius: 28px;
  background: transparent;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.28);
}

.help-dialog::backdrop {
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(5px);
}

.help-dialog-shell {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.10), transparent 32%),
    radial-gradient(circle at bottom right, rgba(161, 98, 7, 0.10), transparent 28%),
    rgba(255, 255, 255, 0.98);
}

.help-dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.help-dialog-body {
  display: grid;
  gap: 16px;
}

.help-dialog-section {
  display: grid;
  gap: 12px;
}

.notice-support-block {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(124, 92, 57, 0.10);
  background: rgba(255, 255, 255, 0.72);
}

.qq-group-grid {
  display: grid;
  gap: 14px;
}

.qq-group-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(124, 92, 57, 0.10);
  background: rgba(255, 255, 255, 0.88);
}

.qq-inline-entry {
  display: grid;
  gap: 10px;
}

.qq-group-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  border: 1px solid rgba(124, 92, 57, 0.14);
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.92);
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.qq-group-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #334155;
}

.qq-group-text + .qq-group-text {
  padding-top: 8px;
  border-top: 1px dashed rgba(124, 92, 57, 0.12);
}

.qq-inline-link {
  margin-top: 0;
}

.bwiki-entry-row {
  display: flex;
  justify-content: flex-end;
}

.help-dialog-section h3 {
  margin: 0;
  font-size: 15px;
}

.help-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #475569;
}

.notice-dialog {
  width: min(780px, calc(100% - 36px));
}

.notice-link {
  display: inline-flex;
  justify-self: start;
  margin-top: 2px;
  text-decoration: none;
  color: #0f766e;
  font-weight: 800;
}

.notice-link:hover {
  text-decoration: underline;
}

.result-block h3 {
  font-size: 15px;
}

.formula-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: #334155;
}

.kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kv-grid div {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(124, 92, 57, 0.10);
  display: grid;
  gap: 6px;
}

.kv-grid span {
  font-size: 12px;
  color: var(--muted);
}

.kv-grid strong {
  font-size: 16px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: rgba(241, 245, 249, 0.90);
  color: #475569;
}

.tag.on {
  background: rgba(220, 252, 231, 0.94);
  color: #166534;
  border-color: rgba(22, 163, 74, 0.20);
}

.fine-print {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}

@media (max-width: 1180px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }

  .egg-query-layout {
    grid-template-columns: 1fr;
  }

  .egg-extra-grid {
    grid-template-columns: 1fr;
  }

  .result-card {
    position: static;
  }
}

@media (max-width: 920px) {
  .hero,
  .notice,
  .form-head,
  .result-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-materials {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .hero-badges {
    justify-content: flex-start;
  }

  .blocked-kv-grid {
    grid-template-columns: 1fr;
  }

  .picker-grid {
    grid-template-columns: 1fr;
  }

  .selected-card {
    display: none;
  }

  .selected-card.has-value {
    display: flex;
  }

  .selected-pet.has-value {
    display: flex;
    flex-direction: column;
  }

  .selected-pet-art {
    width: 100%;
    min-width: 0;
  }

  .selected-pet-head,
  .area-preview-head,
  .area-dialog-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .map-entry-card {
    align-items: stretch;
    flex-direction: column;
  }

  .section-fold-summary,
  .form-submit-bar {
    grid-template-columns: 1fr;
    display: grid;
  }

  .two-col,
  .three-col,
  .four-col,
  .result-targets,
  .result-summary,
  .kv-grid {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: min(100% - 20px, 1600px);
    padding-top: 12px;
  }

  .egg-query-layout {
    padding: 16px;
  }

  .egg-member-grid {
    grid-template-columns: 1fr;
  }

  .egg-member-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
  }

  .egg-member-figure {
    min-height: 0;
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 16px;
  }

  .egg-member-figure img {
    width: 72px;
    height: 72px;
    padding: 6px;
  }

  .egg-member-copy {
    flex: 1 1 auto;
    min-width: 0;
    gap: 4px;
  }

  .egg-member-copy p {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .egg-page-meta {
    width: 100%;
    margin-left: 0;
  }

  .egg-search-picker {
    min-height: 0;
  }

  .egg-search-context-grid {
    grid-template-columns: 1fr;
  }

  .egg-search-context-card {
    display: none;
  }

  .egg-paternal-head {
    flex-direction: column;
    align-items: stretch;
  }

  .egg-mode-toggle {
    justify-content: center;
    width: 100%;
  }

  .egg-picked-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 10px;
  }

  .egg-picked-clear {
    grid-column: auto;
    width: auto;
    min-width: 40px;
    padding-inline: 10px;
    border-radius: 12px;
  }

  .egg-picked-clear-text {
    display: none;
  }

  .egg-picked-avatar,
  .egg-manual-note {
    display: none;
  }

  .egg-picked-copy {
    gap: 2px;
  }

  .egg-picked-copy span {
    font-size: 10px;
  }

  .egg-picked-copy strong {
    font-size: 13px;
  }

  .egg-picked-copy p {
    display: none;
  }

  .paternal-pagination-controls {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  .paternal-page-btn.paternal-page-prev,
  .paternal-page-btn.paternal-page-next {
    flex: 0 0 auto;
    min-width: 42px;
    padding-inline: 10px;
  }

  .paternal-page-btn-label {
    display: none;
  }

  .paternal-page-numbers {
    width: auto;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .paternal-page-numbers::-webkit-scrollbar {
    display: none;
  }

  .egg-pair-board {
    display: none;
  }

  .egg-pair-summary-mobile {
    display: flex;
    flex-wrap: wrap;
  }

  .egg-pair-summary-result {
    margin-left: 0;
  }

  .egg-pair-link {
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 2px 0;
    background: transparent;
    border: 0;
  }

  .egg-pair-link i {
    transform: rotate(90deg);
  }

  .blocked-card {
    padding: 20px;
  }

  .blocked-head {
    gap: 10px;
  }

  .blocked-mark {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}
