/* Public LoLDrafter, champion select, and the tournament hub. */
:is(.public-draft-landing, .competition-draft, .competition-tournament) {
  --competition-ink: #edf2fb;
  --competition-muted: #a8b3c9;
  --competition-base: var(--irg-navy-deep);
  --competition-panel: #111b2b;
  --competition-raised: #19263d;
  --competition-line: #364760;
  --competition-blue: #8dc3ff;
  --competition-red: #ff9da8;
  --competition-font: var(--font-sora), var(--font-inter), sans-serif;
  --competition-mono: var(--font-jetbrains), monospace;
}

/* Setup and share cards sit over a split of IRG's existing arena and splash art. */
.public-draft-landing {
  --competition-accent: var(--public-draft-gold);
  position: relative;
  isolation: isolate;
  border-block-end: 1px solid #28354a;
  min-height: clamp(38rem, 78svh, 54rem);
  background:
    linear-gradient(0deg, var(--competition-base), transparent 65%),
    linear-gradient(90deg, #060d18a6, #060d1840 60%, #060d18b3),
    var(--competition-base) url("/brand/loldrafter-arena.webp") center 45% / cover;
}
.public-draft-landing::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 32% 0 0;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
  background:
    linear-gradient(0deg, var(--competition-base), transparent 65%),
    linear-gradient(90deg, #060d18cc, #060d1873 54%, #060d1840),
    url("/brand/hero-league-cinematic.png") 76% 42% / cover;
}
.public-draft-landing::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  clip-path: polygon(68% 0, 68.12% 0, 54.52% 100%, 54.4% 100%);
  background: linear-gradient(transparent 10%, #f3d499a8 48%, #f3d49948 76%, transparent);
}
.public-draft-landing__layout { width: min(100%, 78rem); }
.public-draft-landing__intro h1 {
  font-family: var(--competition-font);
  font-size: clamp(2.85rem, 6.3vw, 6.45rem);
  letter-spacing: -.078em;
}
.public-draft-landing__intro h1 > span { color: var(--competition-accent); }
.public-draft-landing__intro .public-draft-landing__category {
  display: flex;
  align-items: center;
  gap: .48rem;
  color: var(--competition-accent);
  font-family: var(--competition-mono);
  letter-spacing: .13em;
}
.public-draft-landing__category::before {
  content: "";
  width: 1.45rem;
  height: 1px;
  background: currentColor;
}
.public-draft-landing__category span { margin: 0; color: var(--competition-muted); }
.public-draft-landing__intro > p:last-child { max-width: 29rem; }
.public-draft-card {
  border-radius: .85rem;
  backdrop-filter: blur(18px);
}
.public-draft-card__header { border-color: var(--competition-line); }
.public-draft-card__header h2 { font-family: var(--competition-font); letter-spacing: -.035em; }
.public-draft-card__icon {
  color: var(--competition-accent);
  border-color: #f3d49952;
  background: #f3d49917;
}
.public-draft-form__team[data-team="1"] svg { color: var(--competition-blue); }
.public-draft-form__team[data-team="2"] svg { color: var(--competition-red); }
.public-draft-card :is(input[type="text"], input[type="search"], .public-draft-form__choices) {
  border-color: var(--competition-line);
  background: #0a1222dc;
}
.public-draft-card input::placeholder { color: var(--competition-muted); }
.public-draft-form__choices label:hover span { background: var(--competition-raised); }
.public-draft-form__choices input:focus-visible + span { outline-color: var(--competition-accent); }
.public-draft-form details { border-color: var(--competition-line); background: #142036b3; }
.public-draft-form__champions input { accent-color: var(--competition-accent); }
:is(.public-draft-landing, .competition-draft) .public-draft-button {
  border-color: var(--competition-line);
  background: var(--competition-raised);
  color: var(--competition-ink);
}
:is(.public-draft-landing, .competition-draft) .public-draft-button:hover:not(:disabled) {
  border-color: var(--competition-accent);
  background: color-mix(in srgb, var(--competition-raised), var(--competition-accent) 12%);
}
:is(.public-draft-landing, .competition-draft) .public-draft-button--primary {
  color: #221b11;
  border-color: #f3d499;
  background: linear-gradient(120deg, #f5dfb2, #d4ab69);
  box-shadow: inset 0 1px #ffffff50, 0 7px 18px #03060c70;
}
:is(.public-draft-landing, .competition-draft) .public-draft-button--primary:hover:not(:disabled) {
  color: #221b11;
  background: #f8e2b9;
}
.public-draft-landing .public-draft-button--text { background: transparent; border-color: transparent; }
.public-draft-share__row {
  --share-accent: var(--competition-accent);
  background: linear-gradient(100deg, color-mix(in srgb, var(--share-accent) 12%, var(--competition-panel)), #0c1425 83%);
}
.public-draft-share__row[data-role="first"] { --share-accent: var(--competition-blue); }
.public-draft-share__row[data-role="second"] { --share-accent: var(--competition-red); }
.public-draft-landing .public-draft-button--copy { border-color: color-mix(in srgb, var(--share-accent) 42%, var(--competition-line)); }
.public-draft-share__feedback { color: var(--competition-accent); }
.public-draft-room { background: #0a0a0a; }
.public-draft-room__status {
  background: linear-gradient(115deg, #060d18f0, #060d1870), url("/brand/loldrafter-arena.webp") center 42% / cover;
}

/* One visual treatment for the standalone and embedded champion-select board. */
.competition-draft {
  --competition-ink: var(--drafter-text);
  --competition-muted: #a1a1aa;
  --competition-accent: var(--drafter-gold);
  --competition-raised: var(--drafter-surface-2);
  --competition-line: var(--drafter-border);
  --competition-blue: var(--drafter-blue-text);
  --competition-red: var(--drafter-red-text);
  --drafter-radius: 5px;
  --drafter-radius-lg: 8px;
  background:
    linear-gradient(180deg, #0a0a0ae0, #0a0a0af7 72%),
    url("/brand/loldrafter-arena.webp") center 43% / cover;
}
.competition-draft .drafter-meta {
  background: linear-gradient(90deg, #172537e8, #161618eb 42%, #161618eb 58%, #352127e8);
}
.competition-draft .drafter-meta--simple { background: var(--drafter-surface); }
.competition-draft .drafter-mode { color: var(--competition-accent); }
.competition-draft .drafter-board { gap: .45rem; }
.competition-draft .drafter-rail {
  --competition-team: var(--competition-blue);
  border: 1px solid var(--drafter-border);
  border-radius: var(--drafter-radius-lg);
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--competition-team) 14%, transparent), transparent 53%),
    #111113db;
}
.competition-draft .drafter-rail--red { --competition-team: var(--competition-red); }
.competition-draft .drafter-rail > header {
  order: -1;
  padding: .38rem .46rem;
  border: 1px solid color-mix(in srgb, var(--competition-team) 27%, var(--drafter-border));
  border-radius: var(--drafter-radius);
  background: linear-gradient(110deg, color-mix(in srgb, var(--competition-team) 13%, var(--drafter-surface)), var(--drafter-surface));
}
.competition-draft .drafter-rail > header h2 {
  color: var(--competition-team);
  font-family: var(--competition-font);
  font-size: clamp(.79rem, 1.08vw, 1rem);
  letter-spacing: .025em;
  overflow-wrap: anywhere;
}
.competition-draft .drafter-rail > header span { color: var(--competition-muted); }
.competition-draft .drafter-pick:not(.is-active) { background: linear-gradient(145deg, #202024, #101012 65%); }
.competition-draft .drafter-center {
  background: linear-gradient(160deg, #18181cf5, #0c0c0ef5 52%);
  box-shadow: inset 0 1px #ffffff0d, 0 9px 25px #0006;
}
.competition-draft .drafter-phase {
  background: radial-gradient(ellipse at 50% 0%, var(--drafter-gold-soft), transparent 74%), var(--drafter-surface);
}
.competition-draft .drafter-phase--blue { background: radial-gradient(ellipse at 50% 0%, #3e7bfa26, transparent 78%), var(--drafter-surface); }
.competition-draft .drafter-phase--red { background: radial-gradient(ellipse at 50% 0%, #f5254722, transparent 78%), var(--drafter-surface); }
.competition-draft .drafter-phase-label {
  font-family: var(--competition-mono);
  font-size: clamp(.73rem, 1vw, .93rem);
  letter-spacing: .11em;
}
.competition-draft .drafter-phase-timer {
  font-family: var(--competition-mono);
}
.competition-draft .drafter-phase-hint { color: var(--competition-muted); }
.competition-draft .drafter-champ {
  border-radius: .4rem;
  background: linear-gradient(155deg, var(--drafter-surface-2), var(--drafter-surface));
}
.competition-draft .drafter-champ img { border-radius: .24rem; }
.competition-draft .drafter-champ > span { font-weight: 650; }
.competition-draft .drafter-champ:hover:not(:disabled):not(.is-taken),
.competition-draft .drafter-champ.is-selected:not(.is-taken) {
  border-color: var(--competition-accent);
  background: linear-gradient(155deg, #352c20, #201b15);
  box-shadow: inset 0 0 0 1px var(--drafter-gold-soft);
}
.competition-draft .drafter-fearless {
  border-color: #c8aa6e55;
  background: linear-gradient(100deg, #282219, var(--drafter-surface));
}
.competition-draft .drafter-fearless__heading strong { color: var(--competition-accent); }
.competition-draft .drafter-center-actions {
  background: linear-gradient(130deg, #1c1c20, var(--drafter-surface) 64%);
}
.competition-draft :is(.drafter-modal-panel, .drafter-change-picker, .drafter-change-modal__panel, .drafter-roles-gate__panel, .public-draft-review) {
  border-color: var(--drafter-border);
  background: linear-gradient(150deg, #242428, #141416);
  box-shadow: 0 18px 55px #000c, inset 0 1px #ffffff0d;
}
.competition-draft .public-draft-series {
  color: var(--competition-ink);
  background: radial-gradient(ellipse at 8% 5%, var(--drafter-gold-soft), transparent 80%);
}
.competition-draft .public-draft-series[data-complete="true"] {
  background: radial-gradient(ellipse at 10% 0%, #c8aa6e32, transparent 78%), var(--drafter-surface);
}
.competition-draft .public-draft-series__mark {
  color: var(--competition-accent);
  background: var(--drafter-gold-soft);
  border-color: #c8aa6e55;
}
.competition-draft .public-draft-series[data-complete="true"] h2 { color: var(--competition-accent); }
.public-draft-room .competition-draft .drafter-center--series-complete .drafter-center-actions--series {
  border-color: #c8aa6e88;
  box-shadow: 0 10px 42px #0007, 0 0 34px var(--drafter-gold-soft);
}
.competition-draft :is(.public-draft-series__next li, .public-draft-series__board > div) {
  background: var(--drafter-surface);
  border-color: var(--drafter-border);
}
.competition-draft .public-draft-series__board [data-side="blue"] h3 { color: var(--competition-blue); }
.competition-draft .public-draft-series__board [data-side="red"] h3 { color: var(--competition-red); }

/* The artwork scrolls with the page and ends in the same surface as the footer. */
:is(.tournament-site-stage, .tournament-page--local-art) {
  --tournament-backdrop: var(--esports-chrome, var(--color-bg));
  position: relative;
  isolation: isolate;
  flex: 1 0 auto;
  background: var(--tournament-backdrop);
}
:is(.tournament-site-stage, .tournament-page--local-art)::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: min(100%, 38rem);
  background:
    linear-gradient(180deg, #060d1880, var(--tournament-backdrop)),
    url("/brand/loldrafter-arena.webp") center 42% / cover;
  pointer-events: none;
}
.tournament-site-stage #content.section--tournament {
  min-height: 0;
  padding-block: var(--header-offset) 0;
}
.tournament-site-stage + #site-footer .site-footer { box-shadow: none; }
.competition-tournament,
.competition-tournament .tournament-shell { min-height: 0; }

.competition-tournament {
  --competition-accent: var(--event-accent);
  --event-accent: #91b8ff;
  --tournament-copy: var(--competition-ink);
  --tournament-muted: var(--competition-muted);
  --tournament-surface: var(--competition-panel);
  --tournament-stroke: var(--competition-line);
  --color-accent: var(--event-accent);
  --color-accent-dim: color-mix(in srgb, var(--event-accent) 14%, transparent);
  color: var(--competition-ink);
}
.competition-tournament.is-test-mode { --event-accent: #f1cd8e; }
.competition-tournament .tournament-shell {
  width: min(100%, 96rem);
  margin-inline: auto;
  gap: clamp(.65rem, 1.8vw, 1.45rem);
  padding: clamp(.65rem, 2vw, 1.5rem);
  align-items: flex-start;
}
.competition-tournament .tournament-page__content {
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  max-width: none;
  padding: 0;
}
.competition-tournament .tournament-page__card-wrap { width: 100%; }
.competition-tournament .tournament-card--unscheduled .account-form-card__subtitle {
  max-width: 42ch;
  margin-inline: auto;
}
.competition-tournament .tournament-card--unscheduled .btn { margin-top: .5rem; justify-self: center; }
.competition-tournament .tournament-page__content > .account-form-wrap > .tournament-card {
  padding-top: clamp(1rem, 2vw, 1.6rem);
}
.competition-tournament .tournament-event-context {
  flex-wrap: nowrap;
  justify-content: flex-start;
  min-width: 0;
  gap: clamp(.55rem, 2vw, 1rem);
  margin-bottom: 1rem;
  padding: clamp(.7rem, 2vw, 1.3rem);
  border: 1px solid var(--competition-line);
  border-radius: .8rem;
  background: linear-gradient(105deg, #203251f5, #111b2bf5 68%);
  box-shadow: 0 8px 24px #0306114d;
}
.competition-tournament .tournament-event-context__icon {
  width: clamp(2rem, 4vw, 3.25rem);
  aspect-ratio: 1;
  display: grid;
  flex: none;
  place-items: center;
  border-radius: .55rem;
  border: 1px solid color-mix(in srgb, var(--event-accent) 38%, transparent);
  background: var(--color-accent-dim);
  color: var(--event-accent);
}
.competition-tournament .tournament-event-context__icon svg { width: 48%; height: 48%; }
.competition-tournament .tournament-event-context > div { min-width: 0; margin-inline-end: auto; }
.competition-tournament .tournament-event-context > div > span {
  font-family: var(--competition-mono);
  color: var(--event-accent);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.competition-tournament .tournament-event-context strong {
  font-family: var(--competition-font);
  font-size: clamp(1rem, 2.35vw, 1.75rem);
  line-height: 1.22;
  letter-spacing: -.04em;
}
.competition-tournament .tournament-event-context > .admin-chip {
  border-color: color-mix(in srgb, var(--event-accent) 35%, transparent);
  background: var(--color-accent-dim);
  color: var(--event-accent);
  text-transform: capitalize;
}
.competition-tournament .tournament-nav {
  --tournament-nav-width: 13.5rem;
  top: calc(var(--header-offset, 0px) + 1rem);
  height: auto;
  max-height: calc(100dvh - var(--header-offset, 0px) - 2rem);
  padding: .85rem;
  border: 1px solid var(--competition-line);
  border-radius: .8rem;
  background: linear-gradient(155deg, var(--competition-raised), var(--competition-panel));
  box-shadow: 0 8px 24px #0306114d;
}
.competition-tournament .tournament-nav--test { border-color: #997d53; }
.competition-tournament .tournament-nav__brand { padding: 0 .12rem .65rem; border-bottom: 1px solid var(--competition-line); }
.competition-tournament .tournament-nav__eyebrow { font-family: var(--competition-mono); color: var(--event-accent); }
.competition-tournament .tournament-nav__active { color: var(--competition-ink); }
.competition-tournament .tournament-nav__event select { border-color: var(--competition-line); background: var(--competition-panel); color: var(--competition-ink); }
.competition-tournament .tournament-tabs { gap: .3rem; padding: 0; }
.competition-tournament .tournament-tabs__tab {
  display: flex;
  align-items: center;
  gap: .55rem;
  border-radius: .45rem;
  color: var(--competition-muted);
}
.competition-tournament .tournament-tabs__tab > svg { width: .95rem; height: .95rem; flex: none; color: var(--event-accent); }
.competition-tournament .tournament-tabs__tab:hover,
.competition-tournament .tournament-tabs__tab.is-active {
  color: var(--competition-ink);
  border-color: color-mix(in srgb, var(--event-accent) 40%, transparent);
  background: var(--color-accent-dim);
}
.competition-tournament .tournament-tabs__tab.is-active::before { background: var(--event-accent); }
.competition-tournament .tournament-card {
  border: 1px solid var(--competition-line);
  border-radius: .85rem;
  background: linear-gradient(155deg, var(--competition-raised), var(--competition-panel) 58%);
  box-shadow: 0 8px 24px #0306114d;
}
.competition-tournament .tournament-card .account-form-card__hero {
  border-bottom: 1px solid var(--competition-line);
  padding-bottom: 1rem;
}
.competition-tournament .tournament-card--unscheduled .account-form-card__hero {
  border-bottom: 0;
  padding-block: clamp(1.4rem, 4vw, 3rem);
}
.competition-tournament .tournament-card .account-form-card__title {
  color: var(--competition-ink);
  font-family: var(--competition-font);
  letter-spacing: -.04em;
}
.competition-tournament .tournament-card__icon {
  color: var(--event-accent);
  background: var(--color-accent-dim);
  border: 1px solid color-mix(in srgb, var(--event-accent) 38%, transparent);
  box-shadow: none;
}
.competition-tournament .tournament-panel-header__crumb-section { color: var(--event-accent); }
.competition-tournament :is(.tournament-card__panel, .tournament-scrims__match-card, .tournament-scrims__game-flow,
  .tournament-scrims__recap-team, .tournament-series-ready, .bhq-bracket__section,
  .tournament-match-card, .tournament-history-card) {
  border-color: var(--competition-line);
  background: var(--competition-panel);
}
.competition-tournament :is(.tournament-roster-table-wrap, .bhq-bracket__viewport) {
  border-color: var(--competition-line);
  background-color: var(--competition-panel);
}
.competition-tournament .tournament-roster-table thead { background-color: var(--competition-raised); }
.competition-tournament .tournament-roster-table tbody tr:hover { background-color: #22324c; }
.competition-tournament .tournament-schedule-day { color: var(--event-accent); }
body:has(.competition-tournament) .tournament-match-dialog {
  border-color: #405779;
  background: linear-gradient(145deg, #1b2940, #111b2b);
  color: #edf2fb;
}
body:has(.competition-tournament) .tournament-match-dialog__head { background: #1b2940; }

:is(.public-draft-landing, .competition-draft, .competition-tournament)
  :is(button, a, input, select, summary):focus-visible {
  outline-color: var(--competition-accent);
}

@media (max-width: 900px) {
  .public-draft-landing { min-height: 0; }
  .public-draft-landing::before {
    inset: 0;
    clip-path: none;
    background:
      linear-gradient(180deg, #060d1840, var(--competition-base) 82%),
      url("/brand/hero-league-cinematic.png") 78% top / auto 31rem no-repeat;
  }
  .public-draft-landing::after { display: none; }
  .public-draft-landing__layout { width: min(100%, 34rem); }
  .public-draft-landing__intro h1 { font-size: clamp(2.75rem, 11vw, 4.6rem); }
  .competition-draft .drafter-rail--blue { border-top: 2px solid var(--drafter-blue-role); }
  .competition-draft .drafter-rail--red { border-top: 2px solid var(--drafter-red-role); }
  .competition-tournament .tournament-shell { align-items: stretch; }
  .competition-tournament .tournament-nav { max-height: none; }
}

@media (max-width: 680px) {
  .competition-tournament .tournament-shell { padding: .6rem; }
  .competition-tournament .tournament-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .competition-tournament .tournament-tabs:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .competition-tournament .tournament-tabs__tab { padding: .45rem .35rem; gap: .28rem; min-width: 0; font-size: .75rem; }
  .competition-tournament .tournament-tabs__tab::before { display: none; }
  .competition-tournament .tournament-tabs__tab > svg { width: .8rem; height: .8rem; }
}

@media (max-width: 350px) {
  .competition-tournament .tournament-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
