From a5cb488b9168118ca16b0cee900db85e151d9c61 Mon Sep 17 00:00:00 2001 From: SowinskiBraeden Date: Fri, 26 Jun 2026 21:24:00 -0700 Subject: [PATCH] visual redesign: landing, dashboard overview, session calendar (2.3.1) - Redesign landing page hero with split layout, features section, and in-app session/result demos - Add fixed sidebar scroll isolation (app-shell overflow lock pattern) - Redesign leagues index cards with initial badge, podium leader chips, and action links - Redesign league dashboard: color-coded nav tiles, cash/stats overview strip, session history heatmap calendar - Dashboard cash stats use real cash only (excludes rollovers and carry-ins) - Session history calendar: JS-driven full-year grid, year navigation, hover tooltips, full-width responsive layout - Bump leaderboard tile color from gold to blue (distinct from ledger orange) - Bump version to 2.3.1 --- config.py | 2 +- routes/leagues.py | 45 + static/css/style.css | 2081 ++++++++++++++++++++++++-- static/css/tokens.css | 67 +- static/favicon.svg | 2 +- templates/_league_sidebar.html | 87 ++ templates/account_login.html | 81 +- templates/account_register.html | 85 +- templates/account_settings.html | 15 +- templates/base.html | 23 +- templates/explore.html | 54 +- templates/landing.html | 420 ++++-- templates/league_dashboard.html | 360 ++++- templates/league_leaderboard.html | 9 +- templates/league_ledger.html | 3 +- templates/league_player_detail.html | 3 +- templates/league_players.html | 10 +- templates/league_session_detail.html | 3 +- templates/league_session_view.html | 4 +- templates/league_sessions.html | 10 +- templates/league_settings.html | 3 +- templates/leagues_index.html | 205 ++- 22 files changed, 2975 insertions(+), 597 deletions(-) create mode 100644 templates/_league_sidebar.html diff --git a/config.py b/config.py index c5a83af..edb1d78 100644 --- a/config.py +++ b/config.py @@ -9,7 +9,7 @@ DATA_PATH = BASE_DIR / "data" / "entries.csv" DEFAULT_DATABASE_URL = f"sqlite:///{BASE_DIR / 'data' / 'boker-dev.sqlite3'}" ELIGIBLE_MIN_SESSIONS = 3 -APP_VERSION = "2.3.0" +APP_VERSION = "2.3.1" def load_local_env(env_path: Path) -> None: diff --git a/routes/leagues.py b/routes/leagues.py index d7032f3..da5bf33 100644 --- a/routes/leagues.py +++ b/routes/leagues.py @@ -222,16 +222,61 @@ def dashboard(league_ref: str): return redirect(url_for("public.home")) from league_repositories import league_counts, user_has_league_role + from ledger_repositories import list_event_rows_for_league league, resp = get_league_with_visibility_gate(league_ref) if resp: return resp is_owner = user_has_league_role(current_user_id() or "", league.id, {"owner"}) + + all_sessions = build_session_summaries(list_event_rows_for_league(league.id)) + closed_sessions = [s for s in all_sessions if not s.is_open] + closed_count = len(closed_sessions) + + total_cash_in = sum(s.total_real_cash_in_cents for s in closed_sessions) + total_paid_out = sum(s.total_paid_out_cents for s in closed_sessions) + total_fronts = sum(s.total_front_cents for s in all_sessions) + closed_entries = sum(len(s.entries) for s in closed_sessions) + all_entries = sum(len(s.entries) for s in all_sessions) + + # Avg sessions per month since the first session + session_date_strs = [s.session_date[:10] for s in all_sessions if s.session_date] + avg_sessions_per_month = 0.0 + if session_date_strs: + first_date = date.fromisoformat(min(session_date_strs)) + today_d = date.today() + months_elapsed = (today_d.year - first_date.year) * 12 + (today_d.month - first_date.month) + 1 + avg_sessions_per_month = round(len(all_sessions) / months_elapsed, 1) + + # Session calendar data: date → count of sessions on that date + sessions_by_date: dict[str, int] = {} + for s in all_sessions: + if s.session_date: + d = s.session_date[:10] + sessions_by_date[d] = sessions_by_date.get(d, 0) + 1 + first_session_year = int(min(sessions_by_date)[:4]) if sessions_by_date else date.today().year + + cash_stats = { + "total_cash_in": total_cash_in, + "total_paid_out": total_paid_out, + "total_fronts": total_fronts, + "avg_pot": total_cash_in // closed_count if closed_count else 0, + "avg_players": round(all_entries / len(all_sessions)) if all_sessions else 0, + "avg_buyin": sum(s.total_buy_in_cents for s in closed_sessions) // closed_entries if closed_entries else 0, + "biggest_pot": max((s.total_real_cash_in_cents for s in all_sessions), default=0), + "avg_sessions_per_month": avg_sessions_per_month, + "session_map": sessions_by_date, + "first_session_year": first_session_year, + "has_data": closed_count > 0, + "has_sessions": bool(all_sessions), + } + return render_template( "league_dashboard.html", league=league, counts=league_counts(league.id), is_owner=is_owner, + cash_stats=cash_stats, ) diff --git a/static/css/style.css b/static/css/style.css index 6d36ff5..f213241 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -36,7 +36,7 @@ h1, h2, h3, h4 { margin: 0; } FONTS ================================================================ */ :root { - --font-ui: Aptos, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; + --font-ui: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --font-display: var(--font-ui); --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", "Liberation Mono", monospace; --font-money: var(--font-ui); @@ -100,13 +100,191 @@ h1, h2, h3, h4 { margin: 0; } .subnav__link.is-active { color: var(--accent); font-weight: 600; } /* ================================================================ - APP SHELL + APP SHELL + SIDEBAR + ================================================================ */ +.app-shell { + flex: 1; + display: flex; + align-items: stretch; + min-height: calc(100vh - 62px); + position: relative; +} +/* Lock app-shell to viewport height so only the main content area scrolls */ +.app-shell:has(.sidebar) { + height: calc(100vh - 62px); + overflow: hidden; +} + +/* Full-height sidebar background strip */ +.app-shell:has(.sidebar)::before { + content: ''; + position: absolute; + left: 0; + top: 0; + bottom: 0; + width: 224px; + background: var(--surface); + border-right: 1px solid var(--border); + pointer-events: none; + z-index: 0; +} + +/* ---- Sidebar ---- */ +.sidebar { + width: 224px; + flex-shrink: 0; + background: transparent; + height: 100%; + overflow-y: hidden; + display: flex; + flex-direction: column; + z-index: 1; +} + +.sidebar__header { + display: flex; + align-items: center; + gap: 10px; + padding: 18px 14px 16px; + border-bottom: 1px solid var(--border); + flex-shrink: 0; +} +.sidebar__badge { + width: 34px; + height: 34px; + border-radius: var(--r-md); + background: var(--accent-chip); + border: 1px solid var(--accent-chip-bd); + color: var(--accent); + font-size: 15px; + font-weight: 700; + display: flex; + align-items: center; + justify-content: center; + flex-shrink: 0; + letter-spacing: -.01em; +} +.sidebar__meta { min-width: 0; } +.sidebar__league-name { + display: block; + font-size: .8125rem; + font-weight: 600; + color: var(--text-strong); + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + line-height: 1.3; +} +.sidebar__role { + display: block; + font-size: .6875rem; + color: var(--accent); + font-weight: 500; + margin-top: 2px; +} + +.sidebar__nav { + flex: 1; + padding: 10px 8px; + display: flex; + flex-direction: column; + gap: 1px; +} +.sidebar__link { + display: flex; + align-items: center; + gap: 9px; + padding: 8px 10px; + border-radius: var(--r-sm); + font-size: .8125rem; + font-weight: 500; + color: var(--text-2); + text-decoration: none; + transition: color .13s, background .13s; + line-height: 1; +} +.sidebar__link svg { + width: 16px; + height: 16px; + flex-shrink: 0; + opacity: .65; + transition: opacity .13s; +} +.sidebar__link:hover { + color: var(--text); + background: var(--surface-raised); +} +.sidebar__link:hover svg { opacity: .9; } +.sidebar__link.is-active { + color: var(--accent); + background: var(--accent-tint); + font-weight: 600; +} +.sidebar__link.is-active svg { opacity: 1; } + +.sidebar__footer { + flex-shrink: 0; + padding: 12px 14px 14px; + border-top: 1px solid var(--border); +} +.sidebar__back { + display: flex; + align-items: center; + gap: 5px; + font-size: .75rem; + color: var(--muted); + text-decoration: none; + transition: color .13s; +} +.sidebar__back svg { width: 12px; height: 12px; } +.sidebar__back:hover { color: var(--text-2); } + +/* ---- App page (paired with sidebar) ---- */ +.page--app { + flex: 1; + min-width: 0; + max-width: none; + margin: 0; + padding: clamp(20px, 3vw, 36px) clamp(24px, 4vw, 48px) 96px; + overflow-y: auto; + height: 100%; +} + +/* ---- Sidebar mobile collapse ---- */ +@media (max-width: 768px) { + .app-shell { flex-direction: column; min-height: 0; } + .app-shell:has(.sidebar) { height: auto; overflow: visible; } + .app-shell:has(.sidebar)::before { display: none; } + .sidebar { + width: 100%; + height: auto; + position: static; + background: var(--surface); + border-right: none; + border-bottom: 1px solid var(--border); + flex-direction: row; + align-items: center; + z-index: auto; + } + .sidebar__header { border-bottom: none; padding: 10px 12px; flex-shrink: 0; } + .sidebar__badge { width: 28px; height: 28px; font-size: 12px; } + .sidebar__role { display: none; } + .sidebar__nav { flex-direction: row; padding: 0 8px; gap: 0; overflow-x: auto; scrollbar-width: none; } + .sidebar__nav::-webkit-scrollbar { display: none; } + .sidebar__link { padding: 10px 10px; white-space: nowrap; gap: 6px; } + .sidebar__link svg { display: none; } + .sidebar__footer { display: none; } + .page--app { padding: 16px 16px 64px; overflow-y: visible; height: auto; } +} + +/* ================================================================ + APP SHELL (topbar) ================================================================ */ .topbar { position: sticky; top: 0; z-index: 50; - background: rgba(15,15,18,.86); - backdrop-filter: blur(8px); - border-bottom: 1px solid var(--border); + background: rgba(10,10,13,.94); + backdrop-filter: blur(14px) saturate(180%); + border-bottom: 1px solid rgba(255,255,255,.06); } .topbar__inner { max-width: var(--w-admin); @@ -125,10 +303,10 @@ h1, h2, h3, h4 { margin: 0; } flex: none; } .brand__mark { - width: 26px; height: 26px; - border-radius: 5px; - background: var(--accent); - box-shadow: 0 0 0 1px var(--accent-a30), 0 4px 14px var(--accent-a22); + width: 30px; height: 30px; + border-radius: 7px; + background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 72%, #7c6fd4) 100%); + box-shadow: 0 0 0 1px var(--accent-a30), 0 4px 18px var(--accent-a22); position: relative; flex: none; } @@ -136,19 +314,23 @@ h1, h2, h3, h4 { margin: 0; } content: ""; position: absolute; inset: 0; margin: auto; - width: 11px; height: 11px; + width: 12px; height: 12px; border-radius: 2px; - background: var(--bg); + background: var(--accent-ink); transform: rotate(45deg); } .brand__name { font-family: var(--font-display); - font-size: 19px; - font-weight: 600; - letter-spacing: 0; + font-size: 17px; + font-weight: 700; + letter-spacing: -.01em; color: var(--text); white-space: nowrap; } +.brand__tld { + color: var(--faintest); + font-weight: 400; +} .mainnav { display: flex; gap: 4px; } .nav-toggle { display: none; @@ -231,34 +413,62 @@ h1, h2, h3, h4 { margin: 0; } } .site-footer { margin-top: auto; - padding-top: clamp(44px, 6vw, 76px); + padding: clamp(28px, 4vw, 48px) 0 clamp(20px, 3vw, 32px); border-top: 1px solid var(--divider); - display: grid; - grid-template-columns: 1fr auto 1fr; + display: flex; align-items: center; - gap: 8px 18px; + flex-wrap: wrap; + gap: 6px 20px; color: var(--faintest); - font-size: 12.5px; + font-size: 12px; } -.site-footer span { +.site-footer__copy { + display: flex; + align-items: center; + gap: 10px; white-space: nowrap; } -.site-footer span:nth-child(2) { - color: var(--muted); - justify-self: center; +.site-footer__copy strong { color: var(--faint-2); font-weight: 500; } +.site-footer__version { + font-family: var(--font-mono); + font-size: 10.5px; + color: var(--faintest-2); } -.site-footer span:nth-child(3) { - justify-self: end; +.site-footer__links { + display: flex; + align-items: center; + gap: 2px; + flex-wrap: wrap; } +.site-footer__links a { + color: var(--faintest); + text-decoration: none; + padding: 3px 7px; + border-radius: 5px; + white-space: nowrap; + transition: color .13s, background .13s; +} +.site-footer__links a:hover { color: var(--text-2); background: var(--surface-raised); } +.site-footer__brand { + margin-left: auto; + white-space: nowrap; +} +.site-footer__brand a { + color: var(--faintest); + text-decoration: none; + font-weight: 500; + transition: color .13s; +} +.site-footer__brand a:hover { color: var(--text-2); } @media (max-width: 640px) { .site-footer { - grid-template-columns: 1fr; - justify-items: center; - gap: 6px; - margin-top: 36px; + flex-direction: column; + align-items: flex-start; + gap: 8px; padding: 18px 0 max(20px, env(safe-area-inset-bottom)); - text-align: center; } + .site-footer__brand { margin-left: 0; } + /* legacy compat — nothing to do */ .site-footer span:nth-child(2), .site-footer span:nth-child(3) { justify-self: center; @@ -323,26 +533,28 @@ h1, h2, h3, h4 { margin: 0; } } h1 { font-family: var(--font-display); - font-size: clamp(30px,4.4vw,46px); - font-weight: 600; - letter-spacing: 0; + font-size: clamp(32px, 4.5vw, 52px); + font-weight: 800; + letter-spacing: -.025em; color: var(--text); line-height: 1.05; } h2 { font-family: var(--font-display); font-size: 18px; - font-weight: 600; + font-weight: 700; + letter-spacing: -.01em; color: var(--text-strong); } h3 { font-size: 15px; font-weight: 600; + letter-spacing: -.005em; color: var(--text-strong); } /* page intro */ -.hero { padding: 28px 0 22px; } +.hero { padding: 32px 0 24px; } .hero__kicker { font-family: var(--font-mono); font-size: 10.5px; @@ -350,6 +562,7 @@ h3 { text-transform: uppercase; color: var(--accent); margin: 0 0 10px; + display: block; } .session-number { color: var(--accent); @@ -358,9 +571,9 @@ h3 { } .hero__title { font-family: var(--font-display); - font-size: clamp(30px,4.4vw,46px); - font-weight: 600; - letter-spacing: 0; + font-size: clamp(32px, 4.5vw, 52px); + font-weight: 800; + letter-spacing: -.025em; color: var(--text); line-height: 1.05; margin: 0 0 10px; @@ -382,10 +595,12 @@ h3 { ================================================================ */ .panel { background: var(--surface); - border: 1px solid var(--border); + border: var(--glass-border); border-radius: var(--r-lg); + box-shadow: var(--shadow-sm); overflow: hidden; min-width: 0; + transition: box-shadow 180ms, transform 180ms; } .panel__head { padding: 16px 22px; @@ -398,9 +613,10 @@ h3 { } .panel__title { font-family: var(--font-display); - font-weight: 600; - font-size: 18px; + font-weight: 700; + font-size: 17px; margin: 0; + letter-spacing: -.01em; color: var(--text-strong); } .panel__tag { font-family: var(--font-mono); font-size: 11px; color: var(--faintest); } @@ -421,23 +637,28 @@ h3 { STAT / METRIC TILE ================================================================ */ .stat { - padding: 15px 16px; + padding: 18px 20px; background: var(--surface); - border: 1px solid var(--border); + border: var(--glass-border); border-radius: var(--r-md); + box-shadow: var(--shadow-sm); + position: relative; + overflow: hidden; } .stat__val { font-family: var(--font-display); - font-size: 26px; - font-weight: 600; + font-size: 28px; + font-weight: 700; line-height: 1; - margin: 4px 0 0; + margin: 6px 0 0; + letter-spacing: -.02em; } .stat__sub { font-family: var(--font-mono); - font-size: 11.5px; + font-size: 11px; color: var(--muted); margin-top: 8px; + display: block; } .stat--hero .stat__val { font-size: 34px; } .player-rank { @@ -474,13 +695,14 @@ h3 { line-height: 1; white-space: nowrap; } -.stat--rail { position: relative; padding-left: 20px; } +.stat--rail { position: relative; padding-left: 20px; background: linear-gradient(135deg, var(--surface) 50%, color-mix(in srgb, var(--rail, var(--accent)) 6%, transparent) 100%); } .stat--rail::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--rail, var(--accent)); + border-radius: 0 2px 2px 0; } /* hero stat row (small inline tiles) */ @@ -684,7 +906,7 @@ fieldset[disabled] button { color: var(--text-body); } .tbl tbody tr { cursor: pointer; transition: background 80ms; } -.tbl tbody tr:hover { background: #1e1e25; } +.tbl tbody tr:hover { background: rgba(155,140,240,.04); } .tbl .num-net { font-weight: 600; font-size: 15px; } .tbl .num-pos { color: var(--pos); } .tbl .num-neg { color: var(--neg); } @@ -778,7 +1000,7 @@ th { border-bottom: 1px solid var(--border); } tbody tr { transition: background 80ms; } -tbody tr:hover { background: #1e1e25; } +tbody tr:hover { background: rgba(155,140,240,.04); } tbody tr:not(:last-child) td { border-bottom: 1px solid var(--divider); } td { font-size: 13.5px; color: var(--text-body); } td a { font-weight: 600; color: var(--text-strong); } @@ -1144,8 +1366,8 @@ td a:hover { color: var(--accent); } white-space: nowrap; transition: opacity 120ms, box-shadow 120ms; } -.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 16px var(--accent-a30); } -.btn--primary:hover { opacity: .88; } +.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 2px 12px var(--accent-a30); font-weight: 700; } +.btn--primary:hover { opacity: .88; box-shadow: 0 4px 20px var(--accent-a30); } .btn--ghost { background: var(--field); color: var(--text-2); border: 1px solid var(--border-strong); font-weight: 600; } .btn--ghost:hover { border-color: var(--border-hi); color: var(--text-strong); } .btn--outline { background: var(--accent-tint); color: var(--accent); border: 1px solid var(--accent-chip-bd); } @@ -1164,11 +1386,11 @@ td a:hover { color: var(--accent); } cursor: pointer; background: var(--accent); color: var(--accent-ink); - box-shadow: 0 4px 16px var(--accent-a30); + box-shadow: 0 2px 12px var(--accent-a30); text-decoration: none; - transition: opacity 120ms; + transition: opacity 120ms, box-shadow 120ms; } -.primary-button:hover { opacity: .88; } +.primary-button:hover { opacity: .88; box-shadow: 0 4px 20px var(--accent-a30); } .secondary-button, .ghost-button { display: inline-flex; align-items: center; @@ -1743,8 +1965,11 @@ select.control { cursor: pointer; } .csv__drop.is-drag { border-color: var(--accent); color: var(--accent); } /* Form shell (admin login) */ -.form-shell { display: grid; justify-content: center; padding-top: 40px; } -.form-shell.narrow { grid-template-columns: minmax(320px, 480px); } +.form-shell { display: grid; justify-content: center; padding-top: 48px; } +.form-shell.narrow { grid-template-columns: minmax(320px, 440px); } +.form-shell .panel { + box-shadow: 0 24px 64px rgba(0,0,0,.28), 0 0 0 1px var(--border-strong); +} /* Account / league shell */ .league-grid { @@ -1766,11 +1991,12 @@ select.control { cursor: pointer; } gap: 8px; padding: 18px; color: inherit; - transition: border-color 140ms, transform 140ms; + transition: border-color 160ms, transform 160ms, box-shadow 160ms; } .league-card:hover { - border-color: var(--border-hi); - transform: translateY(-1px); + border-color: var(--accent); + transform: translateY(-2px); + box-shadow: 0 6px 20px rgba(0,0,0,.18), 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent); } .league-card--disabled { opacity: .72; @@ -1806,6 +2032,7 @@ select.control { cursor: pointer; } align-items: stretch; overflow: hidden; border-top: 2px solid var(--accent); + transition: box-shadow 180ms; } .league-row__identity { grid-area: identity; @@ -1837,6 +2064,10 @@ select.control { cursor: pointer; } .league-row__title:hover h2 { color: var(--accent); } +.league-row:hover { + box-shadow: var(--shadow-lg), 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); + transform: translateY(-2px); +} .league-row__desc { margin: 0; color: var(--muted); @@ -2000,16 +2231,21 @@ select.control { cursor: pointer; } padding: 16px; } .player-card { - border: 1px solid var(--border); - border-radius: 8px; - padding: 16px; + border: var(--glass-border); + border-radius: var(--r-md); + padding: 18px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; - transition: border-color 0.15s; + box-shadow: var(--shadow-sm); + transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s; +} +.player-card:hover { + border-color: color-mix(in srgb, var(--accent) 40%, transparent); + box-shadow: var(--shadow-lg), 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent); + transform: translateY(-2px); } -.player-card:hover { border-color: var(--accent); } .player-card--archived { opacity: 0.5; } .player-card__head { display: flex; @@ -2551,6 +2787,43 @@ select.control { cursor: pointer; } .hero__title, h1 { font-size: 24px; } } +/* ================================================================ + PAGE HEADER (app pages) + ================================================================ */ +.page-header { + display: flex; + align-items: flex-start; + justify-content: space-between; + gap: 16px; + margin-bottom: 24px; + padding-bottom: 20px; + border-bottom: 1px solid var(--border); +} +.page-header__chips { + display: flex; + align-items: center; + gap: 6px; + margin-bottom: 6px; +} +.page-header__title { + font-size: clamp(20px, 2.4vw, 26px); + font-weight: 700; + letter-spacing: -.025em; + color: var(--text-strong); + margin: 0 0 3px; +} +.page-header__sub { + font-size: .875rem; + color: var(--muted); + margin: 0; +} +.page-header__actions { + display: flex; + align-items: center; + gap: 8px; + flex-shrink: 0; +} + /* ================================================================ LEAGUE DASHBOARD ================================================================ */ @@ -2675,50 +2948,78 @@ select.control { cursor: pointer; } margin-bottom: 20px; } -/* Navigation card grid */ -.dashboard-grid { - display: grid; - grid-template-columns: repeat(2, minmax(0, 1fr)); - gap: 14px; -} -.dashboard-card { - position: relative; - display: grid; - grid-template-rows: auto auto 1fr auto; - gap: 8px; - padding: 20px; - padding-top: 22px; - color: inherit; - text-decoration: none; - overflow: hidden; - transition: border-color 140ms, transform 140ms, box-shadow 140ms; - min-height: 152px; -} -.dashboard-card::before { - content: ''; - position: absolute; - top: 0; - left: 0; - right: 0; - height: 3px; - background: var(--card-accent, var(--border-strong)); - border-radius: var(--r-lg) var(--r-lg) 0 0; - transition: opacity 140ms; -} -.dashboard-card:hover { - border-color: var(--border-hi); - transform: translateY(-2px); - box-shadow: 0 10px 28px rgba(0,0,0,.22); -} -.dashboard-card--live { - border-color: var(--pos-tint-bd); - background: linear-gradient(160deg, rgba(111,192,147,.07) 0%, transparent 55%), var(--surface); -} -.dashboard-card--live:hover { border-color: var(--pos); } -.dashboard-card__top { +/* KPI tile row (league dashboard) */ +.db-kpi-row { display: flex; align-items: center; - justify-content: space-between; + gap: 0; + margin-bottom: 24px; + padding: 14px 20px; + background: var(--surface); + border: 1px solid var(--border); + border-radius: var(--r-lg); +} +.db-kpi { + flex: 1; + display: flex; + flex-direction: column; + gap: 2px; + padding: 0 20px; +} +.db-kpi:first-child { padding-left: 0; } +.db-kpi:last-child { padding-right: 0; } +.db-kpi + .db-kpi { border-left: 1px solid var(--border); } +.db-kpi__label { + font-size: 10.5px; + font-weight: 500; + letter-spacing: .07em; + text-transform: uppercase; + color: var(--muted); +} +.db-kpi__val { + font-size: 22px; + font-weight: 800; + letter-spacing: -.03em; + color: var(--text-strong); + line-height: 1.1; +} +.db-kpi__sub { + font-size: 11px; + color: var(--muted); + margin-top: 1px; +} + +/* Navigation card list */ +.dashboard-grid { + display: flex; + flex-direction: column; + gap: 0; + border: 1px solid var(--border); + border-radius: var(--r-lg); + overflow: hidden; + background: var(--border); +} +.dashboard-card { + display: flex; + align-items: center; + gap: 16px; + padding: 16px 20px; + color: inherit; + text-decoration: none; + background: var(--surface); + transition: background 120ms; +} +.dashboard-card:hover { + background: var(--surface-head); +} +.dashboard-card--live { + border-left: 3px solid var(--pos); + padding-left: 17px; +} +.dashboard-card__body { flex: 1; min-width: 0; } +.dashboard-card__top { + display: flex; + align-items: baseline; gap: 8px; } .dashboard-card__top .kicker { margin: 0; } @@ -2729,30 +3030,34 @@ select.control { cursor: pointer; } } .dashboard-card__title { display: block; - font-size: 21px; - font-weight: 700; + font-size: 15px; + font-weight: 600; color: var(--text-strong); } .dashboard-card__desc { - margin: 0; + margin: 2px 0 0; color: var(--muted); - font-size: 13.5px; - line-height: 1.45; + font-size: 12.5px; + line-height: 1.4; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; } .dashboard-card__arrow { - font-size: 18px; + font-size: 16px; color: var(--faintest); - justify-self: end; - transition: color 140ms, transform 140ms; + flex: none; + transition: color 120ms, transform 120ms; } .dashboard-card:hover .dashboard-card__arrow { - color: var(--card-accent, var(--accent)); + color: var(--muted); transform: translateX(3px); } @media (max-width: 640px) { .db-stats { grid-template-columns: 1fr 1fr; } - .dashboard-grid { grid-template-columns: 1fr; } + .db-kpi-row { flex-wrap: wrap; } + .db-kpi { min-width: 40%; } .db-hero { flex-direction: column; gap: 14px; } .db-hero__bg-letter { font-size: 140px; } } @@ -2763,52 +3068,48 @@ select.control { cursor: pointer; } inset: 0; z-index: -1; pointer-events: none; - background: - radial-gradient(ellipse 70% 55% at 12% 18%, rgba(155,140,240,.11) 0%, transparent 65%), - radial-gradient(ellipse 50% 45% at 88% 78%, rgba(111,192,147,.07) 0%, transparent 55%), - radial-gradient(ellipse 55% 50% at 68% -8%, rgba(155,140,240,.06) 0%, transparent 60%); } .l-bg::after { content: ""; position: absolute; inset: 0; - background-image: radial-gradient(circle, rgba(255,255,255,.032) 1px, transparent 1px); - background-size: 28px 28px; - mask-image: radial-gradient(ellipse 90% 90% at 50% 40%, black 30%, transparent 100%); + background: + radial-gradient(ellipse 75% 60% at 12% 12%, rgba(155,140,240,.07) 0%, transparent 55%), + radial-gradient(ellipse 55% 45% at 88% 88%, rgba(111,192,147,.04) 0%, transparent 52%); } .l-hero { - padding: clamp(52px, 8vw, 96px) 0 clamp(36px, 5vw, 52px); - max-width: 700px; + padding: clamp(72px, 10vw, 128px) 0 clamp(44px, 6vw, 68px); + max-width: 820px; + position: relative; } .l-hero__kicker { - display: inline-block; - padding: 4px 12px; - border-radius: var(--r-pill); - background: var(--accent-chip); - border: 1px solid var(--accent-chip-bd); - color: var(--accent); + display: block; font-family: var(--font-mono); font-size: 10.5px; - letter-spacing: .10em; + letter-spacing: .12em; text-transform: uppercase; font-weight: 500; - margin-bottom: 22px; + color: var(--muted); + margin-bottom: 20px; } .l-hero__h1 { - font-size: clamp(36px, 5.8vw, 66px); - font-weight: 700; - line-height: 1.04; - letter-spacing: -.02em; + font-size: clamp(48px, 8vw, 96px); + font-weight: 800; + line-height: 1.0; + letter-spacing: -.035em; color: var(--text); - margin: 0 0 18px; + margin: 0 0 22px; +} +.l-hero__accent { + color: var(--accent); } .l-hero__sub { font-size: clamp(15px, 1.8vw, 17px); color: var(--muted); line-height: 1.65; - margin: 0 0 28px; - max-width: 54ch; + margin: 0 0 30px; + max-width: 56ch; } .l-hero__cta { display: flex; @@ -2816,23 +3117,63 @@ select.control { cursor: pointer; } gap: 10px; } +.l-stat-strip { + display: flex; + align-items: center; + gap: 0; + margin-top: 40px; + padding: 18px 24px; + background: var(--surface); + border: var(--glass-border); + border-radius: var(--r-lg); + box-shadow: var(--shadow-sm); +} +.l-stat-strip__item { + display: flex; + flex-direction: column; + gap: 3px; + flex: 1; + padding: 0 24px; +} +.l-stat-strip__item:first-child { padding-left: 0; } +.l-stat-strip__item:last-child { padding-right: 0; } +.l-stat-strip__item + .l-stat-strip__item { + border-left: 1px solid var(--border); +} +.l-stat-strip__label { + font-size: 10.5px; + font-weight: 500; + letter-spacing: .08em; + text-transform: uppercase; + color: var(--muted); +} +.l-stat-strip__val { + font-size: 22px; + font-weight: 800; + letter-spacing: -.025em; + color: var(--text-strong); + line-height: 1; +} +.l-stat-strip__val--accent { color: var(--accent); } + /* Preview strip */ .l-preview { display: grid; - grid-template-columns: 1fr 1.25fr 1fr; - gap: 10px; - margin-bottom: clamp(48px, 7vw, 76px); + grid-template-columns: 1fr 1.35fr 1fr; + gap: 14px; + margin-bottom: clamp(36px, 5vw, 56px); align-items: start; } .l-preview__panel { background: var(--surface); - border: 1px solid var(--border); + border: var(--glass-border); border-radius: var(--r-lg); overflow: hidden; + box-shadow: var(--shadow-md); } .l-preview__panel--featured { border-color: var(--accent-chip-bd); - box-shadow: 0 0 0 1px var(--accent-chip-bd), 0 8px 32px rgba(155,140,240,.10); + box-shadow: var(--shadow-xl), 0 0 0 1px var(--accent-chip-bd); } .l-preview__head { display: flex; @@ -2939,33 +3280,34 @@ select.control { cursor: pointer; } /* Feature grid */ .l-features { display: grid; - grid-template-columns: repeat(4, 1fr); - gap: 1px; - background: var(--border); + grid-template-columns: repeat(2, 1fr); + gap: 0; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; - margin-bottom: clamp(40px, 6vw, 64px); + margin-bottom: clamp(40px, 6vw, 72px); } .l-feature { - background: var(--surface); - padding: 26px 22px; - display: grid; - align-content: start; - gap: 10px; + padding: 28px 28px; + display: flex; + align-items: flex-start; + gap: 16px; + border-right: 1px solid var(--border); + border-bottom: 1px solid var(--border); } +.l-feature:nth-child(2n) { border-right: none; } +.l-feature:nth-last-child(-n+2) { border-bottom: none; } .l-feature__icon { display: flex; align-items: center; justify-content: center; - width: 42px; - height: 42px; - border-radius: var(--r-sm); - background: var(--accent-chip); - border: 1px solid var(--accent-chip-bd); - color: var(--accent); - margin-bottom: 4px; + width: 36px; + height: 36px; + flex: none; + color: var(--muted); + margin-top: 2px; } +.l-feature__body { display: grid; gap: 6px; } .l-feature__title { font-size: 15px; font-weight: 600; @@ -2999,17 +3341,19 @@ select.control { cursor: pointer; } display: flex; flex-direction: column; gap: 14px; - padding: 18px 20px; - border: 1px solid var(--border); + padding: 20px 22px; + border: var(--glass-border); border-radius: var(--r-lg); background: var(--surface); + box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; - transition: border-color 0.15s, box-shadow 0.15s; + transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s; } .explore-card:hover { border-color: var(--accent); - box-shadow: 0 2px 12px color-mix(in srgb, var(--accent) 10%, transparent); + box-shadow: 0 4px 24px color-mix(in srgb, var(--accent) 12%, transparent), 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent); + transform: translateY(-2px); } .explore-card__head { display: flex; flex-direction: column; gap: 4px; } .explore-card__name { font-size: 16px; font-weight: 700; color: var(--text-strong); margin: 0; } @@ -3213,6 +3557,23 @@ select.control { cursor: pointer; } .l-features { grid-template-columns: 1fr; } + .l-stat-strip { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 0; + padding: 14px 16px; + } + .l-stat-strip__item { + padding: 10px 12px; + border-left: none !important; + border-top: 1px solid var(--border); + } + .l-stat-strip__item:first-child, + .l-stat-strip__item:nth-child(2) { + border-top: none; + } + .l-stat-strip__item:nth-child(odd) { border-left: none !important; } + .l-stat-strip__item:nth-child(even) { border-left: 1px solid var(--border) !important; } .league-hub-summary, .league-row__metrics { grid-template-columns: 1fr 1fr; @@ -3352,3 +3713,1391 @@ select.control { cursor: pointer; } .card-menu__item:hover { background: var(--field); color: var(--text); } .card-menu__item--warn { color: var(--neg); } .card-menu__item--warn:hover { background: var(--neg-tint); color: var(--neg); } + +/* ================================================================ + LANDING v2 (lp-* classes) — split hero + ================================================================ */ + +/* Remove default padding; hero handles its own layout */ +.page--landing { + padding: 0; + max-width: none; +} +.page--landing .flash-stack { + max-width: var(--w-public); + margin: 0 auto; + padding: 16px var(--gutter) 0; + width: 100%; +} +.page--landing .site-footer { + max-width: var(--w-public); + margin: 0 auto; + padding-left: var(--gutter); + padding-right: var(--gutter); +} + +/* ================================================================ + LANDING PAGE — split hero + ================================================================ */ +.lp-hero { + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + gap: clamp(48px, 7vw, 100px); + min-height: calc(100vh - 62px); + padding: clamp(56px, 6vw, 80px) clamp(24px, 5vw, 80px); + position: relative; + overflow: hidden; + background: + radial-gradient(ellipse 90% 70% at 50% 110%, #1c0e3e 0%, #100820 55%, var(--bg) 100%), + radial-gradient(ellipse 55% 50% at 85% 20%, rgba(155,140,240,.09) 0%, transparent 60%); +} +.lp-hero::before { + content: "♠"; + position: absolute; + font-size: clamp(420px, 55vw, 820px); + color: rgba(155,140,240,.055); + line-height: 1; + pointer-events: none; + user-select: none; + top: 50%; + left: 5%; + right: auto; + transform: translateY(-50%); +} + +.lp-hero__content { + position: relative; + z-index: 1; + display: flex; + flex-direction: column; + align-items: flex-start; + flex: 1; + max-width: 540px; +} +.lp-hero__visual { + position: relative; + z-index: 1; + flex: 1; + min-width: 0; + max-width: 520px; +} + +.lp-eyebrow { + display: inline-flex; + align-items: center; + gap: 7px; + padding: 5px 14px; + border-radius: 999px; + background: var(--accent-chip); + border: 1px solid var(--accent-chip-bd); + color: var(--accent); + font: 600 10.5px var(--font-mono); + letter-spacing: .10em; + text-transform: uppercase; + margin-bottom: 20px; + align-self: flex-start; +} +.lp-eyebrow::before { + content: ""; + width: 5px; height: 5px; + border-radius: 50%; + background: var(--accent); + flex-shrink: 0; +} + +.lp-h1 { + font-size: clamp(48px, 7vw, 96px); + font-weight: 900; + letter-spacing: -.045em; + line-height: .88; + color: var(--text); + margin: 0 0 24px; +} +.lp-h1__line { display: block; } +.lp-h1__accent { display: block; color: var(--accent); } + +.lp-sub { + font-size: clamp(14px, 1.2vw, 16px); + color: rgba(255,255,255,.55); + line-height: 1.65; + max-width: 44ch; + margin: 0 0 28px; +} + +.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; } +.btn--lg { padding: 13px 26px; font-size: 15px; border-radius: var(--r-md); } + +.lp-trust { + display: flex; + align-items: center; + gap: 10px; + flex-wrap: wrap; + font-size: 11.5px; + color: rgba(255,255,255,.3); + margin-bottom: 0; +} +.lp-trust__sep { color: rgba(255,255,255,.15); } + +/* ---- Demo card ---- */ +.lp-demo { + position: relative; + z-index: 1; + width: 100%; + max-width: 860px; + margin-top: 52px; +} +.lp-demo__card { + background: rgba(14,12,22,.9); + border: 1px solid rgba(155,140,240,.22); + border-radius: var(--r-lg); + overflow: hidden; + backdrop-filter: blur(16px); + box-shadow: + 0 0 0 1px rgba(155,140,240,.07), + 0 28px 72px rgba(0,0,0,.55), + 0 0 120px rgba(155,140,240,.07); +} +.lp-demo__head { + display: flex; + align-items: center; + justify-content: space-between; + padding: 14px 22px; + border-bottom: 1px solid rgba(255,255,255,.07); + background: rgba(255,255,255,.03); + gap: 12px; +} +.lp-demo__kicker { + display: block; + font-size: .6rem; + font-family: var(--font-mono); + letter-spacing: .12em; + text-transform: uppercase; + color: var(--accent); + margin-bottom: 3px; +} +.lp-demo__title { + font-size: .875rem; + font-weight: 600; + color: rgba(255,255,255,.82); +} +.lp-demo__meta { + font-size: .72rem; + font-family: var(--font-mono); + color: rgba(255,255,255,.3); + letter-spacing: .04em; + white-space: nowrap; +} +.lp-demo__table { padding: 0; } +.lp-demo__thead, +.lp-demo__row { + display: grid; + grid-template-columns: 36px 1fr repeat(4, minmax(70px, 90px)); + padding: 0 22px; + align-items: center; +} +.lp-demo__thead { + padding-top: 9px; + padding-bottom: 9px; + background: rgba(255,255,255,.025); + border-bottom: 1px solid rgba(255,255,255,.06); +} +.lp-demo__th { + font-family: var(--font-mono); + font-size: .6rem; + letter-spacing: .1em; + text-transform: uppercase; + color: rgba(255,255,255,.28); + text-align: right; +} +.lp-demo__th:nth-child(1), +.lp-demo__th:nth-child(2) { text-align: left; } +.lp-demo__row { + padding-top: 11px; + padding-bottom: 11px; + border-bottom: 1px solid rgba(255,255,255,.04); + transition: background .1s; +} +.lp-demo__row:last-child { border-bottom: none; } +.lp-demo__row:hover { background: rgba(155,140,240,.05); } +.lp-demo__row--fade { opacity: .65; } +.lp-demo__row--fade2 { opacity: .38; } +.lp-demo__rank { + font-family: var(--font-mono); + font-size: .8125rem; + font-weight: 700; + color: rgba(255,255,255,.28); + text-align: left; +} +.lp-demo__rank--1 { color: #f4c430; } +.lp-demo__rank--2 { color: #b0b8c1; } +.lp-demo__rank--3 { color: #c87941; } +.lp-demo__player { + font-size: .875rem; + font-weight: 500; + color: rgba(255,255,255,.82); +} +.lp-demo__num { + font-family: var(--font-mono); + font-size: .8125rem; + color: rgba(255,255,255,.38); + text-align: right; + font-variant-numeric: tabular-nums; +} +.lp-demo__num--pos { color: var(--pos); } +.lp-demo__num--neg { color: var(--neg); } + +/* ---- Leaderboard demo variant (with rank-delta column) ---- */ +.lp-demo__thead--lb, +.lp-demo__row--lb { + grid-template-columns: 36px 1fr 36px repeat(3, minmax(60px, 80px)); +} +.lp-demo__delta { + font-family: var(--font-mono); + font-size: .72rem; + font-weight: 700; + color: rgba(255,255,255,.22); + text-align: left; +} +.lp-demo__delta--up { color: var(--pos); } +.lp-demo__delta--down { color: var(--neg); } + +/* ---- Shared section header ---- */ +.lp-sec-head { + text-align: center; + margin-bottom: 32px; +} +.lp-sec-title { + font-size: clamp(20px, 2.4vw, 28px); + font-weight: 800; + color: var(--text); + letter-spacing: -.03em; + margin: 10px 0 0; + line-height: 1.2; +} +.lp-sec-sub { + font-size: .875rem; + color: rgba(255,255,255,.4); + margin: 8px 0 0; + line-height: 1.6; +} + +/* ================================================================ + FEATURES SECTION + ================================================================ */ +.lp-features { + padding: clamp(48px, 5vw, 72px) clamp(24px, 5vw, 80px); + border-top: 1px solid rgba(255,255,255,.06); +} +.lp-features__inner { + max-width: var(--w-public); + margin: 0 auto; +} +.lp-feat-grid { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 0; + background: rgba(255,255,255,.05); + border: 1px solid rgba(255,255,255,.07); + border-radius: var(--r-lg); + overflow: hidden; +} +.lp-feat { + padding: 24px 28px; + background: var(--bg); + display: flex; + flex-direction: column; + gap: 8px; +} +.lp-feat + .lp-feat { border-left: 1px solid rgba(255,255,255,.06); } +.lp-feat__icon { + width: 32px; + height: 32px; + color: var(--accent); + opacity: .85; + margin-bottom: 2px; +} +.lp-feat__icon svg { width: 100%; height: 100%; } +.lp-feat__title { + font-size: .9375rem; + font-weight: 700; + color: var(--text-strong); + letter-spacing: -.015em; +} +.lp-feat__desc { + font-size: .85rem; + color: rgba(255,255,255,.42); + line-height: 1.7; +} + +/* ================================================================ + SHOWCASE SECTION + ================================================================ */ +.lp-showcase { + padding: clamp(48px, 5vw, 72px) clamp(24px, 5vw, 80px); + border-top: 1px solid rgba(255,255,255,.06); + background: rgba(155,140,240,.018); +} +.lp-showcase__inner { + max-width: var(--w-public); + margin: 0 auto; +} +.lp-showcase__grid { + display: grid; + grid-template-columns: repeat(2, 1fr); + gap: 20px; + align-items: start; +} + +/* ---- Sessions demo ---- */ +.lp-sess-list { padding: 0; } +.lp-sess-row { + display: flex; + align-items: center; + gap: 14px; + padding: 12px 22px; + border-bottom: 1px solid rgba(255,255,255,.04); + transition: background .1s; +} +.lp-sess-row:last-child { border-bottom: none; } +.lp-sess-row:hover { background: rgba(155,140,240,.05); } +.lp-sess-row--fade { opacity: .6; } +.lp-sess-row--fade2 { opacity: .32; } +.lp-sess-date { + flex-shrink: 0; + width: 38px; + text-align: center; + background: rgba(255,255,255,.04); + border: 1px solid rgba(255,255,255,.07); + border-radius: var(--r-sm); + padding: 4px 0; +} +.lp-sess-date__mon { + display: block; + font-family: var(--font-mono); + font-size: .58rem; + letter-spacing: .1em; + text-transform: uppercase; + color: var(--accent); + line-height: 1; +} +.lp-sess-date__day { + display: block; + font-size: .9375rem; + font-weight: 700; + color: rgba(255,255,255,.75); + line-height: 1.2; + margin-top: 1px; +} +.lp-sess-info { flex: 1; min-width: 0; } +.lp-sess-label { + display: block; + font-size: .8125rem; + font-weight: 500; + color: rgba(255,255,255,.8); + line-height: 1.3; +} +.lp-sess-meta { + display: block; + font-size: .72rem; + font-family: var(--font-mono); + color: rgba(255,255,255,.3); + margin-top: 2px; +} +.lp-sess-pill { + flex-shrink: 0; + font-family: var(--font-mono); + font-size: .6rem; + letter-spacing: .09em; + text-transform: uppercase; + padding: 3px 8px; + border-radius: 999px; + font-weight: 600; +} +.lp-sess-pill--open { + background: rgba(111,192,147,.15); + border: 1px solid rgba(111,192,147,.3); + color: var(--pos); +} +.lp-sess-pill--closed { + background: rgba(255,255,255,.05); + border: 1px solid rgba(255,255,255,.1); + color: rgba(255,255,255,.35); +} + +/* ---- Ledger / settlement demo ---- */ +.lp-ledger-stats { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 0; + border-bottom: 1px solid rgba(255,255,255,.06); +} +.lp-ledger-stat { + padding: 14px 22px; + border-right: 1px solid rgba(255,255,255,.05); + border-bottom: 1px solid rgba(255,255,255,.05); +} +.lp-ledger-stat:nth-child(2n) { border-right: none; } +.lp-ledger-stat:nth-last-child(-n+2) { border-bottom: none; } +.lp-ledger-stat__label { + display: block; + font-family: var(--font-mono); + font-size: .6rem; + letter-spacing: .1em; + text-transform: uppercase; + color: rgba(255,255,255,.28); + margin-bottom: 4px; +} +.lp-ledger-stat__val { + font-family: var(--font-mono); + font-size: .9375rem; + font-weight: 700; + color: rgba(255,255,255,.7); + font-variant-numeric: tabular-nums; +} +.lp-settle-section { padding: 0; } +.lp-settle-head { + padding: 9px 22px; + font-family: var(--font-mono); + font-size: .6rem; + letter-spacing: .1em; + text-transform: uppercase; + color: rgba(255,255,255,.28); + background: rgba(255,255,255,.025); + border-bottom: 1px solid rgba(255,255,255,.06); +} +.lp-settle-row { + display: flex; + align-items: center; + gap: 10px; + padding: 10px 22px; + border-bottom: 1px solid rgba(255,255,255,.04); + transition: background .1s; +} +.lp-settle-row:last-child { border-bottom: none; } +.lp-settle-row:hover { background: rgba(155,140,240,.05); } +.lp-settle-row .lp-demo__meta { flex: 1; text-align: left; } + +/* ---- Session results demo (recon metrics + player table) ---- */ +.lp-recon-grid { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 1px; + background: rgba(255,255,255,.07); + border-bottom: 1px solid rgba(255,255,255,.07); +} +.lp-recon-cell { + background: rgba(10,9,18,.92); + padding: 12px 18px; +} +.lp-recon-label { + display: block; + font-family: var(--font-mono); + font-size: .595rem; + letter-spacing: .09em; + text-transform: uppercase; + color: rgba(255,255,255,.28); + margin-bottom: 5px; +} +.lp-recon-val { + font-family: var(--font-mono); + font-size: 1.1rem; + font-weight: 700; + color: rgba(255,255,255,.72); + font-variant-numeric: tabular-nums; +} +.lp-result-thead { + display: grid; + grid-template-columns: 1fr 64px 72px 90px; + padding: 7px 18px; + background: rgba(255,255,255,.025); + border-bottom: 1px solid rgba(255,255,255,.06); +} +.lp-result-thead > span { + font-family: var(--font-mono); + font-size: .595rem; + letter-spacing: .09em; + text-transform: uppercase; + color: rgba(255,255,255,.28); + text-align: right; +} +.lp-result-thead > span:first-child { text-align: left; } +.lp-result-row { + display: grid; + grid-template-columns: 1fr 64px 72px 90px; + padding: 9px 18px; + border-bottom: 1px solid rgba(255,255,255,.04); + align-items: center; + transition: background .1s; +} +.lp-result-row:last-child { border-bottom: none; } +.lp-result-row:hover { background: rgba(155,140,240,.05); } +.lp-result-due { + font-family: var(--font-mono); + font-size: .72rem; + color: var(--neg); + opacity: .75; + text-align: right; +} +.lp-result-settled { + font-family: var(--font-mono); + font-size: .72rem; + color: rgba(255,255,255,.22); + text-align: right; +} + +/* ================================================================ + BOTTOM CTA SECTION + ================================================================ */ +.lp-bottom-cta { + padding: clamp(48px, 5vw, 72px) clamp(24px, 5vw, 80px); + text-align: center; + border-top: 1px solid rgba(255,255,255,.06); + background: radial-gradient(ellipse 70% 90% at 50% 100%, #1c0e3e 0%, var(--bg) 70%); +} +.lp-bottom-cta__inner { + max-width: 600px; + margin: 0 auto; +} +.lp-bottom-cta__title { + font-size: clamp(24px, 3vw, 36px); + font-weight: 800; + color: var(--text); + letter-spacing: -.03em; + margin: 0 0 12px; +} +.lp-bottom-cta__sub { + font-size: .9375rem; + color: rgba(255,255,255,.4); + margin: 0 0 28px; + line-height: 1.6; +} + +/* ================================================================ + LANDING RESPONSIVE + ================================================================ */ +@media (max-width: 960px) { + .lp-hero { + flex-direction: column; + align-items: flex-start; + justify-content: flex-start; + min-height: 0; + } + .lp-hero__content { max-width: 100%; } + .lp-hero__visual { max-width: 100%; width: 100%; } + .lp-feat-grid { grid-template-columns: 1fr; } + .lp-feat + .lp-feat { border-left: none; border-top: 1px solid rgba(255,255,255,.06); } +} +@media (max-width: 680px) { + .lp-hero__visual { display: none; } + .lp-showcase__grid { grid-template-columns: 1fr; } + .lp-demo__thead--lb, + .lp-demo__row--lb { grid-template-columns: 28px 1fr 32px 80px; } + .lp-demo__thead--lb > span:nth-child(5), + .lp-demo__thead--lb > span:nth-child(6), + .lp-demo__row--lb > span:nth-child(5), + .lp-demo__row--lb > span:nth-child(6) { display: none; } +} +@media (max-width: 440px) { + .lp-hero { padding-left: 16px; padding-right: 16px; } + .lp-features, + .lp-showcase, + .lp-bottom-cta { padding-left: 16px; padding-right: 16px; } + .lp-feat-grid { border-radius: var(--r-md); } +} + + +/* ================================================================ + DASHBOARD OVERVIEW REDESIGN + ================================================================ */ +.db-header { + display: flex; + align-items: flex-start; + justify-content: space-between; + gap: 16px; + margin-bottom: 28px; +} +.db-header__chips { + display: flex; + gap: 6px; + margin-bottom: 10px; + flex-wrap: wrap; + align-items: center; +} +.db-header__title { + font-size: clamp(22px, 3vw, 30px); + font-weight: 800; + color: var(--text-strong); + letter-spacing: -.025em; + line-height: 1.15; + margin: 0; +} +.db-header__sub { + margin: 6px 0 0; + color: var(--text-muted); + font-size: .875rem; + line-height: 1.5; +} +.db-header__actions { + display: flex; + gap: 8px; + flex-shrink: 0; + padding-top: 2px; +} + +.db-live-alert { + display: flex; + align-items: center; + gap: 10px; + background: rgba(111,192,147,.07); + border: 1px solid rgba(111,192,147,.22); + border-radius: var(--r-md); + padding: 11px 16px; + margin-bottom: 24px; + font-size: .875rem; + color: var(--pos); +} +.db-live-alert__pulse { + width: 8px; + height: 8px; + border-radius: 50%; + background: var(--pos); + flex-shrink: 0; + box-shadow: 0 0 0 0 rgba(111,192,147,.4); + animation: pulse-ring 2s ease-in-out infinite; +} +@keyframes pulse-ring { + 0% { box-shadow: 0 0 0 0 rgba(111,192,147,.5); } + 70% { box-shadow: 0 0 0 6px rgba(111,192,147,0); } + 100% { box-shadow: 0 0 0 0 rgba(111,192,147,0); } +} +.db-live-alert__text { flex: 1; font-weight: 500; } +.db-live-alert__link { color: var(--pos); font-weight: 600; white-space: nowrap; } +.db-live-alert__link:hover { text-decoration: underline; } + +.db-stat-grid { + display: grid; + grid-template-columns: repeat(4, 1fr); + gap: 12px; + margin-bottom: 24px; +} +.db-stat { + background: var(--surface); + border: 1px solid var(--border); + border-radius: var(--r-md); + padding: 16px 18px; + display: flex; + align-items: center; + gap: 14px; +} +.db-stat__icon { + width: 40px; + height: 40px; + border-radius: var(--r-sm); + background: rgba(255,255,255,.05); + color: var(--text-muted); + display: flex; + align-items: center; + justify-content: center; + flex-shrink: 0; +} +.db-stat__icon--accent { background: var(--accent-chip); border: 1px solid var(--accent-chip-bd); color: var(--accent); } +.db-stat__icon--pos { background: rgba(111,192,147,.12); color: var(--pos); } +.db-stat__icon--warn { background: rgba(224,177,92,.12); color: var(--warn); } +.db-stat__num { + display: block; + font-size: 1.65rem; + font-weight: 800; + color: var(--text-strong); + letter-spacing: -.035em; + line-height: 1.1; +} +.db-stat__label { + display: block; + font-size: .72rem; + color: var(--text-muted); + margin-top: 3px; + font-weight: 500; + letter-spacing: .02em; +} + +.db-cash { + display: flex; + align-items: stretch; + background: var(--surface); + border: 1px solid var(--border); + border-radius: var(--r-lg); + overflow: hidden; + margin-bottom: 16px; +} +.db-cash__stat { + flex: 1; + padding: 16px 20px; + display: flex; + flex-direction: column; + gap: 5px; + min-width: 0; +} +.db-cash__div { + width: 1px; + background: var(--border); + flex-shrink: 0; +} +.db-cash__label { + font-size: .68rem; + font-weight: 600; + color: var(--text-muted); + letter-spacing: .05em; + text-transform: uppercase; + font-family: var(--font-mono); + white-space: nowrap; +} +.db-cash__val { + font-size: 1.375rem; + font-weight: 800; + color: var(--text-strong); + letter-spacing: -.03em; + line-height: 1.1; + font-variant-numeric: tabular-nums; + white-space: nowrap; +} + +.db-cal { + background: var(--surface); + border: 1px solid var(--border); + border-radius: var(--r-lg); + padding: 16px 20px 18px; + margin-bottom: 16px; + position: relative; +} +.db-cal__hdr { + display: flex; + align-items: center; + justify-content: space-between; + margin-bottom: 12px; +} +.db-cal__title { + font-size: .68rem; + font-weight: 600; + color: var(--muted); + text-transform: uppercase; + letter-spacing: .05em; + font-family: var(--font-mono); +} +.db-cal__nav-group { + display: flex; + align-items: center; + gap: 6px; +} +.db-cal__year { + font-size: .78rem; + font-weight: 600; + color: var(--text-2); + font-family: var(--font-mono); + min-width: 34px; + text-align: center; +} +.db-cal__nav { + background: none; + border: 1px solid var(--border); + border-radius: 4px; + color: var(--muted); + cursor: pointer; + font-size: 1rem; + line-height: 1; + padding: 1px 6px 3px; + transition: color .15s, border-color .15s; +} +.db-cal__nav:hover:not(:disabled) { + color: var(--text); + border-color: var(--border-strong); +} +.db-cal__nav:disabled { + opacity: .25; + cursor: not-allowed; +} +.db-cal__grid { + display: grid; + grid-template-rows: 14px repeat(7, 1fr); + grid-auto-flow: column; + grid-auto-columns: 1fr; + gap: 3px; + height: 132px; + width: 100%; +} +.db-cal__mc { + font-size: .59rem; + font-family: var(--font-mono); + color: var(--faintest); + letter-spacing: .02em; + display: flex; + align-items: flex-end; + padding-bottom: 1px; + user-select: none; +} +.db-cal__cell { + border-radius: 3px; + background: var(--border); + min-width: 0; + min-height: 0; +} +.db-cal__cell--on { + background: var(--accent); + opacity: .82; + cursor: default; +} +.db-cal__cell--on:hover { + opacity: 1; +} +.db-cal__cell--multi { + background: var(--accent); + opacity: 1; +} +.db-cal__cell--dim { + background: var(--surface-raised); +} +.db-cal__cell--out { + background: var(--surface-sunk); + opacity: .5; +} +.db-cal__tip { + position: fixed; + z-index: 300; + background: var(--surface-raised); + border: 1px solid var(--border-strong); + border-radius: 6px; + padding: 5px 10px; + font-size: .72rem; + color: var(--text-body); + pointer-events: none; + white-space: nowrap; + font-family: var(--font-mono); + box-shadow: 0 4px 16px rgba(0,0,0,.45); +} + +.db-nav-grid { + display: grid; + grid-template-columns: repeat(2, 1fr); + gap: 12px; +} +.db-nav-tile { + background: var(--surface); + border: 1px solid var(--border); + border-radius: var(--r-lg); + padding: 20px; + display: flex; + align-items: flex-start; + gap: 16px; + text-decoration: none; + transition: border-color .15s, background .15s, box-shadow .15s; + position: relative; +} +.db-nav-tile:hover { + border-color: var(--accent-chip-bd); + background: rgba(155,140,240,.04); + box-shadow: 0 4px 24px rgba(0,0,0,.18); +} +.db-nav-tile__icon { + width: 44px; + height: 44px; + border-radius: 12px; + background: var(--accent-chip); + border: 1px solid var(--accent-chip-bd); + color: var(--accent); + display: flex; + align-items: center; + justify-content: center; + flex-shrink: 0; + transition: background .15s; +} +.db-nav-tile__body { flex: 1; min-width: 0; } +.db-nav-tile__title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; } +.db-nav-tile__title { + font-size: .9375rem; + font-weight: 700; + color: var(--text-strong); +} +.db-nav-tile__count { + font-size: .7rem; + color: var(--text-muted); + font-weight: 600; + background: var(--surface-sunk); + border: 1px solid var(--border); + border-radius: 999px; + padding: 2px 9px; + line-height: 1.6; + white-space: nowrap; +} +.db-nav-tile__desc { + font-size: .8125rem; + color: var(--text-muted); + margin: 0; + line-height: 1.5; +} +.db-nav-tile__arrow { + font-size: 17px; + color: var(--text-muted); + opacity: .3; + transition: opacity .15s, transform .15s; + flex-shrink: 0; + align-self: center; +} +.db-nav-tile:hover .db-nav-tile__arrow { opacity: .65; transform: translateX(4px); } + +/* Per-section tile accents */ +.db-nav-tile--sessions { + border-left: 3px solid rgba(111,192,147,.32); +} +.db-nav-tile--sessions .db-nav-tile__icon { + background: rgba(111,192,147,.12); + border: 1px solid rgba(111,192,147,.28); + color: var(--pos); +} +.db-nav-tile--sessions:hover { border-left-color: rgba(111,192,147,.55); } + +.db-nav-tile--leaderboard { + border-left: 3px solid rgba(90,168,232,.28); +} +.db-nav-tile--leaderboard .db-nav-tile__icon { + background: rgba(90,168,232,.09); + border: 1px solid rgba(90,168,232,.24); + color: #5aa8e8; +} +.db-nav-tile--leaderboard:hover { border-left-color: rgba(90,168,232,.5); } + +.db-nav-tile--players { + border-left: 3px solid rgba(155,140,240,.3); +} +.db-nav-tile--players .db-nav-tile__icon { + background: var(--accent-chip); + border: 1px solid var(--accent-chip-bd); + color: var(--accent); +} +.db-nav-tile--players:hover { border-left-color: rgba(155,140,240,.55); } + +.db-nav-tile--ledger { + border-left: 3px solid rgba(224,177,92,.28); +} +.db-nav-tile--ledger .db-nav-tile__icon { + background: rgba(224,177,92,.1); + border: 1px solid rgba(224,177,92,.24); + color: var(--warn); +} +.db-nav-tile--ledger:hover { border-left-color: rgba(224,177,92,.5); } + +/* Live tile overrides the sessions color */ +.db-nav-tile--sessions.db-nav-tile--live { + border-left-color: rgba(111,192,147,.55); + background: rgba(111,192,147,.04); +} +.db-nav-tile--sessions.db-nav-tile--live:hover { + border-left-color: rgba(111,192,147,.78); + background: rgba(111,192,147,.08); +} +.db-nav-tile--sessions.db-nav-tile--live .db-nav-tile__icon { + background: rgba(111,192,147,.18); + border-color: rgba(111,192,147,.4); +} + +@media (max-width: 960px) { + .db-stat-grid { grid-template-columns: repeat(2, 1fr); } + .db-nav-grid { grid-template-columns: 1fr; } +} +@media (max-width: 700px) { + .db-cash { flex-wrap: wrap; } + .db-cash__stat { flex: 1 1 40%; } + .db-cash__div { display: none; } + .db-cal__grid { height: 110px; } +} +@media (max-width: 560px) { + .db-header { flex-direction: column; gap: 12px; } + .db-cash__val { font-size: 1.125rem; } + .db-cal__grid { height: 96px; } + .db-cal__mc { font-size: .52rem; } +} + +/* ================================================================ + LEAGUES INDEX — card list + ================================================================ */ +.li-board { + display: flex; + flex-direction: column; + gap: 10px; +} +.li-card { + background: var(--surface); + border: 1px solid var(--border); + border-radius: var(--r-lg); + overflow: hidden; + transition: border-color .15s, box-shadow .15s; + display: flex; + flex-direction: row; +} +.li-card:hover { border-color: var(--border-strong); box-shadow: 0 2px 16px rgba(0,0,0,.14); } +.li-card--live { border-color: rgba(111,192,147,.3); } +.li-card--live:hover { border-color: rgba(111,192,147,.5); } + +/* left initial badge column */ +.li-card__aside { + width: 56px; + flex-shrink: 0; + display: flex; + align-items: center; + justify-content: center; + background: var(--surface-sunk); + border-right: 1px solid var(--border); +} +.li-card--live .li-card__aside { + background: rgba(111,192,147,.05); + border-right-color: rgba(111,192,147,.2); +} +.li-card__initial { + font-size: 1.375rem; + font-weight: 800; + color: var(--accent); + letter-spacing: -.03em; + line-height: 1; + opacity: .75; + user-select: none; +} +.li-card--live .li-card__initial { color: var(--pos); } + +/* right content column */ +.li-card__body { + flex: 1; + min-width: 0; + display: flex; + flex-direction: column; +} + +/* top section: name + badges + desc on left, stats on right */ +.li-card__head { + display: flex; + align-items: flex-start; + justify-content: space-between; + gap: 20px; + padding: 18px 20px 14px; +} +.li-card__info { flex: 1; min-width: 0; } +.li-card__name-row { + display: flex; + align-items: center; + gap: 8px; + margin-bottom: 6px; + flex-wrap: wrap; +} +.li-card__name { + font-size: 1.05rem; + font-weight: 700; + color: var(--text-strong); + text-decoration: none; + line-height: 1.25; +} +.li-card__name:hover { color: var(--accent); } +.li-card__chips { + display: flex; + gap: 5px; + flex-wrap: wrap; + margin-bottom: 6px; +} +.li-card__desc { + font-size: .8125rem; + color: var(--text-muted); + margin: 0; + line-height: 1.5; +} +.li-card__stats { + display: flex; + gap: 20px; + flex-shrink: 0; + align-self: flex-start; + padding-top: 2px; +} +.li-stat { + display: flex; + flex-direction: column; + align-items: flex-end; + gap: 2px; +} +.li-stat span { + font-size: .65rem; + color: var(--text-muted); + font-weight: 500; + letter-spacing: .05em; + text-transform: uppercase; + white-space: nowrap; +} +.li-stat strong { + font-size: 1rem; + font-weight: 700; + color: var(--text-strong); + font-variant-numeric: tabular-nums; + font-family: var(--font-mono); +} + +/* leaders strip — podium chips */ +.li-card__leaders { + display: flex; + align-items: center; + gap: 0; + padding: 9px 20px; + border-top: 1px solid var(--border); + background: rgba(255,255,255,.015); + overflow: hidden; +} +.li-card__leaders-label { + font-size: .6rem; + font-weight: 600; + letter-spacing: .09em; + text-transform: uppercase; + color: var(--text-muted); + margin-right: 14px; + white-space: nowrap; + flex-shrink: 0; +} +.li-podium { + display: flex; + gap: 7px; + flex: 1; + min-width: 0; + flex-wrap: wrap; +} +.li-podium-item { + display: flex; + align-items: center; + gap: 5px; + padding: 4px 10px 4px 7px; + border-radius: var(--r-md); + border: 1px solid var(--border); + background: var(--surface-sunk); + flex-shrink: 0; +} +.li-podium-item--1 { border-color: rgba(244,196,48,.3); background: rgba(244,196,48,.05); } +.li-podium-item--2 { border-color: rgba(176,184,193,.2); background: rgba(176,184,193,.04); } +.li-podium-item--3 { border-color: rgba(200,121,65,.22); background: rgba(200,121,65,.04); } +.li-podium-rank { + font-family: var(--font-mono); + font-size: .65rem; + font-weight: 700; + color: var(--text-muted); +} +.li-podium-item--1 .li-podium-rank { color: #f4c430; } +.li-podium-item--2 .li-podium-rank { color: #b0b8c1; } +.li-podium-item--3 .li-podium-rank { color: #c87941; } +.li-podium-name { + font-size: .8125rem; + color: var(--text-2); +} +.li-podium-net { + font-family: var(--font-mono); + font-size: .75rem; + font-variant-numeric: tabular-nums; + font-weight: 600; +} + +/* footer: meta + actions */ +.li-card__footer { + display: flex; + align-items: center; + justify-content: space-between; + gap: 12px; + padding: 9px 20px; + border-top: 1px solid var(--border); +} +.li-card__meta { + font-size: .75rem; + color: var(--text-muted); + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} +.li-card__actions { + display: flex; + align-items: center; + gap: 4px; + flex-shrink: 0; +} +.li-action-link { + font-size: .75rem; + color: var(--text-muted); + padding: 4px 9px; + border-radius: var(--r-sm); + text-decoration: none; + transition: color .12s, background .12s; + font-weight: 500; +} +.li-action-link:hover { color: var(--text-2); background: var(--surface-raised); } + +@media (max-width: 640px) { + .li-card__aside { width: 44px; } + .li-card__initial { font-size: 1.1rem; } + .li-card__head { flex-direction: column; gap: 12px; } + .li-card__stats { flex-direction: row; align-self: auto; } + .li-stat { align-items: flex-start; } + .li-card__footer { flex-wrap: wrap; gap: 8px; } + .li-action-link { display: none; } +} +@media (max-width: 400px) { + .li-card__aside { display: none; } +} + + +/* ================================================================ + ACCOUNT SETTINGS REDESIGN + ================================================================ */ +.settings-profile { + display: flex; + align-items: center; + gap: 18px; + margin-bottom: 28px; + padding-bottom: 24px; + border-bottom: 1px solid var(--border); +} +.settings-avatar { + width: 52px; + height: 52px; + border-radius: 50%; + background: var(--accent-chip); + border: 2px solid var(--accent-chip-bd); + color: var(--accent); + font-size: 1.25rem; + font-weight: 700; + display: flex; + align-items: center; + justify-content: center; + flex-shrink: 0; + letter-spacing: -.01em; +} +.settings-profile__title { + font-size: 1.25rem; + font-weight: 700; + color: var(--text-strong); + margin: 0 0 4px; +} +.settings-profile__email { + font-size: .875rem; + color: var(--text-muted); + margin: 0; +} +.settings-profile__meta { display: flex; flex-direction: column; } + +/* ================================================================ + EXPLORE PAGE REDESIGN + ================================================================ */ +.explore-header { + margin-bottom: 28px; +} +.explore-header__eyebrow { + font: 600 11px var(--font-mono); + letter-spacing: .1em; + text-transform: uppercase; + color: var(--accent); + margin: 0 0 10px; +} +.explore-header__title { + font-size: clamp(22px, 3vw, 30px); + font-weight: 800; + color: var(--text-strong); + letter-spacing: -.025em; + margin: 0 0 6px; +} +.explore-header__sub { + font-size: .875rem; + color: var(--text-muted); + margin: 0; +} + +.explore-search-row { + display: flex; + gap: 8px; + margin-bottom: 28px; + max-width: 560px; +} +.explore-search-row .field-input { + flex: 1; + background: var(--surface); + border: 1px solid var(--border-strong); + border-radius: var(--r-md); + padding: 10px 14px; + font-size: .9375rem; + color: var(--text); + transition: border-color .15s, box-shadow .15s; +} +.explore-search-row .field-input:focus { + outline: none; + border-color: var(--accent-chip-bd); + box-shadow: 0 0 0 3px var(--accent-a22); +} +.explore-search-row .field-input::placeholder { color: var(--text-muted); } + +.explore-cards { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); + gap: 16px; +} +.ex-card { + background: var(--surface); + border: 1px solid var(--border); + border-radius: var(--r-lg); + padding: 20px; + text-decoration: none; + display: flex; + flex-direction: column; + gap: 0; + transition: border-color .15s, box-shadow .15s; +} +.ex-card:hover { + border-color: var(--accent-chip-bd); + box-shadow: 0 4px 24px rgba(0,0,0,.2); +} +.ex-card__initial { + width: 40px; + height: 40px; + border-radius: var(--r-sm); + background: var(--accent-chip); + border: 1px solid var(--accent-chip-bd); + color: var(--accent); + font-size: 1rem; + font-weight: 700; + display: flex; + align-items: center; + justify-content: center; + margin-bottom: 14px; + flex-shrink: 0; +} +.ex-card__name { + font-size: 1rem; + font-weight: 700; + color: var(--text-strong); + margin: 0 0 6px; +} +.ex-card__desc { + font-size: .8125rem; + color: var(--text-muted); + margin: 0 0 16px; + line-height: 1.5; + flex: 1; +} +.ex-card__stats { + display: flex; + gap: 16px; + border-top: 1px solid var(--border); + padding-top: 14px; + margin-top: auto; +} +.ex-card__stat { display: flex; flex-direction: column; gap: 2px; } +.ex-card__stat .kicker { font-size: .65rem; } +.ex-card__stat strong { font-size: .9375rem; font-weight: 700; color: var(--text-strong); } +.ex-card__footer { + display: flex; + justify-content: flex-end; + padding-top: 12px; + margin-top: 2px; +} +.ex-card__link { + font-size: .75rem; + font-weight: 600; + color: var(--accent); + transition: gap .15s; +} diff --git a/static/css/tokens.css b/static/css/tokens.css index 00e4681..3e68c57 100644 --- a/static/css/tokens.css +++ b/static/css/tokens.css @@ -1,34 +1,37 @@ +@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap'); + :root { /* ---- surfaces (darkest → lightest) ---- */ - --bg: #0f0f12; - --surface: #16161c; - --surface-raised:#1a1a20; - --surface-head: #1c1c24; - --surface-sunk: #131318; - --field: #1f1f27; - --field-alt: #20202a; + --bg: #0a0a0d; + --surface: #111115; + --surface-raised:#16161c; + --surface-head: #18181f; + --surface-sunk: #0d0d11; + --field: #1a1a22; + --field-alt: #1c1c25; /* ---- borders / dividers ---- */ - --border: #26262f; - --border-strong: #2e2e38; - --border-hi: #34343f; - --divider: #1d1d25; - --slash: #3a3a45; + --border: #22222b; + --border-strong: #2a2a34; + --border-hi: #32323d; + --divider: #191921; + --slash: #383843; /* ---- text ---- */ - --text: #f3f1f8; - --text-strong: #ecebf1; - --text-body: #e7e5ec; - --text-2: #bcbac6; - --num: #b0aeba; - --muted: #8f8d99; - --muted-2: #84828e; - --faint: #7d7b87; - --faint-2: #757380; - --faintest: #66646f; - --faintest-2: #57555f; + --text: #f4f2f9; + --text-strong: #edeaf5; + --text-body: #e8e6ef; + --text-2: #bdbbc8; + --num: #b2b0bb; + --muted: #8c8a96; + --muted-2: #82808c; + --faint: #7a7885; + --faint-2: #72707d; + --faintest: #64626d; + --faintest-2: #55535e; - /* ---- accent (violet) ---- */ + /* ---- accent ---- */ + /* To swap brand color later: edit these 7 vars only */ --accent: #9b8cf0; --accent-ink: #12101e; --accent-tint: #1f1d2e; @@ -65,12 +68,22 @@ --line-1: #9b8cf0; --line-2: #6fc093; --line-3: #e0b15c; --line-4: #cf6f86; --line-5: #8f93c2; + /* ---- elevation shadows ---- */ + --shadow-sm: 0 1px 3px rgba(0,0,0,.30), 0 1px 2px rgba(0,0,0,.22); + --shadow-md: 0 4px 16px rgba(0,0,0,.34), 0 2px 6px rgba(0,0,0,.24); + --shadow-lg: 0 12px 36px rgba(0,0,0,.42), 0 4px 12px rgba(0,0,0,.28); + --shadow-xl: 0 24px 64px rgba(0,0,0,.52), 0 8px 24px rgba(0,0,0,.32); + + /* ---- glass panel effect ---- */ + --glass-border: 1px solid rgba(255,255,255,.055); + --glass-bg: rgba(255,255,255,.02); + /* ---- spacing scale (4pt) ---- */ --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:20px; --s6:24px; --s8:32px; --s10:40px; --s12:48px; /* ---- radii ---- */ - --r-pill:6px; --r-sm:9px; --r-md:11px; --r-lg:14px; + --r-pill:6px; --r-sm:9px; --r-md:12px; --r-lg:16px; /* ---- containers ---- */ --w-public:1320px; @@ -79,6 +92,6 @@ --gutter: clamp(16px, 4vw, 40px); /* ---- Chart.js backward compat (read as raw strings by JS) ---- */ - --text-muted: #bcbac6; - --line: #26262f; + --text-muted: #bdbbc8; + --line: #22222b; } diff --git a/static/favicon.svg b/static/favicon.svg index fe83d79..29d8775 100644 --- a/static/favicon.svg +++ b/static/favicon.svg @@ -1,4 +1,4 @@ - + diff --git a/templates/_league_sidebar.html b/templates/_league_sidebar.html new file mode 100644 index 0000000..4fbaef3 --- /dev/null +++ b/templates/_league_sidebar.html @@ -0,0 +1,87 @@ + diff --git a/templates/account_login.html b/templates/account_login.html index da8ddb8..20ad18b 100644 --- a/templates/account_login.html +++ b/templates/account_login.html @@ -1,27 +1,68 @@ {% extends "base.html" %} -{% block title %}Login · myboker.org{% endblock %} +{% block title %}Sign in · myboker.org{% endblock %} +{% block page_class %}page--auth{% endblock %} {% block content %} -
-
- -
-

Owner access

-

Account login

-

Manage leagues, players, sessions, and ledger entries.

+
+
+
+ +
+ myboker.org +
+ +

Welcome back.

+

Sign in to manage your leagues, sessions, and ledger.

+ + + +
+ + +
+
+ + +
+ + + + +

No account yet? Create one

- - - - Create account - Forgot password? - +
+ +
{% endblock %} diff --git a/templates/account_register.html b/templates/account_register.html index d0c65b3..3b3f5cc 100644 --- a/templates/account_register.html +++ b/templates/account_register.html @@ -1,30 +1,71 @@ {% extends "base.html" %} {% block title %}Create Account · myboker.org{% endblock %} +{% block page_class %}page--auth{% endblock %} {% block content %} -
-
- -
-

Owner account

-

Create account

-

Accounts are for league owners and managers.

+
+
+
+ +
+ myboker.org +
+ +

Start your league.

+

Create an account to manage leagues, players, and sessions.

+ + + +
+ + +
+
+ + +
+
+ + +
+ + + +

Already have an account? Sign in

- - - - - Login instead - +
+ +
{% endblock %} diff --git a/templates/account_settings.html b/templates/account_settings.html index 8bbe18d..e205e82 100644 --- a/templates/account_settings.html +++ b/templates/account_settings.html @@ -2,14 +2,13 @@ {% block title %}Account settings · myboker.org{% endblock %} {% block content %} -
-

Account

-

Settings

-

Manage your email address, password, and account.

-
- -
-
+
+
{{ user.email[0] | upper }}
+
+

Account Settings

+ +
+
diff --git a/templates/base.html b/templates/base.html index 1cb7909..3fd23af 100644 --- a/templates/base.html +++ b/templates/base.html @@ -15,7 +15,7 @@
- myboker.org + myboker.org
- {% block subnav %}{% endblock %} +
+ {% block sidebar %}{% endblock %}
+ {% block subnav %}{% endblock %} {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %}
@@ -66,11 +68,22 @@ {% block content %}{% endblock %}
+
+{% endif %} + +
+ + +
+ +
+
+
+ Sessions + {% if counts.open_sessions > 0 %} + {{ counts.open_sessions }} live + {% endif %} +
+

Open a session to start tracking buy-ins and cashouts in real time. Close it when everyone is done.

+
+
- -
- Roster - {{ counts.players }} active + +
+
- Players -

Add and manage player records for stats and ledger entry.

- +
+
+ Leaderboard +
+

Net profit, ROI, win rate, and rank delta. Filter by eligible players or switch to recent form.

+
+
- -
- Schedule - {% if counts.open_sessions > 0 %} - {{ counts.open_sessions }} live - {% else %} - {{ counts.sessions }} total - {% endif %} + +
+
- Sessions -

Create sessions, record events, and manage open/closed state.

- +
+
+ Players +
+

View each player's full session history, net trend, and individual stats over time.

+
+
- - diff --git a/templates/league_leaderboard.html b/templates/league_leaderboard.html index 67f87db..7d6fa2d 100644 --- a/templates/league_leaderboard.html +++ b/templates/league_leaderboard.html @@ -1,12 +1,13 @@ {% extends "base.html" %} {% block title %}Leaderboard · {{ league.name }} · myboker.org{% endblock %} -{% block subnav %}{% include "_league_subnav.html" %}{% endblock %} +{% block sidebar %}{% include "_league_sidebar.html" %}{% endblock %} +{% block page_class %}page--app{% endblock %} {% block content %} -
+