/* ============================================
   TYPEMASTER - COMPLETE TYPING SPEED TEST
   Production-ready CSS - Core Web Vitals optimized
   ============================================ */

/* CSS Custom Properties */
:root {
    /* Dark mode (default) */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-surface: #0b1221;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #2dd4bf;
    --accent-hover: #14b8a6;
    --accent-rgb: 45, 212, 191;
    --error: #f87171;
    --error-bg: rgba(248, 113, 113, 0.12);
    --correct: #34d399;
    --correct-bg: rgba(52, 211, 153, 0.12);
    --current: #fbbf24;
    --border: rgba(148, 163, 184, 0.15);
    --border-hover: rgba(148, 163, 184, 0.3);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.2);
    --radius: 12px;
    --radius-sm: 8px;
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
    --header-height: 64px;
  }
  
  /* Light mode */
  [data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #e2e8f0;
    --bg-surface: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent: #0d9488;
    --accent-hover: #0f766e;
    --accent-rgb: 13, 148, 136;
    --error: #dc2626;
    --error-bg: rgba(220, 38, 38, 0.08);
    --correct: #059669;
    --correct-bg: rgba(5, 150, 105, 0.08);
    --current: #d97706;
    --border: rgba(148, 163, 184, 0.25);
    --border-hover: rgba(148, 163, 184, 0.5);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.05);
  }
  
  /* ============================================
     RESET & BASE
     ============================================ */
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    transition: background-color var(--transition), color var(--transition);
  }
  
  img, svg {
    display: block;
    max-width: 100%;
  }
  
  button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
  }
  
  a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
  }
  a:hover, a:focus-visible {
    color: var(--accent-hover);
    text-decoration: underline;
  }
  
  /* ============================================
     ACCESSIBILITY
     ============================================ */
  .skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--accent);
    color: #000;
    padding: 8px 16px;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 var(--radius-sm) 0;
  }
  .skip-link:focus {
    top: 0;
  }
  
  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
  }
  
  /* ============================================
     LAYOUT
     ============================================ */
  .container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* ============================================
     ADSENSE PLACEHOLDERS
     ============================================ */
  .ad-container {
    background: var(--bg-surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .ad-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
  
  .ad-leaderboard {
    height: 90px;
    margin: 12px auto;
    max-width: 728px;
  }
  .ad-below-hero {
    height: 90px;
    margin: 24px auto;
    max-width: 728px;
  }
  .ad-content {
    height: 250px;
    margin: 32px auto;
    max-width: 728px;
  }
  .ad-footer {
    height: 90px;
    margin: 32px auto;
    max-width: 728px;
  }
  
  .sidebar-ad {
    display: none;
    width: 300px;
    min-height: 600px;
    background: var(--bg-surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--header-height) + 24px);
    align-self: flex-start;
  }
  .sidebar-ad .ad-placeholder {
    height: 600px;
  }
  
  .sticky-mobile-ad {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    z-index: 999;
    align-items: center;
    justify-content: center;
  }
  .sticky-mobile-ad .ad-placeholder {
    height: 50px;
  }
  .ad-close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
  }
  
  /* ============================================
     HEADER
     ============================================ */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
  }
  [data-theme="light"] .site-header {
    background: rgba(255, 255, 255, 0.85);
  }
  
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 16px;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
  }
  .logo:hover { text-decoration: none; }
  
  .site-header nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
  }
  .site-header nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color var(--transition);
  }
  .site-header nav a:hover {
    color: var(--text-primary);
  }
  
  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  #theme-toggle, #sound-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    transition: background var(--transition), transform var(--transition);
  }
  #theme-toggle:hover, #sound-toggle:hover {
    background: var(--bg-tertiary);
    transform: scale(1.05);
  }
  
  /* ============================================
     HERO
     ============================================ */
  .hero {
    padding: 64px 0 48px;
    text-align: center;
  }
  .hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 28px;
    line-height: 1.7;
  }
  
  .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.3);
  }
  .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.4);
    text-decoration: none;
    color: #000;
  }
  .cta-button:active {
    transform: translateY(0);
  }
  
  /* ============================================
     TYPING TEST SECTION
     ============================================ */
  .typing-section {
    padding: 24px 0 48px;
  }
  
  .test-config {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
  }
  
  .config-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .config-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-right: 4px;
  }
  
  .config-options {
    display: flex;
    gap: 4px;
  }
  
  .mode-btn, .diff-btn, .time-btn, .toggle-btn {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    transition: all var(--transition);
  }
  .mode-btn:hover, .diff-btn:hover, .time-btn:hover, .toggle-btn:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
  }
  .mode-btn.active, .diff-btn.active, .time-btn.active {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.12);
    border-color: rgba(var(--accent-rgb), 0.3);
  }
  
  .toggle-btn[aria-pressed="true"] {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.12);
    border-color: rgba(var(--accent-rgb), 0.3);
  }
  
  /* Live stats */
  .live-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 12px;
  }
  .stat {
    text-align: center;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
  }
  .stat-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 4px;
  }
  .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-mono);
    line-height: 1.2;
  }
  
  /* Progress bar */
  .progress-track {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    margin-bottom: 20px;
    overflow: hidden;
  }
  .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #5eead4);
    border-radius: 2px;
    transition: width 0.3s linear;
  }
  
  /* Typing wrapper */
  .typing-wrapper {
    position: relative;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 32px;
    margin-bottom: 20px;
    min-height: 200px;
    cursor: text;
    transition: border-color var(--transition), box-shadow var(--transition);
  }
  .typing-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
  }
  .typing-wrapper.is-active {
    border-color: var(--accent);
  }
  
  .countdown-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(4px);
    z-index: 10;
    border-radius: var(--radius);
  }
  .countdown-overlay.hidden { display: none; }
  #countdown-number {
    font-size: 5rem;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-mono);
    animation: countdownPulse 0.8s ease-out;
  }
  @keyframes countdownPulse {
    0% { transform: scale(1.5); opacity: 0; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
  }
  
  .typing-display {
    font-family: var(--font-mono);
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    line-height: 1.8;
    color: var(--text-secondary);
    word-break: break-word;
    min-height: 120px;
    user-select: none;
    -webkit-user-select: none;
  }
  .typing-display .char {
    position: relative;
    display: inline;
    transition: color 0.05s, background-color 0.05s;
    border-radius: 2px;
    padding: 0 1px;
  }
  .typing-display .char.correct {
    color: var(--correct);
  }
  .typing-display .char.incorrect {
    color: var(--error);
    background: var(--error-bg);
    text-decoration: underline;
    text-decoration-color: var(--error);
    text-decoration-thickness: 2px;
  }
  .typing-display .char.current {
    color: var(--current);
    background: rgba(251, 191, 36, 0.15);
    border-radius: 2px;
  }
  .typing-display .char.current::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--current);
    border-radius: 1px;
    animation: blink 1s step-end infinite;
  }
  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }
  
  .hidden-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    left: -9999px;
  }
  
  .typing-instruction {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 16px;
    opacity: 1;
    transition: opacity var(--transition);
  }
  .typing-wrapper.is-active .typing-instruction {
    opacity: 0;
  }
  
  /* Test actions */
  .test-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .btn-primary, .btn-secondary, .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all var(--transition);
  }
  .btn-primary {
    background: var(--accent);
    color: #000;
    border: none;
  }
  .btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
  }
  .btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
  }
  .btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--border-hover);
  }
  .btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
  }
  .btn-ghost:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
  }
  
  kbd {
    display: inline-block;
    padding: 2px 6px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 1px 0 var(--border);
    margin-left: 6px;
  }
  
  /* ============================================
     RESULTS SECTION
     ============================================ */
  .results-section {
    padding: 48px 0;
  }
  .results-section.hidden {
    display: none;
  }
  .results-section h2 {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 32px;
  }
  
  .results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
  }
  .result-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
  }
  .result-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
  }
  .result-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 8px;
  }
  .result-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-mono);
    line-height: 1.1;
  }
  .result-sub {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
  }
  
  /* Chart */
  .chart-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 32px;
  }
  .chart-container h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
  }
  .chart-container canvas {
    width: 100%;
    height: auto;
    max-height: 300px;
  }
  
  /* Achievements */
  .achievements {
    margin-bottom: 32px;
  }
  .achievements h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
  }
  .achievements-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }
  .achievement {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    transition: all var(--transition);
  }
  .achievement.unlocked {
    background: rgba(var(--accent-rgb), 0.08);
    border-color: rgba(var(--accent-rgb), 0.3);
    color: var(--accent);
  }
  .achievement.locked {
    opacity: 0.4;
    filter: grayscale(1);
  }
  
  .results-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  /* ============================================
     CONTENT SECTIONS
     ============================================ */
  .content-layout {
    display: flex;
    gap: 32px;
    padding-top: 24px;
  }
  .content-main {
    flex: 1;
    min-width: 0;
  }
  
  .content-section {
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
  }
  .content-section:last-child {
    border-bottom: none;
  }
  .content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
  }
  .content-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 20px 0 10px;
  }
  .content-section p {
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.75;
  }
  .content-section ul, .content-section ol {
    color: var(--text-secondary);
    padding-left: 24px;
    margin-bottom: 14px;
  }
  .content-section li {
    margin-bottom: 8px;
    line-height: 1.7;
  }
  .content-section blockquote {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent);
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    color: var(--text-primary);
  }
  
  .feature-list {
    list-style: none;
    padding: 0 !important;
  }
  .feature-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
  }
  .feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
  }
  
  /* Benchmark table */
  .table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
  }
  .benchmark-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
  }
  .benchmark-table th,
  .benchmark-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
  }
  .benchmark-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .benchmark-table tr:last-child td {
    border-bottom: none;
  }
  .benchmark-table tr:hover td {
    background: var(--bg-surface);
  }
  
  /* FAQ */
  .faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
  }
  .faq-item summary {
    padding: 16px 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-primary);
    transition: background var(--transition);
  }
  .faq-item summary:hover {
    background: var(--bg-tertiary);
  }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 400;
    transition: transform var(--transition);
  }
  .faq-item[open] summary::after {
    content: '−';
  }
  .faq-item > div {
    padding: 0 20px 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
  }
  
  /* ============================================
     FOOTER
     ============================================ */
  .site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 32px 0;
    margin-top: 32px;
  }
  .site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }
  .site-footer p {
    font-size: 0.875rem;
    color: var(--text-muted);
  }
  .site-footer nav {
    display: flex;
    gap: 20px;
  }
  .site-footer nav a {
    font-size: 0.875rem;
    color: var(--text-muted);
  }
  .site-footer nav a:hover {
    color: var(--text-primary);
  }
  
  /* ============================================
     RESPONSIVE
     ============================================ */
  @media (min-width: 1024px) {
    .sidebar-ad {
      display: block;
    }
  }
  
  @media (max-width: 768px) {
    .live-stats {
      grid-template-columns: repeat(2, 1fr);
    }
    .results-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .site-header nav {
      display: none;
    }
    .hero {
      padding: 40px 0 32px;
    }
    .typing-wrapper {
      padding: 20px;
      min-height: 160px;
    }
    .content-layout {
      flex-direction: column;
    }
    .sticky-mobile-ad {
      display: flex;
    }
    body {
      padding-bottom: 60px;
    }
    .ad-leaderboard, .ad-below-hero {
      height: 50px;
    }
  }
  
  @media (max-width: 480px) {
    .container {
      padding: 0 14px;
    }
    .test-config {
      gap: 10px;
      padding: 12px;
    }
    .config-group {
      width: 100%;
    }
    .config-options {
      flex-wrap: wrap;
    }
    .mode-btn, .diff-btn, .time-btn, .toggle-btn {
      padding: 5px 10px;
      font-size: 0.75rem;
    }
    .typing-display {
      font-size: 1rem;
      line-height: 1.7;
    }
    .results-grid {
      grid-template-columns: 1fr 1fr;
    }
    .result-value {
      font-size: 1.5rem;
    }
  }
  
  /* ============================================
     REDUCED MOTION
     ============================================ */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
  
  /* ============================================
     PRINT
     ============================================ */
  @media print {
    .site-header, .ad-container, .sidebar-ad, .sticky-mobile-ad,
    .test-config, .test-actions, .results-actions, .site-footer {
      display: none !important;
    }
    body {
      background: #fff;
      color: #000;
    }
    .typing-wrapper {
      border: 1px solid #ccc;
    }
  }