/* 11BALLR fans' app. Direction C: near-black, calm surfaces, green for actions, lime only for what is live. */
:root {
  --bg: #080B09; --s1: #0D120F; --s2: #111814; --s3: #151C18; --line: #1A221E; --line2: #26332C; --line3: #222D27;
  --tx: #F5F7F5; --dim: #C9D1CB; --mut: #9AA59D; --mut2: #7F8A82; --faint: #66736B;
  --green: #16C660; --green2: #3FD67F; --lime: #A4FF3D; --pill: #1E2A23; --red: #D9534F; --blue: #5FA8D3;
  --grad: linear-gradient(#112118, #112118) padding-box, linear-gradient(180deg, rgba(164,255,61,.42), rgba(22,198,96,.14)) border-box;
  --nav: 232px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--tx); font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif; -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--lime); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
img { display: block; }
:focus-visible { outline: 2px solid var(--green2); outline-offset: 2px; border-radius: 8px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--mut); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.row { display: flex; align-items: center; gap: 8px; } .col { display: flex; flex-direction: column; } .grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- layout */
.app { min-height: 100dvh; }
.main { padding-bottom: 104px; min-width: 0; }
.dnav { display: none; }
@media (min-width: 1024px) {
  .app { display: grid; grid-template-columns: var(--nav) minmax(0, 1fr); }
  .dnav { display: flex; flex-direction: column; gap: 4px; padding: 24px 16px; border-right: 1px solid var(--line); position: sticky; top: 0; height: 100dvh; }
  .main { padding-bottom: 40px; }
  .island, .mtop { display: none !important; }
}
.page { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.split { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 1024px) {
  .page { padding: 24px 32px; gap: 16px; }
  .split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
  .split3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 380px; }
  .split-l { grid-template-columns: 420px minmax(0, 1fr); }
}
.stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (min-width: 1024px) { .stack { gap: 16px; } }

/* ---------- desktop nav */
.dnav .logo { height: 22px; width: auto; align-self: flex-start; margin: 0 12px 24px; }
.navlink { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 12px; border-radius: 12px; color: var(--dim); font-size: 15px; font-weight: 600; }
.navlink:hover { color: var(--tx); background: #101713; }
.navlink[aria-current=page] { background: var(--pill); color: var(--tx); font-weight: 700; border-radius: 14px; }
.navlink .badge { margin-left: auto; }
.navlink.soon { opacity: .55; }
.dnav .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--tx); }
.dnav .me:hover { background: #101713; color: var(--tx); }

/* ---------- desktop top */
.dtop { display: none; }
@media (min-width: 1024px) {
  .dtop { display: flex; align-items: center; gap: 14px; padding: 22px 32px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 3; background: rgba(8, 11, 9, .9); backdrop-filter: blur(14px); }
  .dtop h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
  .dtop .sub { font-size: 14px; color: var(--mut); }
  .dtop .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
}
.searchbox { display: flex; align-items: center; gap: 10px; width: 300px; height: 42px; padding: 0 14px; border-radius: 999px; background: var(--s2); border: 1px solid var(--line3); color: var(--mut); font-size: 14px; }
.searchbox:hover { color: var(--tx); }

/* ---------- mobile top */
.mtop { position: sticky; top: 0; z-index: 4; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; padding-top: max(8px, env(safe-area-inset-top)); background: rgba(8, 11, 9, .92); backdrop-filter: blur(14px); }
.mtop.back { border-bottom: 1px solid var(--line); }
.mtop .title { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.mtop.back .title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.mtop .sub { font-size: 12px; color: var(--mut); font-weight: 500; }
.mtop .logo { height: 20px; width: auto; }
.mtop .acts { display: flex; gap: 2px; }
.ibtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #DDE3DE; flex: none; }
.ibtn:hover { background: #111814; color: var(--tx); }
.ibtn.sm { width: 40px; height: 40px; }
.ibtn.boxed { background: var(--s2); border: 1px solid var(--line3); }
.ibtn.green { color: var(--green2); }

/* ---------- island */
.island { position: fixed; left: 14px; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); height: 66px; padding: 6px; border-radius: 26px; background: rgba(18, 26, 21, .86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid #2A372F; box-shadow: 0 12px 32px rgba(0, 0, 0, .55); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; z-index: 6; max-width: 520px; margin: 0 auto; }
.island a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 20px; font-size: 10.5px; font-weight: 600; color: #8F9A92; }
.island a[aria-current=page] { background: var(--pill); color: var(--tx); font-weight: 700; }
.island .badge { position: absolute; top: 6px; left: calc(50% + 7px); }
.badge { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--green); color: #04140A; font-size: 10px; font-weight: 800; display: inline-grid; place-items: center; }
.fab { position: fixed; right: 18px; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 82px); width: 56px; height: 56px; border-radius: 50%; border: 1px solid transparent; background: var(--grad); color: var(--green2); display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0, 0, 0, .55); z-index: 5; }
@media (min-width: 1024px) { .fab { display: none; } }

/* ---------- drawer */
.scrim { position: fixed; inset: 0; background: rgba(8, 11, 9, .55); z-index: 20; }
.drawer { position: fixed; left: 0; top: 0; bottom: 0; width: 304px; max-width: 86vw; background: #0C110E; border-right: 1px solid #1F2A24; display: flex; flex-direction: column; padding: 16px 12px 20px; z-index: 21; overflow-y: auto; animation: slidein .18s ease-out; }
@keyframes slidein { from { transform: translateX(-24px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer .grp { padding: 12px 12px 6px; font-size: 12px; font-weight: 600; color: var(--mut2); }
.drawer .navlink { height: 46px; color: #E6EBE7; }

/* ---------- buttons, chips, controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; background: var(--grad); color: var(--tx); font-size: 14px; font-weight: 600; white-space: nowrap; }
.btn svg { color: var(--green2); flex: none; }
.btn:hover { color: var(--tx); filter: brightness(1.12); }
.btn.sec { background: var(--s2); border-color: var(--line3); color: #E6EBE7; }
.btn.sec svg { color: currentColor; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn.lg { height: 52px; font-size: 15px; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; filter: none; }
.btn.danger { color: #E5736F; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--mut); border: 1px solid var(--line3); white-space: nowrap; flex: none; }
.chip[aria-pressed=true] { background: var(--pill); border-color: var(--pill); color: var(--tx); font-weight: 700; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: #0A0F0C; border: 1px solid #1F2A24; flex: none; }
.seg button { height: 30px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--mut); }
.seg button[aria-checked=true] { background: var(--pill); color: var(--tx); font-weight: 700; }
.tabs { display: flex; gap: 22px; padding: 0 16px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { padding: 12px 0; font-size: 15px; font-weight: 600; color: var(--mut); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button[aria-selected=true] { color: var(--tx); font-weight: 700; border-bottom-color: var(--green); }
@media (min-width: 1024px) { .tabs { padding: 0 32px; gap: 28px; } }
.toggle { position: relative; width: 46px; height: 28px; border-radius: 999px; background: #1A221E; border: 1px solid var(--line2); flex: none; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #5D6B62; transition: left .15s; }
.toggle[aria-checked=true] { background: #1F4D30; border-color: #2C6A43; }
.toggle[aria-checked=true]::after { left: 21px; background: var(--green2); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--dim); }
.input { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: 999px; background: var(--s1); border: 1px solid var(--line2); }
.input:focus-within { border-color: #2F5A3A; }
.input svg { color: var(--mut); flex: none; }
.input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-size: 15px; }
.input input::placeholder { color: var(--faint); }
.hint { font-size: 13px; color: var(--mut); line-height: 1.5; }
.err { font-size: 13px; color: #E5736F; }

/* ---------- cards and headings */
.card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 18px; background: var(--s1); border: 1px solid var(--line); min-width: 0; }
.card.flush { padding: 0; overflow: hidden; gap: 0; }
.h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.h2 h2 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.h2 .aside { font-size: 13px; color: var(--mut); }
.group { display: flex; align-items: center; justify-content: space-between; padding: 6px 2px 0; font-size: 13px; font-weight: 700; color: var(--dim); }
.group span { font-size: 12px; font-weight: 500; color: var(--mut); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; background: var(--s2); border: 1px solid var(--line); min-width: 0; }
.tile b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile span { font-size: 12px; color: var(--mut); }
.tile em { font-style: normal; font-size: 12px; color: var(--green2); font-weight: 600; }
.empty { padding: 28px 16px; text-align: center; color: var(--mut); font-size: 14px; line-height: 1.5; }
.skel { border-radius: 14px; background: linear-gradient(90deg, #0F1512, #141B17, #0F1512); background-size: 200% 100%; animation: sk 1.2s infinite linear; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.livedot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); flex: none; display: inline-block; }
.live { color: var(--lime); font-weight: 700; }
.stripe { width: 4px; height: 18px; border-radius: 2px; flex: none; display: inline-block; }

/* ---------- avatars, crests, seals */
.av { border-radius: 50%; display: grid; place-items: center; font-weight: 700; flex: none; overflow: hidden; color: var(--tx); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.crest { border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--s2); border: 2px solid var(--mut2); color: var(--tx); font-weight: 800; letter-spacing: -.02em; overflow: hidden; }
.crest.logo { background: transparent; border: 0; border-radius: 0; }
.crest.logo img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- match rows */
.mrow { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center; gap: 8px; padding: 14px 12px; border-radius: 16px; background: var(--s1); border: 1px solid var(--line); color: var(--tx); }
.mrow:hover { color: var(--tx); border-color: var(--line2); }
.mrow.is-live { background: var(--s2); border-color: #2F5A3A; }
.mrow .side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mrow .side.r { justify-content: flex-end; text-align: right; }
.mrow .name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow .mid { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mrow .sc { font-size: 17px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mrow .note { font-size: 11px; font-weight: 600; color: var(--mut); display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.mrow .note.live { color: var(--lime); font-weight: 700; }
@media (min-width: 1024px) { .mrow:not(.compact) .name { font-size: 16px; } .mrow:not(.compact) { grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr); padding: 14px 16px; } }
.tile.small b { font-size: 18px; }
.strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 16px 10px; }
.strip::-webkit-scrollbar { display: none; }
.mini { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--s1); border: 1px solid var(--line); color: var(--tx); min-width: 118px; flex: none; }
.mini:hover { color: var(--tx); }
.mini.is-live { background: var(--s2); border-color: #2B4A35; }
.mini .st { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--mut); }
.mini.is-live .st { color: var(--lime); }
.mini .ln { font-size: 15px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 1024px) { .strip { padding: 20px 32px 6px; } }

/* ---------- days */
.days { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 16px; }
.days::-webkit-scrollbar { display: none; }
.days button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 62px; padding: 8px 10px; border-radius: 14px; color: var(--mut); flex: none; }
.days button b { font-size: 13px; } .days button span { font-size: 11px; font-weight: 500; }
.days button[aria-pressed=true] { background: var(--pill); color: var(--tx); }
@media (min-width: 1024px) { .days { padding: 0; } }

/* ---------- table */
.tbl-head, .tbl-row { display: grid; gap: 8px; align-items: center; padding: 0 12px; }
.tbl-head { padding: 10px 12px; font-size: 12px; font-weight: 600; color: var(--mut2); border-bottom: 1px solid var(--line); }
.tbl-row { height: 48px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--tx); }
.tbl-row:hover { background: #0E1511; color: var(--tx); }
.tbl-row.me { background: #0F1A13; }
.tbl-row .r, .tbl-head .r { text-align: right; }
.tbl-m { grid-template-columns: 22px minmax(0, 1fr) 22px 34px 34px 62px; }
.tbl-d { grid-template-columns: 36px minmax(0, 1fr) repeat(7, 40px) 48px 100px; font-size: 15px; }
.form { display: flex; gap: 3px; } .form i { width: 8px; height: 8px; border-radius: 2px; display: block; }
.form i.W { background: var(--green); } .form i.D { background: #7F8A82; } .form i.L { background: var(--red); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 14px 16px; font-size: 12px; color: var(--mut); }
.legend span { display: flex; align-items: center; gap: 6px; } .legend i { width: 10px; height: 10px; border-radius: 2px; display: block; }
.only-d { display: none; } @media (min-width: 1024px) { .only-d { display: revert; } .only-m { display: none !important; } }

/* ---------- lists */
.li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--tx); min-width: 0; }
.li:last-child { border-bottom: 0; }
.li:hover { color: var(--tx); }
.li .t { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.li .t b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .t span { font-size: 12px; color: var(--mut); }
.li .v { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- match centre */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 18px 16px 12px; }
.hero .t { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--tx); }
.hero .t b { font-size: 15px; } .hero .t span { font-size: 12px; color: var(--mut); line-height: 1.4; }
.hero .score { font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; text-align: center; }
.hero .clock { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--mut); margin-top: 6px; }
.hero .clock.live { color: var(--lime); }
.ev { display: grid; grid-template-columns: 40px 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ev:last-child { border-bottom: 0; }
.ev .m { font-size: 14px; font-weight: 700; color: var(--dim); font-variant-numeric: tabular-nums; }
.ev .ic { width: 30px; height: 30px; border-radius: 50%; background: var(--s2); border: 1px solid var(--line2); display: grid; place-items: center; color: var(--mut); }
.ev .ic.goal { background: #132019; border-color: #2F5A3A; color: var(--green2); }
.ev .card-y { width: 10px; height: 14px; border-radius: 2px; background: #F2C230; } .ev .card-r { width: 10px; height: 14px; border-radius: 2px; background: var(--red); }
.ev .w b { font-size: 15px; display: block; } .ev .w span { font-size: 13px; color: var(--mut); }
.stat { display: flex; flex-direction: column; gap: 7px; padding: 8px 0; }
.stat .l { display: flex; justify-content: space-between; font-size: 14px; font-variant-numeric: tabular-nums; }
.stat .l span { color: var(--mut); }
.bars { display: flex; gap: 4px; height: 6px; } .bars i { display: block; border-radius: 3px; }
.pitch { position: relative; border-radius: 16px; background: linear-gradient(180deg, #0E2016, #0B1A11); border: 1px solid #1F3A28; overflow: hidden; aspect-ratio: 386 / 560; width: 100%; }
.pitch .ln { position: absolute; border: 1px solid #2A4A36; }
.pitch .p { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; width: 76px; }
.pitch .p i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; box-shadow: 0 0 0 2px #0B1A11; }
.pitch .p span { font-size: 11px; font-weight: 600; white-space: nowrap; text-shadow: 0 1px 2px #000; max-width: 80px; overflow: hidden; text-overflow: ellipsis; }
.bottombar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 12px 16px max(24px, env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(8, 11, 9, 0), #080B09 30%); z-index: 5; }
@media (min-width: 1024px) { .bottombar { display: none; } }

/* ---------- people & profile */
.pcard { display: flex; align-items: center; gap: 16px; padding: 20px 16px 8px; }
.pcard h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--s2); border: 1px solid var(--line3); font-size: 13px; color: var(--dim); }
.pct { display: grid; grid-template-columns: minmax(0, 1fr) 56px; gap: 10px; align-items: center; padding: 6px 0; }
.pct .bar { height: 6px; border-radius: 3px; background: #1C2620; overflow: hidden; } .pct .bar i { display: block; height: 100%; border-radius: 3px; }

/* ---------- sign in / onboarding */
.gate { min-height: 100dvh; display: flex; flex-direction: column; padding: 20px 22px 28px; max-width: 480px; margin: 0 auto; }
.gate .logo { height: 22px; width: auto; align-self: center; margin: 8px 0 26px; }
.gate h1 { font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; margin: 26px 0 8px; }
.gate .actions { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.or { display: flex; align-items: center; gap: 12px; color: var(--mut2); font-size: 13px; } .or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.stack-cards { display: flex; flex-direction: column; gap: 10px; transform: rotate(-2deg); }
@media (min-width: 1024px) {
  .gate-wide { display: grid; grid-template-columns: minmax(0, 1fr) 520px; min-height: 100dvh; }
  .gate-wide .show { padding: 56px 72px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: radial-gradient(900px 500px at 20% 110%, #0F2417, transparent); }
  .gate-wide .show h1 { font-size: 60px; line-height: 1.02; letter-spacing: -.04em; margin: 80px 0 16px; }
  .gate-wide .gate { max-width: none; justify-content: center; padding: 0 64px; }
  .gate-wide .gate .logo, .gate-wide .gate .intro { display: none; }
}
.gate-wide .show { display: none; } @media (min-width: 1024px) { .gate-wide .show { display: flex; } }
.clubgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 1024px) { .clubgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; } }
.clubtile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--s1); }
.clubtile span { font-size: 12px; font-weight: 600; color: var(--dim); text-align: center; line-height: 1.2; }
.clubtile[aria-pressed=true] { box-shadow: 0 0 0 2px var(--green); background: #112118; }
.clubtile[aria-pressed=true] span { color: var(--tx); }
.clubtile .tick { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #04140A; display: grid; place-items: center; }
.progress { display: flex; gap: 6px; } .progress i { flex: 1; height: 4px; border-radius: 2px; background: var(--line2); } .progress i.on { background: var(--green); }
.onb { max-width: 900px; margin: 0 auto; padding: 0 20px 120px; display: flex; flex-direction: column; gap: 16px; }
.onb h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.footbar { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 20px max(24px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); display: flex; gap: 10px; justify-content: center; z-index: 5; }
.footbar .btn { max-width: 520px; flex: 1; }

/* ---------- settings */
.sgroup { display: flex; flex-direction: column; gap: 8px; }
.sgroup > span { padding: 0 4px; font-size: 13px; font-weight: 700; color: var(--mut2); }
.sbox { border-radius: 16px; background: var(--s1); border: 1px solid var(--line); overflow: hidden; }
.srow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 15px; width: 100%; text-align: left; color: var(--tx); }
.srow:last-child { border-bottom: 0; }
.srow .v { display: flex; align-items: center; gap: 6px; color: var(--mut); font-size: 14px; }
.srow.danger { color: #E5736F; }

/* ---------- install prompt */
.install { position: fixed; left: 14px; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 82px); display: flex; align-items: center; gap: 4px; height: 48px; padding: 0 6px; border-radius: 999px; border: 1px solid transparent; background: linear-gradient(rgba(17, 33, 24, .94), rgba(17, 33, 24, .94)) padding-box, linear-gradient(180deg, rgba(164, 255, 61, .42), rgba(22, 198, 96, .14)) border-box; backdrop-filter: blur(14px); box-shadow: 0 10px 28px rgba(0, 0, 0, .5); z-index: 5; }
.install > button:first-child { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; font-size: 14px; font-weight: 600; }
.install img { width: 22px; height: 22px; border-radius: 6px; }
.install-d { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; border: 1px solid transparent; background: linear-gradient(#0E1812, #0E1812) padding-box, linear-gradient(180deg, rgba(164, 255, 61, .42), rgba(22, 198, 96, .14)) border-box; margin-top: 16px; }
@media (min-width: 1024px) { .install { display: none; } }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; background: #0C110E; border-top: 1px solid var(--line2); border-radius: 22px 22px 0 0; padding: 18px 20px max(28px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; max-width: 560px; margin: 0 auto; }
.sheet ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; }

/* ---------- toast */
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); padding: 12px 18px; border-radius: 999px; background: #17221C; border: 1px solid var(--line2); font-size: 14px; z-index: 30; box-shadow: 0 10px 28px rgba(0, 0, 0, .5); }

/* ---------- compare */
.cmp { display: flex; flex-direction: column; gap: 7px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.cmp:last-child { border-bottom: 0; }
.cmp .l { display: grid; grid-template-columns: 60px minmax(0, 1fr) 60px; align-items: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.cmp .l span { text-align: center; color: var(--dim); } .cmp .l b:last-child { text-align: right; }
.cmp .b { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cmp .b > span { height: 6px; border-radius: 3px; background: #1C2620; display: flex; } .cmp .b > span:first-child { justify-content: flex-end; }
.cmp .b i { display: block; height: 100%; border-radius: 3px; }
.picker { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border-radius: 18px; background: var(--s1); border: 1px solid var(--line); min-width: 0; text-align: center; }
.picker b { font-size: 15px; } .picker span { font-size: 12px; color: var(--mut); }

/* ---------- explorer */
.xrow, .xhead { display: grid; grid-template-columns: 22px 36px minmax(0, 1fr) 44px 44px 50px; align-items: center; gap: 8px; }
.xhead { padding: 10px 0; font-size: 12px; font-weight: 600; color: var(--mut2); border-bottom: 1px solid var(--line); }
.xrow { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums; color: var(--tx); }
.xrow:hover { color: var(--tx); background: #0E1511; }
.xhead button { text-align: right; font-weight: 600; color: var(--mut2); }
.xhead button[aria-sort] { color: var(--green2); }
.xd { grid-template-columns: 36px minmax(0, 1fr) 64px 48px repeat(6, 64px); padding-left: 16px; padding-right: 16px; }
.xd.xrow { height: 54px; padding-top: 0; padding-bottom: 0; font-size: 15px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: #1C2620; outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--tx); cursor: pointer; }
.select { height: 42px; padding: 0 14px; border-radius: 999px; background: var(--s1); border: 1px solid var(--line2); color: var(--tx); font-size: 14px; }

/* ---------- posts */
.post { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px 16px 6px; border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .post { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px 24px 8px; } }
.post .who { gap: 6px; font-size: 14px; white-space: nowrap; min-width: 0; }
.post .who .name { font-weight: 700; color: var(--tx); }
.post .text { color: var(--tx); font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.post .text a { color: var(--green2); }
.post.big .text { font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.post .acts { display: flex; align-items: center; justify-content: space-between; max-width: 360px; margin-left: -8px; }
.post .acts > * { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 8px; border-radius: 10px; color: var(--mut2); font-size: 13px; font-variant-numeric: tabular-nums; }
.post .acts > *:hover { color: var(--tx); background: #101713; }
.post .acts .on { color: var(--green); }
.post .menu { position: absolute; right: 0; top: 24px; background: #121915; border: 1px solid var(--line2); border-radius: 12px; padding: 4px; z-index: 5; box-shadow: 0 10px 28px rgba(0,0,0,.5); }
.post .menu button { display: block; padding: 10px 14px; font-size: 14px; color: #E5736F; white-space: nowrap; }
.band { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--s1); border: 1px solid var(--line); color: var(--tx); min-width: 0; }
.band:hover { color: var(--tx); border-color: var(--line2); }
.band.is-live { background: #132019; border-color: #2F5A3A; }
.feedtabs { position: sticky; top: 60px; z-index: 3; background: rgba(8, 11, 9, .92); backdrop-filter: blur(14px); }
@media (min-width: 1024px) { .feedtabs { top: 87px; } }
.composer { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px; }
.composer textarea { width: 100%; min-height: 120px; border: 0; outline: none; resize: none; background: transparent; color: var(--tx); font-size: 18px; line-height: 1.45; }
.composer textarea::placeholder { color: var(--faint); }
.tools { display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-top: 1px solid var(--line); }
.ring { width: 22px; height: 22px; border-radius: 50%; }
.replybox { display: flex; align-items: center; gap: 4px; min-height: 52px; padding: 4px 6px 4px 16px; border-radius: 26px; background: #101713; border: 1px solid #223029; }
.replybox textarea { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--tx); font-size: 15px; resize: none; height: 22px; line-height: 22px; }
.sendbtn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid transparent; background: var(--grad); color: var(--green2); display: grid; place-items: center; flex: none; }
.sendbtn:disabled { opacity: .5; }
.comment { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.comment .who { gap: 6px; font-size: 14px; white-space: nowrap; }
.comment p { font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.feedwrap { display: block; }
@media (min-width: 1024px) {
  .feedwrap { display: grid; grid-template-columns: minmax(0, 680px) minmax(320px, 400px); gap: 0; align-items: start; }
  .feedcol { border-right: 1px solid var(--line); min-height: 100dvh; }
  .feedside { padding: 24px; position: sticky; top: 87px; }
}
.band { flex-wrap: wrap; row-gap: 6px; }
.band > .col { flex: 1 1 auto; }
.band > .col b { white-space: nowrap; }
.card.flush .post:last-child { border-bottom: 0; }
.replybox { align-items: flex-end; gap: 10px; padding: 6px 6px 6px 18px; border-radius: 24px; }
.replybox > label { flex: 1; min-width: 0; display: flex; align-self: center; }
.replybox textarea { display: block; width: 100%; height: auto; min-height: 24px; line-height: 24px; padding: 8px 0; font-size: 15px; scrollbar-width: none; }
.replybox textarea::-webkit-scrollbar { display: none; }
.post .text[dir], .comment p[dir] { text-align: start; }
.thread { border-top: 1px solid var(--line); padding-bottom: 4px; }
.thread .comment { border-top: 0; padding-bottom: 6px; }
.comment.is-reply { grid-template-columns: 28px minmax(0, 1fr); padding: 6px 16px 6px 58px; }
.replylink { font-size: 13px; font-weight: 600; color: var(--mut2); padding: 2px 0; }
.replylink:hover { color: var(--tx); }
.replylink.more { display: block; margin: 0 0 8px 58px; color: var(--green2); }
.replyhere { padding: 4px 16px 12px 58px; }
@media (max-width: 1023px) { .comment.is-reply, .replyhere { padding-left: 50px; } .replylink.more { margin-left: 50px; } }

html, body { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, a, input, textarea, select, label { touch-action: manipulation; }
/* iPhone zooms into any field under 16px when you tap it */
@media (max-width: 1023px) { input, textarea, select, .input input, .replybox textarea { font-size: 16px; } }
.replylink.more { display: inline-flex; align-items: center; gap: 8px; }
.replylink.more::before { content: ""; width: 24px; height: 1px; background: var(--line2); }

/* photos on posts */
.photos { display: grid; gap: 3px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--s1); }
.photos button { display: block; padding: 0; border: 0; background: #0D120F; min-height: 0; overflow: hidden; }
.photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photos.n1 { max-height: 520px; }
.photos.n2 { grid-template-columns: 1fr 1fr; aspect-ratio: 16 / 9; }
.photos.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 9; }
.photos.n3 button:first-child { grid-row: 1 / 3; }
.photos.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 9; }
.viewer { position: fixed; inset: 0; z-index: 50; background: rgba(4, 6, 5, .96); display: grid; place-items: center; touch-action: pan-y; }
.viewer img { max-width: 100vw; max-height: 100dvh; object-fit: contain; }
.viewer .close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; }
.viewer .prev, .viewer .next { position: absolute; top: 50%; transform: translateY(-50%); }
.viewer .prev { left: 14px; } .viewer .next { right: 14px; }
.viewer .count { position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
@media (max-width: 1023px) { .viewer .prev, .viewer .next { display: none; } }
.pickgrid { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pickgrid.n1 { grid-template-columns: minmax(0, 1fr); }
.pick { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--s1); border: 1px solid var(--line); }
.pickgrid.n1 .pick { aspect-ratio: 16 / 10; }
.pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick.is-up img { opacity: .45; }
.pick .ibtn { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; background: rgba(8, 11, 9, .8); }
.spin { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 2px solid rgba(245, 247, 245, .25); border-top-color: var(--green2); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }

/* reports */
.reasons { gap: 2px; }
.reason { display: flex; align-items: center; gap: 12px; padding: 12px 6px; font-size: 15px; color: var(--tx); text-align: left; border-radius: 10px; }
.reason:hover { background: #101713; }
.reason .dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #3A4A41; flex: none; }
.reason.on .dot { border-color: var(--green); box-shadow: inset 0 0 0 4px #0C110E; background: var(--green); }
.post .menu button.plain, .comment .menu button.plain { color: var(--tx); display: flex; align-items: center; gap: 8px; }
.comment .menu { position: absolute; right: 0; top: 22px; background: #121915; border: 1px solid var(--line2); border-radius: 12px; padding: 4px; z-index: 5; box-shadow: 0 10px 28px rgba(0,0,0,.5); }
.comment .menu button { display: flex; padding: 10px 14px; font-size: 14px; white-space: nowrap; }
/* notices and account limits */
.noticebar { display: flex; align-items: center; gap: 12px; margin: 12px 16px 0; padding: 12px 14px; border-radius: 14px; background: #1A1512; border: 1px solid #4A3A2A; color: var(--tx); font-size: 14px; }
.noticebar .ic { color: #E8B26A; flex: none; }
.noticebar b { display: block; }
.noticebar span { color: var(--dim); font-size: 13px; }
.limitnote { margin: 0 16px; padding: 10px 14px; border-radius: 12px; background: #1A1512; border: 1px solid #4A3A2A; font-size: 13px; color: var(--dim); }
.quote { padding: 12px 14px; border-left: 3px solid var(--line2); background: var(--s1); border-radius: 0 10px 10px 0; font-size: 14px; color: var(--dim); white-space: pre-wrap; overflow-wrap: anywhere; }
.input.area { height: auto; border-radius: 16px; padding: 10px 14px; align-items: flex-start; }
