:root {
  --bg: #070506;
  --panel: #151010;
  --panel-2: #211515;
  --gold: #f2c15d;
  --gold-soft: #ffdf91;
  --red: #a91f24;
  --red-bright: #e3353b;
  --text: #fff4df;
  --muted: #c9ad82;
  --border: rgba(242, 193, 93, 0.36);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(242, 193, 93, 0.16), transparent 34rem),
    linear-gradient(135deg, #050303 0%, #160b0b 45%, #050303 100%);
}

button {
  font: inherit;
}

.app-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px 16px 178px;
}

.site-header {
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 14px 0 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold-soft);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 4px;
  font-size: clamp(2.1rem, 9vw, 5.1rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 3px 0 #4a2100, 0 0 26px rgba(242, 193, 93, 0.25);
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-shell {
  display: grid;
  gap: 16px;
}

.intro-panel,
.round-status-panel,
.result-panel,
.flavour-panel,
.mobile-card-stage,
.duel-card,
.winner-video-panel {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(43, 23, 20, 0.94), rgba(11, 8, 8, 0.96));
  box-shadow: var(--shadow);
}

.intro-panel {
  padding: 18px;
  text-align: center;
}

.intro-panel h2 {
  margin-bottom: 8px;
  color: var(--gold-soft);
  font-size: clamp(1.15rem, 4.5vw, 2rem);
}

.intro-panel p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
}


.round-status-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}

.round-status-panel h2 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(1.25rem, 4vw, 2.2rem);
  line-height: 1;
  text-transform: uppercase;
}

.score-board {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-soft);
  font-size: clamp(1rem, 3vw, 1.45rem);
  font-weight: 1000;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.round-result-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(242, 193, 93, 0.24);
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-card-stage {
  display: none;
}

.card-status-row,
.duel-card-header,
.video-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(242, 193, 93, 0.45);
  border-radius: 999px;
  color: #1c0c00;
  background: linear-gradient(180deg, #ffe7a8, #d99a2b);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-badge.danger {
  color: #fff7e8;
  border-color: rgba(227, 53, 59, 0.65);
  background: linear-gradient(180deg, #e84d53, #851317);
}

.tap-hint {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-card-frame,
.duel-card-frame,
.winner-video-frame {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(242, 193, 93, 0.18);
  background:
    radial-gradient(circle at 50% 0%, rgba(242, 193, 93, 0.14), transparent 48%),
    #090707;
}

.hero-card-image,
.duel-card-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
  user-select: none;
  -webkit-user-drag: none;
}

.desktop-duel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.duel-card {
  min-width: 0;
  padding: 16px;
}

.duel-card-frame {
  margin: 12px 0 14px;
  aspect-ratio: 2 / 3;
}

.duel-card-frame img {
  max-height: 68vh;
}

.duel-card h2,
.mobile-card-copy h2 {
  margin-bottom: 4px;
  color: var(--gold-soft);
  font-size: clamp(1.25rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.duel-card p,
.mobile-card-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
}


.visible-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.visible-stat-chip {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 6px;
  border: 1px solid rgba(242, 193, 93, 0.24);
  border-radius: 14px;
  color: var(--gold-soft);
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  text-align: center;
}

.visible-stat-chip.is-selected {
  color: #210c00;
  border-color: rgba(255, 231, 168, 0.72);
  background: linear-gradient(180deg, #ffe7a8, #d49321);
  box-shadow: 0 10px 26px rgba(242, 193, 93, 0.16);
}

.visible-stat-chip.is-stronger {
  border-color: rgba(97, 211, 126, 0.46);
}

.visible-stat-chip.is-weaker {
  border-color: rgba(227, 53, 59, 0.44);
}

.visible-stat-chip-label {
  overflow: hidden;
  font-size: 0.65rem;
  font-weight: 1000;
  letter-spacing: 0.07em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.visible-stat-chip-value {
  font-size: clamp(1.05rem, 2.7vw, 1.55rem);
  font-weight: 1000;
  line-height: 1;
}

.visible-stat-chip-delta {
  min-height: 0.7rem;
  color: currentColor;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0.8;
}


.visible-stat-chip.is-hidden-stat {
  cursor: default;
  color: rgba(255, 244, 223, 0.72);
  border-color: rgba(242, 193, 93, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 35%),
    rgba(0, 0, 0, 0.34);
}

.visible-stat-chip.is-hidden-stat .visible-stat-chip-value {
  letter-spacing: 0.06em;
}

.visible-stat-chip.is-hidden-stat .visible-stat-chip-delta {
  opacity: 0.5;
}

.visible-stat-chip:active {
  transform: translateY(1px);
}

.versus {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(242, 193, 93, 0.5);
  border-radius: 50%;
  color: var(--gold);
  background: radial-gradient(circle, #481719 0%, #120808 70%);
  font-size: 1.4rem;
  font-weight: 1000;
  box-shadow: 0 0 40px rgba(242, 193, 93, 0.17);
}

.winner-video-panel {
  padding: 16px;
}

.winner-video-panel.is-hidden {
  display: none;
}

.video-header-row h2 {
  margin-bottom: 0;
  color: var(--gold);
  font-size: clamp(1.25rem, 5vw, 2.2rem);
  line-height: 1;
  text-transform: uppercase;
}

.winner-video-frame {
  margin-top: 12px;
  min-height: 220px;
  aspect-ratio: 16 / 9;
}

.winner-video-frame.is-portrait {
  aspect-ratio: 9 / 16;
}

.winner-video-frame.is-square {
  aspect-ratio: 1 / 1;
}

.winner-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  background: #050303;
  object-fit: cover;
}

.video-fallback {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.video-fallback.is-hidden {
  display: none;
}

.mini-button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(242, 193, 93, 0.36);
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgba(25, 13, 13, 0.92);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result-panel {
  padding: 18px;
}

.result-panel.is-hidden {
  display: none;
}

.result-panel h2 {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: clamp(1.5rem, 7vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
}

.result-panel p {
  color: var(--muted);
}

.stat-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.stat-breakdown > div {
  padding: 14px;
  border: 1px solid rgba(242, 193, 93, 0.22);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.22);
}

.stat-breakdown h3 {
  margin-bottom: 10px;
  color: var(--gold-soft);
  text-transform: uppercase;
}

.stat-breakdown ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.stat-breakdown strong {
  color: var(--text);
}

.flavour-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  overflow: hidden;
}

.flavour-panel > div {
  padding: 16px;
  border-right: 1px solid rgba(242, 193, 93, 0.18);
}

.flavour-panel > div:last-child {
  border-right: 0;
}

.flavour-panel h3 {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flavour-panel p {
  margin-bottom: 0;
  color: var(--muted);
}


.stat-choice-bar {
  position: fixed;
  right: 0;
  bottom: calc(72px + var(--safe-bottom));
  left: 0;
  z-index: 21;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 8px 16px;
  border-top: 1px solid rgba(242, 193, 93, 0.2);
  background: rgba(7, 5, 6, 0.9);
  backdrop-filter: blur(16px);
}

.stat-choice-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-choice-label {
  flex: 0 0 auto;
  color: var(--gold-soft);
  font-size: 0.74rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-choice-buttons {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.stat-choice-buttons::-webkit-scrollbar {
  display: none;
}

.stat-choice-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(242, 193, 93, 0.28);
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgba(25, 13, 13, 0.92);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-choice-button.is-active {
  color: #210c00;
  border-color: rgba(255, 231, 168, 0.7);
  background: linear-gradient(180deg, #ffe7a8, #d49321);
  box-shadow: 0 10px 26px rgba(242, 193, 93, 0.18);
}

.stat-choice-button:active {
  transform: translateY(1px);
}

.sticky-actions {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 10px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  border-top: 1px solid rgba(242, 193, 93, 0.22);
  background: rgba(7, 5, 6, 0.9);
  backdrop-filter: blur(16px);
}

.primary-button,
.secondary-button {
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 1000;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.primary-button {
  color: #210c00;
  background: linear-gradient(180deg, #ffe7a8, #d49321);
  box-shadow: 0 12px 34px rgba(242, 193, 93, 0.22);
}

.secondary-button {
  color: var(--gold-soft);
  border-color: rgba(242, 193, 93, 0.36);
  background: rgba(25, 13, 13, 0.92);
}

.primary-button:active,
.secondary-button:active,
.mobile-card-stage:active,
.mini-button:active {
  transform: translateY(1px);
}

.site-footer {
  padding: 18px 0 0;
  text-align: center;
  color: rgba(201, 173, 130, 0.78);
  font-size: 0.8rem;
}

.is-swapping {
  animation: cardSwap 180ms ease-out;
}

@keyframes cardSwap {
  from {
    opacity: 0.35;
    transform: scale(0.985) translateY(5px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Mobile polish: one-card view, minimal scrolling, sticky controls */
@media (max-width: 760px) {
  .app-shell {
    padding: 10px 10px 168px;
  }

  .site-header {
    padding: 8px 0 10px;
  }

  .tagline {
    font-size: 0.76rem;
  }

  .intro-panel {
    padding: 12px 14px;
  }

  .round-status-panel {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
  }

  .score-board {
    width: 100%;
    justify-content: space-between;
    font-size: 0.95rem;
  }



  .intro-panel p {
    font-size: 0.9rem;
  }

  .desktop-duel {
    display: none;
  }

  
.round-status-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}

.round-status-panel h2 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(1.25rem, 4vw, 2.2rem);
  line-height: 1;
  text-transform: uppercase;
}

.score-board {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-soft);
  font-size: clamp(1rem, 3vw, 1.45rem);
  font-weight: 1000;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.round-result-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(242, 193, 93, 0.24);
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-card-stage {
    display: grid;
    gap: 10px;
    padding: 10px;
  }

  .hero-card-frame {
    min-height: 0;
    aspect-ratio: 2 / 3;
  }

  .hero-card-image {
    width: min(92vw, 420px);
    max-height: 62vh;
  }

  .mobile-card-copy {
    padding: 0 4px 4px;
  }

  .mobile-card-copy h2 {
    font-size: clamp(1.22rem, 7vw, 2rem);
  }


  .visible-stats {
    grid-template-columns: repeat(5, minmax(62px, 1fr));
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .visible-stats::-webkit-scrollbar {
    display: none;
  }

  .mobile-visible-stats {
    margin-top: 12px;
  }

  .visible-stat-chip {
    padding: 8px 7px;
  }

  .visible-stat-chip-label {
    font-size: 0.6rem;
  }

  .visible-stat-chip-value {
    font-size: 1.18rem;
  }


  .winner-video-panel,
  .result-panel {
    padding: 14px;
  }

  .winner-video-panel {
    border-radius: 26px;
    background:
      radial-gradient(circle at 50% 0%, rgba(242, 193, 93, 0.18), transparent 55%),
      linear-gradient(180deg, rgba(55, 25, 20, 0.98), rgba(11, 8, 8, 0.98));
  }

  .winner-video-frame {
    width: 100%;
    min-height: 0;
    max-height: 68svh;
    aspect-ratio: 16 / 9;
  }

  .winner-video-frame.is-portrait {
    width: min(100%, 430px);
    max-height: 68svh;
    margin-right: auto;
    margin-left: auto;
    aspect-ratio: 9 / 16;
  }

  .winner-video-frame.is-square {
    width: min(100%, 430px);
    max-height: 62svh;
    margin-right: auto;
    margin-left: auto;
    aspect-ratio: 1 / 1;
  }

  .winner-video-frame video {
    object-fit: cover;
  }

  .video-header-row {
    align-items: center;
  }

  .stat-breakdown {
    grid-template-columns: 1fr;
  }

  .flavour-panel {
    grid-template-columns: 1fr;
  }

  .flavour-panel > div {
    padding: 13px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(242, 193, 93, 0.18);
  }

  .flavour-panel > div:last-child {
    border-bottom: 0;
  }

  
.stat-choice-bar {
  position: fixed;
  right: 0;
  bottom: calc(72px + var(--safe-bottom));
  left: 0;
  z-index: 21;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 8px 16px;
  border-top: 1px solid rgba(242, 193, 93, 0.2);
  background: rgba(7, 5, 6, 0.9);
  backdrop-filter: blur(16px);
}

.stat-choice-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-choice-label {
  flex: 0 0 auto;
  color: var(--gold-soft);
  font-size: 0.74rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-choice-buttons {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.stat-choice-buttons::-webkit-scrollbar {
  display: none;
}

.stat-choice-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(242, 193, 93, 0.28);
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgba(25, 13, 13, 0.92);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-choice-button.is-active {
  color: #210c00;
  border-color: rgba(255, 231, 168, 0.7);
  background: linear-gradient(180deg, #ffe7a8, #d49321);
  box-shadow: 0 10px 26px rgba(242, 193, 93, 0.18);
}

.stat-choice-button:active {
  transform: translateY(1px);
}

.sticky-actions {
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: 8px;
    padding: 10px 10px calc(10px + var(--safe-bottom));
  }

  .primary-button,
  .secondary-button {
    min-height: 46px;
    padding: 0 10px;
    font-size: 0.78rem;
  }
}

@media (max-width: 390px) {
  .stat-choice-bar {
    bottom: calc(120px + var(--safe-bottom));
  }


  
.stat-choice-bar {
  position: fixed;
  right: 0;
  bottom: calc(72px + var(--safe-bottom));
  left: 0;
  z-index: 21;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 8px 16px;
  border-top: 1px solid rgba(242, 193, 93, 0.2);
  background: rgba(7, 5, 6, 0.9);
  backdrop-filter: blur(16px);
}

.stat-choice-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-choice-label {
  flex: 0 0 auto;
  color: var(--gold-soft);
  font-size: 0.74rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-choice-buttons {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.stat-choice-buttons::-webkit-scrollbar {
  display: none;
}

.stat-choice-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(242, 193, 93, 0.28);
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgba(25, 13, 13, 0.92);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-choice-button.is-active {
  color: #210c00;
  border-color: rgba(255, 231, 168, 0.7);
  background: linear-gradient(180deg, #ffe7a8, #d49321);
  box-shadow: 0 10px 26px rgba(242, 193, 93, 0.18);
}

.stat-choice-button:active {
  transform: translateY(1px);
}

.sticky-actions {
    grid-template-columns: 1fr 1fr;
  }

  #toggleCardButton {
    grid-column: 1 / 2;
  }

  #battleButton {
    grid-column: 2 / 3;
  }

  #newBattleButton {
    grid-column: 1 / 3;
  }

  .hero-card-image {
    max-height: 58vh;
  }
}


/* Instant full-screen-style victory takeover.
   This avoids mobile browser fullscreen restrictions and removes the need to scroll. */
.victory-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100dvh;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 14px calc(14px + env(safe-area-inset-bottom, 0px));
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(242, 193, 93, 0.2), transparent 44%),
    linear-gradient(180deg, #050303 0%, #170909 55%, #050303 100%);
}

.victory-overlay.is-hidden {
  display: none;
}

.victory-overlay-top,
.victory-overlay-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.victory-overlay-top h2 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(1.6rem, 8vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(242, 193, 93, 0.24);
}

.overlay-skip-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(242, 193, 93, 0.48);
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgba(10, 5, 5, 0.72);
  cursor: pointer;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.victory-overlay-video {
  align-self: center;
  justify-self: center;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100%;
  border: 1px solid rgba(242, 193, 93, 0.24);
  border-radius: 22px;
  background: #000;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.72);
  object-fit: contain;
}

.victory-overlay-video.is-portrait {
  width: min(100%, 520px);
  height: 100%;
  object-fit: contain;
}

.victory-overlay-video.is-square {
  width: min(100%, 620px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.victory-overlay-video.is-landscape {
  width: 100%;
  height: auto;
  max-height: 74dvh;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.victory-overlay-bottom {
  justify-content: center;
  padding-top: 10px;
  text-align: center;
}

.victory-overlay-bottom p {
  margin: 0;
  color: var(--gold-soft);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* While the victory overlay is active, lock the page underneath. */
body.victory-lock {
  overflow: hidden;
}
