:root {
  --bg: #020407;
  --panel: rgba(4, 10, 14, 0.88);
  --panel-strong: rgba(3, 8, 12, 0.96);
  --ink: #f5f8f8;
  --muted: #aebdc1;
  --cyan: #5fe1e5;
  --red: #ff6370;
  --gold: #e3bf69;
  --green: #7ce3a6;
  --line: rgba(164, 204, 207, 0.24);
  --font: "Yu Gothic UI", "Meiryo", "Noto Sans JP", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  height: 100vh;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  letter-spacing: 0;
  background: #020407;
}

button,
select {
  font: inherit;
}

button {
  letter-spacing: 0;
}

#fxCanvas {
  position: fixed;
  z-index: 80;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.arena-shell {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: grid;
  width: 1920px;
  height: 1080px;
  padding: 12px 20px 18px;
  gap: 10px 14px;
  isolation: isolate;
  background: url("./assets/ui-background-v3.png") center / 100% 100% no-repeat;
  transform: translate(-50%, -50%) scale(var(--stage-scale, 1));
  transform-origin: center;
  grid-template-columns: minmax(0, 1fr) 390px;
  grid-template-rows: 112px 608px 310px;
  grid-template-areas:
    "hud hud"
    "match right"
    "hand hand";
}

.panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
}

.brand-kicker,
.eyebrow,
.meter-label {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-block {
  position: relative;
}

.live-source-status {
  position: absolute;
  left: 0;
  bottom: -12px;
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 280px;
  color: #c8bbb5;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.live-source-status[hidden] {
  display: none;
}

.live-source-status i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #b63b4c;
  box-shadow: 0 0 8px rgba(182, 59, 76, 0.75);
}

.live-source-status[data-status="connected"] {
  color: #e0d0a9;
}

.live-source-status[data-status="connected"] i {
  background: #d1b36e;
  box-shadow: 0 0 10px rgba(209, 179, 110, 0.82);
}

.live-source-status[data-status="stale"] i,
.live-source-status[data-status="waiting"] i {
  animation: live-source-pulse 1.4s ease-in-out infinite;
}

.live-source-status[data-status="error"] {
  color: #ff7b86;
}

@keyframes live-source-pulse {
  50% {
    opacity: 0.34;
  }
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  margin-top: 5px;
  color: #fff;
  font-size: 29px;
  font-weight: 900;
  line-height: 1;
}

h2 {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}

.top-hud {
  grid-area: hud;
  display: grid;
  grid-template-columns: 338px 170px 210px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px 38px 17px;
}

.meter {
  display: grid;
  align-content: center;
  min-width: 0;
  height: 64px;
  padding: 8px 14px;
  border-left: 2px solid rgba(227, 191, 105, 0.72);
  background: linear-gradient(90deg, rgba(227, 191, 105, 0.09), transparent);
}

.meter strong {
  margin-top: 3px;
  color: var(--gold);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.score-plate {
  display: grid;
  min-width: 0;
  height: 68px;
  padding: 6px 12px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 3px;
  background: rgba(1, 6, 9, 0.62);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.score-plate span {
  color: #c3d1d4;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.score-plate strong {
  font-size: 30px;
  line-height: 1;
}

.hud-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.action-button,
.icon-button {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(95, 225, 229, 0.4);
  border-radius: 3px;
  color: #efffff;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  background: rgba(2, 10, 14, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  cursor: pointer;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.action-button:hover,
.icon-button:hover {
  border-color: rgba(95, 225, 229, 0.8);
  background: rgba(10, 31, 36, 0.94);
}

.action-button.secondary {
  border-color: rgba(255, 255, 255, 0.2);
  color: #dfe9eb;
}

.sound-pattern-control {
  display: grid;
  width: 150px;
  height: 48px;
  padding: 5px 10px 6px;
  border: 1px solid rgba(227, 191, 105, 0.3);
  border-radius: 3px;
  background: rgba(3, 9, 13, 0.92);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.sound-pattern-control span {
  color: #b5c2c5;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.sound-pattern-control select {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: #f2d88e;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  background: transparent;
  cursor: pointer;
}

.sound-pattern-control option {
  color: #eff6f6;
  background: #071017;
}

.match-view {
  grid-area: match;
  position: relative;
  overflow: hidden;
  padding: 17px 20px 16px;
}

.match-chrome {
  position: absolute;
  z-index: 16;
  left: 32px;
  right: 32px;
  top: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
}

.match-chrome > div:first-child {
  display: grid;
  min-width: 310px;
  padding: 10px 14px 11px;
  gap: 5px;
  border-left: 3px solid rgba(95, 225, 229, 0.78);
  background: linear-gradient(90deg, rgba(1, 6, 9, 0.78), rgba(1, 6, 9, 0.22));
}

.match-chrome strong {
  font-size: 20px;
  line-height: 1;
}

.round-clock {
  position: absolute;
  left: 50%;
  top: -8px;
  z-index: 20;
  display: grid;
  width: 210px;
  min-height: 82px;
  padding: 9px 12px;
  place-items: center;
  border: 1px solid rgba(95, 225, 229, 0.5);
  border-top: 3px solid var(--cyan);
  border-radius: 3px;
  background: rgba(2, 10, 14, 0.88);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
  transform: translateX(-50%);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}

.round-clock span {
  color: #c3e9eb;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.round-clock strong {
  color: #fff;
  font-size: 42px;
  line-height: 1;
}

.round-clock.urgent {
  border-color: rgba(255, 99, 112, 0.84);
  border-top-color: var(--red);
  box-shadow: 0 0 28px rgba(255, 99, 112, 0.23);
}

.tactical-map {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(164, 204, 207, 0.18);
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(2, 6, 8, 0.34), transparent 19%, transparent 81%, rgba(2, 6, 8, 0.34)),
    url("./assets/live-match-screen.png") center / cover no-repeat,
    #020507;
  box-shadow: inset 0 0 42px rgba(0, 0, 0, 0.42);
}

.tactical-map::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 99, 112, 0.08), transparent 14%, transparent 86%, rgba(95, 225, 229, 0.08)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), transparent 22%, transparent 76%, rgba(0, 0, 0, 0.3));
}

.map-grid,
.site,
.spawn,
.map-wall {
  display: none;
}

.player-icon-band {
  position: absolute;
  z-index: 4;
  top: 17%;
  width: 78px;
  height: 68%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.player-icon-band.atk-band {
  left: calc(9% - 39px);
  border-left: 2px solid rgba(255, 99, 112, 0.72);
}

.player-icon-band.def-band {
  right: calc(9% - 39px);
  border-right: 2px solid rgba(95, 225, 229, 0.72);
}

.player-marker {
  position: absolute;
  z-index: 6;
  display: grid;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 3px;
  color: #071015;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 0 15px currentColor, inset 0 -7px 10px rgba(0, 0, 0, 0.22);
  transition: opacity 160ms ease, transform 160ms ease;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.player-marker.atk {
  color: var(--red);
  background: #ffd5da;
}

.player-marker.def {
  color: var(--cyan);
  background: #d7fcff;
}

.player-marker.dead {
  color: #7c868a;
  background: #586267;
  opacity: 0.42;
  transform: scale(0.82);
}

.killfeed {
  position: absolute;
  z-index: 20;
  top: 24px;
  right: 26px;
  display: grid;
  width: 430px;
  gap: 5px;
}

.kill-row {
  --killer: rgba(179, 55, 67, 0.9);
  --victim: rgba(39, 89, 95, 0.9);
  display: grid;
  min-height: 42px;
  grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
  align-items: stretch;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.54));
}

.kill-row.def {
  --killer: rgba(40, 118, 125, 0.92);
  --victim: rgba(153, 48, 59, 0.9);
}

.kill-row > span {
  display: flex;
  min-width: 0;
  padding: 7px 10px;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.kill-row > span:first-child {
  justify-content: flex-end;
  text-align: right;
  background: var(--killer);
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
}

.kill-row > span:last-child {
  justify-content: flex-start;
  background: var(--victim);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.kill-row small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.73);
  font-size: 14px;
  text-overflow: ellipsis;
}

.kill-row .weapon {
  justify-content: center;
  color: #fff;
  font-size: 14px;
  text-align: center;
  background: rgba(5, 12, 16, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.round-banner {
  position: absolute;
  z-index: 24;
  left: 50%;
  top: 50%;
  display: grid;
  min-width: 440px;
  padding: 16px 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 3px solid var(--cyan);
  border-radius: 3px;
  color: #fff;
  opacity: 0;
  font-size: 30px;
  font-weight: 900;
  text-align: center;
  background: rgba(3, 9, 13, 0.92);
  transform: translate(-50%, -50%) scale(0.94);
  pointer-events: none;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}

.round-banner.has-player {
  min-width: 520px;
  padding: 12px 24px 12px 15px;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  text-align: left;
}

.round-banner-agent {
  width: 72px;
  height: 72px;
  border: 2px solid var(--team-def);
  object-fit: cover;
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 0 18px rgba(43, 200, 186, 0.22);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.round-banner[data-team="ATK"] .round-banner-agent {
  border-color: var(--team-atk);
  box-shadow: 0 0 18px rgba(255, 83, 97, 0.24);
}

.round-banner-copy {
  display: grid;
  place-items: center;
  gap: 5px;
}

.round-banner.has-player .round-banner-copy {
  justify-self: start;
  place-items: start;
}

.round-banner-copy > strong {
  font-size: 30px;
  line-height: 1;
}

.round-banner-player {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.round-banner-player b {
  color: #f7e7ba;
  font-size: 21px;
}

.round-banner-player small {
  color: #c8bdb9;
  font-size: 14px;
  font-weight: 800;
}

.round-banner-agent[hidden],
.round-banner-player[hidden] {
  display: none;
}

.round-banner.show {
  animation: banner-show 2.2s ease both;
}

@keyframes banner-show {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  15%, 72% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.03); }
}

.active-effects {
  position: absolute;
  z-index: 18;
  left: 32px;
  right: 32px;
  bottom: 26px;
  display: flex;
  min-width: 0;
  align-items: end;
  gap: 7px;
  overflow: hidden;
  pointer-events: none;
}

.effect-chip {
  display: inline-flex;
  min-height: 31px;
  padding: 5px 11px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 3px;
  color: #051015;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.right-rail {
  grid-area: right;
  display: grid;
  overflow: hidden;
  padding: 22px 20px 20px;
  grid-template-rows: 52px minmax(0, 1fr);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 6px;
  border-bottom: 1px solid rgba(227, 191, 105, 0.26);
}

.header-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(227, 191, 105, 0.48);
  transform: rotate(45deg);
}

.standing-list {
  display: grid;
  min-height: 0;
  margin: 0;
  padding: 9px 0 0;
  list-style: none;
  grid-template-rows: repeat(8, minmax(0, 1fr));
  gap: 5px;
}

.standing-list li {
  display: grid;
  min-height: 0;
  padding: 5px 9px 5px 6px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 3px;
  background: rgba(1, 6, 9, 0.78);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.standing-list li.self {
  border-color: rgba(95, 225, 229, 0.58);
  background:
    linear-gradient(90deg, rgba(95, 225, 229, 0.15), transparent 72%),
    rgba(1, 6, 9, 0.84);
}

.standing-list li.podium {
  border-color: rgba(227, 191, 105, 0.31);
}

.rank {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(227, 191, 105, 0.31);
  border-radius: 3px;
  color: #dbd9d0;
  font-size: 17px;
  font-weight: 900;
  background: rgba(227, 191, 105, 0.07);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.rank-1,
.rank-2,
.rank-3 {
  border-color: rgba(255, 231, 164, 0.84);
  color: #231706;
  background: linear-gradient(145deg, #fff1b4 0%, #d6ab4e 54%, #7c4e15 100%);
  box-shadow: 0 0 13px rgba(227, 191, 105, 0.3);
}

.rank-2 {
  filter: saturate(0.78) brightness(0.97);
}

.rank-3 {
  filter: saturate(0.7) brightness(0.9);
}

.standing-list li > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.standing-name {
  overflow: hidden;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.standing-status {
  overflow: hidden;
  color: #f1d58f;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.standing-coins {
  color: var(--gold);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.hand-zone {
  grid-area: hand;
  display: grid;
  width: 1260px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  justify-self: center;
  overflow: visible;
  grid-template-columns: 240px 720px 252px;
  align-items: stretch;
  gap: 24px;
}

.hand-sidebar {
  display: grid;
  min-width: 0;
  padding: 56px 0 17px;
  align-content: center;
  gap: 9px;
}

.hand-coin-meter {
  display: grid;
  min-width: 0;
  min-height: 106px;
  padding: 13px 14px;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(227, 191, 105, 0.34);
  border-radius: 3px;
  background: rgba(1, 6, 9, 0.72);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.hand-coin-meter > div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.hand-coin-meter strong {
  display: block;
  color: var(--gold);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.coin-emblem {
  position: relative;
  display: block;
  width: 46px;
  height: 46px;
  border: 2px solid #ffe59b;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #fff7ca 0 10%, transparent 12%),
    linear-gradient(145deg, #f7dd8a, #b77519 72%);
  box-shadow: 0 0 14px rgba(227, 191, 105, 0.28), inset 0 0 0 5px rgba(84, 46, 7, 0.18);
}

.coin-emblem::after {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(91, 51, 8, 0.48);
  border-radius: 50%;
  content: "";
}

.round-stake-card {
  display: grid;
  min-height: 86px;
  padding: 10px 14px;
  align-content: center;
  gap: 3px;
  border-left: 3px solid rgba(95, 225, 229, 0.6);
  border-radius: 2px;
  background: rgba(1, 6, 9, 0.64);
}

.round-stake-card span,
.round-stake-card em {
  overflow: hidden;
  color: #b5c4c8;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.round-stake-card strong {
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.hand-main {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
}

.hand-header {
  position: absolute;
  z-index: 4;
  left: 8px;
  right: 8px;
  top: -18px;
  display: flex;
  min-width: 0;
  height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hand-title {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 11px;
}

.hand-title .eyebrow {
  order: 2;
}

.hand-header h2 {
  font-size: 23px;
  white-space: nowrap;
}

.deck-count {
  flex: 0 0 auto;
  padding: 6px 11px;
  border: 1px solid rgba(95, 225, 229, 0.3);
  border-radius: 3px;
  color: #b9f4f5;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  background: rgba(3, 12, 16, 0.9);
}

.buy-timer {
  position: absolute;
  z-index: 5;
  left: 8px;
  right: 8px;
  top: 20px;
  display: grid;
  min-width: 0;
  height: 43px;
  padding: 4px 11px 6px;
  border: 1px solid rgba(95, 225, 229, 0.27);
  border-radius: 3px;
  opacity: 0.22;
  background: rgba(2, 10, 14, 0.82);
  transition: opacity 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.buy-timer.show {
  opacity: 1;
}

.buy-timer.urgent {
  border-color: rgba(255, 99, 112, 0.78);
  box-shadow: 0 0 22px rgba(255, 99, 112, 0.2);
  transform: scale(1.02);
}

.buy-timer-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #c8edef;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.buy-timer-meta strong {
  color: #fff;
  font-size: 18px;
}

.buy-timer-track {
  position: relative;
  height: 8px;
  margin-top: 4px;
  overflow: hidden;
  border: 1px solid rgba(95, 225, 229, 0.2);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.48);
}

.buy-timer-track span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), #c1fcfc 65%, var(--gold));
  box-shadow: 0 0 13px rgba(95, 225, 229, 0.5);
  transform-origin: left center;
  transition: transform 950ms linear;
}

.buy-timer.urgent .buy-timer-track span {
  background: linear-gradient(90deg, var(--red), #ffc0c6);
  box-shadow: 0 0 18px rgba(255, 99, 112, 0.56);
}

.hand {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: grid;
  min-width: 0;
  height: 224px;
  padding: 0 12px;
  grid-template-columns: repeat(4, 156px);
  align-items: end;
  justify-content: center;
  gap: 18px;
}

.card {
  --phase-color: var(--cyan);
  position: relative;
  display: grid;
  width: 156px;
  height: 220px;
  min-width: 0;
  padding: 133px 10px 8px;
  align-content: start;
  overflow: visible;
  border: 1px solid rgba(95, 225, 229, 0.48);
  border-top: 4px solid var(--phase-color);
  border-radius: 5px;
  color: var(--ink);
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 25%),
    rgba(3, 9, 13, 0.98);
  box-shadow:
    inset 0 0 24px rgba(95, 225, 229, 0.04),
    0 9px 18px rgba(0, 0, 0, 0.36);
  cursor: pointer;
  transform-origin: center bottom;
  transition: transform 170ms ease, filter 170ms ease, border-color 170ms ease;
}

.card::after {
  position: absolute;
  z-index: 1;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  content: "";
  pointer-events: none;
}

.card.timing-combat {
  --phase-color: var(--red);
}

.card:hover:not(.unavailable),
.card:focus-visible:not(.unavailable) {
  z-index: 20;
  transform: translateY(-9px) scale(1.045);
  filter: brightness(1.1);
}

.card.selected {
  z-index: 21;
  transform: translateY(-9px) scale(1.045);
  border-color: rgba(255, 240, 181, 0.84);
}

.card.unavailable {
  cursor: help;
  filter: grayscale(0.74) brightness(0.58);
}

.card.unavailable:hover,
.card.unavailable:focus-visible {
  border-color: color-mix(in srgb, var(--genre-color, var(--accent)) 58%, rgba(255, 255, 255, 0.18));
  filter: grayscale(0.52) brightness(0.72);
}

.card.spent {
  opacity: 0.58;
}

.card-top {
  position: absolute;
  z-index: 5;
  left: 10px;
  right: 9px;
  top: 9px;
  display: flex;
  height: 36px;
  align-items: center;
  gap: 7px;
  padding-right: 43px;
}

.card-type {
  overflow: hidden;
  color: #d2dfe1;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-target-icon {
  display: grid;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--phase-color) 66%, transparent);
  border-radius: 3px;
  color: var(--phase-color);
  font-size: 14px;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.48);
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

.card-cost {
  position: absolute;
  z-index: 8;
  right: 8px;
  top: 8px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid #ffe7a0;
  border-radius: 4px;
  color: #261a08;
  font-size: 17px;
  font-weight: 1000;
  background: linear-gradient(145deg, #ffeaa8, #bd7d22 75%);
  box-shadow: 0 0 10px rgba(227, 191, 105, 0.32);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.card-art {
  position: absolute;
  z-index: 2;
  left: 10px;
  right: 10px;
  top: 49px;
  height: 76px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--phase-color) 34%, rgba(255, 255, 255, 0.1));
  border-radius: 3px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--phase-color) 17%, transparent), transparent 62%),
    rgba(7, 17, 22, 0.94);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.card-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent, var(--phase-color)) 20%, transparent), transparent 58%);
}

.sigil {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 38px;
  height: 38px;
  border: 2px solid var(--accent, var(--phase-color));
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent, var(--phase-color)) 48%, transparent);
}

.sigil::after {
  position: absolute;
  inset: 8px;
  border: 2px solid currentColor;
  content: "";
}

.card h3 {
  position: relative;
  z-index: 5;
  overflow: hidden;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.08;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card p {
  position: relative;
  z-index: 5;
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  color: #c5d1d3;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-bet-strip {
  position: absolute;
  z-index: 9;
  left: 0;
  right: 0;
  top: -29px;
  height: 25px;
  padding: 4px 7px;
  overflow: hidden;
  border: 1px solid rgba(227, 191, 105, 0.4);
  border-radius: 3px;
  color: #f7df9b;
  font-size: 14px;
  font-weight: 900;
  line-height: 15px;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: rgba(7, 9, 8, 0.96);
}

.card.wagering .card-bet-strip {
  border-color: rgba(124, 227, 166, 0.64);
  color: #d9ffe8;
  background: rgba(6, 28, 17, 0.97);
}

.card-used-label {
  position: absolute;
  z-index: 12;
  left: 50%;
  top: 108px;
  min-width: 112px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 3px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.84);
  transform: translate(-50%, -50%);
}

.card-reset {
  position: absolute;
  z-index: 14;
  right: 7px;
  bottom: 7px;
  min-height: 28px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 99, 112, 0.5);
  border-radius: 3px;
  color: #ffc6cc;
  font-size: 14px;
  font-weight: 900;
  background: rgba(35, 3, 7, 0.9);
}

.hand.suppress-hover .card:hover,
.hand.suppress-hover .card:focus-visible,
body.card-hover-locked .card:hover,
body.card-hover-locked .card:focus-visible {
  transform: none;
  filter: none;
}

.round-bet-panel {
  display: grid;
  min-width: 0;
  padding: 58px 3px 20px;
  align-content: center;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.team-bet-button {
  --team-color: var(--cyan);
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  padding: 12px 14px 11px;
  align-content: center;
  gap: 5px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--team-color) 52%, transparent);
  border-left: 4px solid var(--team-color);
  border-radius: 3px;
  color: #fff;
  text-align: left;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--team-color) 14%, transparent), transparent 65%),
    rgba(2, 8, 12, 0.88);
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.team-bet-button.atk {
  --team-color: var(--red);
}

.team-bet-button.def {
  --team-color: var(--cyan);
}

.team-bet-button span {
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.team-bet-button strong {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.team-bet-button em {
  min-width: 0;
  overflow: hidden;
  color: #c1ced1;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.team-bet-button:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--team-color) 84%, white);
  filter: brightness(1.12);
}

.team-bet-button:disabled {
  cursor: default;
  filter: grayscale(0.7) brightness(0.62);
}

.team-bet-button.active {
  box-shadow: 0 0 20px color-mix(in srgb, var(--team-color) 26%, transparent);
}

.card-tooltip {
  position: fixed;
  z-index: 100;
  display: grid;
  width: 420px;
  padding: 17px 19px;
  gap: 9px;
  border: 1px solid rgba(95, 225, 229, 0.42);
  border-top: 3px solid var(--accent, var(--cyan));
  border-radius: 3px;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  background: rgba(2, 8, 12, 0.98);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.52);
  pointer-events: none;
  transition: opacity 120ms ease;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.card-tooltip.show {
  opacity: 1;
  visibility: visible;
}

.tooltip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tooltip-name {
  font-size: 24px;
  font-weight: 900;
}

.tooltip-cost {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 4px;
  color: #271a07;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(145deg, #ffeaa8, #bf8124 75%);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.tooltip-type {
  color: #b6c8cc;
  font-size: 14px;
  font-weight: 800;
}

.tooltip-text {
  margin: 0;
  color: #e4edef;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.card-burst {
  position: absolute;
  z-index: 110;
  left: var(--valorant-center-x);
  top: var(--valorant-center-y);
  display: grid;
  min-width: 440px;
  padding: 21px 31px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 3px solid var(--cyan);
  border-radius: 3px;
  color: #fff;
  opacity: 0;
  background: rgba(2, 8, 12, 0.96);
  transform: translate(-50%, -50%) scale(0.92);
  pointer-events: none;
  clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
}

.card-burst.show {
  animation: burst-show 2.1s ease both;
}

.card-burst.has-player {
  min-width: 500px;
}

.card-burst-player {
  display: flex;
  width: 100%;
  margin-bottom: 8px;
  padding: 7px 12px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--team-def) 58%, transparent);
  background: rgba(43, 200, 186, 0.08);
}

.card-burst[data-team="ATK"] .card-burst-player {
  border-color: color-mix(in srgb, var(--team-atk) 62%, transparent);
  background: rgba(255, 83, 97, 0.08);
}

.card-burst-player[hidden] {
  display: none;
}

.card-burst-player img {
  width: 58px;
  height: 58px;
  border: 2px solid var(--team-def);
  object-fit: cover;
  background: #080607;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.card-burst[data-team="ATK"] .card-burst-player img {
  border-color: var(--team-atk);
}

.card-burst-player > span {
  display: grid;
  min-width: 150px;
  text-align: left;
}

.card-burst-player > span > strong {
  margin: 0;
  color: #fff;
  font-size: 23px;
  line-height: 1.1;
}

.card-burst-player small {
  margin-top: 3px;
  color: #c8bdb9;
  font-size: 14px;
  font-weight: 800;
}

.card-burst span {
  color: #a9e9ec;
  font-size: 15px;
  font-weight: 900;
}

.card-burst strong {
  margin: 5px 0;
  font-size: 36px;
  font-weight: 900;
}

.card-burst em {
  color: var(--gold);
  font-size: 22px;
  font-style: normal;
  font-weight: 900;
}

@keyframes burst-show {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  15%, 74% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.04); }
}

.card-library-view,
.target-picker-view {
  position: absolute;
  z-index: 140;
  display: none;
  inset: 120px 72px 42px;
  padding: 20px;
  background: rgba(1, 5, 8, 0.93);
  backdrop-filter: blur(10px);
}

.card-library-view[aria-hidden="false"],
.target-picker-view[aria-hidden="false"] {
  display: block;
}

.library-panel,
.target-panel {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 21px;
  border: 1px solid rgba(95, 225, 229, 0.38);
  border-radius: 3px;
  background: #061017;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.library-header,
.target-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.library-header h2,
.target-header h2 {
  margin-top: 5px;
  font-size: 31px;
}

.card-library-grid {
  display: grid;
  min-height: 0;
  padding-right: 8px;
  overflow-y: auto;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
}

.library-card {
  display: grid;
  min-height: 320px;
  padding: 14px;
  align-content: start;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  border-top: 4px solid var(--accent);
  border-radius: 4px;
  background: rgba(2, 9, 13, 0.9);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.library-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.library-card-type,
.library-card-timing,
.library-card-odds {
  color: #b5c6ca;
  font-size: 14px;
  font-weight: 800;
}

.library-card-cost {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 4px;
  color: #251705;
  font-size: 16px;
  font-weight: 900;
  background: var(--gold);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.library-card h3 {
  font-size: 21px;
}

.library-card p {
  margin: 0;
  color: #d0dbdd;
  font-size: 15px;
  line-height: 1.45;
}

.target-picker-view {
  inset: 148px 170px 300px;
}

.target-list {
  display: grid;
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.target-team {
  min-width: 0;
  min-height: 0;
}

.target-team-list {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.target-player {
  --team-color: var(--cyan);
  display: grid;
  min-width: 0;
  min-height: 0;
  padding: 7px 12px;
  grid-template-columns: 44px 54px minmax(0, 1fr) 110px;
  align-items: center;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--team-color) 42%, transparent);
  border-left: 4px solid var(--team-color);
  border-radius: 3px;
  color: #fff;
  text-align: left;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--team-color) 12%, transparent), transparent 52%),
    rgba(2, 9, 13, 0.93);
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.target-player.atk {
  --team-color: var(--red);
}

.target-rank,
.target-agent-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--team-color) 55%, transparent);
  border-radius: 3px;
  font-size: 17px;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.4);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.target-agent-icon {
  width: 50px;
  height: 46px;
  font-size: 22px;
}

.target-main {
  min-width: 0;
}

.target-main strong {
  display: block;
  overflow: hidden;
  font-size: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.target-kda {
  font-size: 19px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.target-player:hover {
  border-color: var(--team-color);
  filter: brightness(1.12);
}

.target-player.dead {
  opacity: 0.56;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* Pixel-locked 1920x1080 overlay layout. */
.arena-shell {
  display: block;
  padding: 0;
  background:
    url("./assets/live-match-screen.png") center / 1920px 1080px no-repeat,
    #000;
}

.arena-shell::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  pointer-events: none;
  background: url("./assets/ui-overlay-v4.png") 0 0 / 1920px 1080px no-repeat;
}

.arena-shell > .panel,
.arena-shell > .card-library-view,
.arena-shell > .target-picker-view {
  z-index: 4;
}

.top-hud {
  position: absolute;
  left: 18px;
  top: 14px;
  width: 1884px;
  height: 98px;
  padding: 13px 28px;
  grid-template-columns: 330px 168px 202px minmax(0, 1fr);
  gap: 14px;
}

.hud-actions {
  gap: 7px;
}

.sound-pattern-control {
  width: 144px;
  height: 46px;
}

.action-button,
.icon-button {
  min-height: 42px;
  padding: 0 13px;
}

.match-view {
  position: absolute;
  z-index: 3 !important;
  inset: 0;
  width: 1920px;
  height: 1080px;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}

.tactical-map {
  position: absolute;
  inset: 0;
  width: 1920px;
  height: 1080px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.tactical-map::after {
  display: none;
}

.match-chrome {
  left: 26px;
  right: 26px;
  top: 126px;
}

.match-chrome > div:first-child {
  min-width: 300px;
  padding: 9px 13px 10px;
}

.round-clock {
  top: -5px;
  width: 210px;
  min-height: 80px;
}

.player-icon-band {
  top: 21%;
  width: 76px;
  height: 56%;
}

.player-icon-band.atk-band {
  left: 135px;
}

.player-icon-band.def-band {
  right: 308px;
}

.player-marker.def {
  margin-left: -216px;
}

.player-marker.def.dead {
  transform: scale(0.82);
}

.killfeed {
  top: 128px;
  right: 322px;
  width: 430px;
}

.kill-row {
  --kill-color: rgba(184, 54, 66, 0.92);
  min-height: 42px;
  overflow: hidden;
  border-left: 4px solid color-mix(in srgb, var(--kill-color) 72%, white);
  border-right: 2px solid color-mix(in srgb, var(--kill-color) 72%, white);
  border-radius: 2px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--kill-color) 92%, black), var(--kill-color));
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.kill-row.def {
  --kill-color: rgba(43, 126, 134, 0.94);
}

.kill-row > span,
.kill-row > span:first-child,
.kill-row > span:last-child,
.kill-row .weapon {
  color: #fff;
  background: transparent;
  clip-path: none;
}

.kill-row .weapon {
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.active-effects {
  left: 300px;
  right: 330px;
  bottom: 378px;
}

.right-rail {
  position: absolute;
  left: 1614px;
  top: 146px;
  width: 288px;
  height: 514px;
  padding: 17px 13px 15px;
  grid-template-rows: 44px minmax(0, 1fr);
}

.section-header {
  gap: 8px;
  padding: 0 5px 5px;
}

.right-rail h2 {
  font-size: 21px;
}

.standing-list {
  padding-top: 7px;
  gap: 4px;
}

.standing-list li {
  padding: 4px 6px 4px 5px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 6px;
}

.rank {
  width: 35px;
  height: 35px;
  font-size: 16px;
}

.standing-name {
  font-size: 16px;
}

.standing-status {
  font-size: 14px;
}

.standing-coins {
  font-size: 14px;
}

.hand-zone {
  position: absolute;
  left: 292px;
  top: 700px;
  display: block;
  width: 1316px;
  height: 360px;
  padding: 0;
}

.hand-sidebar {
  position: absolute;
  left: 24px;
  top: 106px;
  display: grid;
  width: 222px;
  height: 230px;
  padding: 13px 12px;
  grid-template-rows: 105px minmax(0, 1fr);
  gap: 5px;
}

.hand-coin-meter {
  min-height: 0;
  height: 105px;
  padding: 10px 8px;
  grid-template-columns: 46px minmax(0, 1fr);
  border: 0;
  background: transparent;
}

.hand-coin-meter strong {
  font-size: 31px;
}

.round-stake-card {
  min-height: 0;
  height: 88px;
  padding: 7px 8px;
  border-left-width: 2px;
  background: rgba(1, 6, 9, 0.35);
}

.round-stake-card strong {
  font-size: 25px;
}

.hand-main {
  position: absolute;
  left: 262px;
  top: 64px;
  width: 740px;
  height: 276px;
}

.hand-header {
  left: 6px;
  right: 6px;
  top: -88px;
  height: 34px;
}

.buy-timer {
  left: 6px;
  right: 6px;
  top: -54px;
  height: 50px;
  padding: 6px 12px 7px;
}

.buy-timer-meta {
  font-size: 15px;
}

.buy-timer-meta strong {
  font-size: 20px;
}

.buy-timer-track {
  height: 9px;
  margin-top: 5px;
}

.hand {
  left: 21px;
  right: auto;
  bottom: 5px;
  width: 678px;
  height: 220px;
  padding: 0;
  grid-template-columns: repeat(4, 156px);
  justify-content: start;
  gap: 18px;
}

.card {
  width: 156px;
  height: 220px;
}

.card-bet-strip {
  top: -28px;
  height: 26px;
  font-size: 14px;
}

.round-bet-panel {
  position: absolute;
  left: 1028px;
  top: 106px;
  width: 258px;
  height: 230px;
  padding: 14px 13px;
  gap: 8px;
}

.team-bet-button {
  padding: 9px 11px;
}

.team-bet-button span {
  font-size: 17px;
}

.team-bet-button strong {
  font-size: 21px;
}

.target-picker-view {
  position: absolute;
  z-index: 140 !important;
  display: none;
  inset: 0;
  padding: 0;
  place-items: center;
  background: rgba(1, 5, 8, 0.64);
}

.target-picker-view[aria-hidden="false"] {
  display: grid;
}

.target-panel {
  width: 900px;
  height: 446px;
  padding: 14px;
  grid-template-rows: 60px minmax(0, 1fr);
  gap: 6px;
}

.target-header h2 {
  margin-top: 3px;
  font-size: 25px;
}

.target-list {
  gap: 10px;
}

.target-team-list {
  gap: 5px;
}

.target-player {
  padding: 5px 8px;
  grid-template-columns: 34px 44px minmax(0, 1fr) 84px;
  gap: 7px;
}

.target-rank {
  width: 32px;
  height: 32px;
  font-size: 15px;
}

.target-agent-icon {
  width: 42px;
  height: 40px;
  font-size: 19px;
}

.target-main strong {
  font-size: 18px;
}

.target-kda {
  font-size: 17px;
}

.card-library-view {
  z-index: 140 !important;
}

/* V5: keep every permanent module outside the 16:9 gameplay frame. */
.arena-shell {
  background: #020407;
}

.arena-shell::before {
  z-index: 0;
  background:
    url("./assets/live-match-screen.png") 18px 118px / 1280px 720px no-repeat;
}

.arena-shell::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: url("./assets/ui-overlay-v5.png") 0 0 / 1920px 1080px no-repeat;
}

.top-hud {
  left: 18px;
  top: 14px;
  width: 1884px;
  height: 96px;
  padding: 12px 28px;
}

.hud-actions {
  padding-left: 300px;
}

.match-view {
  left: 18px;
  top: 118px;
  right: auto;
  bottom: auto;
  width: 1280px;
  height: 720px;
  overflow: visible;
}

.tactical-map {
  width: 1280px;
  height: 720px;
  overflow: hidden;
}

.match-chrome {
  left: 0;
  right: 0;
  top: -104px;
}

.match-chrome > div:first-child {
  display: none;
}

.round-clock {
  left: 950px;
  top: 10px;
  width: 202px;
  min-height: 76px;
}

.player-icon-band {
  top: 17%;
  height: 47%;
}

.player-icon-band.atk-band {
  left: calc(9% - 38px);
}

.player-icon-band.def-band {
  right: calc(9% - 38px);
}

.player-marker.def {
  margin-left: -22px;
}

.killfeed {
  top: 18px;
  right: 18px;
  width: 410px;
}

.active-effects {
  display: none;
}

.right-rail {
  left: 1314px;
  top: 118px;
  width: 288px;
  height: 514px;
}

.hand-zone {
  left: 292px;
  top: 842px;
  width: 1316px;
  height: 226px;
}

.hand-sidebar {
  left: 24px;
  top: 8px;
  width: 222px;
  height: 210px;
  padding: 9px 10px;
  grid-template-rows: 96px minmax(0, 1fr);
  gap: 4px;
}

.hand-coin-meter {
  height: 96px;
  padding: 7px 7px;
}

.hand-coin-meter strong {
  font-size: 29px;
}

.round-stake-card {
  height: 88px;
  padding: 6px 7px;
}

.round-stake-card strong {
  font-size: 24px;
}

.hand-main {
  left: 262px;
  top: 0;
  width: 740px;
  height: 220px;
}

.hand-header {
  left: auto;
  right: 8px;
  top: 2px;
  display: block;
  width: auto;
  height: 30px;
}

.hand-title {
  display: none;
}

.buy-timer {
  left: 6px;
  right: 6px;
  top: -52px;
  height: 50px;
}

.hand {
  left: 30px;
  top: 4px;
  bottom: auto;
  width: 675px;
  height: 212px;
  grid-template-columns: repeat(4, 150px);
  gap: 25px;
}

.card {
  width: 150px;
  height: 212px;
  padding: 129px 9px 7px;
}

.card-top {
  left: 9px;
  right: 8px;
  top: 28px;
}

.card-cost {
  right: 7px;
  top: 28px;
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.card-art {
  left: 9px;
  right: 9px;
  top: 66px;
  height: 53px;
}

.card-bet-strip {
  top: -4px;
}

.card h3 {
  font-size: 18px;
}

.card p {
  margin-top: 5px;
  line-height: 1.25;
}

.round-bet-panel {
  left: 1028px;
  top: 8px;
  width: 258px;
  height: 210px;
  padding: 11px 12px;
  gap: 7px;
}

/* V6: modular, independently positioned frame assets. */
:root {
  --cyan: #739a9a;
  --red: #aa747a;
  --gold: #b9a77c;
  --green: #79a58b;
  --line: rgba(151, 161, 174, 0.25);
  --frame-silver: #96a0ac;
  --frame-violet: #76758f;
}

.arena-shell {
  background:
    radial-gradient(circle at 50% 47%, rgba(74, 78, 96, 0.09), transparent 44%),
    #030508;
}

.arena-shell::before {
  background:
    url("./assets/live-match-screen.png") 164px 118px / 1280px 720px no-repeat;
}

.arena-shell::after {
  display: none;
}

.top-hud,
.match-view,
.right-rail,
.deck-panel,
.hand-sidebar,
.hand-main,
.round-bet-panel,
.target-panel {
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(17, 21, 29, 0.94), rgba(5, 8, 13, 0.96));
}

.top-hud::before,
.match-view::before,
.right-rail::before,
.deck-panel::before,
.hand-sidebar::before,
.hand-main::before,
.round-bet-panel::before,
.target-panel::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  border: 13px solid transparent;
  content: "";
  pointer-events: none;
  border-image: url("./assets/ui-panel-frame-vivid.png") 118 stretch;
}

.top-hud > *,
.right-rail > *,
.deck-panel > *,
.hand-sidebar > *,
.hand-main > *,
.round-bet-panel > *,
.target-panel > * {
  z-index: 1;
}

.top-hud {
  left: 164px;
  top: 14px;
  width: 1584px;
  height: 96px;
  padding: 12px 24px;
  grid-template-columns: 286px 150px 170px 190px minmax(0, 1fr);
  gap: 12px;
}

.top-hud .round-clock {
  position: relative;
  left: auto;
  top: auto;
  width: 190px;
  min-height: 70px;
  transform: none;
}

.top-hud .meter {
  border-left: 1px solid rgba(151, 161, 174, 0.36);
  background: linear-gradient(90deg, rgba(118, 117, 143, 0.1), transparent);
}

.top-hud .meter strong,
.sound-pattern-control select {
  color: #d8dce3;
}

.score-plate,
.sound-pattern-control,
.action-button,
.icon-button {
  border-color: rgba(151, 161, 174, 0.28);
  background: rgba(7, 10, 16, 0.88);
}

.action-button:hover,
.icon-button:hover {
  border-color: rgba(150, 160, 178, 0.68);
  background: rgba(28, 31, 43, 0.94);
}

.hud-actions {
  padding-left: 0;
  gap: 6px;
}

.match-view {
  left: 164px;
  top: 118px;
  width: 1280px;
  height: 720px;
  background: transparent;
}

.match-view::before {
  z-index: 31;
  border-width: 12px;
}

.tactical-map {
  width: 1280px;
  height: 720px;
}

.match-chrome {
  top: -104px;
}

.player-icon-band {
  top: 18.5%;
  width: 64px;
  height: 44%;
  border-color: rgba(151, 161, 174, 0.28);
  background: rgba(1, 3, 6, 0.34);
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.26);
}

.player-icon-band.atk-band {
  left: calc(9% - 32px);
  border-left-color: rgba(170, 116, 122, 0.68);
}

.player-icon-band.def-band {
  right: calc(9% - 32px);
  border-right-color: rgba(115, 154, 154, 0.68);
}

.right-rail {
  left: 1460px;
  top: 118px;
  width: 288px;
  height: 514px;
  padding: 20px 18px 17px;
}

.section-header .header-dot {
  background: var(--frame-violet);
  box-shadow: 0 0 8px rgba(118, 117, 143, 0.34);
}

.standing-list li {
  border-color: rgba(151, 161, 174, 0.18);
  background: rgba(6, 9, 14, 0.78);
}

.standing-list li.self {
  border-color: rgba(137, 141, 166, 0.55);
  background:
    linear-gradient(90deg, rgba(118, 117, 143, 0.15), transparent 72%),
    rgba(6, 9, 14, 0.86);
}

.standing-list li.podium {
  border-color: rgba(151, 161, 174, 0.25);
}

.rank-1 {
  border-color: rgba(208, 189, 132, 0.72);
  color: #1e1a11;
  background: linear-gradient(145deg, #d9c993, #9c8351 72%);
}

.rank-2 {
  border-color: rgba(193, 202, 212, 0.7);
  color: #15191d;
  background: linear-gradient(145deg, #dce2e7, #828c96 72%);
  filter: none;
}

.rank-3 {
  border-color: rgba(177, 137, 115, 0.68);
  color: #211713;
  background: linear-gradient(145deg, #c69d88, #765545 72%);
  filter: none;
}

.hand-zone {
  left: 164px;
  top: 842px;
  width: 1584px;
  height: 226px;
  background: transparent;
}

.hand-sidebar {
  left: 0;
  top: 0;
  width: 246px;
  height: 226px;
  padding: 14px 16px;
  grid-template-rows: 96px 88px;
  gap: 8px;
}

.hand-coin-meter {
  position: relative;
  height: 96px;
  padding: 7px 8px;
  grid-template-columns: 46px minmax(0, 1fr);
  border: 0;
}

.hand-coin-meter strong {
  color: #d2c69d;
  font-size: 29px;
}

.hand-coin-meter .deck-count {
  position: absolute;
  right: 8px;
  bottom: 7px;
  padding: 4px 7px;
  border: 1px solid rgba(151, 161, 174, 0.24);
  color: #c9ced7;
  background: rgba(8, 11, 17, 0.82);
}

.round-stake-card {
  height: 88px;
  padding: 7px 9px;
  border-left: 0;
  border-top: 1px solid rgba(151, 161, 174, 0.22);
  background: rgba(4, 7, 11, 0.3);
}

.round-stake-card strong {
  font-size: 24px;
}

.hand-main {
  left: 266px;
  top: 0;
  width: 740px;
  height: 226px;
  background: rgba(6, 9, 14, 0.82);
}

.buy-timer {
  left: 10px;
  right: 10px;
  top: -52px;
  height: 50px;
  border-color: rgba(151, 161, 174, 0.38);
  border-top-color: var(--frame-violet);
  background: rgba(7, 10, 16, 0.94);
}

.buy-timer-track {
  border-color: rgba(151, 161, 174, 0.22);
}

.buy-timer-track span {
  background: linear-gradient(90deg, #727891, #a7a9b8 70%, #859e9d);
  box-shadow: 0 0 12px rgba(118, 117, 143, 0.38);
}

.hand {
  left: 30px;
  top: 4px;
  width: 675px;
  height: 212px;
}

.card {
  --phase-color: #858ca1;
  height: 212px;
  padding: 120px 9px 6px;
  border-color: rgba(137, 144, 163, 0.48);
  border-top-color: var(--phase-color);
  background:
    linear-gradient(180deg, rgba(126, 128, 153, 0.08), transparent 28%),
    rgba(7, 10, 16, 0.98);
}

.card.timing-combat {
  --phase-color: #9f777d;
}

.card-top {
  top: 27px;
}

.card-cost {
  top: 27px;
  border-color: #a7abb7;
  color: #11151a;
  background: linear-gradient(145deg, #d8dbe2, #737b89 75%);
  box-shadow: 0 0 8px rgba(139, 145, 162, 0.24);
}

.card-art {
  top: 65px;
  height: 48px;
  border-color: rgba(137, 144, 163, 0.3);
  background:
    linear-gradient(145deg, rgba(118, 117, 143, 0.14), transparent 62%),
    rgba(11, 15, 22, 0.94);
}

.card-art::after {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent),
    radial-gradient(circle at 50% 50%, rgba(118, 117, 143, 0.2), transparent 58%);
}

.sigil {
  border-color: var(--phase-color);
  box-shadow: 0 0 12px color-mix(in srgb, var(--phase-color) 40%, transparent);
}

.card p {
  display: block;
  height: 54px;
  margin-top: 4px;
  overflow: hidden;
  line-height: 17px;
  -webkit-line-clamp: unset;
}

.card-bet-strip {
  border-color: rgba(151, 161, 174, 0.34);
  color: #d6d9e0;
  background: rgba(8, 11, 17, 0.96);
}

.card.selected {
  border-color: rgba(145, 143, 174, 0.82);
  box-shadow:
    inset 0 0 18px rgba(118, 117, 143, 0.09),
    0 0 12px rgba(118, 117, 143, 0.18);
}

.card.wagering .card-bet-strip {
  border-color: rgba(145, 143, 174, 0.68);
  color: #e0deec;
  background: rgba(20, 19, 31, 0.97);
}

.round-bet-panel {
  left: 1026px;
  top: 0;
  width: 558px;
  height: 226px;
  padding: 20px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
  background: rgba(6, 9, 14, 0.86);
}

.team-bet-button {
  --team-color: #858a98;
  padding: 14px 16px;
  border: 1px solid rgba(151, 161, 174, 0.22);
  border-left: 3px solid var(--team-color);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--team-color) 8%, transparent), transparent 56%),
    rgba(8, 11, 17, 0.9);
}

.team-bet-button.atk {
  --team-color: #a8787e;
}

.team-bet-button.def {
  --team-color: #769493;
}

.team-bet-button.active {
  border-color: color-mix(in srgb, var(--team-color) 52%, rgba(151, 161, 174, 0.22));
  box-shadow: inset 0 0 20px color-mix(in srgb, var(--team-color) 9%, transparent);
}

.target-picker-view {
  z-index: 140 !important;
  inset: 0;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.target-picker-view[aria-hidden="false"] {
  display: block;
}

.target-panel {
  position: absolute;
  left: var(--valorant-center-x);
  top: var(--valorant-center-y);
  width: 840px;
  height: 410px;
  padding: 16px 18px 18px;
  grid-template-rows: 58px minmax(0, 1fr);
  gap: 8px;
  background: rgba(6, 9, 15, 0.97);
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.target-list {
  gap: 10px;
}

.target-team-list {
  gap: 5px;
}

.target-player {
  padding: 6px 10px;
  grid-template-columns: 46px minmax(0, 1fr) 94px;
  gap: 9px;
  border-color: rgba(151, 161, 174, 0.22);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--team-color) 8%, transparent), transparent 52%),
    rgba(8, 11, 17, 0.94);
}

.target-agent-icon {
  width: 42px;
  height: 40px;
  border-color: color-mix(in srgb, var(--team-color) 42%, rgba(151, 161, 174, 0.22));
}

.target-player:focus,
.target-player:focus-visible {
  outline: 1px solid color-mix(in srgb, var(--team-color) 68%, #a5a8b5);
  outline-offset: 1px;
}

.target-open .card:not(.selected) {
  opacity: 0.34;
  filter: grayscale(0.55) brightness(0.55);
  pointer-events: none;
}

.target-open .card.selected {
  z-index: 160;
  opacity: 1;
  filter: none;
  pointer-events: auto;
}

/* V7: richer contrast informed by LoL, Shadowverse, and Arad Senki UI research. */
:root {
  --bg: #02040a;
  --panel: rgba(6, 11, 22, 0.94);
  --panel-strong: rgba(3, 7, 15, 0.98);
  --ink: #f8fbff;
  --muted: #b8c7da;
  --cyan: #25d2c5;
  --red: #de6f91;
  --gold: #d1aa5c;
  --green: #49c892;
  --line: rgba(111, 156, 202, 0.32);
  --frame-silver: #c3d2e2;
  --frame-violet: #8262ed;
}

.arena-shell {
  background: #02040a;
}

.top-hud,
.right-rail,
.deck-panel,
.hand-sidebar,
.hand-main,
.round-bet-panel,
.target-panel {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(17, 28, 49, 0.98), rgba(5, 10, 22, 0.98) 58%, rgba(2, 5, 12, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(198, 222, 246, 0.08),
    inset 0 0 24px rgba(34, 83, 129, 0.1);
}

.top-hud .meter {
  border-left-color: rgba(37, 210, 197, 0.58);
  background: linear-gradient(90deg, rgba(37, 210, 197, 0.12), transparent);
}

.top-hud .meter strong {
  color: #f1d48d;
  text-shadow: 0 0 10px rgba(209, 170, 92, 0.32);
}

.brand-kicker,
.eyebrow,
.meter-label {
  color: #aebfd4;
}

.score-plate,
.sound-pattern-control,
.action-button,
.icon-button {
  border-color: rgba(82, 133, 184, 0.46);
  color: #f4f9ff;
  background:
    linear-gradient(180deg, rgba(25, 40, 67, 0.94), rgba(5, 10, 21, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(207, 229, 250, 0.1),
    0 3px 8px rgba(0, 0, 0, 0.22);
}

.action-button:hover,
.icon-button:hover {
  border-color: rgba(37, 210, 197, 0.82);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(32, 64, 94, 0.98), rgba(7, 18, 32, 0.98));
  box-shadow: 0 0 12px rgba(37, 210, 197, 0.18);
}

#soundButton[aria-pressed="true"] {
  border-color: rgba(37, 210, 197, 0.82);
  color: #dffffc;
  box-shadow:
    inset 0 0 12px rgba(37, 210, 197, 0.1),
    0 0 10px rgba(37, 210, 197, 0.18);
}

.sound-pattern-control select {
  color: #d7c8ff;
}

.top-hud .round-clock {
  border-color: rgba(37, 210, 197, 0.72);
  border-top-color: #25d2c5;
  background:
    linear-gradient(180deg, rgba(19, 37, 62, 0.98), rgba(4, 10, 21, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(201, 234, 247, 0.12),
    0 0 14px rgba(37, 210, 197, 0.16);
}

.top-hud .round-clock strong {
  color: #fff;
  text-shadow: 0 0 10px rgba(37, 210, 197, 0.22);
}

.top-hud .round-clock.urgent {
  border-color: rgba(222, 111, 145, 0.86);
  border-top-color: #de6f91;
  box-shadow: 0 0 16px rgba(222, 111, 145, 0.24);
}

.player-icon-band {
  border-color: rgba(126, 151, 183, 0.42);
  background:
    linear-gradient(180deg, rgba(7, 13, 25, 0.72), rgba(2, 5, 11, 0.56));
  box-shadow:
    inset 0 0 16px rgba(10, 31, 53, 0.58),
    0 0 8px rgba(0, 0, 0, 0.28);
}

.player-icon-band.atk-band {
  border-left-color: rgba(222, 111, 145, 0.86);
}

.player-icon-band.def-band {
  border-right-color: rgba(37, 210, 197, 0.86);
}

.section-header {
  border-bottom: 1px solid rgba(37, 210, 197, 0.22);
}

.section-header .header-dot {
  background: #8262ed;
  box-shadow: 0 0 10px rgba(130, 98, 237, 0.62);
}

.standing-list li {
  border-color: rgba(83, 119, 158, 0.34);
  color: #f8fbff;
  background:
    linear-gradient(90deg, rgba(32, 58, 91, 0.34), rgba(4, 9, 19, 0.92) 48%);
  box-shadow: inset 0 1px 0 rgba(198, 221, 245, 0.04);
}

.standing-list li.self {
  border-color: rgba(37, 210, 197, 0.74);
  background:
    linear-gradient(90deg, rgba(37, 210, 197, 0.22), rgba(9, 20, 36, 0.94) 66%);
  box-shadow: inset 3px 0 0 #25d2c5;
}

.standing-name {
  color: #fff;
}

.standing-coins {
  color: #f1d48d;
}

.deck-panel {
  position: absolute;
  z-index: 4;
  left: 1460px;
  top: 650px;
  display: grid;
  width: 288px;
  height: 176px;
  padding: 22px 24px;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.deck-stack {
  position: relative;
  width: 100px;
  height: 126px;
}

.deck-stack span {
  position: absolute;
  left: 12px;
  top: 7px;
  width: 76px;
  height: 108px;
  border: 2px solid rgba(115, 86, 214, 0.86);
  background:
    linear-gradient(145deg, rgba(37, 210, 197, 0.28), transparent 46%),
    repeating-linear-gradient(135deg, rgba(130, 98, 237, 0.16) 0 8px, rgba(7, 14, 29, 0.94) 8px 16px),
    #081426;
  box-shadow:
    inset 0 0 0 4px rgba(3, 8, 18, 0.82),
    inset 0 0 18px rgba(37, 210, 197, 0.12),
    0 5px 12px rgba(0, 0, 0, 0.38);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.deck-stack span:nth-child(1) {
  transform: translate(-7px, 7px) rotate(-4deg);
  opacity: 0.64;
}

.deck-stack span:nth-child(2) {
  transform: translate(-3px, 3px) rotate(-2deg);
  opacity: 0.82;
}

.deck-stack span:nth-child(3) {
  border-color: rgba(37, 210, 197, 0.86);
}

.deck-copy {
  display: grid;
  align-content: center;
  justify-items: start;
}

.deck-copy span,
.deck-copy em {
  color: #aebfd4;
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
}

.deck-copy strong {
  color: #fff;
  font-size: 50px;
  font-weight: 1000;
  line-height: 0.94;
  text-shadow: 0 0 14px rgba(130, 98, 237, 0.34);
}

.hand-coin-meter strong {
  color: #f0cf7e;
  text-shadow: 0 0 10px rgba(209, 170, 92, 0.28);
}

.round-stake-card {
  border-top-color: rgba(37, 210, 197, 0.4);
  background:
    linear-gradient(90deg, rgba(37, 210, 197, 0.08), transparent),
    rgba(3, 8, 18, 0.5);
}

.round-stake-card strong {
  color: #fff;
}

.buy-timer {
  display: none;
  opacity: 0;
  visibility: hidden;
  border-color: rgba(37, 210, 197, 0.68);
  border-top-color: #8262ed;
  background:
    linear-gradient(180deg, rgba(17, 31, 55, 0.98), rgba(3, 8, 18, 0.99));
  box-shadow: 0 0 16px rgba(37, 210, 197, 0.18);
}

.buy-timer.show {
  display: block;
  opacity: 1;
  visibility: visible;
}

.buy-timer:not(.show),
.buy-timer[aria-hidden="true"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  background: transparent !important;
  box-shadow: none !important;
}

.buy-timer-track span {
  background: linear-gradient(90deg, #25d2c5 0%, #5c8ef1 52%, #8262ed 100%);
  box-shadow: 0 0 14px rgba(72, 178, 222, 0.46);
}

.card {
  --phase-color: #25d2c5;
  border-color: rgba(78, 126, 174, 0.54);
  border-top-color: var(--phase-color);
  color: #f9fbff;
  background:
    linear-gradient(180deg, rgba(30, 65, 101, 0.42), rgba(9, 16, 31, 0.98) 28%, rgba(3, 7, 15, 0.99)),
    #050a14;
  box-shadow:
    inset 0 1px 0 rgba(200, 227, 251, 0.1),
    inset 0 0 20px rgba(37, 210, 197, 0.06),
    0 8px 16px rgba(0, 0, 0, 0.42);
}

.card.timing-combat {
  --phase-color: #de6f91;
}

.card-type {
  color: #d7e4f2;
}

.card-target-icon {
  color: var(--phase-color);
  background: rgba(4, 9, 20, 0.86);
  box-shadow: inset 0 0 8px color-mix(in srgb, var(--phase-color) 12%, transparent);
}

.card-cost {
  border-color: rgba(157, 128, 255, 0.86);
  color: #fff;
  background:
    linear-gradient(145deg, #8e75f4, #3e4e93 62%, #17213e);
  box-shadow:
    inset 0 1px 0 rgba(240, 235, 255, 0.3),
    0 0 10px rgba(130, 98, 237, 0.34);
}

.card-art {
  border-color: color-mix(in srgb, var(--phase-color) 56%, rgba(93, 112, 151, 0.44));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--phase-color) 24%, transparent), transparent 58%),
    linear-gradient(180deg, rgba(32, 54, 93, 0.92), rgba(6, 12, 25, 0.98));
}

.card h3 {
  color: #fff;
}

.card p {
  color: #cedbec;
}

.card-bet-strip {
  border-color: rgba(130, 98, 237, 0.66);
  color: #f1edff;
  background:
    linear-gradient(90deg, rgba(130, 98, 237, 0.24), rgba(5, 11, 23, 0.98));
}

.card.selected {
  border-color: rgba(37, 210, 197, 0.94);
  box-shadow:
    inset 0 0 20px rgba(37, 210, 197, 0.1),
    0 0 14px rgba(37, 210, 197, 0.3);
}

.card.wagering .card-bet-strip {
  border-color: rgba(37, 210, 197, 0.82);
  color: #dcfffb;
  background:
    linear-gradient(90deg, rgba(37, 210, 197, 0.28), rgba(11, 16, 36, 0.98));
}

.round-bet-panel {
  background:
    linear-gradient(180deg, rgba(18, 30, 53, 0.98), rgba(3, 8, 17, 0.99));
}

.team-bet-button {
  border-color: rgba(81, 125, 167, 0.42);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(27, 46, 77, 0.92), rgba(5, 11, 23, 0.98));
}

.team-bet-button.atk {
  --team-color: #de6f91;
}

.team-bet-button.def {
  --team-color: #25d2c5;
}

.team-bet-button:hover:not(:disabled) {
  border-color: var(--team-color);
  box-shadow: 0 0 14px color-mix(in srgb, var(--team-color) 24%, transparent);
}

.target-panel {
  background:
    linear-gradient(180deg, rgba(18, 29, 53, 0.99), rgba(3, 7, 16, 0.99));
}

.target-player {
  border-color: rgba(83, 126, 172, 0.44);
  color: #fff;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--team-color) 14%, transparent), rgba(6, 12, 25, 0.97) 58%);
}

.target-agent-icon {
  color: #fff;
  background: rgba(16, 28, 51, 0.92);
  box-shadow: inset 0 0 10px color-mix(in srgb, var(--team-color) 14%, transparent);
}

/* V8: blackened steel, deep crimson, and restrained antique gold. */
:root {
  --bg: #030203;
  --panel: rgba(15, 9, 11, 0.96);
  --panel-strong: rgba(7, 4, 5, 0.99);
  --ink: #f8f3ef;
  --muted: #c0b2ae;
  --cyan: #b13b4a;
  --red: #e15a67;
  --gold: #b99450;
  --green: #45b987;
  --line: rgba(151, 105, 104, 0.34);
  --frame-silver: #c6bab5;
  --frame-violet: #9e3040;
  --team-atk: #ff5361;
  --team-def: #2bc8ba;
  --valorant-center-x: 804px;
  --valorant-center-y: 478px;
  --valorant-event-y: 700px;
}

.arena-shell {
  background:
    radial-gradient(circle at 50% 45%, rgba(105, 22, 31, 0.08), transparent 48%),
    #030203;
}

.top-hud,
.right-rail,
.deck-panel,
.hand-sidebar,
.hand-main,
.round-bet-panel,
.target-panel {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(30, 18, 21, 0.98), rgba(12, 7, 9, 0.99) 54%, rgba(5, 3, 4, 0.995));
  box-shadow:
    inset 0 1px 0 rgba(230, 205, 188, 0.07),
    inset 0 0 24px rgba(111, 29, 38, 0.08);
}

.top-hud::before,
.match-view::before,
.right-rail::before,
.deck-panel::before,
.hand-sidebar::before,
.hand-main::before,
.round-bet-panel::before,
.target-panel::before {
  border-image-source: url("./assets/ui-panel-frame-crimson.png");
}

.brand-kicker,
.eyebrow,
.meter-label,
.deck-copy span,
.deck-copy em {
  color: #c3b7b1;
}

.top-hud .meter {
  border-left-color: rgba(185, 148, 80, 0.58);
  background: linear-gradient(90deg, rgba(185, 148, 80, 0.1), transparent);
}

.top-hud .meter strong,
.standing-coins {
  color: #d1b36e;
  text-shadow: 0 0 9px rgba(185, 148, 80, 0.22);
}

.score-plate,
.sound-pattern-control,
.action-button,
.icon-button {
  border-color: rgba(141, 96, 96, 0.48);
  color: #f8f3ef;
  background:
    linear-gradient(180deg, rgba(42, 27, 31, 0.95), rgba(10, 6, 8, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(229, 205, 192, 0.08),
    0 3px 8px rgba(0, 0, 0, 0.25);
}

.action-button:hover,
.icon-button:hover {
  border-color: rgba(189, 58, 75, 0.86);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(80, 30, 39, 0.98), rgba(19, 8, 11, 0.99));
  box-shadow: 0 0 12px rgba(167, 41, 56, 0.2);
}

#soundButton[aria-pressed="true"] {
  border-color: rgba(185, 148, 80, 0.82);
  color: #f4ddb0;
  box-shadow:
    inset 0 0 12px rgba(185, 148, 80, 0.1),
    0 0 10px rgba(185, 148, 80, 0.16);
}

.sound-pattern-control select {
  color: #e2d6cf;
}

.top-hud .round-clock {
  border-color: rgba(170, 48, 64, 0.72);
  border-top-color: #b63b4c;
  background:
    linear-gradient(180deg, rgba(59, 23, 30, 0.98), rgba(11, 6, 8, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(238, 206, 203, 0.09),
    0 0 14px rgba(166, 40, 55, 0.16);
}

.top-hud .round-clock strong {
  color: #fff;
  text-shadow: 0 0 10px rgba(196, 54, 71, 0.2);
}

.top-hud .round-clock.urgent {
  border-color: rgba(255, 83, 97, 0.92);
  border-top-color: #ff5361;
  box-shadow: 0 0 18px rgba(255, 83, 97, 0.28);
}

.player-icon-band {
  border-color: rgba(133, 105, 106, 0.46);
  background:
    linear-gradient(180deg, rgba(14, 9, 11, 0.76), rgba(3, 2, 3, 0.62));
  box-shadow:
    inset 0 0 16px rgba(58, 22, 27, 0.42),
    0 0 8px rgba(0, 0, 0, 0.32);
}

.player-icon-band.atk-band {
  border-left-color: rgba(255, 83, 97, 0.92);
}

.player-icon-band.def-band {
  border-right-color: rgba(43, 200, 186, 0.92);
}

.section-header {
  border-bottom-color: rgba(181, 64, 76, 0.3);
}

.section-header .header-dot {
  background: #b99450;
  box-shadow: 0 0 9px rgba(185, 148, 80, 0.46);
}

.standing-list li {
  border-color: rgba(128, 88, 89, 0.38);
  color: #f8f3ef;
  background:
    linear-gradient(90deg, rgba(73, 28, 34, 0.28), rgba(8, 5, 6, 0.94) 50%);
  box-shadow: inset 0 1px 0 rgba(225, 198, 188, 0.035);
}

.standing-list li.self {
  border-color: rgba(185, 148, 80, 0.72);
  background:
    linear-gradient(90deg, rgba(120, 79, 24, 0.22), rgba(20, 9, 11, 0.96) 68%);
  box-shadow: inset 3px 0 0 #b99450;
}

.deck-stack span {
  border-color: rgba(150, 48, 61, 0.82);
  background:
    linear-gradient(145deg, rgba(166, 47, 62, 0.24), transparent 48%),
    repeating-linear-gradient(135deg, rgba(185, 148, 80, 0.11) 0 8px, rgba(18, 8, 11, 0.96) 8px 16px),
    #100709;
  box-shadow:
    inset 0 0 0 4px rgba(5, 3, 4, 0.86),
    inset 0 0 18px rgba(161, 42, 56, 0.1),
    0 5px 12px rgba(0, 0, 0, 0.42);
}

.deck-stack span:nth-child(3) {
  border-color: rgba(185, 148, 80, 0.88);
}

.deck-copy strong {
  color: #f8f3ef;
  text-shadow: 0 0 14px rgba(170, 47, 61, 0.28);
}

.hand-coin-meter {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(185, 148, 80, 0.48);
  background:
    linear-gradient(135deg, rgba(129, 85, 28, 0.3), transparent 46%),
    linear-gradient(180deg, rgba(35, 25, 14, 0.94), rgba(9, 6, 5, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(239, 213, 155, 0.16),
    inset 0 0 18px rgba(137, 91, 28, 0.12);
}

.hand-coin-meter::before {
  position: absolute;
  z-index: 0;
  inset: 4px;
  border-top: 1px solid rgba(214, 177, 100, 0.42);
  border-left: 1px solid rgba(185, 148, 80, 0.2);
  content: "";
  pointer-events: none;
}

.hand-coin-meter > * {
  position: relative;
  z-index: 1;
}

.hand-coin-meter .meter-label {
  color: #d4c09a;
}

.hand-coin-meter strong {
  color: #d9b864;
  text-shadow:
    0 1px 0 #3a250b,
    0 0 10px rgba(185, 148, 80, 0.3);
}

.coin-emblem {
  border-color: #d0aa57;
  background:
    radial-gradient(circle at 35% 28%, #ecd595 0 9%, transparent 11%),
    linear-gradient(145deg, #c8a34f, #74501b 72%);
  box-shadow:
    0 0 12px rgba(185, 148, 80, 0.24),
    inset 0 0 0 5px rgba(55, 31, 7, 0.24);
}

.coin-emblem::after {
  border-color: rgba(67, 40, 10, 0.58);
}

.round-stake-card {
  border-top-color: rgba(164, 48, 61, 0.44);
  background:
    linear-gradient(90deg, rgba(139, 34, 47, 0.09), transparent),
    rgba(10, 5, 7, 0.58);
}

.buy-timer {
  border-color: rgba(174, 52, 68, 0.72);
  border-top-color: #b99450;
  background:
    linear-gradient(180deg, rgba(47, 20, 25, 0.99), rgba(8, 5, 6, 0.995));
  box-shadow: 0 0 16px rgba(166, 40, 55, 0.18);
}

.buy-timer:not(.show),
.buy-timer[aria-hidden="true"] {
  display: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.buy-timer-track span {
  background: linear-gradient(90deg, #741d2a 0%, #c53d50 68%, #b99450 100%);
  box-shadow: 0 0 14px rgba(185, 55, 72, 0.42);
}

.card {
  --phase-color: #b43b4c;
  border-color: rgba(128, 82, 84, 0.56);
  background:
    linear-gradient(180deg, rgba(102, 31, 42, 0.34), rgba(22, 10, 13, 0.98) 29%, rgba(6, 4, 5, 0.995)),
    #090506;
  box-shadow:
    inset 0 1px 0 rgba(231, 207, 196, 0.08),
    inset 0 0 20px rgba(157, 38, 52, 0.05),
    0 8px 16px rgba(0, 0, 0, 0.44);
}

.card.timing-combat {
  --phase-color: #b99450;
}

.card-type,
.card p {
  color: #d8ccc6;
}

.card-target-icon {
  background: rgba(12, 6, 8, 0.9);
}

.card-cost {
  border-color: rgba(205, 171, 96, 0.88);
  color: #fff7e5;
  background:
    linear-gradient(145deg, #b9934a, #765021 62%, #281709);
  box-shadow:
    inset 0 1px 0 rgba(255, 234, 184, 0.25),
    0 0 9px rgba(185, 148, 80, 0.28);
}

.card-art {
  border-color: color-mix(in srgb, var(--phase-color) 58%, rgba(105, 76, 77, 0.42));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--phase-color) 22%, transparent), transparent 58%),
    linear-gradient(180deg, rgba(53, 23, 29, 0.94), rgba(9, 5, 7, 0.99));
}

.card-bet-strip {
  border-color: rgba(155, 54, 66, 0.68);
  color: #f0dedb;
  background:
    linear-gradient(90deg, rgba(151, 39, 54, 0.22), rgba(9, 5, 7, 0.99));
}

.card.selected {
  border-color: rgba(185, 148, 80, 0.94);
  box-shadow:
    inset 0 0 20px rgba(185, 148, 80, 0.08),
    0 0 14px rgba(185, 148, 80, 0.26);
}

.card.wagering .card-bet-strip {
  border-color: rgba(201, 61, 79, 0.86);
  color: #ffe8e4;
  background:
    linear-gradient(90deg, rgba(174, 45, 61, 0.3), rgba(15, 7, 10, 0.99));
}

.round-bet-panel {
  background:
    linear-gradient(180deg, rgba(27, 17, 20, 0.99), rgba(6, 4, 5, 0.995));
}

.team-bet-button {
  border-color: color-mix(in srgb, var(--team-color) 42%, rgba(126, 95, 96, 0.4));
  border-left: 4px solid var(--team-color);
  color: #fff;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--team-color) 24%, transparent), transparent 64%),
    linear-gradient(180deg, rgba(40, 25, 29, 0.96), rgba(8, 5, 6, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(235, 213, 204, 0.06),
    inset 0 0 18px color-mix(in srgb, var(--team-color) 7%, transparent);
}

.team-bet-button.atk {
  --team-color: var(--team-atk);
}

.team-bet-button.def {
  --team-color: var(--team-def);
}

.team-bet-button span {
  color: color-mix(in srgb, var(--team-color) 76%, #fff);
}

.team-bet-button:hover:not(:disabled),
.team-bet-button.active {
  border-color: var(--team-color);
  box-shadow:
    inset 0 0 24px color-mix(in srgb, var(--team-color) 14%, transparent),
    0 0 14px color-mix(in srgb, var(--team-color) 25%, transparent);
}

.target-panel {
  background:
    linear-gradient(180deg, rgba(36, 20, 24, 0.995), rgba(7, 4, 5, 0.995));
}

.target-player {
  border-color: rgba(124, 88, 89, 0.46);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--team-color) 16%, transparent), rgba(10, 6, 8, 0.98) 60%);
}

.target-agent-icon {
  background: rgba(29, 15, 18, 0.94);
}

/* V9: information-first cards, persistent team colors, and reward feedback. */
.standing-coins {
  min-width: 76px;
  font-size: 19px;
  line-height: 1;
  text-align: right;
}

.target-player.atk {
  --team-color: var(--team-atk);
}

.target-player.def {
  --team-color: var(--team-def);
}

.target-player {
  border-color: color-mix(in srgb, var(--team-color) 72%, rgba(90, 67, 69, 0.42));
  border-left-width: 5px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--team-color) 34%, transparent), color-mix(in srgb, var(--team-color) 9%, transparent) 56%, transparent 78%),
    linear-gradient(180deg, rgba(26, 17, 20, 0.99), rgba(7, 5, 6, 0.995));
  box-shadow:
    inset 4px 0 16px color-mix(in srgb, var(--team-color) 14%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transition:
    transform 150ms ease,
    filter 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.target-player .target-agent-icon {
  border-color: color-mix(in srgb, var(--team-color) 76%, rgba(255, 255, 255, 0.2));
  color: color-mix(in srgb, var(--team-color) 72%, #fff);
  background:
    radial-gradient(circle at 50% 32%, color-mix(in srgb, var(--team-color) 25%, transparent), transparent 68%),
    rgba(9, 6, 8, 0.94);
  box-shadow:
    inset 0 0 12px color-mix(in srgb, var(--team-color) 18%, transparent),
    0 0 8px color-mix(in srgb, var(--team-color) 12%, transparent);
}

.target-player:hover,
.target-player:focus-visible {
  border-color: color-mix(in srgb, var(--team-color) 88%, #fff);
  filter: brightness(1.14) saturate(1.08);
  transform: translateY(-2px) scale(1.012);
  box-shadow:
    inset 5px 0 20px color-mix(in srgb, var(--team-color) 24%, transparent),
    0 5px 13px rgba(0, 0, 0, 0.34),
    0 0 13px color-mix(in srgb, var(--team-color) 17%, transparent);
}

.target-player.dead {
  opacity: 0.62;
  filter: saturate(0.68) brightness(0.74);
}

.card,
.library-card {
  --genre-color: #bd4655;
  --genre-deep: #531923;
}

.genre-prediction {
  --genre-color: #ed5966;
  --genre-deep: #671d2a;
}

.genre-support {
  --genre-color: #45c39b;
  --genre-deep: #153f35;
}

.genre-ultimate {
  --genre-color: #a678df;
  --genre-deep: #3b2359;
}

.genre-disruption {
  --genre-color: #59a9df;
  --genre-deep: #173b58;
}

.genre-heist {
  --genre-color: #cda554;
  --genre-deep: #503614;
}

.genre-special {
  --genre-color: #c9d0d8;
  --genre-deep: #38404a;
}

.genre-event {
  --genre-color: #db7b4e;
  --genre-deep: #592719;
}

.card {
  width: 150px;
  height: 212px;
  padding: 0;
  border-color: color-mix(in srgb, var(--genre-color) 52%, rgba(115, 83, 84, 0.5));
  border-top: 4px solid var(--genre-color);
  color: #fbf7f3;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--genre-deep) 58%, rgba(25, 14, 17, 0.96)), rgba(7, 4, 5, 0.995) 54%),
    #080405;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 20px color-mix(in srgb, var(--genre-color) 5%, transparent),
    0 8px 16px rgba(0, 0, 0, 0.46);
}

.card::after {
  inset: 4px;
  border-color: color-mix(in srgb, var(--genre-color) 18%, rgba(255, 255, 255, 0.08));
}

.card-titlebar {
  position: absolute;
  z-index: 7;
  left: 6px;
  right: 6px;
  top: 5px;
  display: grid;
  height: 28px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.card-titlebar h3,
.card h3 {
  position: static;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: 0;
  padding: 0 2px;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-cost {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 27px;
  display: grid;
  width: 42px;
  height: 30px;
  padding: 0 4px;
  grid-template-columns: 18px minmax(0, 1fr);
  place-items: center;
  gap: 2px;
  border: 1px solid rgba(213, 179, 105, 0.78);
  border-radius: 3px;
  color: #f7e4b7;
  font-size: 14px;
  background:
    linear-gradient(145deg, rgba(109, 75, 26, 0.94), rgba(26, 15, 7, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 188, 0.16),
    0 0 7px rgba(185, 148, 80, 0.18);
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

.card-cost b {
  font-size: 14px;
  line-height: 1;
}

.card-cost-coin,
.wager-coin,
.gain-toast-icon {
  display: block;
  background: url("./assets/card-art/wager-coin-small.png") center / contain no-repeat;
}

.card-cost-coin {
  width: 18px;
  height: 18px;
}

.card-target-icon {
  position: absolute;
  right: 0;
  top: 29px;
  width: 25px;
  height: 25px;
  border-color: color-mix(in srgb, var(--genre-color) 72%, transparent);
  color: var(--genre-color);
  background: rgba(5, 3, 4, 0.74);
}

.card-art {
  left: 7px;
  right: 7px;
  top: 42px;
  height: 65px;
  border-color: color-mix(in srgb, var(--genre-color) 58%, rgba(255, 255, 255, 0.12));
  background-color: #090506;
  background-position: center;
  background-size: cover;
  box-shadow:
    inset 0 0 15px rgba(0, 0, 0, 0.42),
    0 2px 7px rgba(0, 0, 0, 0.32);
}

.card-art::after {
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 38%, rgba(4, 3, 4, 0.78)),
    linear-gradient(90deg, color-mix(in srgb, var(--genre-color) 9%, transparent), transparent 48%);
}

.card-genre-label {
  position: absolute;
  z-index: 3;
  left: 5px;
  bottom: 4px;
  padding: 2px 5px;
  border-left: 2px solid var(--genre-color);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  background: rgba(3, 2, 3, 0.74);
}

.card.genre-prediction .card-art,
.library-card.genre-prediction .library-card-art {
  background-image: url("./assets/card-art/prediction.webp");
}

.card.genre-support .card-art,
.library-card.genre-support .library-card-art {
  background-image: url("./assets/card-art/support.webp");
}

.card.genre-ultimate .card-art,
.library-card.genre-ultimate .library-card-art {
  background-image: url("./assets/card-art/ultimate.webp");
}

.card.genre-disruption .card-art,
.library-card.genre-disruption .library-card-art {
  background-image: url("./assets/card-art/disruption.webp");
}

.card.genre-heist .card-art,
.library-card.genre-heist .library-card-art {
  background-image: url("./assets/card-art/heist.webp");
}

.card.genre-special .card-art,
.library-card.genre-special .library-card-art {
  background-image: url("./assets/card-art/special.webp");
}

.card.genre-event .card-art,
.library-card.genre-event .library-card-art {
  background-image: url("./assets/card-art/event.webp");
}

.card-summary {
  position: absolute;
  z-index: 5;
  left: 8px;
  right: 8px;
  top: 111px;
  overflow: hidden;
  color: color-mix(in srgb, var(--genre-color) 68%, #fff);
  font-size: 14px;
  font-weight: 1000;
  line-height: 17px;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-payout {
  position: absolute;
  z-index: 5;
  left: 8px;
  right: 8px;
  top: 130px;
  display: flex;
  height: 43px;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  color: #f5e2b4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
}

.card-payout small {
  color: #c7bdb8;
  font-size: 14px;
  font-weight: 900;
}

.card-payout strong {
  color: #fff0bf;
  font-size: 31px;
  font-weight: 1000;
  line-height: 1;
}

.card-payout em {
  color: #dbc18a;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.card-wager-footer {
  position: absolute;
  z-index: 6;
  left: 7px;
  right: 7px;
  bottom: 6px;
  display: flex;
  height: 27px;
  padding: 3px 5px;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  border: 1px solid color-mix(in srgb, var(--genre-color) 36%, rgba(122, 91, 89, 0.36));
  border-radius: 2px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--genre-color) 12%, transparent), transparent),
    rgba(5, 3, 4, 0.94);
}

.card-wager-coins {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 1px;
}

.wager-coin {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.72));
  animation: wager-coin-in 180ms ease both;
}

.wager-coin:nth-child(2) {
  animation-delay: 28ms;
}

.wager-coin:nth-child(3) {
  animation-delay: 56ms;
}

.wager-coin:nth-child(4) {
  animation-delay: 84ms;
}

.wager-coin:nth-child(5) {
  animation-delay: 112ms;
}

.card-wager-stake {
  flex: 0 0 auto;
  color: #dfc788;
  font-size: 14px;
  font-weight: 1000;
  white-space: nowrap;
}

.card-special-effect {
  position: absolute;
  z-index: 5;
  left: 9px;
  right: 9px;
  top: 118px;
  display: grid;
  height: 52px;
  place-items: center;
  overflow: hidden;
  color: color-mix(in srgb, var(--genre-color) 68%, #fff);
  font-size: 19px;
  font-weight: 1000;
  line-height: 1.12;
  text-align: center;
}

.card-nonbet-footer {
  color: #d7cdca;
  font-size: 14px;
  font-weight: 900;
}

.card.selected {
  border-color: color-mix(in srgb, var(--genre-color) 80%, #fff);
  box-shadow:
    inset 0 0 20px color-mix(in srgb, var(--genre-color) 10%, transparent),
    0 0 15px color-mix(in srgb, var(--genre-color) 34%, transparent);
}

.card.wagering .card-wager-footer {
  border-color: rgba(216, 180, 100, 0.88);
  box-shadow:
    inset 0 0 12px rgba(185, 148, 80, 0.1),
    0 0 9px rgba(185, 148, 80, 0.16);
}

.card-used-label {
  top: 76px;
}

.card-reset {
  right: 7px;
  top: 112px;
  bottom: auto;
  min-height: 25px;
  padding: 3px 5px;
  font-size: 14px;
}

.library-card {
  border-top-color: var(--genre-color);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--genre-deep) 52%, rgba(21, 12, 14, 0.98)), rgba(5, 3, 4, 0.99));
}

.library-card-art {
  display: block;
  width: 100%;
  height: 88px;
  margin: 8px 0;
  border: 1px solid color-mix(in srgb, var(--genre-color) 46%, rgba(255, 255, 255, 0.12));
  background-position: center;
  background-size: cover;
}

.library-card-summary {
  display: block;
  margin: 5px 0;
  color: color-mix(in srgb, var(--genre-color) 70%, #fff);
  font-size: 17px;
}

.gain-feed {
  position: absolute;
  z-index: 36;
  left: 22px;
  bottom: 24px;
  display: grid;
  width: 360px;
  min-height: 0;
  gap: 7px;
  pointer-events: none;
}

.gain-toast {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 68px;
  padding: 8px 12px 8px 9px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  border: 1px solid rgba(193, 153, 73, 0.7);
  border-left: 4px solid #c8a14f;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(102, 67, 19, 0.35), rgba(16, 8, 9, 0.95) 48%, rgba(5, 3, 4, 0.97));
  box-shadow:
    inset 0 1px 0 rgba(255, 231, 174, 0.1),
    0 8px 18px rgba(0, 0, 0, 0.42);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  animation: gain-toast-show 4.4s ease both;
}

.gain-toast-icon {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.58));
}

.gain-toast-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.gain-toast-copy small {
  color: #cbbd9d;
  font-size: 14px;
  font-weight: 900;
}

.gain-toast-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: 19px;
  font-weight: 1000;
  line-height: 1.08;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gain-toast-copy em {
  overflow: hidden;
  color: #d1c7c2;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gain-toast b {
  color: #f0cf79;
  font-size: 28px;
  font-weight: 1000;
  line-height: 1;
  text-shadow: 0 0 10px rgba(185, 148, 80, 0.32);
  white-space: nowrap;
}

.coin-gain-layer {
  position: absolute !important;
  z-index: 20 !important;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.coin-gain-pop {
  position: absolute;
  right: 7px;
  top: 17px;
  color: #ffe299;
  font-size: 34px;
  font-weight: 1000;
  line-height: 1;
  text-shadow:
    0 2px 0 #4a2d0a,
    0 0 12px rgba(226, 183, 86, 0.62),
    0 5px 12px rgba(0, 0, 0, 0.54);
  white-space: nowrap;
  animation: coin-gain-rise 1.45s cubic-bezier(0.16, 0.84, 0.25, 1) both;
}

.buy-timer {
  transform-origin: center bottom;
}

.buy-timer.urgent {
  z-index: 45;
  height: 58px;
  padding: 6px 14px 8px;
  border-width: 2px;
  transform: scale(1.14, 1.24);
  box-shadow:
    0 0 25px rgba(197, 61, 80, 0.34),
    0 10px 24px rgba(0, 0, 0, 0.42);
}

.buy-timer.urgent .buy-timer-meta {
  color: #ffe5e1;
  font-size: 16px;
}

.buy-timer.urgent .buy-timer-meta strong {
  color: #fff;
  font-size: 28px;
}

.buy-timer.critical {
  border-color: rgba(255, 83, 97, 0.96);
  background:
    linear-gradient(180deg, rgba(91, 25, 36, 0.99), rgba(13, 6, 8, 0.995));
}

.buy-timer.critical .buy-timer-meta strong {
  color: #fff2d4;
  font-size: 34px;
  animation: countdown-thump 1s cubic-bezier(0.2, 0.85, 0.25, 1) infinite;
}

.top-hud .round-clock.critical strong {
  animation: clock-thump 1s cubic-bezier(0.2, 0.85, 0.25, 1) infinite;
}

@keyframes wager-coin-in {
  0% {
    opacity: 0;
    transform: translateY(4px) scale(0.45);
  }
  72% {
    opacity: 1;
    transform: translateY(-1px) scale(1.12);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes gain-toast-show {
  0% {
    opacity: 0;
    transform: translateX(-28px) scale(0.96);
  }
  8%,
  82% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: translateX(-16px);
  }
}

@keyframes coin-gain-rise {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.5);
  }
  18% {
    opacity: 1;
    transform: translateY(-3px) scale(1.34);
  }
  34% {
    opacity: 1;
    transform: translateY(-8px) scale(1);
  }
  72% {
    opacity: 1;
    transform: translateY(-24px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-52px) scale(0.9);
  }
}

@keyframes countdown-thump {
  0%,
  38%,
  100% {
    text-shadow: 0 0 10px rgba(255, 83, 97, 0.28);
    transform: scale(1);
  }
  12% {
    text-shadow:
      0 0 18px rgba(255, 83, 97, 0.74),
      0 4px 12px rgba(0, 0, 0, 0.6);
    transform: scale(1.48);
  }
  23% {
    transform: scale(0.94);
  }
}

@keyframes clock-thump {
  0%,
  38%,
  100% {
    transform: scale(1);
  }
  12% {
    transform: scale(1.18);
  }
  23% {
    transform: scale(0.97);
  }
}

/* V10: continuous round betting and explicit current/next-round targeting. */
.round-bet-panel {
  padding: 12px 18px 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 38px minmax(0, 1fr);
  gap: 8px 12px;
}

.round-bet-heading {
  grid-column: 1 / -1;
  display: grid;
  min-width: 0;
  padding: 0 4px 7px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(185, 148, 80, 0.26);
  color: #c9bbb4;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.round-bet-heading strong {
  overflow: hidden;
  color: #f4e2b8;
  font-size: 18px;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.round-bet-heading em {
  color: #a99b96;
  font-size: 14px;
  font-style: normal;
  white-space: nowrap;
}

.round-bet-panel.advance .round-bet-heading {
  border-bottom-color: rgba(179, 64, 79, 0.52);
}

.round-bet-panel.advance .round-bet-heading strong {
  color: #f2a8b1;
  text-shadow: 0 0 10px rgba(183, 53, 70, 0.24);
}

.team-bet-button {
  padding: 10px 13px;
  touch-action: none;
  user-select: none;
  transition:
    transform 90ms ease,
    filter 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.team-bet-button.pressing {
  filter: brightness(1.22) saturate(1.08);
  transform: translateY(2px) scale(0.985);
  box-shadow:
    inset 0 0 28px color-mix(in srgb, var(--team-color) 22%, transparent),
    0 0 18px color-mix(in srgb, var(--team-color) 24%, transparent);
}

.buy-timer-meta em {
  overflow: hidden;
  color: #bbaea8;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.buy-timer.advance {
  border-color: rgba(185, 148, 80, 0.72);
  border-top-color: #a73546;
  background:
    linear-gradient(180deg, rgba(45, 25, 21, 0.99), rgba(8, 5, 5, 0.995));
  box-shadow: 0 0 18px rgba(171, 54, 68, 0.2);
}

.buy-timer.advance .buy-timer-meta span {
  color: #f0a7b0;
}

.buy-timer.advance .buy-timer-track span {
  background: linear-gradient(90deg, #7f2632 0%, #b99450 72%, #e0bd70 100%);
  box-shadow: 0 0 14px rgba(185, 148, 80, 0.36);
}

.hand.hand-dealt .card {
  animation: hand-card-deal 440ms cubic-bezier(0.2, 0.82, 0.28, 1) both;
}

.hand.hand-dealt .card:nth-child(2) {
  animation-delay: 55ms;
}

.hand.hand-dealt .card:nth-child(3) {
  animation-delay: 110ms;
}

.hand.hand-dealt .card:nth-child(4) {
  animation-delay: 165ms;
}

@keyframes hand-card-deal {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.9);
  }
  68% {
    opacity: 1;
    transform: translateY(-5px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* V11: current-round stake plus a compact next-round preview. */
.round-stake-card {
  height: 66px;
  padding: 7px 9px;
  align-content: stretch;
  grid-template-rows: 14px 28px 15px;
  gap: 0;
}

.round-stake-card > span {
  line-height: 14px;
}

.round-stake-card > strong {
  font-size: 25px;
  line-height: 28px;
}

.round-stake-card > em {
  line-height: 13px;
}

.next-round-stake-row {
  display: grid;
  min-width: 0;
  margin-top: 2px;
  padding: 3px 5px 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  border-top: 1px solid rgba(185, 148, 80, 0.22);
  background: rgba(4, 3, 4, 0.22);
}

.round-stake-card .next-round-stake-row span {
  color: #a99d98;
  font-size: 14px;
  line-height: 17px;
}

.round-stake-card .next-round-stake-row strong {
  color: #c8b98e;
  font-size: 17px;
  font-weight: 1000;
  line-height: 17px;
}

.next-round-stake-row.betting-now {
  border-top-color: rgba(181, 57, 72, 0.58);
  background:
    linear-gradient(90deg, rgba(155, 42, 56, 0.15), rgba(122, 83, 31, 0.08)),
    rgba(8, 4, 5, 0.48);
}

.round-stake-card .next-round-stake-row.betting-now span {
  color: #efa3ad;
}

.round-stake-card .next-round-stake-row.betting-now strong {
  color: #e2c47b;
  text-shadow: 0 0 8px rgba(185, 148, 80, 0.24);
}

/* V12: show current and next-round stakes inside both team BET buttons. */
.team-bet-button .team-bet-rounds {
  display: grid;
  min-width: 0;
  overflow: visible;
  gap: 2px;
  color: inherit;
  white-space: normal;
  text-overflow: clip;
}

.team-bet-button .team-bet-round-line {
  display: grid;
  min-width: 0;
  min-height: 21px;
  padding: 2px 5px;
  grid-template-columns: 59px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  border-left: 2px solid rgba(156, 132, 126, 0.28);
  color: #b9adaa;
  font-size: 14px;
  line-height: 17px;
  background: rgba(4, 3, 4, 0.34);
}

.team-bet-round-line small,
.team-bet-round-line b,
.team-bet-round-line i {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 17px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.team-bet-round-line small {
  color: #aa9d99;
  font-weight: 900;
}

.team-bet-round-line b {
  color: #ddd3cf;
  font-weight: 1000;
}

.team-bet-round-line i {
  color: #a99d98;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.team-bet-button .team-bet-round-line.is-target {
  border-left-color: var(--team-color);
  color: #fff;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--team-color) 19%, transparent), transparent 78%),
    rgba(8, 5, 6, 0.68);
  box-shadow: inset 4px 0 10px color-mix(in srgb, var(--team-color) 8%, transparent);
}

.team-bet-round-line.is-target small {
  color: color-mix(in srgb, var(--team-color) 72%, #fff);
}

.team-bet-round-line.is-target b {
  color: #fff;
}

.team-bet-round-line.is-target i {
  color: #e4d6d1;
}

/* V13: agent portraits, ultimate charge, and weapon silhouettes. */
.target-player.dead {
  opacity: 1;
  filter: none;
}

.target-player .target-agent-icon {
  overflow: hidden;
  padding: 0;
}

.target-agent-icon img,
.player-marker img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  pointer-events: none;
  user-select: none;
}

.target-main {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.target-main strong {
  font-size: 18px;
  line-height: 19px;
}

.target-loadout {
  display: flex;
  min-width: 0;
  height: 19px;
  align-items: center;
  gap: 9px;
}

.target-ult {
  display: flex;
  flex: 0 0 auto;
  height: 16px;
  padding: 0 2px;
  align-items: center;
  gap: 4px;
}

.ult-pip {
  display: block;
  width: 8px;
  height: 8px;
  border: 1px solid color-mix(in srgb, var(--team-color) 66%, #fff);
  background: rgba(2, 3, 4, 0.68);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.52);
  transform: rotate(45deg);
}

.ult-pip.filled {
  border-color: color-mix(in srgb, var(--team-color) 74%, #fff);
  background: color-mix(in srgb, var(--team-color) 72%, #fff);
  box-shadow: 0 0 6px color-mix(in srgb, var(--team-color) 38%, transparent);
}

.target-weapon {
  display: grid;
  min-width: 0;
  height: 18px;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
}

.target-weapon img {
  display: block;
  width: 68px;
  height: 16px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.74));
  opacity: 0.9;
}

.target-weapon em {
  overflow: hidden;
  color: #bdb2ae;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
  line-height: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.player-marker {
  overflow: hidden;
  padding: 0;
}

.player-marker img {
  filter: saturate(0.92) contrast(1.04);
}

.player-marker.dead img {
  filter: grayscale(0.9) brightness(0.62);
}

.live-bet-tray {
  position: absolute;
  z-index: 19;
  right: 18px;
  bottom: 76px;
  display: flex;
  max-width: 520px;
  min-height: 0;
  justify-content: flex-end;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 220ms ease;
}

.live-bet-tray.show {
  opacity: 1;
  transform: none;
}

.live-bet-card {
  --genre-color: #bd4655;
  --genre-deep: #531923;
  position: relative;
  display: grid;
  flex: 0 0 122px;
  width: 122px;
  height: 150px;
  padding: 6px;
  grid-template-rows: 23px 40px 40px 24px;
  gap: 3px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--genre-color) 64%, rgba(255, 255, 255, 0.2));
  border-top: 3px solid var(--genre-color);
  color: #fff;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--genre-deep) 58%, rgba(25, 14, 17, 0.97)), rgba(6, 4, 5, 0.99) 58%),
    #080405;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 7px 16px rgba(0, 0, 0, 0.54);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  animation: live-bet-in 300ms cubic-bezier(0.2, 0.82, 0.28, 1) both;
}

.live-bet-card:nth-child(2) {
  animation-delay: 45ms;
}

.live-bet-card:nth-child(3) {
  animation-delay: 90ms;
}

.live-bet-card:nth-child(4) {
  animation-delay: 135ms;
}

.live-bet-title {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
}

.live-bet-title strong {
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 1000;
  line-height: 17px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.live-bet-title span {
  color: color-mix(in srgb, var(--genre-color) 72%, #fff);
  font-size: 14px;
  font-weight: 1000;
  white-space: nowrap;
}

.live-bet-art {
  border: 1px solid color-mix(in srgb, var(--genre-color) 48%, rgba(255, 255, 255, 0.12));
  background-color: #090506;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.46);
}

.live-bet-card.genre-prediction .live-bet-art {
  background-image: url("./assets/card-art/prediction.webp");
}

.live-bet-card.genre-support .live-bet-art {
  background-image: url("./assets/card-art/support.webp");
}

.live-bet-card.genre-ultimate .live-bet-art {
  background-image: url("./assets/card-art/ultimate.webp");
}

.live-bet-card.genre-disruption .live-bet-art {
  background-image: url("./assets/card-art/disruption.webp");
}

.live-bet-card.genre-heist .live-bet-art {
  background-image: url("./assets/card-art/heist.webp");
}

.live-bet-card.genre-special .live-bet-art {
  background-image: url("./assets/card-art/special.webp");
}

.live-bet-card.genre-event .live-bet-art {
  background-image: url("./assets/card-art/event.webp");
}

.live-bet-target {
  display: grid;
  min-width: 0;
  grid-template-columns: 35px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.live-bet-agent {
  --target-team: var(--team-atk);
  display: block;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 2px solid var(--target-team);
  background: rgba(8, 5, 6, 0.94);
  box-shadow: 0 0 8px color-mix(in srgb, var(--target-team) 24%, transparent);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.live-bet-agent.def {
  --target-team: var(--team-def);
}

.live-bet-agent img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.live-bet-target > span:last-child {
  display: grid;
  min-width: 0;
}

.live-bet-target strong,
.live-bet-target small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.live-bet-target strong {
  color: #fff;
  font-size: 15px;
  font-weight: 1000;
  line-height: 17px;
}

.live-bet-target small {
  color: #b8aca8;
  font-size: 14px;
  font-weight: 800;
  line-height: 16px;
}

.live-bet-value {
  display: grid;
  min-width: 0;
  padding: 2px 5px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  border-top: 1px solid color-mix(in srgb, var(--genre-color) 36%, rgba(255, 255, 255, 0.08));
  background: rgba(3, 2, 3, 0.68);
}

.live-bet-value span,
.live-bet-value b {
  font-size: 14px;
  font-weight: 1000;
  line-height: 17px;
  white-space: nowrap;
}

.live-bet-value span {
  color: #c9bbb5;
}

.live-bet-value b {
  color: #f2d687;
}

.live-bet-status {
  position: absolute;
  z-index: 2;
  right: 5px;
  top: 52px;
  padding: 2px 5px;
  border: 1px solid color-mix(in srgb, var(--genre-color) 55%, rgba(255, 255, 255, 0.16));
  color: #fff;
  font-size: 14px;
  font-style: normal;
  font-weight: 1000;
  line-height: 16px;
  background: rgba(5, 3, 4, 0.86);
}

.live-bet-card.hit {
  border-color: rgba(220, 186, 101, 0.94);
  box-shadow:
    inset 0 0 18px rgba(192, 153, 67, 0.13),
    0 0 16px rgba(192, 153, 67, 0.24);
}

.live-bet-card.hit .live-bet-status {
  border-color: rgba(220, 186, 101, 0.9);
  color: #ffe7a5;
}

.live-bet-card.miss {
  filter: saturate(0.55) brightness(0.72);
}

@keyframes live-bet-in {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* V14: keep complete weapon names visible in the compact target picker. */
.target-player {
  padding-inline: 8px;
  grid-template-columns: 42px minmax(0, 1fr) 82px;
  gap: 7px;
}

.target-player.is-reordering {
  position: relative;
  z-index: 3;
  will-change: transform, opacity;
}

.target-loadout {
  gap: 7px;
}

.target-ult {
  gap: 4px;
}

.ult-pip {
  width: 8px;
  height: 8px;
}

.target-weapon {
  width: max-content;
  max-width: none;
  grid-template-columns: 52px max-content;
  gap: 4px;
}

.target-weapon img {
  width: 52px;
}

.target-weapon em {
  overflow: visible;
  min-width: max-content;
  text-overflow: clip;
}

/* V15: genre-colored live bets in a bottom-right-first 2x2 formation. */
.live-bet-tray {
  display: grid;
  width: 252px;
  max-width: none;
  height: 308px;
  grid-template-columns: repeat(2, 122px);
  grid-template-rows: repeat(2, 150px);
  gap: 8px;
}

.live-bet-card {
  align-self: stretch;
  justify-self: stretch;
}

.live-bet-slot-1 {
  grid-column: 2;
  grid-row: 2;
}

.live-bet-slot-2 {
  grid-column: 1;
  grid-row: 2;
}

.live-bet-slot-3 {
  grid-column: 2;
  grid-row: 1;
}

.live-bet-slot-4 {
  grid-column: 1;
  grid-row: 1;
}

.live-bet-card.genre-prediction {
  --genre-color: #ed5966;
  --genre-deep: #671d2a;
}

.live-bet-card.genre-support {
  --genre-color: #45c39b;
  --genre-deep: #153f35;
}

.live-bet-card.genre-ultimate {
  --genre-color: #a678df;
  --genre-deep: #3f275d;
}

.live-bet-card.genre-disruption {
  --genre-color: #59a9df;
  --genre-deep: #173d59;
}

.live-bet-card.genre-heist {
  --genre-color: #cda554;
  --genre-deep: #503b14;
}

.live-bet-card.genre-special {
  --genre-color: #c9d0d8;
  --genre-deep: #3c4652;
}

.live-bet-card.genre-event {
  --genre-color: #db7b4e;
  --genre-deep: #5a2919;
}

/* V16: chat-aware bottom HUD, with actions left and account information right. */
.round-bet-panel {
  left: 0;
  width: 246px;
  padding: 10px 12px 12px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 30px repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.round-bet-heading {
  grid-column: 1;
  padding: 0 2px 5px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
}

.round-bet-heading strong {
  font-size: 16px;
  text-align: right;
}

.round-bet-heading em {
  display: none;
}

.round-bet-panel .team-bet-button {
  padding: 6px 9px;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 22px 28px;
  align-content: stretch;
  gap: 3px 7px;
}

.round-bet-panel .team-bet-button > span {
  align-self: center;
  font-size: 16px;
}

.round-bet-panel .team-bet-button > strong {
  align-self: center;
  font-size: 17px;
  text-align: right;
}

.round-bet-panel .team-bet-rounds {
  grid-column: 1 / -1;
  gap: 1px;
}

.round-bet-panel .team-bet-round-line {
  min-height: 27px;
  padding: 4px 6px;
  grid-template-columns: 51px minmax(0, 1fr) auto;
  gap: 3px;
}

.round-bet-panel .team-bet-round-line small,
.round-bet-panel .team-bet-round-line b,
.round-bet-panel .team-bet-round-line i {
  font-size: 15px;
  line-height: 18px;
}

.round-bet-panel.phase-locked .team-bet-button {
  cursor: default;
  filter: grayscale(0.58) saturate(0.55) brightness(0.58);
  opacity: 0.8;
}

.round-bet-panel.combat-locked .team-bet-button,
.round-bet-panel.combat-locked .team-bet-button.active {
  border-color: rgba(102, 94, 96, 0.42);
  border-left-color: rgba(116, 105, 107, 0.58);
  color: #aaa3a1;
  background:
    linear-gradient(180deg, rgba(22, 19, 20, 0.9), rgba(6, 5, 6, 0.97));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    inset 0 0 18px rgba(0, 0, 0, 0.36);
  filter: grayscale(0.9) saturate(0.22) brightness(0.42);
  opacity: 0.72;
}

.round-bet-panel.combat-locked .team-bet-button > span,
.round-bet-panel.combat-locked .team-bet-button > strong,
.round-bet-panel.combat-locked .team-bet-round-line small,
.round-bet-panel.combat-locked .team-bet-round-line b,
.round-bet-panel.combat-locked .team-bet-round-line i {
  color: #aaa3a1;
  text-shadow: none;
}

.hand-sidebar {
  left: 1026px;
  width: 558px;
  padding: 14px 16px;
  grid-template-columns: 230px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
}

.hand-sidebar .hand-coin-meter {
  height: 198px;
  min-height: 0;
  padding: 14px;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 11px;
}

.hand-sidebar .coin-emblem {
  width: 56px;
  height: 56px;
}

.hand-sidebar .hand-coin-meter strong {
  font-size: 36px;
}

.hand-sidebar .round-stake-card {
  height: 198px;
  padding: 18px 16px;
  grid-template-rows: 18px 34px 20px 56px;
  align-content: center;
  gap: 3px;
}

.hand-sidebar .round-stake-card > span {
  font-size: 15px;
  line-height: 18px;
}

.hand-sidebar .round-stake-card > strong {
  font-size: 31px;
  line-height: 34px;
}

.hand-sidebar .round-stake-card > em {
  font-size: 14px;
  line-height: 20px;
}

.hand-sidebar .next-round-stake-row {
  margin-top: 2px;
  padding: 8px 7px 0;
}

.hand-sidebar .round-stake-card .next-round-stake-row span {
  font-size: 14px;
}

.hand-sidebar .round-stake-card .next-round-stake-row strong {
  font-size: 19px;
}

/* V18: shared bet multiplier and clutch-ready card state. */
.bet-multiplier {
  position: absolute;
  z-index: 47;
  left: 10px;
  top: -52px;
  display: grid;
  width: 306px;
  height: 50px;
  padding: 5px 6px;
  grid-template-columns: 52px repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 4px;
  border: 1px solid rgba(185, 148, 80, 0.5);
  border-top-color: #b99450;
  color: #e9dfd8;
  background:
    linear-gradient(180deg, rgba(42, 24, 23, 0.98), rgba(8, 5, 7, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(243, 218, 167, 0.08),
    0 0 14px rgba(119, 31, 43, 0.18);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.bet-multiplier-label {
  display: grid;
  place-items: center;
  color: #cbbdaf;
  font-size: 14px;
  font-weight: 1000;
  line-height: 1;
  text-align: center;
}

.bet-multiplier-button {
  display: grid;
  min-width: 0;
  min-height: 38px;
  padding: 3px 2px;
  place-content: center;
  gap: 1px;
  border: 1px solid rgba(168, 133, 95, 0.3);
  border-radius: 2px;
  color: #b9ada6;
  background:
    linear-gradient(180deg, rgba(51, 33, 31, 0.72), rgba(12, 8, 9, 0.92));
  cursor: pointer;
}

.bet-multiplier-button span,
.bet-multiplier-button strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 1000;
  line-height: 15px;
  text-align: center;
  white-space: nowrap;
}

.bet-multiplier-button strong {
  color: #d4b76f;
}

.bet-multiplier-button:hover,
.bet-multiplier-button:focus-visible {
  border-color: rgba(220, 184, 104, 0.76);
  color: #fff;
  filter: brightness(1.12);
  outline: none;
}

.bet-multiplier-button.active {
  border-color: rgba(222, 188, 110, 0.92);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(121, 43, 53, 0.95), rgba(44, 14, 20, 0.98));
  box-shadow:
    inset 0 0 10px rgba(221, 177, 94, 0.12),
    0 0 10px rgba(165, 53, 69, 0.2);
}

.bet-multiplier-button.triple.active {
  border-color: #e0bd70;
  background:
    linear-gradient(180deg, rgba(111, 73, 26, 0.96), rgba(37, 22, 7, 0.99));
  box-shadow:
    inset 0 0 11px rgba(235, 202, 127, 0.16),
    0 0 11px rgba(185, 148, 80, 0.24);
}

.hand-main .buy-timer {
  left: 326px;
}

.card.target-mode-auto:not(.unavailable) {
  border-color: rgba(222, 188, 110, 0.96);
  box-shadow:
    inset 0 0 22px rgba(209, 169, 84, 0.13),
    0 0 16px rgba(209, 169, 84, 0.32);
}

.card.target-mode-auto:not(.unavailable) .card-target-icon {
  color: #f1d48a;
  border-color: rgba(222, 188, 110, 0.72);
}

.live-bet-title span {
  max-width: 58px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-payout.payout-large strong {
  font-size: 27px;
}

.card-payout.payout-huge {
  gap: 2px;
}

.card-payout.payout-huge strong {
  font-size: 23px;
}

.live-bet-card.high-value {
  grid-template-rows: 23px 35px 36px 30px;
}

.live-bet-card.high-value .live-bet-value {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(2, 14px);
  justify-items: end;
  gap: 0;
  padding-block: 1px;
}

.live-bet-card.high-value .live-bet-value span,
.live-bet-card.high-value .live-bet-value b {
  line-height: 14px;
}

/* V19: keep multiplier controls inside the medal meter, away from gameplay. */
.hand-sidebar .hand-coin-meter {
  padding: 10px;
  grid-template-columns: 60px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 50px;
  align-items: center;
  gap: 7px 10px;
}

.hand-sidebar .hand-coin-meter > .coin-emblem,
.hand-sidebar .hand-coin-meter > div:not(.bet-multiplier):not(.coin-gain-layer) {
  align-self: center;
}

.hand-coin-meter .bet-multiplier {
  position: relative;
  z-index: 3;
  left: auto;
  top: auto;
  grid-column: 1 / -1;
  width: 100%;
  height: 50px;
  padding: 5px 4px;
  grid-template-columns: 36px repeat(3, minmax(0, 1fr));
  gap: 3px;
  align-self: end;
  border-color: rgba(185, 148, 80, 0.42);
  box-shadow: inset 0 1px 0 rgba(243, 218, 167, 0.07);
}

.hand-coin-meter .bet-multiplier-label {
  font-size: 14px;
  line-height: 15px;
}

.hand-coin-meter .bet-multiplier-button {
  min-height: 38px;
  padding-inline: 1px;
}

.hand-coin-meter .bet-multiplier-button span,
.hand-coin-meter .bet-multiplier-button strong {
  font-size: 14px;
}

.hand-coin-meter .bet-multiplier-button.triple span {
  transform: scaleX(0.88);
}

.hand-main .buy-timer {
  left: 10px;
}

/* V20: multiplier is its own framed row below the medal meter. */
.hand-sidebar {
  grid-template-columns: 230px minmax(0, 1fr);
  grid-template-rows: 136px 54px;
  gap: 8px 12px;
}

.hand-sidebar .hand-coin-meter {
  grid-column: 1;
  grid-row: 1;
  height: 136px;
  padding: 14px;
  grid-template-columns: 60px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 11px;
}

.hand-sidebar > .bet-multiplier {
  position: relative;
  z-index: 3;
  left: auto;
  top: auto;
  grid-column: 1;
  grid-row: 2;
  width: 230px;
  height: 54px;
  padding: 7px 8px;
  grid-template-columns: 40px repeat(3, minmax(0, 1fr));
  gap: 4px;
  align-self: stretch;
  border: 1px solid rgba(185, 148, 80, 0.52);
  border-top-color: #b99450;
  background:
    linear-gradient(180deg, rgba(43, 24, 23, 0.98), rgba(8, 5, 7, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(243, 218, 167, 0.08),
    0 0 12px rgba(119, 31, 43, 0.14);
}

.hand-sidebar > .bet-multiplier .bet-multiplier-label {
  font-size: 14px;
  line-height: 15px;
}

.hand-sidebar > .bet-multiplier .bet-multiplier-button {
  min-height: 38px;
  padding-inline: 1px;
}

.hand-sidebar > .bet-multiplier .bet-multiplier-button span,
.hand-sidebar > .bet-multiplier .bet-multiplier-button strong {
  font-size: 14px;
}

.hand-sidebar > .bet-multiplier .bet-multiplier-button.triple span {
  transform: scaleX(0.9);
}

.hand-sidebar > .round-stake-card {
  grid-column: 2;
  grid-row: 1 / 3;
  height: 198px;
}

/* V21: end-phase medal gains and losses. */
.round-medal-summary {
  position: absolute;
  z-index: 26;
  left: 50%;
  top: 50%;
  width: 520px;
  min-height: 0;
  padding: 18px 20px 20px;
  overflow: hidden;
  border: 1px solid rgba(181, 151, 91, 0.6);
  border-top: 3px solid #b99450;
  color: #f8f3ef;
  opacity: 0;
  visibility: hidden;
  background:
    linear-gradient(180deg, rgba(43, 20, 24, 0.98), rgba(8, 5, 7, 0.99) 30%),
    #080506;
  box-shadow:
    inset 0 1px 0 rgba(244, 219, 170, 0.1),
    inset 0 0 28px rgba(130, 39, 49, 0.1),
    0 18px 48px rgba(0, 0, 0, 0.66);
  transform: translate(-50%, -48%) scale(0.97);
  pointer-events: none;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.round-medal-summary.show {
  visibility: visible;
  animation: round-medal-summary-in 420ms cubic-bezier(0.18, 0.82, 0.25, 1) both;
}

.round-medal-summary.leaving {
  visibility: visible;
  animation: round-medal-summary-out 560ms cubic-bezier(0.4, 0, 0.7, 0.2) both;
}

.round-medal-summary-header {
  display: grid;
  padding: 0 4px 13px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 3px 16px;
  border-bottom: 1px solid rgba(185, 148, 80, 0.34);
}

.round-medal-summary-header span {
  grid-column: 1 / -1;
  color: #bd9c62;
  font-size: 14px;
  font-weight: 900;
  line-height: 16px;
}

.round-medal-summary-header strong {
  color: #fff;
  font-size: 26px;
  font-weight: 1000;
  line-height: 30px;
}

.round-medal-summary-header em {
  color: #d9c28c;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  line-height: 20px;
  white-space: nowrap;
}

.round-medal-summary-list {
  display: grid;
  margin-top: 10px;
  gap: 4px;
}

.round-medal-summary-row {
  position: relative;
  display: grid;
  min-height: 38px;
  padding: 6px 12px 6px 15px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left-width: 3px;
  background: rgba(5, 4, 5, 0.74);
}

.round-medal-summary-row span {
  overflow: hidden;
  color: #e8dfda;
  font-size: 17px;
  font-weight: 900;
  line-height: 22px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.round-medal-summary-row strong {
  font-size: 21px;
  font-weight: 1000;
  line-height: 24px;
  white-space: nowrap;
}

.round-medal-summary-row.positive {
  border-left-color: #d5ad59;
  background:
    linear-gradient(90deg, rgba(164, 112, 33, 0.22), transparent 54%),
    rgba(8, 6, 4, 0.82);
}

.round-medal-summary-row.positive strong {
  color: #f0cd77;
  text-shadow: 0 0 10px rgba(211, 165, 72, 0.3);
}

.round-medal-summary-row.negative {
  border-left-color: #d94e5e;
  background:
    linear-gradient(90deg, rgba(145, 33, 48, 0.24), transparent 54%),
    rgba(9, 4, 6, 0.84);
}

.round-medal-summary-row.negative strong {
  color: #ff7c89;
  text-shadow: 0 0 10px rgba(211, 55, 73, 0.25);
}

.round-medal-summary-row.neutral {
  border-left-color: #7d7775;
}

.round-medal-summary-row.neutral strong {
  color: #aaa19d;
}

.round-medal-summary-row.self {
  border-color: rgba(220, 187, 112, 0.62);
  box-shadow: 0 0 8px rgba(205, 164, 78, 0.08);
}

.round-medal-summary-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.round-medal-summary-name small {
  flex: 0 0 auto;
  padding: 1px 5px;
  border: 1px solid rgba(226, 193, 117, 0.48);
  color: #ead29a;
  font-size: 11px;
  font-weight: 1000;
  line-height: 15px;
  background: rgba(126, 88, 27, 0.22);
}

@keyframes round-medal-summary-in {
  0% {
    opacity: 0;
    transform: translate(-50%, -45%) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes round-medal-summary-out {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -54%) scale(0.98);
  }
}

/* V23: hand-matched card library and off-gameplay live BET carousel. */
.card-library-grid {
  padding: 12px 8px 24px;
  grid-template-columns: repeat(auto-fill, 150px);
  grid-auto-rows: 212px;
  justify-content: center;
  align-content: start;
  gap: 18px;
}

.library-hand-card {
  width: 150px;
  height: 212px;
  min-height: 0;
  margin: 0;
  align-self: start;
  cursor: help;
}

.library-hand-card:hover,
.library-hand-card:focus-visible {
  z-index: 3;
  transform: translateY(-5px) scale(1.03);
}

.active-bet-panel {
  position: absolute;
  z-index: 4;
  left: 1460px;
  top: 650px;
  display: grid;
  width: 288px;
  height: 176px;
  padding: 9px 10px 8px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 23px 112px 18px;
  align-items: stretch;
  gap: 3px;
  overflow: hidden;
}

.live-bet-panel-header {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  padding: 0 3px 3px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(185, 148, 80, 0.32);
}

.live-bet-panel-header span {
  color: #c5aa70;
  font-size: 14px;
  font-weight: 1000;
  line-height: 18px;
}

.live-bet-panel-header strong {
  overflow: hidden;
  color: #f4e4bd;
  font-size: 14px;
  font-weight: 1000;
  line-height: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.active-bet-panel .live-bet-tray {
  position: relative;
  z-index: 2;
  right: auto;
  bottom: auto;
  display: grid;
  width: 100%;
  max-width: none;
  height: 112px;
  min-height: 112px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 112px;
  align-items: stretch;
  justify-content: stretch;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px);
}

.active-bet-panel .live-bet-tray.show {
  opacity: 1;
  transform: none;
}

.active-bet-panel .live-bet-card,
.active-bet-panel .live-bet-card.high-value,
.active-bet-panel .live-bet-slot-1,
.active-bet-panel .live-bet-slot-2,
.active-bet-panel .live-bet-slot-3,
.active-bet-panel .live-bet-slot-4 {
  display: grid;
  width: auto;
  height: 112px;
  min-width: 0;
  padding: 4px;
  grid-column: auto;
  grid-row: auto;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 19px 21px 34px 20px;
  align-self: stretch;
  justify-self: stretch;
  gap: 2px;
}

.active-bet-panel .live-bet-title {
  gap: 3px;
}

.active-bet-panel .live-bet-title strong,
.active-bet-panel .live-bet-title span {
  font-size: 14px;
  line-height: 17px;
}

.active-bet-panel .live-bet-title span {
  max-width: 48px;
}

.active-bet-panel .live-bet-art {
  min-height: 0;
}

.active-bet-panel .live-bet-target {
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 4px;
}

.active-bet-panel .live-bet-agent {
  width: 30px;
  height: 30px;
}

.active-bet-panel .live-bet-target strong,
.active-bet-panel .live-bet-target small {
  font-size: 14px;
  line-height: 15px;
}

.active-bet-panel .live-bet-value,
.active-bet-panel .live-bet-card.high-value .live-bet-value {
  display: grid;
  min-height: 0;
  padding: 1px 3px;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 18px;
  justify-items: stretch;
  gap: 3px;
}

.active-bet-panel .live-bet-value span,
.active-bet-panel .live-bet-value b,
.active-bet-panel .live-bet-card.high-value .live-bet-value span,
.active-bet-panel .live-bet-card.high-value .live-bet-value b {
  overflow: hidden;
  font-size: 14px;
  line-height: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.active-bet-panel .live-bet-value b {
  text-align: right;
}

.active-bet-panel .live-bet-status {
  right: 4px;
  top: 42px;
  padding: 1px 4px;
  font-size: 14px;
  line-height: 15px;
}

.live-bet-empty {
  position: relative;
  z-index: 2;
  display: grid;
  grid-row: 2;
  place-items: center;
  border: 1px solid rgba(145, 105, 103, 0.22);
  color: #aa9c97;
  font-size: 14px;
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(96, 30, 39, 0.08), transparent 54%),
    rgba(6, 4, 5, 0.62);
}

.live-bet-empty[hidden] {
  display: none;
}

.live-bet-pagination {
  position: relative;
  z-index: 3;
  display: flex;
  min-width: 0;
  grid-row: 3;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.live-bet-pagination[hidden] {
  display: none;
}

.live-bet-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.live-bet-page-dot {
  width: 11px;
  height: 11px;
  min-width: 11px;
  padding: 0;
  border: 1px solid rgba(209, 181, 119, 0.72);
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.live-bet-page-dot:hover,
.live-bet-page-dot:focus-visible {
  border-color: #f0d28c;
  transform: scale(1.18);
}

.live-bet-page-dot.active {
  border-color: #f0d28c;
  background: #d4ae5b;
  box-shadow: 0 0 7px rgba(212, 174, 91, 0.38);
}

.live-bet-pagination > strong {
  min-width: 28px;
  color: #d8c18b;
  font-size: 14px;
  font-weight: 1000;
  line-height: 16px;
  text-align: center;
}

/* V25: five-orb luck bonus and next-hit multiplier. */
.gain-feed {
  bottom: 184px;
}

.rival-bet-feed {
  position: absolute;
  z-index: 37;
  left: 22px;
  bottom: 112px;
  width: 340px;
  height: 64px;
  pointer-events: none;
}

.rival-bet-notice {
  position: relative;
  display: grid;
  width: 100%;
  height: 64px;
  padding: 7px 11px 8px 12px;
  grid-template-rows: 20px 1fr;
  gap: 3px;
  overflow: hidden;
  border: 1px solid rgba(203, 165, 88, 0.58);
  border-left: 3px solid #d4ae5b;
  color: #f6f0e8;
  background:
    linear-gradient(90deg, rgba(113, 75, 19, 0.28), transparent 58%),
    rgba(8, 6, 8, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 233, 184, 0.08),
    0 7px 18px rgba(0, 0, 0, 0.42);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  animation: rival-bet-arrive 4.8s cubic-bezier(0.18, 0.82, 0.22, 1) both;
}

.rival-bet-notice.reset {
  border-color: rgba(199, 94, 105, 0.58);
  border-left-color: #b6404d;
  background:
    linear-gradient(90deg, rgba(128, 33, 45, 0.28), transparent 58%),
    rgba(8, 6, 8, 0.86);
}

.rival-bet-notice > header,
.rival-bet-notice > div {
  display: flex;
  min-width: 0;
  align-items: center;
}

.rival-bet-notice > header {
  gap: 9px;
}

.rival-bet-notice > header strong {
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  font-weight: 1000;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rival-bet-notice > header em {
  flex: 0 0 auto;
  color: #f1d482;
  font-size: 14px;
  font-style: normal;
  font-weight: 1000;
  line-height: 20px;
}

.rival-bet-notice.reset > header em {
  color: #ff8792;
}

.rival-bet-notice > div {
  gap: 7px;
}

.rival-bet-notice > div span {
  min-width: 0;
  overflow: hidden;
  color: #ded5c8;
  font-size: 14px;
  font-weight: 900;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rival-bet-notice > div small {
  min-width: 0;
  overflow: hidden;
  color: #b9a88e;
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rival-bet-notice > div b {
  flex: 0 0 auto;
  margin-left: auto;
  color: #f1d482;
  font-size: 15px;
  font-weight: 1000;
  line-height: 20px;
  white-space: nowrap;
}

.rival-bet-notice.leaving {
  animation: rival-bet-leave 540ms ease-in both;
}

@keyframes rival-bet-arrive {
  0% {
    opacity: 0;
    transform: translateX(-24px);
  }
  10%,
  84% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes rival-bet-leave {
  to {
    opacity: 0;
    transform: translateX(-18px);
  }
}

.orb-charge-meter {
  position: absolute;
  z-index: 38;
  left: 22px;
  bottom: 24px;
  width: 240px;
  height: 80px;
  padding: 7px 8px 8px;
  overflow: hidden;
  border: 1px solid rgba(179, 144, 78, 0.54);
  border-left: 3px solid #a33240;
  color: #f8f2e9;
  background:
    linear-gradient(90deg, rgba(88, 24, 32, 0.3), transparent 46%),
    linear-gradient(180deg, rgba(22, 13, 16, 0.84), rgba(4, 3, 5, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 225, 172, 0.08),
    inset 0 0 24px rgba(117, 31, 41, 0.16),
    0 8px 20px rgba(0, 0, 0, 0.44);
  pointer-events: none;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.orb-charge-meter::before {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 28px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(211, 173, 94, 0.76), rgba(211, 173, 94, 0.06));
}

.orb-charge-meter > header {
  position: relative;
  z-index: 2;
  display: flex;
  height: 20px;
  align-items: center;
  justify-content: space-between;
}

.orb-charge-meter > header span {
  color: #d7c6a1;
  font-size: 14px;
  font-weight: 1000;
  line-height: 18px;
}

.orb-charge-meter > header strong {
  color: #f1d482;
  font-size: 16px;
  font-weight: 1000;
  line-height: 18px;
}

.orb-charge-row {
  position: relative;
  z-index: 2;
  display: flex;
  height: 43px;
  margin-top: 2px;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.orb-charge-row img {
  display: block;
  width: 41px;
  height: 41px;
  flex: 0 0 41px;
  object-fit: contain;
  opacity: 0.68;
  filter: saturate(0.72) brightness(0.68) drop-shadow(0 3px 4px rgba(0, 0, 0, 0.74));
  transform: scale(0.92);
}

.orb-charge-row img.charged {
  opacity: 1;
  filter:
    saturate(1.08)
    brightness(1.04)
    drop-shadow(0 0 7px rgba(255, 194, 73, 0.78))
    drop-shadow(0 0 12px rgba(181, 45, 59, 0.54));
  transform: scale(1);
}

.orb-charge-row img.newly-charged {
  animation: orb-charge-arrive 980ms cubic-bezier(0.18, 0.82, 0.25, 1) both;
}

.orb-charge-meter.complete {
  border-color: rgba(237, 201, 118, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 239, 194, 0.18),
    inset 0 0 30px rgba(147, 40, 50, 0.24),
    0 0 18px rgba(220, 173, 74, 0.28);
}

.orb-armed-copy {
  position: absolute;
  z-index: 4;
  right: 7px;
  top: 4px;
  display: flex;
  height: 23px;
  padding: 0 7px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(236, 198, 111, 0.68);
  color: #ead9b2;
  background: rgba(83, 49, 12, 0.88);
  box-shadow: 0 0 10px rgba(211, 162, 63, 0.2);
}

.orb-armed-copy[hidden] {
  display: none;
}

.orb-armed-copy span {
  font-size: 12px;
  font-weight: 1000;
}

.orb-armed-copy strong {
  color: #ffe3a0;
  font-size: 18px;
  font-weight: 1000;
}

.orb-charge-meter.bonus-armed > header > strong {
  visibility: hidden;
}

.orb-slot-overlay,
.orb-payout-overlay {
  position: absolute;
  z-index: 70;
  inset: 0;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.orb-slot-overlay::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at var(--valorant-center-x) var(--valorant-center-y), rgba(117, 34, 43, 0.18), rgba(2, 2, 4, 0.66) 58%, rgba(0, 0, 0, 0.82));
  backdrop-filter: blur(1px);
}

.orb-slot-overlay.show {
  visibility: visible;
  animation: orb-overlay-enter 340ms ease-out both;
}

.orb-slot-rays {
  position: absolute;
  left: var(--valorant-center-x);
  top: var(--valorant-center-y);
  width: 980px;
  height: 980px;
  opacity: 0.28;
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(225, 181, 87, 0.26) 0deg 2deg,
      transparent 2deg 13deg
    );
  filter: blur(1px);
  transform: translate(-50%, -50%);
  animation: orb-rays-turn 14s linear infinite;
  mask-image: radial-gradient(circle, #000 0 39%, transparent 72%);
}

.orb-slot-machine {
  position: absolute;
  left: var(--valorant-center-x);
  top: var(--valorant-center-y);
  display: grid;
  width: 680px;
  min-height: 416px;
  padding: 26px 28px 28px;
  place-items: center;
  border: 1px solid rgba(205, 165, 84, 0.76);
  border-top: 4px solid #b43b49;
  color: #f8f2ea;
  background:
    linear-gradient(90deg, rgba(121, 34, 44, 0.14), transparent 33%, transparent 67%, rgba(121, 34, 44, 0.14)),
    linear-gradient(180deg, rgba(31, 18, 22, 0.9), rgba(7, 5, 8, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 235, 197, 0.12),
    inset 0 0 56px rgba(109, 29, 39, 0.18),
    0 0 0 8px rgba(5, 4, 6, 0.7),
    0 28px 80px rgba(0, 0, 0, 0.74);
  transform: translate(-50%, -50%) scale(0.92);
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.orb-slot-overlay.show .orb-slot-machine {
  animation: orb-machine-enter 520ms cubic-bezier(0.16, 0.84, 0.24, 1) both;
}

.orb-slot-machine::before,
.orb-slot-machine::after {
  position: absolute;
  top: 22px;
  bottom: 22px;
  width: 3px;
  content: "";
  background: linear-gradient(180deg, transparent, #b99450 22%, #922c3a 78%, transparent);
}

.orb-slot-machine::before {
  left: 18px;
}

.orb-slot-machine::after {
  right: 18px;
}

.orb-slot-kicker {
  color: #c4aa72;
  font-size: 15px;
  font-weight: 1000;
  line-height: 18px;
}

.orb-slot-machine h2 {
  margin: 2px 0 14px;
  color: #fff8e9;
  font-size: 42px;
  font-weight: 1000;
  line-height: 48px;
  text-shadow: 0 0 20px rgba(195, 64, 78, 0.34);
}

.orb-slot-reels {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.orb-slot-reel {
  position: relative;
  display: grid;
  height: 146px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(176, 137, 70, 0.7);
  border-top: 3px solid rgba(180, 57, 70, 0.9);
  background:
    linear-gradient(180deg, rgba(99, 29, 39, 0.16), rgba(3, 3, 5, 0.96)),
    #050407;
  box-shadow:
    inset 0 0 28px rgba(0, 0, 0, 0.82),
    inset 0 1px 0 rgba(255, 232, 190, 0.08);
}

.orb-slot-reel::before,
.orb-slot-reel::after {
  position: absolute;
  left: 0;
  right: 0;
  height: 34px;
  z-index: 2;
  content: "";
  background: linear-gradient(180deg, rgba(3, 3, 5, 0.96), transparent);
}

.orb-slot-reel::before {
  top: 0;
}

.orb-slot-reel::after {
  bottom: 0;
  transform: rotate(180deg);
}

.orb-slot-reel strong {
  color: #f2d58f;
  font-size: 76px;
  font-weight: 1000;
  line-height: 1;
  text-shadow:
    0 2px 0 #5f3513,
    0 0 20px rgba(230, 178, 73, 0.32);
}

.orb-slot-reel.spinning strong {
  animation: orb-reel-flicker 184ms linear infinite;
  filter: blur(2px);
}

.orb-slot-reel.stopped {
  animation: orb-reel-stop 420ms cubic-bezier(0.17, 0.86, 0.26, 1) both;
}

.orb-slot-reel.stopped strong {
  color: #fff1bd;
  text-shadow:
    0 2px 0 #684016,
    0 0 28px rgba(244, 196, 96, 0.68);
}

.orb-slot-result {
  display: flex;
  min-height: 88px;
  margin-top: 10px;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(12px) scale(0.88);
}

.orb-slot-result span {
  color: #c8b88f;
  font-size: 24px;
  font-weight: 1000;
  line-height: 1;
}

.orb-slot-result strong {
  color: #ffe6a2;
  font-size: 66px;
  font-weight: 1000;
  line-height: 70px;
  text-shadow:
    0 3px 0 #673819,
    0 0 22px rgba(239, 188, 77, 0.7);
}

.orb-slot-result.show {
  animation: orb-result-arrive 720ms cubic-bezier(0.12, 0.82, 0.2, 1.18) both;
}

.orb-slot-overlay.jackpot::before {
  background:
    radial-gradient(circle at var(--valorant-center-x) var(--valorant-center-y), rgba(224, 173, 66, 0.22), rgba(116, 23, 37, 0.7) 45%, rgba(0, 0, 0, 0.95) 75%);
}

.orb-slot-overlay.jackpot .orb-slot-machine {
  border-color: #f0c76f;
  box-shadow:
    inset 0 0 64px rgba(163, 44, 55, 0.28),
    0 0 0 8px rgba(91, 20, 30, 0.72),
    0 0 74px rgba(245, 194, 82, 0.5);
  animation: orb-jackpot-shock 840ms cubic-bezier(0.14, 0.86, 0.24, 1.12) both;
}

.orb-slot-overlay.jackpot .orb-slot-result strong {
  color: #fff9d8;
  font-size: 88px;
  line-height: 90px;
  text-shadow:
    0 3px 0 #733317,
    0 0 20px #f2c55e,
    0 0 48px rgba(226, 57, 71, 0.76);
}

.orb-payout-overlay::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at var(--valorant-center-x) var(--valorant-center-y), rgba(248, 194, 73, 0.2), transparent 24%),
    radial-gradient(circle at var(--valorant-center-x) var(--valorant-center-y), rgba(149, 29, 43, 0.35), transparent 58%);
}

.orb-payout-overlay.show {
  visibility: visible;
  animation: orb-payout-overlay 2.8s ease both;
}

.orb-payout-ring {
  position: absolute;
  left: var(--valorant-center-x);
  top: var(--valorant-center-y);
  width: 520px;
  height: 520px;
  border: 5px double rgba(246, 207, 117, 0.86);
  border-radius: 50%;
  box-shadow:
    0 0 18px rgba(255, 214, 111, 0.8),
    inset 0 0 32px rgba(196, 47, 62, 0.45);
  transform: translate(-50%, -50%);
}

.orb-payout-ring::before,
.orb-payout-ring::after {
  position: absolute;
  inset: 32px;
  border: 2px solid rgba(210, 57, 72, 0.72);
  border-radius: 50%;
  content: "";
}

.orb-payout-ring::after {
  inset: 74px;
  border-color: rgba(246, 207, 117, 0.58);
}

.orb-payout-overlay.show .orb-payout-ring {
  animation: orb-payout-ring 2.8s cubic-bezier(0.14, 0.78, 0.2, 1) both;
}

.orb-payout-copy {
  position: absolute;
  left: var(--valorant-center-x);
  top: var(--valorant-center-y);
  display: grid;
  min-width: 640px;
  place-items: center;
  color: #fff4d1;
  text-align: center;
  transform: translate(-50%, -50%);
}

.orb-payout-copy span {
  color: #e5c77f;
  font-size: 20px;
  font-weight: 1000;
  line-height: 24px;
}

.orb-payout-copy strong {
  color: #fff4c7;
  font-size: 108px;
  font-weight: 1000;
  line-height: 112px;
  text-shadow:
    0 4px 0 #722b21,
    0 0 26px rgba(255, 205, 96, 0.76),
    0 0 58px rgba(197, 46, 61, 0.58);
}

.orb-payout-copy em {
  color: #fff;
  font-size: 54px;
  font-style: normal;
  font-weight: 1000;
  line-height: 60px;
  text-shadow: 0 0 22px rgba(236, 179, 67, 0.76);
}

.orb-payout-copy::after {
  max-width: 760px;
  margin-top: 6px;
  overflow: hidden;
  content: attr(data-reason);
  color: #d8cbb4;
  font-size: 16px;
  font-weight: 900;
  line-height: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.orb-payout-overlay.show .orb-payout-copy {
  animation: orb-payout-copy 2.8s cubic-bezier(0.14, 0.8, 0.22, 1) both;
}

.orb-payout-overlay.massive .orb-payout-ring {
  width: 680px;
  height: 680px;
  border-width: 7px;
  box-shadow:
    0 0 28px rgba(255, 224, 138, 0.94),
    0 0 80px rgba(213, 49, 67, 0.62),
    inset 0 0 56px rgba(213, 49, 67, 0.52);
}

.orb-payout-overlay.massive .orb-payout-copy strong {
  font-size: 142px;
  line-height: 146px;
}

@keyframes orb-charge-arrive {
  0% {
    opacity: 0.1;
    filter: brightness(2.8) drop-shadow(0 0 28px rgba(255, 232, 166, 1));
    transform: scale(1.72) rotate(-16deg);
  }
  48% {
    opacity: 1;
    transform: scale(0.88) rotate(3deg);
  }
  72% {
    transform: scale(1.1) rotate(-1deg);
  }
  100% {
    filter:
      saturate(1.08)
      brightness(1.04)
      drop-shadow(0 0 7px rgba(255, 194, 73, 0.78))
      drop-shadow(0 0 12px rgba(181, 45, 59, 0.54));
    transform: scale(1);
  }
}

@keyframes orb-overlay-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes orb-machine-enter {
  0% {
    opacity: 0;
    transform: translate(-50%, -44%) scale(0.78);
  }
  72% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.025);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes orb-rays-turn {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes orb-reel-flicker {
  0% {
    opacity: 0.45;
    transform: translateY(-24px) scaleY(1.18);
  }
  50% {
    opacity: 1;
    transform: translateY(20px) scaleY(0.88);
  }
  100% {
    opacity: 0.45;
    transform: translateY(-24px) scaleY(1.18);
  }
}

@keyframes orb-reel-stop {
  0% {
    filter: brightness(2.6);
    transform: scaleY(1.22);
  }
  58% {
    transform: scaleY(0.88);
  }
  100% {
    filter: brightness(1);
    transform: scaleY(1);
  }
}

@keyframes orb-result-arrive {
  0% {
    opacity: 0;
    filter: brightness(3);
    transform: translateY(20px) scale(1.8);
  }
  58% {
    opacity: 1;
    transform: translateY(0) scale(0.9);
  }
  100% {
    opacity: 1;
    filter: brightness(1);
    transform: translateY(0) scale(1);
  }
}

@keyframes orb-jackpot-shock {
  0% {
    filter: brightness(3.4);
    transform: translate(-50%, -50%) scale(1.18);
  }
  44% {
    filter: brightness(1.2);
    transform: translate(-50%, -50%) scale(0.96);
  }
  70% {
    transform: translate(-50%, -50%) scale(1.04);
  }
  100% {
    filter: brightness(1);
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes orb-payout-overlay {
  0% {
    opacity: 0;
  }
  12%,
  76% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes orb-payout-ring {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.18) rotate(-36deg);
  }
  26% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.12) rotate(4deg);
  }
  68% {
    opacity: 0.88;
    transform: translate(-50%, -50%) scale(1) rotate(18deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.72) rotate(36deg);
  }
}

@keyframes orb-payout-copy {
  0% {
    opacity: 0;
    filter: brightness(3);
    transform: translate(-50%, -44%) scale(1.9);
  }
  22% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.88);
  }
  35%,
  76% {
    opacity: 1;
    filter: brightness(1);
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -56%) scale(1.08);
  }
}

.hud-actions {
  gap: 4px;
}

#slotTestButton {
  flex: 0 0 124px;
  width: 124px;
  padding-right: 10px;
  padding-left: 10px;
}

.hand {
  grid-template-columns: repeat(3, 150px);
  justify-content: center;
}

/* V22: make round-victory BET values readable at broadcast scale. */
.round-bet-panel {
  padding: 8px 10px 10px;
  grid-template-rows: 26px repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.round-bet-heading {
  padding: 0 2px 3px;
}

.round-bet-panel .team-bet-button {
  padding: 4px 7px 5px;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 24px minmax(0, 1fr);
  gap: 2px 6px;
}

.round-bet-panel .team-bet-button > span {
  font-size: 20px;
  line-height: 24px;
}

.round-bet-panel .team-bet-button > strong {
  font-size: 16px;
  line-height: 20px;
}

.round-bet-panel .team-bet-round-line {
  min-height: 49px;
  padding: 2px 6px;
  grid-template-columns: 45px minmax(0, 1fr);
  grid-template-rows: 30px 17px;
  column-gap: 7px;
  row-gap: 0;
  font-variant-numeric: tabular-nums;
}

.round-bet-panel .team-bet-round-line small {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
  overflow: visible;
  font-size: 27px;
  line-height: 30px;
  text-overflow: clip;
}

.round-bet-panel .team-bet-round-line b {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  font-size: 28px;
  line-height: 30px;
}

.round-bet-panel .team-bet-round-line i {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  font-size: 17px;
  line-height: 17px;
  text-align: left;
}

.round-bet-panel .team-bet-round-line.is-empty {
  grid-template-rows: minmax(0, 1fr);
}

.round-bet-panel .team-bet-round-line.is-empty small,
.round-bet-panel .team-bet-round-line.is-empty b {
  grid-row: 1;
}

.round-bet-panel .team-bet-round-line.is-empty b {
  align-self: center;
  font-size: 22px;
  line-height: 26px;
}

.round-bet-panel .team-bet-round-line.is-empty i {
  display: none;
}

/* V24: soften phase locks and keep match notices above the betting timer. */
.card {
  transition:
    transform 170ms ease,
    filter 200ms ease,
    opacity 200ms ease,
    border-color 170ms ease;
}

.round-bet-panel .team-bet-button {
  transition:
    transform 90ms ease,
    filter 200ms ease,
    opacity 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease,
    color 200ms ease;
}

.round-bet-panel .team-bet-button > span,
.round-bet-panel .team-bet-button > strong,
.round-bet-panel .team-bet-round-line small,
.round-bet-panel .team-bet-round-line b,
.round-bet-panel .team-bet-round-line i {
  transition:
    color 200ms ease,
    text-shadow 200ms ease;
}

.tactical-map .round-banner {
  top: 81%;
}

.card-burst {
  top: var(--valorant-event-y);
}

/* Three-digit slot results use white-gold light instead of a red screen wash. */
.orb-slot-overlay.jackpot::before {
  background:
    radial-gradient(
      circle at var(--valorant-center-x) var(--valorant-center-y),
      rgba(255, 255, 244, 0.76) 0%,
      rgba(250, 224, 160, 0.42) 24%,
      rgba(111, 84, 43, 0.48) 50%,
      rgba(4, 4, 5, 0.96) 76%
    );
}

.orb-slot-overlay.jackpot .orb-slot-rays {
  opacity: 0.58;
  filter: brightness(1.45) blur(0.5px);
}

.orb-slot-overlay.jackpot .orb-slot-machine {
  border-color: #fff0bd;
  border-top-color: #fff8dc;
  background:
    linear-gradient(90deg, rgba(255, 239, 188, 0.16), transparent 34%, transparent 66%, rgba(255, 239, 188, 0.16)),
    linear-gradient(180deg, rgba(47, 39, 27, 0.97), rgba(8, 7, 6, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 246, 0.56),
    inset 0 0 72px rgba(243, 207, 121, 0.24),
    0 0 0 8px rgba(55, 43, 24, 0.78),
    0 0 42px rgba(255, 249, 222, 0.7),
    0 0 96px rgba(234, 196, 106, 0.58);
}

.orb-slot-overlay.jackpot .orb-slot-result strong {
  color: #fffdf0;
  text-shadow:
    0 3px 0 #72531f,
    0 0 18px #fff8dc,
    0 0 52px rgba(246, 210, 126, 0.92);
}

.orb-payout-overlay.massive::before {
  background:
    radial-gradient(circle at var(--valorant-center-x) var(--valorant-center-y), rgba(255, 255, 246, 0.78), transparent 23%),
    radial-gradient(circle at var(--valorant-center-x) var(--valorant-center-y), rgba(247, 218, 145, 0.48), transparent 56%);
}

.orb-payout-overlay.massive .orb-payout-ring {
  border-color: rgba(255, 247, 215, 0.98);
  box-shadow:
    0 0 28px rgba(255, 250, 225, 0.98),
    0 0 88px rgba(238, 201, 111, 0.82),
    inset 0 0 62px rgba(255, 233, 170, 0.44);
}

.orb-payout-overlay.massive .orb-payout-ring::before {
  border-color: rgba(255, 248, 220, 0.86);
}

.orb-payout-overlay.massive .orb-payout-copy strong {
  color: #fffef4;
  text-shadow:
    0 4px 0 #765722,
    0 0 24px rgba(255, 255, 242, 0.98),
    0 0 68px rgba(242, 207, 122, 0.9);
}

/* Round stake payout preview, compact rival BET alerts, and unified stake colors. */
.hand-sidebar .round-stake-potential {
  display: flex;
  min-width: 0;
  height: 52px;
  margin-top: 4px;
  padding: 8px 9px 7px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid rgba(216, 180, 104, 0.58);
  background: linear-gradient(90deg, rgba(139, 94, 27, 0.22), rgba(29, 16, 17, 0.06));
}

.hand-sidebar .round-stake-potential > span {
  flex: 0 0 auto;
  overflow: visible;
  color: #d8c18b;
  font-size: 17px;
  font-weight: 1000;
  line-height: 22px;
  white-space: nowrap;
}

.hand-sidebar .round-stake-potential > strong {
  min-width: 0;
  overflow: visible;
  color: #fff0bf;
  font-size: 27px;
  font-weight: 1000;
  line-height: 32px;
  text-align: right;
  text-overflow: clip;
  text-shadow: 0 0 12px rgba(220, 178, 84, 0.3);
  white-space: nowrap;
}

.round-bet-panel:not(.combat-locked) .team-bet-round-line.has-bet b {
  color: #dfc788;
}

.rival-bet-feed {
  width: 255px;
}

.rival-bet-notice {
  padding-right: 9px;
  padding-left: 10px;
}

.rival-bet-notice > header {
  gap: 6px;
}

.rival-bet-notice > div {
  gap: 5px;
}

/* Card rarity is independent from genre: it controls draw frequency and the lower frame accent. */
.card {
  --rarity-color: #aeb7c0;
  border-bottom: 3px solid var(--rarity-color);
}

.card.rarity-rare {
  --rarity-color: #55aee2;
}

.card.rarity-epic {
  --rarity-color: #b874df;
}

.card.rarity-legendary {
  --rarity-color: #dfb75e;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 22px rgba(223, 183, 94, 0.1),
    0 8px 17px rgba(0, 0, 0, 0.48),
    0 0 11px rgba(223, 183, 94, 0.18);
}

.card-rarity-label {
  position: absolute;
  z-index: 3;
  right: 5px;
  top: 4px;
  padding: 2px 5px;
  border-right: 2px solid var(--rarity-color);
  color: color-mix(in srgb, var(--rarity-color) 82%, #fff);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  background: rgba(3, 2, 3, 0.78);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* The victory-lock disruption seals only the round-winner controls. */
.round-bet-panel {
  overflow: hidden;
}

.round-bet-panel.victory-locked .team-bet-button,
.round-bet-panel.victory-locked .team-bet-button.active {
  border-color: rgba(88, 72, 65, 0.4);
  border-left-color: rgba(128, 96, 68, 0.58);
  filter: grayscale(0.78) saturate(0.35) brightness(0.32);
  opacity: 0.62;
}

.team-bet-victory-lock {
  position: absolute;
  z-index: 30 !important;
  inset: 0;
  display: grid;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(218, 175, 93, 0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(135, 45, 46, 0.2), transparent 54%),
    linear-gradient(180deg, rgba(8, 6, 7, 0.74), rgba(4, 3, 4, 0.9));
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.team-bet-victory-lock.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.team-bet-victory-lock > img {
  position: absolute;
  left: 50%;
  top: 43%;
  width: 286px;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%) scale(0.88);
  filter:
    drop-shadow(0 7px 7px rgba(0, 0, 0, 0.92))
    drop-shadow(0 0 10px rgba(196, 140, 65, 0.28));
  user-select: none;
}

.team-bet-victory-lock.show > img {
  animation: team-bet-lock-slam 420ms cubic-bezier(0.18, 0.86, 0.26, 1.18) both;
}

.team-bet-victory-lock > div {
  position: absolute;
  right: 9px;
  bottom: 13px;
  left: 9px;
  display: grid;
  min-width: 0;
  padding: 7px 8px 6px;
  gap: 2px;
  border-top: 1px solid rgba(237, 203, 135, 0.7);
  border-bottom: 1px solid rgba(128, 42, 43, 0.7);
  text-align: center;
  background: rgba(7, 5, 6, 0.9);
  box-shadow:
    inset 0 0 13px rgba(122, 31, 36, 0.18),
    0 5px 16px rgba(0, 0, 0, 0.58);
}

.team-bet-victory-lock strong {
  overflow: hidden;
  color: #f5d58f;
  font-size: 18px;
  font-weight: 1000;
  line-height: 21px;
  white-space: nowrap;
  text-shadow:
    0 1px 0 #2a180d,
    0 0 9px rgba(225, 169, 75, 0.38);
}

.team-bet-victory-lock span {
  overflow: hidden;
  color: #d6c8bb;
  font-size: 14px;
  font-weight: 900;
  line-height: 17px;
  white-space: nowrap;
}

@keyframes team-bet-lock-slam {
  0% {
    opacity: 0;
    transform: translate(-50%, -63%) scale(1.16);
  }
  68% {
    opacity: 1;
    transform: translate(-50%, -48%) scale(0.96);
  }
  84% {
    transform: translate(-50%, -53%) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* LUCK CHARGE is a card-only payout boost, shown directly on eligible hand cards. */
.card.luck-bonus {
  border-color: #f5ce73;
  border-top-color: #fff0aa;
  box-shadow:
    inset 0 0 28px rgba(235, 190, 87, 0.16),
    0 7px 18px rgba(0, 0, 0, 0.52),
    0 0 9px rgba(255, 218, 126, 0.72),
    0 0 24px rgba(198, 134, 34, 0.42);
}

.card.luck-bonus::after {
  border-color: rgba(255, 226, 151, 0.68);
  box-shadow:
    inset 0 0 12px rgba(255, 221, 133, 0.2),
    0 0 7px rgba(255, 215, 116, 0.3);
}

.card.luck-bonus .card-art {
  border-color: rgba(255, 224, 144, 0.9);
  filter: saturate(1.08) brightness(1.08);
  box-shadow:
    inset 0 0 20px rgba(255, 216, 111, 0.22),
    0 0 11px rgba(239, 185, 70, 0.45);
}

.card-luck-bonus {
  position: absolute;
  z-index: 9;
  left: 7px;
  right: 7px;
  top: 42px;
  display: grid;
  height: 65px;
  padding: 6px 8px 4px;
  place-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 233, 174, 0.76);
  color: #fff7d4;
  text-align: center;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 0 18%, rgba(255, 247, 207, 0.2) 34%, transparent 48%),
    linear-gradient(180deg, rgba(87, 55, 10, 0.6), rgba(25, 14, 3, 0.9));
  box-shadow:
    inset 0 0 18px rgba(255, 213, 99, 0.24),
    0 0 12px rgba(232, 177, 61, 0.38);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.card-luck-bonus small {
  color: #f2d690;
  font-size: 14px;
  font-weight: 1000;
  line-height: 15px;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.92);
}

.card-luck-bonus strong {
  color: #fff9dc;
  font-size: 32px;
  font-weight: 1000;
  line-height: 34px;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow:
    0 2px 0 #765017,
    0 0 10px rgba(255, 238, 180, 0.8),
    0 0 22px rgba(235, 176, 56, 0.58);
}

.live-bet-card.luck-bonus {
  border-color: rgba(242, 199, 102, 0.82);
  box-shadow:
    inset 0 0 18px rgba(225, 172, 57, 0.12),
    0 0 9px rgba(225, 172, 57, 0.32);
}

.card.genre-disruption .card-art.card-art-victory-lock {
  background:
    linear-gradient(180deg, rgba(27, 8, 10, 0.22), rgba(4, 3, 4, 0.68)),
    url("./assets/ui-lock/luck-team-bet-lock.png") center 42% / 146% auto no-repeat,
    linear-gradient(180deg, rgba(49, 26, 19, 0.96), rgba(8, 5, 6, 0.99));
}

/* Compact rule readouts and lighter in-match notification plates. */
.round-bet-heading {
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 4px;
}

.round-bet-heading strong {
  font-size: 15px;
  text-align: center;
}

.round-bet-heading em {
  display: block;
  justify-self: end;
  color: #d8bd7a;
  font-size: 14px;
  font-weight: 900;
}

.card-titlebar h3,
.card h3 {
  max-width: calc(100% - 28px);
  margin-inline: auto;
  font-size: 15px;
}

.card-target-icon {
  z-index: 10;
  right: 2px;
  top: 0;
  width: 22px;
  height: 22px;
}

.card-rarity-label {
  min-width: 24px;
  padding: 2px 4px;
  border-right: 0;
  color: var(--rarity-color);
  font-size: 14px;
  letter-spacing: 0;
  text-align: right;
  background: rgba(3, 2, 3, 0.66);
}

.round-banner,
.card-burst {
  background: rgba(3, 8, 12, 0.3);
  backdrop-filter: blur(3px);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.16);
}
