@font-face { font-family: Manrope; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/assets/manrope-regular.ttf') format('truetype'); }
@font-face { font-family: Manrope; font-style: normal; font-weight: 700 800; font-display: swap; src: url('/assets/manrope-bold.ttf') format('truetype'); }
@font-face { font-family: Unbounded; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/unbounded-bold.ttf') format('truetype'); }
:root {
  --blue: #78d9f1;
  --blue-dark: #9de5f6;
  --ink: #eff5f4;
  --muted: #a8bcc8;
  --paper: #081c2b;
  --line: #294555;
  --panel: #102b3d;
  --display: 'Unbounded', Arial, sans-serif;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #b8acf0; outline-offset: 3px; }
svg { display: block; width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: 27px; line-height: 1.25; font-weight: 650; letter-spacing: -.45px; }
h2 { font-size: 20px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
p { line-height: 1.5; }
small { font-size: 12px; }
.app-shell { max-width: 1120px; margin: auto; min-height: 100vh; background: var(--paper); }
main { padding: 0 32px; min-width: 0; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 650; letter-spacing: -.4px; white-space: nowrap; }
.brand-icon { color: var(--blue); }
.brand-icon svg { width: 27px; height: 27px; }
.header-right { display: flex; align-items: center; gap: 30px; }
.city { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #b4c7d1; }
.city svg { width: 16px; height: 16px; }
.profile-button { display: flex; align-items: center; gap: 9px; font-size: 13px; padding: 0; max-width: 180px; }
#profile-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desktop-nav { display: flex; align-items: center; gap: 30px; border-bottom: 1px solid var(--line); }
.nav-item { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; padding: 14px 0 15px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.nav-item svg { width: 18px; height: 18px; }
.nav-item.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 550; }
.nav-item:hover { color: var(--blue); }
.connection-notice { display: flex; align-items: center; gap: 7px; font-size: 11px; line-height: 1.45; color: #a8bcc8; padding: 15px 0 0; }
.connection-notice svg { width: 14px; height: 14px; flex-shrink: 0; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 28px 0 23px; }
.page-heading p { font-size: 14px; color: var(--muted); margin-top: 7px; }
.result-count { font-size: 13px; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 11px 17px; border-radius: 8px; font-size: 13px; font-weight: 500; line-height: 1.3; background: var(--blue); color: var(--ink); white-space: nowrap; }
.button:hover { background: var(--blue-dark); }
.button svg { width: 17px; height: 17px; }
.button.light { background: #173c50; color: #9de5f6; }
.button.light:hover { background: #204b60; }
.button.outline { background: var(--panel); border: 1px solid #395666; color: #d0dee5; }
.button.danger { background: #3b252e; color: #ffb4ad; }
.button.small { min-height: 38px; padding: 9px 14px; font-size: 12px; }
.button.full { width: 100%; }
.icon-button { height: 34px; width: 34px; display: grid; place-items: center; border-radius: 50%; color: #adbec9; }
.icon-button:hover { background: #173345; }
.text-link { color: var(--blue); font-size: 13px; font-weight: 500; padding: 8px 0; }
.filter-bar { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; }
.search { flex: 1; position: relative; }
.search svg { position: absolute; left: 12px; top: 13px; width: 18px; height: 18px; color: #a8bcc8; }
.search input { width: 100%; height: 44px; padding: 0 13px 0 39px; background: #081c2b; border: 1px solid transparent; border-radius: 8px; font-size: 13px; }
.search input:focus { background: var(--panel); border-color: #426779; }
.filter-select { border: 1px solid #395666; border-radius: 8px; padding: 11px 30px 11px 12px; color: #d0dee5; background: var(--panel); font-size: 13px; min-height: 44px; max-width: 220px; }
.match-list, .tournament-grid { display: grid; border-top: 1px solid var(--line); }
.match-card { border-bottom: 1px solid var(--line); padding: 23px 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 15px; }
.match-card h3 { font-size: 17px; line-height: 1.4; margin: 9px 0 11px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #b8cbd5; background: #173345; border-radius: 5px; padding: 4px 7px; font-weight: 400; }
.match-meta { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.match-meta span { display: flex; align-items: center; gap: 5px; }
.match-meta svg { width: 14px; height: 14px; }
.match-action { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 17px; }
.price { color: var(--muted); font-size: 11px; text-align: right; line-height: 1.6; }
.price b { color: var(--ink); font-size: 17px; font-weight: 600; }
.avatar { width: 31px; height: 31px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 11px; font-weight: 500; background: #244657; color: #cedfe8; border: 2px solid var(--paper); flex-shrink: 0; }
.avatar.me { background: #1c485d; color: var(--blue); }
.avatar svg { width: 18px; height: 18px; }
.avatar-row { display: flex; align-items: center; margin-top: 15px; }
.avatar-row .avatar + .avatar { margin-left: -5px; }
.avatar-count { color: var(--muted); font-size: 11px; margin-left: 10px; }
.tournament-card { border-bottom: 1px solid var(--line); padding: 23px 0; }
.tournament-top { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 13px; align-items: center; }
.tournament-top h2 { font-size: 18px; line-height: 1.4; }
.tournament-format { color: var(--muted); font-size: 12px; margin-top: 10px; }
.tournament-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; }
.tournament-bottom > div > span { display: block; margin-top: 8px; font-size: 11px; color: var(--muted); }
.section-title { display: flex; justify-content: space-between; align-items: center; margin: 0 0 15px; }
.section-title h2 { font-size: 18px; }
.section-title span { font-size: 12px; color: var(--muted); }
.profile-header { display: flex; align-items: center; gap: 12px; padding: 18px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 25px; }
.profile-header .avatar { width: 45px; height: 45px; font-size: 16px; }
.profile-header h2 { font-size: 18px; }
.profile-header p { font-size: 12px; margin-top: 6px; color: var(--muted); }
.profile-header button { margin-left: auto; }
.profile-sections { display: grid; gap: 30px; }
.record { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.record h3 { font-size: 15px; }
.record p { margin-top: 7px; font-size: 12px; color: var(--muted); }
.record small { display: block; margin-top: 7px; color: #a8bcc8; font-size: 11px; }
.empty { padding: 35px 20px; text-align: center; background: #102b3d; border-radius: 8px; }
.empty h3 { font-size: 15px; }
.empty p { font-size: 13px; color: var(--muted); margin: 9px auto 17px; max-width: 360px; }
footer { display: flex; justify-content: space-between; margin: 35px 0 0; padding: 22px 0; color: #91a8b7; font-size: 11px; }
.mobile-nav { display: none; }
dialog { border: 0; padding: 0; border-radius: 13px; width: min(460px,calc(100% - 24px)); max-height: 90dvh; color: var(--ink); background: var(--panel); box-shadow: 0 12px 50px #0002; }
dialog::backdrop { background: #0006; }
.modal-inner { padding: 25px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.modal-head h2 { font-size: 21px; font-weight: 600; }
.modal-head .icon-button { flex-shrink: 0; }
.modal-description { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 20px; }
.form-grid { display: grid; gap: 15px; }
.field { display: grid; gap: 7px; font-size: 12px; font-weight: 500; }
.field input, .field select, .field textarea { min-width: 0; width: 100%; padding: 11px; min-height: 44px; color: var(--ink); border: 1px solid #395666; border-radius: 7px; background: var(--panel); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-hint { font-size: 11px; line-height: 1.55; color: var(--muted); }
.modal-slots { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.modal-slot { border: 1px solid #395666; border-radius: 6px; min-height: 37px; font-size: 12px; background: var(--panel); color: #c6d9e3; }
.modal-slot.selected { color: var(--ink); border-color: var(--blue); background: var(--blue); }
.modal-slot:disabled { text-decoration: line-through; color: #8298a5; background: #102534; }
.summary { display: flex; align-items: center; justify-content: space-between; background: #081c2b; padding: 15px; border-radius: 8px; gap: 12px; font-size: 12px; }
.summary b { font-size: 19px; font-weight: 600; }
.form-notice { background: #173345; color: #b5c7d2; border-radius: 7px; padding: 11px; font-size: 11px; line-height: 1.55; }
.form-error { font-size: 12px; line-height: 1.5; color: #ffb4ad; }
.form-error:empty { display: none; }
.confirmation { text-align: center; padding: 5px 0; }
.confirmation-mark { height: 49px; width: 49px; border-radius: 50%; background: #163f3c; color: #96d9ba; display: grid; place-items: center; margin: 0 auto 18px; }
.confirmation h2 { font-size: 21px; margin-bottom: 12px; }
.confirmation p { color: var(--muted); font-size: 13px; }
.confirmation .summary { margin: 20px 0; text-align: left; }
.members { font-size: 13px; line-height: 2; margin-top: 18px; color: #b5c7d2; }
.bracket-round { margin-top: 20px; }
.bracket-round h3 { font-size: 14px; margin-bottom: 10px; }
.bracket-match { border: 1px solid var(--line); border-radius: 7px; padding: 10px; margin-bottom: 10px; }
.bracket-player { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; padding: 7px; }
.bracket-player.winner { font-weight: 600; color: var(--blue); }
.score-form { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.score-form input { width: 51px; min-height: 36px; border: 1px solid #395666; border-radius: 6px; padding: 6px; }
.score-form .button { margin-left: auto; }
#toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 28px); padding: 12px 18px; border-radius: 8px; background: #d1eff4; color: var(--ink); font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 10; }
#toast.visible { opacity: 1; }
@media(max-width:700px) {
  :root { background: var(--panel); }
  main { padding: 0 18px; }
  .topbar { height: 64px; padding-top: var(--tg-content-safe-area-inset-top,0px); }
  .brand { font-size: 19px; gap: 8px; }
  .brand-icon svg { width: 25px; height: 25px; }
  .header-right { gap: 14px; }
  .city { font-size: 12px; }
  .city svg { width: 14px; height: 14px; }
  #profile-name { display: none; }
  .profile-button { width: 32px; }
  .profile-button .avatar { height: 32px; width: 32px; }
  .desktop-nav { display: none; }
  .connection-notice { padding-top: 0; padding-bottom: 13px; font-size: 10px; gap: 6px; border-bottom: 1px solid var(--line); }
  .connection-notice svg { width: 13px; height: 13px; }
  .page-heading { margin: 22px 0 20px; gap: 10px; }
  .page-heading h1 { font-size: 25px; }
  .page-heading p { font-size: 12px; margin-top: 6px; }
  .page-heading > .button { font-size: 12px; padding: 11px 12px; min-height: 40px; }
  .page-heading > .button svg { width: 15px; height: 15px; }
  .result-count { font-size: 12px; }
  .filter-bar { gap: 8px; flex-wrap: wrap; margin-bottom: 19px; }
  .search { min-width: 55%; }
  .search input { font-size: 12px; }
  .filter-select { min-width: 0; max-width: 45%; padding-right: 12px; font-size: 12px; }
  .filter-bar .field-hint { font-size: 10px; }
  .filter-bar .text-link { font-size: 11px; }
  .match-card { padding: 20px 0; gap: 10px; }
  .match-card h3 { font-size: 16px; }
  .match-meta { font-size: 11px; gap: 8px; }
  .match-action { max-width: 112px; gap: 15px; }
  .match-action .button { padding: 10px 11px; font-size: 11px; }
  .price { font-size: 10px; }
  .price b { font-size: 16px; }
  .avatar { width: 28px; height: 28px; font-size: 10px; }
  .avatar-count { font-size: 10px; margin-left: 8px; }
  .tournament-top { align-items: flex-start; gap: 10px; }
  .tournament-top h2 { font-size: 17px; }
  .tournament-top .badge { font-size: 9px; white-space: nowrap; margin-top: 3px; }
  .tournament-format { font-size: 11px; }
  .tournament-bottom > div > span { font-size: 10px; }
  .tournament-bottom .button { font-size: 11px; }
  .profile-header { padding: 8px 0 22px; }
  .profile-header h2 { font-size: 16px; }
  .profile-header p { font-size: 11px; }
  .profile-header .button { font-size: 11px; padding: 9px 11px; }
  .section-title h2 { font-size: 17px; }
  .record h3 { font-size: 14px; }
  .record p { font-size: 11px; }
  .record .button { font-size: 11px; }
  .mobile-nav { display: flex; align-items: center; justify-content: space-around; position: fixed; bottom: 0; left: 0; right: 0; background: var(--panel); border-top: 1px solid var(--line); padding: 7px 0 calc(7px + env(safe-area-inset-bottom)); z-index: 5; }
  .mobile-nav .nav-item { display: grid; justify-items: center; gap: 5px; border: 0; margin: 0; padding: 6px 10px; font-size: 10px; min-width: 70px; }
  .mobile-nav .nav-item svg { width: 22px; height: 22px; }
  .mobile-nav .nav-item.active { color: var(--blue); }
  footer { font-size: 10px; margin-top: 20px; margin-bottom: 85px; }
  #toast { bottom: 83px; text-align: center; width: max-content; }
  .modal-inner { padding: 22px 18px; }
  .modal-head h2 { font-size: 20px; }
}
@media(max-width:370px) {
  main { padding: 0 14px; }
  .match-card { grid-template-columns: 1fr; }
  .match-action { max-width: none; flex-direction: row; align-items: center; justify-content: space-between; }
  .price { text-align: left; }
}
@media(prefers-reduced-motion:reduce) { * { transition: none!important; scroll-behavior: auto!important; } }

/* Games are the primary surface: all joining decisions are visible in the list. */
.game-filters { display: grid; gap: 12px; }
.game-filters .search { min-width: 0; }
.game-filters .filter-bar { margin: 0; }
.game-results { font-size: 12px; color: var(--muted); padding: 19px 0 13px; }
.game-card { display: block; padding: 24px 0; }
.game-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.game-card-heading h2 { font-size: 18px; line-height: 1.4; }
.game-card-heading .badge { flex-shrink: 0; margin-top: 3px; }
.game-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 30px; margin: 19px 0 0; }
.game-facts > div { min-width: 0; }
.game-facts dt { display: flex; gap: 5px; align-items: center; color: var(--muted); font-size: 11px; }
.game-facts dt svg { width: 13px; height: 13px; }
.game-facts dd { margin: 6px 0 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.game-facts dd small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.game-description { font-size: 13px; color: #c2d1da; line-height: 1.6; margin-top: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.game-address { font-size: 11px; color: var(--muted); margin-top: 15px; line-height: 1.6; }
.game-venue-notes { font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 15px; }
.player-names { font-size: 11px; color: var(--muted); margin: 7px 0 0; line-height: 1.5; overflow-wrap: anywhere; }
.game-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 19px; }
.game-card-footer .price { text-align: left; }
.game-card-footer .price small { display: block; color: #a8bcc8; font-size: 10px; margin-top: 3px; line-height: 1.45; max-width: 240px; }
.game-detail-section { margin-top: 22px; }
.game-detail-section h3 { font-size: 14px; margin-bottom: 10px; }
.game-detail-section .members { margin-top: 10px; }
.game-detail-section .field-hint { margin-top: 9px; }
.field textarea { resize: vertical; min-height: 85px; line-height: 1.5; }
@media(max-width:700px) {
  .game-card { padding: 21px 0; }
  .game-card-heading { gap: 10px; }
  .game-card-heading h2 { font-size: 17px; }
  .game-card-heading .badge { font-size: 9px; }
  .game-facts { gap: 15px 16px; margin-top: 18px; }
  .game-facts dd { font-size: 13px; }
  .game-facts dd small { font-size: 10px; }
  .game-facts dt { font-size: 10px; }
  .game-card-footer .price b { font-size: 16px; }
  .game-card-footer .price small { font-size: 9px; max-width: 190px; }
  .game-card-footer .button { font-size: 11px; padding: 10px 12px; }
  .game-description { font-size: 12px; }
  .game-filters .filter-select { flex: 1; max-width: none; }
}
@media(max-width:390px) {
  .game-card-heading { flex-wrap: wrap; gap: 6px; }
  .game-card-heading .badge { margin: 0; }
  .game-card-footer { gap: 10px; align-items: flex-end; }
  .game-card-footer .price small { max-width: 155px; }
  .game-card-footer .button { white-space: normal; max-width: 135px; }
}

/* Player profiles and the club's own Elo standings. */
.player-link { color: #8edcf3; padding: 0; font: inherit; text-align: left; line-height: inherit; }
.player-link:hover { text-decoration: underline; }
.avatar[data-action] { padding: 0; }
.avatar[data-action]:hover { border-color: #78d9f1; }
.segmented { display: inline-flex; gap: 3px; padding: 3px; background: #102b3d; border-radius: 8px; }
.segmented button { min-height: 36px; padding: 8px 17px; font-size: 12px; color: #a8bcc8; border-radius: 6px; }
.segmented button.active { background: var(--panel); color: #eff5f4; box-shadow: 0 1px 3px #0000000d; font-weight: 500; }
.game-period { margin-bottom: 18px; }
.rating-formats { margin: 20px 0 0; }
.people-search { display: block; }
.leaderboard-label { display: flex; justify-content: space-between; padding: 23px 0 12px; font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line); }
.player-row { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 80px; border-bottom: 1px solid var(--line); text-align: left; padding: 16px 0; }
.player-row:hover { background: #102b3d; }
.player-rank { width: 22px; text-align: center; color: #a8bcc8; font-size: 13px; flex-shrink: 0; }
.player-row .avatar { width: 39px; height: 39px; font-size: 14px; }
.player-row-name { flex: 1; min-width: 0; }
.player-row b { font-size: 14px; font-weight: 550; }
.player-row small { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; line-height: 1.4; }
.player-row-rating { text-align: right; flex-shrink: 0; }
.player-row-rating b { font-size: 19px; font-weight: 600; }
.player-row-rating small { font-size: 10px; }
.rating-footnote { padding: 17px 0; }
.player-overview { padding: 4px 0 23px; border-bottom: 1px solid var(--line); margin-bottom: 25px; }
.player-profile-heading { display: flex; align-items: center; gap: 13px; }
.profile-avatar { width: 54px; height: 54px; font-size: 21px; }
.player-profile-heading > div { flex: 1; min-width: 0; }
.player-profile-heading h2 { font-size: 21px; overflow-wrap: anywhere; }
.player-profile-heading p { font-size: 11px; color: var(--muted); margin-top: 6px; }
.player-profile-heading .button { font-size: 11px; }
.player-bio { margin-top: 18px; color: #c0d0db; font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.player-preferences { font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 10px; }
.player-rating-line { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 22px; }
.rating-large { display: block; font-size: 34px; font-weight: 600; line-height: 1.15; letter-spacing: -.6px; }
.rating-caption { display: block; color: var(--muted); font-size: 11px; margin-top: 7px; }
.player-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; padding: 18px 0; margin: 17px 0 0; border-top: 1px solid var(--line); }
.player-stats dt { font-size: 11px; color: var(--muted); }
.player-stats dd { font-size: 21px; font-weight: 550; margin: 7px 0 0; }
.player-overview > .text-link { padding-bottom: 0; font-size: 12px; }
.player-history { margin-bottom: 28px; }
.history-row { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 15px; text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); }
.history-row > span:first-child { min-width: 0; }
.history-row b { font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.history-row small { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; line-height: 1.4; }
.rating-change { font-size: 17px; font-weight: 550; text-align: right; flex-shrink: 0; }
.rating-change.positive { color: #9ce0bf; }
.rating-change small { font-weight: 400; font-size: 10px; }
.entries-heading { margin: 30px 0 22px; }
.entries-heading h2 { font-size: 21px; }
.rating-rules p { font-size: 13px; color: #c0d0db; line-height: 1.65; }
.rating-rules ul { padding-left: 20px; font-size: 13px; line-height: 1.65; color: #c0d0db; }
.rating-rules li { margin-bottom: 12px; }
.result-scoreboard { border-top: 1px solid var(--line); margin: 18px 0; }
.result-team { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.result-team > div { font-size: 14px; line-height: 1.8; }
.result-team > b { font-size: 27px; font-weight: 550; }
.result-section-title { font-size: 14px; margin: 22px 0 9px; }
.rating-audit { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.rating-audit small { font-size: 10px; color: var(--muted); }
.confirmation-list { margin-top: 15px; }
.confirmation-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.confirmation-list small { font-size: 11px; color: var(--muted); }
@media(max-width:700px) {
  .desktop-nav { gap: 22px; }
  .player-row { gap: 10px; }
  .player-rank { width: 18px; font-size: 12px; }
  .player-row .avatar { width: 34px; height: 34px; font-size: 12px; }
  .player-row-name b { font-size: 13px; }
  .player-row-name small { font-size: 10px; }
  .player-row-rating b { font-size: 18px; }
  .player-row-rating small { font-size: 9px; }
  .player-profile-heading h2 { font-size: 19px; }
  .profile-avatar { width: 45px; height: 45px; font-size: 18px; }
  .player-profile-heading { gap: 10px; }
  .player-profile-heading .button { padding: 9px 11px; font-size: 10px; }
  .player-profile-heading p { font-size: 10px; }
  .player-stats dd { font-size: 20px; }
  .player-rating-line .badge { font-size: 10px; }
  .player-bio { font-size: 12px; }
  .history-row b { font-size: 12px; }
}

[hidden] { display: none !important; }

/* Club identity: strong sports typography, calm surfaces and one original illustration. */
body { background: var(--paper); }
main { padding: 0 38px; }
h1, .brand, .welcome-title { font-family: var(--display); font-weight: 700; }
h1 { font-size: 27px; letter-spacing: -1px; }
h2 { font-weight: 700; }
.topbar { height: 94px; }
.brand { font-size: 21px; letter-spacing: -.8px; gap: 12px; }
.brand-icon { display: grid; place-items: center; height: 40px; width: 40px; border-radius: 50%; background: var(--blue); color: var(--paper); }
.brand-icon svg { width: 26px; height: 26px; }
.profile-button { background: #153246; border-radius: 24px; padding: 7px 15px 7px 7px; }
.desktop-nav { gap: 8px; padding: 8px; background: #102b3d; border: 1px solid var(--line); border-radius: 30px; width: fit-content; }
.desktop-nav .nav-item { border: 0; border-radius: 24px; padding: 11px 23px; margin: 0; font-weight: 600; }
.desktop-nav .nav-item.active { background: var(--blue); color: #081c2b; }
.welcome { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 236px; overflow: hidden; margin-top: 28px; padding: 34px 38px; border-radius: 24px; background: #15364a; }
.welcome-copy { position: relative; z-index: 1; width: 58%; }
.welcome-title { font-size: clamp(27px,3.5vw,38px); line-height: 1.23; letter-spacing: -1.5px; }
.welcome-copy p { font-size: 13px; color: #c2d6e2; max-width: 320px; margin-top: 16px; line-height: 1.7; }
.welcome-art { position: absolute; width: 44%; height: 100%; right: 0; top: 0; color: #b8acf0; }
.welcome-art svg { display: block; width: 100%; height: 100%; stroke: none; }
.page-heading { margin: 34px 0 25px; }
.page-heading p { font-size: 13px; }
.button { border-radius: 24px; background: var(--blue); color: #081c2b; font-weight: 800; padding: 13px 22px; min-height: 46px; }
.button:hover { background: #9de5f6; }
.button.light { background: #25485b; color: #d8f4fb; }
.button.light:hover { background: #305a70; }
.button.outline { background: transparent; color: var(--ink); }
.button.danger { background: #3b252e; color: #ffb4ad; }
.button.small { border-radius: 24px; }
.text-link, .player-link { color: #a0dff1; }
.segmented { background: #102b3d; border: 1px solid var(--line); border-radius: 24px; padding: 4px; }
.segmented button { border-radius: 20px; min-height: 35px; color: #b4c7d1; }
.segmented button.active { background: #d6e5e9; color: #102b3d; box-shadow: none; font-weight: 700; }
.search input { background: #102b3d; border: 1px solid var(--line); border-radius: 12px; height: 48px; font-size: 13px; color: var(--ink); }
.search input::placeholder { color: #a8bcc8; opacity: 1; }
.search svg { top: 15px; }
.filter-select { background: #102b3d; color: #d2e1e9; border: 1px solid var(--line); border-radius: 24px; min-height: 42px; padding: 10px 16px; }
.empty { position: relative; border: 1px solid var(--line); background: #102b3d; border-radius: 20px; padding: 40px 24px; }
.empty::before { content: ''; display: block; width: 38px; height: 48px; margin: 0 auto 20px; border: 2px solid #91afc0; border-radius: 5px; background: linear-gradient(#91afc0,#91afc0) center/100% 2px no-repeat, linear-gradient(#91afc0,#91afc0) center/2px 48% no-repeat; opacity: .8; transform: rotate(-9deg); }
.empty h3 { font-size: 17px; font-weight: 700; }
.empty p { color: #b6c9d4; font-size: 13px; }
.game-card, .tournament-card { background: #102b3d; border: 1px solid var(--line); border-radius: 20px; padding: 25px; margin-bottom: 16px; }
.game-card-heading h2, .tournament-top h2 { font-size: 18px; font-weight: 800; }
.badge { background: #d7cffa; color: #302744; border-radius: 20px; font-weight: 700; padding: 6px 10px; }
.game-card-heading .badge { background: #c6e5db; color: #183d34; }
.game-facts dd { color: #e0eaf0; }
.game-card-footer { border-top: 1px solid var(--line); padding-top: 18px; }
.avatar { background: #284b5f; color: #e1eaf0; border-color: #102b3d; }
.avatar.me { background: #c5b8f0; color: #2c2544; }
.leaderboard-label { color: #b6c9d4; }
.player-row { padding: 18px 16px; background: #102b3d; }
.player-row:first-child { border-radius: 16px 16px 0 0; }
.player-row:last-child { border-radius: 0 0 16px 16px; }
.player-row:only-child { border-radius: 16px; }
.player-row:hover { background: #183b50; }
.player-overview { background: #102b3d; border: 1px solid var(--line); border-radius: 20px; padding: 25px; }
.rating-large { font-family: var(--display); font-size: 34px; color: #d0c3f5; }
.player-stats dd { color: #eff5f4; }
.history-row:hover { background: #102b3d; }
footer { color: #a0b6c4; border-top: 1px solid var(--line); margin-top: 36px; font-size: 11px; }
dialog { background: #102b3d; border: 1px solid #395666; border-radius: 24px; box-shadow: 0 22px 90px #0006; }
dialog::backdrop { background: #020c15bb; }
.modal-inner { padding: 28px; }
.modal-head h2 { font-family: var(--display); font-size: 18px; line-height: 1.4; }
.modal-head .icon-button { background: #25485b; color: #e1eaf0; }
.field input, .field select, .field textarea { background: #081c2b; border-color: #395666; border-radius: 12px; font-size: 14px; }
.field input::placeholder, .field textarea::placeholder { color: #93adbd; }
.summary, .form-notice { background: #193b4f; border-radius: 12px; }
.summary b { color: #d2e7ef; }
.bracket-match { background: #132f43; border-radius: 12px; }
.score-form input { background: #081c2b; color: var(--ink); border-color: #395666; }
#toast { color: #081c2b; background: #d1eff4; font-weight: 600; }
@media(max-width:700px) {
  :root { background: #081c2b; }
  main { padding: 0 20px; }
  .topbar { height: 76px; }
  .brand { font-size: 17px; gap: 9px; }
  .brand-icon { width: 33px; height: 33px; }
  .brand-icon svg { width: 22px; height: 22px; }
  .header-right { gap: 12px; }
  .profile-button { padding: 0; width: 32px; background: none; }
  .city { font-size: 11px; }
  .welcome { margin-top: 6px; min-height: 190px; padding: 25px 22px; border-radius: 20px; }
  .welcome-copy { width: 74%; }
  .welcome-title { font-size: 26px; letter-spacing: -1px; line-height: 1.3; }
  .welcome-copy p { font-size: 11px; max-width: 195px; margin-top: 12px; }
  .welcome-art { width: 51%; right: -52px; opacity: .6; }
  .page-heading { margin: 28px 0 21px; align-items: center; }
  .page-heading h1 { font-size: 23px; }
  .page-heading p { font-size: 11px; line-height: 1.6; max-width: 195px; }
  .page-heading > .button { font-size: 11px; padding: 12px 14px; }
  .search input, .field input, .field select, .field textarea { font-size: 16px; }
  .search input { font-size: 13px; }
  .empty { padding: 32px 18px; }
  .empty h3 { font-size: 16px; }
  .empty p { font-size: 12px; }
  .mobile-nav { background: #0b2232; border-color: #294555; padding-top: 9px; }
  .mobile-nav .nav-item { min-width: 68px; color: #adc1ce; border-radius: 12px; padding: 7px 10px; gap: 6px; font-weight: 600; }
  .mobile-nav .nav-item.active { background: #1c4358; color: #91e0f3; }
  .mobile-nav .nav-item svg { width: 21px; height: 21px; }
  .game-card, .tournament-card { padding: 20px 17px; border-radius: 18px; }
  .game-card-heading h2, .tournament-top h2 { font-size: 16px; }
  .game-card-heading .badge { font-size: 9px; }
  .game-card-footer { align-items: center; }
  .game-card-footer .price b { font-size: 15px; }
  .player-overview { padding: 20px 17px; }
  .player-profile-heading h2 { font-size: 17px; }
  .player-row { padding: 17px 12px; }
  .player-rating-line { gap: 8px; }
  .player-rating-line .badge { font-size: 9px; }
  .rating-large { font-size: 28px; }
  .modal-inner { padding: 24px 20px; }
  .modal-head h2 { font-size: 16px; }
  footer { font-size: 10px; margin-bottom: 100px; gap: 15px; line-height: 1.7; }
}
@media(max-width:370px) {
  main { padding: 0 15px; }
  .brand { font-size: 15px; }
  .welcome-title { font-size: 23px; }
  .welcome-art { right: -63px; }
  .page-heading h1 { font-size: 21px; }
  .page-heading > .button { padding: 11px 12px; font-size: 10px; }
}
