/* Godot-style Campaign Intro / Stage-Setter overlay (tt/campaign_intro). */
.tt-root.is-intro > :not(.tt-intro-overlay) {
    visibility: hidden;
}

.tt-intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: #101920;
    color: var(--tt-text, #f3f9fa);
    font-family: var(--tt-body, "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.tt-intro-overlay.is-fading-out {
    animation: tt-intro-fade-out 0.42s ease-in forwards;
    pointer-events: none;
}

@keyframes tt-intro-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes tt-intro-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

.tt-intro-bg {
    position: absolute;
    inset: -6%;
    background: radial-gradient(circle at 50% 42%, #243946 0%, #16242b 55%, #0d161b 100%);
    background-size: cover;
    background-position: center;
    animation: tt-intro-kenburns 65s ease-out forwards;
}

.tt-intro-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tt-intro-bg.has-cover {
    filter: brightness(0.36) saturate(0.88) blur(2px);
}

@keyframes tt-intro-kenburns {
    from { transform: scale(1.03); }
    to { transform: scale(1.18); }
}

.tt-intro-embers {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.tt-intro-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 35%, rgba(9, 16, 21, 0.82) 100%);
    pointer-events: none;
}

.tt-intro-title-card {
    position: relative;
    z-index: 2;
    max-width: min(760px, 90vw);
    text-align: center;
    padding: 36px 28px;
    animation: tt-intro-rise 0.9s ease-out;
}

@keyframes tt-intro-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.tt-intro-ornament {
    color: var(--tt-gold, #f0c078);
    letter-spacing: 0.35em;
    font-size: 0.95rem;
    opacity: 0.85;
    margin: 12px 0;
}

.tt-intro-heading {
    font-family: var(--tt-display, "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    font-size: clamp(1.9rem, 4.2vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #f8ffff;
    text-shadow: 0 6px 28px rgba(4, 10, 14, 0.85);
    margin: 0;
}

.tt-intro-sub {
    margin: 14px auto 0;
    max-width: 580px;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(216, 237, 240, 0.84);
}

.tt-intro-hint {
    margin-top: 28px;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(240, 192, 120, 0.85);
}

.tt-intro-panel {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: min(820px, 90vw);
    max-height: calc(100dvh - 96px);
    padding: 36px 40px 28px;
    border-radius: 14px;
    background: linear-gradient(165deg, rgba(24, 38, 47, 0.95), rgba(16, 26, 33, 0.97));
    border: 1px solid rgba(231, 191, 143, 0.34);
    box-shadow: 0 28px 80px rgba(4, 10, 14, 0.78), inset 0 1px 0 rgba(248, 255, 255, 0.06);
}

.tt-intro-panel.is-entering {
    animation: tt-intro-rise 0.45s ease-out;
}

.tt-intro-page-mark {
    flex: none;
    text-align: center;
    font-family: var(--tt-display, "Raleway", sans-serif);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--tt-gold, #f0c078);
    margin-bottom: 18px;
}

.tt-intro-page-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    font-family: var(--tt-body, "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    font-size: clamp(1.04rem, 1.85vw, 1.24rem);
    line-height: 1.78;
    color: #f3f9fa;
    margin: 0 0 26px;
    white-space: pre-wrap;
}

.tt-intro-panel-foot {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(231, 191, 143, 0.2);
    padding-top: 16px;
}

.tt-intro-progress {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--tt-muted, #9eb5c0);
}

.tt-intro-controls {
    position: fixed;
    top: 20px;
    right: 22px;
    z-index: 4;
    display: flex;
    gap: 8px;
}

.tt-intro-ctrl {
    background: rgba(19, 29, 37, 0.84);
    border: 1px solid rgba(231, 191, 143, 0.34);
    color: #f3f9fa;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.tt-intro-ctrl:hover {
    background: rgba(240, 192, 120, 0.18);
    border-color: rgba(240, 192, 120, 0.65);
}

.tt-root.is-touch .tt-intro-ctrl {
    min-height: 44px;
}

@media (pointer: coarse) {
    .tt-intro-ctrl {
        min-height: 44px;
    }
}

@media (max-width: 640px) {
    .tt-intro-panel {
        padding: 26px 22px 20px;
    }
}
