html, body {
    height: 100%;
    height: 100dvh;
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

.page-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(65px + 2rem) 2rem 2rem;
    min-height: 0;
}



.card {
    width: min(560px, 100%);
    background: var(--bg-panel);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 3rem 3.5rem;
    box-shadow: 0 8px 30px rgba(26, 29, 34, 0.06);
    animation: panel-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(10px);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.timer {
    display: inline-flex;
    margin-bottom: 1.5rem;
    color: var(--danger-text);
    border: 1px solid var(--danger);
    border-radius: 2px;
    padding: 0.3rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    background: var(--danger-soft);
}

.card h1 {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
    color: var(--ink);
}

[data-theme="macchiato"] .card h1 {
    text-shadow: 0 0 10px rgba(138, 173, 244, 0.25);
}

.card > p {
    color: var(--ink-muted);
    line-height: 1.75;
    margin-bottom: 2rem;
    font-size: 0.88rem;
}

.choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.choices a {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 1.1rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.choices a:hover {
    border-color: var(--accent);
    background: var(--bg-panel);
    border-bottom-color: var(--accent);
}

.role-title {
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: -0.01em;
}

.role-detail {
    color: var(--ink-muted);
    font-size: 0.78rem;
    font-weight: 300;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .page-body { padding: calc(55px + 1.25rem) 1rem 3rem; }
    .card { padding: 2rem 1.5rem; }
    .card h1 { font-size: 1.25rem; }
    .choices { grid-template-columns: 1fr; }
}
