:root {
    --bg: #1a3d1a;
    --white: #ffffff;
    --anim-fade-up: fadeUp 0.8s ease both;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.container {
    text-align: center;
    padding: 40px 24px;
    max-width: 640px;
    animation: var(--anim-fade-up);
}
.logo-wrap {
    margin-bottom: 32px;
    animation: var(--anim-fade-up);
    animation-delay: 0.1s;
}
.error-code {
    animation: var(--anim-fade-up);
    animation-delay: 0.2s;
}
.divider {
    animation: var(--anim-fade-up);
    animation-delay: 0.3s;
}
h1 {
    animation: var(--anim-fade-up);
    animation-delay: 0.35s;
}

.logo-wrap img {
    width: 400px;
    height: auto;
}

.error-code {
    font-family: "Times New Roman", serif;
    font-size: clamp(80px, 18vw, 140px);
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    letter-spacing: -4px;
    display: inline-block;
}

.divider {
    height: 1px;
    margin: 20px 0;
    background: linear-gradient(
        to right,
        transparent,
        var(--white),
        transparent
    );
}

h1 {
    font-family: "Times New Roman", serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(20px, 4vw, 28px);
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 16px;
}

/* Game */
#gc2 {
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    cursor: pointer;
    max-width: 100%;
}
#hud2 {
    display: flex;
    justify-content: space-between;
    padding: 4px 8px;
    font-family: "Courier New", monospace;
    font-size: 12px;
    color: #c8a850;
    letter-spacing: 2px;
    max-width: 700px;
    margin: 0 auto;
}
#prog {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    margin: 6px auto 2px;
    max-width: 700px;
}
.pip {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid #c8a850;
    transition: background 0.3s;
}
.pip.done {
    background: #c8a850;
}
.pip.target {
    border-color: #f7f2e8;
    background: rgba(247, 242, 232, 0.15);
}
#msg2 {
    text-align: center;
    font-family: Georgia, serif;
    font-style: italic;
    color: #f7f2e8;
    font-size: 14px;
    min-height: 20px;
    margin-top: 4px;
}

