/* tipp26 — global app styles layered on top of MudBlazor + design tokens */

html, body {
    margin: 0;
    font-family: var(--t26-font-body);
    background: var(--t26-surface);
    -webkit-tap-highlight-color: transparent;
}

/* Brand fonts on top of MudBlazor */
.mud-typography-h1, .mud-typography-h2, .mud-typography-h3,
.mud-typography-h4, .mud-typography-h5, .mud-typography-h6,
.t26-display {
    font-family: var(--t26-font-display) !important;
    letter-spacing: -0.01em;
}

/* The router focuses the page <h1> on every navigation (FocusOnNavigate) for screen readers.
   Headings aren't interactive controls, so suppress the resulting blue focus ring. */
h1:focus, h2:focus, h3:focus,
h1:focus-visible, h2:focus-visible, h3:focus-visible,
.t26-display:focus, .t26-display:focus-visible {
    outline: none;
}

.t26-mono, .mud-typography-button {
    font-family: var(--t26-font-mono);
}

/* The score numbers use the mono face */
.t26-score {
    font-family: var(--t26-font-mono);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Startup splash (shown before Blazor boots) */
.app-loading {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--t26-night);
}

.app-loading-text {
    font-family: var(--t26-font-mono);
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Points badges (reuse the brand utility palette) */
.t26-pts {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 0.4rem;
    border-radius: var(--t26-radius-sm);
    font-family: var(--t26-font-mono);
    font-weight: 700;
    font-size: 0.8rem;
}
.t26-pts-3 { background: var(--t26-gold);    color: var(--t26-night); }
.t26-pts-2 { background: var(--t26-blue);    color: #fff; }
.t26-pts-1 { background: var(--t26-g200);    color: var(--t26-g700); }
.t26-pts-0 { background: var(--t26-crimson); color: #fff; }

/* Leave room for the fixed bottom navigation */
.t26-page {
    padding-bottom: 88px;
}

/* Round country flag */
.t26-flag {
    display: inline-block;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--t26-g200);
    background: var(--t26-g100);
    vertical-align: middle;
}

/* Group logo badge */
.t26-grouplogo {
    border-radius: var(--t26-radius-md);
    object-fit: cover;
    background: var(--t26-g100);
}

/* "x/y getippt" badge on match-day chips */
.t26-tipbadge {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 600;
    font-family: var(--t26-font-mono);
}
.t26-tipbadge-open { background: var(--t26-crimson); color: #fff; }
.t26-tipbadge-done { background: var(--t26-green, #16a34a); color: #fff; }

/* Tournament bracket: horizontally scrollable round columns */
.t26-bracket {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}
.t26-bracket-col {
    flex: 0 0 240px;
    min-width: 240px;
}
.t26-bracket-col h3 {
    font-family: var(--t26-font-mono);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--t26-g700);
    margin: 0 0 8px;
}

#blazor-error-ui {
    color-scheme: light only;
    background: #fff8c5;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 10000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
