/* Home page additions on top of the original style.css: compact hero, live row, three steps. */
.hero { min-height: 0; padding: 92px 0 56px; }
.hero .tagline { margin: 14px 0 20px; }
.hero .chips { margin-top: 18px; }
.hero-title { font-size: clamp(48px, 9vw, 120px); }
.live-sec, .install-sec { padding: clamp(48px, 7vw, 90px) 0; }
.live-title { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 72px); line-height: .95; margin: 0 0 24px; text-transform: uppercase; }
.live-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: start; }
.status-grid dd { font-variant-numeric: tabular-nums; }
.matches { margin: .75rem 0 0; font-size: .95rem; opacity: .9; }
.matches[hidden] { display: none; }
.matches b { font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-dim); }
.pill i { width: 10px; height: 10px; border-radius: 50%; background: var(--fg-mute); display: inline-block; }
.pill[data-s="up"] i { background: #3dff8a; box-shadow: 0 0 0 4px rgba(61,255,138,.2); }
.pill[data-s="down"] i { background: var(--red); }
.pill[data-s="stale"] i { background: var(--amber); }
.lb { min-width: 0; }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 10px; }
.board-head h3 { font-family: var(--display); font-weight: 400; font-size: 30px; text-transform: uppercase; margin: 0; }
.board-head select { background: var(--bg-2); color: var(--fg); border: 1px solid var(--line); padding: 7px 8px; font: inherit; font-size: 14px; max-width: 55%; }
.empty { color: var(--fg-mute); padding: 14px; border: 1px dashed var(--line); margin: 0; font-size: 15px; }
.board-foot { margin: 10px 0 0; font-size: 13px; color: var(--fg-mute); display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: center; }
.table-wrap { border: 1px solid var(--line); background: var(--bg-2); }
table.board { width: 100%; border-collapse: collapse; font-size: 14px; }
table.board th, table.board td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); }
table.board th { color: var(--fg-mute); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-family: var(--mono); }
table.board td.num, table.board th.num { text-align: right; font-family: var(--mono); }
table.board td.pos { font-family: var(--mono); font-weight: 700; width: 1%; }
table.board .fn { display: block; color: var(--fg-mute); font-size: 12px; line-height: 1.2; }
table.board tr:last-child td { border-bottom: 0; }
table.board tbody tr:nth-child(-n+3) td.pos { color: var(--red); }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 18px; padding: 0; list-style: none; counter-reset: s; }
.three li { background: var(--bg-2); border: 1px solid var(--line); padding: 18px; counter-increment: s; }
.three li::before { content: "0" counter(s); font-family: var(--display); color: var(--red); font-size: 28px; display: block; }
.three h3 { margin: 4px 0 6px; font-size: 18px; text-transform: uppercase; letter-spacing: .06em; }
.three p { margin: 0; color: var(--fg-dim); font-size: 15px; line-height: 1.5; }
.small { color: var(--fg-mute); font-size: 14px; }
@media (max-width: 860px) { .live-row { grid-template-columns: 1fr; } .three { grid-template-columns: 1fr; } .hero { padding: 88px 0 48px; } }

/* buttons: the same look as the GitHub button in the top bar */
.navbtn { display: inline-block; white-space: nowrap; text-decoration: none; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--bg); background: var(--fg); padding: 10px 20px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); transition: background .2s, color .2s; }
.navbtn:hover { background: var(--red); color: #fff; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.board-foot { gap: 10px 10px; margin-top: 14px; }
.board-foot span { flex-basis: 100%; }
/* features: compact grid */
.features { padding: clamp(40px, 6vw, 80px) 0; }
.features .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.features .card { padding: 16px 16px 14px; }
.features .card h3 { font-size: 22px; margin: 0 0 6px; }
.features .card p { font-size: 14px; line-height: 1.45; }

/* Top 10 rows: # | fighter icon (Max_Hamm's stock icons from ssbuarena.com, js/fighters.js; else the initial) | player | GMP. */
.lb .ficon { display: block; width: 28px; height: 28px; max-width: none; object-fit: contain; margin: 0 auto; }
.lb .ficon-initial { display: grid; place-items: center; border-radius: 50%; background: var(--bg-3); color: var(--fg-dim); font-weight: 800; font-size: 13px; }
.lb th.ficon-h, .lb td.ficon-cell { width: 36px; min-width: 36px; padding-left: 4px; padding-right: 4px; text-align: center; }
.lb td.pname { overflow-wrap: anywhere; font-weight: 500; }
.lb td { vertical-align: middle; height: 38px; padding-top: 4px; padding-bottom: 4px; }
.icon-credit { margin: 6px 0 0; color: var(--fg-mute); font-size: 12px; }
.icon-credit a { color: inherit; text-underline-offset: 2px; }
.icon-credit a:hover { color: var(--fg); }
/* The two blocks side by side ("Online now" and the top 10) are cards of the same height and top: the counts grid grows to
   fill its card, the top 10's buttons sit at the bottom of theirs. Stacked below 860 px. */
.live-row { align-items: stretch; }
.live-row > .status, .live-row > .lb { display: flex; flex-direction: column; min-width: 0; }
.live-row > .status .status-grid { flex: 1 1 auto; grid-auto-rows: 1fr; }
.live-row > .status .status-grid div { display: flex; flex-direction: column; justify-content: center; }
.lb { position: relative; background: var(--bg-2); border: 1px solid var(--line); padding: 30px 28px 26px;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px)); }
.lb::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--red); }
.lb .board-head { margin-bottom: 24px; min-height: 40px; }
.lb .board-head h3 { font-size: 32px; line-height: 1; }
.lb .table-wrap { background: var(--bg); }
.lb .board-foot { margin-top: auto; padding-top: 14px; }
@media (max-width: 860px) { .lb, .status { padding: 24px 18px 20px; } .lb .board-head h3 { font-size: 28px; } }
@media (min-width: 861px) { .nav-links a { white-space: nowrap; } }
@media (min-width: 861px) and (max-width: 1100px) { .nav-links a { padding-left: 8px; padding-right: 8px; letter-spacing: .08em; } .nav-links .nav-cta { padding-left: 14px; padding-right: 14px; } }
/* "Online now": Total / EU / NA (js/home.js). */
.region-switch { display: inline-flex; margin: -8px 0 18px; border: 1px solid var(--line); align-self: flex-start; }
.region-switch button { background: transparent; color: var(--fg-dim); border: 0; border-left: 1px solid var(--line); padding: 8px 16px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.region-switch button:first-child { border-left: 0; }
.region-switch button:hover { color: var(--fg); }
.region-switch button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.region-switch button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
