:root {
  color-scheme: dark;
  --ink: #fffaf0;
  --muted: #e1e1df;
  --faint: #b9bbc4;
  --page: #25030b;
  --page-raised: #440712;
  --panel: #4b547a;
  --panel-solid: #4b547a;
  --line: #917a4c;
  --line-strong: #e3b859;
  --gold: #d7a943;
  --gold-light: #ffdb73;
  --green: #6df498;
  --yellow: #ffd44d;
  --orange: #ff963f;
  --red: #ff5f62;
  --blue: #74b9ff;
  --focus: #fff2a6;
  --icon-size: 64px;
  --hit-size: 82px;
  --radius: 2px;
  --shadow: 0 0 0 2px #15131f, 0 0 0 4px #a47b37, 7px 9px 0 rgba(0, 0, 0, 0.65);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
  scrollbar-color: #d7a943 #282d47;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  background:
    radial-gradient(ellipse at 52% 12%, rgba(195, 18, 55, 0.82), transparent 36rem),
    linear-gradient(135deg, transparent 42%, rgba(15, 0, 7, 0.38) 43% 49%, transparent 50%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.13) 0 2px, transparent 2px 7px),
    var(--page);
}

button,
input,
select {
  font: inherit;
}

button,
select {
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: #15110b;
  background: var(--gold-light);
  border-radius: 5px;
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 140ms ease;
}

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

.app-shell {
  width: min(100%, 1680px);
  margin-inline: auto;
  padding: clamp(1rem, 2.5vw, 2.5rem);
}

.site-header,
.status-row,
.control-heading,
.inspector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header {
  align-items: flex-end;
  padding: 0.35rem 0 1.25rem;
  border-bottom: 1px solid var(--line-strong);
}

.brand-block h1,
.control-heading h2,
.inspector-header h2,
.catalog-loading h2 {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
}

.brand-block h1 {
  letter-spacing: 0.035em;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 0.95;
  text-shadow: 0 2px 20px rgba(255, 220, 151, 0.1);
}

.eyebrow {
  margin: 0 0 0.38rem;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.brand-subtitle {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.button,
.text-button,
.icon-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.button {
  min-height: 2.3rem;
  padding: 0.52rem 0.8rem;
  border-radius: 5px;
  color: #d9d2c9;
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.035em;
}

.button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
}

.button-danger:hover {
  color: #ffd4d4;
  border-color: rgba(255, 95, 98, 0.55);
  background: rgba(255, 95, 98, 0.09);
}

.button-undo {
  color: var(--gold-light);
  border-color: rgba(216, 173, 92, 0.45);
}

.status-row {
  min-height: 3.6rem;
  padding: 0.7rem 0;
}

.status-message {
  color: var(--muted);
  font-size: 0.8rem;
}

.status-message.is-error {
  color: #ffb1b3;
}

.view-controls,
.icon-size-control {
  display: flex;
  align-items: center;
}

.view-controls {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.icon-size-control {
  gap: 0.42rem;
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.icon-size-control input {
  width: clamp(6.5rem, 10vw, 9rem);
  accent-color: var(--gold);
}

.icon-size-control output {
  min-width: 2.6rem;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem 1rem;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: 0.72rem;
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
}

.legend-swatch {
  width: 0.75rem;
  height: 0.75rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.legend-swatch.is-collected { color: var(--green); }
.legend-swatch.is-starting-item {
  color: var(--green);
  background: transparent;
  box-shadow: 0 0 0 1px currentColor, 0 0 8px currentColor;
}
.legend-swatch.is-synergy { color: var(--yellow); }
.legend-swatch.is-banished { color: var(--red); }

.legend-swatch.is-max-synergy {
  color: var(--orange);
}

.legend-swatch.is-stage-item {
  color: var(--blue);
  background: transparent;
  box-shadow: 0 0 0 1px currentColor, 0 0 8px currentColor;
}

.legend-max {
  padding: 0.1rem 0.25rem;
  color: #21170a;
  border-radius: 2px;
  background: var(--gold-light);
  font-size: 0.49rem;
  font-weight: 950;
  line-height: 1.25;
}

.control-deck {
  display: grid;
  grid-template-columns: minmax(17rem, 0.78fr) minmax(30rem, 1.65fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.filter-panel,
.run-context {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 65%), var(--panel);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.control-heading {
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.control-heading h2,
.inspector-header h2 {
  font-size: 1rem;
}

.text-button {
  padding: 0.28rem 0.45rem;
  color: var(--gold-light);
  border-color: transparent;
  border-radius: 4px;
  background: transparent;
  font-size: 0.72rem;
}

.text-button:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.optional-label {
  color: var(--faint);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.chip-list,
.context-fields,
.context-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-chip,
.toggle-chip {
  position: relative;
}

.filter-chip input,
.toggle-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.filter-chip label,
.toggle-chip label {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: 0.38rem 0.62rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.7rem;
  font-weight: 750;
  user-select: none;
}

.filter-chip input:checked + label,
.toggle-chip input:checked + label {
  color: #20180c;
  border-color: var(--gold-light);
  background: var(--gold-light);
  box-shadow: 0 0 12px rgba(255, 228, 160, 0.2);
}

.filter-chip input:focus-visible + label,
.toggle-chip input:focus-visible + label {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.context-fields {
  align-items: flex-end;
  gap: 0.7rem;
}

.field {
  display: grid;
  gap: 0.35rem;
  min-width: 10rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.field-level {
  min-width: 5rem;
  width: 5.2rem;
}

.field-stage {
  min-width: 13rem;
}

.field input {
  width: 100%;
  min-height: 2.25rem;
  padding: 0.38rem 0.55rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: none;
  background: #171411;
  font-size: 0.78rem;
  text-transform: none;
}

.field input:focus-visible {
  border-color: var(--focus);
  box-shadow: 0 0 0 2px rgba(201, 232, 255, 0.15);
}

.combo-box {
  position: relative;
  width: 100%;
  text-transform: none;
}

.combo-input-row {
  position: relative;
}

.combo-input-row .combo-input {
  padding-right: 2rem;
}

.combo-clear {
  position: absolute;
  top: 50%;
  right: 0.3rem;
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  padding: 0;
  color: var(--faint);
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-size: 1rem;
  line-height: 1;
  transform: translateY(-50%);
}

.combo-clear:hover,
.combo-clear:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.combo-options {
  position: absolute;
  z-index: 60;
  top: calc(100% + 0.3rem);
  right: 0;
  left: 0;
  max-height: min(20rem, 48vh);
  overflow-y: auto;
  padding: 0.3rem;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #171411;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.combo-option {
  display: flex;
  min-height: 2rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.4rem 0.48rem;
  color: var(--muted);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
}

.combo-option:hover,
.combo-option.is-active {
  color: var(--ink);
  background: rgba(216, 173, 92, 0.13);
}

.combo-option[aria-selected="true"] {
  color: var(--gold-light);
}

.combo-option-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combo-empty {
  padding: 0.7rem 0.5rem;
  color: var(--faint);
  font-size: 0.72rem;
  text-align: center;
}

.view-tabs {
  display: flex;
  gap: 0.25rem;
  margin: 0 0 1rem;
  border-bottom: 1px solid var(--line-strong);
}

.view-tab {
  position: relative;
  min-width: 7.5rem;
  padding: 0.7rem 1rem;
  color: var(--faint);
  border: 0;
  border-radius: 7px 7px 0 0;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.view-tab:hover,
.view-tab:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.view-tab[aria-selected="true"] {
  color: var(--gold-light);
  background: rgba(216, 173, 92, 0.09);
}

.view-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--gold);
}

.is-evolution-view #toggle-inspector {
  visibility: hidden;
}

.context-group {
  min-width: 10rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.context-group legend {
  width: 100%;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.control-placeholder {
  align-self: center;
  color: var(--faint);
  font-size: 0.74rem;
  font-style: italic;
}

.stage-summary {
  display: flex;
  flex: 1 1 100%;
  min-width: 0;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.6rem;
  color: var(--muted);
  border: 1px solid rgba(116, 185, 255, 0.24);
  border-radius: 6px;
  background: rgba(116, 185, 255, 0.045);
  font-size: 0.65rem;
  line-height: 1.4;
}

.stage-thumbnail {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  flex: 0 0 3.5rem;
  border-radius: 4px;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.stage-summary-details {
  min-width: 0;
}

.stage-summary-name {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  font-weight: 500;
}

.stage-item-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stage-item-summary li::before {
  content: "•";
  margin-right: 0.25rem;
  color: var(--blue);
}

.stage-item-summary .is-unresolved,
.stage-summary-note,
.stage-summary-empty {
  color: var(--faint);
}

.stage-summary-note {
  display: block;
  margin-top: 0.35rem;
  font-style: italic;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: clamp(1rem, 2vw, 2rem);
  align-items: start;
}

.app-shell.is-inspector-hidden .workspace {
  grid-template-columns: minmax(0, 1fr);
}

.app-shell.is-inspector-hidden .catalog {
  padding-bottom: 0;
}

.catalog {
  min-width: 0;
  outline: 0;
}

.catalog-toolbar {
  position: sticky;
  z-index: 12;
  top: 0.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  min-height: 2.5rem;
  margin-bottom: 0.35rem;
  pointer-events: none;
}

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

.catalog-search {
  width: min(18rem, 36vw);
  margin-right: auto;
  pointer-events: auto;
}

.catalog-search-input {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.45rem 0.7rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  background: rgba(20, 18, 16, 0.96);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
  font: inherit;
}

.catalog-search-input:focus-visible {
  border-color: var(--focus);
  box-shadow: 0 0 0 2px rgba(201, 232, 255, 0.15), 0 6px 20px rgba(0, 0, 0, 0.32);
}

.catalog-type-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(20, 18, 16, 0.94);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
  pointer-events: auto;
}

.catalog-type-label {
  padding-inline: 0.35rem 0.15rem;
  color: var(--faint);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-type-button {
  min-height: 1.85rem;
  padding: 0.3rem 0.5rem;
}

.catalog-type-button[aria-pressed="true"] {
  color: var(--gold-light);
  border-color: rgba(216, 173, 92, 0.55);
  background: rgba(216, 173, 92, 0.13);
}

.catalog-type-button[aria-pressed="false"] {
  color: var(--faint);
  opacity: 0.68;
}

.catalog-filter-button {
  pointer-events: auto;
  background: rgba(20, 18, 16, 0.94);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
}

.catalog-filter-button[aria-pressed="true"] {
  color: #201509;
  border-color: var(--gold-light);
  background: var(--gold-light);
}

.catalog-empty {
  margin: 2.5rem auto;
  color: var(--faint);
  text-align: center;
}

.evolution-view {
  min-height: 30rem;
  outline: none;
}

.evolution-view-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.evolution-view-header h2 {
  margin: 0.15rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 500;
}

.evolution-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
}

.evolution-ready-toggle[aria-pressed="true"] {
  color: #201509;
  border-color: var(--gold-light);
  background: var(--gold-light);
}

.evolution-count {
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.evolution-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
}

.evolution-card {
  display: grid;
  grid-template-columns: minmax(6rem, 8rem) max-content minmax(0, 1fr);
  min-width: 0;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  background:
    linear-gradient(145deg, rgba(216, 173, 92, 0.045), transparent 45%),
    rgba(18, 16, 14, 0.74);
}

.evolution-card .recipe-heading {
  display: grid;
  justify-content: start;
  gap: 0.25rem;
}

.recipe-equation.evolution-equation {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0.45rem;
  margin: 0;
  overflow: visible;
  padding: 0.25rem 0;
  width: max-content;
}

.evolution-card .requirement-list {
  flex-wrap: nowrap;
  justify-content: flex-end;
  margin: 0 0 0 auto;
}

.evolution-equation .recipe-operator {
  flex: 0 0 auto;
  font-size: 1.1rem;
}

.recipe-item.evolution-recipe-item {
  position: relative;
  display: grid;
  min-width: 5.25rem;
  max-width: 7rem;
  min-height: 5.4rem;
  flex: 0 1 7rem;
  place-items: center;
  align-content: center;
  gap: 0.3rem;
  padding: 0.45rem;
  text-align: center;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.evolution-recipe-item:hover {
  transform: translateY(-2px);
  border-color: currentColor;
  background-color: rgba(255, 255, 255, 0.075);
}

.evolution-recipe-item:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.evolution-recipe-item .recipe-item-icon {
  width: var(--icon-size);
  height: var(--icon-size);
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.75));
}

.evolution-recipe-item .recipe-item-name {
  overflow: hidden;
  width: 100%;
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evolution-recipe-item.is-collected {
  color: var(--green);
  border-color: rgba(109, 244, 152, 0.58);
  background: rgba(109, 244, 152, 0.08);
  box-shadow: 0 0 13px rgba(109, 244, 152, 0.24);
}

.evolution-recipe-item.is-starting-item {
  color: var(--green);
  border-color: rgba(109, 244, 152, 0.42);
  outline: 2px solid rgba(109, 244, 152, 0.9);
  outline-offset: 2px;
  background: rgba(109, 244, 152, 0.025);
  box-shadow: 0 0 13px rgba(109, 244, 152, 0.2);
}

.evolution-recipe-item.is-synergy {
  color: var(--yellow);
  border-color: rgba(255, 212, 77, 0.58);
  background: rgba(255, 212, 77, 0.07);
  box-shadow: 0 0 13px rgba(255, 212, 77, 0.22);
}

.evolution-recipe-item.is-max-synergy,
.evolution-recipe-item.needs-max {
  color: var(--orange);
  border-color: rgba(255, 150, 63, 0.68);
  background: rgba(255, 150, 63, 0.08);
  box-shadow: 0 0 14px rgba(255, 150, 63, 0.28);
}

.evolution-recipe-item.is-banished {
  color: var(--red);
  border-color: rgba(255, 95, 98, 0.65);
  background: rgba(255, 95, 98, 0.08);
  box-shadow: 0 0 13px rgba(255, 95, 98, 0.24);
}

.evolution-recipe-item.is-stage-item {
  outline: 2px solid rgba(116, 185, 255, 0.88);
  outline-offset: 2px;
}

.evolution-recipe-item .max-label {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
}

.evolution-empty {
  grid-column: 1 / -1;
  display: grid;
  min-height: 22rem;
  place-items: center;
  align-content: center;
  color: var(--muted);
  text-align: center;
}

.evolution-empty h3,
.evolution-empty p {
  margin: 0.25rem 0;
}

.evolution-empty p {
  max-width: 28rem;
  font-size: 0.8rem;
  line-height: 1.5;
}

.item-section {
  padding: 0.5rem 0 clamp(1.8rem, 4vw, 3.8rem);
}

.item-section[hidden] {
  display: none;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(1.5rem, 1fr) auto auto minmax(1.5rem, 1fr);
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 clamp(0.9rem, 2vw, 1.45rem);
}

.section-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong));
}

.section-rule:last-child {
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.section-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.7vw, 1.32rem);
  font-weight: 400;
  letter-spacing: 0.105em;
  text-align: center;
  text-transform: uppercase;
}

.section-count {
  color: var(--faint);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--hit-size), 1fr));
  grid-auto-rows: calc(var(--hit-size) + 1.55rem);
  align-items: start;
  justify-items: center;
  gap: 0.1rem clamp(0.1rem, 0.5vw, 0.45rem);
}

.item-slot {
  width: 100%;
  min-width: 0;
  display: grid;
  place-items: start center;
}

.item-icon {
  --state-color: transparent;
  position: relative;
  display: grid;
  width: var(--hit-size);
  height: calc(var(--hit-size) + 1.5rem);
  place-items: start center;
  padding: 0.35rem 0 0;
  color: var(--ink);
  border: 0;
  border-radius: 13px;
  outline: none;
  background: transparent;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.icon-art {
  position: relative;
  display: grid;
  width: var(--hit-size);
  height: var(--hit-size);
  place-items: center;
  border-radius: 14px;
  isolation: isolate;
}

.icon-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 16%;
  border-radius: 45%;
  background: var(--state-color);
  opacity: 0;
  filter: blur(13px);
  transform: scale(0.72);
  transition: opacity 140ms ease, transform 140ms ease;
}

.item-icon img {
  display: block;
  width: var(--icon-size);
  height: var(--icon-size);
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.8));
  transform: translateZ(0) scale(1);
  transition: transform 140ms ease, filter 140ms ease, opacity 140ms ease;
  user-select: none;
}

.item-icon:hover img,
.item-icon:focus-visible img {
  transform: translateZ(0) scale(1.08);
}

.item-icon:focus-visible .icon-art {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.item-icon.is-collected,
.item-icon[data-state="collected"] {
  --state-color: var(--green);
}

.item-icon.is-starting-item .icon-art,
.item-icon[data-state="starting"] .icon-art {
  box-shadow:
    0 0 0 2px rgba(109, 244, 152, 0.92),
    0 0 13px 2px rgba(109, 244, 152, 0.72),
    inset 0 0 9px rgba(109, 244, 152, 0.2);
}

.item-icon.is-synergy,
.item-icon[data-state="synergy"] {
  --state-color: var(--yellow);
}

.item-icon.is-banished,
.item-icon[data-state="banished"] {
  --state-color: var(--red);
}

/* Max-required synergy uses the same soft radial language as the other states,
   but orange keeps it distinct from the ordinary yellow synergy glow. */
.item-icon.is-max-synergy .icon-art::after,
.item-icon[data-max-synergy="true"] .icon-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12%;
  border-radius: 45%;
  background: var(--orange);
  filter: blur(13px);
  opacity: 0.86;
  transform: scale(1);
}

/* A stage halo sits on the art container so it remains visible alongside
   collected, synergy, max-required, and banished treatments. */
.item-icon.is-stage-item .icon-art,
.item-icon[data-stage-item="true"] .icon-art {
  box-shadow:
    0 0 0 2px rgba(116, 185, 255, 0.92),
    0 0 13px 2px rgba(116, 185, 255, 0.72),
    inset 0 0 9px rgba(116, 185, 255, 0.2);
}

.item-icon.is-collected .icon-art::before,
.item-icon.is-synergy .icon-art::before,
.item-icon.is-banished .icon-art::before,
.item-icon[data-state="collected"] .icon-art::before,
.item-icon[data-state="synergy"] .icon-art::before,
.item-icon[data-state="banished"] .icon-art::before {
  opacity: 0.78;
  transform: scale(1);
}

.item-icon.is-collected img,
.item-icon[data-state="collected"] img {
  filter: drop-shadow(0 0 5px rgba(109, 244, 152, 0.95)) drop-shadow(0 3px 2px rgba(0, 0, 0, 0.8));
}

.item-icon.is-synergy img,
.item-icon[data-state="synergy"] img {
  filter: drop-shadow(0 0 6px rgba(255, 212, 77, 0.95)) drop-shadow(0 3px 2px rgba(0, 0, 0, 0.8));
}

.item-icon.is-max-synergy img,
.item-icon[data-max-synergy="true"] img {
  filter: drop-shadow(0 0 7px rgba(255, 150, 63, 1)) drop-shadow(0 3px 2px rgba(0, 0, 0, 0.8));
}

.item-icon.is-banished img,
.item-icon[data-state="banished"] img {
  opacity: 0.72;
  filter: grayscale(0.45) drop-shadow(0 0 6px rgba(255, 95, 98, 0.95)) drop-shadow(0 3px 2px rgba(0, 0, 0, 0.8));
}

.item-icon.is-banished .icon-art::after,
.item-icon[data-state="banished"] .icon-art::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 2px;
  border-radius: 2px;
  background: #ffd1d1;
  box-shadow: 0 0 6px var(--red);
  transform: rotate(-38deg);
}

.item-name {
  display: block;
  overflow: hidden;
  width: 100%;
  margin-top: -0.08rem;
  padding-inline: 0.15rem;
  color: #bcb4a9;
  font-size: 0.61rem;
  font-weight: 680;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-icon:hover .item-name,
.item-icon:focus-visible .item-name {
  color: var(--ink);
  white-space: normal;
  overflow: visible;
}

.item-state-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.max-badge {
  position: absolute;
  z-index: 3;
  top: 0.08rem;
  right: 0.1rem;
  display: none;
  min-width: 2rem;
  padding: 0.18rem 0.25rem;
  color: var(--gold-light);
  border: 1px solid rgba(255, 228, 160, 0.7);
  border-radius: 3px;
  background: rgba(16, 13, 9, 0.93);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
  font-size: 0.52rem;
  font-weight: 950;
  letter-spacing: 0.07em;
}

.item-icon.is-collected .max-badge,
.item-icon.is-starting-item .max-badge,
.item-icon[data-state="collected"] .max-badge,
.item-icon[data-state="starting"] .max-badge {
  display: block;
}

.item-icon.is-max .max-badge,
.item-icon[data-maxed="true"] .max-badge {
  color: #1d1408;
  border-color: var(--gold-light);
  background: var(--gold-light);
  box-shadow: 0 0 10px rgba(255, 212, 77, 0.6);
}

.inspector {
  position: sticky;
  top: 1rem;
  min-height: 28rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(216, 173, 92, 0.065), transparent 42%),
    var(--panel-solid);
  box-shadow: var(--shadow);
}

.inspector-handle {
  display: none;
}

.inspector-header {
  align-items: flex-start;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.icon-button {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
}

.icon-button:hover,
.icon-button[aria-pressed="true"] {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(216, 173, 92, 0.1);
}

.inspector-content {
  padding-top: 1rem;
}

.inspector-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.action-button {
  min-height: 2rem;
  padding: 0.38rem 0.55rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.68rem;
  font-weight: 750;
}

.action-button:hover:not(:disabled) {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 20rem;
  color: var(--muted);
  text-align: center;
}

.empty-state p {
  max-width: 17rem;
  margin: 0.4rem auto;
  font-size: 0.82rem;
  line-height: 1.55;
}

.empty-state-glyph {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 3.4rem;
  opacity: 0.55;
}

.empty-state .input-hint {
  color: var(--faint);
  font-size: 0.68rem;
}

.recipe-card {
  margin: 0.65rem 0;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.15);
}

.recipe-card.is-possible {
  border-left: 3px solid var(--yellow);
}

.recipe-card.is-ready {
  border-left: 3px solid var(--green);
}

.recipe-card.is-blocked {
  border-left: 3px solid var(--red);
  opacity: 0.78;
}

.recipe-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.recipe-category {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  font-weight: 500;
}

.recipe-status {
  color: var(--faint);
  font-size: 0.57rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.recipe-equation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
  margin-top: 0.65rem;
}

.recipe-operator {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  line-height: 1;
}

.recipe-item {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.28rem;
  padding: 0.2rem 0.34rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.59rem;
  font-weight: 750;
  line-height: 1.15;
}

.recipe-item img,
.recipe-item-icon {
  display: block;
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 1.55rem;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.recipe-item.is-ready {
  color: var(--green);
  border-color: rgba(109, 244, 152, 0.35);
}

.recipe-item.is-blocked {
  color: var(--red);
  border-color: rgba(255, 95, 98, 0.4);
}

.max-label {
  padding: 0.1rem 0.2rem;
  color: var(--gold-light);
  border: 1px solid rgba(255, 228, 160, 0.55);
  border-radius: 2px;
  font-size: 0.45rem;
  font-weight: 950;
  letter-spacing: 0.05em;
}

.max-label.is-ready {
  color: #1d1408;
  background: var(--gold-light);
}

.weapon-details,
.item-details {
  margin: 0 0 0.9rem;
  padding: 0.72rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
}

.weapon-description,
.item-description {
  margin: 0;
  color: #cbc3b8;
  font-size: 0.76rem;
  line-height: 1.5;
}

.weapon-details-title {
  margin: 0 0 0.45rem;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  font-weight: 500;
}

.weapon-stats,
.item-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.65rem;
  margin: 0.65rem 0 0;
}

.weapon-stat,
.item-stat {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.62rem;
}

.weapon-stats dt,
.weapon-stats dd {
  margin: 0;
  font-size: 0.62rem;
}

.weapon-stats dt {
  color: var(--faint);
}

.weapon-stats dd {
  color: var(--ink);
  text-align: right;
}

.weapon-information {
  margin: 0.65rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.45;
}

.weapon-starters,
.starting-character {
  margin: 0.55rem 0 0;
  color: var(--faint);
  font-size: 0.64rem;
  line-height: 1.4;
}

.weapon-starters h4 {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.weapon-starter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.weapon-starter {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.32rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.character-portrait {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.requirement-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.requirement-pill {
  padding: 0.25rem 0.43rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 750;
}

.requirement-pill.is-met {
  color: var(--green);
  border-color: rgba(109, 244, 152, 0.42);
}

.requirement-pill.is-blocked {
  color: var(--red);
  border-color: rgba(255, 95, 98, 0.42);
}

.catalog-loading {
  display: grid;
  min-height: 36rem;
  place-items: center;
  align-content: center;
  color: var(--muted);
  text-align: center;
}

.catalog-loading p {
  margin: 0.5rem 0 0;
  font-size: 0.83rem;
}

.loading-mark {
  color: var(--gold);
  font-size: 2.6rem;
  animation: breathe 1.5s ease-in-out infinite alternate;
}

.noscript-message {
  position: fixed;
  z-index: 200;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: 1rem;
  color: #2d1d08;
  border-radius: 6px;
  background: var(--gold-light);
  text-align: center;
  font-weight: 800;
}

[hidden] {
  display: none !important;
}

@keyframes breathe {
  to {
    opacity: 0.45;
    transform: scale(0.88);
  }
}

/* Game-inspired character-select windows and inset inventory tiles. */
.app-shell {
  max-width: 1680px;
}

.skip-link {
  top: -5rem;
  transform: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0.75rem;
}

.site-header {
  margin-bottom: 0.8rem;
  padding: 0.9rem 1rem 1rem;
  border: 3px double var(--gold);
  background: #250713;
  box-shadow: 5px 6px 0 #110006;
}

.brand-block h1 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  letter-spacing: -0.065em;
  line-height: 1.05;
  text-shadow: 2px 2px 0 #171522;
}

.eyebrow {
  color: var(--gold-light);
  letter-spacing: 0.07em;
  text-shadow: 1px 1px 0 #231422;
}

.brand-subtitle {
  color: #f3eacb;
  letter-spacing: 0;
}

.button,
.action-button,
.text-button,
.catalog-type-button,
.catalog-filter-button {
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.button,
.action-button {
  color: var(--ink);
  border: 2px solid var(--gold);
  background: #565b66;
  box-shadow: inset 0 0 0 2px #2d3149, 2px 2px 0 #15131c;
  text-shadow: 1px 1px 0 #252332;
}

.button:hover,
.action-button:hover:not(:disabled) {
  color: #fff;
  border-color: var(--gold-light);
  background: #68717a;
}

.button-danger {
  background: #a73229;
  box-shadow: inset 0 0 0 2px #611e22, 2px 2px 0 #15131c;
}

.button-danger:hover {
  background: #c54432;
}

.button-undo {
  color: #fff;
  background: #279452;
}

.status-row {
  padding: 0.6rem 0.8rem;
  margin-bottom: 1rem;
  border: 2px solid var(--gold);
  background: rgba(37, 39, 68, 0.94);
  box-shadow: inset 0 0 0 2px #17182e, 4px 4px 0 #12040b;
}

.status-message,
.legend,
.icon-size-control {
  color: #fff;
}

.filter-panel,
.run-context,
.inspector {
  border: 3px double var(--gold-light);
  border-radius: 2px;
  background: #4c5478;
  box-shadow: inset 0 0 0 2px #262b4b, var(--shadow);
}

.control-heading h2,
.inspector-header h2,
.catalog-loading h2,
.stage-summary-name,
.evolution-view-header h2,
.section-title,
.recipe-category,
.recipe-operator,
.weapon-details-title {
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  letter-spacing: -0.055em;
}

.control-heading h2,
.inspector-header h2 {
  font-size: 1.05rem;
  text-shadow: 2px 2px 0 #252846;
}

.optional-label,
.field,
.context-group legend,
.catalog-type-label {
  color: #eee6c8;
  letter-spacing: 0;
}

.filter-chip label,
.toggle-chip label {
  color: white;
  border: 2px solid var(--gold);
  border-radius: 2px;
  background: #727777;
  box-shadow: inset 0 0 0 2px #4b5062, 2px 2px 0 #22233a;
  font-size: 0.74rem;
  letter-spacing: -0.04em;
}

.filter-chip input:checked + label,
.toggle-chip input:checked + label {
  color: white;
  border-color: var(--gold-light);
  background: #329756;
  box-shadow: inset 0 0 0 2px #1f5d42, 2px 2px 0 #22233a;
}

.field input,
.combo-options,
.catalog-search-input {
  color: white;
  border: 2px solid var(--gold);
  border-radius: 2px;
  background: #31354e;
  box-shadow: inset 0 0 0 2px #1d2038;
}

.field input::placeholder,
.catalog-search-input::placeholder {
  color: #d0d0d1;
  opacity: 1;
}

.combo-option {
  border-radius: 0;
}

.combo-option:hover,
.combo-option.is-active {
  background: #666d86;
}

.combo-option[aria-selected="true"] {
  color: var(--gold-light);
}

.view-tabs {
  gap: 0.35rem;
  margin-bottom: 0;
  border-bottom: 3px double var(--gold-light);
}

.view-tab {
  color: #fff;
  border: 2px solid var(--gold);
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  background: #3b405e;
  letter-spacing: -0.02em;
  text-shadow: 1px 1px 0 #24263e;
}

.view-tab[aria-selected="true"] {
  color: white;
  background: #697071;
}

.view-tab[aria-selected="true"]::after {
  height: 3px;
  background: var(--gold-light);
}

.catalog,
.evolution-view {
  padding: 1rem;
  border: 3px double var(--gold);
  border-top: 0;
  background: #30395b;
  box-shadow: inset 0 0 0 2px #202741, 5px 6px 0 #13040e;
}

.catalog-type-controls,
.catalog-filter-button {
  border: 2px solid var(--gold);
  border-radius: 2px;
  background: #4b5275;
  box-shadow: 2px 2px 0 #1b203a;
}

.catalog-type-button[aria-pressed="true"],
.catalog-filter-button[aria-pressed="true"],
.evolution-ready-toggle[aria-pressed="true"] {
  color: white;
  border-color: var(--gold-light);
  background: #2e9652;
}

.section-header {
  margin-top: 0.3rem;
}

.section-title {
  color: white;
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  letter-spacing: 0;
  text-shadow: 2px 2px 0 #17182e;
}

.section-count {
  color: var(--gold-light);
}

.item-icon {
  border-radius: 0;
}

.icon-art {
  border: 2px solid #c99d48;
  border-radius: 2px;
  background: #767d7b;
  box-shadow: inset 0 0 0 2px #454b5b, 2px 2px 0 #181c31;
}

.item-icon:hover .icon-art,
.item-icon:focus-visible .icon-art {
  border-color: #ffe08a;
  background: #89908c;
}

.item-name {
  color: white;
  font-size: 0.66rem;
  font-weight: 700;
  text-shadow: 1px 1px 0 #17182e;
}

.inspector-header {
  border-bottom: 2px solid var(--gold);
}

.icon-button {
  border-radius: 2px;
  background: #343a58;
}

.recipe-card,
.weapon-details,
.item-details,
.evolution-card {
  border: 2px solid var(--gold);
  border-radius: 2px;
  background: #343b5c;
  box-shadow: inset 0 0 0 2px #202540;
}

.recipe-card.is-possible { border-left: 4px solid var(--yellow); }
.recipe-card.is-ready { border-left: 4px solid var(--green); }
.recipe-card.is-blocked { border-left: 4px solid var(--red); }

.recipe-item,
.requirement-pill,
.weapon-starter {
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: #606769;
}

.recipe-item,
.recipe-status,
.item-description,
.weapon-description {
  color: white;
}

.stage-summary {
  border: 2px solid var(--gold);
  border-radius: 2px;
  background: #3b4567;
}

.stage-thumbnail,
.character-portrait {
  border: 1px solid var(--gold);
  border-radius: 2px;
}

.empty-state-glyph {
  font-family: "Courier New", Courier, monospace;
}

@media (max-width: 1040px) {
  :root {
    --icon-size: 58px;
    --hit-size: 74px;
  }

  .control-deck {
    grid-template-columns: 1fr;
  }

  .workspace {
    display: block;
  }

  .catalog {
    padding-bottom: 12rem;
  }

  .inspector {
    position: fixed;
    z-index: 30;
    display: flex;
    flex-direction: column;
    right: 0.75rem;
    bottom: 0;
    left: 0.75rem;
    top: auto;
    height: min(52vh, 31rem);
    min-height: min(52vh, 31rem);
    max-height: min(52vh, 31rem);
    overflow: hidden;
    padding: 0.6rem 1rem max(1rem, env(safe-area-inset-bottom));
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    transform: translateY(calc(100% - 6.1rem));
    transition: transform 180ms ease;
  }

  .inspector.is-open,
  .inspector:focus-within,
  .inspector[data-open="true"] {
    transform: translateY(0);
  }

  .inspector-handle {
    display: block;
    width: 2.4rem;
    height: 3px;
    margin: 0 auto 0.65rem;
    border-radius: 999px;
    background: var(--line-strong);
  }

  .inspector-header {
    flex: 0 0 auto;
  }

  .inspector-content {
    height: auto;
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .empty-state {
    min-height: 12rem;
  }
}

@media (max-width: 700px) {
  :root {
    --icon-size: 52px;
    --hit-size: 65px;
  }

  .app-shell {
    padding: 0.75rem;
  }

  .site-header {
    display: block;
  }

  .header-actions {
    justify-content: flex-start;
    margin-top: 1rem;
  }

  .header-actions .button {
    flex: 1 1 auto;
  }

  .status-row {
    display: block;
    padding-block: 0.75rem 1rem;
  }

  .view-controls {
    justify-content: flex-start;
    margin-top: 0.7rem;
  }

  .legend {
    justify-content: flex-start;
    margin-top: 0.7rem;
  }

  .filter-panel,
  .run-context {
    padding: 0.8rem;
  }

  .context-fields,
  .context-group {
    align-items: stretch;
  }

  .catalog-toolbar {
    flex-wrap: wrap;
  }

  .catalog-search {
    width: 100%;
    flex: 1 0 100%;
  }

  .evolution-view-header {
    align-items: flex-start;
  }

  .evolution-header-actions {
    align-items: flex-end;
    flex-direction: column-reverse;
  }

  .field {
    flex: 1 1 10rem;
  }

  .field-level {
    flex: 0 1 5rem;
  }

  .field-stage {
    flex: 1 1 13rem;
  }

  .section-header {
    grid-template-columns: minmax(0.5rem, 1fr) auto auto minmax(0.5rem, 1fr);
    gap: 0.45rem;
  }

  .section-title {
    max-width: 15rem;
    font-size: 0.93rem;
  }

  .item-grid {
    grid-template-columns: repeat(auto-fill, minmax(var(--hit-size), 1fr));
    grid-auto-rows: calc(var(--hit-size) + 1.35rem);
  }

  .item-icon {
    height: calc(var(--hit-size) + 1.25rem);
  }

  .item-name {
    font-size: 0.56rem;
  }

  .max-badge {
    right: -0.08rem;
    min-width: 1.7rem;
    font-size: 0.45rem;
  }
}

@media (max-width: 430px) {
  :root {
    --icon-size: 47px;
    --hit-size: 58px;
  }

  .brand-block h1 {
    font-size: 1.72rem;
  }

  .button {
    padding-inline: 0.55rem;
    font-size: 0.68rem;
  }

  .item-name {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (forced-colors: active) {
  .item-icon.is-collected .icon-art,
  .item-icon[data-state="collected"] .icon-art {
    outline: 3px solid Highlight;
  }

  .item-icon.is-starting-item .icon-art,
  .item-icon[data-state="starting"] .icon-art {
    outline: 2px solid Highlight;
  }

  .item-icon.is-synergy .icon-art,
  .item-icon[data-state="synergy"] .icon-art {
    outline: 2px dashed Highlight;
  }

  .item-icon.is-banished .icon-art,
  .item-icon[data-state="banished"] .icon-art {
    outline: 3px double Mark;
  }

  .item-icon.is-max-synergy .icon-art,
  .item-icon[data-max-synergy="true"] .icon-art {
    outline: 3px dotted Highlight;
  }

  .item-icon.is-stage-item .icon-art,
  .item-icon[data-stage-item="true"] .icon-art {
    box-shadow: none;
    border: 2px solid LinkText;
  }
}
