body.title_page {
    min-height: 100vh;
    margin: 0;
    color: #fff;
    background-color: #5c3d28;
    position: relative;
    overflow: hidden;
}

.title_background_img {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

body.title_page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}

.title_hero_heading {
    position: relative;
    z-index: 2;
    margin: 28px 0 0;
    text-align: center;
    font-family: Georgia, serif;
    font-size: clamp(2.4rem, 8vw, 4.5rem);
    text-shadow: 0 4px 18px rgba(0,0,0,0.45);
}

.title_hero_tagline {
    position: relative;
    z-index: 2;
    text-align: center;
    font-family: "Trebuchet MS", sans-serif;
    font-size: clamp(1rem, 3vw, 1.4rem);
    margin: 8px 16px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

.title_credit_box {
    position: fixed;
    left: 8px;
    bottom: 88px;
    z-index: 3;
    display: flex;
    gap: 6px;
    max-width: min(420px, calc(100vw - 16px));
    background: rgba(0,0,0,0.25);
    border-radius: 8px;
    padding: 4px;
}

.title_next_btn {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 6px;
    background: rgba(255,255,255,0.85);
    cursor: pointer;
    font-weight: 700;
}

.title_credit_text {
    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.3;
    color: #eee;
    padding-top: 4px;
}

.title_credit_text a {
    color: #ddd;
    text-decoration: none;
}

.title_prefs {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 3;
    background: rgba(0,0,0,0.45);
    padding: 10px 12px;
    border-radius: 12px;
    backdrop-filter: blur(6px);
}

.title_prefs_form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: "Trebuchet MS", sans-serif;
    font-size: 0.85rem;
    color: #fff;
}

.title_prefs_form select {
    border: 0;
    border-radius: 8px;
    padding: 6px 8px;
}

.title_open_btn {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(24px + env(safe-area-inset-bottom));
    z-index: 3;
    display: inline-block;
    padding: 14px 28px;
    font-family: "Trebuchet MS", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: color-mix(in srgb, var(--accent) 90%, transparent);
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

.title_open_btn:hover {
    color: #fff;
    background: var(--accent);
}

.title_missing_note {
    position: relative;
    z-index: 3;
    max-width: 520px;
    margin: 16px auto 0;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 10px;
    font-family: "Trebuchet MS", sans-serif;
    font-size: 0.9rem;
    text-align: center;
}
