/* ============================================================
 * MICTLAN — campaign-runner styling
 * Dark, ash + ember palette. The whole page is a single 100vh
 * stage that swaps between cards via opacity + slight transform.
 * ============================================================ */

:root {
    --bg-deep:   #0b0509;
    --bg-mid:    #150a0e;
    --bg-soft:   #261216;
    --ember:     #ff7a3a;
    --ember-dim: #c64a1c;
    --ash:       #b69b8a;
    --ash-dim:   #6e5a4f;
    --bone:      #f0e4d3;
    --shadow:    0 24px 64px rgba(0, 0, 0, 0.65);
}

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(255, 90, 30, 0.08), transparent 65%),
        radial-gradient(ellipse at 50% 100%, rgba(80, 30, 10, 0.20), transparent 70%),
        var(--bg-deep);
    color: var(--bone);
    font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    overflow: hidden;
    user-select: none;
}

/* Subtle ember-particle background — pure CSS so no asset cost. */
body::before {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255, 140, 60, 0.6), transparent 60%),
        radial-gradient(2px 2px at 70% 80%, rgba(255, 100, 50, 0.5), transparent 60%),
        radial-gradient(1.5px 1.5px at 40% 60%, rgba(255, 180, 80, 0.4), transparent 60%),
        radial-gradient(1.5px 1.5px at 85% 25%, rgba(255, 130, 60, 0.5), transparent 60%);
    background-size: 800px 800px;
    animation: drift 22s linear infinite;
    opacity: 0.6;
}
@keyframes drift {
    from { background-position: 0 0; }
    to   { background-position: -200px 800px; }
}

#stage {
    position: relative;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    position: absolute;
    width: min(620px, 92vw);
    padding: 48px 56px 40px;
    text-align: center;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(48, 22, 18, 0.85), rgba(20, 8, 10, 0.92)),
        rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 120, 50, 0.18);
    box-shadow: var(--shadow), inset 0 0 32px rgba(0, 0, 0, 0.4);

    opacity: 0;
    transform: translateY(12px) scale(0.985);
    pointer-events: none;
    transition: opacity 420ms ease, transform 420ms ease;
}
.card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ---------- TITLE ---------- */

#card-title h1 {
    margin: 0 0 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    font-size: 64px;
    letter-spacing: 4px;
    color: var(--ember);
    text-shadow:
        0 2px 0 rgba(0, 0, 0, 0.6),
        0 0 24px rgba(255, 110, 40, 0.45);
    position: relative; z-index: 2;
}
.title-shadow {
    position: absolute;
    top: 6px; left: 0; right: 0;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    font-size: 132px;
    letter-spacing: 18px;
    color: rgba(255, 110, 40, 0.05);
    pointer-events: none;
    user-select: none;
    z-index: 1;
    line-height: 1;
}
#card-title .subtitle {
    margin: 6px 0 22px;
    color: var(--ash);
    font-size: 14px;
    letter-spacing: 6px;
    text-transform: uppercase;
}
.lore {
    margin: 8px auto 28px;
    max-width: 480px;
    color: var(--ash);
    font-style: italic;
    line-height: 1.7;
}

/* ---------- INTERMISSION ---------- */

.chapter-eyebrow {
    color: var(--ember-dim);
    font-size: 12px;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.chapter-title {
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 600;
    font-size: 38px;
    color: var(--bone);
    letter-spacing: 1px;
}
.chapter-flavor {
    margin: 0 auto 28px;
    max-width: 460px;
    color: var(--ash);
    font-style: italic;
    line-height: 1.75;
}

/* ---------- CREDITS ---------- */

.credits-h1 {
    margin: 0 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    color: var(--bone);
}
.credits-flavor {
    margin: 0 auto 28px;
    max-width: 460px;
    color: var(--ash);
    font-style: italic;
}
.credits-roll {
    margin: 0 auto 28px;
    max-width: 360px;
    text-align: left;
}
.credits-roll .row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(180, 150, 130, 0.18);
    font-size: 13px;
}
.credits-roll .row span:first-child {
    color: var(--ash-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ---------- BUTTONS ---------- */

.actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 6px;
}
.btn {
    appearance: none; -webkit-appearance: none;
    border: 1px solid rgba(255, 130, 60, 0.35);
    background: rgba(70, 30, 20, 0.6);
    color: var(--bone);
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 140ms ease, transform 140ms ease, border-color 140ms ease;
}
.btn:hover {
    background: rgba(120, 50, 30, 0.7);
    border-color: var(--ember);
    transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn.primary {
    background: linear-gradient(180deg, #c64a1c, #802a0f);
    border-color: rgba(255, 200, 140, 0.4);
    box-shadow: 0 4px 12px rgba(180, 50, 10, 0.45),
                inset 0 1px 0 rgba(255, 200, 140, 0.25);
}
.btn.primary:hover {
    background: linear-gradient(180deg, #e15523, #993311);
}

.footnote {
    margin-top: 28px;
    color: var(--ash-dim);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.kbd {
    display: inline-block;
    padding: 2px 8px;
    margin: 0 1px;
    border: 1px solid rgba(180, 150, 130, 0.30);
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.35);
    color: var(--bone);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 10px;
    letter-spacing: 1px;
}
