:root {
    /* color variables */
    --primary-text-color: hsl(0, 0%, 7%);
    --secondary-text-color: hsl(0, 0%, 96%);

    /* Status colors (from Shannon entropy gauge) */
    --status-pass: #53A551;
    --status-pass-light: #E3F2E3;
    --status-pass-dark: #2D5A2C;
    --status-watch: #F6C444;
    --status-watch-light: #FDF5DC;
    --status-watch-dark: #7A5F1A;
    --status-investigate: #CB444A;
    --status-investigate-light: #F5DCDD;
    --status-investigate-dark: #6B2428;
}

/* Status utility classes for benchmark table */
.has-status-pass-bg {
    background-color: var(--status-pass-light) !important;
}
.has-status-pass-text {
    color: var(--status-pass-dark) !important;
}
.has-status-watch-bg {
    background-color: var(--status-watch-light) !important;
}
.has-status-watch-text {
    color: var(--status-watch-dark) !important;
}
.has-status-investigate-bg {
    background-color: var(--status-investigate-light) !important;
}
.has-status-investigate-text {
    color: var(--status-investigate-dark) !important;
}
.has-status-pass-icon {
    color: var(--status-pass) !important;
}
.has-status-watch-icon {
    color: var(--status-watch) !important;
}
.has-status-investigate-icon {
    color: var(--status-investigate) !important;
}

body {
    padding-top: 0;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* margin + padding utilities */
.mb-05 { margin-bottom: 0.5rem !important;}
.mb-10 { margin-bottom: 1rem !important;}
.mb-15 { margin-bottom: 1.5rem !important;}
.mb-20 { margin-bottom: 2rem !important;}
.mb-25 { margin-bottom: 2.5rem !important;}
.mb-30 { margin-bottom: 3rem !important;}
.mb-35 { margin-bottom: 3.5rem !important;}

.mt-05 { margin-top: 0.5rem !important;}
.mt-10 { margin-top: 1rem !important;}
.mt-15 { margin-top: 1.5rem !important;}
.mt-20 { margin-top: 2rem !important;}
.mt-25 { margin-top: 2.5rem !important;}
.mt-30 { margin-top: 3rem !important;}
.mt-35 { margin-top: 3.5rem !important;}
.mt-40 { margin-top: 4rem !important;}

/* Content containers */
.content-narrow {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* General */

.container {
    max-width: 900px !important;
}

/* Center container in hero-body (for login page) */
.hero-body > .container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Login page */
.login-box {
    width: 330px;
    max-width: 90vw;
    margin: 0 auto;
}

/* Links */
a {
    text-decoration: none;
}

.section-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}

.section-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* Hash display */
.hash-display {
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    padding: 1.5rem;
    border-radius: 8px;
    word-break: break-all;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.hash-display:hover {
    opacity: 0.85;
}

#current-hash {
    letter-spacing: 0.05em;
}

/* Slider styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #ddd;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #485fc7;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #485fc7;
    cursor: pointer;
    border: none;
}

/* Card hover effects */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover:not(.no-hover) {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Carousel */
.carousel-container {
    min-height: 350px;
    position: relative;
}

.carousel-slide {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.carousel-slide.is-active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Step indicators */
.steps {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8e8e8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.step-indicator.is-active {
    background: #485fc7;
    color: white;
}

.step-indicator.is-completed {
    background: #48c78e;
    color: white;
}

.step-indicator:hover {
    transform: scale(1.1);
}

/* Code blocks in carousel */
.carousel-slide pre {
    text-align: left;
    border-radius: 8px;
    overflow-x: auto;
}

.carousel-slide code {
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: #363636;
    color: #fff;
    padding: 3rem 1.5rem;
}

.footer .title {
    color: #fff;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.footer-links a {
    color: #d0d0d0;
    transition: color 0.2s;
}

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

.footer hr {
    background-color: #4a4a4a;
    height: 1px;
    margin: 2rem 0;
}

/* Chart placeholder */
.chart-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Table improvements */
.table th {
    background-color: #f5f5f5;
}

/* Section-specific styles */
#current_hash {
    max-width: 500px !important;
}

/* ===========================================
   Die Animation
   =========================================== */
.die {
    width: 150px;
    height: 150px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform-style: preserve-3d;
    perspective: 600px;
    margin: 2rem auto;
}

.die-dots {
    position: absolute;
    inset: 0;
    transition: opacity 0.15s ease;
}

/* Roll animation */
.die.die-rolling {
    animation: dieRoll 0.6s cubic-bezier(0.22, 1, 0.36, 1),
               dieShadow 0.6s ease;
}

@keyframes dieRoll {
    0% { transform: scale(1) rotateZ(0deg) rotateY(0deg); }
    15% { transform: scale(0.85) rotateZ(-8deg) rotateY(0deg); }
    30% { transform: scale(1.08) rotateZ(12deg) rotateY(180deg); }
    50% { transform: scale(0.95) rotateZ(-4deg) rotateY(360deg); }
    70% { transform: scale(1.03) rotateZ(2deg) rotateY(360deg); }
    100% { transform: scale(1) rotateZ(0deg) rotateY(360deg); }
}

/* Dot fade during roll */
.die.die-rolling .die-dots {
    animation: dotFade 0.6s ease;
}

@keyframes dotFade {
    0%   { opacity: 1; }
    25%  { opacity: 0; }
    60%  { opacity: 0; }
    100% { opacity: 1; }
}

/* Idle floating animation - REMOVED for cleaner UX */
.die.die-idle {
    /* No animation - die stays stationary */
}

/* Shadow pulse */
@keyframes dieShadow {
    0% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
    30% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); }
    50% { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }
    100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
}

/* Hero status text */
.hero-status {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
}

/* Live indicator */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #48c78e;
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
}

.live-dot.disconnected {
    background: #ffdd57;
    animation: none;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.live-text {
    color: #48c78e;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Bounce link animation */
.bounce-link {
    display: inline-block;
    animation: bounceUpDown 2s ease-in-out infinite;
}

@keyframes bounceUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===========================================
   Random String Generator
   =========================================== */
.generator-card {
    width: 335px;
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* Slider Section */
.slider-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.slider-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.slider-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.slider-value {
    font-size: 14px;
    font-weight: 700;
    color: #485fc7;
}

.slider-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    margin: 4px 0;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.slider-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.slider-range {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.slider-range span {
    font-size: 11px;
    color: #666;
}

/* Checkbox Section */
.checkbox-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.checkbox-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.checkbox-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.checkbox-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    cursor: pointer;
    user-select: none;
}

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

.checkbox-box {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.checkbox-box svg {
    width: 12px;
    height: 12px;
    stroke: #fff;
    stroke-width: 2.5;
    fill: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.checkbox-item input:checked + .checkbox-box {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-item input:checked + .checkbox-box svg {
    opacity: 1;
}

.checkbox-text {
    font-size: 13px;
    color: #333;
}

/* Output Display */
.output-display {
    width: 100%;
    height: 95px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    word-break: break-all;
}

.output-text {
    font-family: 'Roboto Mono', monospace;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 1.5px;
    line-height: 1.25;
    text-align: left;
}

/* Button Row */
.button-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.btn {
    flex: 1;
    height: 44px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.btn-refresh {
    background: #667eea;
    color: #fff;
    font-weight: 600;
}

.btn-refresh:hover { background: #5a6fd6; }
.btn-refresh:active { transform: scale(0.97); }

.btn-copy {
    background: #f8f9fa;
    color: #666;
    font-weight: 500;
    border: 1px solid #e0e0e0;
}

.btn-copy:hover { background: #f0f0f0; }
.btn-copy:active { transform: scale(0.97); }

.btn-icon {
    width: 15px;
    height: 15px;
}

/* Generator Divider */
.generator-divider {
    width: 100%;
    height: 1px;
    background: #e8e8e8;
}

/* Provenance */
.provenance {
    font-size: 12px;
    color: #666;
    text-align: center;
    width: 100%;
}

/* Info Note */
.info-note {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    width: 100%;
    padding: 12px 14px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-icon {
    font-size: 14px;
    color: #666;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 1px;
}

.info-text {
    font-size: 11px;
    color: #666;
    line-height: 1.5;
}

/* Generator Warning */
.generator-warning {
    font-size: 12px;
    color: #dc3545;
    text-align: center;
    display: none;
    width: 100%;
    padding: 4px 0;
}

.generator-warning.visible {
    display: block;
}

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-60px);
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 100;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Rounds dropdown (inline with subtitle) */
.subtitle > span {
    vertical-align: middle;
}

#rounds-dropdown {
    display: inline-flex;
    vertical-align: middle;
}

#rounds-dropdown .dropdown-trigger .button {
    height: auto;
    padding: 0.25em 0.75em;
    font-size: inherit;
    font-weight: 600;
    color: #667eea;
    background: transparent;
    border: 1px solid #667eea;
    border-radius: 4px;
    vertical-align: middle;
}

#rounds-dropdown .dropdown-trigger .button:hover {
    background: #667eea;
    color: #fff;
}

#rounds-dropdown .dropdown-item.is-active {
    background-color: #667eea;
    color: #fff;
}

/* Disabled dropdown items (insufficient data) */
.dropdown-item.is-disabled {
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

/* ===========================================
   Stats Carousel & Charts
   =========================================== */
.stats-carousel {
    width: min(375px, 100%);
    margin: 0 auto;
}

@media screen and (min-width: 769px) {
    .stats-carousel {
        width: 550px;
    }
}

#stats-card-container {
    width: 100%;
}

.stats-section {
    width: 100%;
    text-align: center;
}

.stats-section h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 26px;
}

.stats-no-data {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 60px 20px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stats-no-data p {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #666;
}

.stats-no-data .stats-no-data-hint {
    font-size: 14px;
    font-weight: 400;
    color: #999;
    margin-top: 8px;
}

.stats-progress-bar {
    width: 200px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-top: 16px;
    overflow: hidden;
}

.stats-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.stats-progress-pct {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #667eea !important;
    margin-top: 4px !important;
}

/* Loading state */
.stats-loading {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 60px 20px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stats-loading i {
    color: #667eea;
    margin-bottom: 16px;
}

.stats-loading p {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #666;
}

/* Error state */
.stats-error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    padding: 60px 20px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stats-error i {
    color: #e53e3e;
    margin-bottom: 16px;
}

.stats-error p {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #c53030;
}

.stats-retry-btn {
    margin-top: 16px;
    border-color: #e53e3e !important;
    color: #e53e3e !important;
}

.stats-retry-btn:hover {
    background-color: #e53e3e !important;
    color: white !important;
}

.stats-chart-wrapper {
    position: relative;
    margin-bottom: 16px;
    width: 100%;
}

@media screen and (min-width: 769px) {
    .stats-chart-wrapper {
        width: 100%;
    }
}

.stats-chart-container {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 8px 8px 8px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Fill parent width, fixed height for uniform cards */
    width: 100%;
    height: 276px;
    box-sizing: border-box;
}

@media screen and (min-width: 769px) {
    .stats-chart-container {
        height: 340px;
        width: 100% !important;
    }
}

.stats-chart-container svg {
    font-family: 'Inter', -apple-system, sans-serif;
}

/* Hide Observable Plot warning icon */
.stats-chart-container svg text[font-family="initial"] {
    display: none;
}

.stats-box {
    background: #f0fdf4;
    border: 1px solid #28a74533;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
}

.stats-line1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
}

.stats-check {
    color: #28a745;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 700;
    font-size: 16px;
}

.stats-text {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.stats-detail {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* Chart axis labels */
.chart-axis-label {
    position: absolute;
    top: 50%;
    font-size: 10px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.chart-axis-label-left {
    left: 90px;
    transform: rotate(-90deg) translateX(-50%);
    transform-origin: top left;
    color: #666;
}

.chart-axis-label-right {
    right: 90px;
    transform: rotate(90deg) translateX(50%);
    transform-origin: top right;
    color: #485fc7;
}

/* Chart legend */
.chart-legend {
    position: absolute;
    top: 28px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 11px;
    color: #666;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-line-observed {
    width: 20px;
    height: 2px;
    background: #667eea;
    border-radius: 1px;
}

.legend-dot-observed {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    margin-left: -4px;
}

.legend-line-expected {
    width: 20px;
    height: 0;
    border-top: 2px dashed #999;
}

.legend-dot-expected {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f8f8f8;
    border: 2px solid #999;
    margin-left: -4px;
}

/* Heatmap styles */
.heatmap-core-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 184px;
}

.heatmap-label-top {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 10px;
    color: #666;
    margin-bottom: 20px;
}

.heatmap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 184px;
}

.heatmap-row {
    display: flex;
    gap: 2px;
}

.heatmap-cell {
    width: 29px;
    height: 29px;
    min-width: 29px;
    min-height: 29px;
    max-width: 29px;
    max-height: 29px;
    border-radius: 3px;
    position: relative;
    cursor: default;
    transition: opacity 0.15s;
    flex-shrink: 0;
}

.heatmap-cell:hover { opacity: 0.8; }

.heatmap-cell .tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

.heatmap-cell:hover .tooltip { display: block; }

.heatmap-cell-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 9px;
    font-weight: 600;
    text-align: center;
    line-height: 29px;
    display: block;
    width: 100%;
}

.heatmap-col-header {
    position: absolute;
    top: -16px;
    width: 29px;
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #333;
}

.heatmap-row-header {
    position: absolute;
    left: -24px;
    width: 20px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #333;
}

.heatmap-label-side {
    position: absolute;
    left: -44px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 10px;
    color: #666;
    writing-mode: vertical-lr;
    white-space: nowrap;
}

.heatmap-color-scale {
    position: relative;
    display: flex;
    gap: 2px;
    width: 184px;
    margin-top: 8px;
}

.heatmap-scale-segment {
    height: 10px;
    flex: 1;
    border-radius: 2px;
}

.heatmap-scale-label-low {
    position: absolute;
    right: calc(100% + 4px);
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 10px;
    color: #666;
    white-space: nowrap;
}

.heatmap-scale-label-high {
    position: absolute;
    left: calc(100% + 4px);
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 10px;
    color: #666;
    white-space: nowrap;
}

.heatmap-expected-label {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 10px;
    color: #666;
    margin-top: 4px;
}

.stats-chart-container.heatmap {
    padding: 20px 16px 12px 16px;
    width: 100%;
}

/* Autocorrelation chart */

.autocorr-chart-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.autocorr-y-axis {
    position: absolute;
    left: 18px;
    top: 8px;
    height: 186px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.autocorr-y-label {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 10px;
    color: #666;
    line-height: 1;
}

.autocorr-y-title {
    position: absolute;
    left: -14px;
    top: 101px;
    transform: rotate(-90deg);
    transform-origin: center center;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 9px;
    color: #666;
    white-space: nowrap;
}

.autocorr-chart-svg {
    position: absolute;
    left: 48px;
    top: 8px;
    overflow: visible;
}

.autocorr-x-axis {
    position: absolute;
    left: 48px;
    bottom: 20px;
    width: 252px;
    display: flex;
    justify-content: space-between;
}

.autocorr-x-label {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 10px;
    color: #666;
    text-align: center;
    width: 20px;
}

.autocorr-x-title {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 9px;
    color: #666;
}

.autocorr-dot-group { cursor: default; }
.autocorr-dot-group .tooltip-bg,
.autocorr-dot-group .tooltip-text { opacity: 0; pointer-events: none; transition: opacity 0.15s; }
.autocorr-dot-group:hover .tooltip-bg,
.autocorr-dot-group:hover .tooltip-text { opacity: 1; }

/* Desktop scaling for autocorrelation */
@media screen and (min-width: 769px) {
    .autocorr-y-axis {
        height: 250px;
        left: 24px;
    }
    .autocorr-y-label {
        font-size: 12px;
    }
    .autocorr-y-title {
        font-size: 11px;
        left: -8px;
    }
    .autocorr-chart-svg {
        width: 440px;
        height: 250px;
        left: 60px;
    }
    .autocorr-x-axis {
        width: 440px;
        left: 60px;
    }
    .autocorr-x-label {
        font-size: 12px;
    }
    .autocorr-x-title {
        font-size: 11px;
    }
}

/* Entropy gauge */
.stats-chart-container.entropy {
    padding: 24px 16px 16px 16px;
}

.gauge-svg { display: block; }

.gauge-value-display {
    margin-top: 0;
    text-align: center;
}

.gauge-value-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #333;
}

.gauge-value-unit {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

/* Summary table */
.stats-chart-container.summary {
    padding: 16px;
}

.summary-table {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 28px;
    padding: 0 4px;
}

.summary-row-label {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

.summary-row-value {
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.summary-row-value.pass { color: #28a745; }
.summary-row-value.watch { color: #ffc107; }
.summary-row-value.fail { color: #dc3545; }

.summary-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 8px 4px;
}

/* Stats carousel nav */
.stats-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.stats-carousel-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #333;
    transition: background 0.15s;
}

.stats-carousel-btn:hover { background: #e0e0e0; }

.stats-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
    transition: background 0.2s;
}

.stats-carousel-dot.active { background: #667eea; }

/* ===========================================
   Entropy Source Carousel
   =========================================== */
.entropy-carousel {
    width: min(375px, 100%);
    margin: 0 auto;
}

@media screen and (min-width: 769px) {
    .entropy-carousel {
        width: 400px;
    }
}

/* Entropy Source Card */
.entropy-source-card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    height: 205px;
    border-left: 4px solid #48c78e;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.entropy-source-header {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.entropy-source-value {
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    color: #666;
    word-break: break-all;
}

.entropy-bar-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.entropy-bar-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.entropy-bar-label {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 11px;
    color: #666;
}

.entropy-bar-value {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    color: #333;
}

.entropy-bar-track {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.entropy-bar-fill {
    height: 100%;
    background: #48c78e;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.entropy-source-link {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 13px;
    color: #485fc7;
    text-decoration: none;
    cursor: pointer;
}

.entropy-source-link:hover {
    text-decoration: underline;
}

/* Total Entropy Summary Card */
.entropy-summary-card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    height: 205px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.entropy-summary-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.entropy-sources-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.entropy-source-icon-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.entropy-source-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.entropy-source-icon.apt { background: #06d6a0; }
.entropy-source-icon.arb { background: #28a0f0; }
.entropy-source-icon.base { background: #0052ff; }
.entropy-source-icon.btc { background: #f7931a; }
.entropy-source-icon.ada { background: #0033ad; }
.entropy-source-icon.eth { background: #627eea; }
.entropy-source-icon.sol { background: #9945ff; }
.entropy-source-icon.sui { background: #6fbcf0; }

.entropy-chain-label {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 9px;
    font-weight: 600;
    color: #666;
}

.entropy-bits-label {
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    color: #666;
}

.entropy-summary-divider {
    height: 1px;
    background: #e0e0e0;
}

.entropy-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.entropy-summary-row-label {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

.entropy-summary-row-value {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    color: #333;
}

.entropy-summary-row-value.combined {
    font-weight: 600;
    color: #333;
}

.entropy-summary-row-value.margin {
    font-weight: 600;
    color: #48c78e;
}

/* Entropy carousel controls */
.entropy-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.entropy-carousel-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #333;
    transition: background 0.15s;
}

.entropy-carousel-btn:hover { background: #e0e0e0; }

.entropy-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
    transition: background 0.2s;
}

.entropy-carousel-dot.active { background: #667eea; }

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .carousel-container {
        min-height: 400px;
    }

    .steps {
        gap: 0.5rem;
    }

    .step-indicator {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .carousel-slide pre {
        font-size: 0.75rem;
        padding: 0.75rem !important;
    }
}

/* ===========================================
   Check Our Math Carousel
   =========================================== */
.com-carousel {
    width: min(335px, 100%);
    margin: 0 auto;
}

@media screen and (min-width: 769px) {
    .com-carousel {
        width: 375px;
    }
}

/* Card container - holds cards in stacked position */
#com-card-container {
    position: relative;
    min-height: 435px;
}

/* Card base - positioned absolutely to stack on top of each other */
.com-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 435px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.com-card.com-card-run {
    gap: 16px;
}

.com-step-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Card 1: Enter Your Text */
.com-textarea-wrapper {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 280px;
    width: 100%;
}

.com-textarea-wrapper textarea {
    border: none;
    outline: none;
    resize: none;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 14px;
    color: #333;
    flex: 1;
    line-height: 1.5;
}

.com-textarea-wrapper textarea::placeholder {
    color: #666;
}

.com-char-counter {
    font-size: 11px;
    color: #666;
    text-align: right;
}

.com-btn-primary {
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 8px;
    height: 48px;
    width: 100%;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.com-btn-primary:hover {
    opacity: 0.9;
}

.com-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Card 2: Verify Hash */
.com-user-text-display {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.com-user-text-label {
    font-size: 12px;
    color: #666;
}

.com-user-text-value {
    font-size: 14px;
    color: #333;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.com-hash-comparison-box {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.com-hash-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.com-hash-label {
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

.com-hash-value {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    color: #333;
    word-break: break-all;
}

.com-match-indicator {
    font-size: 14px;
    font-weight: 600;
}

.com-match-indicator.match {
    color: #28a745;
}

.com-match-indicator.mismatch {
    color: #dc3545;
}

.com-btn-download {
    border: 1px solid #e0e0e0;
    background: transparent;
    border-radius: 8px;
    height: 40px;
    width: 100%;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.com-btn-download:hover {
    background: #f8f9fa;
}

/* Card 3: Code Snippet */
.com-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.com-code-block {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 16px;
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    line-height: 1.5;
    overflow-x: auto;
    width: 100%;
    white-space: pre-wrap;
    word-break: break-all;
    flex: 1;
}

.com-code-block .kw {
    color: #569cd6;
}

.com-code-block .str {
    color: #ce9178;
}

.com-code-block .var {
    color: #9cdcfe;
}

.com-code-block .fn {
    color: #dcdcaa;
}

.com-code-block .cmt {
    color: #6a9955;
}

.com-code-block .blank {
    color: #1e1e1e;
    user-select: none;
}

/* Navigation row */
.com-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.com-btn-outline {
    border: 1px solid #e0e0e0;
    background: transparent;
    border-radius: 8px;
    height: 40px;
    padding: 0 16px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}

.com-btn-outline:hover {
    background: #f8f9fa;
}

.com-btn-accent {
    border: none;
    background: #667eea;
    border-radius: 8px;
    height: 40px;
    padding: 0 16px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.15s;
    white-space: nowrap;
}

.com-btn-accent:hover {
    opacity: 0.9;
}

.com-btn-accent-outline {
    border: 1px solid #667eea;
    background: transparent;
    border-radius: 8px;
    height: 40px;
    padding: 0 16px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.com-btn-accent-outline:hover {
    background: #f0f2ff;
}

/* Card 4: Run It */
.com-btn-jdoodle {
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 8px;
    height: 48px;
    width: 100%;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.com-btn-jdoodle:hover {
    opacity: 0.9;
}

.com-editor-subtitle {
    font-size: 13px;
    color: #666;
}

.com-editors-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.com-btn-editor {
    border: 1px solid #e0e0e0;
    background: transparent;
    border-radius: 8px;
    height: 48px;
    width: 100%;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.com-btn-editor:hover {
    background: #f8f9fa;
}

.com-verify-message {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Progress dots */
.com-carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 32px;
    margin-top: 16px;
}

.com-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d0d0d0;
    transition: background 0.25s;
    cursor: pointer;
}

.com-dot.active {
    background: #667eea;
}

/* ===========================================
   Utility Classes
   =========================================== */
.flex-gap-sm {
    gap: 0.5rem;
}

.no-shadow {
    box-shadow: none !important;
}

.bg-transparent {
    background: transparent !important;
}

/* ===========================================
   HTMX Loading States
   =========================================== */
.htmx-loading {
    position: relative;
    pointer-events: none;
}

.htmx-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.htmx-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid #667eea;
    border-top-color: transparent;
    border-radius: 50%;
    animation: htmxSpin 0.8s linear infinite;
    z-index: 1;
}

@keyframes htmxSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===========================================
   Skeleton Loading
   =========================================== */

/* Skeleton shimmer animation */
@keyframes skeletonPulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Base skeleton class */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 0%, #e8e8e8 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    animation: skeletonPulse 1.5s ease-in-out infinite;
    border-radius: 4px;
}

/* Skeleton text variants */
.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-text-short {
    width: 40%;
}

.skeleton-text-medium {
    width: 70%;
}

.skeleton-text-full {
    width: 100%;
}

/* Stats chart skeleton - matches 276px/340px chart container */
.skeleton-stats-chart {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    width: 100%;
    height: 276px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

@media screen and (min-width: 769px) {
    .skeleton-stats-chart {
        height: 340px;
    }
}

.skeleton-stats-title {
    width: 60%;
    height: 20px;
    margin-bottom: 16px;
}

.skeleton-stats-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    flex: 1;
    width: 100%;
    padding: 0 20px;
}

.skeleton-stats-bar {
    width: 28px;
    border-radius: 4px 4px 0 0;
}

.skeleton-stats-footer {
    width: 80%;
    height: 16px;
    margin-top: 16px;
}

/* Benchmark table skeleton */
.skeleton-table {
    width: 100%;
}

.skeleton-table-row {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
}

.skeleton-table-cell {
    height: 24px;
    flex: 1;
}

.skeleton-table-cell:first-child {
    flex: 1.5;
}

/* Entropy card skeleton - matches 205px card height */
.skeleton-entropy-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    width: 100%;
    height: 205px;
    border-left: 4px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-entropy-header {
    width: 70%;
    height: 18px;
}

.skeleton-entropy-hash {
    width: 100%;
    height: 48px;
    border-radius: 4px;
}

.skeleton-entropy-label {
    width: 50%;
    height: 12px;
}

.skeleton-entropy-bar {
    width: 100%;
    height: 8px;
    border-radius: 4px;
}

.skeleton-entropy-link {
    width: 45%;
    height: 16px;
    margin-top: auto;
}

/* Hash display skeleton */
.skeleton-hash-display {
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    padding: 1.5rem;
    border-radius: 8px;
}

.skeleton-hash-line {
    height: 1.2em;
    margin-bottom: 0.5em;
}

.skeleton-hash-line:last-child {
    width: 60%;
    margin-bottom: 0;
}

/* Generator output skeleton - dark theme */
.skeleton-output-display {
    width: 100%;
    height: 95px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-output-line {
    height: 16px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

.skeleton-output-line:nth-child(1) {
    width: 90%;
}

.skeleton-output-line:nth-child(2) {
    width: 75%;
}

.skeleton-output-line:nth-child(3) {
    width: 40%;
}

/* ===========================================
   Accessibility
   =========================================== */

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #363636; /* Bulma $grey-darker - high contrast */
    color: #fff;
    padding: 8px 16px;
    z-index: 1000;
    text-decoration: underline;
    font-weight: 600;
    border-radius: 0 0 4px 0;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* Focus visible styles for keyboard navigation */
*:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Remove focus outline for mouse users */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Focus styles for interactive elements */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* High contrast focus for dark backgrounds */
.hero button:focus-visible,
.hero a:focus-visible,
.footer button:focus-visible,
.footer a:focus-visible {
    outline-color: #fff;
}

/* Carousel navigation focus states */
.stats-carousel-btn:focus-visible,
.entropy-carousel-btn:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.3);
}

/* Carousel dots focus states */
.stats-carousel-dot:focus-visible,
.entropy-carousel-dot:focus-visible,
.com-dot:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    transform: scale(1.3);
}

/* Card focus styles */
.card:focus-visible,
.generator-card:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    /* die-idle animation already removed */

    .live-dot {
        animation: none;
    }

    .bounce-link {
        animation: none;
    }

    /* Skeleton animations - use solid background instead */
    .skeleton,
    .skeleton-output-line {
        animation: none;
        background: #e8e8e8;
    }

    .skeleton-output-line {
        background: rgba(255, 255, 255, 0.15);
    }
}

/* Improved contrast for grey text - WCAG AA compliant */
.has-text-grey {
    color: #4a4a4a !important; /* Bulma $grey-dark - 7.5:1 contrast ratio */
}

/* Link distinguishability - underlines for links in text content */
.content a:not(.button):not(.tag):not(.navbar-item),
p a:not(.button):not(.tag),
.subtitle a:not(.button):not(.tag) {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.content a:not(.button):not(.tag):not(.navbar-item):hover,
p a:not(.button):not(.tag):hover,
.subtitle a:not(.button):not(.tag):hover {
    text-decoration-thickness: 2px;
}

/* Screen reader only text */
.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;
}

