/* Self-hosted fonts (no requests to Google). Inter & Oswald, SIL Open Font License. */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations'), url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations'), url('fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Oswald'; font-style: normal; font-display: swap; font-weight: 200 700;
  src: url('fonts/oswald-latin-ext-wght-normal.woff2') format('woff2-variations'), url('fonts/oswald-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Oswald'; font-style: normal; font-display: swap; font-weight: 200 700;
  src: url('fonts/oswald-latin-wght-normal.woff2') format('woff2-variations'), url('fonts/oswald-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: light;
  --brand:   #000000;          /* header, nav, footer */
  --brand-line: rgba(255,255,255,0.14);
  --primary-bg: #111111;       /* primary buttons, selected states */
  --primary-bg-hover: #333333;
  --primary-fg: #FFFFFF;
  --accent:  #111111;
  --white:   #FFFFFF;
  --cream:   #FFFFFF;
  --cream2:  #F4F4F4;
  --surface-soft: #F7F7F7;
  --muted:   #666666;
  --hint:    #AAA49A;
  --border:  #DEDEDE;
  --green:   #1A6B3A;
  --red:     #B91C1C;
  --bg:      #FFFFFF;
  --text:    #111111;
  --warn-bg: #FFFBEB;
  --warn-border: #D97706;
  --success-bg: #F0FDF4;
  --success-border: #86EFAC;
  --modal-backdrop: rgba(20,30,50,.45);
  --shadow: 0 8px 24px rgba(0,0,0,0.25);
  --radius:  10px;
  --tint-blue-bg:   #EDEDED;
  --tint-teal-bg:   #E3F6F5;
  --tint-green-bg:  #E7F7ED;
  --tint-purple-bg: #F1ECFB;
  --tint-amber-bg:  #FFF3E0;
  --win: #1A6B3A;
  --loss: #B91C1C;
}

[data-theme="dark"] {
  color-scheme: dark;
  --brand-line: rgba(255,255,255,0.16);
  --primary-bg: #F2F2F2;
  --primary-bg-hover: #D4D4D4;
  --primary-fg: #0A0A0A;
  --accent:  #F2F2F2;
  --white:   #1A1A1A;
  --cream:   #1A1A1A;
  --cream2:  #242424;
  --surface-soft: #1E1E1E;
  --muted:   #A3A3A3;
  --hint:    #6B6B6B;
  --border:  #333333;
  --bg:      #0E0E0E;
  --text:    #F2F2F2;
  --warn-bg: #3A2E14;
  --success-bg: #163524;
  --modal-backdrop: rgba(0,0,0,.65);
  --shadow: 0 8px 24px rgba(0,0,0,0.5);
  --tint-blue-bg:   #2A2A2A;
  --tint-teal-bg:   #16312F;
  --tint-green-bg:  #163524;
  --tint-purple-bg: #2A2140;
  --tint-amber-bg:  #3A2E14;
  --win: #4ADE80;
  --loss: #F87171;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex; flex-direction: column;
}
body > main, body > .wrap { flex: 1; width: 100%; }

a { color: var(--accent); }

/* ── TOP BAR ── */
.site-header { background: var(--brand); padding: 14px 20px; text-align: center; position: relative; }
.site-header > a { display: inline-block; line-height: 0; }
.site-header-logo { height: 84px; width: auto; display: inline-block; }
.site-header-actions {
  position: absolute; top: 50%; right: 20px; transform: translateY(-50%);
  display: flex; align-items: center; gap: 0;
}
.site-header-actions .lang-flag {
  height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.55); transition: background-color 0.15s, opacity 0.15s;
  font-size: 22px; line-height: 1; padding: 0 12px; opacity: 0.6; text-decoration: none;
  border-radius: 999px 0 0 999px;
}
.site-header-actions .lang-flag + .lang-flag { border-radius: 0 999px 999px 0; border-left-width: 0; }
.site-header-actions .lang-flag.active { opacity: 1; background: #fff; }
.site-header-actions .lang-flag:not(.active):hover { opacity: 1; background-color: rgba(255,255,255,0.12); }

/* ── SITE NAV ── */
.site-nav {
  background: var(--brand); padding: 12px 16px; display: flex; gap: 22px;
  justify-content: center; align-items: center; flex-wrap: wrap;
  border-top: 1px solid var(--brand-line);
}
.site-nav a, .site-nav button.linklike {
  color: rgba(255,255,255,0.75); text-decoration: none; font-family: 'Oswald', sans-serif;
  font-size: 0.74rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 600;
  padding: 0 0 3px; border-bottom: 2px solid transparent; transition: all 0.15s;
  background: none; border-radius: 0; cursor: pointer;
}
.site-nav button.linklike { display: inline; line-height: normal; }
.site-nav a:hover, .site-nav button.linklike:hover { color: #fff; }
.site-nav a.active { color: #fff; border-bottom-color: #fff; }
.site-nav form { display: inline; }
.nav-badge {
  display: inline-block; min-width: 17px; padding: 1px 5px; margin-left: 3px; border-radius: 999px;
  background: #fff; color: #000; font-size: 0.66rem; text-align: center; line-height: 1.4;
}

/* ── STEPS BANNER ── */
.steps-bar {
  background: var(--brand); padding: 14px 20px; display: flex; justify-content: center;
  align-items: center; gap: 0; flex-wrap: wrap; border-top: 1px solid var(--brand-line);
}
.step-item {
  display: flex; align-items: center; gap: 8px; padding: 0 16px; font-size: 0.78rem;
  color: rgba(255,255,255,0.75); font-family: 'Oswald', sans-serif; letter-spacing: 1px; text-transform: uppercase;
}
.step-num {
  width: 22px; height: 22px; border: 1.5px solid rgba(255,255,255,0.5); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 600;
  color: white; flex-shrink: 0;
}
.step-divider { color: rgba(255,255,255,0.35); font-size: 0.8rem; padding: 0 4px; }

/* ── MAIN LAYOUT ── */
main, .wrap {
  max-width: 560px; margin: 0 auto; padding: 16px 16px 60px;
  display: flex; flex-direction: column; gap: 14px;
}
@media (min-width: 860px) { main, .wrap { max-width: 960px; } }
.wrap-narrow { max-width: 440px !important; }

/* ── HERO ── */
.hero { text-align: center; padding: 30px 8px 6px; }
.hero h1 {
  font-family: 'Oswald', sans-serif; font-size: 2rem; letter-spacing: 1px; text-transform: uppercase;
  line-height: 1.15; color: var(--text); margin-bottom: 12px;
}
.hero p { color: var(--muted); max-width: 600px; margin: 0 auto 22px; line-height: 1.6; }
.page-title {
  font-family: 'Oswald', sans-serif; font-size: 1.35rem; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text); margin: 10px 0 2px;
}
.page-sub { color: var(--muted); font-size: 0.88rem; line-height: 1.55; }

/* ── TILES ── */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tile {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text);
  background: var(--cream2); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 18px;
  transition: border-color .15s, transform .15s;
}
.tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile .tile-ic { width: 44px; height: 44px; border-radius: 12px; display:flex; align-items:center; justify-content:center; }
.tile .tile-ic svg { width: 26px; height: 26px; }
.tile strong { font-family: 'Oswald', sans-serif; letter-spacing: .5px; text-transform: uppercase; font-size: 0.95rem; }
.tile span { color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.ic-blue { background: var(--tint-blue-bg); color: var(--accent); }
.ic-teal { background: var(--tint-teal-bg); color: #0F766E; }
.ic-green { background: var(--tint-green-bg); color: var(--green); }
.ic-purple { background: var(--tint-purple-bg); color: #6D28D9; }
.ic-amber { background: var(--tint-amber-bg); color: #B45309; }
[data-theme="dark"] .ic-teal { color: #5EEAD4; }
[data-theme="dark"] .ic-green { color: #6EE7A8; }
[data-theme="dark"] .ic-purple { color: #C4B5FD; }
[data-theme="dark"] .ic-amber { color: #FBBF6B; }

/* ── CARDS ── */
.card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  border: 1.5px solid var(--border);
}
.card-label {
  font-family: 'Oswald', sans-serif; font-size: 0.85rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 1px solid var(--cream2); display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.card-label .sub { text-transform: none; letter-spacing: 0; font-family: 'Inter', sans-serif; font-weight: 400; font-size: 12px; }

.callout {
  display: flex; align-items: flex-start; gap: 14px; background: var(--cream2);
  border: 1.5px solid var(--border); border-radius: var(--radius); padding: 16px 20px;
}
.callout .ci { font-size: 1.3rem; line-height: 1; }
.callout strong {
  font-size: 0.85rem; color: var(--text); display: block; margin-bottom: 4px;
  font-family: 'Oswald', sans-serif; letter-spacing: 0.5px; text-transform: uppercase;
}
.callout p { font-size: 0.8rem; color: var(--muted); line-height: 1.55; margin: 0; }

/* ── BUTTONS ── */
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 24px;
  border-radius: var(--radius); font-size: 0.85rem; font-weight: 600; cursor: pointer; border: none;
  transition: all 0.15s; font-family: 'Oswald', sans-serif; letter-spacing: 1.5px; text-transform: uppercase;
  text-decoration: none;
}
button:active, .btn:active { transform: scale(0.98); }
button:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-primary { background: var(--primary-bg); color: var(--primary-fg); }
.btn-primary:hover:not(:disabled) { background: var(--primary-bg-hover); }
.btn-secondary { background: var(--white); color: var(--accent); border: 1.5px solid var(--accent); }
.btn-secondary:hover:not(:disabled) { background: var(--cream2); }
.btn-danger { background: transparent; color: var(--red); border: 1.5px solid rgba(185,28,28,0.4); }
.btn-small { padding: 6px 10px; font-size: 11px; letter-spacing: 0.5px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.row-actions { display: flex; flex-wrap: nowrap; gap: 6px; white-space: nowrap; }
.row-actions form { display: inline; }

/* ── FORM FIELDS ── */
select, input, textarea {
  border: 1.5px solid var(--border); border-radius: 8px; padding: 9px 13px; font-size: 0.92rem;
  outline: none; transition: border-color 0.2s; font-family: 'Inter', sans-serif; color: var(--text);
  background: var(--white); min-width: 0; width: 100%;
}
textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
select:focus, input:focus, textarea:focus { border-color: var(--accent); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--primary-bg); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; width: 100%; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; margin-bottom: 14px; }
.field label, .field .lbl {
  font-size: 0.65rem; font-weight: 600; color: var(--muted); text-transform: uppercase;
  letter-spacing: 1px; font-family: 'Oswald', sans-serif; display: block; margin-bottom: 2px;
}
.field.full { grid-column: 1 / -1; }
.hint { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--border);
  font-size: 0.8rem; cursor: pointer; color: var(--muted); user-select: none; transition: all .15s;
}
.chip input:checked + span { background: var(--primary-bg); border-color: var(--primary-bg); color: var(--primary-fg); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; margin-bottom: 10px; cursor: pointer; line-height: 1.45; }
.check-row input { margin-top: 3px; }
.seg { display: flex; gap: 8px; }
.seg .role-btn { flex: 1; }
.role-btn { position: relative; }
.role-btn input { position: absolute; opacity: 0; pointer-events: none; }
.role-btn span {
  display: block; padding: 11px 10px; border-radius: var(--radius); border: 1.5px solid var(--border);
  background: var(--cream); cursor: pointer; font-size: 0.8rem; font-family: 'Oswald', sans-serif;
  letter-spacing: 1px; text-transform: uppercase; color: var(--muted); transition: all 0.15s; text-align: center;
}
.role-btn span:hover { border-color: var(--accent); color: var(--accent); }
.role-btn input:checked + span { border-color: var(--primary-bg); background: var(--primary-bg); color: var(--primary-fg); }

/* sets */
.sets-table { width: 100%; border-collapse: collapse; }
.sets-table th { font-size: 0.65rem; padding: 4px; border: none; text-align: center; }
.sets-table td { padding: 4px; border: none; text-align: center; }
.sets-table td:first-child { font-family: 'Oswald', sans-serif; color: var(--muted); font-size: 0.8rem; width: 60px; }
.sets-table input { text-align: center; font-size: 1.1rem; font-weight: 600; padding: 8px; }
.sets-table tr:hover td { background: none; }
.set-result { font-family: 'Oswald', sans-serif; font-size: 0.95rem; letter-spacing: 1px; margin-top: 8px; text-align: center; }

/* ── ALERTS ── */
.flash {
  padding: 12px 16px; border-radius: var(--radius); font-size: 0.88rem; border: 1.5px solid var(--success-border);
  background: var(--success-bg);
}
.flash.error { border-color: var(--warn-border); background: var(--warn-bg); }

/* ── STATS ── */
.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:12px; }
.stat { background:var(--cream2); border:1.5px solid var(--border); border-radius:10px; padding:14px; }
.stat .val { font-size:22px; font-weight:700; font-family:'Oswald',sans-serif; color:var(--text); }
.stat .val small { font-size: 13px; color: var(--muted); font-weight: 500; }
.stat .lbl { font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.5px; margin-top:4px; font-family:'Oswald',sans-serif; }
.form-dots { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.res {
  display: inline-flex; width: 24px; height: 24px; border-radius: 6px; align-items: center; justify-content: center;
  font-family: 'Oswald', sans-serif; font-size: 12px; font-weight: 700; color: #fff;
}
.res.W { background: var(--green); } .res.L { background: var(--red); } .res.D { background: var(--muted); }
.charts { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 860px) { .charts { grid-template-columns: 1fr 1fr; } .charts .wide { grid-column: 1 / -1; } }
.chart-box { position: relative; height: 240px; }
.chart-empty { color: var(--muted); font-size: 0.85rem; text-align: center; padding: 70px 10px; }
.rank-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rank-list li { display: flex; justify-content: space-between; gap: 10px; font-size: 0.9rem; padding: 8px 10px;
  border-radius: 8px; background: var(--cream2); }
.rank-list .pct { font-family: 'Oswald', sans-serif; font-weight: 600; }

/* ── TABLE ── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width:100%; border-collapse:collapse; font-size:14px; }
th { text-align:left; color:var(--muted); font-weight:600; font-size:0.8rem; text-transform:uppercase;
  letter-spacing:.5px; padding:8px; border-bottom:1.5px solid var(--border); font-family:'Oswald',sans-serif; white-space:nowrap; }
td { padding:10px 8px; border-bottom:1px solid var(--cream2); vertical-align:middle; }
td.nowrap { white-space: nowrap; }
tr:hover td { background: var(--cream2); }
.sub-line { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ── PROFILE ── */
.profile-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.avatar {
  width: 64px; height: 64px; border-radius: 16px; background: var(--primary-bg); color: var(--primary-fg); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-family: 'Oswald', sans-serif;
  font-size: 28px; font-weight: 700; text-transform: uppercase;
}
.avatar.sm { width: 40px; height: 40px; border-radius: 10px; font-size: 18px; }
.profile-head h2 { font-family: 'Oswald', sans-serif; font-size: 1.4rem; letter-spacing: .5px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tag { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: var(--tint-blue-bg); color: var(--accent); }
.tag.grey { background: var(--cream2); color: var(--muted); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 0.9rem; }
.kv dt { color: var(--muted); font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 1px; padding-top: 2px; }
.bio { white-space: pre-wrap; line-height: 1.6; font-size: 0.92rem; }

/* ── MAP ── */
.map-wrap { position: relative; }
#map, .pick-map { height: 62vh; min-height: 380px; border-radius: var(--radius); border: 1.5px solid var(--border); z-index: 1; }
.pick-map { height: 300px; min-height: 260px; }
.map-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.map-tools .search { flex: 1 1 260px; display: flex; gap: 8px; }
.map-tools select { width: auto; }
.search-results { list-style: none; border: 1.5px solid var(--border); border-radius: 8px; background: var(--white); margin-top: 6px; overflow: hidden; }
.search-results li { padding: 9px 12px; font-size: 0.85rem; cursor: pointer; border-bottom: 1px solid var(--cream2); }
.search-results li:last-child { border-bottom: none; }
.search-results li:hover { background: var(--cream2); }
.leaflet-popup-content { font-family: 'Inter', sans-serif; font-size: 13px; }
.pop-name { font-family: 'Oswald', sans-serif; font-size: 15px; letter-spacing: .3px; margin-bottom: 2px; }
.pop-meta { color: #666; margin-bottom: 8px; line-height: 1.45; }
.pop-actions { display: flex; gap: 6px; }
.pop-actions a { font-family: 'Oswald', sans-serif; font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 9px; border-radius: 6px; text-decoration: none; border: 1.5px solid #111; color: #111; }
.pop-actions a.primary { background: #111; color: #fff; }
.mk { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); font-size: 14px; }
.mk-player { background: #111; }
.mk-club { background: #fff; border-color: #111; border-radius: 8px; }
.mk-club svg { fill: #111; }
.mk svg { width: 16px; height: 16px; fill: #fff; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); align-items: center; flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--text); vertical-align: -1px; margin-right: 4px; }
.legend i.club { background: var(--bg); border: 2px solid var(--text); border-radius: 3px; }
.area-list { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; }
.area-item { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1.5px solid var(--border); border-radius: 10px;
  text-decoration: none; color: var(--text); }
.area-item:hover { border-color: var(--accent); }
.area-item .meta { font-size: 12px; color: var(--muted); }

/* ── MESSAGES ── */
.convo { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1.5px solid var(--border);
  border-radius: 10px; text-decoration: none; color: var(--text); }
.convo:hover { border-color: var(--accent); }
.convo .grow { flex: 1; min-width: 0; }
.convo .preview { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo .when { font-size: 11px; color: var(--muted); white-space: nowrap; }
.convo.unread { border-color: var(--accent); background: var(--tint-blue-bg); }
.bubbles { display: flex; flex-direction: column; gap: 8px; max-height: 55vh; overflow-y: auto; padding: 4px; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: 0.9rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.bubble.me { align-self: flex-end; background: var(--primary-bg); color: var(--primary-fg); border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: var(--cream2); border-bottom-left-radius: 4px; }
.bubble .time { font-size: 10.5px; opacity: .7; margin-top: 4px; }
.compose { display: flex; gap: 8px; align-items: flex-end; }
.compose textarea { min-height: 48px; height: 48px; }

/* ── TACTICS ── */
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.how div { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
.how b { width: 26px; height: 26px; border-radius: 50%; background: var(--primary-bg); color: var(--primary-fg); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-family: 'Oswald', sans-serif; font-size: 0.8rem; }
.code-input { font-family: 'Oswald', sans-serif; font-size: 1.6rem; letter-spacing: 8px; text-align: center; text-transform: uppercase; }
.tac-top { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.tac-code { font-family: 'Oswald', sans-serif; font-size: 2.6rem; letter-spacing: 8px; font-weight: 700; color: var(--accent); line-height: 1; }
.qr { background: #fff; padding: 8px; border-radius: 8px; line-height: 0; }
.qr img, .qr canvas { width: 120px !important; height: 120px !important; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--cream2); color: var(--muted); }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-pill.on { background: var(--success-bg); color: var(--green); }
.status-pill.on i { background: #22C55E; }
[data-theme="dark"] .status-pill.on { color: #6EE7A8; }
.tac-cat { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.75rem; color: var(--muted); margin: 6px 0 8px; }
.tac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.tac-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px 8px;
  background: var(--white); border: 2px solid var(--border); border-radius: 12px; color: var(--text);
  font-family: 'Inter', sans-serif; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 0.72rem; line-height: 1.25; text-align: center;
}
.tac-btn svg { width: 100%; max-width: 76px; height: auto; aspect-ratio: 1; }
.tac-btn:hover { border-color: var(--accent); }
.tac-btn.active { border-color: var(--accent); background: var(--tint-blue-bg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.tac-sticky { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 8px 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tac-sticky input { flex: 1 1 180px; }
.tac-current { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--muted); }
.tac-current svg { width: 40px; height: 40px; }

/* partner screen */
body.partner { background: #000; color: #fff; }
.partner-screen { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-align: center; min-height: 100vh; }
.partner-screen .ps-symbol { width: min(86vw, 70vh); aspect-ratio: 1; }
.partner-screen .ps-symbol svg { width: 100%; height: 100%; }
.partner-screen .ps-label { font-family: 'Oswald', sans-serif; font-size: clamp(1.8rem, 7vw, 3.4rem); letter-spacing: 2px; text-transform: uppercase; margin-top: 10px; }
.partner-screen .ps-note { font-family: 'Oswald', sans-serif; font-size: clamp(1.4rem, 6vw, 2.6rem); color: #FDE047; margin-top: 6px; }
.partner-screen .ps-wait { color: #A3A3A3; font-size: 1rem; line-height: 1.6; }
.partner-screen .ps-bar { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 12px; color: #A3A3A3; font-family: 'Oswald', sans-serif; letter-spacing: 1px; }
.partner-screen .ps-bar button { background: transparent; color: #A3A3A3; border: 1px solid #333; padding: 6px 10px; font-size: 11px; }
.flash-in { animation: flashIn .45s ease-out; }
@keyframes flashIn { 0% { transform: scale(.7); opacity: 0; } 60% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1); } }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--cream2); padding: 14px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item summary { cursor: pointer; font-size: 0.9rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--muted); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; margin-top: 10px; }
.prose h3 { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 1px; font-size: 0.95rem; margin: 20px 0 8px; }
.prose p, .prose li { font-size: 0.9rem; line-height: 1.65; color: var(--text); }
.prose ul { padding-left: 20px; margin: 6px 0; }
.prose p + p { margin-top: 10px; }

/* ── FOOTER ── */
footer { background: var(--brand); border-top: 1px solid var(--brand-line); color: white; text-align: center; padding: 32px 20px 28px; margin-top: 20px; }
.footer-name { font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 4px; }
.footer-tag { font-size: 0.72rem; color: rgba(255,255,255,0.6); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px; }
.footer-links { font-size: 0.75rem; color: rgba(255,255,255,0.65); margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.75); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-copy { font-size: 0.7rem; color: rgba(255,255,255,0.45); }

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; background: var(--cream); border-top: 1.5px solid var(--border);
  padding: 14px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; justify-content: space-between;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.cookie-banner.hidden { display: none; }
.cookie-banner-text { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; flex: 1 1 320px; min-width: 220px; }
.cookie-banner-text a { color: var(--accent); }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-banner-actions button { white-space: nowrap; }
.footer-copy a { color: rgba(255,255,255,0.7); }
@media print { .cookie-banner { display: none !important; } }

/* ── MISC ── */
.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }
.empty { text-align:center; padding:44px 20px; border:1.5px dashed var(--border); border-radius:var(--radius); color:var(--muted); line-height: 1.6; }
.empty .big { font-size:38px; margin-bottom:10px; }
.split { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.win { color: var(--win); font-weight: 600; } .loss { color: var(--loss); font-weight: 600; }

@media (max-width: 600px) {
  .site-header { padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .site-header-logo { height: 56px; }
  .site-header-actions { position: static; transform: none; }
  .site-header-actions .lang-flag { height: 30px; font-size: 19px; padding: 0 10px; }
  .site-nav { gap: 10px 16px; }
  .step-item { padding: 4px 8px; font-size: 0.7rem; }
  main, .wrap { padding: 12px 12px 48px; gap: 12px; }
  .card { padding: 18px 14px; }
  .field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: 1; }
  .hero h1 { font-size: 1.55rem; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 8px; }
  .tac-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hide-sm { display: none; }
}

#shareBox.compact { padding: 10px 14px !important; }
#shareBox.compact .qr, #shareBox.compact .hint { display: none; }
#shareBox.compact .tac-code { font-size: 1.3rem; letter-spacing: 4px; }
#shareBox.compact .tac-top { gap: 10px; }
#shareBox.compact .tac-top > div:not(.qr) { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stat.form-tile { grid-column: span 2; }

.avatar.club { background: var(--cream2); color: var(--text); border: 1.5px solid var(--border); }

/* monochrome theme: tile icons share one neutral style */
.tile .tile-ic.ic-blue, .tile .tile-ic.ic-teal, .tile .tile-ic.ic-green, .tile .tile-ic.ic-purple, .tile .tile-ic.ic-amber {
  background: var(--primary-bg); color: var(--primary-fg);
}

/* ── SOCIAL LOGIN ── */
.btn-social {
  width: 100%; justify-content: center; background: var(--white); color: var(--text);
  border: 1.5px solid var(--border); text-transform: none; letter-spacing: normal;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.9rem; padding: 11px 16px;
}
.btn-social:hover { background: var(--cream2); border-color: var(--accent); }
.btn-social svg { width: 18px; height: 18px; flex-shrink: 0; }
.social-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.or-divider { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.or-divider span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-family: 'Oswald', sans-serif; }

/* ── PROFILE PHOTOS ── */
img.avatar { object-fit: cover; display: block; background: var(--cream2); }
.photo-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--cream2); }
.photo-row .avatar { width: 96px; height: 96px; border-radius: 50%; font-size: 40px; }
.photo-row .photo-actions { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 200px; }
.photo-row .photo-actions .row-actions { flex-wrap: wrap; }
.photo-row input[type=file] { display: none; }
.profile-head .avatar { border-radius: 50%; }
.avatar.sm { border-radius: 50%; }
.avatar.club { border-radius: 10px; }
.profile-head .avatar.club { border-radius: 16px; }
.pop-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; float: right; margin: 0 0 6px 10px; }

/* Leaflet's own link color would otherwise win inside popups */
.leaflet-container .pop-actions a { color: #111; }
.leaflet-container .pop-actions a.primary { color: #fff; }
