.ex-shade, .ex-hud {
  --ex-accent: #f5c65d;
  --ex-rule: #566067;
  color: #f4f3ec;
}
.ex-shade {
  position: fixed; inset: 0; z-index: 81; display: grid; place-items: center;
  padding: 14px; background: #090d12ba; box-sizing: border-box;
}
.ex-vote, .ex-detail {
  background: #1b2126; border: 1px solid #687177; border-top: 3px solid var(--ex-accent);
  box-shadow: 0 12px 36px #06080999;
}
.ex-vote {
  width: min(480px, 94vw); padding: clamp(15px, 3vh, 28px) 26px; box-sizing: border-box;
  max-height: 92dvh; overflow-y: auto; font-size: 15px; line-height: 1.5;
}
.ex-top, .ex-voters, .ex-vote li, .ex-vote footer, .ex-boss, .ex-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.ex-top { color: var(--ex-accent); font-weight: 650; font-size: 13px; }
.ex-vote h1 { margin: 12px 0 5px; color: #fff; font-size: clamp(24px,4vh,34px); line-height: 1.2; }
.ex-vote p { margin: 0; color: #c5cacf; }
.ex-terms { display: flex; flex-wrap: wrap; gap: 7px; margin: 15px 0 20px; }
.ex-terms span { background: #343b3e; border-left: 2px solid var(--ex-accent); padding: 3px 8px; font-size: 13px; }
.ex-voters { border-bottom: 1px solid var(--ex-rule); padding-bottom: 5px; }
.ex-voters b, .ex-yes { color: var(--ex-accent); }
.ex-vote ul { margin: 0; padding: 0; list-style: none; }
.ex-vote li { font-size: 14px; padding: 5px 0; border-bottom: 1px solid #ffffff20; }
.ex-vote li span:last-child { font-size: 12px; }
.ex-vote footer { margin-top: 18px; }
.ex-vote button { background: #292f33; border: 1px solid #70777a; color: #fff; font: inherit; font-weight: 650; padding: 8px 20px; cursor: pointer; }
.ex-vote .ex-enter { background: var(--ex-accent); color: #1d2024; border-color: var(--ex-accent); }
.ex-vote .ex-wait { margin-top: 14px; color: var(--ex-accent); }
.ex-vote button:focus-visible, .ex-toggle:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.ex-hud { position: absolute; z-index: 7; top: max(1.42rem, 62px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 92vw; font-size: 13px; line-height: 1.4; }
.ex-toggle { margin: auto; border: 1px solid #777b78; border-left: 3px solid var(--ex-accent); background: #182028ed; color: white; padding: 5px 10px; font: inherit; cursor: pointer; }
.ex-toggle strong, .ex-toggle i { color: var(--ex-accent); }
.ex-toggle i { font-style: normal; }
.ex-detail { margin: 5px auto 0; padding: 12px 15px; width: min(318px, 86vw); box-sizing: border-box; }
.ex-detail h3 { margin: 0 0 5px; font-size: 12px; color: #c6cbce; }
.ex-factions, .ex-stats { display: flex; gap: 6px; margin-bottom: 12px; }
.ex-factions span { display: inline-flex; align-items: center; gap: 3px; background: #343b3e; padding: 3px 5px; }
.ex-factions .in-wave { outline: 1px solid var(--ex-accent); color: #ffdd8a; }
.ex-factions img { width: 20px; height: 20px; object-fit: contain; }
.ex-stats > div { flex: 1; border-left: 2px solid #928362; padding-left: 7px; }
.ex-detail small, .ex-detail b, .ex-boss strong { display: block; }
.ex-detail small { font-size: 11px; color: #c6cbce; }
.ex-detail b { font-variant-numeric: tabular-nums; font-size: 16px; }
.ex-boss { justify-content: flex-start; padding-top: 8px; border-top: 1px solid var(--ex-rule); }
.ex-boss img { width: 32px; height: 32px; object-fit: contain; }
.ex-pool { margin-left: auto; text-align: right; color: var(--ex-accent); }
.ex-last { margin: 4px auto 0; text-align: center; background: #582d24; color: #ffe8c5; padding: 3px 8px; }
.ex-result { border-left: 3px solid #f5c65d; color: #ffe39e; background: #202326df; width: fit-content; margin: .12rem 0; padding: 4px 10px; font-size: max(14px,.22rem); }
.sself .ex-result, .steam .ex-result { position: absolute; z-index: 2; margin: 0; font-size: calc(.26 * var(--t)); line-height: 1.3; padding: .06rem .13rem; }
.sself .ex-result { left: .72rem; top: 5.88rem; }
.steam .ex-result { left: 3.45rem; bottom: 1.64rem; }
@media (max-height: 550px) {
  .ex-vote { padding: 10px 18px; }
  .ex-terms, .ex-vote footer { margin: 8px 0; }
  .ex-vote li { padding: 2px 0; }
  .ex-detail { max-height: 50dvh; overflow: auto; }
}
