#smeech { --sheet: var(--surface-solid); }
.smeech-title img { width: clamp(50px, 6vw, 64px); height: auto; border-radius: var(--strategy-radius); }
.population, .team header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#smeech button, #smeech select, #smeech input { font: inherit; color: inherit; }
#smeech button, #smeech select, #smeech summary { cursor: pointer; }
#smeech :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#smeech [hidden] { display: none; }
#conditions .text-action { background: none; border: 0; color: var(--accent-strong); font-size: 13px; padding: 8px 2px; }
.population, .costs legend, .picker > summary { font-size: 14px; font-weight: 600; }
.population select, #hero-search { border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: var(--sheet); }
.costs { display: flex; flex-wrap: wrap; gap: 8px 13px; margin: 16px 0 20px; padding: 0; border: 0; }
.costs legend { padding: 0; margin-bottom: 6px; }
.costs label { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; min-height: 36px; font-size: 13px; cursor: pointer; }
.costs input { flex: 0 0 16px; width: 16px; height: 16px; padding: 0; accent-color: var(--accent-strong); margin: 0; }
.picker, .rules { border-top: 1px solid var(--line); }
.picker > summary, .rules > summary { padding: 14px 2px; }
.picker > summary span { float: right; font-size: 13px; font-weight: 400; color: var(--muted); }
.modes { display: flex; gap: 4px; padding: 3px; background: color-mix(in srgb, var(--muted) 9%, transparent); border-radius: 9px; }
.modes button { flex: 1; border: 0; background: transparent; padding: 7px; border-radius: 7px; }
.modes [aria-pressed=true] { background: var(--sheet); box-shadow: 0 1px 3px #0002; font-weight: 650; }
#hero-search { box-sizing: border-box; margin: 9px 0; width: 100%; }
.hero-options, #emblem-options { display: grid; gap: 5px; max-height: 300px; overflow-y: auto; padding: 4px 3px 8px; }
.hero-options { grid-template-columns: repeat(4, minmax(0, 1fr)); --portrait-size: 40px; }
#hero-options button { position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; background: transparent; border: 0; border-radius: 7px; padding: 6px 3px; font-size: 11px; }
#hero-options button:is(:hover, :focus-visible),
#hero-options button[data-selection]:not([data-selection=""]) { background: color-mix(in srgb, var(--text) 6%, var(--sheet)); }
.hero-options [data-selection]:not([data-selection=""])::after { content: attr(data-selection); position: absolute; top: 1px; right: 1px; background: var(--text); color: var(--bg); padding: 1px 3px; border-radius: 4px; font-size: 9px; }
#no-heroes { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
#emblem-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#emblem-options button { display: flex; align-items: center; gap: 5px; min-height: 38px; padding: 4px; border: 1px solid var(--line); background: var(--sheet); border-radius: 6px; font-size: 12px; }
#emblem-options img { width: 23px; height: 23px; border-radius: 4px; }
#emblem-options small { margin-left: auto; color: var(--accent-strong); }
#selection { display: flex; flex-wrap: wrap; gap: 6px; }
#selection:not(:empty) { padding: 8px 0 16px; }
#selection button { border: 0; border-radius: 6px; background: var(--accent-soft); color: var(--accent-strong); padding: 6px 8px; font-size: 12px; }
.rules, .carriers { font-size: 13px; color: var(--muted); }
.rules p { margin: 0 0 9px; line-height: 1.7; }
#result-count, #status, .team header > span { color: var(--muted); font-size: 13px; }
#status:empty { margin: 0; }
.team { padding: clamp(14px, 2vw, 22px); margin-bottom: 12px; }
.team h3 { font-size: 18px; margin: 0; }
.team-heroes, .team-traits ul { list-style: none; padding: 0; }
.team-heroes { display: grid; grid-template-columns: repeat(auto-fill, minmax(49px, 1fr)); gap: 10px 6px; margin: 16px 0; }
.team-heroes li { min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; font-size: 11px; overflow-wrap: anywhere; }
.cost-frame {
  display: block;
  width: min(100%, var(--portrait-size, 48px));
  aspect-ratio: 1;
  padding: 2px;
  border-radius: 7px;
  background: var(--cost-color);
}
.cost-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}
.cost-frame[data-cost="1"] { --cost-color: #898d93; }
.cost-frame[data-cost="2"] { --cost-color: #25876e; }
.cost-frame[data-cost="3"] { --cost-color: #347eaf; }
.cost-frame[data-cost="4"] { --cost-color: #9864ac; }
.cost-frame[data-cost="5"] { --cost-color: #b08738; }
.cost-frame[data-cost="7"] { --cost-color: linear-gradient(135deg, #adf9f1 0%, #97c9ff 25%, #d8b5ff 50%, #ffeeff 75%, #fff0b3 100%); }
.team-traits { border-top: 1px solid var(--line); padding-top: 10px; font-size: 13px; }
.team-traits summary { color: var(--muted); }
.team-traits ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(94px, 1fr));
  gap: 8px 14px;
  margin: 12px 0 0;
}
.team-traits li { display: flex; align-items: center; gap: 7px; line-height: 1.3; }
.team-traits svg {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  padding: 4px;
  color: var(--accent-strong);
  fill: currentColor;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-solid));
  border-radius: 8px;
}
.carriers { line-height: 1.7; margin: 10px 0 0; }
@media (max-width: 720px) {
  .costs { margin: 8px 0; }
  .hero-options { grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); }
  .team-heroes { grid-template-columns: repeat(auto-fill, minmax(45px, 1fr)); }
}
