/* MvC2 Online community pages (standings, seasons, tournaments, sets, profiles): the game-menu look of the
   landing page. Caddy serves this file in place of the server's built-in /community.css. */
@import url(/assets/fonts/fonts.css);
:root {
  color-scheme: dark;
  --ink: #eaf0ff;
  --muted: #9db0dc;
  --paper: #030612;
  --surface: rgba(10, 22, 66, .58);
  --line: rgba(110, 170, 255, .22);
  --accent: #ffd21a;
  --nav: #030612;
  --cyan: #38e4ff;
  --measure: 66rem;
  --display: 'Nunito', 'Arial Rounded MT Bold', 'Segoe UI Black', system-ui, sans-serif;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; line-height: 1.55; -webkit-font-smoothing: antialiased;
  background: radial-gradient(70rem 34rem at 85% -10%, rgba(47, 107, 255, .28), transparent 70%),
              linear-gradient(rgba(56, 160, 255, .05) 1px, transparent 1px) 0 0 / 48px 48px,
              linear-gradient(90deg, rgba(56, 160, 255, .05) 1px, transparent 1px) 0 0 / 48px 48px, var(--paper); }
.shell { max-width: var(--measure); margin-inline: auto; padding-inline: clamp(1rem, 5vw, 3rem); }
a { color: var(--cyan); text-underline-offset: .22em; text-decoration-thickness: .08em; }
a:hover { color: #fff; }
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.masthead { position: sticky; top: 0; z-index: 5; background: rgba(3, 6, 18, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.masthead .shell { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.masthead a { color: #d8e3ff; text-decoration: none; }
.masthead a:hover { color: var(--cyan); }
.brand { display: block; width: 11rem; height: 2.4rem; font-size: 0; color: transparent !important;
  background: url(/assets/logo-wide.webp) left center / contain no-repeat; }
.brand::before { display: none; }
.masthead nav { display: flex; gap: clamp(.8rem, 2.5vw, 1.6rem); font: 800 .82rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }

main { padding-block: clamp(2rem, 6vw, 4.5rem) 4rem; }
main.shell { width: 100%; }
.hero { margin-bottom: clamp(1.4rem, 3vw, 2.4rem); }
h1, h2, h3, p, dl { margin-top: 0; }
h1, h2, h3 { line-height: 1.1; text-wrap: balance; overflow-wrap: anywhere; font-family: var(--display); font-weight: 900; }
h1 { font-size: clamp(2.3rem, 6.5vw, 4rem); margin-bottom: .6rem; text-transform: uppercase; letter-spacing: -.005em;
  background: linear-gradient(180deg, #fff7a1 0%, #ffd21a 38%, #ff9a00 72%, #ff6a00 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #000) drop-shadow(0 0 1px #000) drop-shadow(0 0 1px #000) drop-shadow(0 0 1px #000); }
h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); margin-bottom: 1rem; color: #fff; }
.kicker, .eyebrow { color: var(--cyan); font: 800 .78rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .14em; margin-bottom: .6rem; }
.muted, small { color: var(--muted); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 1.5rem; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 40px rgba(0, 0, 0, .35); }
.panel > h2, .panel > p { margin: 0; padding: 1.1rem clamp(.9rem, 3vw, 1.6rem); }
.table-wrap { overflow-x: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; line-height: 1.35; }
th, td { padding: .85rem clamp(.65rem, 1.9vw, 1.5rem); text-align: left; vertical-align: middle; }
thead { color: var(--muted); background: rgba(47, 107, 255, .14); }
thead th { font: 800 .74rem/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; }
tbody :is(th, td) { border-top: 1px solid var(--line); }
tbody tr:nth-child(even) { background-color: rgba(255, 255, 255, .025); }
tbody tr:focus-within, tbody tr:hover { background-color: rgba(56, 228, 255, .08); }
td a, tbody th a { font-weight: 700; overflow-wrap: anywhere; color: #fff; text-decoration: none; }
td a:hover, tbody th a:hover { color: var(--cyan); }
.number, .record, .score { font-variant-numeric: tabular-nums; }
.number, .record { white-space: nowrap; }
.standings tbody td:first-child { color: var(--accent); font: 900 1rem/1 var(--display); }
.pager, .actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-block: 1rem 1.5rem; }
.pager a, .button { display: inline-flex; align-items: center; min-height: 2.6rem; padding: .5rem 1.2rem; border-radius: 999px; font: 800 .82rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.pager a { border: 1px solid rgba(56, 228, 255, .5); background: rgba(56, 228, 255, .08); color: #e6f7ff; }
.pager a:hover { background: rgba(56, 228, 255, .2); color: #fff; }
.button { color: #1a0d00; background: linear-gradient(180deg, #ffd21a, #ff7a00); box-shadow: 0 0 0 2px #000, 0 0 16px rgba(255, 150, 0, .4); }
.button:hover { color: #1a0d00; filter: brightness(1.08); }
.stats, .scoreboard { display: grid; gap: 1px; border: 1px solid var(--line); background: var(--line); border-radius: 14px; overflow: hidden; margin-block: 1.5rem 2.25rem; }
.stats { grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); }
.stat, .fighter { min-width: 0; padding: clamp(.85rem, 2.5vw, 1.6rem); background: #0a1640; }
.stat .muted, .fighter > .muted { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.stat > strong, .stat > time { display: block; margin: .28rem 0 0; font-variant-numeric: tabular-nums; }
.stat > :is(.number, .record) { font: 900 1.7rem/1.1 var(--display); color: #fff; }
.scoreboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fighter { overflow-wrap: anywhere; }
.fighter > a { display: inline-block; margin-block: .4rem .7rem; font: 900 1.3rem/1.2 var(--display); color: #fff; text-decoration: none; }
.panel > .scoreboard { border: 0; border-radius: 0; margin: 0; }
.panel > .stats { border-width: 1px 0 0; border-radius: 0; margin: 0; }
.panel > .actions, .panel > .pager { padding-inline: clamp(.9rem, 3vw, 1.6rem); }
caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
abbr[title] { text-decoration: none; }
footer { margin-top: 2.75rem; border-top: 1px solid var(--line); padding: 1.2rem 0; font-size: .86rem; color: var(--muted); }
.score { display: block; font: 900 clamp(2rem, 6vw, 3.6rem)/1.15 var(--display); color: #fff; }

.tag { display: inline-block; font: 800 .74rem/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px;
  background: rgba(255, 255, 255, .1); color: #e6edff; border: 1px solid rgba(255, 255, 255, .18); }
.tag.rank-rookie { background: rgba(160, 170, 190, .16); color: #d5dbe6; }
.tag.rank-bronze { background: rgba(205, 127, 50, .2); color: #f2b98a; border-color: rgba(205, 127, 50, .5); }
.tag.rank-silver { background: rgba(200, 212, 230, .16); color: #e4ecf7; border-color: rgba(200, 212, 230, .45); }
.tag.rank-gold { background: rgba(255, 210, 26, .16); color: #ffe27a; border-color: rgba(255, 210, 26, .55); }
.tag.rank-platinum { background: rgba(56, 228, 255, .14); color: #a9f3ff; border-color: rgba(56, 228, 255, .5); }
.tag.rank-diamond { background: rgba(80, 140, 255, .18); color: #b9d0ff; border-color: rgba(80, 140, 255, .55); }
.tag.rank-master { background: rgba(170, 90, 255, .18); color: #dcbcff; border-color: rgba(170, 90, 255, .55); }
.tag.rank-grandmaster { background: rgba(255, 60, 60, .18); color: #ffb3a8; border-color: rgba(255, 60, 60, .55); }
.tag.tournament-registration { background: rgba(69, 240, 138, .14); color: #a6f7c8; }
.tag.tournament-scheduled { background: rgba(80, 140, 255, .16); color: #b9d0ff; }
.tag.tournament-running { background: rgba(255, 210, 26, .16); color: #ffe27a; }
.tag.tournament-completed { background: rgba(160, 170, 190, .16); color: #d5dbe6; }
.tag.tournament-cancelled { background: rgba(255, 60, 60, .16); color: #ffb3a8; }
.tournament-bracket { display: grid; gap: 1.25rem; }
.tournament-bracket > .panel { min-width: 0; }
.tournament-matches { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: .85rem; list-style: none; margin: 0; padding: 1rem; }
.tournament-match { min-width: 0; height: 100%; padding: .9rem; border: 1px solid var(--line); border-radius: 12px; background: #0a1640; }
.match-heading { display: flex; justify-content: space-between; gap: .75rem; align-items: center; margin-bottom: .75rem; overflow-wrap: anywhere; }
.tournament-pair { list-style: none; margin: 0; padding: 0; }
.tournament-pair li { display: flex; justify-content: space-between; gap: .75rem; align-items: center; border-top: 1px solid var(--line); padding: .6rem .35rem; }
.tournament-pair li.winner { background: rgba(255, 210, 26, .1); font-weight: 700; color: #ffe27a; }
.tournament-entrants { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .55rem 1.25rem; margin: 0; padding: 1rem 2.5rem; }
.tournament-entrants li { padding: .25rem 0; }
.panel > .tournament-entrants { padding-inline: clamp(1.5rem, 4vw, 3rem); }
.empty { color: var(--muted); padding: 1.5rem; }
@media (max-width: 38rem) {
  .shell { padding-inline: 1rem; }
  .masthead .shell { min-height: 3.5rem; }
  .brand { width: 8.5rem; }
  th, td { padding: .7rem .46rem; font-size: .88rem; }
  thead th { font-size: .68rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: no-preference) { a { transition: color .12s, background-color .12s; } }
