@import url('https://fonts.googleapis.com/css2?family=Racing+Sans+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@400;500;600;700&display=swap');
:root {
  --bg: #294678;
  --panel: #223c69;
  --line: #7187aa;
  --text: #ffffff;
  --muted: #d4deec;
  --lime: #d3dae5;
  --orange: #b7c9e5;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.65 Inter,
    Arial,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
header {
  padding: 24px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 25px;
}
nav {
  display: flex;
  gap: 24px;
  font-size: 12px;
}
nav a:hover,
.secondary:hover {
  color: var(--lime);
}
main > section {
  padding: 80px 7%;
  max-width: 1600px;
  margin: auto;
}
.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 4%;
  padding-top: 70px;
  padding-bottom: 70px;
  min-height: 600px;
}
.eyebrow,
.pill {
  font:
    11px/1.6 'IBM Plex Mono',
    monospace;
  letter-spacing: 1.3px;
}
.eyebrow {
  color: var(--lime);
  margin: 0 0 25px;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
  margin-right: 8px;
}
h1,
h2,
h3 {
  line-height: 1.02;
  margin: 0;
  font-family: 'Barlow Condensed', Impact, sans-serif;
}
h1 {
  font-size: clamp(58px, 6.7vw, 106px);
  font-weight: 800;
  letter-spacing: -1px;
}
em {
  font-style: normal;
  color: var(--lime);
}
h2 {
  font-size: clamp(40px, 4.5vw, 68px);
  font-weight: 700;
}
h3 {
  font-size: 28px;
}
p {
  color: var(--muted);
}
.intro {
  font-size: 17px;
  line-height: 1.8;
  margin: 25px 0 30px;
}
.actions {
  display: flex;
  gap: 25px;
  align-items: center;
  flex-wrap: wrap;
}
.button {
  background: var(--lime);
  border: 0;
  padding: 15px 23px;
  color: #203452;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
}
.button:hover {
  background: #ffffff;
}
.secondary {
  background: none;
  border: 0;
  color: var(--text);
  font-size: 13px;
  padding: 10px 0;
}
.ticker {
  background: var(--lime);
  color: #203452;
  padding: 16px 3%;
  display: flex;
  justify-content: space-around;
  gap: 20px;
  font:
    600 12px 'IBM Plex Mono',
    monospace;
  flex-wrap: wrap;
}
.sectionhead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 35px;
}
.sectionhead p:last-child {
  font-size: 13px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 25px 0;
  flex-wrap: wrap;
}
.toolbar label {
  font-size: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.pill {
  font-size: 9px;
  letter-spacing: 0.6px;
  border: 1px solid var(--line);
  padding: 6px 10px;
  display: inline-block;
  color: var(--muted);
}
input,
select {
  background: #1c3155;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 11px;
  min-width: 0;
  border-radius: 0;
}
input:focus,
select:focus {
  outline: 2px solid var(--lime);
}
.eventgrid {
  display: grid;
}
.event {
  border: 1px solid var(--line);
  position: relative;
}
.event:hover {
  border-color: var(--lime);
}
.event .number {
  font:
    800 48px 'Barlow Condensed',
    sans-serif;
}
.event h3 {
  margin: 12px 0;
}
.event p {
  font-size: 12px;
  margin: 9px 0 20px;
}
.event button.details {
  background: none;
  border: 0;
  color: var(--lime);
  padding: 0;
  font-size: 12px;
}
.star {
  position: absolute;
  right: 16px;
  top: 18px;
  background: none;
  border: 0;
  color: var(--lime);
  font-size: 24px;
}
.tag {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 10%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tag p {
  max-width: 510px;
}
.final {
  text-align: center;
  max-width: none;
}
.final h2 {
  font-size: clamp(60px, 9vw, 140px);
  letter-spacing: -3px;
}
.final > p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: #344760;
}
.prizes {
  max-width: 1100px;
  margin: 45px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.prizes article {
  border: 1px solid #9aa8bc;
  padding: 30px;
}
.prizes p {
  color: #344760;
  font-size: 14px;
}
.prizes .pill {
  color: #344760;
  border-color: #9aa8bc;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 25px;
}
.tabs button {
  background: none;
  color: var(--muted);
  border: 0;
  padding: 16px 0;
}
.tabs button.active {
  color: var(--lime);
  border-bottom: 2px solid var(--lime);
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
}
th {
  font:
    10px 'IBM Plex Mono',
    monospace;
  color: var(--muted);
  padding: 15px;
}
td {
  padding: 20px 15px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
tbody tr:first-child {
  background: #d3dae508;
}
td:first-child {
  color: var(--lime);
}
.check input {
  margin-top: 5px;
}
footer {
  padding: 35px 5%;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
footer p,
footer > a:last-child {
  font-size: 11px;
}
dialog {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--lime);
  max-width: 550px;
  width: 90%;
  padding: 40px;
}
dialog::backdrop {
  background: #000b;
}
dialog #close {
  position: absolute;
  right: 15px;
  top: 10px;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 28px;
}
dialog h2 {
  font-size: 42px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}
@media (max-width: 1000px) {
  nav {
    display: none;
  }
  .hero {
    grid-template-columns: 1.2fr 1fr;
  }
  h1 {
    font-size: 68px;
  }
}
@media (max-width: 700px) {
  header {
    padding: 18px 5%;
  }
  main > section {
    padding: 55px 6%;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 45px;
    gap: 30px;
  }
  h1 {
    font-size: 64px;
  }
  .intro {
    font-size: 15px;
  }
  .ticker {
    font-size: 10px;
    justify-content: center;
  }
  .prizes,
  .tag {
    grid-template-columns: 1fr;
  }
  .eventgrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .event {
    padding: 16px;
  }
  .sectionhead {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }
  .tabs {
    gap: 20px;
  }
  .tabs button {
    font-size: 12px;
  }
  .toolbar label {
    width: 100%;
    justify-content: space-between;
  }
  .toolbar input,
  .toolbar select {
    max-width: 65%;
  }
  .prizes article {
    padding: 24px;
  }
  .final h2 {
    letter-spacing: -1px;
  }
  footer {
    flex-direction: column;
    align-items: start;
  }
  .event h3 {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.hero.hero-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
  background: radial-gradient(ellipse at 50% 40%, #ffffff09, transparent 65%);
}
.hero-intro .tour-title {
  width: 100%;
}
.hero-intro .intro {
  margin: 22px 0 30px;
}
.hero-intro .actions {
  justify-content: center;
}
.hero-intro .eyebrow {
  margin-bottom: 15px;
}
@media (max-width: 700px) {
  .hero-intro .tour-title {
    text-shadow:
      2px 3px 0 #1c3155,
      3px 4px 0 #9aaac2;
    margin: 18px 0 22px;
  }
  .hero-intro .eyebrow {
    font-size: 9px;
    letter-spacing: 0.8px;
  }
  .hero-intro .actions {
    gap: 15px;
  }
  .hero-intro .intro {
    font-size: 14px;
  }
}

.tour-title em {
  color: #d3dae5;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #dce3ed 35%,
    #9caec7 52%,
    #e4eaf2 80%,
    #ffffff 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(3px 4px 0 #1c3155);
}
.final {
  background: #dce2eb;
  color: #203452;
}
.final .eyebrow {
  color: #344760;
}
.eventgrid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 24px;
}
.event {
  grid-column: span 2;
  border-radius: 18px;
  padding: 0 22px 24px;
  overflow: hidden;
  min-height: 320px;
  background: linear-gradient(145deg, #334f7b, #20385f);
  box-shadow: 0 12px 28px #142b4926;
}
.event .number {
  display: block;
  font-size: 76px;
  padding: 26px 0 18px;
  margin: 0 -22px 22px;
  text-align: center;
  color: #e1e7ef;
  background:
    linear-gradient(145deg, #7085a94d, #162d514d),
    repeating-linear-gradient(135deg, transparent 0 30px, #ffffff05 30px 32px);
  border-bottom: 1px solid var(--line);
  text-shadow: 3px 4px 0 #1c3155;
}
.event .star {
  top: 18px;
  right: 18px;
}
.eventgrid:not(.filtered) .event:nth-child(9) {
  grid-column: 2 / span 2;
}
.eventgrid:not(.filtered) .event:nth-child(10) {
  grid-column: 4 / span 2;
}
.eventgrid:not(.filtered) .event:nth-child(11) {
  grid-column: 6 / span 2;
}
.event h3 {
  font-size: 29px;
}
.event .pill {
  font-size: 8px;
}
.event p {
  line-height: 1.8;
}
.eventfinal {
  max-width: 750px;
  margin: 34px auto 0;
  padding: 40px 35px;
  border: 1px solid #d3dae5;
  border-radius: 20px;
  background: linear-gradient(135deg, #dce3ed, #a6b5ca);
  color: #203452;
  text-align: center;
  box-shadow: 0 18px 40px #142b4933;
}
.eventfinal .eyebrow {
  color: #344760;
  margin-bottom: 16px;
}
.eventfinal h3 {
  font-size: clamp(48px, 5vw, 78px);
  font-style: italic;
  letter-spacing: -1px;
}
.eventfinal p {
  color: #344760;
  max-width: 550px;
  margin: 20px auto;
}
.eventfinal .button {
  background: #294678;
  color: white;
}
.eventfinal .pill {
  color: #344760;
  border-color: #879bb7;
  margin-bottom: 20px;
}
@media (max-width: 1000px) {
  .eventgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .event,
  .eventgrid:not(.filtered) .event:nth-child(n) {
    grid-column: auto;
  }
  .eventgrid:not(.filtered) .event:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 10px);
    width: 100%;
    justify-self: center;
  }
}
@media (max-width: 600px) {
  .eventgrid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .eventgrid:not(.filtered) .event:last-child {
    grid-column: auto;
    max-width: none;
  }
  .event {
    min-height: 0;
  }
  .event .number {
    font-size: 62px;
    padding: 20px 0;
    margin-bottom: 20px;
  }
  .eventfinal {
    padding: 30px 22px;
  }
}
.eventfinal .battlemenia-logo-heading {
  line-height: 0;
  margin: 0 auto;
  max-width: 630px;
}
.battlemenia-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 12px #20345226);
}
.eventfinal:has(.battlemenia-logo) {
  padding-top: 30px;
}
.eventfinal:has(.battlemenia-logo) .eyebrow {
  margin-bottom: 8px;
}
.event-poster {
  display: block;
  width: calc(100% + 44px);
  max-width: none;
  height: auto;
  margin: 0 -22px 22px;
  border-bottom: 1px solid var(--line);
}
.event:has(.event-poster) .star {
  background: #172c50cc;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  line-height: 1;
  padding: 0;
  color: white;
}
[hidden] {
  display: none !important;
}
#bases-close {
  position: absolute;
  right: 15px;
  top: 10px;
  background: none;
  border: 0;
  color: white;
  font-size: 28px;
}
#bases-form {
  margin-top: 25px;
}
#bases-form label {
  display: grid;
  gap: 10px;
  font-size: 13px;
}
#bases-form button {
  margin-top: 15px;
}
#bases-edit {
  display: block;
  margin-top: 15px;
}
#bases-dialog h2 {
  font-size: 38px;
}
.tour-subtitle {
  font:
    500 17px/1.5 Inter,
    Arial,
    sans-serif;
  color: var(--muted);
  margin: 0 0 18px;
  letter-spacing: 0.5px;
}
@media (max-width: 700px) {
  .tour-subtitle {
    font-size: 14px;
    max-width: 90%;
    margin-bottom: 16px;
  }
}
.hero.hero-intro {
  min-height: 0;
  padding: 85px 7% 65px;
}
.hero-intro .tour-subtitle {
  margin-bottom: 0;
}
@media (max-width: 700px) {
  .hero.hero-intro {
    min-height: 0;
    padding: 60px 5% 45px;
  }
}

.event-access {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 24px;
}
.event-access .details {
  margin: 0;
}
.event-tickets {
  width: 100%;
  padding: 13px 12px;
  font-size: 12px;
}
.circuit-section {
  background: var(--bg);
}
.circuit-disclosure {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.circuit-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  padding: 22px 0;
  font:
    700 30px/1.2 'Barlow Condensed',
    Impact,
    sans-serif;
  color: white;
}
.circuit-disclosure summary::-webkit-details-marker {
  display: none;
}
.circuit-disclosure summary:focus-visible {
  outline: 2px solid white;
  outline-offset: 6px;
}
.circuit-toggle {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.circuit-toggle:before,
.circuit-toggle:after {
  content: '';
  position: absolute;
  background: var(--text);
  top: 8px;
  left: 0;
  width: 18px;
  height: 2px;
}
.circuit-toggle:after {
  transform: rotate(90deg);
}
.circuit-disclosure[open] .circuit-toggle:after {
  transform: rotate(0);
}
.circuit-explanation p:last-child {
  margin-bottom: 0;
}
@media (max-width: 700px) {
  .circuit-disclosure summary {
    font-size: 26px;
    padding: 20px 0;
  }
}
.circuit-section {
  padding-top: 65px;
  padding-bottom: 32px;
}
.circuit-disclosure {
  border: 0;
  text-align: center;
}
.circuit-title {
  font-size: clamp(48px, 8vw, 140px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.02;
  text-transform: uppercase;
}
.circuit-title button {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: white;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.circuit-explanation {
  text-align: left;
  font-size: 17px;
  line-height: 1.85;
}
.circuit-arrow-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 56px;
  margin: 22px auto 0;
  background: none;
  border: 0;
  color: white;
  cursor: pointer;
}
.circuit-arrow-button span {
  width: 18px;
  height: 18px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
}
.circuit-disclosure.is-open .circuit-arrow-button span {
  transform: rotate(225deg);
}
.circuit-title button:focus-visible,
.circuit-arrow-button:focus-visible {
  outline: 2px solid white;
  outline-offset: 6px;
}
@media (max-width: 700px) {
  .circuit-section {
    padding-top: 45px;
    padding-bottom: 25px;
  }
  .circuit-title {
    font-size: clamp(38px, 8vw, 60px);
  }
  .circuit-explanation {
    font-size: 15px;
  }
}

.circuit-explanation h3 {
  font-size: 30px;
  color: white;
}
.circuit-explanation strong {
  color: white;
}
.circuit-availability {
  border-left: 2px solid var(--line);
  padding: 12px 18px;
  background: #ffffff06;
  font-size: 14px;
}

.circuit-arrow-button span {
  transition: transform 850ms cubic-bezier(0.4, 0, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
  .circuit-arrow-button span {
    transition: none;
  }
}

.qualified h2 {
  font-size: clamp(46px, 6.8vw, 106px);
  max-width: 1400px;
  margin: 0 auto 55px;
  line-height: 1.02;
  letter-spacing: -1px;
}
.qualifier-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  max-width: 1400px;
  margin: auto;
  text-align: left;
}
.qualifier-card {
  border: 1px solid #8093ad;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, #334f7b, #20385f);
  color: white;
  box-shadow: 0 12px 28px #142b4920;
}
.qualifier-portrait {
  aspect-ratio: 4/4.5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background:
    linear-gradient(145deg, #7187aa40, #162d5170),
    repeating-linear-gradient(135deg, transparent 0 30px, #ffffff06 30px 32px);
  border-bottom: 1px solid #7187aa;
  padding: 28px 28px 0;
}
.qualifier-portrait svg {
  display: block;
  width: 80%;
  height: 90%;
  fill: #aab9cf;
  opacity: 0.7;
}
.qualifier-slot {
  font:
    9px 'IBM Plex Mono',
    monospace;
  letter-spacing: 1.5px;
  color: #d4deec;
}
.qualifier-info h3 {
  font-size: 30px;
  color: white;
}
@media (max-width: 1000px) {
  .qualifier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}
@media (max-width: 600px) {
  .qualified h2 {
    font-size: 46px;
    margin-bottom: 32px;
  }
  .qualifier-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .qualifier-portrait {
    aspect-ratio: 4/3.6;
  }
}
#calendario .sectionhead {
  display: block;
  text-align: center;
}
#calendario .calendar-title {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: clamp(48px, 9vw, 140px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -1px;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
  margin: 0 auto;
}
#calendario .sectionhead > div {
  width: 100%;
}
@media (max-width: 600px) {
  #calendario .calendar-title {
    font-size: clamp(42px, 10vw, 60px);
  }
}

.best-detachments {
  text-align: center;
}
.best-detachments h2 {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: clamp(46px, 6.8vw, 106px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.02;
  text-transform: uppercase;
  margin: 0 auto;
  color: white;
}
.disposition-boards {
  display: grid;
  gap: 18px;
  margin: 55px auto 0;
  text-align: left;
}
.disposition-board {
  position: relative;
  border: 2px solid #94b9e4;
  border-radius: 22px;
  padding: 34px 12px 18px;
  background: linear-gradient(145deg, #203b69, #192f55);
  box-shadow: 0 10px 25px #142b4930;
}
.disposition-board h3 {
  position: relative;
  margin: -55px auto 24px;
  background: #294678;
  border: 2px solid #94b9e4;
  border-radius: 14px;
  max-width: 95%;
  font:
    700 clamp(19px, 1.8vw, 28px) / 1 'Barlow Condensed',
    Impact,
    sans-serif;
  color: white;
  letter-spacing: 0.3px;
}
.board-labels {
  display: grid;
  grid-template-columns: 26px 1fr 34px;
  gap: 8px;
  padding: 0 5px 12px;
  font:
    8px 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.6px;
  color: #c2d1e7;
}
.board-labels span:last-child {
  text-align: right;
}
.board-players {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.board-players li {
  display: grid;
  grid-template-columns: 22px 30px minmax(0, 1fr) 30px;
  gap: 7px;
  align-items: center;
  padding: 7px 5px;
  background: #43669d55;
  border-radius: 6px;
  min-height: 44px;
  font-size: 12px;
  color: white;
}
.board-position {
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.board-avatar {
  height: 30px;
  width: 30px;
  border: 1px solid #a8bdd9;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  background: #203452;
}
.board-avatar svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: #c2d1e7;
}
.board-avatar img {
  display: block;
}
.board-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #d4deec;
}
.board-score {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 1200px) {
  .disposition-boards {
    row-gap: 55px;
  }
}
@media (max-width: 800px) {
  .disposition-boards {
    gap: 55px 18px;
  }
  .board-players li {
    font-size: 13px;
  }
}
@media (max-width: 500px) {
  .disposition-boards {
    gap: 55px;
  }
  .board-players li {
    grid-template-columns: 28px 36px minmax(0, 1fr) 45px;
    font-size: 14px;
  }
  .board-avatar {
    height: 36px;
    width: 36px;
  }
  .disposition-board {
    padding-left: 18px;
    padding-right: 18px;
  }
}

.disposition-board h3 {
  justify-content: flex-start;
  padding: 8px 9px;
  min-height: 66px;
  font-size: clamp(18px, 1.5vw, 25px);
}
.disposition-icon {
  display: block;
  flex: 0 0 42px;
  background-repeat: no-repeat;
}
@media (max-width: 1200px) {
  .disposition-board h3 {
    font-size: 25px;
  }
}
main > section.best-detachments {
  width: 100%;
}
.disposition-boards {
  width: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: clamp(12px, 1.2vw, 24px);
}
.disposition-board {
  min-width: 0;
}
@media (max-width: 1200px) {
  .disposition-boards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .disposition-boards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 500px) {
  .disposition-boards {
    grid-template-columns: 1fr;
    max-width: 380px;
  }
}
.disposition-board h3 {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 4px;
  text-align: center;
}
.disposition-board h3 > span:last-child {
  text-align: center;
  overflow-wrap: normal;
}
.disposition-board h3:after {
  content: '';
  width: 42px;
}
.disposition-icon {
  background-image: url('assets/disposition-icons-transparent.png');
  border-radius: 0;
}
.disposition-icon {
  width: 42px;
  height: 46px;
  align-self: center;
  background-size: 72.4px 217.2px;
}
.disposition-icon-1 {
  background-position: -15.2px -6px;
}
.disposition-icon-2 {
  background-position: -15.2px -48px;
}
.disposition-icon-3 {
  background-position: -15.2px -87px;
}
.disposition-icon-4 {
  background-position: -15.2px -128px;
}
.disposition-icon-5 {
  background-position: -15.2px -169px;
}
.disposition-board h3 {
  align-items: center;
}

main > section.statistics-section {
  max-width: none;
  width: 100%;
  background: #ffffff;
  color: #203452;
  text-align: center;
  padding: 80px 5%;
  min-height: 250px;
}
.statistics-section h2 {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: clamp(60px, 9vw, 140px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -1px;
  color: #203452;
  margin: 0 auto;
}
main > section {
  width: 100%;
  padding-left: clamp(20px, 7vw, 112px);
  padding-right: clamp(20px, 7vw, 112px);
}
.hero.hero-intro {
  padding-left: clamp(20px, 7vw, 112px);
  padding-right: clamp(20px, 7vw, 112px);
}
main > section.best-detachments {
  max-width: 2400px;
  padding-left: clamp(16px, 1.5vw, 32px);
  padding-right: clamp(16px, 1.5vw, 32px);
}
.disposition-boards {
  max-width: 2336px;
}
.eventgrid,
.qualifier-grid,
.disposition-boards {
  min-width: 0;
}
.circuit-title,
.calendar-title {
  max-width: 100%;
  overflow-wrap: normal;
}
.ticker {
  padding-left: 32px;
  padding-right: 32px;
}
@media (max-width: 700px) {
  main > section {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero.hero-intro {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.prizes-section {
  text-align: center;
  border-top: 1px solid var(--line);
}
.prizes-section h2 {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: clamp(60px, 9vw, 140px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -1px;
  color: white;
  margin: 0 auto;
}
.statistics-empty {
  color: #52647f;
  font-size: 17px;
  text-align: center;
}
@media (max-width: 700px) {
  .statistics-empty {
    font-size: 15px;
  }
}

.section-navigation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.section-navigation a {
  text-align: center;
}
.section-navigation a:hover {
  color: #203452;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.section-navigation a:focus-visible {
  outline: 2px solid #203452;
  outline-offset: 4px;
}

.prize-explanation {
  margin: 35px auto 0;
  text-align: left;
  font-size: 17px;
  line-height: 1.8;
}
.prize-explanation strong {
  color: white;
}
.prize-goals {
  display: grid;
}
.prize-goal {
  display: grid;
  align-items: center;
  text-align: left;
}
.goal-icon {
  color: #d3dae5;
}
.goal-icon svg {
  width: 100%;
  height: 90px;
  display: block;
}
.goal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 14px;
}
.goal-heading strong {
  font:
    700 32px/1 'Barlow Condensed',
    Impact,
    sans-serif;
  white-space: nowrap;
}
.goal-track {
  border: 1px solid #8da3c3;
  border-radius: 20px;
  overflow: hidden;
  background: #172d50;
}
.goal-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #83a9dd, #d3dae5);
  border-radius: inherit;
}
.goal-content p {
  font-size: 12px;
}
@media (max-width: 700px) {
  .prize-explanation {
    font-size: 15px;
  }
  .prize-goal {
    padding: 18px;
  }
  .goal-icon svg {
    height: 65px;
  }
  .goal-heading strong {
    font-size: 26px;
  }
}

.prize-explanation {
  max-width: 950px;
}
.prize-explanation p {
  margin: 0 0 22px;
}
.prize-goals {
  gap: 38px;
}
.prize-goal {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 15px 0;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 35px;
}
.goal-object {
  height: 130px;
  background: #142744;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}
.goal-belt {
  mask-image: url('assets/champion-belt-reference.png');
  -webkit-mask-image: url('assets/champion-belt-reference.png');
}
.goal-ring {
  mask-image: url('assets/champion-ring-reference.png');
  -webkit-mask-image: url('assets/champion-ring-reference.png');
  mask-size: 240px;
  -webkit-mask-size: 240px;
}
.goal-heading h3 {
  font-size: 32px;
}
.goal-track {
  height: 18px;
}
@media (max-width: 700px) {
  .prize-goal {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 18px;
  }
  .goal-object {
    height: 95px;
  }
  .goal-ring {
    mask-size: 160px;
    -webkit-mask-size: 160px;
  }
  .goal-heading h3 {
    font-size: 24px;
  }
}
.section-navigation {
  justify-content: space-evenly;
  gap: 16px 28px;
  padding: 22px clamp(20px, 3vw, 64px);
}
.section-navigation a {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: clamp(18px, 1.25vw, 24px);
  font-weight: 700;
  line-height: 1.25;
  padding: 10px 0;
  flex: 0 1 auto;
}
@media (max-width: 1000px) {
  .section-navigation {
    display: flex;
    gap: 14px 24px;
  }
  .section-navigation a {
    font-size: 20px;
  }
}
@media (max-width: 700px) {
  .section-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
    padding: 22px 20px;
  }
  .section-navigation a {
    font-size: 18px;
  }
}

.session-access {
  position: absolute;
  top: 20px;
  left: clamp(20px, 3vw, 48px);
  z-index: 10;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  padding: 8px 0;
}
.session-access:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.hero.hero-intro {
  position: relative;
  padding-top: 100px;
}

.hero-intro .tour-title {
  font-weight: 900;
  text-shadow: none;
}
.hero-intro .tour-title span,
.hero-intro .tour-title em {
  display: inline-block;
  background-clip: text;
  -webkit-background-clip: text;
}
.hero-intro .tour-title em {
  background-image: linear-gradient(180deg, #18a1e5 0%, #1764b9 46%, #152d71 51%, #27398c 100%);
  -webkit-text-stroke: 1px #ecf5ff;
}
@media (max-width: 700px) {
  .hero-intro .tour-title {
    padding: 8px 0;
    filter: drop-shadow(1px 2px 0 #0b172b) drop-shadow(1px 1px 0 #91a6bc);
  }
  .hero-intro .tour-title span,
  .hero-intro .tour-title em {
    -webkit-text-stroke: 0.6px #eef5ff;
  }
}
.hero-intro .tour-title {
  font-family: 'Racing Sans One', 'Arial Black', Impact, sans-serif;
  font-size: clamp(36px, 7.8vw, 124px);
  letter-spacing: 0.005em;
  line-height: 1.18;
  transform: skew(-3deg);
  filter: none;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.19em;
  padding: 12px 0;
  margin: 15px 0 25px;
  white-space: nowrap;
}
.hero-intro .tour-title span,
.hero-intro .tour-title em {
  background: none;
  -webkit-text-fill-color: currentColor;
  -webkit-text-stroke: 0;
  color: #f4f7fc;
  text-shadow:
    0 3px 0 #173259,
    0 7px 16px #11264340;
  filter: none;
}
.hero-intro .tour-title em {
  color: #e8bd74;
  position: relative;
}
.hero-intro .tour-title em:after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -0.08em;
  height: 3px;
  background: #e8bd74;
  border-radius: 2px;
  opacity: 0.85;
}
.hero-intro .tour-subtitle {
  color: #e0e7f1;
  font-size: clamp(14px, 1.2vw, 19px);
  letter-spacing: 0.04em;
  margin-top: 8px;
}
@media (max-width: 700px) {
  .hero-intro .tour-title {
    font-size: 8vw;
    gap: 0.15em;
    letter-spacing: 0;
  }
  .hero-intro .tour-title em:after {
    height: 2px;
  }
}

.hero-intro .tour-title.tour-logo {
  display: block;
  transform: none;
  filter: none;
  width: min(100%, 1200px);
  padding: 0;
  margin: -35px 0 -25px;
  line-height: 0;
}
.tour-logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
@media (max-width: 700px) {
  .hero-intro .tour-title.tour-logo {
    width: 100%;
    margin: -18px 0 -10px;
  }
}

.event.event-mystery {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  background:
    radial-gradient(ellipse at 50% 42%, #5c80b630, transparent 65%),
    linear-gradient(145deg, #2c4975, #1e365b);
  position: relative;
  overflow: hidden;
  min-height: 360px;
}
.event-mystery .mystery-number {
  position: absolute;
  top: 24px;
  left: 24px;
  font:
    800 38px/1 'Barlow Condensed',
    Impact,
    sans-serif;
  color: #c4d3e6;
  letter-spacing: 2px;
}
.event-mystery .mystery-symbol {
  font:
    800 clamp(110px, 10vw, 180px) / 1 'Barlow Condensed',
    Impact,
    sans-serif;
  color: #d8e4f3;
  text-shadow:
    0 4px 0 #142b4b,
    0 0 35px #86b7f335;
  margin: 40px 0 24px;
  transform: rotate(-7deg);
}
.event-mystery h3 {
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: 2px;
  margin: 0;
  color: #eef4fb;
  text-align: center;
}
.event-mystery:after {
  content: '';
  width: 45px;
  height: 2px;
  background: #90acd2;
  margin-top: 20px;
  opacity: 0.6;
}
@media (max-width: 700px) {
  .event.event-mystery {
    min-height: 300px;
  }
  .event-mystery .mystery-number {
    top: 20px;
    left: 18px;
    font-size: 28px;
  }
  .event-mystery h3 {
    font-size: 21px;
    letter-spacing: 1px;
  }
}
.eventgrid {
  align-items: start;
}
.event-published {
  cursor: pointer;
}
.event-poster-toggle {
  display: block;
  width: calc(100% + 44px);
  margin: 0 -22px 22px;
  padding: 0;
  border: 0;
  background: none;
}
.event-poster-toggle .event-poster {
  width: 100%;
  margin: 0;
}
.eventgrid .event-published.is-expanded {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  gap: 36px;
  padding: 28px;
  cursor: default;
}
.is-expanded .event-poster-toggle {
  width: 100%;
  max-width: 240px;
  margin: 0 auto 22px;
}
.is-expanded .event-poster {
  border: 0;
  border-radius: 10px;
}
.event-participants {
  min-width: 0;
  padding: 12px 0;
}
.event-participants h4 {
  margin: 0;
  font:
    700 36px/1.1 'Barlow Condensed',
    Impact,
    sans-serif;
}
.event-participants .participants-caption {
  font-size: 14px;
}
.participants-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
}
.participants-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 14px;
  background: #ffffff08;
  border-radius: 8px;
  min-width: 0;
}
.participant-number {
  font:
    700 24px/1 'Barlow Condensed',
    Impact,
    sans-serif;
  color: #b7c9e5;
  flex: 0 0 26px;
}
.participant-name {
  font-size: 14px;
  color: #d4deec;
  overflow-wrap: anywhere;
}
.eventgrid:has(.is-expanded) .event:nth-child(n + 2) {
  grid-column: span 2;
}
.circuit-explanation {
  width: 100%;
  max-width: 900px;
  padding: 0 clamp(0px, 2vw, 24px) 24px;
  margin: 42px auto 0;
}
.circuit-explanation p {
  margin: 0 0 24px;
  line-height: 1.85;
}
@media (max-width: 1000px) {
  .eventgrid:has(.is-expanded) .event:nth-child(n + 2) {
    grid-column: auto;
  }
  .eventgrid:has(.is-expanded) .event:last-child {
    max-width: none;
    justify-self: stretch;
  }
}
@media (max-width: 700px) {
  .eventgrid .event-published.is-expanded {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px;
  }
  .participants-list {
    gap: 10px;
  }
  .participants-list li {
    padding: 12px 10px;
    gap: 10px;
  }
  .participant-name {
    font-size: 13px;
  }
  .circuit-explanation {
    padding: 0 4px 20px;
    margin-top: 30px;
  }
  .circuit-explanation h3 {
    margin-top: 32px;
  }
}
@media (max-width: 420px) {
  .participants-list {
    grid-template-columns: 1fr;
  }
}
.participants-edit {
  margin-top: 26px;
}
.participants-form {
  margin-top: 26px;
}
.participants-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.participants-fields label {
  display: grid;
  gap: 8px;
  font-size: 13px;
}
.participants-fields input {
  width: 100%;
}
.participants-form > p {
  font-size: 14px;
}
@media (max-width: 600px) {
  .participants-fields {
    grid-template-columns: 1fr;
  }
}
:root {
  --copy-width: 78ch;
  --copy-gap: clamp(20px, 2vw, 28px);
}
.circuit-explanation,
.prize-explanation {
  width: 100%;
  max-width: var(--copy-width);
  margin: clamp(30px, 4vw, 48px) auto 0;
  padding: 0;
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.85;
  text-align: justify;
  hyphens: auto;
  overflow-wrap: break-word;
}
.circuit-explanation p,
.prize-explanation p {
  margin: 0 0 var(--copy-gap);
  line-height: inherit;
  text-align: inherit;
}
.circuit-explanation > p:last-child,
.prize-explanation > p:last-child {
  margin-bottom: 0;
}
.circuit-explanation h3 {
  margin: clamp(30px, 3vw, 42px) 0 16px;
  line-height: 1.2;
  text-align: left;
}
.circuit-explanation .circuit-availability {
  margin: var(--copy-gap) 0;
  padding: 18px 22px;
  text-align: left;
  line-height: 1.8;
}
.prize-goals {
  width: 100%;
  max-width: var(--copy-width);
  margin: clamp(36px, 4vw, 56px) auto 0;
}
.statistics-empty {
  width: 100%;
  max-width: 60ch;
  margin: 30px auto 0;
  padding: 0;
  line-height: 1.8;
}
.event-summary h3 {
  margin: 18px 0 14px;
  line-height: 1.15;
}
.event-summary > p {
  margin: 16px 0 22px;
  line-height: 1.8;
  text-align: left;
  overflow-wrap: break-word;
}
.event-participants h4,
.goal-heading h3,
.qualifier-info h3 {
  line-height: 1.15;
}
.event-participants .participants-caption {
  margin: 12px 0 24px;
  line-height: 1.6;
}
.goal-content p {
  margin: 12px 0 0;
  line-height: 1.65;
}
.qualifier-info {
  padding: 24px;
}
.qualifier-info h3 {
  margin: 14px 0 0;
}
@media (max-width: 700px) {
  .circuit-explanation,
  .prize-explanation {
    text-align: left;
    font-size: 16px;
    line-height: 1.8;
    hyphens: none;
  }
  .circuit-explanation .circuit-availability {
    padding: 16px 18px;
  }
  .prize-goals {
    margin-top: 36px;
  }
  .statistics-empty {
    margin-top: 24px;
  }
  .qualifier-info {
    padding: 20px;
  }
}
.disposition-icon-3 {
  clip-path: inset(0 0 4px 0);
}
.disposition-icon-5 {
  clip-path: inset(4px 0 0 0);
}
.player-library-access {
  position: absolute;
  top: 20px;
  right: clamp(20px, 3vw, 48px);
  z-index: 10;
  border: 1px solid var(--line);
  background: var(--panel);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
}
.player-library {
  border-top: 1px solid var(--line);
}
.private-library-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.private-library-note {
  max-width: 78ch;
  margin: 24px 0 36px;
  line-height: 1.8;
}
.private-library-layout {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(0, 2fr);
  gap: 36px;
}
#player-form {
  display: grid;
  align-content: start;
  gap: 18px;
}
#player-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
}
#player-form input {
  width: 100%;
}
#player-form h3 {
  line-height: 1.2;
  margin-bottom: 10px;
}
#player-photo-preview {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}
.private-form-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.private-player-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.private-player-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  min-width: 0;
}
.private-player-photo {
  height: 120px;
  display: grid;
  place-items: center;
  font-size: 60px;
  background: #ffffff08;
  border-radius: 8px;
  margin-bottom: 18px;
}
.private-player-photo img {
  width: 100%;
  height: 100%;
  max-height: 120px;
  object-fit: contain;
}
.private-player-card h3 {
  font-size: 26px;
  overflow-wrap: anywhere;
}
.private-player-card p {
  margin: 12px 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.participants-fields select {
  width: 100%;
  max-width: 100%;
}
@media (max-width: 900px) {
  .private-library-layout {
    grid-template-columns: 1fr;
  }
  .private-player-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 450px) {
  .private-player-grid {
    grid-template-columns: 1fr;
  }
  .player-library-access {
    font-size: 13px;
    padding: 8px 10px;
  }
}
.event-published {
  transition:
    border-color 0.45s,
    box-shadow 0.45s,
    background 0.45s;
}
.event-poster-toggle {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.event-poster-toggle:after {
  content: '↗';
  position: absolute;
  right: 16px;
  bottom: 16px;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #d4deec88;
  background: #142b4bd9;
  color: white;
  font-size: 25px;
  opacity: 0.75;
  transition:
    transform 0.5s,
    opacity 0.5s,
    background 0.5s;
}
.event-poster {
  transition: filter 0.5s;
}
.event-published:hover,
.event-published:focus-within {
  border-color: #e4efff;
  box-shadow:
    0 0 0 2px #a5c8fa40,
    0 16px 40px #142b4960;
}
.event-published:hover .event-poster-toggle:after,
.event-published:focus-within .event-poster-toggle:after {
  transform: translate(3px, -3px);
  opacity: 1;
  background: #42659b;
}
.is-expanded .event-poster-toggle:after {
  content: '↙';
}
.event-poster-toggle:focus-visible {
  outline: 3px solid white;
  outline-offset: -5px;
}
.event-mystery {
  transition:
    border-color 0.45s,
    box-shadow 0.45s;
}
.event-mystery:hover {
  border-color: #b7c9e5;
  box-shadow: 0 12px 35px #142b4950;
}
@media (prefers-reduced-motion: reduce) {
  .event-published,
  .event-poster-toggle:after,
  .event-poster,
  .event-mystery {
    transition: none;
  }
  .event-published:hover .event-poster-toggle:after {
    transform: none;
  }
}
.event-poster-toggle:after {
  display: none;
}
.event-published,
.event-mystery {
  transition:
    transform 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}
.event-published:hover,
.event-published:focus-within,
.event-mystery:hover {
  transform: translateY(-7px);
  border-color: #c9e2ff;
  box-shadow:
    0 0 14px #a5c8fa35,
    0 18px 36px #142b4950;
}
.event-published:hover .event-poster,
.event-published:focus-within .event-poster {
  filter: none;
}
@media (prefers-reduced-motion: reduce) {
  .event-published,
  .event-mystery {
    transition: none;
  }
  .event-published:hover,
  .event-published:focus-within,
  .event-mystery:hover {
    transform: none;
  }
}
.participant-profile-link {
  display: block;
  color: white;
  font-weight: 600;
  transition: color 0.25s;
}
.participant-profile-link:after {
  margin-left: 10px;
  color: #9cc7ff;
}
.participant-profile-link:hover {
  text-underline-offset: 4px;
}
.public-player-dialog {
  width: min(920px, 94vw);
  max-width: 920px;
  padding: 0;
  border: 1px solid #93b7e055;
  border-radius: 24px;
  overflow: hidden;
  background: #152742;
  color: white;
  box-shadow: 0 24px 100px #0008;
}
.profile-close {
  position: absolute;
  z-index: 2;
  border: 0;
  background: #14233bc9;
  color: white;
  font-size: 30px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}
.public-profile-body {
  display: grid;
  grid-template-columns: 38% minmax(0, 1fr);
  min-height: 480px;
}
.profile-portrait {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background:
    radial-gradient(ellipse at top, #6e91bf66, transparent),
    linear-gradient(145deg, #304b70, #13253f);
  overflow: hidden;
  min-height: 480px;
}
.profile-portrait img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center top;
}
.profile-portrait svg {
  width: 85%;
  fill: #809abb;
  opacity: 0.65;
  margin-bottom: 25px;
}
.profile-information {
  position: relative;
}
.profile-information h2 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.profile-details {
  display: grid;
}
.profile-details span {
  display: block;
  font:
    9px 'IBM Plex Mono',
    monospace;
  letter-spacing: 2px;
  color: #86afd9;
  margin-bottom: 9px;
}
.profile-details strong {
  overflow-wrap: anywhere;
}
.profile-footer {
  line-height: 1.7;
  margin: 24px 0 0;
  color: #8ca6c7;
}
@media (max-width: 600px) {
  .public-player-dialog {
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 18px;
  }
  .public-profile-body {
    grid-template-columns: 1fr;
  }
  .profile-portrait {
    min-height: 260px;
    height: 260px;
  }
  .profile-portrait svg {
    height: 230px;
    width: auto;
    margin-bottom: 0;
  }
  .profile-information {
    padding: 28px 24px;
  }
  .profile-information h2 {
    margin-top: 16px;
  }
}
.profile-information {
  padding: 34px 28px;
}
.profile-information h2 {
  margin: 0 0 24px;
}
.profile-details > div {
  min-width: 0;
}
.profile-footer {
  font-size: 11px;
  margin-top: 14px;
}
.player-games-dialog {
  max-width: 800px;
  width: 94vw;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 18px;
  padding: 36px;
}
.player-games-dialog h2 {
  font-size: 36px;
  margin-right: 35px;
}
.player-games-dialog > p,
#player-games-form > p {
  font-size: 13px;
  line-height: 1.7;
}
.game-form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.game-form-fields label {
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.game-form-fields input,
.game-form-fields select {
  width: 100%;
}
#games-history {
  margin-top: 28px;
  display: grid;
  gap: 10px;
}
.game-history-row {
  background: #152d50;
  color: #d4deec;
  border: 1px solid var(--line);
  padding: 14px;
  text-align: left;
  line-height: 1.6;
  font-size: 13px;
}
.private-player-card > .secondary {
  display: block;
}
@media (max-width: 600px) {
  .profile-details {
    grid-template-columns: 1fr;
  }
  .game-form-fields {
    grid-template-columns: 1fr;
  }
  .player-games-dialog {
    padding: 28px 20px;
  }
}
.profile-details {
  grid-template-columns: 1fr;
}
.profile-details > div {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.profile-details span {
  margin: 0;
  line-height: 1.5;
}
.profile-details strong {
  line-height: 1.5;
  font-size: 16px;
}
@media (max-width: 600px) {
  .profile-details > div {
    grid-template-columns: 115px minmax(0, 1fr);
    gap: 12px;
  }
  .profile-details span {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .profile-details strong {
    font-size: 14px;
  }
}
.profile-details > div {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 12px 0;
}
.profile-details {
  gap: 8px;
}
@media (max-width: 600px) {
  .profile-details > div {
    padding: 10px 0;
  }
}
.participant-profile-link:after {
  content: none;
  display: none;
}
.participants-list li:has(.participant-profile-link) {
  position: relative;
  cursor: pointer;
}
.participant-profile-link:before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
}
.participants-list li:has(.participant-profile-link):hover {
  background: #ffffff12;
}
.participants-list li:has(.participant-profile-link:focus-visible) {
  outline: 2px solid #b8d9ff;
  outline-offset: 3px;
}
.participant-profile-link:focus-visible {
  outline: none;
}
.participants-list li:has(.participant-profile-link) {
  transition:
    transform 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
  will-change: transform;
}
.participants-list li:has(.participant-profile-link):hover,
.participants-list li:has(.participant-profile-link:focus-visible) {
  transform: translateY(-4px);
  background: #ffffff12;
  box-shadow:
    0 0 0 1px #b9d9ff88,
    0 0 14px #9bc6ff30,
    0 10px 20px #0a1c3640;
}
.participant-profile-link:hover {
  color: white;
  text-decoration: none;
}
.participant-profile-link {
  text-decoration: none;
}
@media (prefers-reduced-motion: reduce) {
  .participants-list li:has(.participant-profile-link) {
    transition: none;
    will-change: auto;
  }
  .participants-list li:has(.participant-profile-link):hover {
    transform: none;
  }
}
#player-team-logo-preview {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: contain;
}
#player-palmares {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  background: #1c3155;
  color: white;
  border: 1px solid var(--line);
  padding: 12px;
  font: inherit;
}
.profile-team-value {
  display: flex;
  align-items: center;
  gap: 14px;
}
.profile-team-value img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}
.profile-palmares strong {
  white-space: pre-line;
}
.public-player-dialog::backdrop {
  background: transparent;
  backdrop-filter: blur(0);
  transition:
    background 0.35s ease,
    backdrop-filter 0.35s ease;
}
.public-player-dialog.profile-opened::backdrop {
  background: #081322cc;
  backdrop-filter: blur(6px);
}
.profile-moving-name {
  position: fixed;
  display: block;
  color: white;
  white-space: nowrap;
  pointer-events: none;
  transform-origin: top left;
}
.public-player-dialog {
  position: fixed;
}
@media (prefers-reduced-motion: reduce) {
  .public-player-dialog::backdrop {
    transition: none;
  }
}

.public-player-dialog.profile-morphing {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.profile-morph-shell {
  position: fixed;
  box-sizing: border-box;
  transform-origin: top left;
  pointer-events: none;
  will-change: transform;
}
.profile-moving-name {
  will-change: transform;
}

.profile-close {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  right: 16px;
  top: 16px;
  line-height: 1;
  cursor: pointer;
}
.profile-close svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.profile-information {
  background: transparent;
}
.profile-morph-shell {
  z-index: 0;
}
.profile-moving-name {
  z-index: 5;
}
.public-player-dialog.profile-morphing .public-profile-body,
.public-player-dialog.profile-morphing .profile-close {
  position: relative;
  z-index: 1;
}
.public-player-dialog.profile-morphing .profile-close {
  position: absolute;
}

html {
  scrollbar-gutter: stable;
}
.public-player-dialog {
  overscroll-behavior: contain;
}

.battlemenia-access-copy {
  max-width: 78ch;
  margin: 24px auto 36px;
  font-size: 17px;
  line-height: 1.8;
}
.battlemenia-access-copy p {
  margin: 0 0 14px;
}
.battlemenia-access-copy strong {
  color: white;
}

#battlemenia.qualified {
  background: #fff;
  color: #203452;
}
#battlemenia.qualified h2 {
  color: #203452;
  margin-bottom: 32px;
}
#battlemenia .battlemenia-access-copy p {
  color: #294678;
}
#battlemenia .battlemenia-access-copy strong {
  color: #203452;
}

.claim-dialog {
  width: min(560px, 94vw);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid #7187aa;
  border-radius: 20px;
  padding: 28px;
  background: #223c69;
  color: white;
}
.claim-dialog::backdrop {
  background: #081322cc;
}
.claim-dialog h2 {
  font-size: 34px;
  margin: 16px 0;
}
.claim-dialog label {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}
.claim-dialog input {
  width: 100%;
  padding: 12px;
  background: #152742;
  color: white;
  border: 1px solid #7187aa;
}
.claim-dialog .button {
  margin: 4px 8px 4px 0;
}
.claim-dialog .claim-dismiss {
  float: right;
}

.participant-pair {
  min-width: 0;
  padding: 16px;
  border: 1px solid #91b6e066;
  border-radius: 14px;
  background: #152c4c44;
}
.participant-pair h5 {
  font:
    700 18px/1.2 'Barlow Condensed',
    Impact,
    sans-serif;
  letter-spacing: 1px;
  color: #c7ddf8;
  margin: 0 0 12px;
}
.pair-players {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.participants-pair-fields {
  min-width: 0;
  display: grid;
  gap: 14px;
  border: 1px solid #91b6e066;
  border-radius: 12px;
  padding: 16px;
}
.participants-pair-fields legend {
  padding: 0 7px;
  font-weight: 700;
  color: #d4e6ff;
}
.participants-pairs {
  gap: 16px;
}
@media (max-width: 700px) {
  .participants-pairs {
    grid-template-columns: 1fr;
  }
  .participant-pair {
    padding: 14px;
  }
  .pair-players {
    gap: 10px;
  }
}

.participant-pair h5 {
  overflow-wrap: anywhere;
}
.pair-name-edit {
  display: block;
  background: none;
  border: 0;
  padding: 0;
  color: #c5ddff;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin: -4px 0 14px;
}
.pair-name-form {
  margin: 0 0 16px;
  padding: 12px;
  background: #132a4844;
  border-radius: 8px;
}
.pair-name-form label {
  display: grid;
  gap: 8px;
  color: #e1ebf8;
  font-size: 13px;
}
.pair-name-form input {
  width: 100%;
  padding: 9px;
  background: #152742;
  color: white;
  border: 1px solid #7187aa;
}
.pair-name-form .button {
  margin: 12px 10px 0 0;
  padding: 9px 12px;
  gap: 0;
}
.pair-name-form p {
  font-size: 13px;
  margin: 10px 0 0;
}

.event-participants h4 {
  margin-bottom: 24px;
}
.participants-caption[hidden] {
  display: none;
}

.participants-list .pair-players li {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  align-items: stretch;
}
.participant-identity {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
}
.participant-list-action {
  display: flex;
  min-width: 0;
}
.army-list-button {
  display: block;
  color: #e5f0ff;
  font-weight: 600;
  transition: background 0.2s;
}
.army-list-button:hover:enabled {
  background: #8bb8f433;
}
.army-list-button:focus-visible {
  outline: 2px solid #b8d9ff;
  outline-offset: -3px;
}
.army-list-button:disabled {
  cursor: default;
  color: #b4c3d9;
  background: transparent;
  font-weight: 400;
}
.participant-identity .participant-profile-link:before {
  border-radius: 8px 0 0 8px;
}
.army-list-dialog {
  overflow: auto;
  border: 1px solid #7187aa;
  border-radius: 20px;
  background: #223c69;
  color: white;
}
.army-list-dialog::backdrop {
  background: #081322cc;
  backdrop-filter: blur(4px);
}
.army-list-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.army-list-player {
  color: #e3edfc;
  font-weight: 700;
}
.army-list-status {
  font-size: 14px;
}
.army-list-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    14px/1.7 Inter,
    Arial,
    sans-serif;
  background: #142a4844;
  border-radius: 12px;
  color: #f1f6ff;
}
.army-list-form label {
  display: grid;
  gap: 8px;
  color: #e3edfc;
}
.army-list-form textarea,
.army-list-form input,
.army-list-form select {
  width: 100%;
  padding: 12px;
  background: #152742;
  color: white;
  border: 1px solid #7187aa;
  border-radius: 8px;
  font:
    14px/1.6 Inter,
    Arial,
    sans-serif;
}
.army-list-form textarea {
  resize: vertical;
}
.army-list-form-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.army-list-dialog [hidden] {
  display: none;
}
@media (max-width: 450px) {
  .participant-identity {
    padding: 12px 10px;
    gap: 7px;
  }
  .army-list-button {
    font-size: 12px;
  }
  .army-list-dialog {
    padding: 20px;
  }
  .army-list-top h2 {
    font-size: 30px;
  }
}

.participants-list .pair-players li {
  grid-template-columns: minmax(0, 1fr) auto;
}
.participant-list-action {
  border-left: 0;
  align-items: center;
  padding: 0 10px 0 0;
}
.participant-list-action:empty {
  display: none;
}
.army-list-button {
  width: auto;
  min-width: 0;
  max-width: 88px;
  padding: 7px 9px;
  border: 1px solid #a6c9f344;
  border-radius: 7px;
  background: #8bb8f414;
  font-size: 12px;
  line-height: 1.3;
}
.army-list-button:disabled {
  border-color: transparent;
  padding: 7px 3px;
  max-width: 72px;
  font-size: 11px;
}
.participant-identity {
  gap: 8px;
  padding: 14px 10px;
}
.participant-identity .participant-number {
  flex-basis: 22px;
}
.profile-army-history {
  margin: 28px 0 8px;
  padding: 0;
}
.profile-army-history h3 {
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 14px;
}
.profile-army-event {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #91b6e033;
}
.profile-army-event > span:first-child {
  font-size: 15px;
  font-weight: 600;
  color: #e4edfb;
}
.profile-army-button {
  padding: 8px 12px;
  border: 1px solid #a6c9f355;
  border-radius: 7px;
  background: #8bb8f41c;
  color: #edf5ff;
  font-size: 13px;
  white-space: nowrap;
}
.profile-army-button:hover {
  background: #8bb8f438;
}
.profile-army-pending {
  font-size: 12px;
  color: #a9bfdc;
}
.public-player-dialog {
  max-height: 90vh;
  overflow-y: auto;
}
.public-player-dialog.profile-morphing {
  overflow: visible;
}

.army-list-dialog {
  max-height: 94svh;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.army-list-dialog::-webkit-scrollbar,
.army-list-content::-webkit-scrollbar {
  display: none;
}
.army-list-top {
  position: sticky;
  z-index: 1;
  background: #223c69;
}
.army-list-player {
  font-size: 14px;
}
.army-list-status:empty {
  display: none;
}
.army-list-form label {
  margin: 14px 0;
}
.army-list-form textarea {
  font-size: 12px;
  line-height: 1.4;
}
@media (min-width: 720px) {
  .army-list-content {
    column-count: 2;
  }
}
@media (max-width: 719px) {
  .army-list-dialog {
    padding: 16px;
  }
  .army-list-top {
    top: -16px;
  }
  .army-list-top h2 {
    font-size: 27px;
  }
  .army-list-content {
    font-size: 12px;
    line-height: 1.4;
    padding: 12px;
  }
  .army-list-player {
    font-size: 13px;
  }
}

.army-list-dialog {
  width: min(850px, 96vw);
  max-width: 850px;
  padding: 16px 20px;
}
.army-list-top {
  top: -16px;
  padding: 4px 0;
}
.army-list-top h2 {
  font-size: 28px;
}
.army-list-player {
  margin: 6px 0 8px;
}
.army-list-content {
  column-count: 1 !important;
  column-rule: none;
  column-gap: 0;
  font-size: 12px;
  line-height: 1.25;
  padding: 12px 14px;
  margin: 8px 0;
}
.army-list-edit {
  margin-top: 4px;
}

.army-metadata-fields {
  margin: 22px 0;
  border-top: 1px solid #91b6e055;
  padding-top: 20px;
}
.army-metadata-fields h3 {
  font-size: 26px;
}
.army-metadata-fields p {
  font-size: 13px;
  line-height: 1.6;
}
.army-metadata-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.army-metadata-fields .army-confirm {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.army-confirm input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
  accent-color: #b7d5ff;
}
.army-stats-note {
  font-size: 14px;
  line-height: 1.7;
  max-width: 78ch;
}
.army-stats-error {
  color: #fff;
}
@media (max-width: 650px) {
  .army-metadata-grid {
    grid-template-columns: 1fr;
  }
}

.statistics-section .army-stats-panel {
  margin: 32px auto 0;
  text-align: left;
}
.statistics-section .army-stats-note {
  color: #294678;
  margin: 24px auto;
}
.statistics-section .army-stats-error {
  color: #294678;
}

.army-stat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid #a9b9ce;
  padding-bottom: 12px;
  margin-bottom: 28px;
}
.army-stat-tab {
  background: #edf3fb;
  border: 1px solid #b5c6df;
  color: #294678;
  padding: 12px 18px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
}
.army-stat-tab[aria-selected='true'] {
  background: #294678;
  color: white;
  border-color: #294678;
}
.army-stat-tab:focus-visible {
  outline: 3px solid #7197cb;
  outline-offset: 3px;
}
.army-stat-tabpanel[hidden] {
  display: none;
}
.army-stat-tabpanel:focus-visible {
  outline: 2px solid #7197cb;
  outline-offset: 6px;
}
.faction-chart {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  margin: 38px 0 18px;
  padding: 0;
}
.faction-chart-axis {
  height: 260px;
  position: relative;
  color: #52647f;
  font-size: 13px;
}
.faction-chart-axis span {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
}
.faction-chart-scroll {
  overflow-x: auto;
}
.faction-chart-bars {
  display: flex;
  justify-content: center;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 64px,
    #2946780c 64px,
    #2946780c 65px
  );
  background-size: 100% 260px;
  background-repeat: no-repeat;
}
.faction-chart-item {
  flex: 0 0 110px;
  min-width: 0;
  text-align: center;
}
.faction-chart-track {
  height: 260px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.faction-chart-bar {
  position: relative;
  transform-origin: bottom;
  background: linear-gradient(to top, #294678, #6b9ddc);
  border-radius: 9px 9px 0 0;
  box-shadow: 0 5px 16px #2946781c;
}
.faction-chart-bar strong {
  position: absolute;
  left: 0;
  width: 100%;
  font-size: 20px;
}
.faction-chart-name {
  display: block;
  min-height: 54px;
  padding: 14px 2px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #203452;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .army-stat-tabs {
    gap: 6px;
  }
  .army-stat-tab {
    padding: 10px 12px;
    font-size: 12px;
  }
  .faction-chart-bars {
    gap: 18px;
  }
  .faction-chart-item {
    flex-basis: 95px;
  }
  .faction-chart-name {
    font-size: 13px;
  }
}

.faction-chart-bars {
  border-bottom: 0;
}
.faction-chart-track {
  border-bottom: 1px solid #8da5c7;
}
.faction-chart-bar strong {
  top: -27px;
  color: #294678;
}
.faction-chart-scroll {
  padding-top: 30px;
  margin-top: -30px;
}
.faction-chart-bar[data-faction='Ángeles Oscuros'] {
  box-shadow: 0 5px 16px #003d151c;
}

.faction-chart-bar[data-faction='Ángeles Oscuros'] {
  background: linear-gradient(to top, #003d15, #166637);
}
.disposition-chart-section {
  margin: 60px 0 0;
  padding: 34px 0 0;
  border-top: 1px solid #b9c8db;
}
.disposition-chart-section h3 {
  color: #203452;
  font-size: 32px;
  line-height: 1.2;
}
.army-stat-tabpanel > .disposition-chart-section:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}
.disposition-chart .faction-chart-item {
  flex-basis: 145px;
}
.disposition-chart .faction-chart-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
}
.disposition-chart .disposition-icon {
  flex-basis: auto;
}
.faction-chart-bar[data-disposition='Take and Hold'] {
  background: linear-gradient(to top, #006b2e, #30984d);
}
.faction-chart-bar[data-disposition='Disruption'] {
  background: linear-gradient(to top, #00537b, #328db6);
}
.faction-chart-bar[data-disposition='Purge the Foe'] {
  background: linear-gradient(to top, #8f1618, #db3c3b);
}
.faction-chart-bar[data-disposition='Priority Assets'] {
  background: linear-gradient(to top, #ad8504, #e0bd28);
}
.faction-chart-bar[data-disposition='Reconnaissance'] {
  background: linear-gradient(to top, #006f70, #31b0ad);
}
@media (max-width: 600px) {
  .disposition-chart .faction-chart-item {
    flex-basis: 120px;
  }
  .disposition-chart-section h3 {
    font-size: 28px;
  }
}

.detachment-stat-group {
  max-width: 850px;
  margin: 32px auto;
  color: #203452;
}
.detachment-stat-group h3 {
  font-size: 30px;
  margin-bottom: 24px;
}
.detachment-stat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px 20px;
  margin: 22px 0;
}
.detachment-stat-track {
  grid-column: 1/-1;
  background: #dbe3ed;
  border-radius: 7px;
  overflow: hidden;
}
.detachment-stat-bar {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(to right, #174b84, #4794d3);
}
.detachment-stat-bar[data-faction='Ángeles Oscuros'] {
  background: linear-gradient(to right, #003d15, #166637);
}

.detachment-filters {
  max-width: 850px;
  margin: 24px auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: #203452;
}
.detachment-filter-status {
  margin: 0;
  font-size: 14px;
}
.detachment-filter-options {
  flex-basis: 100%;
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px;
  background: #edf3fa;
  border: 1px solid #b9c8db;
  border-radius: 10px;
}
.detachment-filter-options[hidden],
.detachment-stat-group[hidden] {
  display: none;
}
.detachment-filter-options label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 190px;
  color: #203452;
}
.detachment-filter-options select {
  padding: 12px;
  background: #fff;
  color: #203452;
  border: 1px solid #9eb5d3;
  border-radius: 7px;
  font: inherit;
  width: 100%;
}
.detachment-filter-options button:disabled {
  opacity: 0.5;
  cursor: default;
}

.participant-player-results {
  padding: 10px;
  border: 1px solid #8aa7cd;
  background: #152c4e;
  border-radius: 8px;
  display: grid;
  gap: 5px;
}
.participant-player-results[hidden] {
  display: none;
}
.participant-player-results small {
  color: #b5ccea;
  padding: 4px;
  font-size: 12px;
}
.participant-player-results p {
  color: #e5efff;
  font-size: 13px;
  margin: 6px;
}
.participant-player-option {
  text-align: left;
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #2d4870;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.participant-player-option:hover,
.participant-player-option:focus-visible {
  background: #3a5d8e;
  border-color: #a4ceff;
  outline: none;
}

.faction-chart-bar[data-faction='Devoradores de Mundos'] {
  background: linear-gradient(to top, #6a0001, #962226);
}
.detachment-stat-bar[data-faction='Devoradores de Mundos'] {
  background: linear-gradient(to right, #6a0001, #962226);
}
.faction-chart-bar[data-faction='Imperio T’au'] {
  background: linear-gradient(to top, #99601f, #d5a34b);
}
.detachment-stat-bar[data-faction='Imperio T’au'] {
  background: linear-gradient(to right, #99601f, #d5a34b);
}

.faction-chart-bar[data-faction='Necrones'] {
  background: linear-gradient(to top, #218d13, #94f43b);
}
.detachment-stat-bar[data-faction='Necrones'] {
  background: linear-gradient(to right, #218d13, #94f43b);
}
.faction-chart-bar[data-faction='Adeptus Custodes'] {
  background: linear-gradient(to top, #a67b08, #f5df78);
}
.detachment-stat-bar[data-faction='Adeptus Custodes'] {
  background: linear-gradient(to right, #a67b08, #f5df78);
}

.faction-chart-bar[data-faction='Ángeles Sangrientos'] {
  background: linear-gradient(to top, #960c09, #cf3028);
}
.detachment-stat-bar[data-faction='Ángeles Sangrientos'] {
  background: linear-gradient(to right, #960c09, #cf3028);
}
.faction-chart-bar[data-faction='Astra Militarum'] {
  background: linear-gradient(to top, #4d5931, #84945b);
}
.detachment-stat-bar[data-faction='Astra Militarum'] {
  background: linear-gradient(to right, #4d5931, #84945b);
}

.statistics-section {
  width: 100%;
  max-width: none;
  padding-left: clamp(16px, 3vw, 56px);
  padding-right: clamp(16px, 3vw, 56px);
  box-sizing: border-box;
}
.statistics-section .army-stats-panel {
  max-width: none;
  width: 100%;
  min-width: 0;
}
.faction-chart-scroll {
  overflow: visible;
  min-width: 0;
}
.faction-chart-bars {
  width: 100%;
  min-width: 0;
  gap: clamp(6px, 1.5vw, 24px);
}
.faction-chart-item,
.disposition-chart .faction-chart-item {
  flex: 1 1 0;
  min-width: 0;
}
.faction-chart-bar {
  width: min(68px, 75%);
}
.detachment-stat-group,
.detachment-filters {
  max-width: none;
}
.statistics-section .detachment-filter-status {
  color: #294678;
}
.army-stat-tabs {
  min-width: 0;
}
.army-stat-tab {
  max-width: 100%;
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .faction-chart {
    display: block;
    margin-top: 24px;
  }
  .faction-chart-axis {
    display: none;
  }
  .faction-chart-scroll {
    padding: 0;
    margin: 0;
  }
  .faction-chart-bars {
    display: grid;
    gap: 18px;
    background: none;
  }
  .faction-chart-item,
  .disposition-chart .faction-chart-item {
    display: grid;
    grid-template-columns: minmax(100px, 35%) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    text-align: left;
  }
  .faction-chart-track {
    grid-column: 2;
    grid-row: 1;
    height: 22px;
    border: 0;
    background: #edf2f7;
    border-radius: 5px;
    margin-right: 30px;
    justify-content: flex-start;
    align-items: center;
  }
  .faction-chart-bar {
    height: 16px !important;
    width: var(--share);
    border-radius: 5px;
    box-shadow: none;
    transform-origin: left;
  }
  .faction-chart-bar strong {
    top: 50%;
    left: calc(100% + 8px);
    width: auto;
    transform: translateY(-50%);
    font-size: 15px;
  }
  .faction-chart-name {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    padding: 0;
    font-size: 13px;
  }
  .disposition-chart .faction-chart-name {
    flex-direction: row;
    justify-content: flex-start;
    padding: 0;
    gap: 6px;
  }
  .disposition-chart .disposition-icon {
    width: 42px;
    min-width: 42px;
  }
  .detachment-stat-row {
    overflow-wrap: anywhere;
  }
}

.faction-chart-bar[data-faction='Marines Espaciales'] {
  background: linear-gradient(to top, #123b92, #3575d1);
}
.detachment-stat-bar[data-faction='Marines Espaciales'] {
  background: linear-gradient(to right, #123b92, #3575d1);
}
.faction-chart-bar[data-faction='Aeldari'] {
  background: linear-gradient(to top, #dce3ec, #ffffff);
  border: 1px solid #a6b5c8;
  box-shadow: 0 4px 12px #2034521a;
}
.detachment-stat-bar[data-faction='Aeldari'] {
  background: linear-gradient(to right, #dce3ec, #ffffff);
  border: 1px solid #a6b5c8;
}

.faction-chart-bar[data-faction='Marines Espaciales del Caos'] {
  background: linear-gradient(to top, #000000, #151515);
}
.detachment-stat-bar[data-faction='Marines Espaciales del Caos'] {
  background: linear-gradient(to right, #000000, #151515);
}

.faction-chart-bar[data-faction='Lobos Espaciales'] {
  background: linear-gradient(to top, #58778a, #a8c4d1);
}
.detachment-stat-bar[data-faction='Lobos Espaciales'] {
  background: linear-gradient(to right, #58778a, #a8c4d1);
}

.faction-chart-bar[data-faction='Guardia de la Muerte'] {
  background: linear-gradient(to top, #626b2f, #a0a65c);
}
.detachment-stat-bar[data-faction='Guardia de la Muerte'] {
  background: linear-gradient(to right, #626b2f, #a0a65c);
}

.faction-chart-bar[data-faction='Drukhari'] {
  background: linear-gradient(to top, #02694d, #038c67);
}
.detachment-stat-bar[data-faction='Drukhari'] {
  background: linear-gradient(to right, #02694d, #038c67);
}
.faction-chart-bar[data-faction='Hijos del Emperador'] {
  background: linear-gradient(to top, #ac326b, #ed90bd);
}
.detachment-stat-bar[data-faction='Hijos del Emperador'] {
  background: linear-gradient(to right, #ac326b, #ed90bd);
}
.faction-chart-bar[data-faction='Tiránidos'] {
  background: linear-gradient(to top, #52217e, #a557c9);
}
.detachment-stat-bar[data-faction='Tiránidos'] {
  background: linear-gradient(to right, #52217e, #a557c9);
}
.faction-chart-bar[data-faction='Cultos Genestealer'] {
  background: linear-gradient(to top, #71214f, #b54b86);
}
.detachment-stat-bar[data-faction='Cultos Genestealer'] {
  background: linear-gradient(to right, #71214f, #b54b86);
}
.faction-chart-bar[data-faction='Hermanas de Batalla'] {
  background: linear-gradient(to top, #790d35, #bd2455);
}
.detachment-stat-bar[data-faction='Hermanas de Batalla'] {
  background: linear-gradient(to right, #790d35, #bd2455);
}
.faction-chart-bar[data-faction='Caballeros del Caos'] {
  background: linear-gradient(to top, #292d33, #50565f);
}
.detachment-stat-bar[data-faction='Caballeros del Caos'] {
  background: linear-gradient(to right, #292d33, #50565f);
}
.faction-chart-bar[data-faction='Templarios Negros'] {
  background: linear-gradient(to top, #15181c, #30353d);
}
.detachment-stat-bar[data-faction='Templarios Negros'] {
  background: linear-gradient(to right, #15181c, #30353d);
}
.faction-chart-bar[data-faction='Orkos'] {
  background: linear-gradient(to top, #072c28, #0b3b36);
}
.detachment-stat-bar[data-faction='Orkos'] {
  background: linear-gradient(to right, #072c28, #0b3b36);
}

@media (min-width: 901px) {
  #stats-panel-representation .faction-chart {
    padding-bottom: 155px;
  }
  #stats-panel-representation .faction-chart-item {
    position: relative;
  }
  #stats-panel-representation .faction-chart-name {
    position: absolute;
    top: 100%;
    right: 50%;
    width: max-content;
    max-width: none;
    min-height: 0;
    padding: 12px 0 0;
    white-space: nowrap;
    overflow-wrap: normal;
    text-align: right;
    font-size: 13px;
    line-height: 1.3;
    transform: rotate(-48deg);
    transform-origin: right top;
  }
}

.hero-intro .tour-title.tour-logo {
  margin-bottom: -65px;
}
@media (max-width: 700px) {
  .hero-intro .tour-title.tour-logo {
    margin-bottom: -25px;
  }
}

.event-pairings {
  min-width: 0;
}
.pairings-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.pairings-heading h4 {
  margin: 0;
}
.pairings-heading .button {
  font-size: 13px;
  padding: 12px 18px;
}
.pairings-round-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}
.pairings-round-tabs button {
  background: #193555;
  color: #e5efff;
  border: 1px solid #799ec5;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
}
.pairings-round-tabs button[aria-pressed='true'] {
  background: #e4edfa;
  color: #163153;
  font-weight: 700;
}
.pairings-matches {
  display: grid;
  gap: 14px;
}
.pairing-match {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 44px 20px 20px;
  background: #19355588;
  border: 1px solid #86a8cf77;
  border-radius: 12px;
}
.pairing-table {
  position: absolute;
  top: 12px;
  left: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #aecdf2;
}
.pairing-side {
  min-width: 0;
  overflow-wrap: anywhere;
}
.pairing-side h5 {
  margin: 0 0 8px;
  font-size: 20px;
}
.pairing-side:last-child {
  text-align: right;
}
.pairing-player {
  display: block;
  font-size: 14px;
  color: #e1edff;
  margin: 5px 0;
  text-decoration: none;
}
.pairing-player:hover {
  text-decoration: underline;
}
.pairing-versus {
  text-align: center;
  font-weight: 800;
  color: #9cc5fa;
}
.pairings-editor {
  display: grid;
  gap: 18px;
}
.pairings-publish {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pairings-publish input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.pairings-edit-rounds {
  display: grid;
  gap: 20px;
}
.pairings-edit-round {
  border: 1px solid #8badcf77;
  border-radius: 12px;
  padding: 18px;
  min-width: 0;
}
.pairings-edit-round legend label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pairings-edit-round input[type='number'] {
  width: 80px;
}
.pairings-edit-matches {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}
.pairings-edit-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding-bottom: 14px;
  border-bottom: 1px solid #8badcf44;
}
.pairings-edit-match label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  min-width: 0;
}
.pairings-editor select,
.pairings-editor input[type='number'] {
  min-width: 0;
  max-width: 100%;
  background: #142e4b;
  color: white;
  border: 1px solid #89a8cd;
  border-radius: 6px;
  padding: 11px;
  font: inherit;
}
.pairings-editor .secondary {
  margin: 5px 12px 5px 0;
  cursor: pointer;
}
.pairings-note {
  font-size: 14px;
  color: #d6e6fa;
}
.pairings-editor button:focus-visible,
.pairings-round-tabs button:focus-visible {
  outline: 3px solid #b4d7ff;
  outline-offset: 3px;
}
@media (max-width: 700px) {
  .pairings-edit-match {
    grid-template-columns: 1fr;
  }
  .pairing-match {
    padding: 40px 12px 16px;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  }
  .pairing-side h5 {
    font-size: 17px;
  }
  .pairing-player {
    font-size: 12px;
  }
  .pairings-heading {
    align-items: flex-start;
  }
  .pairing-table {
    left: 12px;
  }
}

.event-tournament-tabs {
  display: flex;
}
.event-tournament-tabs button {
  color: #e6f0ff;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition:
    background 0.18s,
    box-shadow 0.18s;
}
.event-tournament-tabs button:focus-visible {
  outline: 3px solid #c7e2ff;
  outline-offset: 3px;
}
.event-roster-content[hidden],
.event-pairings[hidden],
.event-tournament-tabs button[hidden],
.event-tickets[hidden] {
  display: none !important;
}
.event-pairings {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.event-participants[data-event-loading] {
  min-height: 120px;
}
.event-participants[data-event-loading] > * {
  display: none !important;
}
.event-participants[data-event-loading]::after {
  content: 'Cargando evento…';
  display: block;
  padding: 24px 0;
  color: #dceaff;
}
.event-published:not([data-roster-ready]) .participants-list {
  display: none;
}
.event-tournament-tabs {
  align-items: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
  padding-bottom: 0;
  border-bottom: 1px solid #91b5df;
  margin-bottom: 26px;
}
.event-tournament-tabs button {
  position: relative;
  margin: 0 0 -1px;
  min-height: 46px;
  border: 1px solid #8cafd4;
  border-bottom: 1px solid #91b5df;
  border-radius: 11px 11px 0 0;
  padding: 12px 22px;
  background: #1e3c5d;
  box-shadow: none;
  white-space: nowrap;
}
.event-tournament-tabs button[aria-selected='true'] {
  min-height: 52px;
  padding-top: 16px;
  background: #e4edfa;
  border-color: #e4edfa;
  color: #173253;
  box-shadow: none;
  z-index: 1;
}
.event-tournament-tabs button[aria-selected='true']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #e4edfa;
}
.event-tournament-tabs button:hover {
  background: #2b4c71;
  box-shadow: none;
}
.event-tournament-tabs button[aria-selected='true']:hover {
  background: #e4edfa;
}
@media (max-width: 600px) {
  .event-tournament-tabs {
    gap: 5px;
  }
  .event-tournament-tabs button {
    flex: 0 1 auto;
    min-width: 0;
    padding: 12px 13px;
    font-size: 13px;
  }
  .event-tournament-tabs button[aria-selected='true'] {
    padding-top: 16px;
  }
}

.board-players li.board-player-filled {
  position: relative;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.board-player-filled .board-name a {
  color: inherit;
  text-decoration: none;
}
.board-player-filled .board-name a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.board-players li.board-player-filled:hover,
.board-players li.board-player-filled:focus-within {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px #a6c7ed,
    0 5px 12px #10213d44;
}
.board-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.board-view-all {
  font: inherit;
  cursor: pointer;
}
.board-view-all:hover,
.board-view-all:focus-visible {
  background: #41689c;
  outline: 2px solid #bbd8fa;
  outline-offset: 2px;
}
.standings-dialog {
  box-sizing: border-box;
  margin: auto;
  border: 1px solid #91b5df;
  border-radius: 18px;
  background: #233f69;
  color: #fff;
  box-shadow: 0 24px 80px #07132688;
  overflow-y: auto;
}
.standings-dialog::backdrop {
  background: #091525b8;
  backdrop-filter: blur(5px);
}
.standings-dialog header {
  display: flex;
  align-items: center;
  gap: 16px;
}
.standings-dialog h3 {
  margin: 0;
  line-height: 1.2;
}
.standings-dialog-close {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  padding: 0;
  color: white;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}
.standings-dialog .board-name {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.standings-dialog .board-labels {
  margin-bottom: 12px;
}
.board-view-all {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 14px 0 0;
  padding: 13px 4px 3px;
  border: 0;
  border-top: 1px solid #91b5df40;
  border-radius: 0;
  background: transparent;
  color: #dce9fa;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}
.board-view-all::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}
.board-view-all:hover {
  background: transparent;
  color: #fff;
  border-top-color: #b9d8ff;
  box-shadow: none;
  outline: none;
}
.board-view-all:hover::after {
  transform: translateX(3px) rotate(-45deg);
}
.board-view-all:focus-visible {
  background: transparent;
  color: #fff;
  outline: 2px solid #bbd8fa;
  outline-offset: 4px;
  border-radius: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .board-view-all,
  .board-view-all::after {
    transition: none;
  }
}

.standings-dialog {
  width: min(var(--standings-width, 792px), calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  max-height: 94dvh;
  padding: 24px 28px 28px;
  overflow-x: hidden;
}
.standings-dialog header {
  position: relative;
  justify-content: center;
  margin-bottom: 20px;
  padding: 0 46px 18px;
  border-bottom: 1px solid #91b5df55;
}
.standings-dialog-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
}
.standings-dialog-title .disposition-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}
.standings-dialog h3 {
  font-size: 32px;
}
.standings-dialog-close {
  position: absolute;
  right: 0;
  top: 0;
}
.standings-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr));
  gap: 24px;
  align-items: start;
}
.standings-dialog .board-players {
  gap: 8px;
}
.standings-dialog .board-players li {
  min-height: 38px;
  padding: 5px 8px;
  grid-template-columns: 25px 28px minmax(0, 1fr) 30px;
  font-size: 13px;
}
.standings-dialog .board-avatar {
  width: 28px;
  height: 28px;
}
.standings-dialog .board-labels {
  margin: 0 0 10px;
}
@media (max-height: 850px) and (min-width: 700px) {
  .standings-dialog {
    padding: 16px 24px 20px;
  }
  .standings-dialog header {
    margin-bottom: 14px;
    padding-bottom: 12px;
  }
  .standings-dialog-title {
    flex-direction: row;
    gap: 12px;
  }
  .standings-dialog-title .disposition-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
  .standings-dialog h3 {
    font-size: 28px;
  }
  .standings-dialog .board-players {
    gap: 6px;
  }
  .standings-dialog .board-players li {
    min-height: 36px;
  }
}
@media (max-width: 600px) {
  .standings-dialog {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    padding: 20px 14px;
  }
  .standings-columns {
    gap: 22px;
  }
  .standings-dialog h3 {
    font-size: 27px;
  }
}

.standings-dialog-close {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  width: 38px;
  min-width: 38px;
}
.standings-dialog-close:hover {
  background: transparent;
  color: #c2ddff;
  box-shadow: none;
}
.standings-dialog-close:focus-visible {
  outline: 2px solid #bbd8fa;
  outline-offset: 2px;
}

.pairing-match-interactive {
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.pairing-match-interactive:hover,
.pairing-match-interactive:focus-visible {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px #a9c9ee,
    0 8px 22px #0b203d55;
  outline: none;
}
.pairing-insights-trigger {
  grid-column: 1/-1;
  justify-self: center;
  border: 0;
  border-top: 1px solid #91b5df40;
  border-radius: 0;
  background: transparent;
  color: #dce9fa;
  font-size: 12px;
  padding: 10px 20px 0;
  cursor: pointer;
}
.match-insights-dialog {
  box-sizing: border-box;
  overflow-y: auto;
  background: #233f69;
  color: #fff;
  border: 1px solid #91b5df;
  border-radius: 18px;
  box-shadow: 0 24px 80px #07132688;
}
.match-insights-dialog::backdrop {
  background: #091525b8;
  backdrop-filter: blur(5px);
}
.match-insights-dialog header {
  position: relative;
  padding-right: 42px;
  margin-bottom: 24px;
}
.match-insights-dialog h3 {
  margin: 0;
}
.match-insights-close {
  position: absolute;
  right: 0;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}
.match-insights-players {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #91b5df55;
  text-align: center;
}
.match-insights-players > div {
  display: grid;
  gap: 8px;
}
.match-insights-players a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}
.match-insights-players a:hover {
  text-decoration: underline;
}
.match-insights-vs {
  color: #aac9ec;
  font-weight: 700;
}
.match-insight {
  padding: 18px;
  background: #304f7b;
  border: 1px solid #91b5df35;
  border-radius: 12px;
}
.match-insight h4 {
  margin: 0 0 10px;
  font-size: 21px;
  color: #fff;
}
.match-insight p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #e3edfa;
}
@media (max-width: 600px) {
  .match-insights-dialog {
    padding: 20px;
  }
  .match-insights-players {
    gap: 12px;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pairing-match-interactive {
    transition: none;
  }
}

#events {
  overflow-anchor: none;
}
#events .event-published.is-expanded {
  align-self: start;
}
.pairing-match .pairing-side[data-side='home'] {
  grid-column: 1;
  grid-row: 1;
  text-align: left;
  align-self: start;
}
.pairing-match .pairing-side[data-side='away'] {
  grid-column: 3;
  grid-row: 1;
  text-align: right;
  align-self: start;
}
.pairing-match .pairing-versus {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}
.pairing-match .pairing-insights-trigger {
  grid-column: 1/-1;
  grid-row: 2;
}

.match-insights-dialog header {
  padding: 0 44px 20px;
  text-align: center;
}
.match-insights-dialog h3 {
  text-align: center;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
}
.match-insights-close {
  top: 0;
}
.match-charts {
  margin-top: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid #91b5df55;
}
.match-chart-note {
  font-size: 11px;
  line-height: 1.6;
  color: #bfd3ed;
  margin: 15px 0 0;
  text-align: center;
}
.match-chart-legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 12px;
  font-size: 11px;
  color: #dbe8fa;
}
.match-chart-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.match-chart-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
@media (max-width: 600px) {
  .match-insights-dialog header {
    padding-inline: 28px;
  }
  .match-insights-dialog h3 {
    font-size: 25px;
  }
}

.match-insights-dialog > header {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 0 44px 20px;
}
.match-insights-dialog > header h3 {
  width: 100%;
  margin: 0;
  text-align: center;
}
.match-insights-dialog {
  width: min(1180px, calc(100vw - 40px));
  max-width: calc(100vw - 40px);
  max-height: 94dvh;
  padding: 26px 30px 30px;
}
.match-comparison {
  margin-top: 22px;
}
.match-stats-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.match-stats-side {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.match-player-stats {
  padding: 22px;
  background: linear-gradient(145deg, #304f7b, #1e3b60);
  border: 1px solid #91b5df50;
  border-radius: 14px;
  min-width: 0;
}
.match-player-stats > h4 {
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #91b5df40;
  font-size: 25px;
  line-height: 1.15;
}
.match-player-stats > h4 a {
  color: #fff;
  text-decoration: none;
}
.match-player-stats > h4 a:hover {
  text-decoration: underline;
}
.match-metric-group + .match-metric-group {
  margin-top: 21px;
}
.match-metric-group > h5 {
  font:
    600 13px/1.4 Arial,
    sans-serif;
  color: #c3dcf7;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
.match-metric-row + .match-metric-row {
  margin-top: 13px;
}
.match-metric-labels {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 6px;
}
.match-metric-labels > span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #f0f5ff;
}
.match-metric-labels strong {
  flex-shrink: 0;
  font-size: 18px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.match-metric-row.is-empty strong {
  font-size: 12px;
  color: #acbfd8;
  font-weight: 500;
}
.match-metric-track {
  display: flex;
  width: 100%;
  height: 7px;
  border-radius: 5px;
  overflow: hidden;
  background: #91b5df24;
}
.match-metric-track > span {
  height: 100%;
  flex-shrink: 0;
}
.match-metric-wins {
  background: #61c9f2;
}
.match-metric-draws {
  background: #b6c8df;
}
.match-metric-losses {
  background: #d07c8d;
}
.match-metric-row.is-empty .match-metric-track {
  height: 3px;
  background: #91b5df20;
}
.match-metric-sample {
  display: block;
  margin-top: 5px;
  color: #b8cbe3;
  font-size: 10px;
  line-height: 1.4;
}
.match-metric-empty {
  font-size: 12px;
  color: #b8cbe3;
  margin: 0;
}
.match-comparison .match-chart-legend {
  margin-top: 21px;
}
.match-comparison .match-chart-note {
  max-width: 760px;
  margin: 12px auto 0;
}
@media (max-width: 700px) {
  .match-insights-dialog {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    padding: 20px 14px;
  }
  .match-stats-columns {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .match-player-stats {
    padding: 18px;
  }
  .match-insights-dialog > header {
    padding-inline: 30px;
  }
  .match-insights-dialog h3 {
    font-size: 24px;
  }
  .match-stats-side {
    gap: 18px;
  }
}

.match-player-stats:has(.match-player-curiosity) > h4 {
  border: 0;
  padding-bottom: 0;
  margin-bottom: 10px;
}
.match-player-curiosity {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0 0 17px;
  border: 0;
  border-bottom: 1px solid #91b5df40;
  border-radius: 0;
  background: transparent;
  color: #eaf3ff;
  font-size: 13px;
  line-height: 1.65;
}
.match-curiosity-icon {
  flex: 0 0 17px;
  color: #9ed5ff;
  font-size: 17px;
  line-height: 1.3;
  text-align: center;
  margin-top: 2px;
}
.match-player-curiosity > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.match-curiosity-fallback {
  margin-top: 22px;
}
.match-curiosity-fallback .match-player-curiosity {
  margin-bottom: 14px;
}

.pairing-side .pairing-player {
  width: fit-content;
  max-width: 100%;
}
.pairing-side[data-side='away'] .pairing-player {
  margin-left: auto;
}
.pairing-side[data-side='home'] .pairing-player {
  margin-right: auto;
}

/* Quick match access shares the existing public pairing data. */
.my-match {
  margin: 0 0 32px;
  padding: 24px;
  border: 1px solid #91b3dc;
  border-radius: 18px;
  background: #203b60;
  text-align: left;
  color: #e8f0fc;
}
.my-match-heading {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.my-match-heading h3 {
  margin: 0;
  font-size: 28px;
}
.my-match-heading p {
  margin: 0;
  font-size: 14px;
}
.my-match-controls {
  display: flex;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
}
.my-match label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.my-match select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #91b3dc;
  border-radius: 8px;
  background: #152c48;
  color: #fff;
  font: inherit;
}
.my-match select:focus-visible,
.my-match button:focus-visible,
.my-match a:focus-visible {
  outline: 2px solid #b6dcff;
  outline-offset: 3px;
}
.my-match-status {
  margin: 16px 0 0;
  font-size: 14px;
}
.my-match-status:empty {
  display: none;
}
.my-match-detail:empty {
  display: none;
}
.my-match-detail {
  margin-top: 20px;
}
.my-match-round {
  max-width: 280px;
}
.my-match-table {
  font-family: Oswald, sans-serif;
  font-weight: bold;
  font-size: 26px;
  margin: 18px 0 12px;
  color: #fff;
}
.my-match-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.my-match-side {
  padding: 18px;
  background: #29466c;
  border: 1px solid #6282a7;
  border-radius: 12px;
  min-width: 0;
}
.my-match-side h4 {
  font-size: 16px;
  margin: 0 0 8px;
  color: #b5d8ff;
}
.my-match-team {
  font-size: 20px;
  font-weight: bold;
  margin: 0 0 12px;
}
.my-match-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin-top: 8px;
}
.my-match-member a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.my-match-member a:hover {
  text-decoration: underline;
}
.my-match-member .army-list-button {
  flex-shrink: 0;
}
.my-match button:disabled {
  opacity: 0.65;
  cursor: default;
}
@media (max-width: 600px) {
  .my-match {
    padding: 18px;
  }
  .my-match-controls {
    align-items: stretch;
    flex-direction: column;
  }
  .my-match-controls label {
    width: 100%;
  }
  .my-match-sides {
    grid-template-columns: 1fr;
  }
  .my-match-heading {
    gap: 8px;
  }
  .my-match-member {
    font-size: 14px;
  }
}
/* Personal match access lives exclusively in the signed-in account area. */
.access-panel.account-page {
  width: min(1100px, 100%);
}
.account-page #account-form {
  max-width: 440px;
}
.account-page .my-match {
  margin: 28px 0 0;
}
.account-page .my-match .my-match-round {
  max-width: 280px;
}
.account-page .my-match .army-list-button {
  width: auto;
  margin: 0;
  padding: 8px 12px;
  font-size: 13px;
}
.account-page .my-match select {
  margin: 0;
}
@media (max-width: 600px) {
  .access-panel.account-page {
    padding: 20px;
  }
  .account-page .my-match {
    padding: 16px;
  }
}
/* Tournament operations and public standings. */
.event-tournament-standings h4 {
  font-size: 26px;
  margin: 24px 0 12px;
}
.tournament-note {
  font-size: 13px;
  line-height: 1.7;
  color: #c8dcf6;
}
.tournament-standings {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.tournament-standing {
  display: grid;
  grid-template-columns: 36px minmax(160px, 1fr) repeat(4, minmax(65px, auto));
  gap: 12px;
  align-items: center;
  background: #2b4871;
  border: 1px solid #7796bc;
  border-radius: 10px;
  padding: 14px;
}
.tournament-position {
  font-size: 22px;
  color: #bfdfff;
}
.tournament-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: center;
}
.tournament-stat small {
  font-size: 11px;
  color: #c8dcf6;
}
.tournament-match-score {
  grid-column: 1/-1;
  text-align: center;
  margin: 12px 0 0;
  color: #dcecff;
  font-size: 14px;
  font-weight: bold;
}
.tournament-dialog {
  width: min(1120px, 94vw);
  max-width: 94vw;
  max-height: 92vh;
  padding: 26px;
  background: #203b60;
  color: #fff;
  border: 1px solid #91b3dc;
  border-radius: 20px;
  overflow-y: auto;
}
.tournament-dialog::backdrop {
  background: #071527c9;
  backdrop-filter: blur(5px);
}
.tournament-dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #7796bc;
  margin-bottom: 20px;
  padding-bottom: 18px;
}
.tournament-dialog-heading h2 {
  font-size: 30px;
  margin: 0;
}
.tournament-dialog-heading button {
  background: none;
  color: #fff;
  border: 0;
  font-size: 28px;
  cursor: pointer;
  padding: 4px 10px;
}
.tournament-dialog label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.tournament-dialog input,
.tournament-dialog select {
  min-height: 44px;
  background: #152c48;
  color: #fff;
  border: 1px solid #91b3dc;
  border-radius: 8px;
  padding: 10px;
  font: inherit;
  width: 100%;
}
.tournament-dialog input:focus-visible,
.tournament-dialog select:focus-visible,
.tournament-dialog button:focus-visible {
  outline: 2px solid #c5e4ff;
  outline-offset: 3px;
}
.tournament-config {
  display: flex;
  align-items: end;
  gap: 16px;
  margin: 20px 0;
}
.tournament-config label {
  max-width: 180px;
}
.tournament-result-form,
.tournament-draft {
  background: #29466c;
  border: 1px solid #7796bc;
  border-radius: 12px;
  padding: 20px;
  margin: 18px 0;
}
.tournament-result-form h3,
.tournament-draft h3 {
  margin: 0 0 18px;
  font-size: 22px;
}
.tournament-result-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 16px;
  margin-bottom: 16px;
}
.tournament-manager-body > .button,
.tournament-manager-body > .secondary,
.tournament-draft > .button,
.tournament-draft > .secondary {
  margin: 12px 14px 0 0;
}
.tournament-status {
  color: #fff;
  font-weight: bold;
}
.tournament-status:empty {
  display: none;
}
.pairings-heading {
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 700px) {
  .tournament-standing {
    grid-template-columns: 32px 1fr 1fr 1fr;
    gap: 10px;
  }
  .tournament-team-name {
    grid-column: 2/-1;
  }
  .tournament-stat {
    grid-row: 2;
    font-size: 13px;
  }
  .tournament-result-fields {
    grid-template-columns: 1fr;
  }
  .tournament-dialog {
    padding: 18px;
  }
  .tournament-result-form {
    padding: 15px;
  }
  .tournament-config {
    flex-wrap: wrap;
  }
}

/* Round creation: both choices stay at the start of the organizer panel. */
.tournament-round-tools {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #7187aa;
}
.tournament-round-tools h3 {
  margin: 0 0 16px;
}
.tournament-round-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.tournament-round-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid #7187aa;
  border-radius: 12px;
  background: #1a3455;
}
.tournament-round-choice h4 {
  margin: 0;
  font-size: 22px;
}
.tournament-round-choice p {
  margin: 10px 0 16px;
}
.tournament-round-choice .button {
  margin-top: auto;
}
.tournament-round-choice .button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pairings-edit-round[hidden] {
  display: none;
}
@media (max-width: 640px) {
  .tournament-round-choices {
    grid-template-columns: 1fr;
  }
}

/* Completed matches: the score occupies the same central position as VS. */
.pairing-match.has-result {
  grid-template-columns: minmax(0, 1fr) 156px minmax(0, 1fr);
  background: linear-gradient(120deg, #24466a, #193555);
}
.pairing-match.has-result .pairing-side {
  align-self: center;
}
.tournament-scoreboard {
  padding: 14px 10px 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.tournament-score-status {
  display: block;
  color: #9dbbdb;
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 700;
  margin-bottom: 7px;
}
.tournament-score-points {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}
.tournament-score-points b {
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #a9c0dc;
}
.tournament-score-points .score-winner {
  color: #fff;
  text-shadow: 0 0 20px #8bc9ff45;
}
.score-divider {
  color: #7797bb;
  font-size: 20px;
  font-weight: 400;
}
.pairing-winner-label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 8px;
  border: 1px solid #80d4f05e;
  border-radius: 5px;
  color: #b8edff;
  background: #76c9ef13;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
@media (max-width: 600px) {
  .pairing-match.has-result {
    grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
    gap: 10px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .tournament-scoreboard {
    padding: 12px 5px;
    border-radius: 10px;
  }
  .tournament-score-points {
    gap: 5px;
  }
  .tournament-score-points b {
    font-size: 27px;
  }
  .score-divider {
    font-size: 15px;
  }
  .pairing-match.has-result .pairing-side h5 {
    font-size: 16px;
  }
  .pairing-match.has-result .pairing-player {
    font-size: 12px;
  }
}
