/* ========================================= */
/* FAUSSE PAGE 404 CHROME                    */
/* ========================================= */

.chrome-404 {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.chrome-404.hidden {
    display: none;
}

.error-content {
    max-width: 600px;
    padding: 2rem;
    text-align: center;
    color: #5f6368;
}

.error-content .icon {
    margin-bottom: 2rem;
}

.error-content .icon svg {
    opacity: 0.5;
}

.error-code {
    font-size: 1.8rem;
    font-weight: 500;
    color: #202124;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.1rem;
    color: #5f6368;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.error-details {
    font-family: monospace;
    font-size: 0.9rem;
    color: #9aa0a6;
    margin-bottom: 2rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.error-suggestions {
    text-align: left;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.error-suggestions p {
    margin-bottom: 0.5rem;
    color: #202124;
    font-size: 0.95rem;
}

.error-suggestions ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.error-suggestions li {
    margin: 0.5rem 0;
    color: #5f6368;
}

.retry-button {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 1rem;
}

.retry-button:hover {
    background: #1765cc;
}

/* ========================================= */
/* DÉGRADATIONS PROGRESSIVES RÉALISTES      */
/* ========================================= */

/* NIVEAU 1 : Ralentissement léger */
body.deg-1 * {
    transition-duration: 2s !important;
    animation-duration: 8s !important;
}

body.deg-1 {
    filter: saturate(0.8);
}

/* NIVEAU 2 : Polices dégradées + ralentissement */
body.deg-2 * {
    font-family: "Times New Roman", Times, serif !important;
}

body.deg-2 {
    filter: saturate(0.6) contrast(0.9);
}

body.deg-2 .wheel {
    animation: none;
}

/* NIVEAU 3 : CSS partiellement cassé */
body.deg-3 {
    filter: saturate(0.5) contrast(0.85);
    background: #1a1a1a;
}

body.deg-3 .wheel,
body.deg-3 .status-panel,
body.deg-3 .main-header {
    box-shadow: none !important;
    border: 1px solid #333;
}

body.deg-3 .segment-letter {
    filter: none;
    -webkit-text-fill-color: #666;
}

body.deg-3 .center-circle {
    border-color: #444;
    box-shadow: none;
}

/* NIVEAU 4 : Layout cassé */
body.deg-4 .main-layout {
    display: block !important;
    grid-template-columns: none !important;
}

body.deg-4 .wheel {
    border-radius: 20% !important;
    width: 350px !important;
    height: 350px !important;
    background: #222;
}

body.deg-4 {
    background: #f5f5f5;
    color: #000;
}

body.deg-4 .question-text {
    letter-spacing: 0.3em;
    word-spacing: 0.3em;
}

body.deg-4 .segment-text {
    font-size: 0.7rem;
}

/* NIVEAU 5 : Éléments disparaissent */
body.deg-5 .status-panel {
    opacity: 0.3;
    pointer-events: none;
}

body.deg-5 .main-header {
    padding: 0.5rem;
    font-size: 0.8rem;
}

body.deg-5 {
    background: #ffffff;
    color: #000000;
}

body.deg-5 .wheel {
    background: #e0e0e0;
    border: 2px solid #999;
}

body.deg-5 .divider {
    background: #666;
}

body.deg-5 .segment-letter,
body.deg-5 .segment-text {
    color: #333 !important;
    -webkit-text-fill-color: #333 !important;
}

/* NIVEAU 6 : Mode texte brut */
body.deg-6 {
    background: #fff;
    color: #000;
    font-family: monospace !important;
}

body.deg-6 * {
    font-family: monospace !important;
    animation: none !important;
    transition: none !important;
}

body.deg-6 .wheel,
body.deg-6 .status-panel,
body.deg-6 .main-header {
    background: transparent !important;
    border: 1px solid #000 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.deg-6 .segment {
    background: #f0f0f0 !important;
    border: 1px solid #000 !important;
}

body.deg-6 .segment:hover {
    background: #e0e0e0 !important;
}

body.deg-6 .divider,
body.deg-6 .center-circle {
    display: none;
}

body.deg-6 .segment-letter {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    filter: none !important;
}

/* NIVEAU 7 : Presque mort - très minimal */
body.deg-7 {
    background: #fff;
    color: #000;
}

body.deg-7 .main-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

body.deg-7 .wheel {
    width: 200px !important;
    height: 200px !important;
    background: #fafafa;
    border: 1px dotted #ccc;
}

body.deg-7 .segment {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    padding: 0.5rem !important;
    background: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    margin: 0.25rem 0 !important;
}

body.deg-7 .wheel-container {
    margin-top: 1rem;
}

body.deg-7 .status-panel {
    display: none;
}

body.deg-7 .question-text {
    font-size: 1rem;
    font-weight: normal;
}
