/* FishCup v2 look (dark first, inspired by the Artlist music library): loaded after style.css and portal.css.
   The top bar, the phone menu and bottom bar, and the shared components (cards, buttons, tabs, chips, forms) in one place.
   Colours come from the tokens below; the light theme keeps its own tokens from style.css. */

:root[data-theme="dark"] {
  --bg: #0A1E25; --card: #0E2A33; --border: #1F3D47; --text: #F3F7F8; --muted: #9DB4BC;
  --brand-100: #12343F; --brand-50: #0E2A33; --input-bg: #0C2530; --btn2-hover: #17404C; --pending-bg: #1F3D47;
  --hdr-1: #0A1E25; --hdr-2: #0A1E25; --rail: #081A20; --ring: #0E2A33;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #0A1E25; --card: #0E2A33; --border: #1F3D47; --text: #F3F7F8; --muted: #9DB4BC;
    --brand-100: #12343F; --brand-50: #0E2A33; --input-bg: #0C2530; --btn2-hover: #17404C; --pending-bg: #1F3D47;
    --hdr-1: #0A1E25; --hdr-2: #0A1E25; --rail: #081A20; --ring: #0E2A33;
  }
}
:root {
  --v2-line: rgba(255, 255, 255, .09);
  --v2-soft: rgba(127, 160, 170, .14);
  --v2-wrap: 1240px;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------- top bar ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 1100; display: flex; align-items: center; gap: var(--s5); flex-wrap: nowrap;
  min-height: 64px; padding: var(--sat) 28px 0; margin: 0; background: rgba(10, 30, 37, .94); color: #F3F7F8;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .09); box-shadow: none;
}
.topbar .brand { display: inline-flex; align-items: center; gap: var(--s2); color: #F3F7F8; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xl); text-decoration: none; flex: none; }
.topbar .brand-mark { display: inline-flex; }
.topbar nav { display: flex; align-items: center; gap: 4px; flex: 1; flex-wrap: nowrap; min-width: 0; }
.topbar nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: var(--s2) var(--s4); border-radius: 999px; color: #9DB4BC; font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; background: none; }
.topbar nav a:hover { color: #F3F7F8; background: rgba(255, 255, 255, .06); }
.topbar nav a.active { color: #F3F7F8; background: rgba(255, 255, 255, .09); }
.topbar nav .tn-gap { flex: 1; }
.topbar nav .tn-drawer { display: none; }
.topbar nav .tn-cta { background: linear-gradient(180deg, #FFDE4A, var(--accent) 55%, #E8BC00); color: #0E2A33; padding: 8px 20px; }
.topbar nav .tn-cta:hover, .topbar nav .tn-cta.active { color: #0E2A33; filter: brightness(1.05); background: linear-gradient(180deg, #FFDE4A, var(--accent) 55%, #E8BC00); }
.topbar nav .tn-admin { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); color: #DCE8EC; }
.topbar nav .tn-login { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); color: #F3F7F8; }
.topbar nav .tn-account { padding: 4px 6px 4px 4px; }
.topbar nav .tn-account .tn-label { display: none; }
.tn-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #2E7C93, #1D5566); color: #fff; font: 700 1rem var(--font-display); }
.topbar nav a.tn-account.active .tn-avatar { box-shadow: 0 0 0 2px var(--accent); }
.topbar .bell { position: relative; padding: 8px 10px; }
.topbar .refresh-btn { flex: none; display: none; background: none; border: 0; color: #9DB4BC; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; cursor: pointer; }
.topbar .refresh-btn:hover { color: #F3F7F8; background: rgba(255, 255, 255, .07); }
.topbar .side-toggle { display: none; order: 9; color: #DCE8EC; width: 42px; height: 42px; border-radius: 50%; align-items: center; justify-content: center; margin: 0; padding: 0; position: static; transform: none; }
.topbar .side-toggle:hover { background: rgba(255, 255, 255, .08); }

/* a computer: no left rail; tournament pages show their own tab row under the title */
@media (min-width: 900px) {
  body.has-side .t-side { display: none; }
  body.has-side .topbar, body.has-side footer { margin-left: 0; }
  body.has-side main.container { margin-left: auto; margin-right: auto; }
  body.has-side .player-tabs { display: flex; }
  body.has-side .tn-portal { display: inline-flex; }
  .topbar .side-toggle { display: none; }
  .bottom-nav { display: none !important; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .topbar { gap: 14px; padding-left: 18px; padding-right: 18px; }
  .topbar nav a { padding: var(--s2) var(--s3); }
  .topbar nav .tn-cta { padding: 8px 14px; }
}

/* a phone: logo + bell + menu on top, the menu opens as a drawer, 3 buttons at the bottom */
@media (max-width: 899px) {
  .topbar { min-height: 56px; padding: var(--sat) var(--s2) 0 var(--s4); gap: var(--s2); justify-content: space-between; }
  .topbar .brand { font-size: var(--fs-xl); }
  .topbar .side-toggle { display: inline-flex; }
  .has-bottom-nav .topbar .side-toggle { position: static; transform: none; }
  .topbar .refresh-btn { display: inline-flex; margin-left: auto; }
  body:not(.has-side) .topbar nav {
    position: fixed; z-index: 1250; top: 0; bottom: 0; right: 0; width: min(84vw, 330px); flex-direction: column; align-items: stretch; gap: 2px;
    padding: calc(var(--sat) + 70px) 14px calc(var(--sab) + 20px); background: #081A20; transform: translateX(105%); transition: transform .22s ease; overflow-y: auto;
  }
  body:not(.has-side).side-open .topbar nav { transform: none; box-shadow: -20px 0 50px rgba(0, 0, 0, .45); }
  body:not(.has-side) .topbar nav a { min-height: 50px; padding: 12px 16px; border-radius: 14px; font-size: 1.08rem; }
  body:not(.has-side) .topbar nav .tn-drawer { display: inline-flex; }
  body:not(.has-side) .topbar nav .tn-gap { flex: none; height: 1px; margin: 10px 6px; background: rgba(255, 255, 255, .09); }
  body:not(.has-side) .topbar nav .tn-cta { justify-content: center; }
  body:not(.has-side) .topbar nav .tn-account .tn-label { display: inline; }
  body:not(.has-side) .topbar nav .bell::after { content: attr(aria-label); }
  .side-backdrop { display: none; }
  body.side-open .side-backdrop { display: block; position: fixed; inset: 0; z-index: 1200; background: rgba(0, 0, 0, .55); }
  body.has-side .topbar nav { display: none; }
  body.has-side .t-side { background: #081A20; }
}

/* ---------------- bottom bar (phone): Tournaments · Ranking · camera · Results · Account ---------------- */
@media (max-width: 899px) {
  .bottom-nav {
    display: grid !important; grid-template-columns: repeat(5, 1fr); align-items: center; position: fixed; z-index: 1000; left: 0; right: 0; bottom: 0;
    height: calc(64px + var(--sab)); padding: 0 0 var(--sab); background: #081A20; border-top: 1px solid rgba(255, 255, 255, .09); box-shadow: none;
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s1); min-height: 56px; color: #9DB4BC; font-size: .72rem; font-weight: 600; text-decoration: none; background: none; }
  .bottom-nav a .ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .bottom-nav a.active { color: var(--accent); background: none; }
  .bottom-nav a.primary { position: relative; top: -16px; background: none; }
  .bottom-nav a.primary .ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #0E2A33; box-shadow: 0 0 0 5px #081A20, 0 8px 20px rgba(0, 0, 0, .35); }
  .bottom-nav a.primary .ic svg { width: 28px; height: 28px; }
  body.has-bottom-nav { padding-bottom: calc(76px + var(--sab)); }
}

/* ---------------- page frame ---------------- */
body { background: var(--bg); }
main.container { max-width: 1000px; }
body.wide main.container { max-width: var(--v2-wrap); padding-left: 28px; padding-right: 28px; }
h1 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0; line-height: 1; }
footer { color: var(--muted); border-top: 1px solid var(--v2-line); margin-top: 28px; }
.footer-prefs select { border-radius: 999px; background: var(--input-bg); color: var(--text); border: 1px solid var(--border); }
.flash { border-radius: 14px; }

/* ---------------- shared components ---------------- */
.card { border-radius: 18px; border: 1px solid var(--border); background: var(--card); box-shadow: none; }
.btn { border-radius: 999px; font-weight: 600; letter-spacing: .01em; }
.btn:not(.secondary):not(.danger):not(.link-btn) { background: linear-gradient(180deg, #FFDE4A, var(--accent) 55%, #E8BC00); color: #0E2A33; }
.btn:not(.secondary):not(.danger):not(.link-btn):hover { filter: brightness(1.05); }
.btn.secondary { background: var(--v2-soft); box-shadow: none; color: var(--text); }
.btn.secondary:hover { background: var(--btn2-hover); }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea { border-radius: 12px; }
.chip { border-radius: 999px; padding: 3px 10px; background: var(--v2-soft); color: var(--text); }

/* ---------------- tabs: the only rules for .status-tabs and .admin-tabs ----------------
   Two looks, each with one job. Moving between pages = an underlined row (a tournament's tabs .player-tabs, the
   organiser's panel .admin-tabs, the guides .man-tabs). Narrowing a list = chips (every other .status-tabs: the
   review status, rounds, the tournaments list). Both scroll sideways on a phone instead of wrapping. */
.status-tabs, .admin-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: var(--s2); margin: 0 0 var(--s4); padding: 0; border: 0; }
.status-tabs::-webkit-scrollbar, .admin-tabs::-webkit-scrollbar { display: none; }
.status-tabs a, .admin-tabs a { flex: none; display: inline-flex; align-items: center; min-height: 40px; white-space: nowrap; font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.status-tabs a { padding: var(--s2) var(--s4); border-radius: 999px; background: var(--v2-soft); color: var(--text); }
.status-tabs a.active { background: var(--accent); color: #0E2A33; }
.status-tabs a span { margin-left: var(--s1); opacity: .65; }
.status-tabs a.active span { color: inherit; opacity: .75; }   /* the count on the yellow chip: the muted grey was 1.3:1 */
.player-tabs, .man-tabs, .admin-tabs { gap: 0; margin: 0 0 var(--s5); border-bottom: 1px solid var(--v2-line); }
.status-tabs.player-tabs a, .status-tabs.man-tabs a, .admin-tabs a { min-height: 44px; padding: var(--s3); border-radius: 0; background: none; color: var(--muted); font-size: var(--fs-md); box-shadow: inset 0 -2px 0 transparent; }
.status-tabs.player-tabs a:hover, .status-tabs.man-tabs a:hover, .admin-tabs a:hover { color: var(--text); background: none; }
.status-tabs.player-tabs a.active, .status-tabs.man-tabs a.active, .admin-tabs a.active { color: var(--text); background: none; box-shadow: inset 0 -3px 0 var(--accent-ink); }
@media (pointer: coarse) { .status-tabs a { min-height: 44px; } }
.data-table { border-radius: 14px; overflow: hidden; }
.muted { color: var(--muted); }

/* ---------------- page hero (tournament pages): text on the left, the biggest fish fading in on the right ---------------- */
.v2-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; min-height: 360px; overflow: hidden;
  padding: 0 28px 0 max(28px, calc((100vw - var(--v2-wrap)) / 2 + 28px)); background: var(--bg); }
.v2-hero-txt { position: relative; z-index: 2; padding: 40px 0 56px; max-width: 580px; }
.v2-hero h1 { font: 700 var(--fs-3xl)/.95 var(--font-display); margin: var(--s3) 0 var(--s4); color: var(--text); }
.v2-hero p { color: var(--muted); font-size: var(--fs-md); margin: 0; }
.v2-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.v2-cta .btn { min-height: 46px; padding: 0 var(--s5); margin: 0; }
.btn.secondary.v2-ghost { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); color: var(--text); }
:root[data-theme="light"] .btn.secondary.v2-ghost { box-shadow: inset 0 0 0 1.5px var(--border); }
.v2-stats { display: flex; gap: 32px; margin-top: 28px; }
.v2-stats b { display: block; font: 700 2rem/1 var(--font-display); color: var(--text); }
.v2-stats span { color: var(--muted); font-size: var(--fs-sm); }
.v2-hero-pic { position: absolute; inset: 0 0 0 38%; background-size: cover; background-position: center 35%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%); mask-image: linear-gradient(90deg, transparent, #000 38%); }
.v2-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; }
.v2-live { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #FF9C8D; }
.v2-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #E5533D; animation: v2pulse 1.8s infinite; }
@keyframes v2pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 83, 61, .7); } 70%, 100% { box-shadow: 0 0 0 9px rgba(229, 83, 61, 0); } }
.v2-eyebrow { color: var(--muted); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.v2-partners { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; padding: 4px 28px var(--s5) max(28px, calc((100vw - var(--v2-wrap)) / 2 + 28px)); }
.v2-partners small { color: var(--muted); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; margin-right: var(--s4); }
.v2-partners small a { color: inherit; text-decoration: none; }
.v2-partners small a:hover { color: var(--text, #fff); text-decoration: underline; }
.v2-partners img { height: 52px; width: 112px; padding: var(--s2) var(--s3); object-fit: contain; background: #F3F7F8; border-radius: 12px; display: block; }
@media (prefers-reduced-motion: reduce) { .v2-live::before { animation: none; } }

/* ---------------- ranking list (rows like a music library: picture, name, species, length, little chart, points) ---------------- */
.lb-v2 .lb-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.lb-v2 .lb-aside { order: 2; max-width: 520px; }
@media (min-width: 1500px) { .lb-v2 .lb-layout:has(.lb-aside) { grid-template-columns: minmax(0, 1fr) 320px; } }
.lb-filter { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; margin: var(--s2) 0; }
.lb-filter .lb-title { font: 700 var(--fs-2xl) var(--font-display); margin: 0 12px 0 0; }
.lb-filter .status-tabs { margin: 0; }
.lb-v2 .lb-note { margin: 4px 0 2px; font-size: .95rem; }
.lb-head, .lb-v2 .leaderboard-list > .lb-row {
  display: grid; grid-template-columns: 44px 64px minmax(180px, 1.6fr) 120px 90px minmax(90px, 1fr) 92px 76px; align-items: center; column-gap: var(--s4); }
.lb-head { padding: 16px 12px 6px; color: var(--muted); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.lb-head span:nth-child(7) { text-align: right; }
.lb-v2 .leaderboard-list { gap: 0; margin: 0 0 var(--s6); }
.lb-v2 .leaderboard-list > .lb-row { min-height: 88px; padding: var(--s3); border: 0; border-radius: 14px; background: transparent; box-shadow: none; flex-wrap: nowrap; }
.lb-v2 .leaderboard-list > .lb-row:hover { background: var(--card); }
.lb-v2 .lb-rank { width: auto; height: auto; min-width: 0; background: none; color: var(--muted); font: 700 1.55rem/1 var(--font-display); text-align: center; border-radius: 0; box-shadow: none; }
.lb-v2 .lb-rank.rank-1 { color: var(--gold); background: none; } .lb-v2 .lb-rank.rank-2 { color: var(--silver); background: none; } .lb-v2 .lb-rank.rank-3 { color: var(--bronze); background: none; }
.lb-thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--brand-100); display: grid; place-items: center; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-ini { font: 700 1.6rem var(--font-display); color: var(--muted); }
.lb-who { min-width: 0; display: flex; flex-direction: column; gap: var(--s1); }
.lb-v2 .lb-name { font-weight: 600; font-size: 1.06rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); text-decoration: none; }
.lb-v2 a.lb-name:hover { color: var(--accent-ink); }
.lb-v2 .lb-fish { margin: 0; font-size: var(--fs-sm); }
.lb-mobile-best { display: none; }
.lb-len { font: 700 1.6rem/1 var(--font-display); white-space: nowrap; } .lb-len small { font-weight: 400; font-size: .8rem; color: var(--muted); margin-left: 3px; font-family: "Barlow", sans-serif; }
.lb-bars { display: flex; align-items: center; gap: 3px; height: 40px; }
.lb-bars i { flex: 1; max-width: 5px; min-width: 2px; border-radius: 2px; background: #3C5E69; }
.lb-bars i.top { background: var(--accent); }
.lb-v2 .lb-points { margin: 0; text-align: right; color: var(--text); display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.lb-v2 .lb-points .v-total { font: 700 var(--fs-xl)/1 var(--font-display); }
.lb-v2 .lb-points small { margin: 3px 0 0; }
.lb-v2 .like-form { justify-self: end; margin: 0; }
.lb-v2 .like { background: none; border: 0; color: var(--muted); font-size: var(--fs-sm); padding: var(--s2) var(--s3); border-radius: 999px; cursor: pointer; }
.lb-v2 .like:hover { background: var(--v2-soft); color: var(--text); } .lb-v2 .like.on { color: #FF7A8A; }
.lb-v2 .lb-rounds { grid-column: 3 / -1; margin-top: 4px; }
.lb-v2 .lb-rounds .chip { font-size: .8rem; }
.lb-v2 .lb-empty { padding: 26px 12px; }
@media (min-width: 900px) and (max-width: 1100px) {
  .lb-head, .lb-v2 .leaderboard-list > .lb-row { grid-template-columns: 40px 56px minmax(0, 1.4fr) 110px 86px 90px 80px; }
  .lb-head span:nth-child(6), .lb-v2 .lb-bars { display: none; }
  .lb-thumb { width: 56px; height: 56px; }
}
/* the biggest fish of each species */
.lb-v2 .lb-biggest h2 { font: 700 var(--fs-2xl) var(--font-display); }
.lb-v2 .biggest-card { border-radius: 18px; overflow: hidden; }
.lb-v2 .biggest-card img { border-radius: 12px; }
.lb-v2 .biggest-length { font: 700 var(--fs-xl) var(--font-display); }

/* ---------------- "your position" bar ---------------- */
.lb-me { position: fixed; z-index: 990; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(220px, 440px) auto; align-items: center; gap: 20px;
  padding: 12px max(28px, calc((100vw - var(--v2-wrap)) / 2 + 28px)); background: rgba(14, 42, 51, .97); color: #F3F7F8; border-top: 1px solid rgba(255, 255, 255, .09);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lb-me-rank { width: 56px; height: 56px; border-radius: 12px; background: var(--accent); color: #0E2A33; display: grid; place-items: center; font: 700 1.6rem var(--font-display); }
.lb-me-who { display: flex; flex-direction: column; min-width: 0; } .lb-me-who b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lb-me-who span { color: #9DB4BC; font-size: .9rem; }
.lb-me-gap { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: #C8D8DD; }
.lb-me-track { height: 6px; border-radius: 3px; background: #2B4A55; overflow: hidden; } .lb-me-track i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.lb-me .lb-me-btn { margin: 0; min-height: 44px; }
body.lb-v2:has(.lb-me) { padding-bottom: 100px; }

/* ---------------- phone: its own layout (not a squeezed desktop) ---------------- */
@media (max-width: 899px) {
  .v2-hero { display: flex; flex-direction: column; justify-content: flex-end; min-height: 250px; margin: var(--s2) var(--s4) 0; padding: var(--s4); border-radius: 20px; }
  .v2-hero-pic { inset: 0; -webkit-mask-image: none; mask-image: none; }
  .v2-hero-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 30, 37, .1), rgba(10, 30, 37, .93) 78%); }
  .v2-hero::after { display: none; }
  .v2-hero-txt { padding: 70px 0 0; }
  .v2-hero h1 { font-size: var(--fs-2xl); margin: var(--s2) 0; color: #fff; }
  .v2-hero p { color: #C8D8DD; font-size: var(--fs-sm); }
  .v2-cta { display: none; }
  .v2-stats { gap: 8px; flex-wrap: wrap; margin-top: 12px; }
  .v2-stats div { display: flex; gap: var(--s1); align-items: baseline; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
  .v2-stats b { font: 600 var(--fs-md) "Barlow", sans-serif; color: #fff; display: inline; } .v2-stats span { color: #fff; font-size: var(--fs-sm); }
  .v2-partners { padding: var(--s4) var(--s4) 0; gap: var(--s2); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .v2-partners small { display: none; }
  .v2-partners img { height: 44px; width: 96px; flex: none; }
  body.wide main.container { padding-left: 12px; padding-right: 12px; }
  .lb-filter { margin: var(--s1); } .lb-filter .lb-title { font-size: var(--fs-xl); }
  .lb-head { display: none; }
  .lb-v2 .leaderboard-list > .lb-row { grid-template-columns: 28px 56px minmax(0, 1fr) auto auto; column-gap: 12px; min-height: 76px; padding: 8px; }
  .lb-v2 .lb-species, .lb-v2 .lb-len, .lb-v2 .lb-bars { display: none; }
  .lb-thumb { width: 56px; height: 56px; }
  .lb-v2 .lb-rank { font-size: 1.35rem; }
  .lb-v2 .lb-fish { display: none; }
  .lb-mobile-best { display: flex; align-items: center; gap: 6px; font-size: .9rem; } .lb-mobile-best b { font: 700 1rem var(--font-display); }
  .lb-mobile-best .chip { font-size: .78rem; padding: 1px 8px; }
  .lb-v2 .lb-points .v-total { font-size: 1.4rem; }
  .lb-v2 .like { padding: var(--s2); font-size: var(--fs-sm); }
  .lb-me { left: 8px; right: 8px; bottom: calc(68px + var(--sab)); grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 8px 14px 10px 8px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .09); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); background: #12343F; }
  .lb-me-rank { width: 44px; height: 44px; font-size: 1.3rem; grid-row: span 2; }
  .lb-me-who span { display: none; }
  .lb-me-gap { font-size: .82rem; }
  .lb-me .lb-me-btn { display: none; }
  body.lb-v2:has(.lb-me) { padding-bottom: calc(160px + var(--sab)); }
}

/* ---------------- public results ---------------- */
.res-podium .res-top { min-height: 100px; }
.res-podium .res-top .lb-thumb { width: 76px; height: 76px; }
.res-podium .res-top .v-total { font-size: 2rem; }
.res-awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 4px 0 30px; }
.res-aw { position: relative; min-height: 280px; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 16px;
  background: var(--card) center / cover no-repeat; border: 1px solid var(--border); color: #fff; }
.res-aw::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 30, 37, .05) 30%, rgba(10, 30, 37, .95)); }
.res-aw > * { position: relative; }
.res-aw .v2-eyebrow { color: var(--accent); } .res-aw b { font: 700 1.7rem/1.05 var(--font-display); } .res-aw span:last-child { color: #C8D8DD; font-size: .92rem; }

/* ---- the old ranking rules (style.css 'Mata' block) are stronger by selector: beaten here with body.lb-v2 */
body.lb-v2 .leaderboard-list { border-top: 0; }
body.lb-v2 .leaderboard-list > .lb-row { border-bottom: 0; }
body.lb-v2 .lb-rank, body.lb-v2 .lb-rank.rank-1, body.lb-v2 .lb-rank.rank-2, body.lb-v2 .lb-rank.rank-3 { width: auto; height: auto; border-radius: 0; background: none; font: 700 var(--fs-xl)/1 var(--font-display); }
body.lb-v2 .lb-rank { color: var(--muted); } body.lb-v2 .lb-rank.rank-1 { color: var(--gold); } body.lb-v2 .lb-rank.rank-2 { color: var(--silver); } body.lb-v2 .lb-rank.rank-3 { color: var(--bronze); }
body.lb-v2 .lb-who .lb-name { flex: none; font-size: var(--fs-md); }
body.lb-v2 .lb-points { font: inherit; }
body.lb-v2 .lb-points small { font: 400 var(--fs-xs) "Barlow", sans-serif; color: var(--muted); margin: var(--s1) 0 0; }
body.lb-v2 .lb-rounds .chip { background: transparent; border: 1px solid var(--border); border-radius: 999px; font-size: var(--fs-xs); padding: var(--s1) var(--s3); }
@media (max-width: 899px) {
  body.has-bottom-nav .topbar { justify-content: flex-start; padding: var(--sat) var(--s2) 0 var(--s4); }
  body.lb-v2 .lb-rounds { display: none; }
  body.lb-v2 .lb-rank, body.lb-v2 .lb-rank.rank-1, body.lb-v2 .lb-rank.rank-2, body.lb-v2 .lb-rank.rank-3 { font-size: var(--fs-lg); }
  body.lb-v2 .lb-points .v-total { font-size: var(--fs-lg); }
}
.v2-more { display: grid; place-items: center; height: 52px; min-width: 64px; padding: 0 var(--s4); border-radius: 12px; background: var(--v2-soft); color: var(--text); font-weight: 600; text-decoration: none; }
@media (max-width: 899px) { body .topbar .side-toggle { order: 10; } body .topbar .refresh-btn { order: 9; margin-left: auto; } }

/* ---------------- one catch: the photo with the measuring line on the left, numbers and checks on the right ---------------- */
.cv-crumbs { color: var(--muted); font-size: .92rem; margin: 0 0 14px; } .cv-crumbs a { color: var(--muted); text-decoration: none; } .cv-crumbs a:hover { color: var(--text); } .cv-crumbs span { color: var(--text); }
.cv-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr); gap: 32px; align-items: start; }
.cv-viewer { position: relative; border-radius: 20px; overflow: hidden; background: #000; border: 1px solid var(--border); }
.cv-photo { display: block; width: 100%; height: auto; border-radius: 0; }
.cv-ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cv-ov line { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 10 8; }
.cv-pin { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid var(--accent); background: rgba(255, 210, 31, .18); }
.cv-sticker { position: absolute; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; border: 3px solid #7BC96F; }
.cv-tag { position: absolute; transform: translate(14px, 16px); padding: 5px 10px; border-radius: 8px; background: rgba(10, 30, 37, .9); color: #F3F7F8; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.cv-tag-r { transform: translate(-6px, -46px); }
.cv-tag b { color: var(--accent); font: 700 1.05rem var(--font-display); margin-left: 4px; }
.cv-zoom { margin-top: 14px; } .cv-zoom img { display: block; width: 100%; border-radius: 14px; border: 1px solid var(--border); margin-top: 8px; }
.cv-h { display: block; color: var(--muted); font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.cv-side { display: flex; flex-direction: column; gap: 16px; }
.cv-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cv-badges .badge { border-radius: 999px; }
.cv-title { font: 700 3.4rem/.95 var(--font-display); margin: 4px 0 0; }
.cv-by { display: flex; align-items: center; gap: 12px; } .cv-by .tn-avatar { width: 42px; height: 42px; font-size: 1.1rem; } .cv-by b { display: block; } .cv-by span { color: var(--muted); font-size: .92rem; }
.cv-card { padding: 20px 22px; margin: 0; }
.cv-nums { display: flex; justify-content: space-between; align-items: flex-end; }
.cv-nums div { display: flex; align-items: baseline; gap: 6px; } .cv-nums .cv-pts { flex-direction: column; align-items: flex-end; gap: 2px; }
.cv-big { font: 700 3.6rem/1 var(--font-display); } .cv-pts .cv-big { color: var(--accent-ink); }
.cv-nums small { color: var(--muted); font-size: 1.1rem; } .cv-pts small { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.cv-calc { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; color: var(--muted); font-size: .96rem; } .cv-calc b { color: var(--text); }
.cv-calc li::before { content: "› "; color: var(--accent-ink); }
.cv-conf { font-size: .86rem; margin: 12px 0 0; }
.cv-checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.cv-checks li { display: flex; align-items: center; gap: 9px; font-size: .96rem; }
.cv-checks i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .78rem; font-weight: 700; flex: none; }
.cv-checks .ok i { background: rgba(123, 201, 111, .18); color: #7BC96F; } .cv-checks .bad i { background: rgba(229, 83, 61, .18); color: #FF8F7C; } .cv-checks .unk i { background: var(--v2-soft); color: var(--muted); }
.cv-reads { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; } .cv-reads .chip { font: 700 1rem var(--font-display); padding: 3px 12px; } .cv-reads .cv-spread { color: #7BC96F; background: rgba(123, 201, 111, .14); }
.cv-flags { margin: 12px 0 0; padding-left: 18px; color: var(--warn-fg); }
.cv-kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: .96rem; } .cv-kv dt { color: var(--muted); } .cv-kv dd { margin: 0; }
.cv-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; } .cv-actions .btn { margin: 0; }
.cv-actions .report-box { margin: 0; } .cv-actions .report-box summary { list-style: none; cursor: pointer; } .cv-actions .report-box[open] form { margin-top: 12px; }
.cv-reading { max-width: 720px; margin: 10px auto 0; text-align: center; }
.cv-reading h1 { font-size: 2.2rem; margin: 0 0 8px; } .cv-reading .cv-photo { border-radius: 18px; margin-top: 18px; }
.cv-spin { width: 76px; height: 76px; margin: 10px auto 22px; border-radius: 50%; border: 5px solid var(--v2-soft); border-top-color: var(--accent-ink); animation: cvspin 1s linear infinite; }
@keyframes cvspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cv-spin { animation: none; } }
@media (max-width: 899px) {
  .cv-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cv-crumbs { display: none; }
  body.catch-v2 main.container { padding-top: 0; padding-left: 0; padding-right: 0; }
  .cv-viewer { border-radius: 0; border: 0; }
  .cv-zoom, .cv-side, .cv-retake { margin-left: 16px; margin-right: 16px; }
  .cv-tag { font-size: .68rem; padding: 3px 7px; } .cv-tag b { font-size: .9rem; }
  .cv-title { font-size: 2.6rem; }
  .cv-big { font-size: 2.7rem; }
  .cv-checks { grid-template-columns: 1fr; }
}

/* ---------------- submit a catch: the rules as cards, one big button (the in-app camera is capture.js) ---------------- */
.sv-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 48px; align-items: start; padding-top: 18px; }
.sv-intro h1 { font: 700 clamp(2.6rem, 5vw, 4rem)/.95 var(--font-display); margin: 10px 0 12px; }
.sv-rules { display: grid; gap: 12px; margin-top: 22px; }
.sv-rule { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; padding: 16px 18px; margin: 0; }
.sv-rule b { display: block; font: 700 1.35rem/1.05 var(--font-display); margin-bottom: 2px; } .sv-rule span { color: var(--muted); font-size: .95rem; }
.sv-ic { width: 52px; height: 52px; border-radius: 15px; background: rgba(255, 210, 31, .12); color: var(--accent-ink); display: grid; place-items: center; }
.sv-ic svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sv-action { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 14px; }
.sv-action .btn-xl { min-height: 66px; font-size: 1.2rem; gap: 10px; margin: 0; }
.sv-action .catch-photo { border-radius: 16px; margin: 0 0 12px; }
.sv-btns { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; } .sv-btns .btn-xl { min-height: 56px; }
.sv-check { font-size: .92rem; margin: 0 0 12px; }
.sv-help { margin: 0; }
.sv-score { margin: 0; } .sv-score ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
@media (max-width: 899px) {
  .sv-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 6px; }
  .sv-intro h1 { font-size: 2.7rem; }
  .sv-rule { grid-template-columns: 44px 1fr; padding: 12px 14px; gap: 14px; } .sv-ic { width: 44px; height: 44px; border-radius: 13px; } .sv-rule b { font-size: 1.2rem; } .sv-rule span { font-size: .9rem; }
  .sv-action { position: static; }
}

/* ---------------- ranking v2.1: places 1-3 as a podium (2 · 1 · 3), the rest as rows. Pure CSS on the same list, so the live
   re-ordering (live.js moves the <li>s) simply lands a team on the podium. Not on the TV screen or during the ceremony. ---------------- */
.lb-v2 .lb-info { font-size: var(--fs-sm); margin: 0 0 var(--s2); }
body.lb-v2:not(.tv):not(.ceremony) .leaderboard-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s4); align-items: end; }
body.lb-v2:not(.tv):not(.ceremony) .leaderboard-list > * { grid-column: 1 / -1; order: 10; }
body.lb-v2:not(.tv):not(.ceremony) .leaderboard-list > .lb-row:nth-child(-n+3) {
  grid-column: auto; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; overflow: hidden;
  min-height: 0; padding: 0 var(--s4) var(--s4); margin: var(--s3) 0 var(--s5); background: var(--card); border: 1px solid var(--border); border-radius: 20px; }
body.lb-v2:not(.tv):not(.ceremony) .leaderboard-list > .lb-row:nth-child(1) { order: 2; border-color: rgba(255, 210, 31, .6); box-shadow: 0 0 60px rgba(255, 210, 31, .12); }
body.lb-v2:not(.tv):not(.ceremony) .leaderboard-list > .lb-row:nth-child(2) { order: 1; }
body.lb-v2:not(.tv):not(.ceremony) .leaderboard-list > .lb-row:nth-child(3) { order: 3; }
body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(-n+3) .lb-thumb { width: calc(100% + 28px); height: auto; aspect-ratio: 4 / 3; margin: 0 -14px 12px; border-radius: 0; position: relative; }
body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(1) .lb-thumb { aspect-ratio: 4 / 3.5; }
body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(-n+3) .lb-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--card)); }
body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(-n+3) .lb-ini { font-size: 4rem; }
body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(-n+3) .lb-rank {
  position: absolute; z-index: 2; top: 14px; left: 50%; transform: translateX(-50%); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  color: #0A1E25; font-size: 1.75rem; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(1) .lb-rank { background: var(--gold); color: #0A1E25; }
body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(2) .lb-rank { background: var(--silver); color: #0A1E25; }
body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(3) .lb-rank { background: var(--bronze); color: #0A1E25; }
body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(-n+3) .lb-who { align-items: center; position: relative; z-index: 1; margin-top: -6px; max-width: 100%; }
body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(-n+3) .lb-name { font: 700 var(--fs-xl)/1.05 var(--font-display); white-space: normal; }
body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(-n+3) .lb-mobile-best { display: flex; justify-content: center; margin-top: 8px; }
body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(-n+3) .lb-species,
body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(-n+3) .lb-len,
body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(-n+3) .lb-bars,
body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(-n+3) .lb-rounds { display: none; }
body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(-n+3) .lb-points { align-items: center; margin-top: var(--s2); }
body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(-n+3) .lb-points .v-total { font-size: var(--fs-2xl); }
body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(1) .lb-points .v-total { color: var(--accent-ink); font-size: var(--fs-3xl); }
body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(-n+3) .like-form { position: absolute; z-index: 2; top: 10px; right: 10px; }
body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(-n+3) .like { background: rgba(10, 30, 37, .7); color: #F3F7F8; }
body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(-n+3):hover { background: var(--card); }
@media (max-width: 899px) {
  body.lb-v2:not(.tv):not(.ceremony) .leaderboard-list { grid-template-columns: 1fr 1fr; column-gap: var(--s2); }
  body.lb-v2:not(.tv):not(.ceremony) .leaderboard-list > .lb-row:nth-child(1) { grid-column: 1 / -1; order: 1; margin-bottom: 10px; }
  body.lb-v2:not(.tv):not(.ceremony) .leaderboard-list > .lb-row:nth-child(2) { order: 2; margin-top: 0; }
  body.lb-v2:not(.tv):not(.ceremony) .leaderboard-list > .lb-row:nth-child(3) { order: 3; margin-top: 0; }
  body.lb-v2:not(.tv):not(.ceremony) .leaderboard-list > .lb-row:nth-child(-n+3) { padding: 0 10px 14px; margin-bottom: 16px; }
  body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(-n+3) .lb-thumb { width: calc(100% + 20px); margin: 0 -10px 10px; }
  body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(1) .lb-thumb { aspect-ratio: 16 / 9; }
  body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(-n+3) .lb-name { font-size: var(--fs-lg); }
  body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(1) .lb-name { font-size: var(--fs-xl); }
  body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(-n+3) .lb-rank { width: 42px; height: 42px; font-size: 1.4rem; top: 10px; }
  body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(-n+3) .lb-points .v-total { font-size: var(--fs-xl); }
  body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(1) .lb-points .v-total { font-size: var(--fs-2xl); }
  body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(-n+3) .lb-mobile-best { flex-wrap: wrap; }
}

/* ---- ranking v2.2: names and points only (a click opens the team's catches) */
body.lb-v2 .leaderboard-list > .lb-row { grid-template-columns: 52px minmax(0, 1fr) auto 64px; min-height: 72px; }
body.lb-v2 .lb-row .lb-rounds { grid-column: 2 / -1; }
body.lb-v2 .lb-name { font-size: 1.15rem; }
body.lb-v2:not(.tv):not(.ceremony) .leaderboard-list > .lb-row:nth-child(-n+3) { padding: 24px 16px 20px; justify-content: flex-end; }
body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(-n+3) .lb-rank { position: static; transform: none; margin: 0 auto 14px; width: 64px; height: 64px; font-size: var(--fs-2xl); }
body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(1) { padding-top: 40px; }
body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(1) .lb-rank { width: 78px; height: 78px; font-size: var(--fs-3xl); }
body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(-n+3) .lb-who { margin-top: 0; }
@media (max-width: 899px) {
  body.lb-v2 .leaderboard-list > .lb-row { grid-template-columns: 34px minmax(0, 1fr) auto auto; min-height: 62px; }
  body.lb-v2 .lb-v2 .lb-fish, body.lb-v2 .lb-fish { display: block; font-size: var(--fs-sm); }
  body.lb-v2:not(.tv):not(.ceremony) .leaderboard-list > .lb-row:nth-child(-n+3) { padding: var(--s4) var(--s2) var(--s3); }
  body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(-n+3) .lb-rank { width: 48px; height: 48px; font-size: var(--fs-xl); margin-bottom: var(--s2); }
  body.lb-v2:not(.tv):not(.ceremony) .lb-row:nth-child(1) .lb-rank { width: 60px; height: 60px; font-size: 2rem; }
}

/* ---------------- a team's page (public): hero with its biggest fish, then each angler with the catches as cards ---------------- */
.tm-back { text-decoration: none; } .tm-back:hover { color: var(--text); }
.tm-acc { color: var(--accent-ink) !important; }
.tm-like { margin-top: 18px; } .tm-like .like { background: var(--v2-soft); border: 0; color: var(--text); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-weight: 600; } .tm-like .like.on { color: #FF7A8A; }
.tm-tabs { margin: 0 0 10px; }
.tm-note { font-size: .9rem; }
.tm-angler { margin: 26px 0 8px; }
.tm-angler-head { display: flex; align-items: center; gap: 14px; padding: 0 0 14px; border-bottom: 1px solid var(--v2-line); margin-bottom: 16px; }
.tm-av { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; font-size: 1.2rem; flex: none; }
.tm-who { flex: 1; min-width: 0; display: flex; flex-direction: column; } .tm-who .lb-name { font: 700 1.6rem/1.05 var(--font-display); } .tm-who span { font-size: .9rem; }
.tm-pts b { font: 700 2rem var(--font-display); } .tm-pts small { color: var(--muted); }
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tm-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--border); text-decoration: none; color: var(--text); transition: transform .15s; }
.tm-card:hover { transform: translateY(-3px); color: var(--text); }
.tm-ph { position: relative; display: block; aspect-ratio: 4 / 3; background: #000; } .tm-ph img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.tm-star { position: absolute; top: 10px; left: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #0E2A33; font-size: .95rem; }
.tm-round { position: absolute; top: 10px; right: 10px; background: rgba(10, 30, 37, .8) !important; color: #F3F7F8 !important; font-size: .75rem; }
.tm-in { display: flex !important; justify-content: space-between; align-items: center; padding: 12px 14px; position: static !important; background: none !important; }
.tm-in b { display: block; font: 700 1.5rem/1 var(--font-display); } .tm-in small { color: var(--muted); font-size: .82rem; } .tm-p { text-align: right; } .tm-p b { color: var(--accent-ink); }
@media (max-width: 899px) {
  .tm-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tm-in { padding: 10px 12px; } .tm-in b { font-size: 1.25rem; }
  .tm-who .lb-name { font-size: 1.35rem; } .tm-pts b { font-size: 1.6rem; }
  .tm-like { display: none; }
}

/* ---------------- home and the tournaments list: rows like the ranking (picture, name, water and dates, numbers, button) ---------------- */
.home-h { font: 700 2.4rem var(--font-display); margin: 6px 0 4px; }
.home-v2 .group-h, .comps-v2 h1 { font: 700 1.9rem var(--font-display); margin: 26px 0 10px; }
.comps-v2 h1 { font-size: 2.6rem; margin-top: 10px; }
.home-v2 .comp-list, .comps-v2 .comp-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 4px; border-top: 0; }
.home-v2 .comp-card, .comps-v2 .comp-card { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 10px 12px;
  border: 0; border-radius: 16px; background: transparent; box-shadow: none; }
.home-v2 .comp-card:hover, .comps-v2 .comp-card:hover { background: var(--card); }
.home-v2 .comp-cover, .comps-v2 .comp-cover { position: relative; width: 132px; height: 88px; border-radius: 12px; overflow: hidden; background: var(--brand-100); display: grid; place-items: center; margin: 0; }
.home-v2 .comp-cover img, .comps-v2 .comp-cover img { width: 100%; height: 100%; object-fit: cover; } .home-v2 .comp-cover img.logo, .comps-v2 .comp-cover img.logo { object-fit: contain; background: #F3F7F8; padding: 8px; }
.home-v2 .comp-date, .comps-v2 .comp-date { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 7px; background: rgba(10, 30, 37, .82); color: #F3F7F8; font-size: .72rem; line-height: 1.1; }
.home-v2 .comp-date strong, .comps-v2 .comp-date strong { font: 700 1rem var(--font-display); margin-right: 3px; }
.home-v2 .comp-body h3, .comps-v2 .comp-body h3 { font: 700 1.55rem/1.05 var(--font-display); margin: 4px 0 2px; } .home-v2 .comp-body h3 a, .comps-v2 .comp-body h3 a { color: var(--text); text-decoration: none; }
.home-v2 .comp-body h3 a:hover, .comps-v2 .comp-body h3 a:hover { color: var(--accent-ink); }
.home-v2 .comp-body p, .comps-v2 .comp-body p { margin: 0; font-size: .92rem; }
.home-v2 .comp-actions .btn, .comps-v2 .comp-actions .btn { margin: 0; white-space: nowrap; }
.home-v2 .pill, .comps-v2 .pill { border-radius: 999px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.home-v2 .join-hint { margin-top: 4px; }
@media (max-width: 899px) {
  .home-v2 .comp-card, .comps-v2 .comp-card { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 8px; background: var(--card); border: 1px solid var(--border); margin-bottom: 8px; }
  .home-v2 .comp-cover, .comps-v2 .comp-cover { width: 96px; height: 80px; }
  .home-v2 .comp-actions, .comps-v2 .comp-actions { grid-column: 1 / -1; } .home-v2 .comp-actions .btn, .comps-v2 .comp-actions .btn { width: 100%; }
  .home-v2 .comp-body h3, .comps-v2 .comp-body h3 { font-size: 1.3rem; }
  .home-h { font-size: 2rem; }
}
.home-v2 .comp-body h3 a, .comps-v2 .comp-body h3 a { border-bottom: 0; box-shadow: none; background: none; }
.v2-hero:not(:has(.v2-hero-pic)) { min-height: 0; } .v2-hero:not(:has(.v2-hero-pic)) .v2-hero-txt { padding-top: 26px; padding-bottom: 20px; }
@media (max-width: 899px) { .v2-hero:not(:has(.v2-hero-pic)) { background: var(--card); border: 1px solid var(--border); } .v2-hero:not(:has(.v2-hero-pic)) .v2-hero-txt { padding-top: 34px; } }

/* ---------------- account: identity and menu on the left (a rail on a computer, tiles on a phone), my catches as cards ---------------- */
body.acc-v2 .acc-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: start; }
body.acc-v2 .acc-side { position: sticky; top: 84px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 26px 18px 14px; }
body.acc-v2 .acc-avatar { display: block; width: 112px; height: 112px; margin: 0 auto 14px; border-radius: 50%; box-shadow: 0 0 0 4px var(--card), 0 0 0 7px var(--accent); background: var(--brand-100); display: grid; place-items: center; position: relative; }
body.acc-v2 .acc-avatar-badge { background: var(--accent); color: #0E2A33; box-shadow: 0 0 0 3px var(--card); }
body.acc-v2 .acc-identity { text-align: center; margin-bottom: 16px; }
body.acc-v2 .acc-name { font: 700 2rem/1 var(--font-display); color: var(--text); margin: 0 0 6px; }
body.acc-v2 .acc-score .num { font: 700 2.6rem/1 var(--font-display); color: var(--accent-ink); } body.acc-v2 .acc-score small { color: var(--muted); margin-left: 4px; }
body.acc-v2 .acc-team { display: inline-block; margin-top: 8px; padding: 3px 12px; border-radius: 999px; background: rgba(255, 210, 31, .14); color: var(--accent-ink); font-size: .85rem; letter-spacing: .02em; text-transform: none; }
body.acc-v2 .acc-menu { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--v2-line); }
body.acc-v2 .acc-menu li { display: block; }
body.acc-v2 .acc-menu a, body.acc-v2 .acc-menu button { display: flex; flex-direction: row; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 12px; background: none; color: var(--text); font-size: 1rem; font-weight: 600; text-align: left; box-shadow: none; transform: none; }
body.acc-v2 .acc-menu a:hover, body.acc-v2 .acc-menu button:hover { background: var(--v2-soft); color: var(--text); border: 0; transform: none; box-shadow: none; }
body.acc-v2 .acc-menu svg { width: 22px; height: 22px; color: var(--accent-ink); }
body.acc-v2 .acc-menu li form { margin: 0; }
body.acc-v2 .acc-main h2 { font: 700 1.9rem var(--font-display); margin: 4px 0 14px; }
body.acc-v2 .catch-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
body.acc-v2 .catch-gallery-item { position: relative; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--border); text-decoration: none; color: var(--text); transition: transform .15s; }
body.acc-v2 .catch-gallery-item:hover { transform: translateY(-3px); color: var(--text); }
body.acc-v2 .catch-gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 0; }
body.acc-v2 .catch-gallery-caption { position: static; background: none; color: var(--text); padding: 10px 12px; font-size: .92rem; font-weight: 600; }
body.acc-v2 .acc-cols { grid-template-columns: 1fr 1fr; margin-top: 30px; }
body.acc-v2 .acc-card { padding: 22px; } body.acc-v2 .acc-card h2 { font-size: 1.5rem; }
@media (max-width: 899px) {
  body.acc-v2 .acc-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  body.acc-v2 .acc-side { position: static; padding: 22px 14px 14px; }
  body.acc-v2 .acc-menu { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; border: 0; padding: 6px 0 0; }
  body.acc-v2 .acc-menu a, body.acc-v2 .acc-menu button { flex-direction: column; justify-content: center; text-align: center; gap: 6px; min-height: 86px; padding: 10px 6px; font-size: .8rem; background: var(--v2-soft); }
  body.acc-v2 .acc-menu svg { width: 26px; height: 26px; }
  body.acc-v2 .catch-gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  body.acc-v2 .acc-cols { grid-template-columns: minmax(0, 1fr); }
}
body.acc-v2 .acc-score { display: flex; justify-content: center; align-items: baseline; gap: 4px; }
body.acc-v2 .acc-card { border: 1px solid var(--border) !important; border-radius: 18px; background: var(--card); }
body.acc-v2 .acc-menu li, body.acc-v2 .acc-menu a, body.acc-v2 .acc-menu button { border-bottom: 0 !important; }

/* ---- photos kept private by the organiser: a plain tile with the length and the species instead of the picture */
.tm-nophoto { display: grid; place-items: center; background: linear-gradient(135deg, var(--card), #13363F); }
.tm-sp { font: 700 1.3rem var(--font-display); color: var(--muted); }
.cv-nophoto { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 320px; border-radius: 20px;
  background: linear-gradient(135deg, var(--card), #13363F); border: 1px solid var(--border); text-align: center; padding: 24px; }
.cv-nophoto b { font: 700 4rem/1 var(--font-display); color: var(--accent); } .cv-nophoto span { font: 700 1.6rem var(--font-display); }

/* ---------------- a tournament's sub-pages (area, rules, start list, partners, live feed): one head, the tabs as an underlined row ---------------- */
.th2 { padding: 22px 0 4px; }
.th2-t { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.th2-t:hover { color: var(--accent); }
.th2-t img { width: 34px; height: 34px; border-radius: 9px; background: #F3F7F8; object-fit: contain; padding: 3px; }
.th2 h1 { font: 700 clamp(2.4rem, 4.6vw, 3.8rem)/1 var(--font-display); margin: 10px 0 8px; color: var(--text); }
.th2-lead { max-width: 720px; margin: 0; font-size: 1.05rem; }
.tp-v2 .status-tabs.player-tabs { margin-top: var(--s3); }

/* the area map */
.map-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--v2-soft); font-size: .9rem; font-weight: 600; color: var(--text); }
.map-legend i { width: 18px; height: 13px; border-radius: 3px; }
.lg-zone i { border: 2px solid #3FB6E8; background: rgba(63, 182, 232, .25); }
.lg-off i { border: 2px dashed #FF6B6B; background: rgba(255, 107, 107, .25); }
#map.t-map { height: clamp(420px, 66vh, 760px); border-radius: 20px; border: 1px solid var(--border); overflow: hidden; }
.map-v2 .leaflet-container { background: var(--card); font-family: inherit; }
.map-v2 .launch-marker { font-size: 22px; line-height: 28px; text-align: center; background: none; border: 0; }
.map-v2 .leaflet-bar a, .map-v2 .leaflet-control-layers { background: var(--card); color: var(--text); border-color: var(--border); }
.map-v2 .leaflet-bar a:hover { background: var(--v2-soft); color: var(--text); }
.map-v2 .leaflet-control-layers-toggle { filter: invert(1) hue-rotate(180deg); }
[data-theme=light] .map-v2 .leaflet-control-layers-toggle { filter: none; }
.map-v2 .leaflet-popup-content-wrapper, .map-v2 .leaflet-popup-tip { background: var(--card); color: var(--text); }
.map-v2 .leaflet-control-attribution { background: rgba(10, 30, 37, .7); color: #9DB4BC; } .map-v2 .leaflet-control-attribution a { color: #DCE8EC; }
@media (max-width: 899px) {
  .th2 { padding-top: 12px; }
  .tp-v2 .status-tabs.player-tabs { margin: var(--s2) calc(-1 * var(--s4)) var(--s5); padding: 0 var(--s2); }
  #map.t-map { height: 62vh; border-radius: 16px; }
}
.map-v2 .tiles-dark { filter: invert(1) hue-rotate(185deg) brightness(.82) contrast(.92) saturate(.7); }
@media (max-width: 899px) { .map-legend span { padding: 5px 11px; font-size: .82rem; } }

/* ---- partners page: logos on light plates, two to a row on a phone */
.tp-v2 .partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.tp-v2 .partner-grid .partner { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 14px 16px; border-radius: 18px; background: var(--card);
  border: 1px solid var(--border); text-decoration: none; color: var(--text); text-align: center; transition: transform .15s; }
.tp-v2 .partner-grid a.partner[href]:hover { transform: translateY(-3px); }
.tp-v2 .partner-grid .partner img { width: 100%; height: 120px; object-fit: contain; background: #F3F7F8; border-radius: 12px; padding: 14px; max-height: none; }
.tp-v2 .partner-grid .partner strong { color: var(--text); font: 700 1.25rem var(--font-display); }
.tp-v2 .partner-grid .partner small { color: var(--muted); }
.tp-v2 .partner-grid .partner.tier-main { border-top: 1px solid var(--border); box-shadow: inset 0 3px 0 var(--accent); padding-top: 14px; }
.tp-v2 .partner-grid .partner.tier-main img { height: 190px; }
.tp-v2 .partner-grid .partner.tier-partner { border-top: 1px solid var(--border); }
.tp-v2 .tier-chip { align-self: center; border-radius: 999px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.tp-v2 .tier-chip.tier-main { background: var(--accent); color: #0E2A33; border-color: var(--accent); }
/* ---- start list: the table as quiet rows */
.tp-v2 .data-table th { color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.tp-v2 .data-table td { font-size: 1.02rem; }
@media (max-width: 899px) {
  .tp-v2 .partner-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tp-v2 .partner-grid .partner { padding: 10px; }
  .tp-v2 .partner-grid .partner img { height: 84px; padding: 10px; }
  .tp-v2 .partner-grid .partner.tier-main img { height: 130px; }
  .tp-v2 .partner-grid .partner strong { font-size: 1.05rem; }
}
.tp-v2 .partner-grid .partner small { overflow-wrap: anywhere; }

/* ---------------- rules: the basics as tiles, each species as a card with a worked example, the rounds as rows ---------------- */
.rl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0 0 14px; }
.rl-facts > div { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); }
.rl-facts span { color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.rl-facts b { font-size: 1.05rem; line-height: 1.3; }
.rl-facts a { color: var(--accent-ink); font-size: .9rem; font-weight: 600; text-decoration: none; margin-top: 2px; }
.rl-note { padding: 12px 16px; border-radius: 14px; background: rgba(255, 210, 31, .1); border-left: 3px solid var(--accent); }
.rl-sec { margin: 34px 0 10px; }
.rl-sec h2, .rules-v2 .howto h2 { font: 700 2rem var(--font-display); margin: 0 0 14px; }
.rl-species { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.rl-card { padding: 20px 20px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); }
.rl-card h3 { font: 700 2rem/1 var(--font-display); margin: 8px 0 16px; }
.rl-nums { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px 26px; padding-bottom: 14px; border-bottom: 1px solid var(--v2-line); }
.rl-nums b { display: block; font: 700 1.6rem/1 var(--font-display); color: var(--text); } .rl-nums div:nth-child(3) b { color: var(--accent-ink); }
.rl-nums span { color: var(--muted); font-size: .8rem; }
.rl-ex { margin: 12px 0 0; font-size: .95rem; color: var(--text); }
.rl-expl { margin-top: 12px; }
.rl-rounds { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.rl-rounds li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--card); }
.rl-rounds b { font: 700 1.25rem var(--font-display); } .rl-rounds span { color: var(--muted); } .rl-rounds .rl-time { color: var(--text); font-weight: 600; }
.rules-v2 .howto { margin-top: 34px; border-radius: 18px; }
.rl-text { padding: 20px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); white-space: pre-line; line-height: 1.6; }
@media (max-width: 899px) {
  .rl-facts { grid-template-columns: 1fr 1fr; gap: 8px; } .rl-facts > div { padding: 12px 14px; } .rl-facts b { font-size: .95rem; }
  .rl-species { grid-template-columns: minmax(0, 1fr); }
  .rl-sec h2, .rules-v2 .howto h2 { font-size: 1.7rem; }
  .rl-rounds li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; } .rl-rounds li span:not(.rl-time) { grid-row: 2; }
}
.rl-facts .nw { white-space: nowrap; }

/* ---------------- 'about the tournament': hero with the round clock, ranking rows (names, bar, points), schedule, species cards ---------------- */
.th-hero .th-clock { display: inline-flex; flex-direction: column; gap: 4px; margin: 20px 0 0; padding: 12px 18px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid var(--border); }
.th-hero .th-clock .lbl { color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.th-hero .th-clock .t { font: 700 2.6rem/1 var(--font-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.th-hero .th-clock.waiting .t { color: var(--text); }
.th-hero .snap-badge { margin-left: 10px; }
.th-hero p a { color: var(--accent); text-decoration: none; }
.th-cap { position: absolute; right: 24px; bottom: 26px; z-index: 2; margin: 0; padding: 8px 14px; border-radius: 12px; background: rgba(10, 30, 37, .78); color: #F3F7F8; font-size: .9rem; }
.th-cap small { color: #9DB4BC; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; }
.home-t-v2 .rl { margin: 0 0 8px; }
.home-t-v2 .rl-band { border-radius: 8px; }
.home-t-v2 .th-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 40px; border: 0; margin-top: 26px; }
.home-t-v2 .th-main, .home-t-v2 .th-side { padding: 0; border: 0; }
.home-t-v2 .th-grid h2 { font: 700 2rem var(--font-display); margin: 0 0 14px; }
.th-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.th-rows li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 14px; border-radius: 14px; }
.th-rows li:hover { background: var(--card); }
.th-rows .rk { position: static; transform: none; margin: 0; }
.th-rows .tp-name { display: block; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-rows a.tp-name:hover { color: var(--accent-ink); }
.th-rows .bar { height: 6px; margin-top: 8px; border-radius: 6px; background: var(--v2-soft); overflow: hidden; }
.th-rows .bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2E7C93, #3FB6E8); }
.th-rows li.lead .bar i { background: linear-gradient(90deg, #E8BC00, var(--accent)); }
.th-rows .pts b { font: 700 1.6rem var(--font-display); } .th-rows .pts small { color: var(--muted); }
.home-t-v2 .th-more { margin: 14px 0 0; }
.home-t-v2 .th-log { margin-top: 34px; }
.home-t-v2 .rl-rounds li.nowrow { box-shadow: inset 3px 0 0 var(--accent); }
.home-t-v2 .th-side .rl-rounds li { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; } .home-t-v2 .th-side .rl-rounds li > span:not(.rl-time) { grid-row: 2; font-size: .9rem; }
.home-t-v2 .sp-rec { margin: 0 0 12px; } .home-t-v2 .sp-rec b { font: 700 1.6rem var(--font-display); color: var(--accent-ink); }
.home-t-v2 .sp-rule { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--v2-line); display: flex; flex-wrap: wrap; gap: 6px; }
.home-t-v2 .sp-rule li { padding: 4px 10px; border-radius: 999px; background: var(--v2-soft); font-size: .85rem; }
@media (max-width: 899px) {
  .home-t-v2 .th-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .th-rows li { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; padding: 10px 6px; }
  .th-rows .pts b { font-size: 1.3rem; }
  .th-cap { left: 16px; right: auto; bottom: auto; top: 16px; }
  .th-hero .th-clock .t { font-size: 2.1rem; }
}
.th-rows .tp-name, .th-rows .tp-name:hover { border: 0; }
.th-rows li { border: 0; }
body.home-t-v2 .th-rows li .lb-rank { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--v2-soft); color: var(--muted); font: 700 1.25rem/1 var(--font-display); }
body.home-t-v2 .th-rows li .lb-rank.rank-1 { background: var(--gold); color: #0E2A33; } body.home-t-v2 .th-rows li .lb-rank.rank-2 { background: var(--silver); color: #0E2A33; } body.home-t-v2 .th-rows li .lb-rank.rank-3 { background: var(--bronze); color: #0E2A33; }
.home-t-v2 .sp-list { border-top: 0; }
.home-t-v2 .sp-row { display: block; padding: 20px 20px 16px; border-bottom: 1px solid var(--border); }
.home-t-v2 .sp-row h3 { font: 700 2rem/1 var(--font-display); margin: 8px 0 12px; }

/* ---------------- seasons and series: rows with a year tile; classification pages with a hero and a quiet table ---------------- */
.sx-v2 .th2 { padding-top: 10px; }
.sx-tile { display: grid; place-items: center; background: linear-gradient(135deg, #13363F, #0E2A33); border: 1px solid var(--border); }
.sx-tile strong { font: 700 2.2rem/1 var(--font-display); color: var(--accent); }
.sx-v2 .year-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.sx-v2 .year-chips .chip { border-radius: 999px; padding: 8px 16px; background: var(--v2-soft); color: var(--text); font-weight: 600; text-decoration: none; border: 0; }
.sx-v2 .year-chips .chip.on { background: var(--accent); color: #0E2A33; }
.sx-v2 .comp-card .chips { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; padding: 0; margin: 8px 0 0; }
.sx-v2 .comp-card .chips li { padding: 3px 10px; border-radius: 999px; background: var(--v2-soft); font-size: .82rem; display: inline-flex; align-items: center; gap: 6px; }
.sx-v2 .comp-card .chips .ic { width: 15px; height: 15px; }
.sx-back { text-decoration: none; } .sx-back:hover { color: var(--text); }
.sx-method { margin-top: 12px !important; font-size: .95rem !important; }
.sx-v2 main h2 { font: 700 2rem var(--font-display); margin: 30px 0 10px; }
.sx-wrap { overflow-x: auto; border-radius: 18px; background: var(--card); border: 1px solid var(--border); margin: 12px 0 10px; }
.sx-table { width: 100%; border-collapse: collapse; margin: 0; }
.sx-table th { text-align: left; padding: 14px 14px 10px; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; border-bottom: 1px solid var(--v2-line); }
.sx-table th a { color: var(--muted); text-decoration: none; border: 0; } .sx-table th a:hover { color: var(--accent-ink); }
.sx-table th small { display: block; text-transform: none; letter-spacing: 0; }
.sx-table td { padding: 12px 14px; border-bottom: 1px solid var(--v2-line); white-space: nowrap; }
.sx-table tbody tr:last-child td { border-bottom: 0; }
.sx-table tbody tr:hover td { background: rgba(255, 255, 255, .03); }
.sx-table .sx-name { font-weight: 700; font-size: 1.05rem; white-space: normal; min-width: 160px; }
.sx-table td.dropped { text-decoration: line-through; opacity: .55; }
.sx-rk { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--v2-soft); color: var(--muted); font: 700 1.1rem/1 var(--font-display); }
.sx-rk.rank-1 { background: var(--gold); color: #0E2A33; } .sx-rk.rank-2 { background: var(--silver); color: #0E2A33; } .sx-rk.rank-3 { background: var(--bronze); color: #0E2A33; }
.sx-list a { color: var(--text); text-decoration: none; } .sx-list a:hover { color: var(--accent-ink); }
@media (max-width: 899px) {
  .sx-tile strong { font-size: 1.7rem; }
  .sx-v2 main h2 { font-size: 1.6rem; }
  .sx-table th, .sx-table td { padding: 10px 10px; }
  .sx-table .sx-name { min-width: 130px; }
}

/* ---------------- the organiser's panel: one width, the tournament head and tabs like the public pages ---------------- */
body.adm-v2 main.container { max-width: var(--v2-wrap); padding-top: 18px; }
/* inside one tournament: "back" and "public page" on one line, the name, one row of tabs (v2.css "tabs") */
body.adm-v2 .adm-head { display: flex; flex-direction: column; align-items: stretch; gap: var(--s2); margin: 0; padding: 0; background: none; border: 0; }
body.adm-v2 .adm-links { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s4); }
body.adm-v2 .adm-back, body.adm-v2 .adm-public { font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
body.adm-v2 .adm-back { color: var(--muted); }
body.adm-v2 .adm-back:hover { color: var(--accent-ink); }
body.adm-v2 .adm-public { color: var(--accent-ink); }
body.adm-v2 .adm-name { display: flex; align-items: center; gap: var(--s3); }
body.adm-v2 .adm-name strong { font: 700 var(--fs-2xl)/1.05 var(--font-display); color: var(--text); }
body.adm-v2 .adm-name .t-logo.sm { width: 48px; height: 48px; border-radius: 10px; background: #F3F7F8; box-shadow: none; }
body.adm-v2 .admin-tabs.sub { margin: var(--s3) 0 var(--s5); }
body.adm-v2 main h1 { font: 700 var(--fs-2xl)/1.05 var(--font-display); margin: 0 0 var(--s2); }
/* a tab page's own heading repeats the lit tab: screen readers still read it, the eye gets the content one row sooner */
body.adm-v2 .admin-tabs.sub ~ h1 { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.adm-v2 .at-actions .btn, body.adm-v2 .at-actions button { padding: var(--s2) var(--s4); min-height: 36px; font-size: var(--fs-sm); }
body.adm-v2 .at-row { padding: var(--s4) 0; }
body.adm-v2 .at-list > h2, body.adm-v2 .at-layout h2 { font: 700 var(--fs-xl) var(--font-display); }
body.adm-v2 .data-table th { color: var(--muted); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 899px) {
  body.adm-v2 main.container { padding-top: var(--s3); }
  body.adm-v2 main h1 { font-size: var(--fs-xl); }
}
body.adm-v2 .at-list > h2 { border-bottom: 1px solid var(--v2-line); padding-bottom: 12px; }

/* ---- the TV screen: compact rows, so the whole ranking fits above the sponsors strip at the bottom */
body.tv.lb-v2 .leaderboard-list { gap: 2px; }
body.tv.lb-v2 .leaderboard-list > .lb-row { min-height: 0; padding: 6px 18px; grid-template-columns: 64px minmax(0, 1fr) auto; border-radius: 12px; }
body.tv.lb-v2 .leaderboard-list > .lb-row:nth-child(odd) { background: rgba(255, 255, 255, .03); }
body.tv.lb-v2 .lb-row .lb-name { font-size: clamp(1.1rem, 2.4vh, 1.8rem); }
body.tv.lb-v2 .lb-row .lb-fish { display: none; }
body.tv.lb-v2 .lb-row .lb-points { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: baseline; gap: 6px; line-height: 1; }
body.tv.lb-v2 .lb-row .lb-points .v-total, body.tv.lb-v2 .lb-row .lb-points small { display: inline; line-height: 1; }
body.tv.lb-v2 .lb-row .lb-points .v-total { font-size: clamp(1.3rem, 3vh, 2.2rem); }
body.tv.lb-v2 .lb-row .like-form, body.tv.lb-v2 .lb-row .like { display: none; }

/* ---- the cookie consent box (Google Analytics loads only after 'Accept') */
.consent { position: fixed; z-index: 1300; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; padding: var(--s4); border-radius: 18px;
  background: var(--card); border: 1px solid var(--border); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); color: var(--text); }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 12px; font-size: var(--fs-sm); line-height: 1.45; } .consent a { color: var(--accent); }
.consent-btns { display: flex; gap: var(--s3); justify-content: flex-end; } .consent-btns .btn { margin: 0; }
.footer-links .link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 899px) { .consent { bottom: calc(76px + var(--sab)); } .consent-btns .btn { flex: 1; } }

.cover-preview { display: block; width: 100%; max-width: 420px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; margin: 0 0 12px; }

/* ---------------- tournament registration: the form beside the entry fee; the codes and the payment details after signing up ---------------- */
.reg-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.reg-card, .reg-side { padding: 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px; }
.reg-card label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.reg-card label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.reg-card .btn { align-self: flex-start; }
.reg-side h2, .reg-card h2 { font: 700 1.7rem var(--font-display); margin: 0; }
.reg-fee b { font: 700 2.6rem/1 var(--font-display); color: var(--accent-ink); }
.reg-codes { margin: 0; padding-left: 22px; } .reg-codes code { font-size: 1.5rem; letter-spacing: .08em; }
.reg-pay { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; } .reg-pay dt { color: var(--muted); } .reg-pay dd { margin: 0; overflow-wrap: anywhere; }
.reg-errors p { margin: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 899px) { .reg-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- entry fees on the organiser's team list and the paid tick on the start list */
.reg-counters { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.reg-counters span { padding: 6px 12px; border-radius: 999px; background: var(--v2-soft); font-weight: 600; }
.reg-badge { background: rgba(63, 182, 232, .16); color: #3FB6E8; }
.paid-form { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; }
.paid-form .pill { border: 0; cursor: pointer; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .8rem; }
.paid-on { background: rgba(80, 200, 120, .18); color: #5FD08A; } .paid-off { background: var(--v2-soft); color: var(--muted); }
.paid-tick { color: #5FD08A; font-weight: 700; }
.reg-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; align-items: start; }
.reg-form label { display: flex; flex-direction: column; gap: 6px; }
.reg-form .span-2, .reg-form .btn { grid-column: 1 / -1; } .reg-form .btn { justify-self: start; }
.reg-form label.check { flex-direction: row; align-items: center; }
@media (max-width: 899px) { .reg-form { grid-template-columns: minmax(0, 1fr); } .reg-pay { grid-template-columns: minmax(0, 1fr); } .reg-pay dd { margin-bottom: 8px; } }

/* ---------------- one navigation (2026-10-21): the same main menu everywhere; the phone's drawer lists only the extras ---------------- */
.topbar .tn-task { order: 0; }
@media (max-width: 899px) {
  .topbar nav { position: fixed; z-index: 1250; top: 0; bottom: 0; right: 0; width: min(84vw, 330px); flex-direction: column; align-items: stretch; gap: 2px;
    padding: calc(var(--sat) + 70px) 14px calc(var(--sab) + 20px); background: #081A20; transform: translateX(105%); transition: transform .22s ease; overflow-y: auto; display: flex !important; }
  body.side-open .topbar nav { transform: none; box-shadow: -20px 0 50px rgba(0, 0, 0, .45); }
  .topbar nav a { min-height: 50px; padding: 12px 16px; border-radius: 14px; font-size: 1.08rem; }
  .topbar nav .tn-drawer { display: inline-flex; }
  .topbar nav .tn-main, .topbar nav .tn-task, .topbar nav .tn-account { display: none; }       /* already in the bottom bar */
  .topbar nav .tn-gap { flex: none; height: 1px; margin: 10px 6px; background: rgba(255, 255, 255, .09); }
  .topbar nav .bell::after { content: attr(aria-label); }
  .bottom-nav a.primary .bn-task { position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: var(--fs-xs); color: var(--accent); }
}
@media (max-width: 899px) {
  /* a blurred top bar would make the drawer fixed to the bar instead of the screen: no blur while the menu is open */
  body.side-open .topbar { -webkit-backdrop-filter: none; backdrop-filter: none; z-index: 1300; }
  /* the closed drawer sits off screen: hidden, so Tab and screen readers skip it (it hides after its slide-out) */
  .topbar nav { visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; }
  body.side-open .topbar nav { visibility: visible; transition: transform .22s ease, visibility 0s; }
}
/* "Skip to content": the first stop for Tab, shown only while it has the focus */
.skip-link { position: absolute; left: var(--s2); top: -200px; z-index: 2000; padding: var(--s2) var(--s4); border-radius: 8px; background: var(--accent); color: #0E2A33; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: calc(var(--sat) + var(--s2)); }

/* ---- the tournaments list filters (also on the seasons and series pages) */
.comp-tabs { margin: var(--s2) 0 var(--s4); }
.sx-all { margin: -6px 0 16px; } .sx-all a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }

/* ---- shortcuts in a tournament: the organiser's 'Manage' tab, the TV screen link */
.status-tabs.player-tabs a.tab-manage { color: var(--accent-ink); margin-left: auto; }
.th-hero .th-tv { margin: 14px 0 0 !important; font-size: .9rem !important; } .th-hero .th-tv a { color: var(--muted); text-decoration: none; } .th-hero .th-tv a:hover { color: var(--accent); }

/* the tournament's logo above its name (it used to sit in the old side menu) */
.hero-logo { display: block; width: 56px; height: 56px; border-radius: 12px; background: #F3F7F8; padding: 4px; object-fit: contain; margin: 0 0 var(--s4); }

/* the guides: angler / organiser tabs; the organiser's panel screenshots sit under the text, full width */
.man-sec--wide { grid-template-columns: minmax(0, 1fr); }
.man-sec--wide .man-shots { flex-direction: column; }
.man-sec--wide .man-shots img { width: 100%; max-width: 980px; }

/* ---------------- usability pass 2026-12-03 ---------------- */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 52px; }
.pw-reveal { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 8px; color: var(--muted); cursor: pointer; }
.pw-reveal:hover, .pw-reveal[aria-pressed="true"] { color: var(--accent-ink); }
.sv-closed h2 { margin-top: 0; }
.report-actions .btn.danger { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.report-actions .btn.danger:hover { background: var(--red); color: #fff; }
@media (max-width: 899px) {
  /* the ranking and the organiser's queue start on the first screen: smaller headers on phones */
  .v2-hero { min-height: 0; }
  .v2-hero-txt { padding-top: var(--s6); }
  .v2-hero h1 { font-size: var(--fs-2xl); }
  body.adm-v2 .adm-name strong { font-size: var(--fs-xl); }
  body.adm-v2 .adm-name .t-logo.sm { width: 32px; height: 32px; }
  body.adm-v2 .admin-tabs.sub { margin: var(--s2) 0 var(--s4); }
  /* finger-sized controls (44 px) */
  .side-toggle, .refresh-btn { min-width: 44px; min-height: 44px; padding: 0; }
  .like { min-height: 44px; min-width: 52px; justify-content: center; }
  .bottom-nav a { font-size: .75rem; }
}

/* the ranking's embed code on Results & awards (it used the one-character .code-box style and showed as a tiny box) */
.embed-code { display: block; width: 100%; font: .85rem/1.4 ui-monospace, Consolas, monospace; padding: 8px 10px; border-radius: 8px; resize: vertical; }

/* Finger-sized targets (44 px) on touch screens and narrow windows; a mouse keeps the compact sizes. */
@media (pointer: coarse), (max-width: 700px) {
  body.adm-v2 .adm-back, body.adm-v2 .adm-public { display: inline-flex; align-items: center; min-height: 44px; }
  body.adm-v2 .at-actions .btn, body.adm-v2 .at-actions button { min-height: 44px; }
  .footer-links a, .footer-links .link-btn, .ld-foot__links a, .ld-foot .link-btn { display: inline-flex; align-items: center; min-height: 44px; }
}
/* The ranking: the whole row opens the team or angler (a finger easily misses a one-line name); the heart keeps its own tap.
   Not while the organiser reveals the places one click at a time, and not on the TV screen. */
body:not(.tv) .leaderboard-list:not([data-reveal="1"]) > .lb-row a.lb-name::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
body:not(.tv) .leaderboard-list > .lb-row .like-form { position: relative; z-index: 1; }
/* the podium cards lift the name above the photo with z-index alone (a flex item needs no position), so the link spans the card */
body:not(.tv):not(.ceremony) .leaderboard-list:not([data-reveal="1"]) > .lb-row:nth-child(n) .lb-who { position: static; }
