/* The broadcast frame uses the red and blue corners as its color accents. */
:root {
  --bg: #080a17;
  --surface: #101426;
  --line: #29344e;
  --muted: #acb8d4;
  --red: #ff7b92;
  --blue: #70c8ff;
  --accent: #c9ff8b;
}

body {
  background:
    radial-gradient(ellipse 520px 395px at 0 156px, #251432 0%, transparent 90%),
    radial-gradient(ellipse 670px 470px at 100% 192px, #14254d 0%, transparent 88%),
    var(--bg);
}
.masthead { background: #0d1020; }
.mast-inner, .shell { width: min(1440px, calc(100% - 72px)); }
.mast-inner { height: 59px; }
.wordmark { font-size: 30px; }
.wordmark > span:last-child { color: #b8dcff; }
.logo-glyph i { background: #87c9ff; }
.navbar { gap: 23px; }
.navbar .primary { box-shadow: none; }

.intro {
  display: grid;
  grid-template-columns: 1fr minmax(215px, 300px);
  grid-template-areas: 'label summary' 'title summary';
  align-items: end;
  gap: 3px 24px;
  padding: 18px 0 17px;
}
.intro .eyebrow {
  grid-area: label;
  color: #b2caff;
  font-size: 10px;
}
.intro h1 {
  grid-area: title;
  margin: 0;
  font-size: clamp(46px, 5.8vw, 78px);
  line-height: .91;
}
.intro h1 em { color: #8bc9ff; }
.intro .lede { grid-area: summary; padding: 0 0 2px 16px; border: solid #485979; border-width: 0 0 0 1px; font-size: 13px; }

.broadcast { grid-template-columns: minmax(0, 1fr) clamp(258px, 23vw, 326px); gap: 12px; }
.ring-card, .ringside { border-radius: 10px; border-color: #35425d; }
.ring-card {
  box-shadow: 0 14px 40px #020410bb, -8px 0 34px -23px #ff527b,
    8px 0 34px -23px #4ea5ff;
}
.ring-top, .panel-head { background: #151a2e; min-height: 43px; padding: 0 13px; }
.ring-top {
  background:
    linear-gradient(90deg, #ff7995 0%, #94456f 19%, #34456c 48%, #427cbd 79%, #57b8ff 100%) top / 100% 2px no-repeat,
    #151a2e;
  font-size: 10px;
}
.ring-name { gap: 7px; min-width: 0; color: #e9eefc; }
#mode-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#round-top { color: #adbcdf; white-space: nowrap; letter-spacing: .06em; }
.ring-top .pulse { flex: none; width: 6px; height: 6px; box-shadow: 0 0 8px #c8ff8071; }
.broadcast-tools { flex: none; }
.broadcast-tools button, #pace {
  min-height: 31px;
  padding: 4px 8px;
  border: 1px solid #3b4b6d;
  border-radius: 5px;
  color: #d5e2ff;
  background: #141d35;
  font: 600 10px/1.12 var(--mono);
  letter-spacing: 0;
}
.broadcast-tools button:hover, #pace:hover { border-color: #80b7fa; background: #233554; color: #f2f7ff; }
.broadcast-tools button[aria-pressed="true"], #pace[aria-pressed="true"] { border-color: #78a5d3; color: #a8d8ff; background: #233554; }

/* The canvas fills the viewport below the compact introduction. */
.ring { height: clamp(380px, calc(100svh - 272px), 560px); }
.ring::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: '';
  pointer-events: none;
  box-shadow: inset 9px 0 21px -17px #ff6188,
    inset -10px 0 21px -17px #5cbfff, inset 0 -6px 10px -10px #b1d2ff;
  background: linear-gradient(90deg, #ff618d 0%, #703a72 23%, #769fda78 50%, #4268b0 77%, #57b5ff 100%) bottom / 100% 2px no-repeat;
}
.ring::after {
  background:
    linear-gradient(180deg, #080e20d6 0%, #0a102971 17%, transparent 34% 77%, #070b20b5 100%),
    linear-gradient(90deg, #06091e60, transparent 16% 84%, #06091e60);
}
.hud { inset: 12px 14px auto; grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr); align-items: start; gap: 12px; }
.corner {
  padding: 8px 10px 7px;
  border: 1px solid color-mix(in srgb, var(--corner) 32%, #26314d);
  border-radius: 7px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--corner) 15%, #16172be6), #0f1b33bb);
}
.corner.blue {
  background: linear-gradient(270deg, color-mix(in srgb, var(--corner) 15%, #121a30e6), #0f1b33bb);
}
.corner-caption { font-size: 10px; text-shadow: 0 1px 2px #080916; }
.corner-caption span:last-child { color: #f7f9ff; font-variant-numeric: tabular-nums; }
.fighter { margin: 2px 0 3px; font-size: clamp(24px, 3.15vw, 40px); letter-spacing: .013em; }
.fighter-platform { margin: 0 0 4px; color: #cad4ed; }
.bar.health {
  position: relative;
  height: 9px;
  border: 1px solid #ffffff34;
  border-radius: 3px;
  background: #080e1fd9;
}
.bar.health::after {
  position: absolute;
  inset: 0;
  content: '';
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), #1713224d calc(10% - 1px) 10%);
  pointer-events: none;
}
.health i {
  background: linear-gradient(180deg, color-mix(in srgb, var(--corner) 78%, white), var(--corner) 39%, color-mix(in srgb, var(--corner) 74%, #20264e));
  box-shadow: inset 0 1px #ffffff63, 0 0 11px color-mix(in srgb, var(--corner) 42%, transparent);
}
.bar.stamina { margin-top: 3px; height: 3px; border-radius: 1px; background: #0b1327; }
.bar.stamina i { background: #bfcdea; opacity: 1; }
.meter { gap: 4px; margin-top: 5px; }
.meter-label { color: #bdcce7; }
.gem { width: 12px; height: 5px; background: #4c5877; }
.gem.lit { background: var(--corner); box-shadow: 0 0 7px color-mix(in srgb, var(--corner) 50%, transparent); }
.round-tag {
  width: 54px;
  margin-top: 1px;
  padding: 6px 0 5px;
  border-color: #799dcd;
  border-radius: 6px;
  background: linear-gradient(#202a48, #101b35);
  box-shadow: 0 0 12px #5baaff35, 0 2px 9px #03081790;
}
.round-tag strong { display: block; margin-top: 3px; font-size: 31px; line-height: .85; }

/* Calls sit below the fighters during the bout and grow for final results. */
.center-call {
  inset: auto auto 43px 50%;
  width: min(320px, 62%);
  padding: 6px 8px 7px;
  transform: translateX(-50%);
  border-radius: 6px;
  background: linear-gradient(90deg, transparent, #090b1bea 25%, #090b1bea 75%, transparent);
}
.call-kicker { color: #a8d8ff; font-size: 10px; letter-spacing: .12em; }
.fight-title {
  margin: 3px 0 4px;
  font-size: clamp(27px, 3.4vw, 47px);
  text-shadow: 0 2px 4px #020315, 0 4px 10px #040616;
}
.call-detail { font-size: 10px; }
.center-call[data-call="exchange"] .fight-title { font-size: clamp(23px, 2.65vw, 36px); }
.center-call[data-call="break"] .fight-title { color: #c2dfff; }
.center-call[data-call="result"], .motion-finish .center-call {
  width: min(480px, 86%);
  bottom: 59px;
  padding: 10px 4px 13px;
  background: linear-gradient(90deg, transparent, #0a0b1aeb 19%, #0a0b1aeb 81%, transparent);
}
.center-call[data-call="result"] .fight-title, .motion-finish .fight-title {
  font-size: clamp(38px, 6vw, 82px);
  color: #fff4e3;
  text-shadow: 0 2px 0 #a84364, 0 6px 0 #311429, 0 8px 21px #10061bc9;
}
.motion-windup .center-call, .motion-contact .center-call { opacity: .1; }
.motion-finish .center-call { opacity: 1; }
.round-track { bottom: 18px; gap: 9px; }
.round-track i { width: 12px; height: 3px; background: #97aed975; }
.round-track i.done { background: #88d7ff; box-shadow: 0 0 8px #7acbff88; }
.motion-move, .motion-result { padding: 4px 7px; border-radius: 4px; }
.motion-damage { text-shadow: 0 2px 0 #151327, 0 4px 3px #1c1637, 0 0 11px var(--fx); }
.motion-damage.big { text-shadow: 0 3px 0 #31162d, 0 0 12px var(--fx); }
.motion-burst { width: 80px; height: 80px; }
.motion-burst.big { width: 112px; height: 112px; }

.controls { min-height: 58px; padding: 8px 12px; background: #11192b; }
.controls-main { gap: 6px; }
.controls .button { min-height: 38px; padding-block: 6px; }
.controls .outline { background: #17243b; border-color: #354564; }
.controls .outline:hover { background: #24385a; border-color: #5172a4; }
#fight-status { line-height: 1.3; text-align: end; }

.panel-head h2 { color: #ebf2ff; font-size: 15px; }
.feed-icon { color: #9ecdff; }
.fight-read { border-left: 2px solid #659ae2; background: linear-gradient(90deg, #202e49, #151e36); padding: 9px 11px; }
.fight-read strong { color: #a7d5ff; }
.broadcast .feed { min-height: 126px; padding: 10px 11px 4px; }
.feed-entry { border-color: #2c3a57; }
.entry-icon { background: #253b5a; }
.scoreboard { padding: 11px 12px; background: #111a31; }
.score-title span { color: #b2c0e0; }
dialog { background: #11182c; box-shadow: 0 20px 65px #030511ba; }
#entry-dialog { width: min(656px, calc(100% - 28px)); }
.roster-grid { gap: 7px; }
.roster-card {
  gap: 5px;
  min-height: 135px;
  padding: 7px 4px 9px;
  border-color: #3e4d70;
  background: radial-gradient(ellipse at 50% 42%, color-mix(in srgb, var(--mascot-color) 27%, #151b32), #11172c 75%);
}
.roster-card:has(:checked) { border-color: var(--mascot-color); box-shadow: inset 0 0 0 1px var(--mascot-color); }
.roster-art { width: min(100%, 150px); height: 96px; filter: drop-shadow(0 3px 5px #070b2380); }
.roster-copy strong { font-size: 14px; }

@media (max-width: 1120px) {
  .mast-inner, .shell { width: calc(100% - 48px); }
  .intro { grid-template-columns: 1fr minmax(200px, 245px); }
  .ring { height: clamp(370px, calc(100svh - 272px), 478px); }
  .hud { inset: 10px 11px auto; gap: 9px; }
}
@media (max-width: 820px) {
  .broadcast { grid-template-columns: 1fr; }
  .intro { grid-template-areas: 'label' 'title' 'summary'; grid-template-columns: 1fr; gap: 5px; }
  .intro .lede { padding: 0; border: 0; }
  .intro h1 { font-size: clamp(46px, 7.7vw, 68px); }
  .ring { height: clamp(335px, 63vw, 480px); }
  .broadcast .feed { max-height: 210px; }
}
@media (max-width: 520px) {
  .mast-inner, .shell { width: calc(100% - 24px); }
  .mast-inner { height: 52px; }
  .masthead .button { min-height: 36px; }
  .wordmark { font-size: 25px; }
  .intro { padding: 14px 0 13px; }
  .intro .eyebrow { font-size: 9px; }
  .intro h1 { font-size: clamp(36px, 9.9vw, 50px); line-height: .93; }
  .intro h1 br { display: none; }
  .intro .lede { font-size: 12px; line-height: 1.38; }
  .ring-top { min-height: 43px; gap: 5px; padding: 5px 7px; font-size: 8px; }
  .ring-name { gap: 4px; }
  #round-top { white-space: normal; font-size: 8px; text-align: center; }
  .broadcast-tools { gap: 3px; }
  .broadcast-tools button, #pace { min-height: 30px; padding: 3px 5px; font-size: 9px; }
  .ring { height: clamp(300px, 85vw, 370px); }
  .hud { inset: 7px 7px auto; grid-template-columns: minmax(0, 1fr) 35px minmax(0, 1fr); gap: 5px; }
  .corner { padding: 5px 6px; }
  .corner-caption { gap: 3px; font-size: 8px; letter-spacing: 0; }
  .fighter { font-size: clamp(22px, 6vw, 29px); }
  .fighter-platform { min-height: 0; margin: 0 0 3px; font-size: 7px; letter-spacing: .01em; }
  .bar.health { height: 7px; }
  .meter { gap: 3px; margin-top: 4px; }
  .meter-label { font-size: 7px; }
  .gem { width: 8px; height: 4px; }
  .round-tag { width: 35px; padding: 4px 0; }
  .round-tag span { font-size: 7px; letter-spacing: .03em; }
  .round-tag strong { font-size: 22px; }
  .center-call { bottom: 30px; width: 69%; padding: 3px 4px 5px; }
  .call-kicker, .call-detail { font-size: 9px; }
  .fight-title { margin: 3px 0; }
  .center-call[data-call="result"], .motion-finish .center-call { bottom: 39px; }
  .round-track { bottom: 13px; gap: 7px; }
  .round-track i { width: 9px; }
  .motion-burst { width: 68px; height: 68px; }
  .motion-burst.big { width: 92px; height: 92px; }
  .controls { padding: 7px 8px; }
  .controls .button { min-height: 40px; }
  #fight-status { font-size: 8px; letter-spacing: .04em; }
  .roster-card { min-height: 105px; }
  .roster-art { height: 67px; }
  .roster-copy strong { font-size: 11px; }
}

@media (max-width: 365px) {
  .ring-top { flex-wrap: wrap; }
  #round-top { flex: 1; text-align: right; }
  .broadcast-tools { width: 100%; justify-content: flex-end; border-top: 1px solid #2c3854; padding-top: 4px; }
}

.range-strip, #range-read {
  color: #dceaff;
  border: 1px solid #6089b6;
  border-radius: 4px;
  padding: 4px 7px;
  background: #101b31e6;
  font: 600 9px/1.25 var(--mono);
  letter-spacing: .06em;
  text-align: center;
}
.ring #range-read {
  position: absolute;
  z-index: 4;
  left: 12px;
  bottom: 10px;
  max-width: 37%;
  overflow-wrap: anywhere;
}
#tactical-report {
  margin-top: 12px;
  padding-top: 9px;
  color: #cbd8ef;
  border-top: 1px solid #34496a;
  font-size: 11px;
}
#tactical-report h2, #tactical-report h3 { color: #e5f0ff; font-size: 13px; margin-bottom: 5px; }
#tactical-report caption { text-align: left; padding-bottom: 5px; font-weight: 700; }
#tactical-report th, #tactical-report td { padding-block: 4px; }
#tactical-report p + p { margin-top: 4px; }
@media (max-width: 520px) {
  .ring #range-read {
    left: 50%;
    bottom: 13px;
    width: max-content;
    max-width: calc(100% - 20px);
    transform: translateX(-50%);
    font-size: 8px;
    padding: 3px 6px;
  }
  .ring:has(#range-read:not([hidden]):not(:empty)) .round-track { bottom: 5px; }
  .ring:has(#range-read:not([hidden]):not(:empty)) .center-call { bottom: 38px; }
  .ring:has(#range-read:not([hidden]):not(:empty)) .center-call[data-call="result"],
  .ring:has(#range-read:not([hidden]):not(:empty)).motion-finish .center-call { bottom: 43px; }
}
.navbar .games-link {
  color: #c4e8ff;
  font-weight: 700;
}

@media (max-width: 485px) {
  .navbar .games-link {
    display: inline-flex;
    font-size: 11px;
  }
}

.room-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.entry-identity { display: flex; gap: 10px; align-items: center; margin-block: 12px; color: var(--muted); }
.entry-identity img { width: 44px; height: 44px; object-fit: contain; }
#entry-title:focus { outline: none; }
#entry-copy-status:empty, #entry-status:empty, #share-feedback:empty { display: none; }
#saved-entries { margin-top: 16px; }
#saved-entries summary, .entry-text-button { cursor: pointer; color: var(--accent); }
.entry-text-button { background: transparent; border: 0; text-decoration: underline; font: inherit; padding: 8px 0; }
#entry-history { display: grid; gap: 6px; justify-items: start; margin-top: 7px; }
#share-field { display: grid; gap: 4px; width: min(100%, 360px); color: var(--muted); }
#share-value { width: 100%; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); color: var(--white); padding: 8px; }
#share-feedback { color: var(--accent); }

/* Broadcast identity and the spectator's first screen. */
body {
  background: radial-gradient(ellipse at 88% 2%, #18243e 0, transparent 37%),
    radial-gradient(ellipse at 4% 11%, #241627 0, transparent 29%), #090c15;
}
.mast-inner, .shell { width: min(1400px, calc(100% - clamp(24px, 6vw, 92px))); }
.mast-inner { height: 60px; }
.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 3vh, 34px) 0 clamp(15px, 2.4vh, 26px);
}
.intro h1 {
  font-size: clamp(50px, 6.4vw, 98px);
  line-height: .93;
  letter-spacing: -.055em;
  word-spacing: .065em;
}
.intro h1 em { color: var(--signal); }
.intro .lede { max-width: 37ch; padding: 0 0 4px; border: 0; color: #ccd6e8; font-size: 15px; }
.ring-card, .ringside { border-radius: 6px; }
.ring-card {
  border-color: #4c5669;
  box-shadow: 0 16px 42px #06081392;
}
.ring-top {
  position: relative;
  z-index: 6;
  min-height: 42px;
  background: linear-gradient(90deg, #ff769c 0%, #81415e 18%, #3d465e 48%, #45719a 80%, #7bdaff 100%) top / 100% 2px no-repeat, #101625;
}
.ring-name { color: #f2f3f6; font-weight: 700; }
.broadcast-options { position: relative; margin-left: auto; }
.broadcast-options > summary, .rule-drawer > summary, .prize-drawer > summary {
  cursor: pointer;
  color: #e6eefb;
}
.broadcast-options > summary {
  display: flex; align-items: center; gap: 8px; min-height: 32px;
  padding: 4px 7px; border-radius: 3px; font: 600 12px/1.3 var(--body); letter-spacing: 0;
}
.broadcast-options > summary::-webkit-details-marker { display: none; }
.broadcast-options > summary::after {
  content: ''; width: 6px; height: 6px; border: solid var(--ice);
  border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg);
}
.broadcast-options[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.broadcast-options .broadcast-tools {
  position: absolute; z-index: 8; right: 0; top: calc(100% + 5px);
  width: max-content; padding: 8px; border: 1px solid #566785; border-radius: 5px;
  background: #121c2e; box-shadow: 0 6px 18px #04070cb5;
}
#round-top { margin-left: 8px; }
.corner { border-radius: 3px; padding: 7px 10px 6px; }
.corner.red { border-left: 3px solid #ff829e; }
.corner.blue { border-right: 3px solid #72cfff; }
.corner-caption { align-items: baseline; }
.corner-caption span:last-child { font: 650 15px/1.1 var(--mono); letter-spacing: -.045em; }
.fighter {
  font-size: clamp(18px, 2vw, 32px); letter-spacing: -.035em;
  line-height: 1.04; text-wrap: balance; white-space: normal; overflow-wrap: anywhere;
}
.round-tag strong { font-size: clamp(19px, 2vw, 28px); letter-spacing: -.075em; }
.fight-title { letter-spacing: -.06em; }
.center-call[data-call="result"] .fight-title, .motion-finish .fight-title { font-size: clamp(27px, 4.1vw, 62px); }
.panel-head { background: #111525; }
.panel-head h2 { font: italic 780 17px/1.1 var(--display); letter-spacing: -.045em; }
.panel-head .feed-icon { color: var(--signal); }
.score-title span { font-size: 9px; }
.controls { background: #101421; }
.controls .primary { min-height: 42px; padding: 8px 17px; }
.rules-header h2, .funnel h2, dialog h2 {
  font-size: clamp(27px, 3vw, 43px); line-height: 1.06; letter-spacing: -.063em;
}
.rule-drawer { padding-top: 4px; }
.rule-drawer > summary { padding: 10px 0; font-weight: 650; }
.rules .move-cards { margin-top: 9px; }
@media (max-width: 820px) {
  .intro { display: block; }
  .intro .lede { margin: 8px 0 0; padding: 0; }
}
@media (max-width: 520px) {
  .mast-inner { height: 54px; }
  .intro { padding: 19px 0 15px; }
  .intro h1 { font-size: clamp(37px, 11.4vw, 58px); }
  .intro .lede { font-size: 13px; line-height: 1.4; }
  .ring-top { flex-wrap: nowrap; min-height: 41px; gap: 5px; padding-inline: 8px; }
  #round-top { margin-left: 0; flex: 0 1 auto; text-align: left; }
  .broadcast-options > summary { min-height: 34px; padding-inline: 3px; white-space: nowrap; }
  .corner { padding: 5px; }
  .fighter { font-size: clamp(13px, 3.6vw, 19px); }
  .center-call { width: 78%; }
  .center-call[data-call="exchange"] .fight-title { font-size: clamp(18px, 4.9vw, 28px); }
  .corner-caption { font-size: 8px; }
  .corner-caption span:last-child { font-size: 12px; }
  .rules-header h2, .funnel h2 { font-size: clamp(24px, 6vw, 30px); }
  .controls .primary { min-height: 42px; }
  .navbar { gap: 6px; }
  .masthead .navbar .primary { min-height: 38px; padding-inline: 10px; font-size: 13px; }
}
