/* Supreme Star Amulet keep-or-replace tool on the Tools page (js/amulet-check.js). */
#amulet-check {
  border-color: #6d7fb066;
  background-image: radial-gradient(ellipse at 100% 0%, #7a8fd425, transparent 54%), linear-gradient(145deg, #21314a44, transparent 65%);
}
.ac-form { display: grid; gap: 1rem; margin-top: 1rem; }
.ac-setup { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: end; }
.ac-colors {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  align-items: center;
  margin: 0;
  padding: .55rem 1rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: #0c152480;
}
.ac-colors legend { padding: 0 .35rem; color: var(--gold-light); font-size: .85rem; }
.ac-colors label { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; }
.ac-colors input { width: 1.1rem; height: 1.1rem; min-height: 0; margin: 0; accent-color: #f6bd38; }
.ac-types { display: grid; gap: .35rem; }
.ac-types input { width: 8rem; min-height: 44px; }

.ac-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.ac-amulet {
  display: grid;
  gap: .8rem;
  min-width: 0;
  margin: 0;
  padding: .9rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: linear-gradient(155deg, #1a2740, #101b2a 65%);
  box-shadow: inset 0 1px #d8e7ff16;
}
.ac-amulet legend { padding: 0 .4rem; font-weight: 700; color: var(--gold-light); }
.ac-next { border-color: #8c693d76; }
.ac-stats { display: grid; gap: .55rem; }
.ac-stat { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(5rem, 1fr); gap: .25rem .5rem; }
.ac-stat select, .ac-stat input, .ac-passives select { width: 100%; min-width: 0; min-height: 44px; }
.ac-stat select.is-target { border-color: #6fbf8a; }
.ac-hint { grid-column: 1 / -1; min-height: 1em; color: var(--muted); font-size: .74rem; }
.ac-hint.is-error { color: #f0a0a4; }
.ac-stat [aria-invalid="true"], .ac-passives [aria-invalid="true"] { border-color: #e0797f; }
.ac-passives { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.ac-passives label { display: grid; gap: .3rem; font-size: .85rem; }

.ac-result { display: grid; gap: 1rem; margin-top: 1.2rem; }
.ac-waiting { margin: 0; padding: .9rem 1rem; border: 1px dashed var(--line); border-radius: .8rem; color: var(--muted); }
.ac-verdict {
  display: grid;
  gap: .35rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: .85rem;
  background: #0c1524b3;
}
.ac-verdict strong { font: 750 clamp(1.25rem, 3vw, 1.6rem) var(--mono); }
.ac-verdict p { margin: 0; }
.ac-verdict.is-replace { border-color: #6fbf8a; }
.ac-verdict.is-replace strong { color: #9be0b0; }
.ac-verdict.is-keep { border-color: #f6bd38; }
.ac-verdict.is-keep strong { color: var(--gold-light); }
.ac-verdict.is-same strong { color: var(--text); }
.ac-verdict.is-tradeoff { border-color: #8fa6e6; }
.ac-verdict.is-tradeoff strong { color: #b9c8f2; }
.ac-quote { color: var(--muted); font-size: .88rem; }
.ac-quote a, .ac-notes a, #amulet-sources a { color: var(--gold-light); text-decoration: underline; text-underline-offset: .2em; }

.ac-table th[scope="row"] { display: grid; gap: .1rem; min-width: 8rem; text-align: start; font-weight: 650; }
.ac-table td { overflow-wrap: break-word; }
.ac-table th[scope="row"] small { color: var(--muted); font-weight: 400; font-size: .74rem; }
.ac-table td.is-win { color: #9be0b0; font-weight: 650; }
.ac-better { white-space: nowrap; font-weight: 650; }
.ac-better.is-new { color: #9be0b0; }
.ac-better.is-yours { color: var(--gold-light); }
.ac-better.is-same { color: var(--muted); }
.ac-notes { display: grid; gap: .4rem; margin: 0; padding-left: 1.2rem; font-size: .9rem; }

.ac-breakdown summary { cursor: pointer; color: var(--gold-light); }
.ac-breakdown-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: .7rem; }
.ac-breakdown-card { min-width: 0; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: .8rem; background: #0c152480; }
.ac-breakdown-card h4 { margin: 0 0 .5rem; font-size: .95rem; }
.ac-breakdown-card ul { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.ac-breakdown-card li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 .6rem; padding-left: .55rem; border-left: 3px solid var(--line); }
.ac-breakdown-card li.is-target { border-left-color: #6fbf8a; }
.ac-breakdown-card strong { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ac-line-meta { grid-column: 1 / -1; color: var(--muted); font-size: .76rem; }
.ac-how ul { display: grid; gap: .4rem; margin: .6rem 0 0; }

@media (max-width: 760px) {
  .ac-sides, .ac-breakdown-grid { grid-template-columns: minmax(0, 1fr); }
}
/* Phones: the winning cell is already green, so drop the "Better" column and the per-check
   explanations (both are in "How the tool decides") to fit without sideways scrolling. */
@media (max-width: 600px) {
  .ac-table tr > :nth-child(4), .ac-table th[scope="row"] small { display: none; }
  .ac-table { min-width: 0; }
  .ac-table th[scope="row"] { min-width: 5.6rem; overflow-wrap: normal; word-break: normal; }
}
@media (max-width: 340px) {
  .ac-stat, .ac-passives { grid-template-columns: minmax(0, 1fr); }
}
