/*
 * TRSS High Stakes Blackjack: portfolio practice build.
 * Loaded after the unmodified blackjack-game.css. It supplies the Clario faces
 * the TRSS site loads from its theme (the game asks for 400, 500, 600, 700 and
 * 800; Clario ships 400, 500, 700 and 900, so 600 renders as 700 and 800 as
 * 900, as on the site) and fits the game to the iframe it is shown in.
 */
@font-face {
    font-family: "Clario";
    src: url(../fonts/Clario-Regular.woff2) format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Clario";
    src: url(../fonts/Clario-Medium.woff2) format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Clario";
    src: url(../fonts/Clario-Bold.woff2) format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Clario";
    src: url(../fonts/Clario-Black.woff2) format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: #001132;
}
body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scrollbar-width: none;
}
body::-webkit-scrollbar { display: none; }

/* The screen-reader status line is absolutely positioned at the end of the
   flow; pin it to the top so its 1 px box never adds a scroll position. */
.trss-bjg .bjg-sr { top: 0; left: 0; }

/* Phone-width frames: the landing fills the frame edge to edge, as the game
   screen already does once a hand is dealt. */
@media (max-width: 719px) {
    .trss-bjg .bjg-landing {
        min-height: 100vh;
        min-height: 100dvh;
        border-radius: 0;
    }
}

/* Short frames: tighten the landing's vertical rhythm so DEAL ME IN and the
   card fan stay on screen without scrolling. */
@media (max-width: 719px) and (max-height: 760px) {
    .trss-bjg .bjg-landing { padding-top: 22px; }
    .trss-bjg .bjg-logo { margin-bottom: 14px; }
    .trss-bjg.trss-bjg .bjg-landing__title { margin: 14px 0 10px; }
    .trss-bjg .bjg-landing__note { margin-bottom: 16px; }
    .trss-bjg .bjg-landing__foot { margin-top: 12px; }
    .trss-bjg .bjg-fan { height: clamp(150px, 44vw, 220px); margin-top: 12px; }
}

/* Wider frames keep the site's desktop presentation: the phone-like column,
   centered, on the dark backdrop the site uses behind the game. */
@media (min-width: 720px) {
    html,
    body { height: 100%; }
    body {
        display: flex;
        align-items: center;
        justify-content: center;
        background: radial-gradient(60% 60% at 50% 40%, rgba(10, 23, 51, 0.92), rgba(2, 5, 14, 0.97)) #02050e;
    }
    .trss-bjg { flex: 1 1 auto; }
}

/* Portfolio frame (Nov 25, 2026): the iframe is rounded 28 px inside a navy bezel, so the game's hairline frame takes
   the same 28 px corners and is never clipped. */
.trss-bjg.trss-bjg .bjg-landing,
.trss-bjg.trss-bjg .bjg-game,
.trss-bjg.trss-bjg.is-playing .bjg-game { border-radius: 28px; }

/* Portfolio (Nov 25, 2026, owner): over the game the pointer is a "Play" label, like the site's "View" label. */
html, body, .trss-bjg, .trss-bjg * { cursor: url(../img/play-cursor.svg) 34 15, pointer !important; }
