/* Versioned site styles: 2026-07-15 accessibility and performance release. */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.consent-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    color: #1f2937;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
}

.consent-banner p {
    margin: 0;
}

.consent-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.75rem;
}

.consent-actions button {
    min-height: 44px;
    padding: 0.65rem 1rem;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.consent-actions .consent-accept {
    color: #fff;
    background: #4f46e5;
    border-color: #4f46e5;
}

.error-page {
    min-height: 70vh;
    padding: 10rem 0 4rem;
    text-align: center;
}

.error-code {
    margin: 0;
    color: #667eea;
    font-size: clamp(4rem, 14vw, 8rem);
    font-weight: 800;
    line-height: 1;
}

@media (max-width: 640px) {
    .consent-banner {
        right: 0.5rem;
        bottom: 0.5rem;
        left: 0.5rem;
        align-items: stretch;
        flex-direction: column;
        gap: 0.625rem;
        padding: 0.75rem;
    }

    .consent-banner p {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .consent-actions {
        flex-direction: row;
        gap: 0.5rem;
    }

    .consent-actions button {
        flex: 1 1 0;
        padding: 0.5rem 0.625rem;
        font-size: 0.875rem;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

header h1,
header .site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

nav a:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* Main Content */
main {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    text-align: center;
}

.hero h1,
.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #15803d;
    color: white;
    box-shadow: 0 4px 15px rgba(21, 128, 61, 0.3);
}

.btn-primary:hover {
    background: #166534;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 128, 61, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Game Section */
.game-section {
    padding: 4rem 0;
    background: white;
}

.game-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #2c3e50;
}

.game-player {
    max-width: 1040px;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2rem);
    color: #253247;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.game-player > h3,
.game-player > p {
    text-align: center;
}

.game-frame-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    margin-top: 1.25rem;
    overflow: hidden;
    background: #101827;
    border-radius: 12px;
}

.game-preview-picture,
.game-preview,
.game-frame-shell iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.game-frame-shell iframe[hidden],
.game-preview-picture[hidden] {
    display: none;
}

.game-load-button {
    position: absolute;
    top: 50%;
    left: 50%;
    min-height: 52px;
    padding: 0.85rem 1.4rem;
    transform: translate(-50%, -50%);
    color: #fff;
    background: #15803d;
    border: 2px solid #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.game-load-button:hover,
.game-load-button:focus-visible {
    background: #166534;
    outline: 4px solid #fbbf24;
    outline-offset: 3px;
}

.game-player-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.game-direct-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.game-player-actions button:disabled {
    color: #64748b;
    border-color: #94a3b8;
    cursor: not-allowed;
}

.game-status {
    min-height: 1.5rem;
    margin: 0.75rem 0 0;
    font-weight: 700;
}

.official-game-card {
    max-width: 900px;
    margin: 0 auto;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.official-game-card .cta-buttons {
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.independence-note {
    color: #52606d;
    font-size: 0.95rem;
}

.source-table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0 2rem;
}

.source-table-wrap table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    background: #fff;
}

.source-table-wrap th,
.source-table-wrap td {
    padding: 0.85rem 1rem;
    border: 1px solid #dbe4ee;
    text-align: left;
    vertical-align: top;
}

.source-table-wrap th {
    background: #eff6ff;
    color: #1e3a5f;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin: 0 0 1.25rem;
    color: #64748b;
    font-size: 0.95rem;
}

.breadcrumbs a {
    color: #3157b7;
}

.guide-page > .breadcrumbs {
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.author-box {
    margin-top: 2.5rem;
    padding: 1.5rem;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #38bdf8;
    border-radius: 10px;
    background: #f8fafc;
}

.author-box h2 {
    margin-top: 0;
    font-size: 1.35rem;
}

.author-box p:last-child {
    margin-bottom: 0;
}

/* Sections */
section {
    padding: 4rem 0;
}

section:nth-child(even) {
    background: rgba(255, 255, 255, 0.95);
}

section:nth-child(odd) {
    background: rgba(255, 255, 255, 0.1);
    color: #333;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
}

section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #34495e;
}

/* Controls Section */
.controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.controls-list {
    list-style: none;
}

.controls-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
}

.controls-list li:last-child {
    border-bottom: none;
}

.controls-tips ul {
    list-style: none;
}

.controls-tips li {
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.controls-tips li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.beginner-tip {
    background: #f0f9ff;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #0ea5e9;
    font-style: italic;
    margin-top: 2rem;
}

/* Setup Section */
.setup-steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.step-number {
    background: #667eea;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.performance-goal {
    background: #f0fdf4;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #22c55e;
    margin-top: 2rem;
    text-align: center;
}

/* Safety Section */
.safety-list {
    list-style: none;
    max-width: 600px;
    margin: 2rem auto;
}

.safety-list li {
    padding: 1rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid #eee;
}

.safety-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Checklist Section */
.checklist {
    max-width: 600px;
    margin: 2rem auto;
}

.checklist-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.checklist-item:hover {
    border-color: #667eea;
    transform: translateX(4px);
}

.checklist-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.checklist-item input[type="checkbox"]:checked + .checkmark {
    background: #4CAF50;
    border-color: #4CAF50;
}

.checklist-item input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-weight: bold;
}

.checklist-note {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 1rem;
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-4px);
}

.faq-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Teacher Note */
.teacher-note {
    background: #f8f9fa;
    padding: 3rem 0;
    text-align: center;
}

.teacher-note h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-main h4 {
    margin-bottom: 1rem;
    color: #a5b4fc;
}

.footer-links h5 {
    margin-bottom: 1rem;
    color: #a5b4fc;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #c7d2fe;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #bbb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    header {
        position: static;
    }

    main {
        margin-top: 0 !important;
    }
    
    header .container {
        flex-direction: column;
        gap: 0.5rem;
        padding-right: 0;
        padding-left: 0;
    }
    
    nav {
        width: 100%;
        justify-content: flex-start;
        gap: 0.25rem;
        overflow-x: auto;
        padding: 0 0.75rem 0.5rem;
        scrollbar-width: thin;
        overscroll-behavior-inline: contain;
    }

    nav a {
        flex: 0 0 auto;
        padding: 0.5rem 0.75rem;
    }
    
    .hero h1,
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .controls-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto 1rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .legal-page {
        padding: 2rem;
        margin: 1rem;
    }
    
    .about-page section,
    .contact-methods,
    .contact-form-section,
    .faq-contact,
    .support-hours {
        padding: 2rem;
        margin: 1rem;
    }
    
    .contact-grid,
    .features-grid,
    .commitment-list,
    .values-grid,
    .faq-contact-grid,
    .support-info-grid {
        grid-template-columns: 1fr;
    }
    
    .official-game-card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1,
    .hero h2 {
        font-size: 1.8rem;
    }

    .game-frame-shell {
        min-height: 360px;
        aspect-ratio: 3 / 4;
    }

    .game-preview {
        object-position: center;
    }

    .game-player-actions > * {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        text-align: center;
    }
}

/* Performance optimizations for Chromebooks */
@media (max-resolution: 150dpi) {
    .hero {
        background: rgba(255, 255, 255, 0.15);
    }
    
    .step {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .faq-item {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

/* Legal Pages Styles */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    margin-bottom: 3rem;
}

.legal-page h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.legal-page .last-updated {
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.legal-page section {
    margin-bottom: 2.5rem;
}

.legal-page h2 {
    color: #34495e;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-left: 4px solid #667eea;
    padding-left: 1rem;
}

.legal-page h3 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    margin-top: 1.5rem;
    font-size: 1.2rem;
}

.legal-page ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-page a {
    color: #667eea;
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

/* About Page Styles */
.about-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.about-page section {
    background: white;
    margin-bottom: 3rem;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.about-page h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* Editorial guide pages */
.guide-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.guide-page > article,
.guide-page > section,
.guide-card {
    color: #253247;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.guide-page > article,
.guide-page > section {
    margin-bottom: 2rem;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.guide-page h2 {
    margin: 2rem 0 1rem;
    color: #263b57;
    font-size: 1.6rem;
}

.guide-page h3 {
    margin: 1.5rem 0 0.75rem;
    color: #334155;
}

.guide-page p,
.guide-page li {
    margin-bottom: 0.85rem;
}

.guide-page ul,
.guide-page ol {
    margin: 0 0 1rem 1.5rem;
}

.guide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.guide-callout {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: #eef2ff;
    border-left: 4px solid #6366f1;
    border-radius: 8px;
}

.guide-warning {
    background: #fff7ed;
    border-left-color: #f97316;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.guide-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.guide-card h2,
.guide-card h3 {
    margin: 0 0 0.75rem;
}

.guide-card p {
    flex: 1;
}

.guide-card a {
    color: #4f46e5;
    font-weight: 700;
}

.related-guides {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.related-guides a {
    padding: 0.6rem 0.9rem;
    color: #4338ca;
    background: #eef2ff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

.reaction-trainer {
    margin: 2rem 0;
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid #c7d2fe;
    border-radius: 16px;
    background: #f8faff;
}

.reaction-trainer h2 {
    margin-top: 0;
}

.reaction-target {
    width: 100%;
    min-height: 180px;
    margin: 1rem 0;
    padding: 1.5rem;
    border: 3px solid #4338ca;
    border-radius: 14px;
    color: #1e1b4b;
    background: #e0e7ff;
    font: inherit;
    font-size: clamp(1.25rem, 5vw, 2rem);
    font-weight: 800;
    cursor: pointer;
    touch-action: manipulation;
}

.reaction-target:hover:not(:disabled),
.reaction-target:focus-visible {
    outline: 4px solid #f59e0b;
    outline-offset: 3px;
}

.reaction-target.is-ready {
    color: white;
    border-color: #0c4a6e;
    background: #0284c7;
}

.reaction-target.is-false-start {
    color: #7f1d1d;
    border-color: #dc2626;
    background: #fee2e2;
}

.reaction-target:disabled {
    color: #334155;
    border-color: #94a3b8;
    background: #e2e8f0;
    cursor: default;
}

.reaction-status {
    min-height: 1.5rem;
    font-weight: 700;
}

.reaction-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem 1rem;
    padding-left: 1.5rem;
}

.reaction-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 1rem 0;
    padding: 1rem;
    border-left: 4px solid #0284c7;
    background: white;
}

.reaction-summary[hidden] {
    display: none;
}

.secondary-button {
    padding: 0.7rem 1rem;
    border: 2px solid #4338ca;
    border-radius: 8px;
    color: #312e81;
    background: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.browser-checker {
    margin: 2rem 0;
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid #a5b4fc;
    border-radius: 16px;
    background: #f8faff;
}

.browser-checker h2 {
    margin-top: 0;
}

.browser-checker .tracker-submit {
    width: auto;
    min-width: 190px;
}

.browser-check-status {
    min-height: 1.5rem;
    margin-top: 1rem;
    font-weight: 700;
}

.browser-check-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 0;
    list-style: none;
}

.browser-check-results[hidden],
.browser-check-summary[hidden] {
    display: none;
}

.browser-check-result {
    margin: 0;
    padding: 1rem;
    border-left: 4px solid #64748b;
    border-radius: 8px;
    background: #fff;
}

.browser-check-result strong,
.browser-check-result span,
.browser-check-summary strong,
.browser-check-summary span {
    display: block;
}

.browser-check-result.is-pass {
    border-left-color: #15803d;
}

.browser-check-result.is-warn {
    border-left-color: #d97706;
}

.browser-check-result.is-fail {
    border-left-color: #dc2626;
}

.browser-check-summary {
    margin-top: 1rem;
    padding: 1rem;
    border-left: 4px solid #15803d;
    background: #f0fdf4;
}

.browser-check-summary.is-limited {
    border-left-color: #dc2626;
    background: #fef2f2;
}

.route-trainer {
    margin: 2rem 0;
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid #a5b4fc;
    border-radius: 16px;
    background: #f8faff;
}

.route-trainer:focus-visible {
    outline: 4px solid #f59e0b;
    outline-offset: 3px;
}

.route-trainer h2 {
    margin-top: 0;
}

.route-keyboard-help {
    color: #475569;
    font-size: 0.95rem;
}

.route-progress {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: #eef2ff;
}

.route-table-wrap {
    overflow-x: auto;
    margin: 1rem 0;
}

.route-slope {
    width: 100%;
    min-width: 440px;
    border-collapse: separate;
    border-spacing: 0.5rem;
    table-layout: fixed;
}

.route-slope th,
.route-slope td {
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    text-align: center;
}

.route-slope thead th,
.route-slope tbody th {
    color: #334155;
    background: #e2e8f0;
}

.route-slope td {
    border: 2px solid #86efac;
    color: #166534;
    background: #f0fdf4;
    font-weight: 800;
}

.route-slope td.is-blocked {
    border-color: #fca5a5;
    color: #991b1b;
    background: #fef2f2;
}

.route-choices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.route-choice {
    min-height: 48px;
    padding: 0.75rem;
    border: 2px solid #4338ca;
    border-radius: 8px;
    color: #312e81;
    background: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.route-choice:hover:not(:disabled),
.route-choice:focus-visible {
    color: #fff;
    background: #4338ca;
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
}

.route-choice:disabled {
    color: #64748b;
    border-color: #cbd5e1;
    background: #f1f5f9;
    cursor: default;
}

.route-status {
    min-height: 3rem;
    margin: 1rem 0;
    font-weight: 700;
}

.route-summary {
    display: grid;
    gap: 0.35rem;
    margin: 1rem 0;
    padding: 1rem;
    border-left: 4px solid #4338ca;
    background: #eef2ff;
}

.route-summary[hidden] {
    display: none;
}

.score-tracker {
    margin: 2rem 0;
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    background: #f8fbff;
}

.score-tracker h2 {
    margin-top: 0;
}

.tracker-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.tracker-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tracker-field-wide {
    grid-column: 1 / -1;
}

.tracker-field label {
    color: #1e3a5f;
    font-weight: 700;
}

.tracker-field input,
.tracker-field select {
    width: 100%;
    min-height: 46px;
    padding: 0.7rem 0.8rem;
    border: 1px solid #94a3b8;
    border-radius: 8px;
    color: #172033;
    background: #fff;
    font: inherit;
}

.tracker-field input:focus-visible,
.tracker-field select:focus-visible,
.tracker-submit:focus-visible,
.danger-button:focus-visible,
.table-delete-button:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
}

.tracker-field small {
    color: #52606d;
}

.tracker-submit {
    grid-column: 1 / -1;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: #2563eb;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.tracker-submit:hover {
    background: #1d4ed8;
}

.tracker-status {
    min-height: 1.5rem;
    font-weight: 700;
}

.tracker-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.tracker-summary[hidden],
.tracker-table-wrap[hidden] {
    display: none;
}

.tracker-summary div {
    padding: 1rem;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #fff;
}

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

.tracker-summary strong {
    color: #1d4ed8;
    font-size: 1.35rem;
}

.tracker-summary span {
    color: #52606d;
    font-size: 0.9rem;
}

.tracker-table-wrap {
    overflow-x: auto;
    margin: 1.25rem 0;
}

.tracker-table-wrap table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    background: #fff;
}

.tracker-table-wrap caption {
    padding: 0 0 0.75rem;
    text-align: left;
    font-weight: 700;
}

.tracker-table-wrap th,
.tracker-table-wrap td {
    padding: 0.7rem;
    border: 1px solid #dbe3ef;
    text-align: left;
    vertical-align: top;
}

.tracker-table-wrap th {
    color: #1e3a5f;
    background: #eff6ff;
}

.tracker-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.danger-button,
.table-delete-button {
    padding: 0.7rem 1rem;
    border: 2px solid #b91c1c;
    border-radius: 8px;
    color: #991b1b;
    background: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.table-delete-button {
    padding: 0.4rem 0.65rem;
    font-size: 0.9rem;
}

.secondary-button:disabled,
.danger-button:disabled {
    color: #64748b;
    border-color: #cbd5e1;
    background: #f1f5f9;
    cursor: default;
}

.proof-checker {
    margin: 2rem 0;
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid #a5b4fc;
    border-radius: 16px;
    background: #f8faff;
}

.proof-checker h2 {
    margin-top: 0;
}

.proof-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.proof-form fieldset {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    background: #fff;
}

.proof-form legend {
    padding: 0 0.4rem;
    color: #312e81;
    font-weight: 800;
}

.proof-form fieldset label {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    align-items: start;
    color: #27324a;
}

.proof-form input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.15rem;
    accent-color: #4338ca;
}

.proof-exploit-field,
.proof-form .tracker-submit {
    grid-column: 1 / -1;
}

.proof-result {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 72px;
    padding: 1rem;
    border-left: 5px solid #4338ca;
    border-radius: 6px;
    background: #fff;
}

.proof-result strong {
    color: #312e81;
    font-size: 1.15rem;
}

.record-claims-table table {
    min-width: 760px;
}

@media (max-width: 720px) {
    .tracker-form,
    .tracker-summary,
    .proof-form,
    .browser-check-results {
        grid-template-columns: 1fr;
    }

    .tracker-field-wide,
    .tracker-submit,
    .proof-exploit-field,
    .proof-form .tracker-submit {
        grid-column: auto;
    }
}

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

.feature-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.commitment-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.commitment-item {
    padding: 1.5rem;
    background: #f0f9ff;
    border-radius: 8px;
    border-top: 4px solid #0ea5e9;
}

.commitment-item h3 {
    margin-bottom: 1rem;
    color: #0c4a6e;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-item {
    padding: 1.5rem;
    background: #f0fdf4;
    border-radius: 8px;
    border-bottom: 4px solid #22c55e;
    text-align: center;
}

.value-item h3 {
    margin-bottom: 1rem;
    color: #166534;
}

/* Contact Page Styles */
.contact-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.contact-methods {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.contact-item h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.contact-item a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

.faq-contact {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
}

.faq-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.faq-contact-item {
    padding: 1.5rem;
    background: #fefefe;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.faq-contact-item h3 {
    margin-bottom: 1rem;
    color: #374151;
}

.faq-contact-item ul {
    margin-left: 1rem;
}

.faq-contact-item li {
    margin-bottom: 0.5rem;
}

/* Contact Form Styles */
.contact-form-section {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal !important;
}

.checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin: 0;
}

.form-note {
    background: #f0f9ff;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #0ea5e9;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.support-hours {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.support-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.support-info-item {
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
    border-top: 4px solid #667eea;
}

.support-info-item h3 {
    margin-bottom: 1rem;
    color: #374151;
}

.support-info-item ul {
    margin-left: 1rem;
}

/* Print styles for educational use */
@media print {
    .hero {
        background: white !important;
        color: black !important;
    }
    
    .game-section {
        display: none;
    }
    
    nav {
        display: none;
    }
    
    .cta-buttons {
        display: none;
    }
}
