html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    color: #222222;
    font-family: system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

@media (prefers-color-scheme: dark) {
    html, body { background: #161616; color: #f2f2f2; }
}

#visitory-loading {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 4px solid rgba(128, 128, 128, 0.25);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: visitory-spin 0.9s linear infinite;
}

@keyframes visitory-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .spinner { animation-duration: 3s; }
}

.message, #visitory-fatal {
    max-width: 36rem;
    margin: 3rem auto;
    padding: 0 1rem;
    line-height: 1.7;
    text-align: center;
}

#visitory-fatal {
    direction: ltr;
    text-align: left;
    white-space: pre-wrap;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.9rem;
}
