/* /start landing page (moved from its template). */
:root {
    --bb-start-btn-bg: #8c7249;
    --bb-start-btn-bg-hover: #a0845a;
    --bb-start-btn-text: #f6ecd6;
    --bb-start-gold: #c9a24a;
    --bb-start-gold-light: #e9cf86;
    --bb-start-ratio: 1366 / 768;
}
*, *::before, *::after { box-sizing: border-box; }
html {
    margin: 0;
    padding: 0;
}
body {
    margin: 0 !important;
    padding: 0;
    background: #000 !important;
    color: #f6ecd6;
    font-family: Georgia, "Times New Roman", Times, serif;
    -webkit-text-size-adjust: 100%;
}
body {
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px !important;
}
/* Theme/plugin footer output (admin bar, scroll-to-top, etc.) must not
   take part in the centred flex layout. */
body > :not(.bb-start) {
    flex: none;
}
.bb-start img {
    max-width: none;
    vertical-align: top;
}
.bb-start {
    position: relative;
    width: 100%;
    max-width: min(1366px, calc((100dvh - 32px) * (1366 / 768)));
    aspect-ratio: var(--bb-start-ratio);
    container-type: inline-size;
    background: #7a1a2a url("../img/start_background.jpg") center / cover no-repeat;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}
/* The <picture> wrapper only swaps the glass source on phones; keep
   the <img> itself as the positioned / flex child. */
.bb-start__glass-picture {
    display: contents;
}
.bb-start__glass,
.bb-start__border {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
}
/* Bar-and-glass photo: full card height, hugging the right edge, at
   its own aspect ratio (works for the full-width or cropped export). */
.bb-start__glass {
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: right center;
}
.bb-start__border {
    left: 0;
    width: 100%;
    object-fit: fill;
    z-index: 3;
}
/* Logo, optional description and words flow in one positioned
   column, so the description pushes the words down and its bottom
   margin is the real gap above them. Sizes are in cqw (card width;
   card height is 56.22cqw at 1366 / 768). */
.bb-start__intro {
    position: absolute;
    z-index: 2;
    left: 3.2%;
    top: 7.5%;
    width: 72.5%;
}
.bb-start__logo {
    margin-left: 1.1cqw;   /* logo sits at 4.3% vs the words' 3.2% */
    width: 15.5cqw;
}
.bb-start__logo-img {
    display: block;
    width: 100%;
    height: 6.47cqw;       /* 11.5% of the card height */
    object-fit: contain;
    object-position: left center;
}
.bb-start__logo-desc {
    width: 160%;
    margin: 4px 0 8px;
    font-size: clamp(10px, 0.95vw, 14px);
    line-height: 1.25;
    color: var(--bb-start-gold-light);
}
.bb-start__words {
    display: block;
    width: 100%;
    height: auto;
    /* Without a description the logo box overlaps the top of the
       words by 1.5% of the card height, as it always has. */
    margin-top: -0.84cqw;
    pointer-events: none;
}
.bb-start__logo--has-desc + .bb-start__words {
    margin-top: 0;
}
/* No logo: keep the words at 17.5% of the card height. */
.bb-start__intro > .bb-start__words:first-child {
    margin-top: 5.62cqw;
}
.bb-start__actions {
    position: absolute;
    z-index: 4;
    left: 5.6%;
    top: 73.5%;
    margin-top: 10px;
    display: flex;
    gap: 5.4cqw;
}
.bb-start__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 21.2cqw;
    min-height: 8.3cqw;
    padding: 0.8cqw 1cqw;
    border-radius: 1.1cqw;
    background: var(--bb-start-btn-bg);
    color: #000 !important;
    font-weight: 700;
    font-size: 2.3cqw;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 0.3cqw 0.8cqw rgba(0, 0, 0, 0.35);
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.bb-start__btn:hover,
.bb-start__btn:focus-visible {
    background: var(--bb-start-btn-bg-hover);
    color: var(--bb-start-btn-text);
    transform: translateY(-1px);
    outline: none;
}
.bb-start__btn:focus-visible {
    box-shadow: 0 0 0 3px var(--bb-start-gold-light);
}

/* Phones: stack the pieces vertically inside a portrait card. */
@media (max-width: 640px) {
    body {
        align-items: flex-start;
    }
    .bb-start {
        max-width: 100%;
        min-width: 0;
        aspect-ratio: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 28px 18px 26px;
        border: 2px solid var(--bb-start-gold);
        outline: 1px solid var(--bb-start-gold-light);
        outline-offset: -8px;
    }
    .bb-start__border {
        display: none;
    }
    /* Logo and words become direct flex items of the card again. */
    .bb-start__intro {
        display: contents;
    }
    .bb-start__logo,
    .bb-start__words,
    .bb-start__actions {
        position: static;
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    .bb-start__logo {
        width: 55%;
        margin-left: 0;
        margin-bottom: 18px;
        text-align: center;
    }
    .bb-start__logo-img {
        height: auto;
        max-height: 90px;
        object-position: center;
    }
    .bb-start__logo-desc {
        width: auto;
        margin-top: 6px;
        font-size: 13px;
    }
    .bb-start__words,
    .bb-start__intro > .bb-start__words:first-child {
        margin-top: 0;
        margin-bottom: 8px;
    }
    .bb-start__glass {
        position: static;
        order: 3;
        flex: none;
        align-self: center;
        width: auto;
        max-width: 100%;
        height: 72vw;
        max-height: 340px;
        margin: 0 auto 18px;
        object-fit: contain;
        object-position: center bottom;
    }
    .bb-start__actions {
        order: 4;
        flex-direction: column;
        gap: 14px;
    }
    .bb-start__btn {
        width: 100%;
        min-height: 60px;
        padding: 12px 16px;
        border-radius: 14px;
        font-size: 22px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
    }
}
@media (max-width: 640px) and (min-width: 480px) {
    .bb-start__actions {
        flex-direction: row;
    }
}

