/* Mesa de estrategia: pegatinas, alineaciones y cruces. */
.est-root { min-width: 0; color: var(--text); }
.est-root *, .est-root *::before, .est-root *::after { box-sizing: border-box; }
.est-root p { overflow-wrap: anywhere; }
.est-root button { touch-action: manipulation; }
.est-root button:focus-visible, .est-root summary:focus-visible, .est-tablewrap:focus-visible {
  outline: 3px solid var(--sun); outline-offset: 4px;
}
.est-root h3, .est-root h4, .est-root p { margin-top: 0; }
.est-root img { object-fit: contain; }
.est-loading, .est-empty { padding: 18px; border: 2px dashed var(--dash); border-radius: 16px; background: var(--surface); color: var(--text-soft); }
.est-loading { margin: 0; }
.est-note { margin: 12px 0; font-size: 13px; line-height: 1.55; color: var(--text-soft); max-width: 85ch; }
.est-warning { border-left: 4px solid var(--sun); padding-left: 10px; }
.est-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.est-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.est-switch { display: inline-flex; flex-wrap: wrap; padding: 4px; gap: 4px; border: var(--stroke); border-radius: 24px; background: var(--track); }
.est-side { cursor: pointer; border: 2px solid transparent; border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 800; background: transparent; }
.est-side--sol { --est-accent: var(--name-sol); }
.est-side--luna { --est-accent: var(--name-luna); }
.est-side[aria-pressed="true"] { background: var(--card); border-color: var(--line); box-shadow: 2px 2px 0 var(--line); color: var(--est-accent); }
.est-button { cursor: pointer; border: var(--stroke); border-radius: 999px; padding: 9px 16px; background: var(--card); font-weight: 800; font-size: 14px; box-shadow: 3px 3px 0 var(--line); }
.est-button:active { translate: 2px 2px; box-shadow: 1px 1px 0 var(--line); }
.est-builder { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); align-items: start; gap: 24px; }
.est-pool, .est-columns > *, .est-builder > * { min-width: 0; }
.est-poolhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.est-subtitle { font-family: var(--f-display); font-weight: 400; font-size: 24px; line-height: 1.2; margin-bottom: 10px; }
.est-poolhead .est-subtitle { margin: 0; }
.est-count { font-family: var(--f-display); font-size: 27px; font-weight: 400; background: var(--sun); color: var(--line); border: var(--stroke); border-radius: 999px; padding: 1px 15px; rotate: 4deg; }
.est-candidates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.est-candidate { position: relative; display: flex; min-width: 0; flex-direction: column; align-items: center; padding: 12px 6px 9px; cursor: pointer; border: var(--stroke); border-radius: 18px; background: var(--card); box-shadow: 3px 3px 0 var(--line); transition: translate .25s var(--bounce), box-shadow .25s, background-color .2s; }
.est-candidate::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--t1) 23%, transparent), transparent 68%); pointer-events: none; }
.est-candidate[aria-pressed="true"] { background: color-mix(in srgb, var(--teal) 12%, var(--card)); box-shadow: 3px 3px 0 var(--teal); }
.est-candidate[aria-disabled="true"] { cursor: not-allowed; }
.est-candidate > b { font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.est-art { width: 100%; max-width: 110px; height: 100px; position: relative; }
.est-check { position: absolute; right: 7px; top: 6px; z-index: 1; width: 25px; height: 25px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 50%; background: var(--surface); font-size: 18px; line-height: 1; }
.est-candidate[aria-pressed="true"] .est-check { background: var(--teal); color: var(--line); }
.est-mote { font-size: 11px; color: var(--text-soft); margin: 4px 0 7px; overflow-wrap: anywhere; }
.est-types { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; }
.est-types .chip { font-size: 10px; padding: 2px 6px; gap: 3px; }
.est-types .ticon { width: 12px; height: 12px; }
.est-origin { font-size: 10px; margin-top: 7px; color: var(--text-soft); }
.est-scoreboard { border: var(--stroke); border-radius: 22px; box-shadow: 4px 4px 0 var(--line); background: var(--card); padding: 20px; border-top: 8px solid var(--est-accent); }
.est-sidepanel--sol { --est-accent: var(--c-sol); }
.est-sidepanel--luna { --est-accent: var(--c-luna); }
.est-score { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 8px 0 18px; }
.est-score > strong { font-family: var(--f-display); font-size: clamp(60px, 7vw, 88px); font-weight: 400; line-height: 1; color: var(--est-accent); }
.est-score > span { font-size: 13px; color: var(--text-soft); }
.est-baseline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; border-top: 2px dashed var(--dash); padding-top: 12px; font-size: 14px; }
.est-baseline b { font-size: 19px; margin-left: 5px; }
.est-delta { border-radius: 999px; padding: 2px 9px; background: var(--surface); font-size: 21px; }
.est-positive { color: #167756; }
.est-negative { color: #c62828; }
html[data-theme="dark"] .est-positive { color: #76ddba; }
html[data-theme="dark"] .est-negative { color: #ff958d; }
.est-neutral { color: var(--text-soft); }
.est-bars { display: grid; gap: 12px; margin-top: 18px; }
.est-barline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; align-items: baseline; font-size: 13px; }
.est-barline > b { font-size: 14px; }
.est-barline small { font-size: 10px; font-weight: 400; color: var(--text-mute); }
.est-track { grid-column: 1 / -1; height: 10px; overflow: hidden; border: 2px solid var(--line); border-radius: 999px; background: var(--track); }
.est-track i { display: block; height: 100%; background: var(--est-accent); border-radius: inherit; transition: width .3s ease; }
.est-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.est-sidepanel { border: var(--stroke); border-top: 7px solid var(--est-accent); border-radius: 20px; background: var(--card); padding: 20px; box-shadow: 4px 4px 0 var(--line); }
.est-owner { font-family: var(--f-display); font-size: 28px; font-weight: 400; margin: 0 0 16px; line-height: 1.2; overflow-wrap: anywhere; }
.est-owner--sol { color: var(--name-sol); }
.est-owner--luna { color: var(--name-luna); }
.est-suggestions { list-style: none; margin: 0 0 20px; padding: 0; }
.est-suggestions li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 2px dashed var(--dash); font-size: 15px; }
.est-suggestions li:first-child { padding-top: 0; }
.est-suggestions small { display: block; margin-top: 4px; color: var(--text-soft); }
.est-mini { width: 48px; height: 48px; flex: none; }
.est-label { font-size: 17px; margin-bottom: 10px; }
.est-tips { padding-left: 19px; margin: 0; font-size: 14px; color: var(--text-soft); }
.est-tips li + li { margin-top: 11px; }
.est-bosshead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.est-bossname { font-family: var(--f-display); font-weight: 400; font-size: 32px; line-height: 1.1; margin-bottom: 6px; }
.est-bosshead p { margin-bottom: 0; color: var(--text-soft); }
.est-sticker { display: inline-block; font-size: 14px; font-weight: 800; padding: 7px 12px; border: var(--stroke); border-radius: 12px; rotate: -4deg; box-shadow: 3px 3px 0 var(--line); background: var(--sun); color: var(--line); }
.est-roster { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 14px; margin: 0 0 26px; }
.est-bossmon { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 12px 8px; border: var(--stroke); border-radius: 20px; background: radial-gradient(ellipse at 50% 25%, color-mix(in srgb, var(--t1) 20%, transparent), transparent 70%), var(--card); }
.est-bossmon > span:not(.est-types) { font-size: 13px; color: var(--text-soft); margin: 3px 0 6px; }
.est-readiness { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.est-readiness .est-owner { margin: 0; }
.est-readiness > strong { font-family: var(--f-display); font-weight: 400; font-size: 38px; }
.est-readiness small { font-family: var(--f-body); font-size: 12px; color: var(--text-soft); }
.est-bossrow { padding: 14px 0; border-bottom: 2px dashed var(--dash); }
.est-bossrow:last-child { padding-bottom: 0; border-bottom: 0; }
.est-matchup { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14px; }
.est-matchup > b { flex: 1; }
.est-matchup .est-mini { width: 36px; height: 36px; }
.est-danger { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; margin: 6px 0; }
.est-danger i { width: 13px; height: 13px; border: 2px solid var(--line); border-radius: 50%; }
.est-danger--green i { background: var(--teal); }
.est-danger--amber i { background: var(--sun); }
.est-danger--red i { background: var(--red); }
.est-bossrow p { font-size: 13px; color: var(--text-soft); margin: 0; }
.est-verdict { font-family: var(--f-display); font-size: 26px; font-weight: 400; text-align: center; margin: 24px 0 14px; }
.est-verdict span { display: block; font-family: var(--f-body); font-size: 13px; color: var(--text-soft); }
.est-method { margin-top: 18px; padding: 13px 15px; background: var(--surface); border: 2px dashed var(--dash); border-radius: 15px; font-size: 13px; color: var(--text-soft); }
.est-method summary { cursor: pointer; font-weight: 800; color: var(--text); }
.est-method p { margin: 12px 0 0; max-width: 85ch; }
.est-duelsummary { margin-bottom: 12px; }
.est-duelsummary p { margin: 0; }
.est-duelsummary p:first-child { font-size: clamp(18px, 2.8vw, 25px); line-height: 1.4; }
.est-duelsummary strong { display: inline-block; font-family: var(--f-display); font-size: 36px; font-weight: 400; }
.est-duelsummary p + p { font-size: 14px; color: var(--text-soft); margin-top: 4px; }
.est-tablewrap { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; border: var(--stroke); border-radius: 18px; background: var(--card); scrollbar-color: var(--moon-light) var(--track); }
.est-dueltable { border-spacing: 5px; table-layout: fixed; width: 100%; min-width: 680px; padding: 4px; font-size: 12px; }
.est-dueltable th { overflow-wrap: anywhere; text-align: center; vertical-align: middle; padding: 5px 3px; }
.est-dueltable th .est-mini { margin: 0 auto; }
.est-dueltable th span, .est-dueltable th small { display: block; }
.est-dueltable th small { font-weight: 400; font-size: 10px; color: var(--text-soft); }
.est-dueltable td { padding: 0; }
.est-duel { width: 100%; min-height: 77px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; color: var(--text); background: var(--track); transition: scale .2s var(--bounce), box-shadow .2s; }
.est-duel > span { font-size: 10px; line-height: 1.2; overflow-wrap: anywhere; }
.est-duel--sol { background: color-mix(in srgb, var(--c-sol) 26%, var(--card)); }
.est-duel--luna { background: color-mix(in srgb, var(--c-luna) 26%, var(--card)); }
.est-duel[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--sun); }
.est-duel .est-tie { font-family: var(--f-display); font-size: 35px; }
.est-dueldetail { margin-top: 20px; border: var(--stroke); box-shadow: 4px 4px 0 var(--line); border-radius: 20px; padding: 20px; background: var(--card); }
.est-hitgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.est-hit { display: flex; align-items: center; min-width: 0; gap: 12px; }
.est-hit > div { min-width: 0; }
.est-detailart { width: 74px; height: 80px; flex: none; }
.est-hit b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.est-hit p { font-size: 14px; margin: 6px 0; }
.est-hit small { font-size: 11px; color: var(--text-soft); }
.est-speed { margin: 16px 0 0; border-top: 2px dashed var(--dash); padding-top: 12px; font-size: 13px; color: var(--text-soft); }
.est-comboside { min-width: 0; }
.est-itemcard { border: var(--stroke); border-radius: 20px; padding: 17px; background: var(--card); box-shadow: 4px 4px 0 var(--line); margin-bottom: 16px; }
.est-itemname { display: flex; align-items: center; gap: 9px; font-size: 17px; margin-bottom: 13px; overflow-wrap: anywhere; }
.est-itemname small { margin-left: auto; font-size: 12px; color: var(--text-soft); flex: none; }
.est-itemicon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; background: var(--track); border: 2px solid var(--line); border-radius: 12px; color: var(--sun); }
.est-itemicon img { width: 30px; height: 30px; image-rendering: pixelated; }
.est-combopick { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.est-combopick + .est-combopick { margin-top: 12px; padding-top: 12px; border-top: 2px dashed var(--dash); }
.est-combopick > div { min-width: 0; }
.est-combopick b { display: block; overflow-wrap: anywhere; }
.est-combopick p { margin: 6px 0 0; color: var(--text-soft); }
.est-tag { display: inline-block; border: 1.5px solid var(--line); padding: 1px 7px; margin-top: 4px; border-radius: 999px; font-size: 10px; font-weight: 800; background: color-mix(in srgb, var(--teal) 20%, var(--surface)); }
.est-itemcard .est-empty { font-size: 13px; margin-bottom: 0; }
@media (hover: hover) {
  .est-candidate:not([aria-disabled="true"]):hover { translate: 0 -4px; box-shadow: 4px 7px 0 var(--line); }
  .est-button:hover { background: var(--surface); }
  .est-duel:hover { scale: 1.04; }
}
@media (prefers-reduced-motion: no-preference) {
  .est-in .est-candidate, .est-in .est-bossmon { animation: est-deal .4s var(--bounce) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
  @keyframes est-deal { from { opacity: 0; scale: .92; rotate: -2deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }
}
@media (max-width: 850px) {
  .est-builder { grid-template-columns: minmax(0, 1fr); }
  .est-scoreboard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; }
  .est-scoreboard > .est-subtitle { grid-column: 1 / -1; }
  .est-scoreboard .est-score { grid-column: 1; }
  .est-scoreboard .est-baseline { grid-column: 1; align-self: start; }
  .est-scoreboard .est-bars { grid-column: 2; grid-row: 2 / 4; margin-top: 0; }
  .est-scoreboard > .est-note { grid-column: 1 / -1; }
  .est-columns { gap: 16px; }
  .est-sidepanel { padding: 16px; }
  .est-hit { gap: 7px; }
  .est-detailart { width: 52px; height: 64px; }
}
@media (max-width: 650px) {
  .est-columns, .est-hitgrid { grid-template-columns: minmax(0, 1fr); }
  .est-candidates { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .est-candidate { padding-inline: 3px; }
  .est-candidate > b { font-size: 13px; }
  .est-art { height: 80px; }
  .est-toolbar { align-items: stretch; }
  .est-toolbar > * { max-width: 100%; }
  .est-side { padding: 7px 11px; }
  .est-bossname { font-size: 28px; }
  .est-readiness > strong { font-size: 34px; }
  .est-detailart { width: 64px; height: 70px; }
}
@media (max-width: 430px) {
  .est-candidates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .est-scoreboard { display: block; padding: 16px; }
  .est-scoreboard .est-bars { margin-top: 18px; }
  .est-roster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .est-sticker { font-size: 12px; }
  .est-itemcard, .est-dueldetail { padding: 14px; }
  .est-itemname { font-size: 15px; }
  .est-subtitle { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .est-root *, .est-root *::before, .est-root *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
