:root {
    --bg: #e9eef3;
    --card: #ffffff;
    --text: #152234;
    --sub: #667587;
    --muted: #8a96a5;
    --border: #dfe6ee;
    --navy: #0b1f33;
    --navy-2: #15395a;
    --red: #d7193f;
    --red-dark: #ad1130;
    --teal: #0f8c7a;
    --teal-soft: #e8f6f3;
    --gold: #d9a441;
    --gold-soft: #fff5dc;
    --green: #2fa66a;
    --shadow: 0 12px 30px rgba(15, 35, 58, .08);
    --shadow-soft: 0 6px 18px rgba(15, 35, 58, .06);
    --radius: 6px;
    --shell-accent: #d7193f;
    --shell-accent-soft: #fff0f3;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background:
        linear-gradient(180deg, #f7fafc 0, #e9eef3 260px, #e9eef3 100%);
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-app-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    width: 100%;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(223, 230, 238, .92);
    box-shadow: 0 8px 22px rgba(15, 35, 58, .07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-app-header-inner {
    max-width: 860px;
    min-height: 62px;
    margin: 0 auto;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.site-app-logo {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.site-app-logo-box {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 999px;
    overflow: hidden;
    background: #eff6ff;
    border: 1px solid #dbeafe;
}

.site-app-logo-box img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.site-app-logo-text {
    min-width: 0;
    display: block;
}

.site-app-logo-text strong,
.site-app-logo-text small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.site-app-logo-text strong {
    color: var(--text);
    font-size: 16px;
    line-height: 1.1;
    font-weight: 900;
}

.site-app-logo-text small {
    margin-top: 3px;
    color: var(--sub);
    font-size: 11px;
    line-height: 1.35;
}

.site-app-header-actions {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-app-header-action {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: var(--radius);
    border: 1px solid rgba(215, 25, 63, .18);
    background: #fff7f8;
    color: var(--red-dark);
    font-size: 13px;
    font-weight: 800;
}

.wrap {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 14px 12px 18px;
}

.worldcup-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(11, 31, 51, .98) 0%, rgba(21, 57, 90, .96) 52%, rgba(15, 140, 122, .94) 100%);
    color: #fff;
    box-shadow: var(--shadow);
}

.worldcup-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: .22;
    pointer-events: none;
}

.worldcup-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--red) 0 33%, #fff 33% 42%, var(--gold) 42% 66%, #fff 66% 74%, var(--teal) 74% 100%);
}

.hero-top {
    position: relative;
    z-index: 1;
    padding: 20px 18px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.hero-copy {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0 12px;
    align-items: center;
}

.worldcup-mark {
    grid-row: 1 / span 2;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #ffe5a6;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
}

.worldcup-mark svg {
    width: 34px;
    height: 34px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-copy h1 {
    margin: 0;
    font-size: 27px;
    line-height: 1.12;
    letter-spacing: 0;
    font-weight: 950;
}

.hero-copy p {
    max-width: 560px;
    margin: 7px 0 0;
    color: rgba(255,255,255,.78);
    font-size: 13px;
    line-height: 1.55;
}

.hero-meta {
    flex: 0 0 auto;
    margin-top: 2px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    color: #fff8df;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.20);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.cup-stats {
    position: relative;
    z-index: 1;
    margin: 0 18px 20px;
    padding: 10px 0 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(255,255,255,.18);
}

.stat-card {
    position: relative;
    min-width: 0;
    padding: 2px 12px 0;
    border-radius: 0;
    background: transparent;
    border: 0;
}

.stat-card + .stat-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 2px;
    width: 1px;
    background: rgba(255,255,255,.16);
}

.stat-label {
    display: block;
    color: rgba(255,255,255,.58);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
}

.stat-card strong {
    display: block;
    min-width: 0;
    margin-top: 5px;
    color: #fff;
    font-size: 18px;
    line-height: 1.1;
    font-weight: 900;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.list-filter-bar {
    margin: 12px 0 0;
    padding: 10px;
    border-radius: var(--radius);
    background: rgba(255,255,255,.88);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 9px;
}

.filter-row {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    width: 34px;
    flex: 0 0 auto;
    color: #34495f;
    font-size: 12px;
    font-weight: 900;
}

.segmented-filter {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.segmented-filter::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    flex: 0 0 auto;
    height: 31px;
    padding: 0 12px;
    border: 1px solid #d8e1ea;
    border-right: 0;
    background: #fff;
    color: #52616f;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.filter-btn:first-child {
    border-radius: var(--radius) 0 0 var(--radius);
}

.filter-btn:last-child {
    border-right: 1px solid #d8e1ea;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.filter-btn.active {
    border-color: var(--navy-2);
    background: var(--navy-2);
    color: #fff;
}

.list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.date-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.date-heading {
    position: sticky;
    top: 63px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 30px;
    padding: 2px 2px 4px;
    border-radius: 0;
    background: rgba(233, 238, 243, .86);
    border: 0;
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.date-title {
    min-width: 0;
    color: #52616f;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.date-stage {
    flex: 0 0 auto;
    color: #7a8795;
    background: transparent;
    border: 1px solid rgba(122, 135, 149, .18);
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}

.match {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    position: relative;
}

.match.good {
    border-color: rgba(215, 25, 63, .55);
    box-shadow: 0 10px 24px rgba(215,25,63,.10);
}

.match.confidence-strong {
    border-left: 4px solid rgba(215, 25, 63, .82);
}

.match.confidence-steady {
    border-left: 4px solid rgba(15, 140, 122, .72);
}

.match.confidence-watch {
    border-left: 4px solid rgba(217, 164, 65, .82);
}

.match:active {
    transform: scale(.996);
}

.match-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 12px 10px;
}

.left {
    min-width: 0;
    flex: 1;
}

.topline {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.jid,
.date {
    color: var(--sub);
    font-size: 12px;
    font-weight: 650;
}

.league {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text);
    font-size: 12.5px;
    font-weight: 750;
}

.l-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(15,140,122,.08);
    flex: 0 0 auto;
}

.teams {
    margin-top: 11px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.45;
}

.teams .vs {
    min-width: 58px;
    padding: 5px 8px;
    border-radius: var(--radius);
    background: #f3f6f9;
    color: var(--navy-2);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    flex: 0 0 auto;
}

.teams .t {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.teams .t.away {
    justify-content: flex-end;
    text-align: right;
}

.teams .team-logo {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    border-radius: 999px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid rgba(223, 230, 238, .95);
}

.teams .team-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-state,
.confidence-pill {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.match-state.future {
    background: var(--teal-soft);
    color: #087467;
}

.match-state.live {
    background: #fff1f4;
    color: var(--red-dark);
}

.match-state.waitReview {
    background: var(--gold-soft);
    color: #966614;
}

.confidence-pill.strong {
    background: #fff1f4;
    color: var(--red-dark);
}

.confidence-pill.steady {
    background: var(--teal-soft);
    color: #087467;
}

.confidence-pill.watch {
    background: var(--gold-soft);
    color: #966614;
}

.status {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-left: auto;
}

.badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--sub);
    white-space: nowrap;
    font-weight: 750;
}

.badge.hit {
    border-color: #f2b8c1;
    background: #fff1f4;
    color: var(--red-dark);
}

.badge.miss {
    border-color: #e5e7eb;
    background: #f7f8fa;
    color: #6b7280;
}

.badge.pending {
    border-color: #f1d796;
    background: var(--gold-soft);
    color: #966614;
}

.recommend {
    margin: 0 12px 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(180deg, #fbfcfd 0%, #f5f8fb 100%);
    border-radius: var(--radius);
    border: 1px solid #edf1f5;
}

.recommend-main {
    flex: 1;
    min-width: 0;
}

.recommend-line {
    flex: 1;
    font-size: 11px;
    color: var(--text);
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.reason-line {
    margin-top: 5px;
    color: #5f6b76;
    font-size: 12px;
    line-height: 1.55;
}

.forecast {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: 24px;
    padding: 0 5px;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #e5ebf1;
    font-size: 11px;
    font-weight: 750;
    color: var(--text);
}

.forecast-focus {
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
    fill: var(--red);
}

.shoted {
    color: var(--red-dark) !important;
    border-color: #f2b8c1 !important;
    background: #fff1f4 !important;
}

.analysis-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    border: none;
    background: transparent;
    color: #087467;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
}

.analysis-link-icon {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transform: translateY(0.5px);
}

.analysis-link:hover {
    color: #075d52;
    text-decoration: underline;
}

.fullscore {
    display: block;
    font-weight: 900;
    color: var(--navy);
}

.halfscore {
    display: block;
    margin-top: 1px;
    color: var(--sub);
    font-size: 11px;
    font-weight: 700;
}

.empty {
    text-align: center;
    color: var(--sub);
    font-size: 13px;
    padding: 18px 12px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: rgba(255,255,255,.74);
}

.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 118px;
    margin: 4px 0;
    padding: 20px 16px;
    text-align: left;
    border: 1px solid rgba(223, 230, 238, .95);
    background:
        linear-gradient(135deg, rgba(255,255,255,.92), rgba(232, 246, 243, .86) 64%);
    box-shadow: var(--shadow-soft);
}

.empty-mark {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(15, 140, 122, .18);
    box-shadow: 0 8px 18px rgba(15, 140, 122, .10);
}

.empty-mark svg {
    width: 34px;
    height: 34px;
}

.empty-ball {
    fill: #f8fffd;
    stroke: var(--teal);
    stroke-width: 2;
}

.empty-line {
    fill: none;
    stroke: var(--navy-2);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.empty-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.empty-copy strong {
    font-size: 15px;
    line-height: 1.25;
    color: var(--text);
    font-weight: 950;
}

.empty-copy span {
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--sub);
}

.site-footer {
    margin-top: 22px;
    padding: 16px 10px 20px;
    text-align: center;
    font-size: 12px;
    color: var(--sub);
}

.law-note {
    margin-bottom: 10px;
    color: var(--red);
    font-weight: 800;
}

.footer-inner {
    max-width: 860px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.8;
}

.footer-links a {
    color: var(--sub);
    padding: 2px 4px;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-links .sep {
    color: #c4c7cc;
}

.footer-meta {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.6;
}

.footer-meta .slogan {
    margin-top: 2px;
    color: var(--muted);
}

.simple-loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.loading-circle {
    width: 46px;
    height: 46px;
    border: 3px solid rgba(215,25,63,.18);
    border-top: 3px solid var(--red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#backToTop {
    position: fixed;
    right: 18px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    width: 42px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    background: #fff;
    border: 1px solid rgba(215,25,63,.20);
    color: var(--red);
    box-shadow: 0 8px 20px rgba(20,24,32,.10);
    font-size: 18px;
    font-weight: 800;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

#backToTop.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.app-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    width: 100%;
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid rgba(229, 231, 235, .95);
    box-shadow: 0 -12px 30px rgba(15, 23, 42, .10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.app-tabbar-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
}

.app-tab {
    min-width: 0;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: var(--radius);
    color: #6b7280;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    transition: background .16s ease, color .16s ease;
}

.app-tab svg {
    width: 23px;
    height: 23px;
    display: block;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.app-tab span {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.app-tab:hover {
    color: var(--shell-accent);
    background: var(--shell-accent-soft);
}

.app-tab.active {
    color: var(--shell-accent);
    background: var(--shell-accent-soft);
}

@media (min-width: 721px) {
    .wrap {
        padding: 16px 16px 22px;
    }
}

@media (max-width: 700px) {
    .hero-top {
        flex-direction: column;
        padding: 18px 14px 14px;
    }

    .hero-meta {
        margin-top: 0;
    }

    .cup-stats {
        margin: 0 14px 18px;
        padding: 10px 0 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body {
        padding-bottom: calc(86px + env(safe-area-inset-bottom));
    }

    .site-app-header-inner {
        min-height: 56px;
        padding: calc(env(safe-area-inset-top, 0px) + 8px) 10px 8px;
    }

    .site-app-logo-box {
        width: 38px;
        height: 38px;
    }

    .site-app-header-actions {
        gap: 6px;
    }

    .site-app-header-action {
        min-height: 32px;
        padding: 0 9px;
        font-size: 12px;
    }

    .wrap {
        padding: 10px 10px 16px;
    }

    .worldcup-mark {
        width: 46px;
        height: 46px;
    }

    .hero-copy {
        gap: 0 10px;
    }

    .hero-copy h1 {
        font-size: 23px;
    }

    .hero-copy p {
        font-size: 12px;
    }

    .stat-card {
        padding: 3px 10px 8px;
    }

    .stat-card strong {
        font-size: 18px;
    }

    .match-header {
        gap: 10px;
    }

    .teams {
        gap: 6px;
        font-size: 13px;
    }

    .teams .team-logo {
        width: 20px;
        height: 20px;
    }

    .teams .vs {
        min-width: 52px;
        padding: 5px 6px;
    }

    .recommend {
        align-items: flex-start;
    }

    .footer-inner {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .law-note {
        margin-bottom: 6px;
        font-size: 11px;
        line-height: 1.25;
        white-space: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .footer-links {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 4px;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        line-height: 1.4;
        padding-bottom: 1px;
    }

    .footer-links a,
    .footer-links .sep {
        flex: 0 0 auto;
    }

    .footer-links a {
        padding: 1px 2px;
        font-size: 11px;
    }

    .footer-meta {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
        width: 100%;
        margin-top: 0;
        white-space: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        line-height: 1.3;
        font-size: 11px;
    }

    .footer-meta > div {
        flex: 0 0 auto;
    }

    .footer-meta .slogan {
        margin-top: 0;
        font-size: 10px;
    }

    #backToTop {
        right: 12px;
        bottom: calc(80px + env(safe-area-inset-bottom));
    }

    .app-tabbar-inner {
        padding: 5px 6px calc(5px + env(safe-area-inset-bottom, 0px));
        gap: 2px;
    }

    .app-tab {
        min-height: 50px;
    }
}

@media (max-width: 420px) {
    .site-app-logo-text small {
        max-width: 150px;
    }

    .cup-stats {
        gap: 0;
    }

    .filter-row {
        align-items: flex-start;
    }

    .filter-label {
        padding-top: 8px;
    }
}
