*, *::before, *::after { box-sizing: border-box; }

/* Page fragments toggle elements with the hidden attribute (data-show-if); make sure a display rule
   below can never un-hide them. */
[hidden] { display: none !important; }

html, body { margin: 0; height: 100%; }

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
}

/* The release-notes glow: a fixed, viewport-sized layer so it stays anchored at the top of the
   screen instead of stretching with the page height. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 50% -10%, var(--color-glow) 0%, rgba(0, 0, 0, 0) 45%);
    pointer-events: none;
}

.shell {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.shell-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 24px 0;
}

.shell-logo {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(228, 19, 32, 0.4);
}

.shell-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.view {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.page {
    width: 100%;
    max-width: 560px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 32px;
    text-align: center;
}

.page-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0 0 16px;
}

.page-lead { margin: 0 0 8px; }

.page-detail,
.page-note {
    margin: 0 0 8px;
    color: var(--color-text-muted);
}

.page-note { font-size: 0.875rem; margin-top: 16px; }

.page-actions { margin-top: 28px; }

.button {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-accent-text);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: box-shadow 0.2s ease, filter 0.2s ease;
}

.button:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 20px var(--color-accent-glow);
}

.button:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

.shell-footer {
    padding: 20px 24px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

@media (max-width: 480px) {
    .shell-header { padding-top: 28px; }
    .shell-logo { width: 60px; height: 60px; }
    .page { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .button { transition: none; }
}
