/* Conquerors Results — Graphite ground, Conquerors Indigo accents, Forge Silver labels. */
:root {
  --graphite: #1a1a1a;
  --bg: #141414;
  --panel: #1f1f1f;
  --panel-2: #262626;
  --line: #2f2f2f;
  --line-2: #3a3a3a;
  --indigo: #2b3070;
  --indigo-2: #3a4196;
  --indigo-soft: rgba(43, 48, 112, 0.35);
  --silver: #a2a9b0;
  --silver-2: #c9ced3;
  --white: #ffffff;
  --live: #e5484d;
  --ok: #3dbb7a;
  --warn: #e6a23c;
  --tierA: #4a52b8;
  --tierB: #a2a9b0;
  --tierC: #5c6168;
  --radius: 12px;
  --display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --text: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--white); font-family: var(--text); font-size: 15px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; min-height: 100vh; padding-bottom: calc(var(--nav-h) + var(--safe-b) + 16px);
}
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--tierA); outline-offset: 2px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 30; background: rgba(20, 20, 20, 0.92); backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line);
}
.top-in { max-width: 1100px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { height: 22px; width: auto; display: block; }
.brand .ev { font-family: var(--display); font-size: 20px; letter-spacing: 0.5px; color: var(--silver); white-space: nowrap; padding-left: 10px; border-left: 1px solid var(--line-2); line-height: 1; padding-top: 2px; }
.spacer { flex: 1; }
.pulse-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--silver);
  padding: 5px 9px; border: 1px solid var(--line-2); border-radius: 999px; white-space: nowrap; background: var(--panel);
}
.pulse-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 187, 122, 0.6); animation: ping 2.4s infinite; }
.pulse-pill.stale i { background: var(--warn); animation: none; }
.pulse-pill.err i { background: var(--live); animation: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61, 187, 122, 0.55); } 70% { box-shadow: 0 0 0 7px rgba(61, 187, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 187, 122, 0); } }
.desk-nav { display: none; gap: 4px; }
.desk-nav a { text-decoration: none; font-weight: 600; font-size: 13px; color: var(--silver); padding: 8px 12px; border-radius: 8px; }
.desk-nav a.on { color: var(--white); background: var(--indigo); }
.testbar { background: repeating-linear-gradient(-45deg, var(--indigo), var(--indigo) 10px, #262b66 10px, #262b66 20px); color: var(--white); text-align: center; font-size: 11.5px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; padding: 5px 12px; }

/* ---------- page ---------- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.hero { padding: 20px 0 6px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 0.95; letter-spacing: 0.5px; margin: 0; }
.hero p { margin: 6px 0 0; color: var(--silver); font-size: 13px; font-weight: 500; }
.controls { position: sticky; top: 43px; z-index: 20; background: linear-gradient(var(--bg) 85%, rgba(20, 20, 20, 0)); padding: 10px 0 12px; display: grid; gap: 10px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; background: transparent; color: var(--silver); padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 13px; white-space: nowrap; min-height: 36px; }
.seg button.on { background: var(--indigo); color: var(--white); }
.seg button small { display: block; font-size: 10px; font-weight: 600; opacity: 0.75; letter-spacing: 0.3px; }
.seg.days button { line-height: 1.1; padding: 6px 14px; }
.select {
  appearance: none; -webkit-appearance: none; background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a2a9b0' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 34px 9px 12px; min-height: 40px; font-size: 13px; font-weight: 600; color: var(--white); max-width: 100%;
}
.btn-ghost { border: 1px solid var(--line-2); background: var(--panel); color: var(--white); border-radius: 10px; padding: 8px 12px; font-weight: 600; font-size: 13px; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.btn-ghost:active { transform: translateY(1px); }
.muted { color: var(--silver); }
.empty { text-align: center; color: var(--silver); padding: 40px 12px; font-size: 14px; }

/* ---------- schedule ---------- */
.timeblock { margin-top: 14px; }
.timehead { display: flex; align-items: baseline; gap: 10px; padding: 4px 2px 8px; }
.timehead b { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: 0.5px; line-height: 1; }
.timehead span { color: var(--silver); font-size: 12px; font-weight: 600; }
.timehead.now b { color: var(--white); }
.timehead .nowtag { background: var(--live); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.6px; padding: 3px 6px; border-radius: 4px; }
.cards { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }
.match {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; position: relative; overflow: hidden;
  transition: border-color 0.3s;
}
.match.is-live { border-color: rgba(229, 72, 77, 0.55); }
.match.mine { box-shadow: inset 3px 0 0 var(--tierA); }
.match .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; color: var(--silver); }
.match .where { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.match .where svg { flex: none; opacity: 0.8; }
.match .where span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match .stage { margin-top: 3px; font-size: 11.5px; color: var(--silver); }
.match .stage b { color: var(--white); font-weight: 700; }
.teams { margin-top: 10px; display: grid; gap: 6px; }
.team { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.team .nm { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; min-width: 0; }
.team .nm em { font-style: normal; font-weight: 600; font-size: 10.5px; color: var(--silver); border: 1px solid var(--line-2); padding: 1px 5px; border-radius: 4px; flex: none; }
.team .nm .slot { color: var(--silver); font-weight: 600; }
.team .sc { font-family: var(--display); font-size: 30px; line-height: 0.9; min-width: 26px; text-align: right; }
.team.lose .nm, .team.lose .sc { color: var(--silver); }
.team.win .nm::after { content: ''; width: 0; height: 0; border-left: 6px solid var(--white); border-top: 5px solid transparent; border-bottom: 5px solid transparent; flex: none; order: -1; }
.team.pending .sc { color: var(--line-2); }
.chip { font-size: 10.5px; font-weight: 800; letter-spacing: 0.6px; padding: 3px 7px; border-radius: 5px; text-transform: uppercase; white-space: nowrap; }
.chip.live { background: var(--live); color: #fff; display: inline-flex; align-items: center; gap: 5px; }
.chip.live i { width: 6px; height: 6px; background: #fff; border-radius: 50%; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.chip.ft { background: var(--panel-2); color: var(--silver-2); border: 1px solid var(--line-2); }
.chip.ff { background: transparent; color: var(--warn); border: 1px solid rgba(230, 162, 60, 0.5); }
.chip.up { background: transparent; color: var(--silver); border: 1px solid var(--line-2); }
.foot { margin-top: 9px; font-size: 12px; color: var(--silver); display: flex; gap: 8px; flex-wrap: wrap; }
.foot .gg { color: var(--white); font-weight: 600; }
.foot .gg::before { content: '⚑ '; color: var(--tierA); }
.flash { animation: flash 2.2s ease-out; }
@keyframes flash { 0% { background: var(--indigo-2); } 100% { background: var(--panel); } }
.score-pop { animation: pop 0.6s ease-out; display: inline-block; }
@keyframes pop { 0% { transform: scale(1.6); color: var(--white); } 100% { transform: scale(1); } }

/* ---------- standings ---------- */
.groups { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 6px; }
@media (min-width: 900px) { .groups { grid-template-columns: 1fr 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); gap: 10px; }
.card-h h2 { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: 0.5px; margin: 0; line-height: 1; }
.card-h .st { font-size: 11.5px; font-weight: 600; color: var(--silver); text-align: right; }
.progress { height: 3px; background: var(--line); }
.progress i { display: block; height: 100%; background: var(--tierA); transition: width 0.8s; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { font-size: 10.5px; font-weight: 700; color: var(--silver); text-transform: uppercase; letter-spacing: 0.5px; padding: 9px 6px; text-align: center; background: var(--panel); }
.tbl td { padding: 10px 6px; text-align: center; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tbl th.l, .tbl td.l { text-align: left; }
.tbl .pos { width: 34px; position: sticky; left: 0; background: var(--panel); z-index: 1; }
.tbl .tm { position: sticky; left: 34px; background: var(--panel); z-index: 1; font-weight: 600; white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
  .tbl th, .tbl td { padding-left: 3px; padding-right: 3px; }
  .tbl .tm { max-width: 112px; font-size: 13px; }
  .tbl .pos { width: 26px; }
  .tbl .tm { left: 26px; }
  .tbl .form-col { display: none; }
  table.tbl { font-size: 13px; }
}
.tbl td.pts { font-weight: 800; color: var(--white); }
.tbl tr.zA td.pos { box-shadow: inset 3px 0 0 var(--tierA); }
.tbl tr.zB td.pos { box-shadow: inset 3px 0 0 var(--tierB); }
.tbl tr.zC td.pos { box-shadow: inset 3px 0 0 var(--tierC); }
.tbl tr.mine td { background: rgba(74, 82, 184, 0.14); }
.tbl tr.mine td.pos, .tbl tr.mine td.tm { background: #232542; }
.tbl sup { color: var(--tierA); font-weight: 800; margin-left: 2px; }
.form { display: inline-flex; gap: 3px; }
.form i { width: 16px; height: 16px; border-radius: 4px; font-style: normal; font-size: 9.5px; font-weight: 800; display: inline-grid; place-items: center; color: #111; }
.form i.W { background: var(--ok); } .form i.D { background: var(--silver); } .form i.L { background: var(--live); color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 12px 2px 0; font-size: 12px; color: var(--silver); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.notes { font-size: 12px; color: var(--silver); padding: 8px 2px 0; }

/* ---------- format: group boards ---------- */
.subtabs { margin-top: 2px; }
.board { position: relative; }
.board-list { position: relative; }
.brow {
  position: absolute; left: 0; right: 0; height: 56px; display: grid; grid-template-columns: 44px 1fr auto 52px; align-items: center;
  padding: 0 14px 0 0; border-top: 1px solid var(--line); transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s;
  background: var(--panel);
}
.brow .rk { height: 100%; display: grid; place-items: center; }
.brow .rk b { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; font-family: var(--display); font-weight: 400; font-size: 19px; background: var(--indigo); color: #fff; padding-top: 2px; }
.brow.zB .rk b { background: #3b3f45; }
.brow.zC .rk b { background: #2c2f33; color: var(--silver-2); }
.brow .nm { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.brow .nm small { display: block; font-size: 10.5px; color: var(--silver); font-weight: 600; letter-spacing: 0.3px; }
.brow .wdl { display: flex; gap: 4px; font-size: 12px; color: var(--silver); font-weight: 600; font-variant-numeric: tabular-nums; }
.brow .wdl span { min-width: 30px; text-align: center; padding: 3px 0; border-radius: 6px; background: var(--panel-2); }
.brow .wdl span b { color: var(--white); }
.brow .pts { font-family: var(--display); font-size: 30px; text-align: right; line-height: 1; }
.brow .pts small { display: block; font-family: var(--text); font-size: 9.5px; color: var(--silver); font-weight: 700; letter-spacing: 0.6px; }
.brow.up { background: rgba(61, 187, 122, 0.09); }
.brow.down { background: rgba(229, 72, 77, 0.07); }
.brow.mine .nm { color: #c7cbff; }
.brow::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.brow.zA::before { background: var(--tierA); } .brow.zB::before { background: var(--tierB); } .brow.zC::before { background: var(--tierC); }
.zone-tag { position: absolute; right: 70px; font-size: 9.5px; font-weight: 800; letter-spacing: 0.7px; text-transform: uppercase; color: var(--silver); pointer-events: none; transform: translateY(-50%); background: var(--bg); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line-2); z-index: 2; }
.replay { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.replay .lbl { font-size: 12.5px; font-weight: 700; color: var(--silver); }
.replay .lbl b { color: var(--white); }

/* ---------- format: knockout bracket ---------- */
.tier-head { display: grid; gap: 4px; margin: 8px 0 14px; }
.tier-head h2 { font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: 0.5px; margin: 0; line-height: 1; }
.tier-head span { color: var(--silver); font-size: 12.5px; font-weight: 600; }
.bracket { display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); align-items: center; position: relative; max-width: 760px; }
@media (min-width: 700px) { .bracket { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); } }
.bracket .col { display: grid; gap: 22px; }
.bx { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; height: 108px; display: flex; flex-direction: column; }
.bx.is-live { border-color: rgba(229, 72, 77, 0.6); }
.bx .bh { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 6px 9px; font-size: 10.5px; font-weight: 700; color: var(--silver); border-bottom: 1px solid var(--line); background: var(--panel-2); letter-spacing: 0.2px; white-space: nowrap; }
.bx .bh span { overflow: hidden; text-overflow: ellipsis; }
.bx .bt { flex: 1; display: grid; grid-template-rows: 1fr 1fr; }
.bx .br { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px; padding: 0 9px; min-width: 0; }
.bx .br + .br { border-top: 1px solid var(--line); }
.bx .br .n { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bx .br .n small { display: block; font-size: 10px; color: var(--silver); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx .br .s { font-family: var(--display); font-size: 24px; line-height: 1; }
.bx .br.lose .n, .bx .br.lose .s { color: var(--silver); }
.bx .br.win { box-shadow: inset 3px 0 0 var(--tierA); }
.bx .br.tbd .n { color: var(--silver); font-weight: 600; }
.bx .gg { font-size: 10px; color: var(--white); font-weight: 700; padding: 0 9px 5px; margin-top: -2px; }
.conn { position: relative; height: 238px; }
.conn::before { content: ''; position: absolute; left: 0; width: 50%; top: 54px; bottom: 54px; border: 2px solid var(--line-2); border-left: 0; border-radius: 0 8px 8px 0; }
.conn::after { content: ''; position: absolute; left: 50%; right: 0; top: 50%; border-top: 2px solid var(--line-2); }
.conn.wt::before { border-top-color: var(--tierA); }
.conn.wb::before { border-bottom-color: var(--tierA); }
.conn.done::after { border-top-color: var(--tierA); }
.final-col { display: grid; gap: 10px; align-content: center; }
.final-col .lab { font-family: var(--display); font-size: 18px; color: var(--silver); letter-spacing: 0.6px; line-height: 1; }
.champion { margin-top: 16px; background: linear-gradient(135deg, var(--indigo), #1d2150); border-radius: var(--radius); padding: 16px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--indigo-2); }
.champion svg { flex: none; }
.champion .t { font-size: 11px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: var(--silver-2); }
.champion .w { font-family: var(--display); font-size: 30px; line-height: 1; margin-top: 2px; }
.third { margin-top: 18px; }
.third .lab { font-family: var(--display); font-size: 18px; color: var(--silver); letter-spacing: 0.6px; margin-bottom: 8px; }
.third .bx { max-width: 420px; }
.placings { margin-top: 22px; }
.placings h3 { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 0 0 8px; letter-spacing: 0.5px; }
.pl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; }
.pl-list div { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 13px; }
.pl-list b { font-family: var(--display); font-weight: 400; font-size: 20px; width: 30px; color: var(--silver); }
.pl-list .p1 b, .pl-list .p2 b, .pl-list .p3 b { color: var(--white); }
.pl-list .p1 { border-color: var(--indigo-2); background: var(--indigo-soft); }
.howto { margin-top: 20px; font-size: 12.5px; color: var(--silver); line-height: 1.55; }
.howto b { color: var(--white); }

/* ---------- bottom nav ---------- */
.bnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: rgba(26, 26, 26, 0.96); border-top: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: var(--safe-b);
}
.bnav a { height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; color: var(--silver); font-size: 11px; font-weight: 700; letter-spacing: 0.3px; }
.bnav a.on { color: var(--white); }
.bnav a.on svg { color: var(--white); }
.bnav a.on::before { content: ''; position: absolute; top: 0; width: 36px; height: 3px; background: var(--tierA); border-radius: 0 0 3px 3px; }
.bnav a { position: relative; }
@media (min-width: 900px) {
  .bnav { display: none; }
  .desk-nav { display: flex; }
  body { padding-bottom: 32px; }
  .hero h1 { font-size: 48px; }
}
@media (max-width: 420px) {
  .brand .ev { display: none; }
}
.site-foot { max-width: 1100px; margin: 36px auto 0; padding: 0 16px; font-size: 11.5px; color: var(--silver); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-foot b { font-family: var(--display); font-weight: 400; font-size: 15px; letter-spacing: 1px; color: var(--silver-2); }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 14px); transform: translateX(-50%) translateY(20px); background: var(--white); color: #111; font-weight: 700; font-size: 13px; padding: 10px 16px; border-radius: 10px; opacity: 0; transition: all 0.3s; z-index: 60; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.skeleton { height: 120px; border-radius: var(--radius); background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%); background-size: 200% 100%; animation: sk 1.4s infinite; margin-top: 12px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.bx .bh i.wide { font-style: normal; display: none; }
@media (min-width: 700px) { .bx .bh i.wide { display: inline; } }
.controls > .seg { justify-self: start; }
