/* Global Styles for League Calculator - Professional Blue Theme */

/* CSS Variables for Consistent Color Scheme */
:root {
    --primary-blue: #1e3a8a;
    --primary-blue-light: #1e40af;
    --secondary-blue: #1d4ed8;
    --accent-blue: #3b82f6;
    --light-blue: #dbeafe;
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;
    
    --success-color: #059669;
    --success-light: #d1fae5;
    --warning-color: #d97706;
    --warning-light: #fef3c7;
    --error-color: #dc2626;
    --error-light: #fee2e2;
    
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    
    --background-primary: #f8fafc;
    --background-secondary: #f1f5f9;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, var(--background-primary) 0%, var(--background-secondary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
}

/* Container Layouts */
.container {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin: 30px auto;
    border: 1px solid var(--border-light);
}

.wide-container {
    max-width: 800px;
}

.narrow-container {
    max-width: 400px;
    margin: 60px auto;
}

/* Full-Page Dashboard Layout */
.dashboard-body {
    background: url('/static/images/dashboard_background.png') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.dashboard-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.25) 0%, rgba(30, 64, 175, 0.20) 100%);
    z-index: -1;
}

/* Fixed Header Bar */
.dashboard-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: white;
    padding: 16px 32px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-header h1 {
    color: white;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.dashboard-header .user-info {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 400;
}

/* Full-Page Container */
.dashboard-container {
    min-height: 100vh;
    padding-top: 80px; /* Space for fixed header */
    padding-left: 32px;
    padding-right: 32px;
    padding-bottom: 32px;
}

.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Dashboard Action Bar */
.dashboard-actions {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

/* Welcome Banner - Enhanced & Larger */
.welcome-banner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 50%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(30px);
    border-radius: 24px;
    padding: 80px 60px;
    margin-bottom: 48px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(59, 130, 246, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    animation: bannerFloat 6s ease-in-out infinite;
}

@keyframes bannerFloat {
    0%, 100% { 
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.5);
    }
    50% { 
        box-shadow: 0 35px 70px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(59, 130, 246, 0.3);
    }
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    animation: rotateMulti 25s linear infinite;
    z-index: -1;
}

.welcome-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes rotateMulti {
    0% { transform: rotate(0deg); }
    33% { transform: rotate(120deg); }
    66% { transform: rotate(240deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: -100%; }
    100% { left: 100%; }
}

.welcome-banner h2 {
    color: #1e293b;
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 50%, #1e293b 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGlow 4s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { 
        filter: brightness(1);
        text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    50% { 
        filter: brightness(1.2);
        text-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    }
}

.welcome-banner-logo {
    height: 120px;
    width: 600px;
    max-width: 90%;
    margin: 30px auto;
    display: block;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.welcome-banner p {
    color: #475569;
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    position: relative;
    z-index: 2;
    animation: textFloat 5s ease-in-out infinite;
}

@keyframes textFloat {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

.welcome-banner .stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.welcome-banner .stat-item {
    text-align: center;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    animation: statPulse 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.welcome-banner .stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.2);
    background: rgba(255, 255, 255, 0.9);
}

@keyframes statPulse {
    0%, 100% { 
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    50% { 
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    }
}

.welcome-banner .stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    animation: numberCount 2s ease-out;
}

@keyframes numberCount {
    0% { opacity: 0; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

.welcome-banner .stat-label {
    font-size: 14px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Elegant Headers */
.app-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: white;
    padding: 16px 24px;
    margin: -24px -24px 24px -24px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: var(--shadow-sm);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.header-with-gradient {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: white;
    padding: 20px 24px;
    margin: -24px -24px 20px -24px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: var(--shadow-sm);
}

.header-with-gradient h1 {
    color: white;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: 0.0em !important;
}

h1 {
    color: var(--primary-blue);
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

h2 {
    color: var(--primary-blue);
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 600;
}

h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 500;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-muted);
}

/* Forms */
.form-group {
    margin-bottom: 12px;
}

.form-group-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.inline-label {
    display: inline-block;
    width: 30px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.rating-label {
    font-size: 13px;
    color: var(--text-secondary);
    width: auto;
    font-weight: 400;
}

input[type="text"], 
input[type="password"], 
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: all 0.2s ease;
    background: white;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

input[type="text"].inline {
    width: 200px;
    padding: 8px 10px;
    font-size: 14px;
}

input[type="number"] {
    width: 80px;
    padding: 8px 10px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.2s ease;
}

input[type="number"]:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Enhanced Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-600) 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--blue-700) 100%);
    color: white;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--background-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--light-blue);
    color: var(--primary-blue);
    text-decoration: none;
    border-color: var(--accent-blue);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #047857 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #065f46 0%, var(--success-color) 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--error-color) 0%, #b91c1c 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #991b1b 0%, var(--error-color) 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-info {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-info:hover:not(:disabled) {
    background: linear-gradient(135deg, #164e63 0%, #0891b2 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-full-width {
    width: 100%;
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-large {
    padding: 12px 24px;
    font-size: 16px;
}

/* Badge Component */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.badge-success {
    background: linear-gradient(135deg, var(--success-light) 0%, #ecfdf5 100%);
    color: #166534;
    border: 1px solid var(--success-color);
}

.badge-info {
    background: linear-gradient(135deg, var(--light-blue) 0%, #f0f9ff 100%);
    color: var(--blue-800);
    border: 1px solid var(--accent-blue);
}

.badge-warning {
    background: linear-gradient(135deg, var(--warning-light) 0%, #fefbf3 100%);
    color: #92400e;
    border: 1px solid var(--warning-color);
}

.badge-error {
    background: linear-gradient(135deg, var(--error-light) 0%, #fdf2f2 100%);
    color: #991b1b;
    border: 1px solid var(--error-color);
}

/* Enhanced Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border-left: 4px solid;
    background: white;
    box-shadow: var(--shadow-sm);
}

.alert-error {
    background: linear-gradient(135deg, var(--error-light) 0%, #fdf2f2 100%);
    color: #991b1b;
    border-left-color: var(--error-color);
}

.alert-success {
    background: linear-gradient(135deg, var(--success-light) 0%, #ecfdf5 100%);
    color: #166534;
    border-left-color: var(--success-color);
}

.alert-info {
    background: linear-gradient(135deg, var(--light-blue) 0%, #f0f9ff 100%);
    color: var(--blue-800);
    border-left-color: var(--accent-blue);
}

.alert-warning {
    background: linear-gradient(135deg, var(--warning-light) 0%, #fefbf3 100%);
    color: #92400e;
    border-left-color: var(--warning-color);
}

/* Enhanced Cards */
.card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    border-left: 4px solid var(--light-blue);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-left-color: var(--accent-blue);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.card-title {
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0;
    font-size: 18px;
}

.card-subtitle {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 4px 0;
    font-weight: 400;
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* Enhanced Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

th {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-weight: 500;
    font-size: 14px;
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}

tr:hover td {
    background: var(--blue-50);
}

tr:last-child td {
    border-bottom: none;
}

/* Utility Classes - Optimized Spacing */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.ml-1 { margin-left: 8px; }
.mr-1 { margin-right: 8px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

/* User Info */
.user-info {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 400;
}

/* No Print Class */
.no-print {
    text-align: center;
    margin: 16px;
}

@media print {
    .no-print {
        display: none;
    }
}

/* Enhanced Links */
a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--blue-700);
    text-decoration: underline;
}

/* Special Components */
.league-info {
    background: linear-gradient(135deg, var(--success-light) 0%, #ecfdf5 100%);
    color: #166534;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border-left: 4px solid var(--success-color);
    box-shadow: var(--shadow-sm);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 16px;
        padding: 16px;
        border-radius: var(--radius-md);
    }
    
    .header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .btn-full-width-mobile {
        width: 100%;
    }
    
    .form-group-inline {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .inline-label {
        width: auto;
    }
    
    /* Dashboard Mobile Layout */
    .dashboard-header {
        padding: 12px 16px;
    }
    
    .dashboard-header h1 {
        font-size: 20px;
    }
    
    .dashboard-header .flex-between {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .dashboard-container {
        padding-top: 100px; /* More space for taller mobile header */
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .dashboard-actions {
        padding: 16px;
    }
    
    .dashboard-actions .flex {
        flex-direction: column;
    }
    
    /* Welcome Banner Mobile */
    .welcome-banner {
        padding: 60px 30px;
        min-height: 320px;
    }
    
    .welcome-banner h2 {
        font-size: 48px;
    }
    
    .welcome-banner p {
        font-size: 18px;
    }
    
    .welcome-banner .stats {
        flex-direction: column;
        gap: 20px;
        margin-top: 32px;
    }
    
    .welcome-banner .stat-item {
        padding: 16px 20px;
        margin: 0 auto;
        max-width: 200px;
    }
    
    .welcome-banner .stat-number {
        font-size: 28px;
    }
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

/* Enhanced Group Card Styles */
.group-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-blue);
}

.group-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-left-color: var(--primary-blue);
}

.group-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
}

.group-card-title {
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0;
    font-size: 20px;
    letter-spacing: -0.025em;
}

.group-status-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.group-meta {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
}

.players-container {
    background: linear-gradient(135deg, var(--blue-50) 0%, #f8fafc 100%);
    padding: 20px;
    border-radius: var(--radius-md);
    margin: 16px 0;
    border: 1px solid var(--border-light);
}

.players-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.players-title::before {
    content: "👥";
    font-size: 16px;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.player-card {
    background: white;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    border-color: var(--accent-blue);
}

.player-position {
    font-weight: 700;
    color: var(--primary-blue);
    min-width: 20px;
    font-size: 15px;
}

.player-name {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.player-rating {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    background: var(--background-secondary);
    padding: 2px 8px;
    border-radius: 12px;
}

.winner-star {
    color: #fbbf24;
    font-size: 16px;
    margin-right: 4px;
}

.results-container {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.result-card {
    background: linear-gradient(135deg, var(--success-light) 0%, #ecfdf5 100%);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--success-color);
    font-size: 12px;
    color: #166534;
    font-weight: 500;
}

.group-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.action-buttons-container {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
    letter-spacing: -0.025em;
}

.back-button {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.back-button:hover {
    color: var(--primary-blue);
    border-color: var(--accent-blue);
    text-decoration: none;
}

.league-info-banner {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--blue-50) 100%);
    color: var(--blue-800);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    border-left: 4px solid var(--accent-blue);
    box-shadow: var(--shadow-sm);
}

.league-info-banner strong {
    color: var(--primary-blue);
}

.all-players-section {
    background: linear-gradient(135deg, #f8fafc 0%, var(--blue-50) 100%);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-top: 40px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.all-players-title {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.all-players-title::before {
    content: "📋";
    font-size: 20px;
}

.all-players-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 500px;
    margin: 0 auto;
}

.player-list-item {
    background: white;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--group-color, var(--accent-blue));
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.player-list-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.group-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    color: white;
    min-width: 70px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-position-list {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 24px;
    font-size: 14px;
}

.player-name-list {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.player-rating-list {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--blue-50) 0%, #f8fafc 100%);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-color);
}

.empty-state::before {
    content: "📋";
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .page-title {
        font-size: 24px;
        text-align: center;
    }
    
    .action-buttons-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .group-actions {
        flex-direction: column;
    }
    
    .players-grid {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .group-card {
        padding: 20px 16px;
        margin-bottom: 20px;
    }
    
    .group-card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .all-players-section {
        padding: 20px 16px;
    }
}

/* Enhanced Dashboard Card Styles */
.dashboard-league-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-blue);
    position: relative;
    overflow: hidden;
}

.dashboard-league-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-left-color: var(--primary-blue);
}

.dashboard-league-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--primary-blue), var(--accent-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-league-card:hover::before {
    opacity: 1;
}

.league-card-header {
    margin-bottom: 20px;
}

.league-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0 0 8px 0;
    letter-spacing: -0.025em;
}

.league-card-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 4px;
    font-style: italic;
}

.league-card-meta {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.recent-groups-section {
    background: linear-gradient(135deg, var(--blue-50) 0%, #f8fafc 100%);
    padding: 16px;
    border-radius: var(--radius-md);
    margin: 16px 0;
    border: 1px solid var(--border-light);
}

.recent-groups-title {
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.recent-groups-title::before {
    content: "📋";
    font-size: 14px;
}

.group-item {
    background: white;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.group-item:hover {
    transform: translateX(4px);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-sm);
}

.group-item:last-child {
    margin-bottom: 0;
}

.group-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.more-groups-indicator {
    text-align: center;
    margin-top: 8px;
}

.more-groups-text {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    background: var(--background-secondary);
    border-radius: 12px;
    display: inline-block;
}

.league-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.empty-dashboard-state {
    text-align: center;
    margin-top: 80px;
}

.empty-dashboard-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.empty-dashboard-title {
    color: var(--primary-blue);
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 600;
}

.empty-dashboard-text {
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.empty-dashboard-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Full-Width Groups Page Layout */
.groups-page-body {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.groups-page-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.groups-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.groups-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e40af;
    margin: 0;
    letter-spacing: -0.025em;
}

.groups-back-button {
    text-decoration: none;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: white;
}

.groups-back-button:hover {
    color: #1e40af;
    border-color: #bfdbfe;
    text-decoration: none;
    background: #f8fafc;
}

.groups-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
}

.groups-info-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.groups-info-content {
    color: #475569;
    line-height: 1.6;
}

.groups-info-content strong {
    color: #1e40af;
    font-weight: 600;
}

.groups-actions-section {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.groups-action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.groups-action-btn.primary {
    background: #059669;
    color: white;
}

.groups-action-btn.primary:hover {
    background: #047857;
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.groups-action-btn.secondary {
    background: #f97316;
    color: white;
}

.groups-action-btn.secondary:hover {
    background: #ea580c;
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.group-card-soft {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.group-card-soft:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.group-card-soft::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1e40af);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.group-card-soft:hover::before {
    opacity: 1;
}

.group-card-soft-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.group-card-soft-title {
    font-size: 22px;
    font-weight: 600;
    color: #1e40af;
    margin: 0;
    letter-spacing: -0.025em;
}

.group-status-badge-soft {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.group-status-badge-soft.success {
    background: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}

.group-meta-soft {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 24px;
    font-weight: 500;
}

.players-container-soft {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    padding: 24px;
    border-radius: 12px;
    margin: 20px 0;
}

.players-title-soft {
    font-weight: 600;
    color: #334155;
    margin-bottom: 16px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.players-title-soft::before {
    content: "👥";
    font-size: 16px;
}

.players-grid-soft {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.player-card-soft {
    background: white;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-card-soft:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: #bfdbfe;
}

.player-position-soft {
    font-weight: 700;
    color: #1e40af;
    min-width: 24px;
    font-size: 15px;
}

.player-name-soft {
    flex: 1;
    font-weight: 500;
    color: #1e293b;
}

.player-rating-soft {
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 6px;
}

.winner-star-soft {
    color: #f59e0b;
    font-size: 16px;
    margin-right: 4px;
}

.group-actions-soft {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.group-action-btn-soft {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid;
}

.group-action-btn-soft.primary {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.group-action-btn-soft.primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    text-decoration: none;
    color: white;
}

.group-action-btn-soft.secondary {
    background: white;
    color: #64748b;
    border-color: #e2e8f0;
}

.group-action-btn-soft.secondary:hover {
    background: #f8fafc;
    color: #1e40af;
    border-color: #bfdbfe;
    text-decoration: none;
}

.group-action-btn-soft.info {
    background: #0891b2;
    color: white;
    border-color: #0891b2;
}

.group-action-btn-soft.info:hover {
    background: #0e7490;
    border-color: #0e7490;
    text-decoration: none;
    color: white;
}

.group-action-btn-soft.success {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.group-action-btn-soft.success:hover {
    background: #059669;
    border-color: #059669;
    text-decoration: none;
    color: white;
}

.scan-results-form {
    display: inline-flex;
}

.scan-results-input {
    display: none;
}

.group-action-btn-soft.scan {
    background: #7c3aed;
    color: white;
    border-color: #7c3aed;
    cursor: pointer;
    font-family: inherit;
}

.group-action-btn-soft.scan:hover {
    background: #6d28d9;
    border-color: #6d28d9;
}

.group-action-btn-soft.scan:disabled {
    cursor: wait;
    opacity: 0.7;
}

.all-players-section-soft {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 32px;
    border-radius: 16px;
    margin-top: 48px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.all-players-title-soft {
    color: #1e40af;
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.all-players-title-soft::before {
    content: "📋";
    font-size: 20px;
}

.all-players-list-soft {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.player-list-item-soft {
    background: #f8fafc;
    padding: 14px 16px;
    border-radius: 8px;
    border-left: 4px solid;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.player-list-item-soft:hover {
    transform: translateX(4px);
    background: white;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.group-badge-soft {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    color: white;
    min-width: 80px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"].table-number-input {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    width: 150px;
    padding: 0 1px;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 3px;
    background: transparent;
    outline: none;
    box-shadow: none;
    box-sizing: content-box;
    font-family: inherit;
    transition: none;
}

input[type="text"].table-number-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

input[type="text"].table-number-input:focus {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    box-shadow: none;
}

.player-position-list-soft {
    font-weight: 600;
    color: #1e293b;
    min-width: 28px;
    font-size: 14px;
}

.player-name-list-soft {
    flex: 1;
    font-weight: 500;
    color: #1e293b;
}

.player-rating-list-soft {
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}

.empty-state-soft {
    text-align: center;
    color: #64748b;
    font-size: 16px;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    border: 2px dashed #e2e8f0;
}

.empty-state-soft::before {
    content: "📋";
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Mobile responsive for full-width groups */
@media (max-width: 768px) {
    .groups-header-content {
        padding: 0 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .groups-page-title {
        font-size: 24px;
        text-align: center;
    }
    
    .groups-page-container {
        padding: 20px 16px;
    }
    
    .groups-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .group-card-soft {
        padding: 24px 20px;
    }
    
    .players-grid-soft {
        grid-template-columns: 1fr;
    }
    
    .group-actions-soft {
        flex-direction: column;
    }
    
    .groups-actions-section {
        flex-direction: column;
    }
    
    .all-players-section-soft {
        padding: 24px 20px;
    }
}

/* Full-Width Upload League Page Layout */
.upload-page-body {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.upload-page-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.upload-header-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.upload-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e40af;
    margin: 0;
    letter-spacing: -0.025em;
}

.upload-back-button {
    text-decoration: none;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: white;
}

.upload-back-button:hover {
    color: #1e40af;
    border-color: #bfdbfe;
    text-decoration: none;
    background: #f8fafc;
}

.upload-page-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 24px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    align-items: start;
}

.upload-main-content {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.upload-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.upload-info-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.upload-info-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-info-title::before {
    content: "ℹ️";
    font-size: 16px;
}

.csv-format-info {
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
}

.csv-format-info .upload-info-title {
    color: #1e40af;
}

.csv-format-info .upload-info-title::before {
    content: "📝";
}

.csv-example-code {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.4;
    color: #1e293b;
    margin: 12px 0;
    overflow-x: auto;
}

.group-logic-card {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-left: 4px solid #f59e0b;
}

.group-logic-card .upload-info-title {
    color: #92400e;
}

.group-logic-card .upload-info-title::before {
    content: "⚙️";
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.upload-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upload-form-label {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.upload-form-input {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: white;
}

.upload-form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.upload-form-textarea {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: white;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.upload-form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.upload-form-help {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.upload-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.upload-radio-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.upload-radio-option:hover {
    border-color: #bfdbfe;
    background: #f8fafc;
}

.upload-radio-option.selected {
    border-color: #3b82f6;
    background: #dbeafe;
}

.upload-radio-input {
    margin: 0;
    cursor: pointer;
}

.upload-radio-content {
    flex: 1;
}

.upload-radio-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.upload-radio-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.4;
}

.upload-file-input {
    padding: 12px;
    border: 2px dashed #bfdbfe;
    border-radius: 8px;
    background: #f8fafc;
    transition: all 0.2s ease;
    cursor: pointer;
}

.upload-file-input:hover {
    border-color: #3b82f6;
    background: #dbeafe;
}

.upload-submit-button {
    padding: 14px 24px;
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
}

.upload-submit-button:hover {
    background: linear-gradient(135deg, #164e63 0%, #0891b2 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.upload-submit-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.upload-error-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    padding: 16px;
    border-radius: 8px;
    color: #991b1b;
    margin-bottom: 24px;
    font-weight: 500;
}

.upload-error-alert::before {
    content: "⚠️";
    margin-right: 8px;
    font-size: 16px;
}

/* Mobile responsive for upload page */
@media (max-width: 1024px) {
    .upload-page-container {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 800px;
    }
    
    .upload-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .upload-header-content {
        padding: 0 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .upload-page-title {
        font-size: 24px;
        text-align: center;
    }
    
    .upload-page-container {
        padding: 20px 16px;
        gap: 24px;
    }
    
    .upload-main-content {
        padding: 24px 20px;
    }
}

/* ===== CREATE LEAGUE PAGE STYLES ===== */
.create-league-page-body {
    background-color: #f8fafc;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    margin: 0;
    padding: 0;
}

.create-league-page-header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.create-league-header-content {
    max-width: none;
    padding: 24px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.create-league-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.025em;
}

.create-league-back-button {
    background: #f1f5f9;
    color: #475569;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.create-league-back-button:hover {
    background: #e2e8f0;
    color: #334155;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.create-league-page-container {
    max-width: none;
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
}

.create-league-main-content {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.create-league-error-alert {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    padding: 16px;
    border-radius: 8px;
    color: #991b1b;
    margin-bottom: 24px;
    font-weight: 500;
}

.create-league-error-alert::before {
    content: "⚠️";
    margin-right: 8px;
    font-size: 16px;
}

.create-league-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.create-league-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.create-league-form-label {
    font-weight: 600;
    color: #374151;
    font-size: 15px;
    margin-bottom: 4px;
}

.create-league-form-input,
.create-league-form-textarea {
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #ffffff;
    font-family: inherit;
}

.create-league-form-input:focus,
.create-league-form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #fefefe;
}

.create-league-form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.create-league-form-help {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.create-league-submit-button {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
}

.create-league-submit-button:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.create-league-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 120px;
}

.create-league-info-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.create-league-info-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
    letter-spacing: -0.025em;
}

.create-league-info-card p {
    color: #475569;
    line-height: 1.6;
    margin: 0 0 16px 0;
    font-size: 14px;
}

.create-league-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.create-league-info-list li {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    padding-left: 20px;
}

.create-league-info-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 12px;
}

/* Mobile responsive for create league page */
@media (max-width: 1024px) {
    .create-league-page-container {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .create-league-sidebar {
        order: -1;
        position: static;
    }
}

@media (max-width: 768px) {
    .create-league-header-content {
        padding: 0 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .create-league-page-title {
        font-size: 24px;
        text-align: center;
    }
    
    .create-league-page-container {
        padding: 20px 16px;
        gap: 24px;
    }
    
    .create-league-main-content {
        padding: 24px 20px;
    }
    
    .create-league-info-card {
        padding: 20px;
    }
    
    .upload-info-card {
        padding: 20px 16px;
    }
}

/* ===== LEAGUE SETUP PAGE STYLES ===== */
.league-setup-page-body {
    background-color: #f8fafc;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    margin: 0;
    padding: 0;
}

.league-setup-page-header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.league-setup-header-content {
    max-width: none;
    padding: 24px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.league-setup-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.025em;
}

.league-setup-back-button {
    background: #f1f5f9;
    color: #475569;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.league-setup-back-button:hover {
    background: #e2e8f0;
    color: #334155;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.league-setup-page-container {
    max-width: none;
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
}

.league-setup-main-content {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.league-setup-info-section {
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.league-setup-info-content {
    color: #475569;
    line-height: 1.6;
    font-size: 14px;
}

.league-setup-info-alert {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
    padding: 16px;
    border-radius: 8px;
    color: #1e40af;
    margin-bottom: 28px;
    font-weight: 500;
}

.league-setup-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.league-setup-players-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.league-setup-player-row {
    display: grid;
    grid-template-columns: 30px 1fr auto 120px;
    gap: 16px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.league-setup-player-row:last-child {
    border-bottom: none;
}

.league-setup-player-label {
    font-weight: 700;
    color: #1e293b;
    font-size: 16px;
    text-align: center;
}

.league-setup-name-input {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #ffffff;
    font-family: inherit;
}

.league-setup-name-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #fefefe;
}

.league-setup-rating-label {
    font-weight: 500;
    color: #6b7280;
    font-size: 14px;
}

.league-setup-rating-input {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #ffffff;
    font-family: inherit;
    text-align: center;
}

.league-setup-rating-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #fefefe;
}

.league-setup-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.league-setup-submit-button {
    flex: 1;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.league-setup-submit-button.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.league-setup-submit-button.primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.league-setup-submit-button.secondary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.league-setup-submit-button.secondary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.league-setup-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 120px;
}

.league-setup-info-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.league-setup-info-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
    letter-spacing: -0.025em;
}

.league-setup-info-card p {
    color: #475569;
    line-height: 1.6;
    margin: 0 0 16px 0;
    font-size: 14px;
}

.league-setup-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.league-setup-info-list li {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    padding-left: 20px;
}

.league-setup-info-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 12px;
}

/* Mobile responsive for league setup page */
@media (max-width: 1024px) {
    .league-setup-page-container {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 900px;
        margin: 0 auto;
    }
    
    .league-setup-sidebar {
        order: -1;
        position: static;
    }
}

@media (max-width: 768px) {
    .league-setup-header-content {
        padding: 0 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .league-setup-page-title {
        font-size: 24px;
        text-align: center;
    }
    
    .league-setup-page-container {
        padding: 20px 16px;
        gap: 24px;
    }
    
    .league-setup-main-content {
        padding: 24px 20px;
    }
    
    .league-setup-player-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px;
        background: #f8fafc;
        border-radius: 8px;
        border-bottom: none;
        margin-bottom: 12px;
    }
    
    .league-setup-player-label {
        text-align: left;
        margin-bottom: 4px;
    }
    
    .league-setup-rating-label {
        margin-top: 8px;
        margin-bottom: 4px;
    }
    
    .league-setup-actions {
        flex-direction: column;
    }
    
    .league-setup-info-card {
        padding: 20px;
    }
}

/* ===== MATCHES PAGE STYLES ===== */
.matches-page-body {
    background-color: #f8fafc;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    margin: 0;
    padding: 0;
}

.matches-page-header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.matches-header-content {
    max-width: none;
    padding: 24px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.matches-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.025em;
}

.matches-back-button {
    background: #f1f5f9;
    color: #475569;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.matches-back-button:hover {
    background: #e2e8f0;
    color: #334155;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.matches-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px;
}

.matches-info-alert {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
    padding: 16px;
    border-radius: 8px;
    color: #1e40af;
    margin-bottom: 28px;
    font-weight: 500;
}

.matches-content {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.matches-form {
    display: flex;
    flex-direction: column;
}

.matches-table-container {
    overflow-x: auto;
}

.matches-table {
    width: 100%;
    border-collapse: collapse;
}

.matches-table-header {
    background: #f8fafc;
    color: #374151;
    font-weight: 600;
    padding: 20px 24px;
    text-align: left;
    font-size: 14px;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    border-bottom: 1px solid #e5e7eb;
}

.matches-table-row {
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.matches-table-row:hover {
    background-color: #f8fafc;
}

.matches-table-cell {
    padding: 24px;
    vertical-align: top;
}

.match-info {
    font-weight: 600;
    color: #1e293b;
    font-size: 15px;
    line-height: 1.5;
    min-width: 300px;
}

.matches-winner-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.matches-winner-option {
    display: flex;
    align-items: center;
    gap: 12px;
}

.matches-radio {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.matches-radio:checked {
    border-color: #3b82f6;
    background-color: #3b82f6;
}

.matches-radio:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.matches-radio-label {
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    transition: color 0.2s ease;
}

.matches-radio-label.no-winner {
    color: #6b7280;
    font-style: italic;
}

.matches-radio:checked + .matches-radio-label {
    color: #1e293b;
    font-weight: 500;
}

.matches-actions {
    padding: 24px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.matches-submit-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.matches-submit-button:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.matches-cancel-button {
    background: #f1f5f9;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.matches-cancel-button:hover {
    background: #e5e7eb;
    color: #374151;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Mobile responsive for matches page */
@media (max-width: 768px) {
    .matches-header-content {
        padding: 0 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .matches-page-title {
        font-size: 24px;
        text-align: center;
    }
    
    .matches-page-container {
        padding: 20px 16px;
    }
    
    .matches-table-header,
    .matches-table-cell {
        padding: 16px 12px;
    }
    
    .match-info {
        min-width: auto;
        font-size: 14px;
        word-break: break-word;
    }
    
    .matches-winner-options {
        gap: 8px;
    }
    
    .matches-actions {
        flex-direction: column;
        padding: 20px 16px;
    }
    
    .upload-radio-option {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
}

/* ===== RESULTS PAGE STYLES ===== */
.results-page-body {
    background-color: #f8fafc;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    margin: 0;
    padding: 0;
}

.results-page-header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.results-header-content {
    max-width: none;
    padding: 24px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.025em;
}

.results-back-button {
    background: #f1f5f9;
    color: #475569;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.results-back-button:hover {
    background: #e2e8f0;
    color: #334155;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.results-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.results-section {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.results-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    padding: 28px 32px 0;
    letter-spacing: -0.025em;
}

.results-table-container {
    padding: 24px 32px 32px;
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.results-table th {
    background: #f8fafc;
    color: #374151;
    font-weight: 600;
    padding: 16px 20px;
    text-align: left;
    font-size: 14px;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    border-bottom: 2px solid #e5e7eb;
}

.results-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    line-height: 1.5;
}

.results-table tbody tr:hover {
    background-color: #f8fafc;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.results-action-button {
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.results-action-button.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
}

.results-action-button.primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.results-action-button.secondary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
}

.results-action-button.secondary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* Mobile responsive for results page */
@media (max-width: 768px) {
    .results-header-content {
        padding: 0 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .results-page-title {
        font-size: 24px;
        text-align: center;
    }
    
    .results-page-container {
        padding: 20px 16px;
        gap: 24px;
    }
    
    .results-section-title {
        padding: 20px 20px 0;
        font-size: 18px;
    }
    
    .results-table-container {
        padding: 16px 20px 20px;
    }
    
    .results-table th,
    .results-table td {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .results-actions {
        flex-direction: column;
    }
}

/* ===== BRANDING AND LOGO STYLES ===== */
.brand-logo {
    height: 48px;
    width: 240px;
    max-width: 280px;
    margin-right: 16px;
    object-fit: contain;
    transition: all 0.2s ease;
}

.brand-logo-large {
    height: auto;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    position: relative;
    z-index: 2;
}

.brand-container {
    display: flex;
    align-items: center;
}

.brand-container-center {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    width: 100%;
}

.brand-text {
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.025em;
}

.brand-text-large {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.025em;
    margin: 0;
}

/* Logo adjustments for specific page headers */
.dashboard-header .brand-logo {
    height: 56px;
    width: 280px;
    max-width: 320px;
    margin-right: 20px;
}

/* Print styles for match sheets */
@media print {
    /* Logos removed from printable match sheets for cleaner printing */
    .brand-logo,
    .brand-logo-large {
        display: none;
    }
}

/* Mobile responsive for branding */
@media (max-width: 768px) {
    .brand-logo {
        height: 36px;
        width: 180px;
        max-width: 200px;
        margin-right: 12px;
    }
    
    .brand-logo-large {
        height: 48px;
        width: 240px;
        max-width: 280px;
        margin-right: 16px;
    }
    
    .dashboard-header .brand-logo {
        height: 44px;
        width: 220px;
        max-width: 260px;
        margin-right: 16px;
    }
    
    .brand-text-large {
        font-size: 24px;
    }
    
    .brand-container-center {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .brand-container-center .brand-logo-large {
        margin-right: 0;
    }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
    .brand-logo {
        height: 32px;
        width: 160px;
        max-width: 180px;
        margin-right: 10px;
    }
    
    .brand-logo-large {
        height: 40px;
        width: 200px;
        max-width: 240px;
        margin-right: 12px;
    }
    
    .dashboard-header .brand-logo {
        height: 36px;
        width: 180px;
        max-width: 200px;
        margin-right: 12px;
    }
}

/* -------------------------------------------------------------------------
   Signed-in operations UI
   A calm, compact shell that intentionally overrides the older decorative
   dashboard, group, result, and form styles above. Public and print pages
   retain their own presentation. */
:root {
    --ops-canvas: #f6f5f1;
    --ops-surface: #ffffff;
    --ops-ink: #172033;
    --ops-muted: #667085;
    --ops-border: #e4e4df;
    --ops-blue: #2557d6;
    --ops-blue-dark: #173d9c;
    --ops-blue-soft: #edf2ff;
    --ops-green: #16794d;
    --ops-green-soft: #eaf7f0;
    --ops-red: #b42318;
    --ops-radius: 10px;
}

.app-page {
    min-height: 100vh;
    margin: 0;
    background: var(--ops-canvas);
    color: var(--ops-ink);
    font-size: 15px;
    line-height: 1.45;
}

.app-page *, .app-page *::before, .app-page *::after { box-sizing: border-box; }
.app-page a { color: inherit; text-decoration: none; }
.app-page a:hover { text-decoration: none; }

.app-topbar {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 60px;
    padding: 10px max(20px, calc((100vw - 1240px) / 2));
    background: #fff;
    border-bottom: 1px solid var(--ops-border);
}

.app-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ops-ink) !important; font-weight: 700; white-space: nowrap; }
.app-brand-mark { width: 25px; height: 25px; object-fit: contain; }
.app-nav { display: flex; align-items: center; gap: 4px; }
.app-nav a, .app-signout { border-radius: 7px; color: #4b5565 !important; font-size: 14px; font-weight: 600; padding: 8px 10px; }
.app-nav a:hover, .app-nav a:focus-visible { background: var(--ops-blue-soft); color: var(--ops-blue-dark) !important; }
.app-account { display: flex; align-items: center; gap: 10px; margin-left: auto; color: var(--ops-muted); font-size: 13px; white-space: nowrap; }
.app-signout { border: 1px solid var(--ops-border); color: #4b5565 !important; }
.app-signout-form { margin: 0; }.app-signout { background: transparent; cursor: pointer; font: inherit; }
.app-signout:hover { border-color: #c7c8c1; background: #f8f8f6; }

.app-main { width: min(100% - 40px, 1120px); margin: 0 auto; padding: 34px 0 56px; }
.app-main-narrow { max-width: 860px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.page-heading > div { max-width: 720px; }
.page-heading h1 { margin: 3px 0 7px; color: var(--ops-ink); font-size: clamp(28px, 4vw, 36px); line-height: 1.08; letter-spacing: -0.04em; }
.page-heading h2 { margin: 0; color: var(--ops-ink); }
.page-heading p { margin: 0; color: var(--ops-muted); }
.page-heading-with-actions { align-items: center; }
.page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.eyebrow { color: var(--ops-blue) !important; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.breadcrumb { display: inline-block; margin-bottom: 10px; color: var(--ops-muted) !important; font-size: 13px; font-weight: 600; }
.breadcrumb::before { content: '← '; }

.button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 14px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--ops-ink); cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.2; white-space: nowrap;
}
.button-primary { background: var(--ops-blue); color: #fff !important; }
.button-primary:hover { background: var(--ops-blue-dark); }
.button-secondary { border-color: #d4d6d1; background: #fff; color: #344054 !important; }
.button-secondary:hover { background: #fafafa; border-color: #aeb4ae; }
.button-text { min-height: 32px; padding: 6px 8px; color: #52607a !important; }
.button-text:hover { background: #f0f1ee; color: var(--ops-ink) !important; }
.button-text.danger { color: var(--ops-red) !important; }
.button:focus-visible, .app-page input:focus-visible, .app-page select:focus-visible, .app-page textarea:focus-visible, .app-page summary:focus-visible, .match-segmented label:focus-visible { outline: 3px solid #b9ccff; outline-offset: 2px; }

.featured-league, .content-card, .empty-panel, .league-row, .group-card, .group-list-row, .match-round, .notice, .maintenance-panel, .stat-strip { background: var(--ops-surface); border: 1px solid var(--ops-border); border-radius: var(--ops-radius); box-shadow: 0 1px 2px rgba(18, 24, 35, .03); }
.featured-league { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 32px; padding: 26px; border-color: #d7e1ff; background: #fbfcff; }
.featured-league h2 { margin: 4px 0 6px; color: var(--ops-ink); font-size: 24px; letter-spacing: -.025em; }
.featured-league p { margin: 0; color: var(--ops-muted); }
.meta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 13px; color: var(--ops-muted); font-size: 13px; }
.meta-row span + span::before { content: '·'; margin-right: 12px; color: #a2a7b1; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 24px 0 12px; }
.section-heading h2, .card-heading h2 { margin: 0; color: var(--ops-ink); font-size: 18px; letter-spacing: -.015em; }
.section-heading p, .card-heading p { margin: 4px 0 0; color: var(--ops-muted); font-size: 13px; }
.compact-top { margin-top: 34px; }
.league-list, .group-list { display: grid; gap: 10px; }
.league-row, .group-list-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; }
.league-row-main h3, .group-list-row h3 { margin: 0; color: var(--ops-ink); font-size: 16px; }
.league-row-main p, .group-list-row p { margin: 4px 0 0; color: var(--ops-muted); font-size: 13px; }
.row-actions, .form-actions, .table-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.empty-panel { padding: 28px; text-align: center; }
.empty-panel h2 { margin: 0 0 6px; color: var(--ops-ink); font-size: 20px; }
.empty-panel p, .quiet-empty { color: var(--ops-muted); }
.flash-stack { display: grid; gap: 8px; margin-bottom: 18px; }
.notice { padding: 12px 14px; color: #334155; }
.notice-error { border-color: #f1c7c3; background: #fff9f8; color: #a22a22; margin-bottom: 18px; }

.group-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.group-card { display: flex; flex-direction: column; min-width: 0; padding: 18px; }
.group-card.is-archived { border-color: #bfd8f5; background: #edf6ff; }
.group-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 13px; border-bottom: 1px solid #eff0ed; }
.group-card-header h2 { margin: 0; color: var(--ops-ink); font-size: 18px; }
.group-card-header p { margin: 4px 0 0; color: var(--ops-muted); font-size: 12px; }
.status-pill { display: inline-flex; width: fit-content; border: 1px solid #d5dae3; border-radius: 999px; padding: 4px 8px; background: #f6f8fb; color: #52607a; font-size: 12px; font-weight: 700; }
.status-pill.is-complete { border-color: #b9e2ca; background: var(--ops-green-soft); color: var(--ops-green); }
.group-statuses { display: flex; align-items: flex-end; flex-direction: column; gap: 5px; }
.archive-pill { display: inline-flex; width: fit-content; border: 1px solid #c8d4ed; border-radius: 999px; padding: 4px 8px; background: #edf2fb; color: #39517d; font-size: 11px; font-weight: 750; }
.group-list-row.is-archived { border-color: #bfd8f5; background: #edf6ff; }
.group-list-row.is-archived h3 { margin-top: 7px; color: #344762; }
.button-lock { color: #7d4b15 !important; }.button-lock:hover { background: #fff4e5; color: #613504 !important; }
.button-unlock { color: var(--ops-blue-dark) !important; }.button-unlock:hover { background: #dcecff; }
.roster-list { display: grid; gap: 2px; margin-top: 12px; }
.roster-person { display: grid; grid-template-columns: 24px 1fr auto; gap: 7px; align-items: center; min-height: 28px; color: #344054; font-size: 13px; }
.player-letter { color: var(--ops-blue); font-size: 12px; font-weight: 800; }
.player-rating { color: var(--ops-muted); font-variant-numeric: tabular-nums; }
.result-summary { margin: 12px 0 0; color: var(--ops-muted); font-size: 12px; }
.group-card-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 16px; }
.group-card-footer .button-primary { margin-right: auto; }
.scan-results-form { display: inline-flex; margin: 0; }
.action-menu { position: relative; }
.action-menu summary { display: inline-flex; min-height: 40px; align-items: center; padding: 9px 12px; border: 1px solid #d4d6d1; border-radius: 8px; color: #4b5565; cursor: pointer; font-size: 14px; font-weight: 700; list-style: none; }
.action-menu summary::-webkit-details-marker { display: none; }
.action-menu summary::after { content: '⌄'; margin-left: 7px; font-size: 12px; }
.action-menu[open] summary { background: #f7f8f7; }
.action-menu-panel { position: absolute; z-index: 3; right: 0; display: grid; min-width: 210px; margin-top: 6px; padding: 6px; border: 1px solid var(--ops-border); border-radius: 8px; background: #fff; box-shadow: 0 10px 24px rgba(16, 24, 40, .12); }
.page-heading .action-menu-panel { left: 0; right: auto; }
.action-menu-panel a, .scan-file-control { display: block; padding: 9px 10px; border-radius: 6px; color: #344054 !important; cursor: pointer; font-size: 13px; font-weight: 600; }
.action-menu-panel a:hover, .scan-file-control:hover { background: #f4f5f2; }
.scan-file-control input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.match-entry-page { max-width: 760px; }
.match-entry-form { padding-bottom: 72px; }
.match-list { display: grid; padding: 4px 16px; border: 1px solid var(--ops-border); border-radius: var(--ops-radius); background: var(--ops-surface); box-shadow: 0 1px 2px rgba(18, 24, 35, .03); }
.match-score-entry { min-width: 0; padding: 13px 0 15px; border-top: 1px solid #eef0ed; }
.match-score-entry:first-child { border-top: 0; }
.match-entry-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.match-entry-heading h2 { margin: 0; color: var(--ops-ink); font-size: 13px; letter-spacing: .015em; }
.match-no-show { display: inline-flex; align-items: center; gap: 6px; color: var(--ops-muted); font-size: 11px; font-weight: 700; }
.match-no-show select { width: 44px; padding: 5px 3px; border: 1px solid var(--ops-border); border-radius: 6px; background: #fff; color: var(--ops-ink); font: inherit; font-size: 12px; }
.match-score-entry.is-no-show-forfeit .match-score-table { opacity: .48; pointer-events: none; }
.match-score-table-wrap { min-width: 0; overflow-x: auto; border: 1px solid var(--ops-border); border-radius: 8px; }
.match-score-table { display: grid; grid-template-columns: minmax(116px, 1.65fr) repeat(5, minmax(46px, .65fr)); min-width: 360px; background: #fff; }
.match-player-heading, .match-game-heading { display: flex; min-height: 27px; align-items: center; padding: 5px 7px; background: #f7f8f6; color: var(--ops-muted); font-size: 10px; font-weight: 750; line-height: 1; }
.match-game-heading { justify-content: center; border-left: 1px solid var(--ops-border); text-align: center; }
.match-player-cell { display: flex; min-width: 0; min-height: 43px; align-items: center; gap: 8px; padding: 6px 8px; border: 0; border-top: 1px solid var(--ops-border); border-radius: 0; background: #fff; color: inherit; cursor: pointer; font: inherit; text-align: left; transition: background-color .12s ease, box-shadow .12s ease; }
.match-player-cell:not(:disabled):hover { background: var(--ops-blue-soft); }
.match-player-cell:not(:disabled):focus-visible { position: relative; z-index: 1; outline: 0; box-shadow: inset 0 0 0 2px var(--ops-blue); }
.match-player-cell:disabled { cursor: default; }
.match-player-cell strong { display: inline-grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; border-radius: 6px; background: var(--ops-blue-dark); color: #fff; font-size: 15px; line-height: 1; }
.match-player-cell span { min-width: 0; overflow: hidden; color: #475467; font-size: 11px; font-weight: 600; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.match-player-cell.is-match-winner { background: var(--ops-blue-dark); }
.match-player-cell.is-match-winner strong { background: #fff; color: var(--ops-blue-dark); }
.match-player-cell.is-match-winner span { color: #fff; font-weight: 750; }
.match-score-cell { display: grid; min-width: 0; min-height: 43px; place-items: stretch; border-top: 1px solid var(--ops-border); border-left: 1px solid var(--ops-border); background: #fff; transition: background-color .12s ease, box-shadow .12s ease; }
.match-score-cell input { width: 100%; min-width: 0; height: 100%; padding: 4px 2px; border: 0; border-radius: 0; outline: 0; background: transparent; color: var(--ops-ink); box-shadow: none; font: inherit; font-size: 16px; font-variant-numeric: tabular-nums; font-weight: 650; text-align: center; }
.match-score-cell input:focus, .match-score-cell input:focus-visible { border: 0; outline: 0; box-shadow: none; }
.match-score-cell:focus-within { position: relative; z-index: 1; box-shadow: inset 0 0 0 2px var(--ops-blue); }
.match-score-cell.is-winner { background: var(--ops-blue-dark); }
.match-score-cell.is-winner input { color: #fff; font-weight: 800; }
.match-round { padding: 16px; }
.match-round h2 { margin: 0 0 10px; color: var(--ops-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.match-choice { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #eef0ed; }
.match-choice-label { color: var(--ops-muted); font-size: 12px; font-weight: 800; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.match-segmented { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; }
.match-segmented input { position: absolute; opacity: 0; pointer-events: none; }
.match-segmented label { display: flex; min-width: 0; min-height: 44px; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid #d9ddd8; border-radius: 7px; color: #344054; cursor: pointer; font-size: 13px; font-weight: 650; }
.match-player-name { display: inline-flex; min-width: 0; align-items: center; gap: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-player-letter { display: inline-grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; border-radius: 5px; background: #e5eaf8; color: var(--ops-blue-dark); font-size: 13px; font-weight: 850; }
.match-player-rating { flex: 0 0 auto; color: var(--ops-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.match-segmented .match-none { color: var(--ops-muted); font-weight: 600; }
.match-segmented input:checked + label { border-color: var(--ops-blue); background: var(--ops-blue-soft); color: var(--ops-blue-dark); box-shadow: inset 0 0 0 1px var(--ops-blue); }
.match-segmented input:checked + label .match-player-letter { background: var(--ops-blue); color: #fff; }
.sticky-save { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; padding: 12px 0; background: linear-gradient(to bottom, rgba(246,245,241,0), var(--ops-canvas) 35%); }

.content-card { margin-bottom: 16px; padding: 18px; }
.card-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.rating-list, .result-list { display: grid; }
.rating-row, .result-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid #eef0ed; font-size: 14px; }
.rating-row div { display: grid; gap: 2px; }.rating-row span { color: var(--ops-muted); font-size: 13px; }.rating-change { color: var(--ops-muted); }.rating-change.positive { color: var(--ops-green); }.rating-change.negative { color: var(--ops-red); }.versus { color: var(--ops-muted); font-size: 12px; }
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; overflow: hidden; }.stat-strip div { display: grid; gap: 2px; padding: 16px; border-right: 1px solid var(--ops-border); }.stat-strip div:last-child { border: 0; }.stat-strip strong { color: var(--ops-ink); font-size: 24px; }.stat-strip span { color: var(--ops-muted); font-size: 13px; }
.maintenance-panel { margin-top: 16px; padding: 0; }.maintenance-panel summary { padding: 16px 18px; cursor: pointer; font-weight: 750; }.maintenance-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 18px; }

.form-layout { max-width: 980px; }.form-layout-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr); gap: 16px; }.app-form { display: grid; gap: 8px; }.app-form label { margin-top: 6px; color: #344054; font-size: 13px; font-weight: 700; }.app-form label span { color: var(--ops-muted); font-weight: 500; }.app-form input, .app-form textarea, .app-form select { width: 100%; min-height: 42px; padding: 9px 10px; border: 1px solid #ced3cc; border-radius: 7px; background: #fff; color: var(--ops-ink); font: inherit; }.app-form textarea { min-height: 92px; resize: vertical; }.app-form fieldset { display: grid; gap: 8px; margin: 8px 0; padding: 12px; border: 1px solid var(--ops-border); border-radius: 8px; }.app-form legend { color: #344054; font-size: 13px; font-weight: 700; }.app-form .choice-row { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; }.app-form .choice-row input { width: auto; min-height: 0; }.app-form .button { margin-top: 8px; justify-self: start; }.info-card { align-self: start; }.info-card h2 { margin: 0 0 8px; color: var(--ops-ink); font-size: 17px; }.info-card p { color: var(--ops-muted); font-size: 13px; }.info-card code { display: inline-block; padding: 7px; border-radius: 6px; background: #f5f5f2; color: #344054; font-size: 12px; overflow-wrap: anywhere; }
.data-table-wrap { overflow-x: auto; }.data-table { width: 100%; margin: 0; border: 0; border-collapse: collapse; box-shadow: none; }.data-table th { padding: 9px 10px; border-bottom: 1px solid var(--ops-border); background: #f8f8f6; color: var(--ops-muted); font-size: 12px; letter-spacing: .03em; text-align: left; text-transform: uppercase; }.data-table td { padding: 11px 10px; border-bottom: 1px solid #eef0ed; color: #344054; vertical-align: middle; }.data-table td > span { display: block; margin-top: 2px; color: var(--ops-muted); font-size: 12px; }.data-table tr:hover td { background: #fbfcfa; }.table-note { color: var(--ops-muted); font-size: 13px; }

/* Compact legacy authenticated layouts not yet structurally converted. */
.dashboard-body, .groups-page-body, .matches-page-body, .results-page-body, .upload-page-body { background: var(--ops-canvas); }
.dashboard-body::before { display: none; }

@media (max-width: 760px) {
    .app-topbar { align-items: flex-start; flex-wrap: wrap; gap: 8px 14px; padding: 10px 16px; }.app-nav { order: 3; width: 100%; overflow-x: auto; }.app-account { margin-left: auto; }.app-account > span { display: none; }.app-main { width: min(100% - 28px, 1120px); padding-top: 24px; }.page-heading, .page-heading-with-actions, .featured-league, .league-row, .group-list-row { align-items: flex-start; flex-direction: column; }.page-heading .button, .featured-league .button, .league-row .row-actions, .group-list-row .button { width: 100%; }.page-actions { width: 100%; justify-content: stretch; }.page-actions .button { flex: 1 1 145px; }.row-actions { width: 100%; justify-content: stretch; }.row-actions > * { flex: 1; }.row-actions .button { width: 100%; }.group-grid { grid-template-columns: 1fr; }.group-card-footer .button-primary { margin-right: 0; }.match-choice { grid-template-columns: 1fr; gap: 7px; }.match-list { padding-right: 10px; padding-left: 10px; }.match-score-table { grid-template-columns: minmax(98px, 1.4fr) repeat(5, minmax(43px, .6fr)); min-width: 313px; }.match-player-cell { gap: 5px; padding-right: 5px; padding-left: 5px; }.match-player-cell strong { width: 24px; height: 24px; flex-basis: 24px; }.match-game-heading { padding-right: 2px; padding-left: 2px; font-size: 9px; }.match-segmented { grid-template-columns: 1fr 1fr; }.match-segmented .match-none { grid-column: span 2; justify-content: center; }.form-layout-grid { grid-template-columns: 1fr; }.stat-strip { grid-template-columns: 1fr; }.stat-strip div { border-right: 0; border-bottom: 1px solid var(--ops-border); }.stat-strip div:last-child { border-bottom: 0; }.data-table th, .data-table td { white-space: nowrap; }.sticky-save { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}

@media print { .app-topbar, .sticky-save { display: none !important; }.app-page { background: #fff; }.app-main { width: 100%; padding: 0; } }

/* Public welcome page: a spacious, product-led introduction that remains within the app palette. */
.home-page { min-height: 100vh; margin: 0; background: var(--ops-canvas); color: var(--ops-ink); }
.home-page *, .home-page *::before, .home-page *::after { box-sizing: border-box; }
.home-page a { text-decoration: none; }
.home-container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.home-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 84px; border-bottom: 1px solid var(--ops-border); }
.home-brand { display: inline-flex; align-items: center; gap: 9px; width: fit-content; color: var(--ops-ink); font-size: 14px; font-weight: 750; letter-spacing: -.015em; }
.home-mark { width: 26px; height: 26px; object-fit: contain; }
.home-nav { display: flex; align-items: center; gap: 4px; }
.home-nav a, .home-sign-in-link { border-radius: 7px; padding: 8px 10px; color: #536075; font-size: 13px; font-weight: 650; }
.home-nav a:hover, .home-sign-in-link:hover { color: var(--ops-blue-dark); background: var(--ops-blue-soft); }
.home-header-actions, .home-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.home-header-actions { justify-content: flex-end; }
.home-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; padding: 10px 14px; font-size: 13px; font-weight: 750; line-height: 1; transition: transform .16s ease, background-color .16s ease, border-color .16s ease; }
.home-button-primary { background: var(--ops-blue); color: #fff !important; box-shadow: 0 1px 1px rgba(23, 61, 156, .18); }
.home-button-primary:hover { background: var(--ops-blue-dark); transform: translateY(-1px); }
.home-button span { font-size: 16px; line-height: 0; }
.home-hero { padding: clamp(74px, 11vw, 142px) 0 clamp(44px, 6vw, 82px); text-align: center; }
.home-hero-copy { display: grid; justify-items: center; }
.home-kicker, .home-section-index { margin: 0; color: var(--ops-blue); font-size: 11px; font-weight: 800; letter-spacing: .09em; line-height: 1.2; text-transform: uppercase; }
.home-kicker { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid #d3dfff; border-radius: 999px; background: #f9fbff; color: #4264b8; letter-spacing: .045em; }
.home-kicker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ops-green); box-shadow: 0 0 0 3px var(--ops-green-soft); }
.home-hero h1 { max-width: 900px; margin: 20px 0; color: var(--ops-ink); font-size: clamp(48px, 7vw, 88px); font-weight: 750; letter-spacing: -.072em; line-height: .97; }
.home-intro { max-width: 600px; margin: 0; color: var(--ops-muted); font-size: clamp(16px, 1.55vw, 19px); line-height: 1.55; }
.home-hero-actions { justify-content: center; margin-top: 28px; }
.home-text-link { display: inline-flex; align-items: center; gap: 7px; color: #46546d; font-size: 13px; font-weight: 750; }
.home-text-link:hover { color: var(--ops-blue-dark); }
.home-visual-wrap { padding-bottom: clamp(86px, 13vw, 158px); }
.home-visual { position: relative; min-height: 400px; overflow: hidden; border: 1px solid #dce1ed; border-radius: 16px; background: #fcfcfa; box-shadow: 0 24px 52px rgba(38, 57, 93, .09), 0 3px 8px rgba(38, 57, 93, .04); isolation: isolate; }
.home-visual::before { position: absolute; z-index: -1; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(125deg, #f6f7f7, #fff 58%, #f3f5ff); content: ""; }
.home-visual img { display: block; width: 100%; height: 100%; min-height: 400px; object-fit: cover; object-position: center; animation: home-visual-drift 7s ease-in-out infinite; }
.home-visual-glow { position: absolute; z-index: -1; top: 12%; left: 22%; width: 56%; aspect-ratio: 1; border-radius: 50%; background: rgba(37, 87, 214, .09); filter: blur(56px); }
.home-visual-label { position: absolute; z-index: 1; border: 1px solid rgba(206, 212, 227, .9); border-radius: 999px; padding: 8px 10px; background: rgba(255, 255, 255, .8); color: #56627a; box-shadow: 0 4px 14px rgba(25, 40, 70, .06); backdrop-filter: blur(8px); font-size: 11px; font-weight: 750; letter-spacing: .01em; }
.home-visual-label-top { top: 13%; left: 9%; }.home-visual-label-bottom { right: 8%; bottom: 13%; }
@keyframes home-visual-drift { 0%, 100% { transform: scale(1.01) translate3d(0, 0, 0); } 50% { transform: scale(1.025) translate3d(0, -6px, 0); } }
.home-introduction { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(42px, 8vw, 130px); padding-bottom: clamp(86px, 13vw, 158px); }
.home-section-heading h2, .home-workflow-copy h2, .home-closing h2 { margin: 17px 0 18px; color: var(--ops-ink); font-size: clamp(34px, 4.25vw, 54px); font-weight: 730; letter-spacing: -.055em; line-height: 1.02; }
.home-section-heading > p:last-child, .home-workflow-copy > p, .home-closing > p { max-width: 410px; margin: 0; color: var(--ops-muted); font-size: 16px; line-height: 1.55; }
.home-capabilities { border-top: 1px solid #dce0dc; }
.home-capability { display: grid; grid-template-columns: 58px 1fr; gap: 15px; padding: 23px 0 25px; border-bottom: 1px solid #dce0dc; }
.home-capability-number { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 7px; background: #eaf0ff; color: var(--ops-blue-dark); font-size: 11px; font-weight: 800; }
.home-capability h3 { margin: 1px 0 7px; color: var(--ops-ink); font-size: 17px; letter-spacing: -.025em; }.home-capability p { margin: 0; color: var(--ops-muted); font-size: 14px; line-height: 1.55; }
.home-workflow-section { padding: clamp(78px, 10vw, 130px) 0; border-top: 1px solid #e2e4df; border-bottom: 1px solid #e2e4df; background: #fff; }
.home-workflow-grid { display: grid; grid-template-columns: minmax(270px, .82fr) minmax(440px, 1.18fr); gap: clamp(40px, 8vw, 116px); align-items: center; }
.home-workflow-copy h2 { max-width: 440px; font-size: clamp(32px, 3.7vw, 48px); }.home-workflow-copy > p { margin-bottom: 30px; }
.home-steps { display: grid; gap: 17px; margin: 0; padding: 0; list-style: none; }
.home-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: center; }.home-steps li > span { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #dce0dc; border-radius: 50%; color: var(--ops-blue-dark); font-size: 11px; font-weight: 800; }.home-steps strong, .home-steps small { display: block; }.home-steps strong { color: #344054; font-size: 14px; }.home-steps small { margin-top: 2px; color: var(--ops-muted); font-size: 12px; }
.home-preview { overflow: hidden; border: 1px solid #dce1ed; border-radius: 12px; background: #fcfcfd; box-shadow: 0 18px 42px rgba(40, 54, 80, .09); color: #354055; font-size: 11px; }
.home-preview-toolbar { display: flex; min-height: 43px; align-items: center; gap: 5px; padding: 0 13px; border-bottom: 1px solid #e8ebf0; background: #fff; }.home-preview-window-dot { width: 7px; height: 7px; border-radius: 50%; background: #d4d9e1; }.home-preview-toolbar p { margin: 0 auto; color: #667085; font-size: 10px; font-weight: 650; }.home-preview-status { border-radius: 999px; padding: 4px 7px; background: var(--ops-green-soft); color: var(--ops-green); font-size: 9px; font-weight: 800; }
.home-preview-body { display: grid; grid-template-columns: 42px 1fr; min-height: 340px; }.home-preview-sidebar { display: grid; align-content: start; justify-items: center; gap: 14px; padding-top: 13px; border-right: 1px solid #e8ebf0; background: #f8f9fb; }.home-preview-sidebar > span:not(.home-preview-logo) { width: 16px; height: 16px; border-radius: 4px; background: #dce2eb; }.home-preview-sidebar > span.is-active { background: var(--ops-blue); }.home-preview-logo { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 6px; background: var(--ops-blue-dark); color: #fff; font-size: 12px; font-weight: 850; }
.home-preview-content { display: grid; grid-template-rows: auto 1fr auto; gap: 17px; padding: 21px; }.home-preview-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; }.home-preview-heading span, .home-preview-heading strong { display: block; }.home-preview-heading span { margin-bottom: 4px; color: #8490a3; font-size: 10px; }.home-preview-heading strong { color: #273145; font-size: 16px; letter-spacing: -.025em; }.home-preview-heading b { border: 1px solid #dce4f8; border-radius: 999px; padding: 5px 7px; background: #f2f5ff; color: #4864ab; font-size: 9px; }
.home-preview-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }.home-preview-groups article { overflow: hidden; border: 1px solid #e2e5e9; border-radius: 8px; background: #fff; }.home-preview-groups header { display: flex; justify-content: space-between; padding: 10px; border-bottom: 1px solid #edf0f2; color: #56627a; font-weight: 800; }.home-preview-groups header b { color: var(--ops-green); font-size: 9px; }.home-preview-groups header .is-playing { color: #a26108; }.home-preview-groups p { display: grid; grid-template-columns: 16px 1fr auto; gap: 5px; align-items: center; margin: 0; padding: 7px 9px; border-bottom: 1px solid #f0f1f2; color: #4c576b; font-size: 10px; }.home-preview-groups p strong { color: var(--ops-blue); font-size: 9px; }.home-preview-groups p em { color: #8993a3; font-size: 9px; font-style: normal; }.home-preview-groups footer { padding: 8px 9px; color: #788397; font-size: 9px; }
.home-preview-result { display: grid; gap: 4px; padding: 11px; border: 1px solid #d8e2fb; border-radius: 7px; background: #f8faff; }.home-preview-result span, .home-preview-result small { color: #7080a0; font-size: 9px; }.home-preview-result strong { color: #364562; font-size: 11px; }.home-preview-result i { color: var(--ops-blue-dark); font-style: normal; }
.home-closing { padding: clamp(90px, 13vw, 158px) 0; text-align: center; }.home-closing > p { margin-right: auto; margin-left: auto; }.home-closing h2 { max-width: 770px; margin-right: auto; margin-left: auto; font-size: clamp(40px, 5.4vw, 68px); }.home-closing .home-hero-actions { margin-top: 30px; }
.home-page a:focus-visible { outline: 3px solid #b9ccff; outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .home-page *, .home-page *::before, .home-page *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (max-width: 840px) { .home-header { grid-template-columns: 1fr auto; gap: 10px; }.home-nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; padding-bottom: 14px; }.home-header-actions { grid-column: 2; grid-row: 1; }.home-workflow-grid { grid-template-columns: 1fr; }.home-workflow-copy { max-width: 570px; }.home-preview { max-width: 700px; }.home-introduction { gap: 42px; } }
@media (max-width: 620px) { .home-container { width: min(100% - 32px, 520px); }.home-header { min-height: 72px; }.home-brand { font-size: 13px; }.home-mark { width: 23px; height: 23px; }.home-header-actions { gap: 7px; }.home-sign-in-link { padding-right: 2px; padding-left: 2px; }.home-header .home-button { min-height: 36px; padding: 8px 10px; }.home-header .home-button span { display: none; }.home-nav { justify-content: flex-start; gap: 10px; padding-top: 2px; }.home-nav a { padding: 6px 0; }.home-hero { padding-top: 68px; }.home-hero h1 { font-size: clamp(43px, 13vw, 65px); letter-spacing: -.067em; }.home-intro { font-size: 16px; }.home-hero-actions { align-items: stretch; flex-direction: column; width: 100%; }.home-hero-actions .home-button { width: 100%; }.home-text-link { justify-content: center; min-height: 36px; }.home-visual-wrap { padding-bottom: 85px; }.home-visual { min-height: 250px; border-radius: 11px; }.home-visual img { min-height: 250px; }.home-visual-label { display: none; }.home-introduction { grid-template-columns: 1fr; padding-bottom: 86px; }.home-section-heading h2, .home-workflow-copy h2 { font-size: 36px; }.home-section-heading h2 br { display: none; }.home-workflow-section { padding: 76px 0; }.home-preview-body { min-height: 296px; }.home-preview-content { gap: 14px; padding: 15px; }.home-preview-groups { gap: 6px; }.home-preview-groups p { grid-template-columns: 12px 1fr; padding: 6px; }.home-preview-groups p em { display: none; }.home-preview-groups header, .home-preview-groups footer { padding-right: 7px; padding-left: 7px; }.home-closing { padding: 88px 0; }.home-closing h2 { font-size: 43px; }.home-closing .home-hero-actions { margin-top: 25px; } }

/* Public welcome page revision: an editorial, product-led system with space reserved for 3D. */
@font-face {
    font-family: 'Inter Variable';
    src: url('/static/fonts/InterVariable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

.home-page { overflow-x: hidden; background: #f6f5f1; font-family: 'Inter Variable', 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.home-container { width: min(1180px, calc(100% - 48px)); }
.home-header { position: sticky; z-index: 10; top: 0; min-height: 72px; border: 0; border-bottom: 1px solid #e4e4df; background: rgba(246, 245, 241, .94); backdrop-filter: blur(12px); }
.home-header-inner { display: grid; grid-template-columns: 1fr auto 1fr; min-height: 72px; align-items: center; }
.home-brand { color: #172033; font-size: 13px; font-weight: 600; letter-spacing: -.02em; }.home-mark { width: 23px; height: 23px; }
.home-nav { gap: 13px; }.home-nav a, .home-sign-in-link { padding: 6px 0; border-radius: 0; background: none !important; color: #667085; font-size: 12px; font-weight: 500; }.home-nav a:hover, .home-sign-in-link:hover { color: #172033; }
.home-header-actions { gap: 18px; }.home-button { min-height: 36px; border-radius: 7px; padding: 9px 12px; font-size: 12px; font-weight: 600; }.home-button-primary { background: #172033; box-shadow: none; }.home-button-primary:hover { background: #344054; transform: none; }
.home-main { position: relative; overflow: clip; }.home-hero-3d-stage { position: absolute; z-index: 0; top: 0; left: 50%; width: min(1740px, 140vw); height: 780px; transform: translateX(-50%); pointer-events: none; }.home-hero-3d-placeholder { width: 100%; height: 100%; opacity: 0; }
.home-hero { position: relative; z-index: 1; display: flex; min-height: 650px; flex-direction: column; justify-content: flex-end; padding: 128px 0 70px; text-align: left; }.home-hero-copy { display: block; max-width: 770px; }.home-hero h1 { max-width: none; margin: 0; color: #172033; font-size: clamp(50px, 5.2vw, 72px); font-weight: 510; letter-spacing: -.055em; line-height: 1; }.home-hero-copy > p { max-width: 430px; margin: 26px 0 0; color: #667085; font-size: 16px; line-height: 1.52; }.home-hero-actions { justify-content: flex-start; margin-top: 27px; }.home-hero-aside { position: absolute; right: 0; bottom: 79px; display: inline-flex; gap: 8px; color: #525f75; font-size: 12px; font-weight: 500; }.home-hero-aside:hover { color: #172033; }
.home-principles { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #e0e1dc; border-bottom: 1px solid #e0e1dc; }.home-principle { min-height: 360px; padding: 0 30px 34px; border-left: 1px solid #e0e1dc; }.home-principle:first-child { border-left: 0; }.home-principle-visual { position: relative; display: grid; height: 206px; align-items: center; justify-items: center; overflow: hidden; margin-bottom: 24px; border-bottom: 1px solid #ecece7; }.home-principle h2 { margin: 0 0 9px; color: #263047; font-size: 15px; font-weight: 590; letter-spacing: -.025em; }.home-principle p { max-width: 310px; margin: 0; color: #667085; font-size: 13px; line-height: 1.5; }
.home-principle-stack i { position: absolute; width: 122px; height: 72px; border: 1px solid #aeb8cc; border-radius: 2px; transform: rotateX(58deg) rotateZ(-28deg); }.home-principle-stack i:nth-child(1) { transform: translateY(-32px) rotateX(58deg) rotateZ(-28deg); }.home-principle-stack i:nth-child(2) { transform: translateY(-9px) rotateX(58deg) rotateZ(-28deg); }.home-principle-stack i:nth-child(3) { transform: translateY(14px) rotateX(58deg) rotateZ(-28deg); }.home-principle-stack i:nth-child(4) { transform: translateY(37px) rotateX(58deg) rotateZ(-28deg); }
.home-principle-orbit::before, .home-principle-orbit::after { position: absolute; width: 148px; height: 56px; border: 1px solid #aeb8cc; border-radius: 50%; content: ''; }.home-principle-orbit::before { transform: rotate(28deg); }.home-principle-orbit::after { transform: rotate(-28deg); }.home-principle-orbit i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #2557d6; }.home-principle-orbit i:nth-child(1) { transform: translate(-55px, -25px); }.home-principle-orbit i:nth-child(2) { transform: translate(44px, 22px); background: #16794d; }.home-principle-orbit i:nth-child(3) { transform: translate(4px, 1px); background: #172033; }
.home-principle-ladder { align-items: end; grid-auto-flow: column; gap: 8px; padding-bottom: 28px; }.home-principle-ladder i { width: 30px; border: 1px solid #aeb8cc; border-radius: 2px 2px 0 0; }.home-principle-ladder i:nth-child(1) { height: 28px; }.home-principle-ladder i:nth-child(2) { height: 50px; }.home-principle-ladder i:nth-child(3) { height: 76px; background: #eaf0ff; border-color: #8ea8ed; }.home-principle-ladder i:nth-child(4) { height: 102px; }.home-principle-ladder i:nth-child(5) { height: 130px; }
.home-feature { position: relative; z-index: 1; margin-top: -1px; padding: clamp(88px, 10vw, 134px) 0; border-top: 1px solid #e0e1dc; border-bottom: 1px solid #e0e1dc; background: #fff; }.home-feature-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 64px; }.home-feature-heading h2, .home-closing h2 { margin: 0; color: #172033; font-size: clamp(40px, 4.35vw, 60px); font-weight: 510; letter-spacing: -.055em; line-height: 1.02; }.home-feature-heading > div { max-width: 420px; justify-self: end; }.home-feature-heading p, .home-closing > p { margin: 0; color: #667085; font-size: 15px; line-height: 1.55; }.home-text-link { margin-top: 19px; color: #3e4d68; font-size: 12px; font-weight: 600; }.home-text-link:hover { color: #172033; }
.home-flow-screen { overflow: hidden; border: 1px solid #dfe3e1; border-radius: 0; background: #fff; color: #435069; box-shadow: none; }.home-flow-topbar { display: flex; min-height: 48px; align-items: center; gap: 12px; padding: 0 15px; border-bottom: 1px solid #e8eae8; color: #6c7687; }.home-flow-brand { display: grid; width: 22px; height: 22px; place-items: center; background: #172033; color: #fff; font-size: 11px; font-weight: 700; }.home-flow-topbar p { margin: 0 auto; font-size: 11px; font-weight: 500; }.home-flow-live { display: inline-flex; align-items: center; gap: 6px; color: #16794d; font-size: 10px; font-weight: 600; }.home-flow-live i { width: 6px; height: 6px; border-radius: 50%; background: #16794d; }.home-flow-layout { display: grid; grid-template-columns: 48px 1fr; min-height: 400px; }.home-flow-rail { display: grid; align-content: start; justify-items: center; gap: 17px; padding-top: 20px; border-right: 1px solid #e8eae8; background: #fbfbfa; }.home-flow-rail span { width: 15px; height: 15px; border-radius: 3px; background: #e1e5e2; }.home-flow-rail span.is-active { background: #2557d6; }.home-flow-content { display: grid; grid-template-rows: auto 1fr auto; gap: 26px; padding: 30px; }.home-flow-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }.home-flow-heading span, .home-flow-heading strong { display: block; }.home-flow-heading span { margin-bottom: 5px; color: #858fa0; font-size: 11px; }.home-flow-heading strong { color: #263047; font-size: 21px; font-weight: 570; letter-spacing: -.035em; }.home-flow-heading > b { padding: 5px 8px; border: 1px solid #dce4f8; border-radius: 999px; background: #f7f9ff; color: #5069ab; font-size: 10px; font-weight: 600; }.home-flow-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }.home-flow-groups article { overflow: hidden; border: 1px solid #e3e6e5; background: #fff; }.home-flow-groups article > header { display: flex; justify-content: space-between; padding: 11px; border-bottom: 1px solid #ecefed; color: #536075; font-size: 11px; font-weight: 650; }.home-flow-groups article > header b { color: #5b748a; font-size: 9px; }.home-flow-groups article.is-live > header b { color: #a26108; }.home-flow-groups article > header .is-complete { color: #16794d; }.home-flow-groups article > p { display: grid; grid-template-columns: 18px 1fr auto; gap: 6px; align-items: center; margin: 0; padding: 8px 10px; border-bottom: 1px solid #f0f1ef; color: #4f5c70; font-size: 10px; }.home-flow-groups p strong { color: #2557d6; font-size: 9px; }.home-flow-groups p em { color: #8a94a4; font-size: 9px; font-style: normal; }.home-flow-groups footer { position: relative; min-height: 35px; padding: 10px; color: #748094; font-size: 9px; }.home-flow-groups article.is-live footer { color: #7d5c2a; }.home-flow-ball { position: relative; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #b42318; vertical-align: middle; }.home-flow-result { display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; padding: 13px; border-top: 1px solid #e7eae8; background: #fbfbfa; }.home-flow-result span, .home-flow-result small { color: #7d8796; font-size: 10px; }.home-flow-result strong { color: #354057; font-size: 11px; font-weight: 600; }.home-flow-result i { color: #2557d6; font-style: normal; }
.home-closing { position: relative; z-index: 1; padding: clamp(108px, 14vw, 174px) 0; text-align: center; }.home-closing h2 { max-width: 780px; margin-right: auto; margin-left: auto; }.home-closing > p { max-width: 430px; margin: 24px auto 0; }.home-closing .home-hero-actions { justify-content: center; margin-top: 29px; }
.home-reveal { opacity: 1; filter: blur(0); transform: translateY(0); }.home-motion-ready .home-reveal:not(.is-visible) { opacity: 0; filter: blur(8px); transform: translateY(22px); }.home-motion-ready .home-reveal { transition: opacity .72s cubic-bezier(.2, .65, .2, 1), filter .72s cubic-bezier(.2, .65, .2, 1), transform .72s cubic-bezier(.2, .65, .2, 1); }.home-motion-ready .home-reveal.is-visible { opacity: 1; filter: blur(0); transform: translateY(0); }
.home-motion-ready .home-scroll-scene:not(.is-active) .home-principle-visual { opacity: 0; transform: translateY(18px) scale(.97); }.home-motion-ready .home-scroll-scene .home-principle-visual { transition: opacity .7s cubic-bezier(.2, .65, .2, 1) .12s, transform .7s cubic-bezier(.2, .65, .2, 1) .12s; }.home-motion-ready .home-feature:not(.is-active) .home-flow-groups article, .home-motion-ready .home-feature:not(.is-active) .home-flow-result { opacity: 0; transform: translateY(16px); }.home-motion-ready .home-feature .home-flow-groups article, .home-motion-ready .home-feature .home-flow-result { transition: opacity .58s cubic-bezier(.2, .65, .2, 1), transform .58s cubic-bezier(.2, .65, .2, 1); }.home-motion-ready .home-feature.is-active .home-flow-groups article:nth-child(1) { transition-delay: .12s; }.home-motion-ready .home-feature.is-active .home-flow-groups article:nth-child(2) { transition-delay: .22s; }.home-motion-ready .home-feature.is-active .home-flow-groups article:nth-child(3) { transition-delay: .32s; }.home-motion-ready .home-feature.is-active .home-flow-result { transition-delay: .42s; }
.home-motion-ready .home-feature.is-active .home-flow-live i { animation: home-live-pulse 1.8s ease-in-out infinite; }.home-motion-ready .home-feature.is-active .home-flow-ball { animation: home-ball-rally 3.4s cubic-bezier(.45, .05, .55, .95) infinite; }.home-motion-ready .home-feature.is-active .home-flow-result { animation: home-result-update 6s ease-in-out infinite; }.home-motion-ready .home-principle.is-active .home-principle-orbit i:nth-child(1) { animation: home-orbit-one 5.5s ease-in-out infinite; }.home-motion-ready .home-principle.is-active .home-principle-orbit i:nth-child(2) { animation: home-orbit-two 5.5s ease-in-out infinite; }
@keyframes home-live-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(22, 121, 77, .32); } 50% { box-shadow: 0 0 0 5px rgba(22, 121, 77, 0); } }
@keyframes home-ball-rally { 0%, 100% { transform: translateX(0) translateY(0); } 25% { transform: translateX(40px) translateY(-5px); } 50% { transform: translateX(78px) translateY(0); } 75% { transform: translateX(40px) translateY(4px); } }
@keyframes home-result-update { 0%, 63%, 100% { background: #fbfbfa; } 72%, 85% { background: #f5f8ff; } }
@keyframes home-orbit-one { 0%, 100% { transform: translate(-55px, -25px); } 50% { transform: translate(34px, 20px); } }
@keyframes home-orbit-two { 0%, 100% { transform: translate(44px, 22px); } 50% { transform: translate(-38px, -18px); } }
.home-page a:focus-visible { outline: 3px solid #b9ccff; outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .home-page *, .home-page *::before, .home-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 760px) { .home-header-inner { grid-template-columns: 1fr auto; min-height: 68px; }.home-nav { grid-row: 2; grid-column: 1 / -1; padding: 0 0 12px; }.home-header-actions { grid-row: 1; grid-column: 2; }.home-hero { min-height: 530px; padding-top: 90px; padding-bottom: 56px; }.home-hero h1 { font-size: clamp(45px, 11.5vw, 62px); }.home-hero-aside { position: static; margin-top: 46px; }.home-principles { grid-template-columns: 1fr; }.home-principle { min-height: 0; padding: 0 0 31px; border-top: 1px solid #e0e1dc; border-left: 0; }.home-principle:first-child { border-top: 0; }.home-principle-visual { height: 152px; margin-bottom: 18px; }.home-feature-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 42px; }.home-feature-heading > div { justify-self: start; }.home-flow-layout { grid-template-columns: 36px 1fr; }.home-flow-content { gap: 17px; padding: 17px; }.home-flow-groups { grid-template-columns: 1fr; }.home-flow-groups article:nth-child(3) { display: none; }.home-flow-groups article > p { padding: 6px 8px; }.home-flow-groups p em { display: none; }.home-flow-heading strong { font-size: 17px; }.home-closing h2 { font-size: 42px; }.home-hero-actions { align-items: stretch; flex-direction: column; width: 100%; }.home-hero-actions .home-button { width: 100%; }.home-text-link { justify-content: center; }.home-closing .home-hero-actions { align-items: center; }.home-closing .home-button { width: auto; } }
@media (max-width: 460px) { .home-container { width: min(100% - 32px, 520px); }.home-brand { font-size: 12px; }.home-mark { width: 20px; height: 20px; }.home-header-actions { gap: 12px; }.home-header .home-button { padding: 8px 9px; }.home-header .home-button span { display: none; }.home-sign-in-link { font-size: 11px; }.home-nav { gap: 13px; }.home-nav a { font-size: 11px; }.home-hero-copy > p { font-size: 15px; }.home-hero-aside { font-size: 11px; }.home-principle { padding-bottom: 27px; }.home-feature { padding-top: 78px; padding-bottom: 78px; }.home-flow-topbar p { overflow: hidden; max-width: 150px; text-overflow: ellipsis; white-space: nowrap; }.home-flow-live { font-size: 8px; }.home-closing h2 { font-size: 38px; } }

/* Sign in */
.auth-page { min-height: 100vh; margin: 0; background: var(--ops-canvas); color: var(--ops-ink); }
.auth-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 10px max(20px, calc((100vw - 1120px) / 2)); border-bottom: 1px solid var(--ops-border); background: #fff; }
.auth-home-link { color: var(--ops-muted); font-size: 14px; font-weight: 650; text-decoration: none; }.auth-home-link:hover { color: var(--ops-blue-dark); }
.auth-main { display: grid; place-items: start center; padding: clamp(38px, 9vh, 104px) 20px 48px; }
.auth-card { width: min(100%, 430px); padding: 28px; border: 1px solid var(--ops-border); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(18, 24, 35, .04); }
.auth-card h1 { margin: 4px 0 7px; color: var(--ops-ink); font-size: 32px; letter-spacing: -.04em; }.auth-intro { margin: 0 0 22px; color: var(--ops-muted); font-size: 14px; }
.auth-form { display: grid; gap: 8px; }.auth-form label { margin-top: 5px; color: #344054; font-size: 13px; font-weight: 700; }.auth-form input { width: 100%; min-height: 44px; padding: 9px 10px; border: 1px solid #ced3cc; border-radius: 7px; background: #fff; color: var(--ops-ink); font: inherit; }.auth-form .button { width: 100%; margin-top: 10px; }
.auth-error { margin: 0 0 16px; padding: 10px 12px; border: 1px solid #f1c7c3; border-radius: 8px; background: #fff9f8; color: #a22a22; font-size: 14px; }.auth-footer { margin: 20px 0 0; color: var(--ops-muted); font-size: 14px; text-align: center; }.auth-footer a { color: var(--ops-blue-dark); font-weight: 700; text-decoration: none; }.auth-footer a:hover { text-decoration: underline; }
.auth-page input:focus-visible, .auth-page a:focus-visible { outline: 3px solid #b9ccff; outline-offset: 2px; }
@media (max-width: 480px) { .auth-topbar { padding: 10px 16px; }.auth-main { padding: 32px 14px; }.auth-card { padding: 24px 20px; } }

/* Venue board: one static screen of every group, sized for a TV screenshot. */
.tv-page { display: flex; flex-direction: column; height: 100vh; margin: 0; overflow: hidden; background: var(--ops-canvas); color: var(--ops-ink); }
.tv-topbar { display: flex; align-items: center; justify-content: space-between; gap: clamp(16px, 2vw, 40px); padding: clamp(12px, 1.6vh, 24px) clamp(18px, 2.2vw, 44px); border-bottom: 1px solid var(--ops-border); background: #fff; }
.tv-title h1 { margin: 2px 0 0; color: var(--ops-ink); font-size: clamp(24px, 2.6vw, 46px); line-height: 1.05; letter-spacing: -.03em; }
.tv-eyebrow { margin: 0; color: var(--ops-blue); font-size: clamp(11px, .9vw, 17px); font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.tv-back { color: var(--ops-muted) !important; font-size: 13px; font-weight: 650; text-decoration: none; }
.tv-back:hover { color: var(--ops-blue-dark) !important; }
.tv-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; padding: clamp(12px, 1.8vh, 28px) clamp(18px, 2.2vw, 44px); }
.tv-fit { transform-origin: top left; }
.tv-grid { display: grid; grid-auto-rows: minmax(min-content, 1fr); gap: clamp(10px, 1.2vw, 22px); height: 100%; align-content: stretch; }
.tv-grid.is-measuring { grid-auto-rows: auto; height: auto; align-content: start; }
.tv-group { display: flex; min-width: 0; flex-direction: column; padding: clamp(10px, 1.1vw, 20px) clamp(12px, 1.2vw, 22px) clamp(8px, .9vw, 16px); border: 1px solid var(--ops-border); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(18, 24, 35, .03); }
.tv-group.is-complete { border-color: #b9e2ca; background: var(--ops-green-soft); }
.tv-group-header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: clamp(6px, .7vh, 12px); border-bottom: 1px solid #eef0ed; }
.tv-group-header h2 { margin: 0; color: var(--ops-ink); font-size: clamp(17px, 1.5vw, 30px); letter-spacing: -.02em; }
.tv-tables { display: inline-flex; align-items: center; gap: 1px; flex: 0 0 auto; padding: clamp(3px, .35vh, 7px) clamp(6px, .6vw, 12px); border: 1px solid #d7e1ff; border-radius: 999px; background: var(--ops-blue-soft); color: var(--ops-blue-dark); cursor: text; font-size: clamp(15px, 1.3vw, 28px); font-weight: 800; line-height: 1.1; }
.tv-tables input { min-width: 1ch; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; }
.tv-tables input:focus, .tv-tables input:focus-visible { outline: 0; }
.tv-group.is-complete .tv-tables { border-color: #b9e2ca; background: #dff2e7; color: var(--ops-green); }
.tv-roster { display: grid; flex: 1; grid-auto-rows: minmax(min-content, 1fr); align-content: stretch; margin: 0; padding: 0; list-style: none; }
.is-measuring .tv-roster { grid-auto-rows: auto; align-content: start; }
.tv-roster li { display: flex; align-items: center; gap: clamp(7px, .7vw, 14px); padding: clamp(5px, .75vh, 12px) 0; border-bottom: 1px solid #f2f3f0; }
.tv-roster li:last-child { border-bottom: 0; }
.tv-letter { display: inline-grid; width: clamp(24px, 2vw, 40px); height: clamp(24px, 2vw, 40px); flex: 0 0 auto; place-items: center; border-radius: 7px; background: var(--ops-blue-soft); color: var(--ops-blue-dark); font-size: clamp(12px, 1vw, 20px); font-weight: 850; }
.tv-name { min-width: 0; flex: 1; overflow: hidden; color: var(--ops-ink); font-size: clamp(15px, 1.35vw, 28px); font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.tv-record { flex: 0 0 auto; color: #344054; font-size: clamp(12px, 1vw, 20px); font-variant-numeric: tabular-nums; font-weight: 750; }
.tv-rating { flex: 0 0 auto; color: var(--ops-muted); font-size: clamp(12px, 1vw, 20px); font-variant-numeric: tabular-nums; }
.tv-empty { display: grid; height: 100%; align-content: center; justify-items: center; gap: 8px; color: var(--ops-muted); text-align: center; }
.tv-empty h2 { margin: 0; color: var(--ops-ink); font-size: clamp(22px, 2.4vw, 40px); }
@media (max-width: 760px) { .tv-topbar { flex-wrap: wrap; gap: 6px 12px; }.tv-title h1 { font-size: 22px; } }

/* Perspective table sculpture and the transition out of its full-height hero. */
.home-header { display: block; }
.home-hero-3d-stage { position: fixed; top: 72px; left: 0; width: 100%; height: calc(100svh - 72px); transform: none; background: radial-gradient(ellipse at 76% 48%, #e6eced66, transparent 53%); }
.home-table-canvas { display: block; width: 100%; height: 100%; }
.home-hero { min-height: calc(100svh - 72px); justify-content: center; padding: 100px 0 130px; }
.home-hero-copy { max-width: 620px; }
.home-hero h1 { font-size: clamp(48px, 4.8vw, 72px); }
.home-hero-copy > .home-hero-eyebrow { margin: 0 0 25px; color: #687d8c; font-size: 10px; font-weight: 550; letter-spacing: .16em; text-transform: uppercase; }
.home-hero-copy > p:not(.home-hero-eyebrow) { max-width: 360px; }
.home-hero .home-button { min-height: 44px; padding: 13px 18px; }
.home-hero-aside { right: auto; left: 0; bottom: 38px; gap: 30px; font-size: 11px; }
.home-principles { margin-top: 0; background: #f6f5f1; }
.home-feature, .home-closing { background: #f6f5f1; }
@media (min-width: 761px) and (max-width: 1050px) {
    .home-hero-copy { max-width: 470px; }
    .home-hero h1 { font-size: 49px; }
}
@media (max-width: 760px) {
    .home-hero-3d-stage { top: 100px; height: calc(100svh - 100px); }
    .home-hero { min-height: max(680px, calc(100svh - 100px)); justify-content: flex-start; padding: 55px 0 70px; }
    .home-hero h1 { font-size: clamp(43px, 9vw, 62px); }
    .home-hero-copy { max-width: 530px; }
    .home-hero-copy > .home-hero-eyebrow { margin-bottom: 20px; font-size: 9px; }
    .home-hero-copy > p:not(.home-hero-eyebrow) { max-width: 340px; margin-top: 20px; }
    .home-hero .home-hero-actions { width: fit-content; margin-top: 22px; }
    .home-hero-aside { position: absolute; bottom: 28px; margin: 0; }
}

.home-hero-copy, .home-hero h1 { text-align: left; }
.home-hero-copy > p:not(.home-hero-eyebrow) { margin-left: 0; margin-right: 0; }
.home-hero-copy > .home-hero-eyebrow { margin-left: 0; margin-right: 0; }
.home-hero .home-hero-actions { justify-content: flex-start; }
.home-hero-copy { justify-items: start; }

/* Give the sculpture a longer scroll chapter and keep the foreground legible. */
.home-scene-chapter { position: relative; min-height: 190svh; }
.home-scene-chapter .home-hero { position: sticky; top: 72px; }
.home-hero-3d-stage::after { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, #f6f5f1 0%, #f6f5f1e8 23%, #f6f5f155 47%, transparent 66%); }
@media (max-width: 760px) {
    .home-scene-chapter { min-height: 180svh; }
    .home-scene-chapter .home-hero { top: 78px; }
    .home-hero-3d-stage::after { background: linear-gradient(180deg, #f6f5f1 0%, #f6f5f1eb 28%, transparent 56%); }
}
@media (prefers-reduced-motion: reduce) {
    .home-scene-chapter { min-height: 0; }
    .home-scene-chapter .home-hero { position: relative; top: 0; }
}
/* Match-night stories: real objects and sample scores instead of abstract icons. */
.home-details { position: relative; z-index: 1; padding: 105px 0 80px; background: #f6f5f1; }
.home-details-heading { max-width: 720px; margin-bottom: 58px; }
.home-section-label, .home-step-number { display: block; font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: #687d8c; }
.home-details-heading h2 { margin: 21px 0 18px; font-size: clamp(32px, 4vw, 51px); font-weight: 520; letter-spacing: -.05em; line-height: 1.08; }
.home-details-heading > p { color: #667085; font-size: 16px; line-height: 1.6; }
.home-details .home-principles { border: 0; gap: 26px; }
.home-details .home-principle { border: 0; padding: 0; min-width: 0; }
.home-match-art { height: 265px; margin-bottom: 30px; padding: 24px; border: 1px solid #dce1de; border-radius: 3px; background: #eeefeb; overflow: hidden; }
.home-mini-label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 25px; font-size: 8px; font-weight: 600; letter-spacing: .07em; color: #61717c; }
.home-mini-label > span { color: #79867e; }
.home-roster-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #dce0db; font-size: 11px; }
.home-roster-row b { display: grid; place-items: center; width: 26px; height: 26px; background: #e0e5e1; border-radius: 50%; color: #586c64; font-size: 8px; }
.home-roster-row em { margin-left: auto; color: #6b7882; font-style: normal; font-variant-numeric: tabular-nums; }
.home-art-caption { margin-top: 18px; font-size: 10px; color: #64766d; }
.home-check { display: inline-block; margin-right: 5px; color: #498368; }
.home-rally-art svg { display: block; width: 100%; height: 157px; margin-top: -10px; }
.home-rally-art .home-art-caption { text-align: center; margin-top: 6px; }
.home-scoreboard { display: flex; align-items: center; justify-content: center; gap: 26px; }
.home-scoreboard > div { text-align: center; }
.home-scoreboard span { display: block; font-size: 11px; color: #687582; }
.home-scoreboard b { display: block; font-weight: 500; font-size: 64px; line-height: 1.15; letter-spacing: -.06em; color: #354c59; }
.home-scoreboard i { font-style: normal; color: #a6afad; }
.home-game-scores { display: flex; justify-content: center; gap: 13px; margin-top: 12px; font-size: 10px; font-variant-numeric: tabular-nums; color: #667085; }
.home-score-art .home-art-caption { text-align: center; }
.home-details .home-principle h3 { margin: 13px 0 12px; font-size: 22px; font-weight: 540; letter-spacing: -.04em; }
.home-details .home-principle p { max-width: 340px; font-size: 14px; line-height: 1.7; }
.home-example-note { margin: 28px 0 0; color: #7a827f; font-size: 10px; }
.home-demo-caption { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; background: #edf0eb; }
.home-demo-caption > span:last-child { font-size: 10px; color: #6b7773; }
.home-closing-rally { display: flex; align-items: center; justify-content: center; gap: 55px; height: 90px; margin-bottom: 28px; }
.home-closing-rally span { width: 3px; height: 48px; background: #8e9e9f; border-radius: 4px; transform: rotate(-12deg); }
.home-closing-rally span:last-child { transform: rotate(12deg); }
.home-closing-rally i { width: 9px; height: 9px; border-radius: 50%; background: #ad7151; }
.home-motion-ready .home-reveal { transition-duration: .85s; }
.home-motion-ready .home-reveal:not(.is-visible) { transform: translateY(32px); filter: blur(5px); }
.home-motion-ready .home-scroll-scene .home-roster-row { animation: home-roster-cycle 7s infinite both; }
.home-motion-ready .home-scroll-scene .home-roster-row:nth-child(3) { animation-delay: .3s; }
.home-motion-ready .home-scroll-scene .home-roster-row:nth-child(4) { animation-delay: .6s; }
.home-motion-ready .home-rally-dot { animation: home-table-rally 2.6s ease-in-out infinite; }
.home-motion-ready .home-paddle-left { animation: home-paddle-swing 2.6s ease-in-out infinite; transform-origin: 48px 65px; }
.home-motion-ready .home-paddle-right { animation: home-paddle-swing 2.6s ease-in-out -1.3s infinite; transform-origin: 256px 68px; }
.home-motion-ready .home-scoreboard b { animation: home-score-reveal 7s infinite; }
.home-motion-ready .home-game-scores span { animation: home-score-reveal 7s .25s infinite both; }
.home-motion-ready .home-game-scores span:nth-child(2) { animation-delay: .45s; }
.home-motion-ready .home-game-scores span:nth-child(3) { animation-delay: .65s; }
.home-motion-ready .home-game-scores span:nth-child(4) { animation-delay: .85s; }
.home-motion-ready .home-art-caption .home-check { animation: home-check-in 7s 1s infinite both; }
.home-motion-ready .home-closing-rally i { animation: home-closing-ball 2.4s ease-in-out infinite; }
.home-motion-ready .home-flow-groups article > p { animation: home-row-highlight 8s infinite; }
.home-motion-ready .home-flow-groups article > p:nth-child(3) { animation-delay: 1.5s; }
.home-motion-ready .home-flow-groups article > p:nth-child(4) { animation-delay: 3s; }
.home-motion-ready .home-scroll-scene:not(.is-active) *, .home-paused * { animation-play-state: paused !important; }
.home-page a.home-button { transition: background .2s ease, transform .25s ease, box-shadow .25s ease; }
.home-page a.home-button:hover { transform: translateY(-3px); box-shadow: 0 7px 18px #1720331a; }
@keyframes home-roster-cycle { 0%, 5% { opacity: 0; transform: translateX(-18px); } 17%, 82% { opacity: 1; transform: translateX(0); } 96%, 100% { opacity: 0; transform: translateX(10px); } }
@keyframes home-table-rally { 0%, 100% { transform: translate(0,0); } 25% { transform: translate(78px,-24px); } 50% { transform: translate(170px,4px); } 75% { transform: translate(86px,-18px); } }
@keyframes home-paddle-swing { 0%, 12%, 90%, 100% { transform: rotate(0); } 5% { transform: rotate(-14deg); } 50% { transform: rotate(8deg); } }
@keyframes home-score-reveal { 0%, 5% { opacity: 0; transform: translateY(12px); filter: blur(3px); } 20%, 83% { opacity: 1; transform: translateY(0); filter: blur(0); } 97%, 100% { opacity: 0; transform: translateY(-8px); filter: blur(3px); } }
@keyframes home-check-in { 0%, 8%, 100% { opacity: 0; transform: scale(.5); } 20%, 83% { opacity: 1; transform: scale(1); } }
@keyframes home-closing-ball { 0%, 100% { transform: translate(-52px,10px); } 25% { transform: translate(0,-20px); } 50% { transform: translate(52px,10px); } 75% { transform: translate(0,-20px); } }
@keyframes home-row-highlight { 0%, 15%, 100% { background: transparent; } 30%, 45% { background: #e9f0eb; } }
@media (max-width: 760px) {
    .home-details { padding: 70px 0 50px; }
    .home-details-heading { margin-bottom: 36px; }
    .home-details .home-principles { gap: 45px; }
    .home-match-art { max-width: 440px; height: 265px; }
    .home-details .home-principle p { max-width: 440px; }
    .home-demo-caption { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-motion-ready .home-reveal:not(.is-visible) { opacity: 1; transform: none; filter: none; }
}
.home-details-heading h2 { color: #172033; }
.home-details, .home-feature { scroll-margin-top: 90px; }
/* Small dimensional scenes share a perspective, but each tells a different story. */
.home-match-art { height: 300px; perspective: 850px; background: radial-gradient(ellipse at 50% 70%, #dce4df, #f0f1ed 72%); }
.home-roster-deck { position: relative; height: 169px; transform-style: preserve-3d; transform: rotateX(23deg) rotateY(-17deg); animation: home-deck-orbit 10s ease-in-out infinite; }
.home-motion-ready .home-roster-deck .home-roster-row { position: absolute; inset: 10px 5px auto; height: 48px; padding: 8px 12px; border: 1px solid #c6d3ce; border-radius: 6px; background: #f9faf6; box-shadow: 0 8px 15px #314c4b12; transform: translate3d(0,0,48px); animation: home-card-assemble 8s ease-in-out infinite; --card-y: 0px; --card-z: 48px; }
.home-motion-ready .home-roster-deck .home-roster-row:nth-child(2) { --card-y: 52px; --card-z: 24px; animation-delay: .15s; }
.home-motion-ready .home-roster-deck .home-roster-row:nth-child(3) { --card-y: 104px; --card-z: 0px; animation-delay: .3s; }
.home-roster-art .home-art-caption { margin-top: 10px; }
.home-mini-world { height: 186px; display: grid; place-items: center; perspective: 650px; }
.home-mini-table { position: relative; width: 190px; height: 112px; transform-style: preserve-3d; transform: rotateX(59deg) rotateZ(-26deg); animation: home-table-orbit 12s ease-in-out infinite; }
.home-mini-table > * { position: absolute; transform-style: preserve-3d; }
.home-mini-top { inset: 0; border: 2px solid #6d8790; background: #cbdad9; transform: translateZ(30px); box-shadow: 0 0 0 3px #eaf0eb inset; }
.home-mini-top::before { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: #eff3ee; }
.home-mini-top::after { content: ''; position: absolute; inset: 0; background: #a8bebc; transform: translateZ(-4px); border: 1px solid #6d8790; }
.home-mini-net { width: 112px; height: 22px; left: 39px; top: 45px; border: 1px solid #718991; background: repeating-linear-gradient(0deg,transparent 0 4px,#7e969c99 4px 5px),repeating-linear-gradient(90deg,#f1f4ed88 0 5px,#7e969c99 5px 6px); transform: translateZ(41px) rotateZ(90deg) rotateX(90deg); }
.home-mini-leg { width: 5px; height: 56px; background: #7d9297; transform: translateZ(2px) rotateX(90deg); top: -13px; left: 17px; }
.home-mini-leg.leg-two { left: 168px; }.home-mini-leg.leg-three { top: 70px; }.home-mini-leg.leg-four { left: 168px; top: 70px; }
.home-mini-floor { inset: -15px; border: 1px solid #d0d9d3; border-radius: 50%; background: radial-gradient(ellipse,#526c6b25,transparent 65%); transform: translateZ(-28px); }
.home-mini-ball { width: 9px; height: 9px; left: 90px; top: 51px; border-radius: 50%; background: radial-gradient(circle at 30% 25%,#fffaf0,#c18a52 80%); transform: translate3d(-94px,0,48px); animation: home-ball-depth 2.8s linear infinite; }
.home-mini-paddle { width: 25px; height: 32px; top: 39px; left: -26px; border-radius: 50%; background: #526f7b; border: 2px solid #b7a182; transform: translateZ(42px) rotateY(-35deg); animation: home-paddle-depth 2.8s ease-in-out infinite; }
.home-mini-paddle::after { content: ''; position: absolute; height: 18px; width: 6px; left: 8px; top: 29px; background: #b7a182; border-radius: 0 0 3px 3px; }
.home-mini-paddle.paddle-two { left: 195px; background: #a66553; animation-delay: -1.4s; }
.home-rally-art .home-art-caption { margin-top: 8px; }
.home-score-rig { perspective: 600px; transform-style: preserve-3d; transform: rotateY(-14deg) rotateX(8deg); animation: home-score-orbit 10s ease-in-out infinite; }
.home-scoreboard { gap: 18px; }
.home-scoreboard > div { transform-style: preserve-3d; }
.home-scoreboard span { margin-bottom: 10px; }
.home-motion-ready .home-scoreboard b { position: relative; width: 72px; height: 92px; padding-top: 8px; color: #f4f5ef; background: #3d5862; border-radius: 6px; box-shadow: 0 5px 0 #243f49, 7px 14px 18px #253e4925; transform-origin: center top; backface-visibility: hidden; animation: home-flip-score 7s ease-in-out infinite; font-size: 60px; }
.home-motion-ready .home-scoreboard > div:last-child b { animation-delay: .22s; }
.home-scoreboard b::after { position: absolute; top: 50%; left: 0; right: 0; height: 1px; content: ''; background: #203740; box-shadow: 0 1px 0 #718790; }
.home-score-art .home-game-scores { margin-top: 22px; }
.home-real-preview { margin: 0; border: 1px solid #d7ded8; border-radius: 8px; overflow: hidden; box-shadow: 0 28px 70px #263b4512; }
.home-real-preview > a { display: block; perspective: 1400px; overflow: hidden; }
.home-real-preview img { display: block; width: 100%; height: auto; transform-origin: center top; transition: transform 1s ease; }
.home-real-preview.is-active img { animation: home-screen-settle 1.3s ease both; }
.home-real-preview figcaption { padding: 20px 24px; font-size: 12px; color: #667085; background: #fafbf7; }
@keyframes home-deck-orbit { 0%,100% { transform: rotateX(23deg) rotateY(-17deg); } 50% { transform: rotateX(10deg) rotateY(15deg); } }
@keyframes home-card-assemble { 0%,100% { opacity: 0; transform: translate3d(-35px,var(--card-y),120px) rotateY(-30deg); } 18%,77% { opacity: 1; transform: translate3d(0,var(--card-y),var(--card-z)) rotateY(0); } 92% { opacity: 0; transform: translate3d(28px,var(--card-y),-65px) rotateY(25deg); } }
@keyframes home-table-orbit { 0%,100% { transform: rotateX(59deg) rotateZ(-26deg); } 50% { transform: rotateX(48deg) rotateZ(20deg); } }
@keyframes home-ball-depth { 0%,100% { transform: translate3d(-94px,0,48px); } 15% { transform: translate3d(-38px,3px,66px); } 30% { transform: translate3d(19px,6px,36px); } 50% { transform: translate3d(94px,0,48px); } 65% { transform: translate3d(38px,-3px,66px); } 80% { transform: translate3d(-19px,-6px,36px); } }
@keyframes home-paddle-depth { 0%,100% { transform: translateZ(42px) rotateY(-35deg); } 12% { transform: translate3d(7px,0,45px) rotateY(15deg); } 50% { transform: translateZ(42px) rotateY(-15deg); } }
@keyframes home-score-orbit { 0%,100% { transform: rotateY(-14deg) rotateX(8deg); } 50% { transform: rotateY(14deg) rotateX(-5deg); } }
@keyframes home-flip-score { 0%,100% { transform: rotateX(-100deg); opacity: 0; } 18%,82% { transform: rotateX(0); opacity: 1; } 92% { transform: rotateX(85deg); opacity: 0; } }
@keyframes home-screen-settle { from { opacity: .3; transform: rotateX(8deg) scale(.97); } to { opacity: 1; transform: rotateX(0) scale(1); } }
@media (prefers-reduced-motion: reduce) {
    .home-motion-ready .home-roster-deck .home-roster-row { transform: translate3d(0,var(--card-y),var(--card-z)); }
    .home-mini-ball { transform: translate3d(12px,0,56px); }
}
