:root {
    --background: #ffffff;
    --text: #0b1111;
    --text-muted: #5a6464;
    --primary-color: #00b5bd;
    --secondary-color: #7ce2e7;
    --link-foreground: #00b5bd;
    --link-background: inherit;
    --preformatted-background: #d0d0d0;
    /* Customization of the progress bar colors. */
    --progress-bar-outline: #0000ff solid 4px;
    --progress-bar-fill: #0000ff;
    /* System font stack that feels premium and requires no external loading */
    --body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: var(--background) !important;
    font-family: var(--body-font) !important;
    color: var(--text);
}

/* Premium Decorative Circles */
body::before, body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    filter: blur(2px); /* Subtle edge softness */
}

body::before {
    width: min(250px, 50vw);
    height: min(250px, 50vw);
    background-color: var(--primary-color);
    top: -50px;
    right: -70px;
}

body::after {
    width: min(450px, 90vw);
    height: min(450px, 90vw);
    background-color: var(--secondary-color);
    bottom: -150px;
    left: -180px;
    opacity: 0.6;
}

main {
    max-width: 480px;
    width: 90%;
    height: auto;
    padding: 60px 40px;
    text-align: center;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.centered-div {
    width: 100%;
}

#title {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
}

#image {
    width: 100%;
    max-width: 340px !important;
    height: auto;
    margin: 20px 0 40px;
    mix-blend-mode: multiply;
    -webkit-mask-image: radial-gradient(circle, black 70%, transparent 98%);
    mask-image: radial-gradient(circle, black 70%, transparent 98%);
    filter: contrast(1.05) brightness(1.02);
}

#status {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

#status:after {
    content: '.';
    animation: dots 1.5s steps(5, end) infinite;
    display: inline-block;
    width: 1.5em;
    text-align: left;
}

/* Secondary text */
main div.centered-div > p:not(#status) {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 320px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

footer {
    width: 100%;
    padding-top: 40px;
}

footer .centered-div p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 8px 0;
}

footer a {
    color: var(--link-foreground);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    margin: 0 4px;
    border-bottom: 1px solid transparent;
}

footer a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

main a {
    color: var(--link-foreground);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

main a:hover {
    opacity: 0.7;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Responsive desktop view like a phone */
@media (min-width: 501px) {
    :root {
        --preformatted-background: #d0d0d0;
        --link-foreground: #00b5bd;
        --link-background: inherit;
        /* Customization of the progress bar colors. */
        --progress-bar-outline: #0000ff solid 4px;
        --progress-bar-fill: #0000ff;
    }
    body {
        background-color: #f4f6f6 !important;
    }
    main {
        background-color: #ffffff;
        height: auto;
        min-height: auto;
        border-radius: 32px;
        box-shadow: 0 30px 60px rgba(0,0,0,0.08);
        margin: 40px 20px;
    }
}

pre {
    background: #f1f3f3;
    padding: 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    overflow-x: auto;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    margin: 20px 0;
    border: 1px solid #e1e4e4;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
