/* The simulator shares the archive's dark panels and team colors. */
.nav a.draft-nav { color: #f4cf79; background: #3b3121; }
.draft-hero-cta {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: clamp(6px, 2vw, 18px);
  width: min(100%, 660px); min-height: 104px; margin: 26px auto 0; padding: 12px clamp(8px, 2.5vw, 22px);
  border: 1px solid #ad8951; border-radius: 14px; color: #fff1cb; text-align: center; text-decoration: none;
  background:
    linear-gradient(108deg, transparent 11%, #5ecde31c 11% 11.4%, transparent 11.4% 88%, #f2ce8824 88% 88.4%, transparent 88.4%),
    linear-gradient(112deg, #143544, #15202a 36%, #272319 67%, #47361f);
  box-shadow: inset 0 1px #ffffff20, 0 8px 24px #0007;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
@media (hover: hover) {
  .draft-hero-cta:hover {
    transform: translateY(-2px); border-color: #f5d08b;
    box-shadow: inset 0 1px #ffffff30, 0 12px 28px #0008, 0 0 16px #edc67524;
  }
}
.draft-hero-cta:active { transform: translateY(1px); }
.draft-hero-team {
  display: grid; place-items: center; width: clamp(38px, 12vw, 76px); aspect-ratio: 1;
  border-radius: 10px; border: 1px solid; transform: skewX(-7deg);
}
.draft-hero-blg { background: #0b2736; border-color: #4596aa; }
.draft-hero-gen { background: #3a2c17; border-color: #94703c; }
.draft-hero-team img { display: block; width: 76%; height: 76%; object-fit: contain; transform: skewX(7deg); }
.draft-hero-copy { display: grid; gap: 4px; min-width: 0; }
.draft-hero-copy strong {
  display: flex; justify-content: center; align-items: center; gap: clamp(5px, 1vw, 12px);
  font-size: clamp(16px, 3.1vw, 30px); font-weight: 900; line-height: 1.25;
}
.draft-hero-copy > span { color: #e0c794; font-size: clamp(10px, 1.6vw, 13px); line-height: 1.4; }
.draft-hero-arrow {
  display: grid; place-items: center; flex: 0 0 auto; width: clamp(19px, 4vw, 32px); aspect-ratio: 1;
  border-radius: 50%; background: #f2cf88; color: #251b0a; font-size: .72em; line-height: 1;
}
@media (max-width: 570px) {
  .draft-hero-cta { min-height: 78px; margin-top: 18px; border-radius: 10px; }
  .draft-hero-team { border-radius: 7px; }
}
.draft-sim {
  --ds-gold: #edc675; --ds-muted: #a7b2c3; --ds-border: #39455a;
  --ds-panel: #141d2c; --ds-subpanel: #0e1624; --ds-ink: #f1f4fb;
  scroll-margin-top: 108px;
}
.draft-sim h2, .draft-sim h3, .draft-sim h4, .draft-sim p { margin: 0; }
.draft-sim h3 { scroll-margin-top: 116px; }
.draft-sim h3 { font-size: 18px; color: var(--ds-ink); }
.draft-sim h4 { font-size: 14px; color: var(--ds-ink); }
.draft-sim p { color: var(--ds-muted); line-height: 1.65; font-size: 13px; }
.draft-sim button, .draft-sim select, .draft-sim input, .ds-share a {
  min-height: 40px; border-radius: 7px; padding: 7px 11px; border: 1px solid var(--ds-border);
  font: inherit; font-size: 13px; color: var(--ds-ink); background: var(--ds-subpanel);
}
.draft-sim button, .ds-share a, .draft-sim summary { cursor: pointer; }
.draft-sim button:hover:not(:disabled), .ds-share a:hover { border-color: var(--ds-gold); }
.draft-sim button:disabled { opacity: .52; cursor: default; }
.draft-sim :is(a, button, input, select, summary):focus-visible, .draft-hero-cta:focus-visible {
  outline: 2px solid #ffe8ab; outline-offset: 2px;
}
.draft-sim .ds-primary {
  background: var(--ds-gold); color: #1b1408; border-color: var(--ds-gold); font-weight: 750;
}
.draft-sim button[aria-pressed="true"] {
  border-color: var(--ds-gold); background: #392f20; color: #ffdfa0;
}
.ds-intro {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; border: 1px solid #675438; border-radius: 14px 14px 0 0;
  background: radial-gradient(ellipse at top right, #342817, transparent 65%), #161c28;
}
.ds-intro h2 { font-size: clamp(22px, 4vw, 35px); margin-block: 4px; line-height: 1.24; }
.ds-intro-logos { display: flex; align-items: center; gap: 8px; font: 700 14px var(--display, system-ui); color: var(--ds-gold); }
.ds-intro-logos img { width: 43px; height: 43px; object-fit: contain; }
#draft-app { background: #101826; border: 1px solid var(--ds-border); border-top: 0; border-radius: 0 0 14px 14px; padding: 14px; }
.ds-score {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: center;
  gap: 2px 12px; padding: 10px 16px; background: linear-gradient(90deg, #202342, #141c2c 45% 55%, #32291d);
  border-radius: 8px; border: 1px solid var(--ds-border); margin-bottom: 12px;
}
.ds-team { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-weight: 800; }
.ds-team img { width: 23px; height: 23px; object-fit: contain; }
.ds-blg { color: #bcb0ff; }
.ds-gen { color: #f6d58a; }
.ds-score .ds-team { font-size: clamp(16px, 3vw, 25px); }
.ds-score .ds-team img { width: clamp(24px, 4vw, 36px); height: auto; }
.ds-score > strong { font-size: clamp(28px, 6vw, 44px); line-height: 1; font-variant-numeric: tabular-nums; color: var(--ds-ink); }
.ds-score > strong span { color: #7b8aa1; padding-inline: 6px; }
.ds-score-label { grid-column: 1 / -1; color: var(--ds-gold); font-size: 12px; font-weight: 700; margin-top: 3px; }
.ds-stage { padding: 15px; border-radius: 10px; border: 1px solid var(--ds-border); background: var(--ds-panel); }
.ds-stage > p { margin-top: 6px; }
.ds-setup-note { display: flex; align-items: center; gap: 7px; }
.ds-setup-note .ds-team { flex: none; }
.ds-setup { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 12px; }
.ds-setup > div { min-width: 0; display: grid; gap: 10px; background: var(--ds-subpanel); border-radius: 8px; padding: 10px; }
.ds-setup h4 { display: flex; align-items: baseline; gap: 6px; }
.ds-setup h4 span, .ds-setup-label { font-size: 12px; color: var(--ds-muted); }
.ds-setup h4 span { font-weight: 500; white-space: nowrap; }
.ds-setup-label small { margin-left: 3px; color: #8bd0dc; font-size: 10px; white-space: nowrap; }
.ds-setup-group { display: grid; gap: 4px; }
.ds-setup-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ds-setup-options button { min-width: 0; min-height: 44px; padding-inline: 4px; }
.draft-sim .ds-setup-options .ds-auto-value[aria-pressed="true"] {
  opacity: 1; color: #b6e7ef; border-color: #477985; background: #1b333e;
}
.ds-buttons { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.ds-stage > .ds-buttons { margin-top: 10px; }
.ds-turn { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ds-step { color: var(--ds-gold); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ds-phases {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; list-style: none; padding: 0; margin: 10px 0;
}
.ds-phases li {
  text-align: center; border-bottom: 2px solid #3b4659; padding: 5px 0;
  font-size: 12px; color: var(--ds-muted);
}
.ds-phases .ds-current { color: var(--ds-gold); border-color: var(--ds-gold); font-weight: 800; }
.ds-lineups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.ds-lineup {
  min-width: 0; background: var(--ds-subpanel); border: 1px solid var(--ds-border);
  border-radius: 8px; padding: 8px; border-top: 2px solid #a493f0;
}
.ds-lineup-gen { border-top-color: #d9b064; }
.ds-lineup-head { display: flex; align-items: center; justify-content: space-between; gap: 5px; flex-wrap: wrap; }
.ds-lineup-head > div { display: flex; gap: 6px; font-size: 11px; color: var(--ds-muted); align-items: center; }
.ds-side { padding: 1px 5px; border-radius: 3px; font-weight: 750; }
.ds-blue { color: #9bd7ff; background: #1d3658; }
.ds-red { color: #ffb8bd; background: #502e3e; }
.ds-picks { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 3px; margin-block: 8px; }
.ds-pick { display: grid; text-align: center; gap: 3px; min-width: 0; }
.ds-pick small, .ds-pick > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.ds-pick small { color: var(--ds-muted); }
.ds-pick b { color: var(--ds-ink); }
.ds-portrait { margin: auto; width: min(100%,42px); aspect-ratio: 1; border-radius: 5px; overflow: hidden; }
.ds-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ds-empty { display: grid; place-items: center; border: 1px dashed #44516a; color: var(--ds-muted); }
.ds-active-slot { outline: 1px solid var(--ds-gold); outline-offset: 1px; border-radius: 4px; color: var(--ds-gold); }
.ds-active-slot .ds-portrait { color: var(--ds-gold); border-color: var(--ds-gold); }
.ds-unassigned { margin-top: 8px; padding: 6px; border-radius: 5px; background: var(--ds-panel); }
.ds-unassigned small, .ds-assigned { color: var(--ds-muted); font-size: 11px; }
.ds-unassigned > div { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; min-height: 55px; margin-top: 4px; }
.draft-sim .ds-assign-champ { display: grid; justify-items: center; gap: 2px; padding: 3px 4px; font-size: 11px; }
.ds-assign-champ img { width: 30px; height: 30px; border-radius: 4px; }
.draft-sim .ds-position { justify-items: center; min-width: 0; padding: 4px 1px; }
.ds-position > * { min-width: 0; max-width: 100%; }
.ds-position .ds-portrait { width: min(100%, 42px); min-height: 25px; }
.ds-review .ds-assign-status { margin-top: 10px; color: var(--ds-gold); }
[data-ds-drag] { touch-action: none; user-select: none; cursor: grab; }
[data-ds-drag]:active { cursor: grabbing; }
.draft-sim .ds-drop-hover { outline: 2px solid var(--ds-gold); background: #453723; border-radius: 5px; }
.ds-drag-preview {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  display: flex; align-items: center; gap: 6px; padding: 5px;
  border: 1px solid var(--ds-gold); border-radius: 6px; background: var(--ds-panel); color: var(--ds-ink); font-size: 12px;
}
.ds-drag-preview img { width: 32px; height: 32px; border-radius: 4px; }
.ds-bans { display: flex; align-items: center; gap: 4px; font-size: 10px; color: var(--ds-muted); }
.ds-bans > span:first-child { white-space: nowrap; }
.ds-ban {
  flex: 0 1 24px; min-width: 0; aspect-ratio: 1; border-radius: 4px; overflow: hidden;
  display: grid; place-items: center; background: #202a3c; border: 1px solid var(--ds-border);
}
.ds-ban img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.35); }
.ds-turn-now { margin-top: 13px; }
.ds-turn-now h4 { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.ds-turn-now button { min-height: 34px; font-size: 12px; }
.ds-stage > .ds-role-note { margin-block: 4px 6px; }
.ds-roles { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 4px; }
.ds-roles button { min-width: 0; padding: 4px 2px; font-size: 11px; line-height: 1.3; }
.ds-roles b { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.ds-tools { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; margin: 8px 0; }
.ds-search input, .ds-tools select { width: 100%; }
.ds-tools select { max-width: 160px; }
.ds-pool {
  display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 5px; padding: 4px 5px 4px 3px;
  max-height: 345px; overflow: auto; overscroll-behavior: contain; scrollbar-color: #55637b #172130;
}
.ds-pool > p { grid-column: 1 / -1; padding: 12px; }
.draft-sim .ds-champ { display: grid; gap: 3px; min-width: 0; padding: 5px 6px; text-align: left; }
.ds-champ-label { display: flex; gap: 5px; align-items: center; min-width: 0; }
.ds-champ-label img { width: 29px; height: 29px; object-fit: cover; border-radius: 4px; }
.ds-champ-label b { min-width: 0; overflow-wrap: anywhere; line-height: 1.15; }
.ds-rate { display: flex; justify-content: space-between; align-items: baseline; gap: 3px; color: var(--ds-muted); font-size: 10px; }
.ds-rate > span { white-space: nowrap; }
.ds-rate strong {
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 0 3px;
  color: var(--ds-ink); font-size: 11px; text-align: right; font-variant-numeric: tabular-nums;
}
.ds-rate small { font-size: 10px; color: var(--ds-muted); font-weight: 500; white-space: nowrap; }
.ds-lock {
  display: flex; justify-content: space-between; align-items: center; gap: 7px;
  border: 1px dashed var(--ds-border); border-radius: 7px; margin: 6px 0; padding: 5px 7px;
}
.ds-lock > span { font-size: 13px; color: var(--ds-gold); font-weight: 700; }
.ds-stage > .ds-footnote { font-size: 11px; margin-top: 9px; }
.ds-fearless, .ds-order, .ds-game { margin-top: 7px; border: 1px solid var(--ds-border); border-radius: 7px; background: var(--ds-subpanel); }
.ds-fearless summary, .ds-order summary, .ds-game summary { padding: 8px 10px; color: var(--ds-gold); font-size: 12px; }
.ds-fearless > p { padding-inline: 10px; }
.ds-fearless > div { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 10px; }
.ds-fearless > div span, .ds-order li { display: flex; align-items: center; gap: 4px; font-size: 11px; }
.ds-fearless img, .ds-order img { width: 23px; height: 23px; border-radius: 4px; }
.ds-winner-buttons { margin-top: 10px; }
.ds-stage > .ds-lineups { margin-top: 10px; }
.ds-draft > .ds-lineups { margin-top: 0; }
.ds-recap { margin-block: 12px; }
.ds-game summary span { margin-left: 10px; color: var(--ds-muted); }
.ds-game-body { padding: 0 8px 8px; }
.ds-game-body > p { margin-bottom: 6px; }
.ds-order-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; padding: 0 8px 8px; }
.ds-order-grid ol { list-style: none; margin: 4px 0 0; padding: 0; }
.ds-order li { margin-block: 4px; color: var(--ds-muted); }
.ds-order li::before { content: attr(value); min-width: 16px; color: var(--ds-gold); }
.ds-order li b { color: var(--ds-ink); }
.ds-share { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 16px; align-items: center; }
.ds-share p { margin-top: 4px; }
.ds-share .ds-follow { justify-content: flex-end; }
.ds-share .ds-follow a { border-color: #816844; color: #ffe0a6; }
.ds-share-actions, .ds-share > [role="status"], .ds-share .ds-copy, .ds-poster { grid-column: 1 / -1; }
.ds-share a { text-decoration: none; display: inline-grid; place-items: center; }
.ds-share > [role="status"] { width: 100%; color: var(--ds-gold); font-size: 13px; }
.ds-share > [role="status"]:empty { display: none; }
.ds-share[aria-busy="true"] .ds-buttons { opacity: .65; }
.ds-share input { width: 100%; }
.ds-poster {
  display: grid; justify-items: start; gap: 8px; padding-top: 10px; border-top: 1px solid var(--ds-border);
}
.ds-poster img { display: block; width: min(100%, 480px); height: auto; border-radius: 8px; }
@media (max-width: 620px) {
  .ds-share { grid-template-columns: minmax(0,1fr); }
  .ds-share .ds-follow { justify-content: flex-start; }
}
.ds-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 9px; font-size: 13px; }
.ds-footer:empty { display: none; }
.ds-link-error { margin-bottom: 8px !important; }
.ds-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 820px) {
  .ds-pool { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .ds-pick small b { display: block; }
}
@media (max-width: 570px) {
  .ds-intro { padding: 12px; }
  .ds-intro-logos { gap: 4px; }
  .ds-intro-logos img { width: 23px; height: 23px; }
  #draft-app { padding: 7px; }
  .ds-stage { padding: 8px; }
  .ds-setup { gap: 6px; }
  .ds-setup > div { gap: 8px; padding: 7px; }
  .ds-setup h4 { gap: 4px; }
  .ds-setup h4 span { font-size: 11px; }
  .ds-setup-options { gap: 4px; }
  .ds-option-detail { display: none; }
  .ds-pool { grid-template-columns: repeat(3,minmax(0,1fr)); max-height: 300px; }
  .ds-pick small, .ds-pick > span, .ds-rate { font-size: 10px; }
  .ds-lineups { gap: 4px; }
  .ds-lineup { padding: 4px; }
  .ds-lineup-head .ds-team img { width: 18px; height: 18px; }
  .ds-order-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ds-tools select { max-width: 130px; font-size: 12px; }
  .ds-search input { padding-inline: 5px; font-size: 12px; }
  .ds-review .ds-lineups { grid-template-columns: 1fr; }
}
@media (max-width: 370px) {
  .ds-pool { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ds-lineups { grid-template-columns: 1fr; }
}
/* 招牌标记、今年局数、自动补完按钮 */
.ds-sig { font-style: normal; font-size: 10px; font-weight: 800; padding: 1px 5px; margin-left: 4px; border-radius: 3px; background: #3c52db; color: #fff; vertical-align: 1px; }
.ds-year { display: block; font-size: 11px; color: var(--ds-muted); margin-top: 2px; }
.ds-turn-tools { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.draft-sim .ds-auto { border-color: rgba(193, 229, 255, .5); color: #c1e5ff; }
