/* Pet System: generated companion catalogue and evolution atlas. */
.fs-pet-system {
  --pet-cyan: #1789a8;
  --pet-cyan-soft: #d9f3f6;
  --pet-pink: #ad3d83;
  --pet-pink-soft: #f5e0ec;
  --pet-ink: #17375c;
  --pet-muted: #5d7892;
  --pet-line: #829db7;
}

.fs-pet-hero {
  background:
    linear-gradient(112deg, rgba(255,255,255,.98) 0 54%, rgba(216,244,246,.94) 54% 77%, rgba(247,218,235,.93) 100%),
    url("../img/grid.svg");
}

.fs-pet-registry-card {
  position: relative;
  z-index: 1;
  flex: 0 0 350px;
  overflow: hidden;
  min-height: 142px;
  box-sizing: border-box;
  padding: 10px 11px 9px;
  border: 1px solid #567a9b;
  border-radius: 3px;
  background:
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(110,225,235,.04) 8px),
    linear-gradient(145deg, #173c5e, #102943);
  color: #d9f8fb;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.2), 4px 4px 0 rgba(43,65,98,.2);
  font-family: "Courier New", monospace;
}

.fs-pet-registry-card::after {
  content: "";
  position: absolute;
  right: -23px;
  bottom: -47px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(70,218,229,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 14px rgba(70,218,229,.04), 0 0 0 28px rgba(208,70,145,.04);
}

.fs-pet-registry-head {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #91cbd5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.fs-pet-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #61e1bc;
  box-shadow: 0 0 0 3px rgba(97,225,188,.12), 0 0 8px rgba(97,225,188,.7);
}

.fs-pet-registry-stage {
  position: absolute;
  top: 26px;
  right: 12px;
  width: 118px;
  height: 70px;
  border-bottom: 1px solid rgba(118,208,220,.22);
}

.fs-pet-registry-stage::before {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 0;
  left: 4px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(89,214,225,.25), transparent 69%);
}

.fs-pet-registry-stage img {
  position: absolute;
  bottom: 4px;
  max-width: 58px;
  max-height: 60px;
  image-rendering: pixelated;
  filter: drop-shadow(2px 3px 0 rgba(0,0,0,.24));
}

.fs-pet-registry-stage .pet-1 { left: 50%; z-index: 2; transform: translateX(-50%); }

.fs-pet-registry-card dl {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
  margin: 76px 0 0;
}

.fs-pet-registry-card dl > div {
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid rgba(133,196,211,.24);
  background: rgba(7,27,46,.42);
}

.fs-pet-registry-card dt {
  overflow: hidden;
  color: #91b9c8;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fs-pet-registry-card dd {
  margin: 3px 0 0;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.fs-pet-registry-card dl > div:nth-child(2) dd { color: #f184bd; }
.fs-pet-registry-card dl > div:nth-child(3) dd { color: #61e1bc; }
.fs-pet-ticker { margin-bottom: 12px; }

.fs-pet-data-warning {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #b36b57;
  border-left: 4px solid #cf5d47;
  background: #fff1e9;
  color: #704635;
  box-shadow: 2px 2px 0 rgba(92,57,43,.12);
}

.fs-pet-data-warning strong { font: 900 12px/1 "Courier New", monospace; letter-spacing: .08em; }
.fs-pet-data-warning p { margin: 4px 0 0; font-size: 12px; }
.fs-pet-data-warning code { padding: 1px 3px; border: 1px solid #dab6a5; background: #fff; }

.fs-pet-overview,
.fs-pet-directory,
.fs-pet-evolutions { scroll-margin-top: 16px; }

.fs-pet-journey {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  padding: 15px;
  background:
    repeating-linear-gradient(0deg, transparent 0 24px, rgba(69,112,148,.04) 25px),
    #edf5fb;
}

.fs-pet-journey article {
  position: relative;
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #829eb7;
  border-top: 3px solid var(--pet-cyan);
  border-radius: 3px;
  background: #fafdff;
  box-shadow: inset 1px 1px 0 #fff, 3px 3px 0 rgba(42,70,110,.13);
}

.fs-pet-journey article:nth-of-type(2) { border-top-color: #7b6aa6; }
.fs-pet-journey article:nth-of-type(3) { border-top-color: var(--pet-pink); }

.fs-pet-step-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid #6d96ad;
  background: var(--pet-cyan-soft);
  color: #176e89;
  font: 900 12px/1 "Courier New", monospace;
  box-shadow: inset 1px 1px 0 #fff;
}

.fs-pet-journey article:nth-of-type(2) .fs-pet-step-number { background: #ebe5f4; color: #65528e; }
.fs-pet-journey article:nth-of-type(3) .fs-pet-step-number { background: var(--pet-pink-soft); color: #8d2f6e; }
.fs-pet-journey article small { color: var(--pet-pink); font: 900 12px/1 "Courier New", monospace; letter-spacing: .1em; }
.fs-pet-journey article h3 { margin: 4px 0; color: var(--pet-ink); font-size: 14px; }
.fs-pet-journey article p { margin: 0; color: var(--pet-muted); font-size: 12px; line-height: 1.48; }

.fs-pet-journey-link {
  position: relative;
  align-self: center;
  height: 1px;
  background: #819bb3;
}

.fs-pet-journey-link::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  border-width: 4px 0 4px 6px;
  border-style: solid;
  border-color: transparent transparent transparent #819bb3;
}

.fs-pet-overview-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0 15px 15px;
  background: #edf5fb;
}

.fs-pet-overview-metrics > div {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #91a9bc;
  border-left: 3px solid var(--pet-cyan);
  background: rgba(255,255,255,.74);
  box-shadow: inset 1px 1px 0 #fff;
}

.fs-pet-overview-metrics > div:nth-child(even) { border-left-color: var(--pet-pink); }
.fs-pet-overview-metrics dt { color: #647e93; font: 800 12px/1 "Courier New", monospace; }
.fs-pet-overview-metrics dd { margin: 5px 0 0; color: #224c6c; font: 900 18px/1 "Courier New", monospace; }
.fs-pet-overview-metrics dd small { color: #7b8e9f; font-size: 12px; text-transform: uppercase; }

.fs-pet-directory,
.fs-pet-evolutions { margin-top: 12px; }

.fs-pet-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(205px, .42fr) auto;
  gap: 9px;
  padding: 11px;
  border-bottom: 1px solid #89a3ba;
  background: #e6f0f7;
}

.fs-pet-search,
.fs-pet-sort { min-width: 0; }

.fs-pet-search > span:first-child,
.fs-pet-sort > span:first-child {
  display: block;
  margin-bottom: 5px;
  color: #55718b;
  font: 800 12px/1 "Courier New", monospace;
  letter-spacing: .06em;
}

.fs-pet-search-field {
  position: relative;
  display: block;
}

.fs-pet-search-field i {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  width: 9px;
  height: 9px;
  box-sizing: border-box;
  border: 2px solid #4f718c;
  border-radius: 50%;
}

.fs-pet-search-field i::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 5px;
  height: 2px;
  background: #4f718c;
  transform: rotate(45deg);
}

.fs-pet-search input,
.fs-pet-sort select {
  width: 100%;
  height: 34px;
  box-sizing: border-box;
  border: 1px solid #7f9ab4;
  border-radius: 2px;
  outline: 0;
  background: #fff;
  color: #1d4162;
  font: 700 12px/1 Arial, sans-serif;
  box-shadow: inset 1px 1px 2px rgba(42,70,110,.1);
}

.fs-pet-search input { padding: 0 34px 0 30px; }
.fs-pet-sort select { padding: 0 8px; }
.fs-pet-search input:focus,
.fs-pet-sort select:focus { border-color: var(--pet-cyan); box-shadow: 0 0 0 2px rgba(23,137,168,.15), inset 1px 1px 2px rgba(42,70,110,.08); }

.fs-pet-search kbd {
  position: absolute;
  top: 8px;
  right: 7px;
  min-width: 17px;
  height: 18px;
  border: 1px solid #9aafc2;
  border-radius: 2px;
  background: #edf3f7;
  color: #647f96;
  font: 800 12px/18px "Courier New", monospace;
  text-align: center;
  box-shadow: inset 1px 1px 0 #fff;
}

.fs-pet-reset {
  align-self: end;
  height: 34px;
  padding: 0 13px;
  border: 1px solid #865b7d;
  border-radius: 2px;
  background: linear-gradient(#fff, #eadce6);
  color: #71345e;
  font: 900 12px/1 "Courier New", monospace;
  cursor: pointer;
  box-shadow: inset 1px 1px 0 #fff, 2px 2px 0 rgba(43,70,105,.13);
}

.fs-pet-reset:hover:not(:disabled) { border-color: var(--pet-cyan); color: #17647c; }
.fs-pet-reset:disabled { cursor: default; opacity: .48; }

.fs-pet-filter {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 5px;
}

.fs-pet-filter button {
  min-height: 28px;
  padding: 3px 8px;
  border: 1px solid #8ba4b9;
  border-radius: 2px;
  background: linear-gradient(#fff, #dce9f3);
  color: #476783;
  font: 800 12px/1 "Courier New", monospace;
  cursor: pointer;
  box-shadow: inset 1px 1px 0 #fff;
}

.fs-pet-filter button span {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  margin-left: 3px;
  border-radius: 50%;
  background: rgba(68,106,137,.12);
  font-size: 12px;
}

.fs-pet-filter button:hover,
.fs-pet-filter button.current { border-color: #277f9c; background: #ccebef; color: #792f66; }
.fs-pet-filter button.current span { background: #fff; color: #14708a; }

.fs-pet-filter-status {
  align-self: center;
  grid-column: 1 / -1;
  margin: -2px 0 0;
  color: #667e94;
  font: 700 12px/1.3 "Courier New", monospace;
}

.fs-pet-filter-status:empty { display: none; }

.fs-pet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 11px;
  padding: 12px;
  background:
    repeating-linear-gradient(0deg, transparent 0 24px, rgba(69,112,148,.035) 25px),
    #dfeaf3;
}

.fs-pet-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid #7e99b2;
  border-radius: 3px;
  background: #f9fcff;
  box-shadow: inset 1px 1px 0 #fff, 3px 3px 0 rgba(42,70,110,.16);
}

.fs-pet-card[hidden] { display: none !important; }

.fs-pet-card-head {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 88px;
  padding: 9px 10px;
  border-bottom: 1px solid #91a8bc;
  background:
    linear-gradient(112deg, rgba(255,255,255,.96), rgba(223,243,247,.86) 69%, rgba(245,221,235,.72)),
    url("../img/grid.svg");
}

.fs-pet-portrait {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 74px;
  height: 70px;
  border: 1px solid #7796b0;
  background:
    linear-gradient(rgba(255,255,255,.56), rgba(218,237,247,.78)),
    repeating-linear-gradient(0deg, transparent 0 11px, rgba(55,105,142,.08) 12px),
    repeating-linear-gradient(90deg, transparent 0 11px, rgba(55,105,142,.08) 12px);
  box-shadow: inset 1px 1px 0 #fff;
}

.fs-pet-portrait::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 7px;
  left: 8px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(28,117,151,.19), transparent 68%);
}

.fs-pet-portrait img {
  position: relative;
  z-index: 2;
  max-width: 67px;
  max-height: 60px;
  image-rendering: pixelated;
  filter: drop-shadow(2px 3px 0 rgba(49,75,107,.18));
}

.fs-pet-no-art {
  position: relative;
  z-index: 2;
  color: #7890a5;
  font: 900 12px/1 "Courier New", monospace;
  letter-spacing: .06em;
}

.fs-pet-scanline {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(25,161,181,.5);
  box-shadow: 0 2px 6px rgba(25,161,181,.28);
}

.fs-pet-portrait small {
  position: absolute;
  z-index: 4;
  right: 3px;
  bottom: 3px;
  padding: 3px 4px;
  background: rgba(19,50,82,.82);
  color: #fff;
  font: 800 12px/1 "Courier New", monospace;
}

.fs-pet-identity { min-width: 0; }
.fs-pet-identity > span { color: var(--pet-pink); font: 900 12px/1.1 "Courier New", monospace; letter-spacing: .08em; }
.fs-pet-identity h3 { overflow: hidden; margin: 4px 0 6px; color: var(--pet-ink); font-size: 17px; line-height: 1.1; text-overflow: ellipsis; }
.fs-pet-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.fs-pet-tags span { padding: 3px 5px; border: 1px solid #9bafc1; background: rgba(255,255,255,.72); color: #5d748b; font: 800 12px/1 "Courier New", monospace; }
.fs-pet-tags .evolves { border-color: #aa7899; background: #f5e4ee; color: #833466; }

.fs-pet-capture {
  min-width: 56px;
  padding: 6px 7px;
  border: 1px solid #6595aa;
  border-top: 3px solid var(--pet-cyan);
  background: rgba(255,255,255,.74);
  text-align: right;
  box-shadow: inset 1px 1px 0 #fff;
}

.fs-pet-capture small { display: block; color: #6a8398; font: 800 12px/1 "Courier New", monospace; }
.fs-pet-capture strong { display: block; margin-top: 4px; color: #176b84; font: 900 12px/1 "Courier New", monospace; }
.fs-pet-capture.unavailable { border-color: #a3b0bc; border-top-color: #9ba8b3; background: rgba(237,242,246,.8); }
.fs-pet-capture.unavailable strong { color: #7e8e9c; }

.fs-pet-essentials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 9px 9px 7px;
}

.fs-pet-essential {
  min-width: 0;
  min-height: 70px;
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid #a0b4c5;
  background: #eef5fa;
}

.fs-pet-essential > span,
.fs-pet-accessory > span { display: block; margin-bottom: 5px; color: #687f94; font: 900 12px/1 "Courier New", monospace; letter-spacing: .07em; }
.fs-pet-essential > div { display: flex; align-items: center; gap: 6px; min-width: 0; }
.fs-pet-essential img,
.fs-pet-accessory img { width: 24px; height: 24px; flex: 0 0 24px; image-rendering: pixelated; }
.fs-pet-essential strong { overflow: hidden; color: #274b6a; font-size: 12px; line-height: 1.25; text-overflow: ellipsis; }
.fs-pet-essential > small { display: block; margin-top: 5px; color: #73899d; font-size: 12px; line-height: 1.4; }
.fs-pet-essential.muted { display: flex; flex-direction: column; justify-content: center; background: #f1f4f7; }
.fs-pet-essential.muted strong { color: #83919d; font-style: italic; font-weight: 600; }

.fs-pet-loyal-preview {
  margin: 0 9px 7px;
  padding: 8px 9px;
  border: 1px solid #9b7793;
  border-left: 3px solid var(--pet-pink);
  background: linear-gradient(105deg, #f8e9f1, #eef8fa);
}

.fs-pet-loyal-preview > span { display: flex; align-items: center; gap: 6px; color: #8c356c; font: 900 12px/1 "Courier New", monospace; letter-spacing: .08em; }
.fs-pet-loyal-preview > span i { width: 6px; height: 6px; background: #d4529c; transform: rotate(45deg); box-shadow: 0 0 0 2px rgba(212,82,156,.12); }
.fs-pet-loyal-preview > strong { display: block; margin-top: 5px; color: #3c536b; font-size: 12px; line-height: 1.4; }

.fs-pet-accessory {
  display: grid;
  grid-template-columns: 76px 24px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  margin: 0 9px 7px;
  padding: 5px 8px;
  border: 1px dashed #97aabe;
  background: #f5f9fc;
}

.fs-pet-accessory > span { margin: 0; }
.fs-pet-accessory strong { overflow: hidden; color: #4b6780; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.fs-pet-bonus-drawer { border-top: 1px solid #95aabd; background: #edf4f9; }
.fs-pet-bonus-drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  color: #3b5f7c;
  font: 900 12px/1 "Courier New", monospace;
  cursor: pointer;
  list-style: none;
}

.fs-pet-bonus-drawer summary::-webkit-details-marker { display: none; }
.fs-pet-bonus-drawer summary:hover { background: #e1eef5; color: #7d3467; }
.fs-pet-bonus-drawer summary i { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .16s ease; }
.fs-pet-bonus-drawer[open] summary i { transform: rotate(225deg); }

.fs-pet-bonus-tiers { display: grid; gap: 5px; padding: 0 9px 9px; }
.fs-pet-bonus-tiers section { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 7px; padding: 6px 7px; border: 1px solid #a4b6c5; background: #fff; }
.fs-pet-bonus-tiers section > span { align-self: start; padding: 4px 6px; background: #e6f1f6; color: #35617d; font: 900 12px/1 "Courier New", monospace; text-align: center; }
.fs-pet-bonus-tiers section.tier-loyal > span { background: #f3dce9; color: #873467; }
.fs-pet-bonus-tiers ul { margin: 0; padding: 0; list-style: none; }
.fs-pet-bonus-tiers li { position: relative; padding-left: 9px; color: #4f6a82; font-size: 12px; line-height: 1.4; }
.fs-pet-bonus-tiers li::before { content: ""; position: absolute; top: 5px; left: 0; width: 4px; height: 4px; background: var(--pet-cyan); transform: rotate(45deg); }
.fs-pet-bonus-tiers p { margin: 0; padding: 7px; color: #788d9f; font-size: 12px; font-style: italic; }

.fs-pet-empty[hidden] { display: none !important; }
.fs-pet-empty button { padding: 7px 10px; border: 1px solid #758fa8; background: linear-gradient(#fff, #dce9f3); color: #25506f; font: 800 12px/1 "Courier New", monospace; cursor: pointer; }

.fs-pet-evolution-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid #8da5ba;
  background: linear-gradient(105deg, #e3f3f6, #f4e6ee);
}

.fs-pet-evolution-intro span { color: var(--pet-pink); font: 900 12px/1 "Courier New", monospace; letter-spacing: .1em; }
.fs-pet-evolution-intro h3 { margin: 4px 0 2px; color: var(--pet-ink); font-size: 16px; }
.fs-pet-evolution-intro p { margin: 0; color: var(--pet-muted); font-size: 12px; }
.fs-pet-evolution-intro a { flex: 0 0 auto; padding: 9px 12px; border: 1px solid #7c92a9; background: rgba(255,255,255,.7); color: #40647f; font: 800 12px/1 "Courier New", monospace; text-decoration: none; box-shadow: inset 1px 1px 0 #fff; }
.fs-pet-evolution-intro a:hover { border-color: var(--pet-cyan); color: #7d3064; }

.fs-pet-evolution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  align-items: start;
  gap: 14px;
  padding: 14px;
  background:
    repeating-linear-gradient(0deg, transparent 0 24px, rgba(69,112,148,.04) 25px),
    #dfeaf3;
}

.fs-pet-evolution-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #7d98b1;
  border-radius: 3px;
  background: #f9fcff;
  box-shadow: inset 1px 1px 0 #fff, 3px 3px 0 rgba(42,70,110,.15);
}

.fs-pet-evolution-card.stages-3 { grid-column: 1 / -1; }

.fs-pet-evolution-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  box-sizing: border-box;
  padding: 11px 14px;
  border-bottom: 1px solid #8da5ba;
  background: linear-gradient(#fff, #e1edf5);
}

.fs-pet-evolution-card > header span { color: var(--pet-pink); font: 900 12px/1 "Courier New", monospace; letter-spacing: .1em; }
.fs-pet-evolution-card > header h3 { margin: 5px 0 0; color: var(--pet-ink); font-size: 17px; line-height: 1.1; }
.fs-pet-evolution-card > header small { display: flex; align-items: baseline; gap: 4px; flex: 0 0 auto; padding: 6px 8px; border: 1px solid #91a7ba; background: #f7fbfd; color: #607a91; font: 900 12px/1 "Courier New", monospace; letter-spacing: .04em; box-shadow: inset 1px 1px 0 #fff; }
.fs-pet-evolution-card > header small b { color: #873467; font-size: 14px; }

.fs-pet-evolution-flow {
  display: flex;
  align-items: flex-start;
  min-height: 190px;
  padding: 18px 16px 20px;
  overflow-x: auto;
}

.fs-pet-evolution-node { flex: 0 0 112px; min-width: 0; text-align: center; }
.fs-pet-evolution-card.stages-3 .fs-pet-evolution-node { flex-basis: 120px; }
.fs-pet-evolution-art {
  display: grid;
  place-items: center;
  width: 92px;
  height: 86px;
  margin: 0 auto 8px;
  box-sizing: border-box;
  border: 1px solid #8da5b9;
  background:
    radial-gradient(ellipse at 50% 82%, rgba(30,133,159,.18), transparent 42%),
    linear-gradient(#fafdff, #e2eff6);
  box-shadow: inset 1px 1px 0 #fff;
}

.fs-pet-evolution-art img { max-width: 84px; max-height: 76px; image-rendering: pixelated; filter: drop-shadow(2px 3px 0 rgba(49,75,107,.18)); }
.fs-pet-evolution-node > small { display: block; color: #8c376c; font: 900 12px/1 "Courier New", monospace; letter-spacing: .05em; }
.fs-pet-evolution-node > small b { display: inline-grid; place-items: center; min-width: 15px; height: 15px; margin-left: 2px; border: 1px solid #b87a9f; background: #f8e7f0; color: #7f2f63; }
.fs-pet-evolution-node > strong { display: block; margin-top: 5px; color: #284c6a; font-size: 13px; line-height: 1.25; }

.fs-pet-evolution-bridge {
  display: flex;
  flex: 1 1 210px;
  flex-direction: column;
  align-items: stretch;
  min-width: 190px;
  margin: 0 8px;
  padding-top: 42px;
  box-sizing: border-box;
}

.fs-pet-evolution-card.stages-3 .fs-pet-evolution-bridge { min-width: 230px; }
.fs-pet-evolution-arrow { position: relative; height: 2px; flex: 0 0 2px; margin: 0 4px 10px; background: linear-gradient(90deg, #6f91aa, #b14a88); box-shadow: 0 1px 0 rgba(255,255,255,.8); }
.fs-pet-evolution-arrow::before { content: ""; position: absolute; top: -3px; left: -1px; width: 7px; height: 7px; border: 1px solid #6f91aa; border-radius: 50%; background: #eef7fa; }
.fs-pet-evolution-arrow::after { content: ""; position: absolute; top: -4px; right: -1px; border-width: 5px 0 5px 8px; border-style: solid; border-color: transparent transparent transparent #b14a88; }
.fs-pet-evolution-bridge > div { display: flex; flex-direction: column; gap: 5px; padding: 8px; border: 1px solid #a1b3c3; background: rgba(245,250,253,.9); box-shadow: inset 1px 1px 0 #fff; }
.fs-pet-evolution-bridge > div > small { margin-bottom: 2px; color: #7c3564; font: 900 12px/1 "Courier New", monospace; letter-spacing: .07em; }
.fs-pet-evolution-material { display: flex; align-items: center; gap: 7px; min-height: 28px; color: #4f6980; font-size: 12px; line-height: 1.25; }
.fs-pet-evolution-material > span { min-width: 0; overflow-wrap: anywhere; }
.fs-pet-evolution-bridge img { width: 24px; height: 24px; flex: 0 0 24px; image-rendering: pixelated; }
.fs-pet-evolution-bridge b { color: #833566; font: 900 12px/1 "Courier New", monospace; }

@media (max-width: 980px) {
  .fs-pet-journey { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .fs-pet-journey-link { width: 1px; height: 12px; justify-self: center; }
  .fs-pet-journey-link::after { top: auto; right: -3px; bottom: 0; border-width: 6px 4px 0; border-color: #819bb3 transparent transparent; }
  .fs-pet-grid,
  .fs-pet-evolution-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .fs-pet-registry-card { width: 100%; flex-basis: auto; }
  .fs-pet-overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fs-pet-toolbar { grid-template-columns: minmax(0, 1fr); }
  .fs-pet-reset { width: 100%; }
  .fs-pet-filter { gap: 6px; }
  .fs-pet-filter button { flex: 1 1 105px; }
  .fs-pet-grid,
  .fs-pet-evolution-grid { padding: 8px; }
  .fs-pet-evolution-intro { align-items: flex-start; flex-direction: column; }
  .fs-pet-evolution-intro a { width: 100%; box-sizing: border-box; text-align: center; }
  .fs-pet-evolution-card > header { min-height: 64px; padding: 11px 12px; }
  .fs-pet-evolution-card > header h3 { font-size: 16px; }
  .fs-pet-evolution-flow { flex-direction: column; align-items: stretch; min-height: 0; padding: 13px; overflow: visible; }
  .fs-pet-evolution-node,
  .fs-pet-evolution-card.stages-3 .fs-pet-evolution-node {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-rows: 1fr 1fr;
    align-items: center;
    column-gap: 12px;
    width: 100%;
    flex: none;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #9badbd;
    background: rgba(249,252,255,.82);
    text-align: left;
    box-shadow: inset 1px 1px 0 #fff;
  }
  .fs-pet-evolution-art { grid-column: 1; grid-row: 1 / 3; margin: 0; }
  .fs-pet-evolution-node > small { align-self: end; grid-column: 2; grid-row: 1; margin-bottom: 3px; }
  .fs-pet-evolution-node > strong { align-self: start; grid-column: 2; grid-row: 2; margin-top: 3px; font-size: 14px; }
  .fs-pet-evolution-bridge,
  .fs-pet-evolution-card.stages-3 .fs-pet-evolution-bridge {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: start;
    column-gap: 12px;
    width: 100%;
    min-width: 0;
    flex: none;
    margin: 0;
    padding: 0 8px;
  }
  .fs-pet-evolution-arrow {
    grid-column: 1;
    width: 2px;
    height: 42px;
    margin: 0 auto;
    background: linear-gradient(#6f91aa, #b14a88);
  }
  .fs-pet-evolution-arrow::before { top: 0; left: -3px; }
  .fs-pet-evolution-arrow::after { top: auto; right: auto; bottom: -1px; left: -4px; border-width: 8px 5px 0; border-color: #b14a88 transparent transparent; }
  .fs-pet-evolution-bridge > div { grid-column: 2; margin: 8px 0; }
}

@media (max-width: 470px) {
  .fs-pet-system .fs-db-index-tabs { flex-wrap: wrap; }
  .fs-pet-system .fs-db-index-tabs a { flex: 1 1 105px; }
  .fs-pet-overview-metrics { grid-template-columns: minmax(0, 1fr); }
  .fs-pet-card-head { grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
  .fs-pet-portrait { width: 62px; height: 62px; }
  .fs-pet-portrait img { max-width: 58px; max-height: 54px; }
  .fs-pet-capture { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; text-align: left; }
  .fs-pet-capture strong { margin-top: 0; }
  .fs-pet-essentials { grid-template-columns: minmax(0, 1fr); }
  .fs-pet-essential { min-height: 0; }
  .fs-pet-bonus-tiers section { grid-template-columns: minmax(0, 1fr); }
  .fs-pet-accessory { grid-template-columns: 70px 24px minmax(0, 1fr); }
  .fs-pet-evolution-node,
  .fs-pet-evolution-card.stages-3 .fs-pet-evolution-node,
  .fs-pet-evolution-bridge,
  .fs-pet-evolution-card.stages-3 .fs-pet-evolution-bridge { grid-template-columns: 82px minmax(0, 1fr); column-gap: 9px; }
  .fs-pet-evolution-art { width: 82px; height: 76px; }
  .fs-pet-evolution-art img { max-width: 74px; max-height: 68px; }
}

@media (max-width: 390px) {
  .fs-pet-registry-card dt {
    min-height: 24px;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fs-pet-bonus-drawer summary i { transition: none; }
}
