/* Ranking Português de Brawlhalla
   Palette: azulejo cobalt on caiado (lime-wash) white, basalt ink, one vermelho for the top spot.
   Type: Archivo, used at two widths: expanded for display, condensed for dense data. */

:root {
  --paper: #F2F4F3;
  --surface: #FFFFFF;
  --ink: #161B24;
  --ink-soft: #4B5565;
  --line: #D8DEE6;
  --azulejo: #1B4DB1;
  --azulejo-deep: #0E2A63;
  --azulejo-wash: #E7EEFB;
  --vermelho: #C8283A;
  --mar: #17796F;
  --focus: #1B4DB1;
  --tile-a: #E7EEFB;
  --tile-b: #1B4DB1;
  --radius: 6px;
  --f: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F141C;
    --surface: #171E29;
    --ink: #E9EEF5;
    --ink-soft: #A3AFC0;
    --line: #2B3646;
    --azulejo: #6C9BFF;
    --azulejo-deep: #0B1F4A;
    --azulejo-wash: #1A2740;
    --vermelho: #FF6B7A;
    --mar: #4CC7B8;
    --focus: #8DB2FF;
    --tile-a: #162341;
    --tile-b: #3C6BD6;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f); font-size: 16px; line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
a { color: var(--azulejo); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }
main { outline: none; overflow-x: clip; }   /* full-width brackets (100vw) never make the page scroll sideways */

/* ---------- top bar ---------- */
.top { background: var(--azulejo-deep); color: #fff; border-bottom: 4px solid var(--azulejo); }
.top-inner { max-width: 1120px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-stretch: 112%; font-weight: 800; letter-spacing: .01em; }
.brand-logo { width: 36px; height: 36px; flex: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
#nav { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
#nav a { color: #DCE6FA; text-decoration: none; padding: 8px 12px; border-radius: var(--radius); font-weight: 500; font-stretch: 94%; white-space: nowrap; }
#nav a:hover { background: rgba(255,255,255,.1); }
#nav a[aria-current="page"] { background: #fff; color: var(--azulejo-deep); font-weight: 700; }
.top :focus-visible { outline-color: #fff; }
.btn { font: inherit; font-weight: 600; padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); cursor: pointer; }
@media (max-width: 720px) {
  .top-inner { gap: 8px; padding: 10px 16px 6px; }
  #nav { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 12px 4px; scrollbar-width: none; }
  #nav::-webkit-scrollbar { display: none; }
  #nav { gap: 0; }
  #nav a { padding: 7px 8px; font-size: .92rem; }
}

/* ---------- layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 28px 20px 56px; }
h1, h2, h3 { line-height: 1.1; margin: 0; }
h1 { font-stretch: 118%; font-weight: 850; font-size: clamp(2rem, 5.2vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-stretch: 108%; font-weight: 800; font-size: 1.5rem; margin: 40px 0 14px; }
h3 { font-stretch: 100%; font-weight: 700; font-size: 1.05rem; margin: 22px 0 8px; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }
.empty { padding: 28px; text-align: center; color: var(--ink-soft); border: 1px dashed var(--line); border-radius: var(--radius); }
.error { padding: 16px 18px; border-left: 4px solid var(--vermelho); background: var(--surface); }

/* ---------- hero: Brawltuga wallpaper tinted with the site's blue, and the #1 tile ---------- */
.hero {
  background:
    linear-gradient(100deg, rgba(14,42,99,.94) 0%, rgba(14,42,99,.80) 55%, rgba(14,42,99,.55) 100%),
    url("assets/brand/WPBlur.jpg") center 40% / cover no-repeat,
    #0E2A63;
  background-blend-mode: normal, luminosity, normal;
  color: #fff; }
.hero-inner { max-width: 1120px; margin: 0 auto; padding: 36px 20px 40px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.hero h1 { max-width: 14ch; }
.hero p { margin: 14px 0 0; max-width: 52ch; color: #CBD8F2; font-size: 1.05rem; }
.hero .stats { margin-top: 18px; display: flex; gap: 22px; flex-wrap: wrap; font-size: .95rem; color: #DCE6FA; }
.hero .stats b { font-stretch: 112%; font-weight: 800; font-size: 1.5rem; color: #fff; margin-right: 6px; }
.tile-no1 { width: 188px; height: 188px; background: var(--tile-a); color: var(--azulejo-deep); border: 5px solid #fff; border-radius: 8px; position: relative; display: grid; align-content: end; padding: 12px 14px; text-decoration: none; overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='94' height='94' viewBox='0 0 94 94'%3E%3Cg fill='%231B4DB1'%3E%3Cpath d='M0 0h47a47 47 0 0 1-47 47z'/%3E%3Cpath d='M94 0v47a47 47 0 0 1-47-47z'/%3E%3Cpath d='M0 94v-47a47 47 0 0 1 47 47z'/%3E%3Cpath d='M94 94h-47a47 47 0 0 1 47-47z'/%3E%3C/g%3E%3Cpath d='M47 18l29 29-29 29-29-29z' fill='%23E7EEFB'/%3E%3C/svg%3E"); }
.tile-no1:hover { text-decoration: none; transform: rotate(-1.5deg); transition: transform .15s; }
.tile-no1 .n { position: absolute; left: 0; right: 0; top: 30px; text-align: center; font-stretch: 125%; font-weight: 900; font-size: 5.4rem; line-height: 1; color: var(--vermelho); text-shadow: 0 0 0 #fff, 2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff; }
.tile-no1 .who { position: relative; background: #fff; color: var(--azulejo-deep); font-stretch: 105%; font-weight: 800; padding: 4px 8px; border-radius: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero .upd { align-self: flex-end; }
@media (max-width: 720px) {
  .hero-inner { grid-template-columns: 1fr auto; gap: 16px; padding: 22px 16px 24px; align-items: start; }
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: .95rem; margin-top: 10px; }
  .hero .stats { gap: 6px 16px; margin-top: 12px; }
  .hero .stats b { font-size: 1.2rem; }
  .tile-no1 { width: 104px; height: 104px; border-width: 3px; padding: 6px; }
  .tile-no1 .n { font-size: 2.8rem; top: 18px; }
  .tile-no1 .who { font-size: .8rem; padding: 2px 5px; }
}
@media (prefers-reduced-motion: reduce) { .tile-no1:hover { transform: none; transition: none; } }

/* ---------- controls ---------- */
.controls { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin: 0 0 16px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.seg button { font: inherit; font-weight: 600; font-stretch: 94%; padding: 8px 14px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--azulejo); color: #fff; }
.seg button:hover:not([aria-pressed="true"]) { background: var(--azulejo-wash); }
input[type="search"], select, input[type="text"] {
  font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); min-width: 0; }
input[type="search"] { width: 220px; max-width: 100%; }
label.field { display: grid; gap: 4px; font-size: .875rem; color: var(--ink-soft); }
.note { font-size: .9rem; color: var(--ink-soft); max-width: 70ch; margin: 0 0 14px; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: .82rem; font-weight: 600; color: var(--ink-soft); background: var(--paper); position: sticky; top: 0; }
th[title] { cursor: help; text-decoration: underline dotted; text-underline-offset: 3px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--azulejo-wash); }
td.num, th.num { text-align: right; }
td.rank { font-stretch: 70%; font-weight: 800; font-size: 1.5rem; width: 64px; color: var(--azulejo); line-height: 1; }
tr.top1 td.rank { color: var(--vermelho); }
td.name { font-stretch: 100%; font-weight: 700; font-size: 1.05rem; }
td.name a { color: var(--ink); text-decoration: none; }
td.name a:hover { color: var(--azulejo); text-decoration: underline; }
td.pr { font-stretch: 85%; font-weight: 800; font-size: 1.2rem; }
.up { color: var(--mar); font-weight: 700; }
.down { color: var(--vermelho); font-weight: 700; }
.rd { color: var(--ink-soft); font-size: .85rem; }
td.soft { color: var(--ink-soft); }
td.wr, th.wr { white-space: normal; min-width: 10ch; }
@media (max-width: 980px) { .hide-m { display: none; } }
@media (max-width: 720px) {
  .hide-s { display: none; }
  td.name { white-space: normal; }
  td.name .tag { margin-left: 0; margin-right: 4px; }
  td.name a { margin-right: 6px; }
  th, td { padding: 9px 8px; }
  td.rank { width: 44px; font-size: 1.3rem; }
}

/* ---------- player ---------- */
.p-head { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; margin-bottom: 8px; }
.p-head h1 { font-size: clamp(2rem, 6vw, 3.6rem); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px; }
.chip b { display: block; font-stretch: 85%; font-weight: 800; font-size: 1.6rem; line-height: 1.1; }
.chip span { font-size: .82rem; color: var(--ink-soft); }
.chip.hot b { color: var(--vermelho); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid2 > * { min-width: 0; }
.p-head { min-width: 0; }
.p-head h1 { overflow-wrap: anywhere; }
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 16px 4px; }
.calc-row { display: grid; grid-template-columns: 9rem 5rem; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
.calc-row b { font-stretch: 85%; font-weight: 800; font-size: 1.25rem; text-align: right; }
.calc-row small { color: var(--ink-soft); }
.calc-eq { font-stretch: 90%; font-weight: 600; padding: 10px 0; margin: 0; overflow-wrap: anywhere; }

details.more { margin-top: 32px; }
details.more summary { cursor: pointer; font-weight: 700; font-stretch: 105%; margin-bottom: 12px; }
.meta-line { margin: 10px 0 0; color: var(--ink-soft); }
.note.lead { font-size: 1rem; margin-top: 14px; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } }
.chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.chart { overflow: hidden; }
.chart svg { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--f); font-size: 11px; fill: var(--ink-soft); }
.bar { display: flex; height: 8px; width: 120px; border-radius: 4px; overflow: hidden; background: var(--line); }
.bar i { display: block; background: var(--azulejo); }
.W { color: var(--mar); font-weight: 700; }
.L { color: var(--vermelho); font-weight: 700; }

/* ---------- events ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink); display: block; }
.card:hover { border-color: var(--azulejo); }
.card[aria-pressed="true"] { border-color: var(--azulejo); box-shadow: inset 0 0 0 1px var(--azulejo); background: var(--azulejo-wash); }
.card b { font-stretch: 105%; font-weight: 800; display: block; }
button.card { font: inherit; text-align: left; cursor: pointer; width: 100%; }
.prose { max-width: 70ch; }
.prose p, .prose li { margin: 0 0 12px; }
.prose ul { padding-left: 20px; }
.prose code { background: var(--azulejo-wash); padding: 1px 6px; border-radius: 4px; font-size: .92em; }
pre { background: var(--azulejo-deep); color: #E8EEFB; padding: 14px 16px; border-radius: var(--radius); overflow-x: auto; font-size: .88rem; }
.h2h-score { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 18px 0; }
.h2h-score .side { font-stretch: 112%; font-weight: 800; font-size: clamp(1.1rem, 3.5vw, 1.8rem); }
.h2h-score .side:last-child { text-align: right; }
.h2h-score .n { font-stretch: 70%; font-weight: 900; font-size: clamp(2.6rem, 9vw, 4.6rem); line-height: 1; display: block; color: var(--azulejo); }
.h2h-score .mid { color: var(--ink-soft); font-size: .9rem; text-align: center; }

.foot { border-top: 1px solid var(--line); padding: 22px 20px 34px; text-align: center; color: var(--ink-soft); font-size: .88rem; }
.foot p { margin: 0 auto; max-width: 80ch; }

/* ---------- small text marks (instead of pills) ---------- */
.tag { font-size: .75rem; font-weight: 600; color: var(--ink-soft); margin-left: 8px; letter-spacing: .02em; text-transform: lowercase; }
.lvl { font-size: .9rem; color: var(--ink-soft); }
.lvl-major { color: var(--ink); font-weight: 700; }
.gold { color: var(--vermelho); }
tr.faded td, li.faded { opacity: .55; }
[data-tip] { cursor: help; }
th [data-tip] { text-decoration: underline dotted; text-underline-offset: 3px; }
.linkish { font: inherit; font-size: .9rem; background: none; border: 0; padding: 8px 0; color: var(--azulejo); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.accounts { margin: 6px 0 0; color: var(--ink-soft); }
.accounts a { color: var(--azulejo); }

/* ---------- tooltip bubble (one element, positioned by app.js) ---------- */
.tip { position: fixed; z-index: 50; max-width: 280px; padding: 7px 10px; border-radius: var(--radius); background: var(--ink); color: var(--paper);
  font-size: .82rem; line-height: 1.35; pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,.18); }

/* ---------- tournament art: start.gg banners, blurred by the browser when drawing ---------- */
.art { position: absolute; inset: -16px; background: var(--azulejo-deep) center / cover no-repeat; filter: blur(6px) saturate(1.1); transform: scale(1.05); }
.tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.tcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tcard header { position: relative; overflow: hidden; min-height: 92px; display: flex; align-items: flex-end; background: var(--azulejo-deep); }
.tcard header::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,42,99,.25), rgba(14,42,99,.85)); }
.tcard-title { position: relative; z-index: 1; padding: 14px 16px 12px; color: #fff; }
.tcard-title h2 { margin: 0; font-size: 1.15rem; line-height: 1.2; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.tcard-title span { font-size: .85rem; color: #DCE6FA; }
.tcard ul { list-style: none; margin: 0; padding: 4px 0; }
.tcard li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 9px 16px; border-top: 1px solid var(--line); }
.tcard li:first-child { border-top: 0; }
.tcard li a { font-weight: 700; color: var(--ink); text-decoration: none; }
.tcard li a:hover { color: var(--azulejo); text-decoration: underline; }
.tcard li .meta { font-size: .85rem; color: var(--ink-soft); grid-column: 1; }
.tcard li .win { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 600; font-size: .9rem; text-align: right; }
.ev-head { position: relative; overflow: hidden; background: var(--azulejo-deep); color: #fff; }
.ev-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,42,99,.92), rgba(14,42,99,.7)); }
.ev-head .wrap { position: relative; z-index: 1; padding-bottom: 28px; }
.ev-head a { color: #DCE6FA; }
.ev-head .meta-line, .ev-head .lvl, .ev-head .muted { color: #DCE6FA; }
.ev-head .lvl-major { color: #fff; }
@media (prefers-reduced-motion: no-preference) { .tcard { transition: border-color .15s; } .tcard:hover { border-color: var(--azulejo); } }

/* ---------- player tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 18px 0 16px; }
.tabs button { font: inherit; font-weight: 600; padding: 10px 14px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--ink-soft); cursor: pointer; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--azulejo); }
.tabs button:hover { color: var(--ink); }

/* ---------- "how it works" blocks ---------- */
details.how { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 16px; }
details.how > summary { cursor: pointer; padding: 10px 14px; font-weight: 700; }
.how-body { padding: 0 16px 12px; max-width: none; }
.how-body .adv { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }
.how-body h3 { margin-top: 18px; }
.narrow { max-width: 560px; }
.hero .stats .fine { display: block; font-size: .72rem; color: #B9C8E6; margin-top: -2px; }

/* ---------- bracket ---------- */
.bk { margin: 0 0 22px; }
.bk h3 { margin: 0 0 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--azulejo); }
/* full window width (not clipped at the page column), starts aligned with the column, no scrollbar, soft edges */
.bk-scroll { width: 100vw; margin-left: calc(50% - 50vw); padding: 2px max(20px, calc(50vw - 560px)) 8px;
  overflow-x: auto; scrollbar-width: none; cursor: grab; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%); }
.bk-scroll::-webkit-scrollbar { display: none; }
.bk-scroll.dragging { cursor: grabbing; }
.bk-scroll.dragging a { pointer-events: none; }
.bk-cols { display: flex; gap: 18px; align-items: stretch; min-width: min-content; position: relative; }
.bk-links { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 0; }
.bk-links path { fill: none; stroke: var(--line); stroke-width: 1.5; }
.bk-col { display: flex; flex-direction: column; width: 190px; flex: none; position: relative; z-index: 1; }
.bk-round { font-size: .78rem; font-weight: 600; color: var(--ink-soft); padding: 0 2px 6px; border-bottom: 1px solid var(--line); margin-bottom: 8px; white-space: nowrap; }
.bk-sets { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 10px; }
.bm { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .88rem; }
.bm-row { display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; color: var(--ink-soft); }
.bm-row + .bm-row { border-top: 1px solid var(--line); }
.bm-row.won { color: var(--ink); font-weight: 700; box-shadow: inset 3px 0 0 var(--azulejo); }
.bm-row.won a { color: var(--ink); }
.bm-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-name a { color: inherit; text-decoration: none; }
.bm-name a:hover { text-decoration: underline; }
.bm-score { font-weight: 700; font-variant-numeric: tabular-nums; }

/* community tab: the base x multiplier lines under the parts */
tr.sum td { font-weight: 700; }
tr:not(.sum) + tr.sum td { border-top: 1px solid var(--line); }

/* season calendar: Hall of Fame button, then one row per year with a button per season */
.cal { display: grid; gap: 8px; margin: 0 0 18px; }
.cal button { font: inherit; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius); }
.cal button:hover:not(:disabled) { border-color: var(--azulejo); }
.cal button.on { background: var(--azulejo); border-color: var(--azulejo); color: #fff; }
.cal button:disabled { cursor: default; color: var(--ink-soft); background: transparent; border-style: dashed; opacity: .55; }
.cal-all { justify-self: start; font-weight: 600; padding: 6px 14px; }
.cal-year { display: grid; grid-template-columns: 3.2rem 1fr; align-items: center; gap: 8px; }
.cal-y { font-weight: 700; color: var(--ink-soft); font-size: .9rem; }
.cal-row { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 6px; }
.cal-s { display: grid; justify-items: center; gap: 0; padding: 3px 4px; line-height: 1.1; }
.cal-s b { font-size: 1.05rem; }
.cal-s small { font-size: .72rem; opacity: .85; white-space: nowrap; }
.cal-s.now:not(.on) { box-shadow: inset 0 0 0 1px var(--azulejo); }
.cal-note { margin: 2px 0 0; font-size: .8rem; color: var(--ink-soft); }
.cal-title { margin: 6px 0 12px; font-size: 1.25rem; }

/* tournament flow: community points, PR change and streak tag on the event standings */
.up { color: var(--mar); font-weight: 600; }
.down { color: var(--vermelho); font-weight: 600; }
.streak-tag { font-size: .72rem; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--azulejo-wash); color: var(--azulejo-deep); white-space: nowrap; }

/* upcoming tournaments */
.upnext { margin: 22px 0 6px; }
.upnext h2 { font-size: 1.25rem; margin: 0 0 10px; }
.up-list { display: grid; gap: 10px; }
.up-card { display: grid; grid-template-columns: 11rem 1fr auto; gap: 8px 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--azulejo); border-radius: var(--radius); padding: 12px 16px; }
.up-when b { display: block; text-transform: capitalize; }
.up-when span, .up-what span { color: var(--ink-soft); font-size: .875rem; }
.up-what h3 { margin: 0; font-size: 1.05rem; }
.up-card .btn { text-decoration: none; white-space: nowrap; }
.up-strip { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--azulejo); border-radius: var(--radius); padding: 12px 16px; margin: 18px 0 0; }
.up-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; }
.up-label { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--azulejo); }
.up-info b { font-size: 1.05rem; }
.up-when { color: var(--ink-soft); font-size: .92rem; }
.up-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.up-actions .btn { text-decoration: none; white-space: nowrap; }
@media (max-width: 720px) { .up-actions { width: 100%; } .up-actions .btn { flex: 1 1 0; text-align: center; } }
@media (max-width: 720px) { .up-card { grid-template-columns: 1fr; } .up-card .btn { justify-self: start; } }
.btn.primary { background: var(--azulejo); color: #fff; border-color: var(--azulejo); }
