:root {
    color-scheme: dark;
    --font-body: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-display: "HelveticaNeue-CondensedBlack", "Helvetica Neue Condensed Black", "HelveticaNeue-CondensedBold", "Arial Narrow", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --bg: #000000;
    --surface: rgba(255, 255, 255, 0.08);
    --surface-strong: rgba(255, 255, 255, 0.12);
    --surface-soft: rgba(255, 255, 255, 0.06);
    --line: rgba(255, 255, 255, 0.14);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.68);
    --subtle: rgba(255, 255, 255, 0.45);
    --teal: #0d9a92;
    --teal-soft: rgba(13, 154, 146, 0.24);
    --mint: #20d7ca;
    --purple: #6338b0;
    --purple-bright: #7c3aed;
    --purple-soft: rgba(99, 56, 176, 0.34);
    --danger: #ff5d73;
    --win: #20d7ca;
    --loss: #ffb86c;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    --display-skew: skewX(-8deg);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: var(--font-body);
    background:
        radial-gradient(circle at 82% 6%, rgba(99, 56, 176, 0.52), transparent 32rem),
        radial-gradient(circle at 6% 22%, rgba(13, 154, 146, 0.32), transparent 28rem),
        linear-gradient(135deg, #000000 0%, #0d0d0f 52%, #000000 100%);
    color: var(--text);
    overflow-x: hidden;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

.app-root {
    min-height: 100vh;
}

.loading-screen,
.auth-screen,
.portal-shell {
    min-height: 100vh;
}

.loading-screen {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    color: var(--muted);
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 26px;
    background:
        linear-gradient(145deg, rgba(99, 56, 176, 0.72), rgba(13, 154, 146, 0.82)),
        rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(99, 56, 176, 0.28);
}

.brand-mark img {
    display: block;
    width: 68%;
    height: 68%;
    object-fit: contain;
}

.brand-mark.small {
    width: 44px;
    height: 44px;
    border-radius: 16px;
}

.brand-mark.small img {
    width: 70%;
    height: 70%;
}

.auth-screen {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    min-height: 100dvh;
    padding:
        max(88px, calc(48px + env(safe-area-inset-top)))
        clamp(16px, 4vw, 42px)
        max(32px, env(safe-area-inset-bottom));
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 78%, rgba(43, 129, 255, 0.54), transparent 16rem),
        radial-gradient(circle at 50% 50%, rgba(20, 61, 142, 0.36), transparent 25rem),
        linear-gradient(180deg, #020418 0%, #05091f 42%, #030514 100%);
    isolation: isolate;
    text-align: center;
}

.auth-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse at 50% 92%, rgba(32, 137, 255, 0.92) 0 1px, rgba(36, 112, 255, 0.58) 2px, transparent 21%),
        radial-gradient(ellipse at 50% 108%, rgba(38, 130, 255, 0.48), transparent 38%),
        linear-gradient(180deg, rgba(2, 4, 20, 0), rgba(0, 0, 0, 0.62));
    backdrop-filter: blur(1px);
}

.auth-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(75, 158, 255, 0.6) 0 1px, transparent 1.6px);
    background-position: 14% 40%, 83% 30%;
    background-size: 128px 116px, 164px 146px;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 0 24%, #000 43%, transparent 74%);
    mask-image: radial-gradient(circle at 50% 50%, transparent 0 24%, #000 43%, transparent 74%);
    opacity: 0.24;
}

.auth-card,
.hero-card,
.panel,
.profile-card,
.profile-list,
.metric-card {
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.auth-image-sheen {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(108deg, transparent 0%, transparent 42%, rgba(114, 184, 255, 0.16) 47%, transparent 58%),
        radial-gradient(circle at 50% 72%, rgba(51, 139, 255, 0.32), transparent 18rem);
    mix-blend-mode: screen;
    opacity: 0.86;
}

.logo-lockup,
.mini-lockup,
.profile-card,
.section-heading,
.button-row {
    display: flex;
    align-items: center;
}

.logo-lockup {
    position: relative;
    z-index: 1;
    gap: 18px;
}

.logo-lockup h1,
.hero-card h2,
.section-heading h2,
.profile-card h2 {
    margin: 0;
    font-family: var(--font-display);
    font-style: oblique 12deg;
    font-weight: 900;
    letter-spacing: -0.02em;
    transform: var(--display-skew);
    transform-origin: left center;
}

.logo-lockup h1 {
    max-width: 520px;
    font-size: clamp(48px, 8vw, 98px);
    line-height: 0.88;
}

.eyebrow,
.panel-kicker {
    margin: 0 0 6px;
    color: var(--teal);
    font-family: var(--font-display);
    font-style: oblique 12deg;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transform: var(--display-skew);
    transform-origin: left center;
}

.auth-card {
    position: relative;
    z-index: 2;
    width: min(100%, 430px);
    min-height: auto;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 34px);
    border: 1px solid rgba(119, 174, 255, 0.24);
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(39, 79, 142, 0.48), rgba(7, 15, 34, 0.74)),
        rgba(8, 14, 32, 0.72);
    box-shadow:
        0 36px 100px rgba(0, 0, 0, 0.62),
        0 0 72px rgba(38, 130, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(30px) saturate(135%);
    backdrop-filter: blur(30px) saturate(135%);
}

.auth-stack {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    gap: clamp(18px, 4vw, 28px);
    width: min(100%, 430px);
}

.auth-logo-lockup {
    --wordmark-width: calc(min(42vw, 136px) * 1.15);
    display: grid;
    width: 100%;
    place-items: center;
    gap: 0;
    line-height: 0;
}

.auth-logo-mark,
.auth-wordmark {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-inline: auto;
}

.auth-logo-mark {
    position: relative;
    z-index: 1;
    width: calc(var(--wordmark-width) * 1.3);
    filter: drop-shadow(0 18px 34px rgba(36, 132, 255, 0.3));
}

.auth-wordmark {
    position: relative;
    z-index: 0;
    width: var(--wordmark-width);
    margin-top: clamp(-64px, -17vw, -36px);
    filter: brightness(0) invert(1) drop-shadow(0 14px 28px rgba(36, 132, 255, 0.22));
}

.auth-card h1 {
    margin: 0 auto 24px;
    max-width: 340px;
    font-family: var(--font-display);
    font-size: clamp(25px, 5.5vw, 36px);
    font-style: oblique 12deg;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.96;
    transform: var(--display-skew);
    transform-origin: left center;
}

.auth-actions {
    display: grid;
    gap: 14px;
}

.auth-button,
.secondary-button,
.danger-button,
.ghost-button,
.text-button {
    border: 0;
    cursor: pointer;
    transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.auth-button:disabled,
.secondary-button:disabled {
    cursor: wait;
    opacity: 0.58;
}

.auth-button:hover,
.secondary-button:hover,
.danger-button:hover,
.ghost-button:hover,
.text-button:hover {
    transform: translateY(-1px);
}

.auth-button {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.auth-button-apple {
    background:
        linear-gradient(180deg, rgba(32, 66, 120, 0.62), rgba(7, 14, 33, 0.78)),
        #070d1d;
    color: #fff;
    border: 1px solid rgba(147, 190, 255, 0.28);
    font-family: -apple-system, BlinkMacSystemFont, var(--font-body);
    font-weight: 600;
}

.auth-button-google {
    border: 1px solid rgba(147, 190, 255, 0.32);
    background:
        linear-gradient(180deg, rgba(87, 167, 255, 0.36), rgba(20, 75, 151, 0.42)),
        #102954;
    color: #f5f5f5;
    font-family: Roboto, Arial, sans-serif;
    font-weight: 500;
}

.auth-provider-icon {
    display: block;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    object-fit: contain;
}

.apple-provider-icon {
    width: 23px;
    height: 23px;
}

.auth-note,
.auth-note a {
    color: var(--muted);
}

.auth-note {
    margin: 18px auto 0;
    max-width: 390px;
    font-size: 10px;
    line-height: 1.6;
}

.auth-note a {
    font-weight: 800;
    text-decoration-color: var(--teal);
}

.status-banner {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.status-error {
    border: 1px solid rgba(255, 93, 115, 0.42);
    background: rgba(255, 93, 115, 0.12);
    color: #ffd7de;
}

.status-info {
    border: 1px solid rgba(13, 154, 146, 0.34);
    background: rgba(13, 154, 146, 0.1);
    color: #d7fff0;
}

.portal-shell {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: max(18px, env(safe-area-inset-top)) 16px calc(110px + env(safe-area-inset-bottom));
}

.portal-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 18px;
    background: linear-gradient(180deg, rgba(5, 7, 11, 0.95), rgba(5, 7, 11, 0));
}

.mini-lockup {
    gap: 12px;
}

.mini-lockup strong,
.mini-lockup span {
    display: block;
}

.mini-lockup strong {
    font-family: var(--font-display);
    font-style: oblique 12deg;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transform: var(--display-skew);
    transform-origin: left center;
}

.mini-lockup span {
    color: var(--muted);
    font-size: 12px;
}

.ghost-button,
.secondary-button,
.danger-button {
    border-radius: 999px;
    font-weight: 800;
}

.ghost-button {
    padding: 10px 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.screen-section {
    display: grid;
    gap: 18px;
}

.top-heading {
    padding-top: 12px;
}

.section-heading {
    justify-content: space-between;
    gap: 16px;
}

.section-heading h2,
.section-heading h3 {
    margin: 0;
}

.section-heading h2 {
    font-size: 42px;
}

.section-heading h3,
.panel h3 {
    font-family: var(--font-display);
    font-style: oblique 12deg;
    font-weight: 900;
    font-size: 24px;
    line-height: 1;
    transform: var(--display-skew);
    transform-origin: left center;
}

.hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 26px;
    border-radius: 30px;
}

.hero-card h2 {
    font-size: clamp(42px, 10vw, 72px);
    line-height: 0.9;
}

.hero-card p,
.panel p,
.empty-state p,
.profile-card p {
    color: var(--muted);
    line-height: 1.55;
}

.avatar {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(99, 56, 176, 0.9), rgba(13, 154, 146, 0.95)),
        #111111;
    color: #fff;
    font-family: var(--font-display);
    font-style: oblique 12deg;
    font-weight: 900;
    object-fit: cover;
}

.avatar-large {
    width: 92px;
    height: 92px;
    font-size: 34px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.stats-metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
    min-height: 128px;
    padding: 18px;
    border-radius: 24px;
}

.metric-card span,
.profile-list span,
.subtle {
    color: var(--subtle);
}

.metric-card strong {
    display: block;
    margin-top: 8px;
    font-family: var(--font-display);
    font-style: oblique 12deg;
    font-weight: 900;
    font-size: 38px;
    line-height: 0.95;
    transform: var(--display-skew);
    transform-origin: left center;
}

.metric-card small {
    display: block;
    margin-top: 10px;
    color: var(--muted);
}

.panel-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 14px;
}

.panel {
    border-radius: 26px;
    padding: 22px;
}

.accent-panel {
    background:
        linear-gradient(135deg, rgba(13, 154, 146, 0.2), rgba(99, 56, 176, 0.26)),
        var(--surface);
}

.feature-pills,
.button-row {
    flex-wrap: wrap;
    gap: 10px;
}

.feature-pills {
    display: flex;
    margin-top: 18px;
}

.feature-pills span {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.secondary-button,
.danger-button {
    padding: 12px 16px;
}

.secondary-button {
    background: linear-gradient(135deg, var(--teal), #08726c);
    color: #f8fffe;
}

.secondary-button.compact {
    padding: 10px 14px;
    font-size: 13px;
}

.danger-button {
    background: rgba(255, 93, 115, 0.16);
    color: #ffd7de;
}

.text-button {
    padding: 0;
    background: transparent;
    color: var(--teal);
    font-weight: 800;
}

.match-list {
    display: grid;
    gap: 14px;
}

.match-card {
    display: flex;
    position: relative;
    overflow: hidden;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    background:
        radial-gradient(circle at 14% 8%, rgba(80, 205, 255, 0.2), transparent 18rem),
        radial-gradient(circle at 90% 24%, rgba(124, 58, 237, 0.18), transparent 14rem),
        linear-gradient(135deg, rgba(105, 163, 196, 0.28), rgba(50, 42, 80, 0.5)),
        rgba(255, 255, 255, 0.055);
    box-shadow:
        0 22px 70px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(26px) saturate(130%);
}

.match-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), transparent 42%);
    opacity: 0.55;
}

.match-main {
    min-width: 0;
}

.match-card-header,
.match-card-status,
.match-team,
.match-card-footer,
.match-meta-row {
    position: relative;
    z-index: 1;
}

.match-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.match-card-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(15px, 3.2vw, 24px);
    line-height: 1.1;
}

.match-card-status {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.match-type-label {
    color: #1d8fff;
    font-family: var(--font-display);
    font-size: 18px;
    font-style: oblique 12deg;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transform: var(--display-skew);
    transform-origin: right center;
}

.match-card h3 {
    font-family: var(--font-display);
    font-style: oblique 12deg;
    font-weight: 900;
    letter-spacing: 0.01em;
    transform: var(--display-skew);
    transform-origin: left center;
}

.match-card p {
    color: var(--muted);
    font-size: 13px;
}

.match-teams {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 22px;
}

.match-team {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
}

.match-team > div {
    display: grid;
    gap: 12px;
}

.match-player-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.match-player-row strong {
    color: #fff;
    font-size: clamp(18px, 4vw, 28px);
    line-height: 1.05;
}

.player-initials {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 800;
}

.player-initials.self {
    border-color: #ffe500;
    color: #ffe500;
}

.player-initials.teammate {
    border-color: #2bd454;
    color: #2bd454;
}

.player-initials.opponent {
    border-color: rgba(255, 255, 255, 0.38);
    color: rgba(255, 255, 255, 0.58);
}

.team-score {
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(34px, 8vw, 58px);
    font-style: oblique 12deg;
    line-height: 0.9;
    transform: var(--display-skew);
    transform-origin: right center;
}

.match-result {
    display: inline-flex;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transform: var(--display-skew);
    transform-origin: left center;
}

.match-result.win {
    background: #2fce57;
    color: #fff;
}

.match-result.loss {
    background: rgba(255, 184, 108, 0.18);
    color: #ffd09a;
}

.match-result.synced {
    background: rgba(92, 160, 255, 0.14);
    color: #9fc5ff;
}

.match-score {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: var(--font-display);
    font-style: oblique 12deg;
    font-size: 30px;
    transform: var(--display-skew);
    transform-origin: right center;
}

.match-score span {
    color: var(--subtle);
}

.match-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.match-meta-row,
.match-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.match-meta-row span,
.match-badges span {
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(5, 12, 24, 0.36);
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
}

.match-badges {
    justify-content: flex-end;
}

.match-badges span {
    border-radius: 999px;
}

.empty-state {
    padding: 20px;
    border: 1px dashed var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
}

.stats-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.weekly-summary-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    background:
        radial-gradient(circle at 18% 24%, rgba(80, 205, 255, 0.2), transparent 15rem),
        linear-gradient(145deg, rgba(22, 32, 60, 0.88), rgba(14, 14, 24, 0.9));
}

.weekly-summary-panel h3 {
    margin-bottom: 8px;
}

.weekly-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(74px, 1fr));
    gap: 10px;
    min-width: min(100%, 390px);
}

.weekly-summary-grid div {
    padding: 14px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
}

.weekly-summary-grid strong,
.weekly-summary-grid span {
    display: block;
}

.weekly-summary-grid strong {
    font-family: var(--font-display);
    font-size: 30px;
    font-style: oblique 12deg;
    line-height: 0.95;
    transform: var(--display-skew);
    transform-origin: left center;
}

.weekly-summary-grid span {
    margin-top: 8px;
    color: var(--subtle);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ring-stat {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 132px;
    height: 132px;
    border-radius: 999px;
    background:
        radial-gradient(circle at center, #111111 57%, transparent 58%),
        conic-gradient(var(--teal) var(--value), rgba(255, 255, 255, 0.12) 0);
}

.ring-stat span,
.ring-stat small {
    display: block;
    text-align: center;
}

.ring-stat span {
    font-family: var(--font-display);
    font-style: oblique 12deg;
    font-size: 36px;
    font-weight: 900;
    transform: var(--display-skew);
}

.ring-stat small {
    margin-top: -32px;
    color: var(--subtle);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-card {
    gap: 18px;
    padding: 24px;
    border-radius: 30px;
}

.profile-card h2 {
    font-size: 50px;
    line-height: 0.9;
}

.profile-list {
    display: grid;
    border-radius: 26px;
    overflow: hidden;
}

.profile-list > div,
.profile-list > details > summary {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.profile-list > div:last-child,
.profile-list > details:last-child > summary {
    border-bottom: 0;
}

.club-membership-dropdown {
    border-bottom: 1px solid var(--line);
}

.club-membership-dropdown:not([open]) summary {
    border-bottom: 0;
}

.club-membership-dropdown summary {
    cursor: pointer;
    list-style: none;
}

.club-membership-dropdown summary::-webkit-details-marker {
    display: none;
}

.club-membership-dropdown summary strong::after {
    content: " +";
    color: var(--teal);
}

.club-membership-dropdown[open] summary strong::after {
    content: " -";
}

.club-membership-list {
    display: grid;
    gap: 10px;
    padding: 0 18px 18px;
}

.club-membership-list p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.club-membership-card {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
}

.club-membership-card strong,
.club-membership-card span,
.club-membership-card small {
    display: block;
}

.club-membership-card span,
.club-membership-card small {
    color: var(--muted);
    font-size: 12px;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr 58px 1fr;
    gap: 8px;
    width: min(520px, calc(100% - 28px));
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(8, 11, 16, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
    transform: translateX(-50%);
}

.tab-button,
.action-tab {
    border: 0;
    cursor: pointer;
    color: var(--muted);
}

.tab-button {
    display: grid;
    place-items: center;
    gap: 2px;
    min-height: 52px;
    border-radius: 999px;
    background: transparent;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.tab-button span {
    font-size: 18px;
}

.tab-button.active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
}

.action-tab {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-top: -18px;
    border: 4px solid rgba(8, 11, 16, 0.95);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--teal), var(--purple));
    color: #04100f;
    box-shadow: 0 18px 34px rgba(13, 154, 146, 0.34);
}

.noscript-warning {
    position: fixed;
    inset: auto 16px 16px;
    z-index: 20;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    color: #111;
    font-weight: 800;
}

@media (max-width: 860px) {
    .auth-screen {
        width: 100%;
        min-height: 100dvh;
        padding:
            max(82px, calc(44px + env(safe-area-inset-top)))
            18px
            max(26px, env(safe-area-inset-bottom));
    }

    .logo-lockup {
        align-items: flex-start;
        flex-direction: column;
    }

    .logo-lockup h1 {
        font-size: clamp(44px, 14vw, 74px);
    }

    .auth-card {
        width: 100%;
        max-width: 390px;
        padding: 26px;
        border-radius: 30px;
    }

    .auth-card h1 {
        max-width: 300px;
        font-size: 25px;
    }

    .metrics-grid,
    .panel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .weekly-summary-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .portal-shell {
        padding-inline: 12px;
    }

    .hero-card,
    .stats-panel,
    .weekly-summary-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .metrics-grid,
    .panel-grid {
        grid-template-columns: 1fr;
    }

    .metric-card {
        min-height: 104px;
    }

    .match-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
        border-radius: 26px;
    }

    .match-card-header,
    .match-card-footer {
        width: 100%;
        flex-direction: column;
    }

    .match-card-status,
    .match-badges {
        justify-items: start;
        justify-content: flex-start;
    }

    .weekly-summary-grid {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-list > div,
    .profile-list > details > summary {
        align-items: flex-start;
        flex-direction: column;
    }
}
