.player-mark {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-inline-start: .35em;
  padding: 2px 5px;
  border-radius: 4px;
  font: 750 9px/1.25 Inter, sans-serif;
  letter-spacing: .04em;
}
.player-mark[hidden] { display: none; }
.player-icon {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-inline-start: .32em;
  vertical-align: -.12em;
  background: currentColor;
  mask: var(--player-icon) center / contain no-repeat;
}
.player-icon.mark-admin {
  color: #ffd98b;
  --player-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' d='m3 6 5 4 4-6 4 6 5-4-2 12H5Zm3 15h12'/%3E%3C/svg%3E");
}
.player-icon.mark-mod {
  color: #8ce4d8;
  --player-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 2 4 5v6c0 5 4 8 8 11 4-3 8-6 8-11V5Zm-3 10 2 2 4-4'/%3E%3C/svg%3E");
}
.player-icon.mark-streamer {
  color: #dab8ff;
  --player-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' d='M3 6h12v12H3zM15 10l6-4v12l-6-4'/%3E%3C/svg%3E");
}
.mark-live { background: #bd2034; color: #fff; }
.mark-live::before { content: ''; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: currentColor; }
.live-streams { margin-block: 0 24px; }
.live-streams[hidden] { display: none !important; }
.stream-cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%, 210px),1fr)); gap: 14px; }
.stream-card { display: block; min-width: 0; border: 1px solid #204960; border-radius: 8px; overflow: hidden; background: #071725; }
.stream-card:hover, .stream-card:focus-visible { border-color: #39c8ef; }
.stream-preview { position: relative; aspect-ratio: 16 / 9; background: #112a3d; }
.stream-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stream-preview .mark-live { position: absolute; top: 9px; left: 6px; }
.stream-viewers { position: absolute; bottom: 9px; left: 9px; padding: 4px 7px; border-radius: 4px; background: #020812dc; color: #fff; font-size: 12px; }
.stream-copy { display: grid; gap: 4px; padding: 10px 12px; }
.stream-copy > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stream-copy span { font-size: 12px; color: #a7bfd0; }
.map-ban-grid .map-ban {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 106px;
  overflow: hidden;
  text-align: left;
  padding: 12px;
  color: #fff;
}
.map-ban-grid .map-ban img, .map-ban-grid .map-ban::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-ban-grid .map-ban img { z-index: -2; object-fit: cover; }
.map-ban-grid .map-ban::before { content: ''; z-index: -1; background: linear-gradient(transparent, #020812ed); }
.map-ban-grid .map-ban small { margin-top: 5px; }
.map-ban-grid .map-ban:disabled { opacity: 1; cursor: default; }
.map-ban-grid .map-ban.is-removed img { filter: grayscale(1) brightness(.45); }
.map-ban-grid .map-ban.is-removed small { color: #c1ccd5; }
.map-ban-grid .map-ban.is-chosen { border-color: #57e69b; }
.map-ban-grid .map-ban.is-chosen small { color: #92ffba; }
.map-ban-grid .map-ban:not(:disabled):hover, .map-ban-grid .map-ban:focus-visible { border-color: #74ddff; box-shadow: inset 0 0 0 1px #74ddff; }

.veto-panel { margin-block: 12px 14px; }
.veto-turn { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 12px; }
.veto-captain {
  --veto-accent: #70bcff;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #254052;
  border-radius: 9px;
  background: #0a1a28;
}
.veto-side-b { --veto-accent: #ffc17c; grid-column: 3; grid-row: 1; flex-direction: row-reverse; text-align: right; }
.veto-captain.is-turn { border-color: var(--veto-accent); box-shadow: 0 4px 15px color-mix(in srgb, var(--veto-accent) 25%, transparent); background: #11273a; }
.veto-avatar { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 7px; overflow: hidden; background: #1b3d54; color: #fff; }
.veto-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.veto-captain-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.veto-captain-name small, .veto-captain-name strong { display: block; }
.veto-captain-name small { font-size: 10px; }
.veto-captain-name strong { font-size: 14px; }
.veto-status { color: #9bb1c2; font-size: 11px; font-weight: 700; }
.veto-captain.is-turn .veto-status { color: var(--veto-accent); }
.veto-count { grid-column: 2; grid-row: 1; display: grid; align-content: center; justify-items: center; min-width: 62px; text-align: center; }
.veto-count strong { color: #fff; font-size: 25px; line-height: 1.1; }
.veto-count span { color: #9bb1c2; font-size: 10px; }
.veto-prompt { margin: 12px 0 10px; text-align: center; font-size: 13px; font-weight: 700; }
.veto-panel .map-ban-grid { margin-top: 0; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.veto-panel .map-ban { min-height: 93px; padding: 9px; border-radius: 8px; }
.veto-panel .map-ban strong { font-size: 14px; }
@media (max-width: 640px) {
  .veto-turn { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .veto-side-b { grid-column: 2; }
  .veto-count { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; justify-content: center; gap: 6px; }
  .veto-count strong { font-size: 18px; }
  .veto-captain { flex-wrap: wrap; padding: 7px; gap: 6px; }
  .veto-avatar { flex-basis: 27px; height: 27px; }
  .veto-status { width: 100%; }
  .veto-panel .map-ban-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.map-ban-grid .map-ban.is-chosen { box-shadow: inset 0 0 0 1px #57e69b, 0 0 15px #57e69b38; }
@media (prefers-reduced-motion: no-preference) {
  .veto-turn-changed { animation: captain-turn-reveal .55s ease-out; }
  .map-ban.is-removed.veto-map-changed img { animation: map-ban-fade .36s ease-out; }
  .map-ban.is-chosen.veto-map-changed { animation: chosen-map-reveal .5s ease-out; }
  @keyframes captain-turn-reveal { from { box-shadow: 0 0 20px var(--veto-accent); } }
  @keyframes map-ban-fade { from { filter: grayscale(0) brightness(1); } }
  @keyframes chosen-map-reveal { from { box-shadow: inset 0 0 0 2px #a3ffca, 0 0 24px #57e69b94; } }
}
