/* Sim DPS (simdps.html) - on top of style.css (the Find Upgrades search box, tooltip and colours) */
[hidden] { display: none !important; }
.sd-out { margin-top: 18px; animation: sd-in .35s ease; }
@keyframes sd-in { from { opacity: 0; transform: translateY(6px); } }
.sd-h { margin: 26px 0 10px; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.sd-msg { color: var(--muted); }
.sd-notes { color: var(--muted); font-size: 12.5px; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 12px; }

/* character + the number */
.sd-hero { --cc: var(--gold); display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 16px;
  background: radial-gradient(520px 200px at 100% 50%, rgba(248, 183, 0, .16), transparent 70%),
    linear-gradient(160deg, color-mix(in srgb, var(--cc) 10%, #161b2c), #10131f 70%);
  border: 1px solid color-mix(in srgb, var(--cc) 35%, #262d45); }
.sd-av { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; border: 2px solid var(--cc); }
.sd-who { min-width: 0; }
.sd-who h2 { margin: 0; font-size: 26px; color: var(--cc); line-height: 1.15; }
.sd-who p { margin: 3px 0 0; }
.sd-score { margin-left: auto; text-align: right; }
.sd-score span { display: block; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.sd-score b { display: block; font-size: 46px; line-height: 1.05; font-weight: 800; color: var(--gold);
  text-shadow: 0 0 24px rgba(248, 183, 0, .35); font-variant-numeric: tabular-nums; }
.sd-score small { color: var(--muted); font-size: 14px; }

/* gear: a character sheet - left and right columns, weapons below */
.sd-doll { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding: 16px; border-radius: 14px;
  background: linear-gradient(180deg, #121624, #0e111b); border: 1px solid var(--line); }
.sd-col { display: grid; gap: 8px; align-content: start; min-width: 0; }
.sd-wpn { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.sd-slot { display: flex; align-items: center; gap: 11px; padding: 6px 10px 6px 6px; border-radius: 10px; min-width: 0; outline: none;
  background: #0b0e17; border: 1px solid #1d2336; transition: border-color .15s, background .15s; }
.sd-slot[data-slot] { cursor: default; }
.sd-slot[data-slot]:hover, .sd-slot[data-slot]:focus-visible { border-color: #3d4668; background: #111628; }
.sd-slot.empty { opacity: .6; }
.sd-ic { flex: none; width: 44px; height: 44px; border-radius: 7px; overflow: hidden; display: grid; place-items: center; background: #0b0b0b; border: 2px solid #4a4a4a; }
.sd-ic img, .sd-ic .ic-letter { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; }
.sd-ic .ic-letter { font-weight: 800; color: #cfc6a6; background: radial-gradient(circle at 40% 30%, #3a3f55, #15182a); }
.sd-ic.q2 { border-color: #1eff00aa; } .sd-ic.q3 { border-color: #0070dd; } .sd-ic.q4 { border-color: #a335ee; } .sd-ic.q5 { border-color: #ff8000; }
.sd-ic.empty img { filter: grayscale(1) brightness(.5); }
.sd-txt { min-width: 0; display: flex; flex-direction: column; }
.sd-lbl { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; }
.sd-txt b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-txt b.q3 { color: #3d9bff; }
.sd-ench { color: #1eff00; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-none { color: var(--muted); font-size: 13px; }
.sd-tip { position: fixed; z-index: 60; width: 330px; max-width: calc(100vw - 16px); pointer-events: none; }
.sd-tip .tip { box-shadow: 0 10px 30px rgba(0, 0, 0, .65); }

/* damage breakdown */
.sd-break { padding: 16px 18px; border-radius: 14px; background: linear-gradient(180deg, #121624, #0e111b); border: 1px solid var(--line); }
.sd-stack { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin-bottom: 14px; background: #1d2336; }
.sd-stack i { display: block; height: 100%; transform-origin: left; animation: sd-grow .8s ease-out both; }
.sd-bhead, .sd-brow { display: grid; grid-template-columns: minmax(0, 1.2fr) 80px minmax(0, 2fr) 64px; gap: 12px; align-items: center; }
.sd-bhead { color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 0 2px 6px; border-bottom: 1px solid var(--line); }
.sd-bhead span:nth-child(2), .sd-bhead span:nth-child(4) { text-align: right; }
.sd-brow { padding: 7px 2px; border-bottom: 1px solid #1a2032; font-size: 14px; }
.sd-brow:last-of-type { border-bottom: 0; }
.sd-ab { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sd-ab i { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.sd-val { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; }
.sd-bar { position: relative; height: 18px; border-radius: 5px; background: #171c2c; overflow: hidden; }
.sd-bar i { display: block; height: 100%; border-radius: 5px; opacity: .85; transform-origin: left; animation: sd-grow .9s ease-out both; }
.sd-bar em { position: absolute; left: 8px; top: 0; line-height: 18px; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px #000; }
.sd-casts { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.sd-total { margin: 12px 0 0; }
@keyframes sd-grow { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .sd-bar i, .sd-stack i, .sd-out { animation: none; } }

/* how it was simulated */
.sd-det { display: grid; gap: 8px; padding: 14px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); font-size: 13.5px; color: #c9cfdf; }
.sd-det b { color: var(--gold); margin-right: 4px; }

@media (max-width: 760px) {
  .sd-hero { flex-wrap: wrap; padding: 16px; }
  .sd-score { margin-left: 0; text-align: left; width: 100%; }
  .sd-score b { font-size: 40px; }
  .sd-doll { grid-template-columns: minmax(0, 1fr); padding: 10px; }
  .sd-wpn { grid-template-columns: minmax(0, 1fr); }
  .sd-bhead, .sd-brow { grid-template-columns: minmax(0, 1fr) 64px 48px; }
  .sd-bhead span:nth-child(3) { display: none; }
  .sd-brow .sd-bar { grid-column: 1 / -1; grid-row: 2; }
}

/* the spec ranking (home page's, home.css) under the results */
.sd-rankings { padding: 64px 0 8px; }

/* ---------------------------------------------------------------- simspec.html: one ranking sim */
.ss-top { margin: 6px 0 14px; } .ss-top a { color: var(--gold); text-decoration: none; font-size: 14px; } .ss-top a:hover { text-decoration: underline; }
.ss-hero .ss-crest { flex: none; width: 64px; height: 64px; color: var(--cc); filter: drop-shadow(0 0 12px color-mix(in srgb, var(--cc) 45%, transparent)); }
.ss-levels { display: inline-flex; margin-top: 10px; border-radius: 10px; overflow: hidden; border: 1px solid #2c3350; }
.ss-levels button { font: inherit; font-size: 13.5px; font-weight: 700; padding: 6px 14px; border: 0; border-radius: 0; background: #151a2b; color: #c9cfdf; cursor: pointer; }
.ss-levels button + button { border-left: 1px solid #2c3350; }
.ss-levels button[aria-pressed="true"] { color: #1b1300; background: linear-gradient(#ffcc33, #e0a000); }
.ss-fight { margin: 10px 2px 0; color: var(--muted); font-size: 13.5px; }
.ss-card { padding: 16px 18px; border-radius: 14px; background: linear-gradient(180deg, #121624, #0e111b); border: 1px solid var(--line); }
.ss-lead { margin: 0 0 14px; color: #c9cfdf; font-size: 14px; } .ss-lead b { color: #f3ead0; }
.ss-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.ss-stat { padding: 10px 12px; border-radius: 10px; background: #0b0e17; border: 1px solid #1d2336; }
.ss-stat b { display: block; font-size: 22px; color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1.1; }
.ss-stat span { color: #aab0c2; font-size: 12.5px; }
.ss-wpns { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin-top: 10px; }
.ss-wpn { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 10px; background: #0b0e17; border: 1px solid #1d2336; }
.ss-wpn b { color: #f3ead0; font-size: 14.5px; } .ss-wpn > span:last-child { color: #c9cfdf; font-size: 13px; }
.ss-small { margin: 12px 0 0; font-size: 13px; } .ss-small a { color: var(--gold); }
.ss-split { text-transform: none; letter-spacing: 0; color: var(--gold); font-weight: 700; margin-left: 6px; }
.ss-tree + .ss-tree { margin-top: 14px; }
.ss-tree h4 { margin: 0 0 8px; color: #f3ead0; font-size: 15px; } .ss-tree h4 span { color: var(--gold); margin-left: 4px; }
.ss-tals { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.ss-tal { display: flex; align-items: center; gap: 9px; padding: 5px 10px 5px 5px; border-radius: 9px; background: #0b0e17; border: 1px solid #1d2336; min-width: 0; }
.ss-tic { flex: none; width: 32px; height: 32px; border-radius: 6px; overflow: hidden; display: grid; place-items: center; border: 1px solid #4a4a4a; background: #0b0b0b; }
.ss-tic img, .ss-tic .ic-letter { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; }
.ss-tic .ic-letter { font-weight: 800; color: #cfc6a6; background: radial-gradient(circle at 40% 30%, #3a3f55, #15182a); }
.ss-tn { flex: 1; min-width: 0; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-tp { flex: none; color: #1eff00; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.ss-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ss-btn { display: inline-block; padding: 11px 18px; border-radius: 10px; text-decoration: none; font-weight: 700; color: #e6e1cf; background: #171c2e; border: 1px solid #2c3350; }
.ss-btn:hover { border-color: var(--gold); }
.ss-btn.primary { color: #1b1300; background: linear-gradient(#ffcc33, #e0a000); border-color: #e0a000; }
@media (max-width: 760px) { .ss-hero .ss-crest { width: 48px; height: 48px; } .ss-tals { grid-template-columns: minmax(0, 1fr); } }
.ss-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ss-switch .ss-levels { margin-top: 0; }
.ss-gear button { display: inline-flex; align-items: center; gap: 7px; }
.ss-dot { width: 10px; height: 10px; border-radius: 3px; }
.ss-dot.dungeon { background: #0070dd; box-shadow: 0 0 8px #0070dd; } .ss-dot.raid { background: #a335ee; box-shadow: 0 0 8px #a335ee; }
.ss-gear button[data-gear="dungeon"][aria-pressed="true"] { color: #fff; background: linear-gradient(180deg, #0a3f7d, #072a54); }
.ss-gear button[data-gear="raid"][aria-pressed="true"] { color: #fff; background: linear-gradient(180deg, #5a1e86, #3b1258); }
.ss-glead { margin: -2px 0 12px; color: var(--muted); } .ss-glead a { color: var(--gold); }
.ss-sub { color: #9aa1b5; font-size: 12px; }

.ss-summary { margin: 14px 2px 0; font-size: 15.5px; line-height: 1.7; color: #d2d6e2; max-width: 980px; }
.ss-race { margin: 10px 0 0; font-size: 14px; line-height: 1.55; }
