:root,
html {
    height: 100%;
}

/* Apply box-sizing universally */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --app-screen-height: 100dvh;
    --visual-viewport-height: 100dvh;
    --keyboard-bottom-offset: 0px;
    --tg-top-offset: 0px;
    --platform-banner-top-nudge: 0px;
    --platform-floating-top-nudge: 0px;
    --floating-controls-top: calc(env(safe-area-inset-top, 0px) + var(--tg-top-offset) + var(--platform-floating-top-nudge) + 10px);
    --floating-side-offset: clamp(12px, 4vw, 20px);
    --overlay-screen-top-padding-base: calc(env(safe-area-inset-top, 0px) + var(--tg-top-offset) + clamp(12px, 2.8vh, 16px));
    --overlay-screen-top-padding: max(var(--overlay-screen-top-padding-base), calc(var(--floating-controls-top) + 8px));
    --overlay-screen-bottom-padding: calc(env(safe-area-inset-bottom, 0px) + clamp(14px, 3vh, 20px));
    --overlay-shell-max-height: calc(var(--app-screen-height) - var(--overlay-screen-top-padding) - var(--overlay-screen-bottom-padding));
    --ios-keyboard-overlay-top-padding: max(env(safe-area-inset-top, 0px), 8px);
    --ios-keyboard-overlay-bottom-padding: max(env(safe-area-inset-bottom, 0px), 8px);
    --measured-app-top-clearance: 0px;
    --app-top-clearance-base: calc(var(--floating-controls-top) + clamp(18px, 3.4vh, 28px));
    --app-top-clearance: max(var(--app-top-clearance-base), var(--measured-app-top-clearance));
    --app-bottom-padding: clamp(14px, 3vh, 28px);
    --game-stack-gap: clamp(8px, 1.9vh, 14px);
    --compact-panel-gap: clamp(6px, 2vw, 10px);
    --game-background-image: url("/assets/DALL%C2%B7E%202024-08-20%2018.03.33%20-%20A%20classy%20yet%20subtle%20background%20image%20suitable%20for%20a%20modern,%20luxurious%20blackjack%20app.%20The%20image%20should%20feature%20dark,%20smooth%20textures%20with%20gentle%20gradie.webp");
    --game-background-overlay:
        radial-gradient(circle at top, rgba(57, 97, 172, 0.28), transparent 40%),
        radial-gradient(circle at 82% 74%, rgba(229, 201, 112, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(6, 10, 18, 0.78), rgba(10, 10, 12, 0.92));
    --game-panel-blue:
        radial-gradient(circle at top right, rgba(124, 165, 238, 0.16), transparent 36%),
        linear-gradient(180deg, rgba(19, 27, 40, 0.96), rgba(13, 17, 26, 0.98));
    --game-panel-gold:
        radial-gradient(circle at top right, rgba(255, 226, 137, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(42, 34, 18, 0.96), rgba(22, 18, 11, 0.98));
    --game-panel-neutral: linear-gradient(180deg, rgba(36, 38, 46, 0.94), rgba(18, 22, 30, 0.98));
    --game-border-blue: rgba(124, 165, 238, 0.24);
    --game-border-gold: rgba(229, 201, 112, 0.24);
    --game-border-neutral: rgba(255, 255, 255, 0.12);
    --game-surface-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
    --game-surface-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.app-channel-web {
    --web-app-chrome-top: calc(env(safe-area-inset-top, 0px) + clamp(10px, 2.4vh, 14px));
    --web-app-chrome-side: clamp(12px, 3vw, 16px);
    --web-app-nav-space: 0px;
    --app-top-clearance-base: calc(env(safe-area-inset-top, 0px) + 66px);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #1b1b1b;
    color: #f8f9fa;
    height: 100%;
    min-height: 100vh;
    min-height: var(--app-screen-height);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
    position: relative;
    isolation: isolate;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

body.app-channel-web {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

body::before {
    content: "";
    position: fixed;
    inset: -18px;
    background-image: var(--game-background-image);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    filter: blur(10px);
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: var(--game-background-overlay);
    pointer-events: none;
    z-index: -1;
}

img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

body * {
    user-select: none;
    -webkit-user-select: none;
}

.start-menu-overlay {
    position: fixed;
    inset: 0;
    padding:
        var(--overlay-screen-top-padding)
        clamp(12px, 4vw, 16px)
        var(--overlay-screen-bottom-padding);
    background:
        radial-gradient(circle at top, rgba(57, 97, 172, 0.24), transparent 42%),
        linear-gradient(180deg, rgba(6, 10, 18, 0.98), rgba(10, 10, 12, 0.96));
    display: flex;
    justify-content: center;
    align-items: flex-start;
    opacity: 1;
    transition: opacity 0.5s ease;
    z-index: 1000;
    overflow: hidden;
    overscroll-behavior: contain;
}

.start-menu-content {
    width: min(380px, 100%);
    min-height: min(100%, var(--overlay-shell-max-height));
    display: flex;
    align-items: flex-start;
    min-height: 0;
}

.start-menu-shell {
    position: relative;
    width: 100%;
    max-height: var(--overlay-shell-max-height);
    padding: clamp(14px, 2.8vh, 18px) clamp(14px, 4vw, 16px) clamp(14px, 2.4vh, 16px);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(20, 24, 34, 0.96), rgba(10, 12, 18, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(18px);
    opacity: 1;
    transform: scale(1);
    transition:
        opacity 220ms ease,
        background 260ms ease,
        border-color 260ms ease,
        box-shadow 260ms ease,
        transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform, background, border-color;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-padding-bottom: calc(var(--keyboard-bottom-offset) + 24px);
    overflow-anchor: none;
}

.start-menu-shell.pro-mode {
    background: linear-gradient(180deg, rgba(43, 34, 16, 0.97), rgba(18, 14, 8, 0.99));
    border-color: rgba(229, 201, 112, 0.26);
}

:root.ios-web.keyboard-open .get-pro-screen,
:root.ios-web.keyboard-open .sheet-modal,
:root.ios-web.keyboard-open .auth-modal {
    padding-top: var(--ios-keyboard-overlay-top-padding);
    padding-bottom: var(--ios-keyboard-overlay-bottom-padding);
}

:root.ios-web.keyboard-open .get-pro-screen-scroll {
    min-height: min(100%, calc(var(--visual-viewport-height) - var(--ios-keyboard-overlay-top-padding) - var(--ios-keyboard-overlay-bottom-padding)));
}

:root.ios-web.keyboard-open .get-pro-shell,
:root.ios-web.keyboard-open .sheet-modal-content,
:root.ios-web.keyboard-open .auth-modal-card,
:root.ios-web.keyboard-open .low-free-uses-sheet,
:root.ios-web.keyboard-open .free-limit-modal-content {
    max-height: calc(var(--visual-viewport-height) - var(--ios-keyboard-overlay-top-padding) - var(--ios-keyboard-overlay-bottom-padding));
}

:root.ios-web input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
:root.ios-web select,
:root.ios-web textarea {
    font-size: 16px !important;
}

.start-menu-shell.mode-switching {
    opacity: 0.7;
    transform: scale(0.985);
}

.start-menu-shell::-webkit-scrollbar,
.get-pro-shell::-webkit-scrollbar,
.sheet-modal-content::-webkit-scrollbar,
.low-free-uses-sheet::-webkit-scrollbar,
.free-limit-modal-content::-webkit-scrollbar {
    display: none;
}

.start-brand-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 12px;
}

.start-logo-wrap {
    display: inline-flex;
    width: fit-content;
    align-self: center;
    border-radius: 20px;
    overflow: hidden;
}

.start-menu-logo {
    display: block;
    width: auto;
    height: clamp(74px, 15vh, 92px);
    max-width: min(190px, 72vw);
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.start-brand-copy {
    width: 100%;
}

.start-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.start-mode-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.84);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    overflow: hidden;
    transition:
        background 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease,
        color 220ms ease,
        transform 220ms ease;
}

.start-mode-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
    opacity: 0.9;
}

.start-mode-button.fast {
    border-color: rgba(155, 195, 255, 0.3);
    background: rgba(24, 34, 52, 0.76);
    color: #dce8ff;
}

.start-mode-button.fast.active {
    border-color: rgba(141, 196, 255, 0.72);
    box-shadow:
        inset 0 0 0 1px rgba(206, 229, 255, 0.28),
        0 0 0 1px rgba(72, 126, 214, 0.26),
        0 10px 20px rgba(39, 82, 171, 0.22);
}

.start-mode-button.pro {
    border-color: rgba(229, 201, 112, 0.34);
    background: rgba(255, 226, 137, 0.14);
    color: #fff6cf;
}

.start-mode-button.pro::after {
    content: "";
    position: absolute;
    top: -55%;
    left: -38%;
    width: 36%;
    height: 210%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0));
    transform: rotate(28deg);
    animation: modeShine 3.2s ease-in-out infinite;
    pointer-events: none;
}

.start-mode-button.pro.active {
    border-color: rgba(247, 220, 134, 0.74);
    box-shadow:
        inset 0 0 0 1px rgba(255, 245, 204, 0.22),
        0 0 0 1px rgba(194, 148, 39, 0.3),
        0 14px 28px rgba(167, 129, 31, 0.24);
}

.start-mode-summary {
    font-size: clamp(14px, 3.8vw, 15px);
    line-height: 1.45;
    color: #f5f7fb;
    font-weight: 600;
    transition: color 220ms ease;
}

.start-menu-shell.pro-mode .start-mode-summary {
    color: #fff8de;
}

.tier-status-card {
    margin-bottom: 14px;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(19, 27, 40, 0.96), rgba(13, 17, 26, 0.98));
    border: 1px solid rgba(124, 165, 238, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.tier-status-card.premium {
    background: linear-gradient(180deg, rgba(42, 34, 18, 0.98), rgba(22, 18, 11, 0.98));
    border-color: rgba(201, 177, 87, 0.38);
}

.tier-status-card.locked {
    background: linear-gradient(180deg, rgba(43, 24, 22, 0.98), rgba(23, 12, 12, 0.98));
    border-color: rgba(255, 152, 123, 0.32);
}

.tier-status-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tier-status-copy {
    flex: 1;
    min-width: 0;
}

.tier-status-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9bc3ff;
}

.tier-status-card.premium .tier-status-label {
    color: #f1d37a;
}

.tier-status-card.locked .tier-status-label {
    color: #ffb39c;
}

.tier-status-subtext {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.45;
    color: #f2f4f8;
}

.tier-status-info-button {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #e7edf8;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 800;
}

.tier-status-remaining {
    margin-top: 14px;
    font-size: clamp(21px, 6vw, 24px);
    line-height: 1.1;
    color: #ffffff;
    font-weight: 800;
}

.tier-status-notice {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.45;
    color: #ffd4c9;
}

.pro-benefits-card {
    margin-bottom: 14px;
    padding: 16px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(255, 230, 153, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(49, 38, 16, 0.98), rgba(22, 17, 10, 0.98));
    border: 1px solid rgba(229, 201, 112, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 248, 222, 0.06);
    transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.pro-benefits-topline {
    color: #ffe6a0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pro-benefits-title {
    margin-top: 8px;
    color: #fff8e3;
    font-size: clamp(22px, 6.4vw, 24px);
    line-height: 1.12;
    font-weight: 800;
}

.pro-benefits-copy {
    margin-top: 10px;
    color: rgba(255, 246, 217, 0.82);
    font-size: 14px;
    line-height: 1.5;
}

.pro-benefits-highlight {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(110, 215, 156, 0.14);
    border: 1px solid rgba(110, 215, 156, 0.26);
    color: #c9f8dc;
    font-size: 13px;
    font-weight: 800;
}

.start-cta-note {
    margin-top: 8px;
    text-align: center;
    color: rgba(255, 244, 206, 0.72);
    font-size: 12px;
    line-height: 1.35;
}

.start-pro-hint {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.58);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

.pro-benefits-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.pro-benefit-item {
    position: relative;
    padding-left: 18px;
    color: #fdf4d7;
    font-size: 14px;
    line-height: 1.45;
}

.pro-benefit-item::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #ffe08d;
}

.start-config-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.start-preset-panel {
    margin: 0;
    padding: 14px;
    border-radius: 18px;
    background: rgba(15, 18, 24, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
    transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.start-preset-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.start-preset-copy {
    flex: 1;
    min-width: 0;
}

.start-menu-shell.pro-mode .start-preset-panel {
    border-color: rgba(229, 201, 112, 0.18);
    background: rgba(19, 18, 14, 0.94);
}

.start-preset-label {
    display: block;
    margin-bottom: 6px;
    color: #cdd7e8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.start-field-helper {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
    line-height: 1.4;
}

.start-preset-header .start-field-helper {
    margin-bottom: 0;
}

.start-panel-info-button {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    margin-top: 2px;
}

.start-preset-select {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(36, 38, 46, 0.94);
    color: #f8f9fa;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    appearance: none;
    outline: none;
}

.count-display-toggle {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.start-toggle-group {
    display: grid;
    gap: 8px;
}

.start-toggle-group.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.start-toggle-group.three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.start-advanced-panel {
    padding: 0;
    overflow: hidden;
}

.start-advanced-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    cursor: pointer;
}

.start-advanced-summary::-webkit-details-marker {
    display: none;
}

.start-advanced-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.start-advanced-caret {
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255, 255, 255, 0.48);
    border-bottom: 2px solid rgba(255, 255, 255, 0.48);
    transform: rotate(45deg);
    transition: transform 180ms ease;
}

.start-advanced-panel[open] .start-advanced-caret {
    transform: rotate(225deg);
}

.start-advanced-body {
    display: grid;
    gap: 10px;
    padding: 8px 14px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.start-advanced-subpanel {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.start-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 10px;
}

.start-mini-field {
    display: grid;
    gap: 8px;
}

.start-mini-label {
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.start-preset-select-compact {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 14px;
    border-radius: 12px;
}

.start-compact-button {
    min-height: 40px;
    padding: 8px 6px;
    font-size: 11px;
}

.count-display-button {
    min-height: 44px;
    padding: 10px 8px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(36, 38, 46, 0.88);
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.count-display-button.active {
    border-color: rgba(229, 201, 112, 0.34);
    background: rgba(255, 226, 137, 0.12);
    color: #fff0be;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.start-menu-button {
    width: 100%;
    min-height: 56px;
    margin-top: 14px;
    padding: 15px clamp(16px, 5vw, 20px);
    font-family: "Montserrat", sans-serif;
    font-size: clamp(16px, 4.6vw, 18px);
    border: 1px solid rgba(84, 142, 255, 0.35);
    border-radius: 18px;
    background: linear-gradient(145deg, #2857b0, #1a3f80);
    color: white;
    cursor: pointer;
    transition: background 0.4s ease, transform 0.3s ease, box-shadow 0.4s ease;
    box-shadow: 0 16px 30px rgba(18, 55, 122, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    font-weight: 800;
    letter-spacing: 0.01em;
    text-align: center;
    animation: glow 1.8s infinite alternate;
    transform: translateY(0) scale(1);
}

.start-menu-button:hover {
    background: linear-gradient(145deg, #3266cb, #214d99);
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(18, 55, 122, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.start-menu-button:active {
    background: linear-gradient(145deg, #1f478f, #17376f);
    transform: translateY(0) scale(1);
    box-shadow: 0 10px 18px rgba(12, 27, 56, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.08);
}

.start-menu-button.locked {
    background: linear-gradient(145deg, #8e4d33, #6d3724);
    border-color: rgba(255, 188, 155, 0.28);
    box-shadow: 0 16px 30px rgba(84, 33, 20, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.start-menu-button.pro {
    border-color: rgba(229, 201, 112, 0.3);
    background: linear-gradient(145deg, #caa03a, #9f7723);
    box-shadow: 0 18px 30px rgba(117, 82, 13, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    animation: glowGold 1.8s infinite alternate;
}

.start-menu-button:disabled {
    opacity: 0.65;
    cursor: default;
    animation: none;
    transform: none;
    box-shadow: none;
}

.comparison-item::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #f1d37a;
}

.start-secondary-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.start-secondary-button {
    width: 100%;
    min-height: 48px;
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #f8f9fa;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.start-secondary-button:disabled {
    opacity: 0.6;
}

.start-secondary-button.premium {
    border-color: rgba(201, 177, 87, 0.24);
    background: rgba(241, 211, 122, 0.1);
    color: #fff3c3;
}

.fade-out {
    opacity: 0;
}

.hidden {
    display: none !important;
}

html.web-auth-loading #siteAuthActions,
html.web-auth-loading #siteAccountLink,
html.web-auth-loading #siteMobileAuthActions,
html.web-auth-loading #siteMobileAccountLink,
body.web-auth-loading #siteAuthActions,
body.web-auth-loading #siteAccountLink,
body.web-auth-loading #siteMobileAuthActions,
body.web-auth-loading #siteMobileAccountLink {
    visibility: hidden;
    pointer-events: none;
}

.app-site-header,
.site-menu-backdrop,
.site-mobile-menu {
    display: none;
}

body.app-channel-web .app-site-header {
    width: min(500px, calc(100% - 20px));
    min-height: 54px;
    margin: calc(env(safe-area-inset-top, 0px) + 10px) auto 10px;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex: 0 0 auto;
    border-radius: 19px;
    background: linear-gradient(180deg, rgba(13, 19, 29, 0.9), rgba(8, 12, 19, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 60;
}

.site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
    align-items: center;
    gap: 18px;
}

.site-main-links {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 3vw, 34px);
}

.nav-link {
    position: relative;
    display: inline-flex;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 260ms ease, text-shadow 260ms ease, filter 260ms ease;
}

.nav-link::after {
    content: attr(data-nav-label);
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, #7fa4ff 0%, #3c72d7 54%, #5f8dea 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    filter: drop-shadow(0 0 0 rgba(95, 141, 234, 0));
    transition: opacity 260ms ease, filter 260ms ease;
}

.nav-actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-button,
.header-account-link {
    min-height: 46px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: "Montserrat", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-button-primary {
    border-color: rgba(116, 156, 223, 0.3);
    background: linear-gradient(135deg, #2956a6, #3c72d7 52%, #5f8dea);
    box-shadow: 0 14px 28px rgba(32, 77, 164, 0.28);
    color: #fff;
}

.nav-button-secondary,
.header-account-link {
    border-color: rgba(127, 164, 255, 0.24);
    background: rgba(255, 255, 255, 0.03);
    color: #f4f7ff;
}

.header-account-link {
    grid-column: 3;
    justify-self: end;
    max-width: min(100%, 280px);
    margin-left: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-button:hover,
.header-account-link:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.nav-link:hover,
.nav-link:focus-visible {
    color: rgba(255, 255, 255, 0.18);
    text-shadow: 0 0 14px rgba(95, 141, 234, 0.38);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(95, 141, 234, 0.72));
}

.site-menu-button {
    display: none;
}

.site-mobile-menu-panel,
.auth-modal-card {
    background: linear-gradient(180deg, rgba(13, 19, 29, 0.9), rgba(8, 12, 19, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
}

.site-mobile-menu-panel {
    width: min(320px, calc(100vw - 34px));
    min-height: 100%;
    margin-left: auto;
    padding: 18px;
    border-radius: 28px 0 0 28px;
}

.site-mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.site-mobile-menu-kicker,
.section-kicker {
    color: #7fa4ff;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 800;
}

.site-menu-close-button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.35rem;
    cursor: pointer;
}

.site-mobile-menu-nav,
.site-mobile-auth-actions {
    display: grid;
    gap: 10px;
}

.site-mobile-menu-nav {
    margin-top: 24px;
}

.site-mobile-menu-link {
    min-height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    color: #f5f7ff;
    font-family: "Montserrat", sans-serif;
    font-size: 0.95rem;
    font-weight: 750;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
}

.site-mobile-menu-link.primary {
    border-color: rgba(116, 156, 223, 0.3);
    background: linear-gradient(135deg, rgba(41, 86, 166, 0.96), rgba(95, 141, 234, 0.96));
    box-shadow: 0 14px 28px rgba(32, 77, 164, 0.24);
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: rgba(3, 6, 12, 0.74);
    backdrop-filter: blur(10px);
    overflow: hidden;
    overscroll-behavior: contain;
}

.auth-modal-card {
    position: relative;
    width: min(520px, 100%);
    max-height: var(--overlay-shell-max-height);
    padding: 28px 18px;
    border-radius: 28px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scroll-padding-bottom: calc(var(--keyboard-bottom-offset) + 24px);
    overflow-anchor: none;
}

.auth-close-button {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.2rem;
    cursor: pointer;
}

.auth-modal-title {
    margin-top: 10px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.15;
}

.auth-modal-body {
    margin-top: 14px;
    color: #b6c0cf;
    font-size: 0.98rem;
    line-height: 1.65;
}

.auth-modal-body p + p {
    margin-top: 10px;
}

.auth-alert {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    line-height: 1.55;
}

.auth-alert.warning {
    background: rgba(146, 54, 31, 0.2);
    border-color: rgba(255, 138, 102, 0.28);
    color: #ffd4c4;
}

.auth-alert.success {
    background: rgba(32, 99, 70, 0.2);
    border-color: rgba(95, 211, 161, 0.24);
    color: #d5f7e6;
}

.auth-form {
    margin-top: 18px;
}

.auth-field {
    display: grid;
    gap: 10px;
}

.auth-field-label {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    font-weight: 700;
}

.auth-input {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.auth-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-actions {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.auth-action-button {
    width: 100%;
}

.nav-button:focus-visible,
.nav-link:focus-visible,
.header-account-link:focus-visible,
.site-menu-button:focus-visible,
.site-menu-close-button:focus-visible,
.site-mobile-menu-link:focus-visible,
.auth-close-button:focus-visible,
.auth-input:focus-visible {
    outline: 2px solid rgba(127, 164, 255, 0.9);
    outline-offset: 3px;
}

@keyframes glow {
    0% {
        box-shadow: 0 12px 24px rgba(17, 55, 122, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    100% {
        box-shadow: 0 18px 32px rgba(25, 77, 170, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }
}

@keyframes glowGold {
    0% {
        box-shadow: 0 12px 24px rgba(131, 93, 18, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    100% {
        box-shadow: 0 18px 32px rgba(189, 142, 31, 0.42), inset 0 1px 0 rgba(255, 248, 220, 0.16);
    }
}

@keyframes modeShine {
    0% {
        transform: translateX(-180%) rotate(28deg);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    45% {
        transform: translateX(320%) rotate(28deg);
        opacity: 0;
    }

    100% {
        transform: translateX(320%) rotate(28deg);
        opacity: 0;
    }
}

.sheet-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--overlay-screen-top-padding) clamp(12px, 4vw, 16px) var(--overlay-screen-bottom-padding);
    background: rgba(0, 0, 0, 0.74);
    backdrop-filter: blur(10px);
    overflow: hidden;
    overscroll-behavior: contain;
}

.sheet-modal-content {
    position: relative;
    width: min(380px, 100%);
    max-height: var(--overlay-shell-max-height);
    padding: clamp(18px, 3vh, 22px) clamp(16px, 4.6vw, 18px) clamp(16px, 2.6vh, 18px);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(23, 26, 34, 0.98), rgba(12, 14, 20, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42);
    transform: translateY(-5vh);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scroll-padding-bottom: calc(var(--keyboard-bottom-offset) + 24px);
    overflow-anchor: none;
}

.proof-sheet-modal {
    align-items: flex-start;
    padding-top: var(--overlay-screen-top-padding);
}

.intro-sheet {
    background: linear-gradient(180deg, rgba(24, 31, 46, 0.98), rgba(12, 16, 24, 0.98));
    border-color: rgba(124, 165, 238, 0.16);
}

.sheet-close-button {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
}

.sheet-eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9bc3ff;
}

.sheet-title {
    font-size: clamp(21px, 6vw, 24px);
    line-height: 1.15;
    font-weight: 800;
    color: #ffffff;
    margin-right: 34px;
}

.sheet-eyebrow + .sheet-title {
    margin-top: 8px;
}

.sheet-body {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    line-height: 1.5;
}

.sheet-body p {
    margin: 0 0 10px;
}

.sheet-body p:last-child {
    margin-bottom: 0;
}

.comparison-card {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-card + .comparison-card {
    margin-top: 10px;
}

.comparison-card.premium {
    border-color: rgba(201, 177, 87, 0.24);
    background: rgba(241, 211, 122, 0.08);
}

.comparison-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

.comparison-value {
    margin-top: 6px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.comparison-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.comparison-item {
    position: relative;
    padding-left: 18px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
}

.sheet-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.sheet-primary-button,
.sheet-secondary-button {
    width: 100%;
    min-height: 48px;
    border-radius: 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 14px;
}

.sheet-primary-button {
    margin-top: 18px;
    border: 1px solid rgba(84, 142, 255, 0.3);
    background: linear-gradient(145deg, #2857b0, #1a3f80);
    color: #ffffff;
}

.sheet-actions .sheet-primary-button {
    margin-top: 0;
}

.sheet-secondary-button {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.proof-sheet {
    background:
        radial-gradient(circle at top right, rgba(255, 226, 137, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(24, 22, 18, 0.98), rgba(12, 13, 16, 0.98));
    border-color: rgba(229, 201, 112, 0.16);
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - clamp(34px, 8vh, 56px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: none;
}

.proof-sheet-alert {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
    line-height: 1.45;
}

.proof-sheet-alert.warning {
    border-color: rgba(255, 184, 156, 0.24);
    background: rgba(85, 42, 31, 0.24);
    color: #ffd6cb;
}

.proof-sheet-alert.success {
    border-color: rgba(118, 215, 160, 0.24);
    background: rgba(28, 78, 56, 0.24);
    color: #d2f7e2;
}

.proof-submission-form {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.proof-field {
    display: grid;
    gap: 8px;
}

.proof-field-label {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.proof-field-hint {
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
    line-height: 1.35;
}

.proof-optional {
    color: rgba(255, 255, 255, 0.48);
    font-weight: 600;
}

.proof-text-input,
.proof-textarea,
.proof-file-input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    box-sizing: border-box;
}

.proof-text-input,
.proof-file-input {
    min-height: 48px;
    padding: 12px 14px;
}

.proof-file-input {
    cursor: pointer;
}

.proof-file-input::file-selector-button {
    margin-right: 10px;
    padding: 8px 12px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 226, 137, 0.16);
    color: #ffe8ab;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.proof-textarea {
    min-height: 88px;
    padding: 12px 14px;
    resize: vertical;
}

.proof-preview {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.proof-preview-image {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.22);
}

.proof-preview-remove {
    justify-self: start;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.64);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.get-pro-screen {
    position: fixed;
    inset: 0;
    z-index: 1250;
    padding:
        var(--overlay-screen-top-padding)
        clamp(12px, 4vw, 16px)
        var(--overlay-screen-bottom-padding);
    background:
        radial-gradient(circle at top, rgba(152, 118, 36, 0.2), transparent 36%),
        linear-gradient(180deg, rgba(11, 11, 14, 0.98), rgba(8, 8, 10, 0.98));
    overflow-y: auto;
}

.get-pro-screen-scroll {
    width: min(390px, 100%);
    margin: 0 auto;
    min-height: min(100%, var(--overlay-shell-max-height));
    display: flex;
    align-items: flex-start;
}

.get-pro-shell {
    position: relative;
    width: 100%;
    max-height: var(--overlay-shell-max-height);
    padding: clamp(14px, 2.6vh, 18px) clamp(14px, 4vw, 16px) clamp(16px, 2.8vh, 18px);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(27, 22, 14, 0.98), rgba(12, 11, 9, 0.99));
    border: 1px solid rgba(229, 201, 112, 0.24);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.42);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.get-pro-hero {
    margin-top: 4px;
}

.get-pro-title {
    font-size: clamp(24px, 7.2vw, 30px);
    line-height: 1.04;
    font-weight: 800;
    color: #ffffff;
}

.get-pro-subtitle {
    margin-top: 10px;
    color: rgba(255, 248, 225, 0.78);
    font-size: 15px;
    line-height: 1.45;
}

.get-pro-value-card,
.get-pro-note-card,
.get-pro-status-card,
.get-pro-faq-card,
.get-pro-step-card {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.get-pro-value-card,
.get-pro-note-card,
.get-pro-status-card {
    margin-top: 16px;
    padding: 16px;
}

.get-pro-value-card {
    border-color: rgba(229, 201, 112, 0.24);
    background:
        radial-gradient(circle at top right, rgba(255, 226, 137, 0.1), transparent 36%),
        linear-gradient(180deg, rgba(48, 37, 17, 0.98), rgba(21, 16, 10, 0.98));
}

.get-pro-value-title,
.get-pro-section-title,
.get-pro-note-title,
.get-pro-status-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.get-pro-value-title {
    color: #ffe4a0;
}

.get-pro-value-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.get-pro-value-item {
    position: relative;
    padding-left: 18px;
    color: #fdf4d7;
    font-size: 14px;
    line-height: 1.45;
}

.get-pro-value-item::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #ffe08d;
}

.get-pro-section {
    margin-top: 18px;
}

.get-pro-section.faq {
    display: grid;
    gap: 10px;
}

.get-pro-section-title {
    color: rgba(255, 255, 255, 0.68);
}

.get-pro-steps {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.get-pro-step-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
}

.get-pro-step-number {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 226, 137, 0.12);
    border: 1px solid rgba(255, 226, 137, 0.18);
    color: #ffe9ab;
    font-size: 13px;
    font-weight: 800;
}

.get-pro-step-copy {
    flex: 1;
    min-width: 0;
}

.get-pro-step-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.get-pro-step-body {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.45;
}

.get-pro-cta-section {
    margin-top: 18px;
}

.get-pro-cta-section .start-menu-button {
    margin-top: 0;
}

.get-pro-cta-helper {
    margin-top: 10px;
    color: rgba(255, 244, 206, 0.76);
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.get-pro-secondary-helper {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.54);
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
}

.get-pro-cta-section .start-secondary-button {
    margin-top: 10px;
}

.get-pro-status-card {
    border-color: rgba(124, 165, 238, 0.22);
    background: linear-gradient(180deg, rgba(20, 27, 41, 0.96), rgba(12, 16, 24, 0.98));
}

.get-pro-status-card.pending {
    border-color: rgba(255, 226, 137, 0.24);
    background: linear-gradient(180deg, rgba(44, 34, 15, 0.96), rgba(21, 17, 11, 0.98));
}

.get-pro-status-card.warning {
    border-color: rgba(255, 184, 156, 0.26);
    background: linear-gradient(180deg, rgba(47, 27, 22, 0.96), rgba(22, 13, 12, 0.98));
}

.get-pro-status-title {
    color: #dfeaff;
}

.get-pro-status-card.pending .get-pro-status-title {
    color: #ffe4a0;
}

.get-pro-status-card.warning .get-pro-status-title {
    color: #ffc7b4;
}

.get-pro-status-body,
.get-pro-note-body {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
}

.get-pro-note-card {
    border-color: rgba(255, 255, 255, 0.1);
}

.get-pro-note-title {
    color: rgba(255, 255, 255, 0.72);
}

.get-pro-note-body.subtle {
    color: rgba(255, 255, 255, 0.62);
}

.get-pro-faq-card {
    margin-top: 14px;
    padding: 0 16px;
    overflow: hidden;
}

.get-pro-faq-card + .get-pro-faq-card {
    margin-top: 10px;
}

.get-pro-faq-card summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 15px 26px 15px 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.get-pro-faq-card summary::-webkit-details-marker {
    display: none;
}

.get-pro-faq-card summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.58);
    font-size: 18px;
    line-height: 1;
}

.get-pro-faq-card[open] summary::after {
    content: "-";
}

.get-pro-faq-card-gold {
    border-color: rgba(229, 201, 112, 0.22);
    background: rgba(255, 226, 137, 0.06);
}

.get-pro-faq-answer {
    padding: 0 0 15px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.5;
}

.get-pro-faq-answer-subtle {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.58);
}

.container {
    width: 100%;
    max-width: 500px;
    height: var(--app-screen-height);
    min-height: 100vh;
    min-height: var(--app-screen-height);
    padding: var(--app-top-clearance) clamp(12px, 4.5vw, 20px) var(--app-bottom-padding);
    box-sizing: border-box;
    text-align: center;
    z-index: 1;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--game-stack-gap);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    position: relative;
    scrollbar-width: none;
}

body.app-channel-web .container {
    width: min(100%, 500px);
    height: calc(var(--app-screen-height) - var(--web-app-nav-space));
    min-height: calc(var(--app-screen-height) - var(--web-app-nav-space));
}

.container::-webkit-scrollbar {
    display: none;
}

.web-account-chip {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + var(--platform-banner-top-nudge) + 6px);
    right: clamp(10px, 4vw, 18px);
    z-index: 56;
    min-height: 40px;
    max-width: 148px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(22, 22, 24, 0.82);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
    color: #f2f4f8;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.web-account-chip[data-state="signed-in"] {
    border-color: rgba(127, 164, 255, 0.32);
    background: rgba(19, 29, 45, 0.84);
}

.web-account-chip-icon {
    font-size: 15px;
    line-height: 1;
    color: #9bc3ff;
}

.web-account-chip[data-state="guest"] .web-account-chip-icon {
    color: rgba(255, 255, 255, 0.72);
}

.web-account-chip[data-state="guest"] .web-account-chip-label {
    display: none;
}

.web-account-chip[data-state="guest"] {
    width: 42px;
    max-width: 42px;
    padding-inline: 0;
    justify-content: center;
    gap: 0;
}

.web-account-chip-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.web-account-chip:focus-visible {
    outline: 2px solid rgba(127, 164, 255, 0.9);
    outline-offset: 3px;
}

.tier-banner {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + var(--platform-banner-top-nudge) + 6px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    width: min(176px, calc(100vw - 156px));
    max-width: min(176px, calc(100vw - 156px));
    padding: 0;
    border-radius: 13px;
    background: rgba(22, 22, 24, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
    text-align: left;
    backdrop-filter: blur(10px);
}

body.app-channel-web .tier-banner {
    position: absolute;
    top: var(--web-app-chrome-top);
    left: var(--web-app-chrome-side);
    transform: none;
    z-index: 36;
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    width: fit-content;
    max-width: calc(100% - 104px);
}

.tier-banner.premium {
    border-color: rgba(201, 177, 87, 0.55);
    background: rgba(40, 34, 18, 0.82);
}

.tier-summary-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 10px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: inherit;
    text-align: left;
}

body.app-channel-web .tier-summary-button {
    width: auto;
    justify-content: flex-start;
}

.tier-badge {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #9bc3ff;
    white-space: nowrap;
}

.tier-banner.premium .tier-badge {
    color: #f1d37a;
}

.tier-summary {
    font-size: 14px;
    font-weight: 800;
    color: #f2f2f2;
    white-space: nowrap;
}

.tier-summary-icon {
    width: 17px;
    height: 17px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 10px;
    font-weight: 700;
    color: #d8e4ff;
}

.tier-detail-panel {
    padding: 0 12px 12px;
}

.tier-detail {
    font-size: 12px;
    line-height: 1.35;
    color: #f2f2f2;
}

.tier-mode-panel {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tier-mode-label {
    margin-bottom: 6px;
    color: #cdd7e8;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tier-preset-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(40, 40, 44, 0.92);
    color: #f8f9fa;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    appearance: none;
    outline: none;
}

.tier-reset-button {
    width: 100%;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(155, 195, 255, 0.26);
    border-radius: 10px;
    background: rgba(30, 44, 76, 0.7);
    color: #e6f0ff;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.low-free-uses-modal,
.free-limit-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
}

.low-free-uses-modal {
    align-items: flex-end;
    padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, 0.56);
}

.low-free-uses-modal.hidden,
.free-limit-modal.hidden {
    display: none;
}

.low-free-uses-sheet {
    width: min(420px, 100%);
    max-height: var(--overlay-shell-max-height);
    padding: 16px 16px 14px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 226, 137, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(16, 21, 33, 0.98), rgba(10, 13, 22, 0.98));
    border: 1px solid rgba(124, 165, 238, 0.22);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
    text-align: left;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

.low-free-uses-pill,
.free-limit-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(229, 201, 112, 0.24);
    background: rgba(229, 201, 112, 0.12);
    color: #ffe4a0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.low-free-uses-title {
    margin-top: 12px;
    color: #ffffff;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 800;
}

.low-free-uses-body {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    line-height: 1.45;
}

.low-free-uses-note {
    margin-top: 8px;
    color: rgba(255, 244, 206, 0.72);
    font-size: 12px;
    line-height: 1.4;
}

.low-free-uses-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.free-limit-modal-content {
    width: min(360px, 100%);
    max-height: var(--overlay-shell-max-height);
    padding: 24px 20px 18px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 226, 137, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(24, 24, 28, 0.98), rgba(14, 16, 24, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.48);
    text-align: center;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

.free-limit-title {
    margin-top: 14px;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}

.free-limit-message {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.84);
}

.free-limit-detail {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
}

.free-limit-reset-note {
    margin-top: 12px;
    color: rgba(255, 244, 206, 0.74);
    font-size: 12px;
    line-height: 1.4;
}

.free-limit-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.free-limit-button {
    border: 0;
    border-radius: 12px;
    padding: 12px 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.free-limit-button.primary {
    background: linear-gradient(145deg, #2a5298, #1e3c72);
    color: #ffffff;
}

.free-limit-button.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.free-limit-tertiary-button {
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(155, 195, 255, 0.88);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.section {
    margin-bottom: 0;
    flex: 0 0 auto;
}

.head {
    font-weight: 700;
    font-size: clamp(16px, 5vw, 18px);
    color: #ffffff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.24);
}

.pro-stats-strip {
    position: fixed;
    top: var(--floating-controls-top);
    left: var(--floating-side-offset);
    z-index: 32;
    width: clamp(58px, 17vw, 68px);
    margin: 0;
    padding: 8px 5px;
    border-radius: 16px;
    border: 1px solid rgba(229, 201, 112, 0.24);
    background:
        radial-gradient(circle at top right, rgba(255, 226, 137, 0.12), transparent 36%),
        linear-gradient(180deg, rgba(42, 31, 14, 0.96), rgba(16, 13, 9, 0.98));
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.26);
    text-align: center;
}

.pro-stats-eyebrow {
    color: #ffe6a3;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.25;
    margin-bottom: 6px;
}

.pro-stats-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
}

.pro-stat-card {
    padding: 7px 5px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    text-align: center;
}

.pro-stat-label {
    color: rgba(255, 244, 206, 0.7);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
}

.pro-stat-value {
    margin-top: 3px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
}

.pro-stat-value.positive {
    color: #b8f3a8;
}

.pro-stat-value.negative {
    color: #ffb9a5;
}

.section-total-line {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(12px, 3.8vw, 14px);
    font-weight: 600;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

.section-total-label {
    color: rgba(220, 231, 248, 0.6);
}

.player-count,
.dealer-count {
    margin-bottom: 5px;
    text-align: center;
    color: #e0e0e0;
    font-weight: 600;
}

#playerCardsContainer.hand-count-3plus .player-count {
    font-size: 14px;
}

.dealer-section,
.player-section {
    position: relative;
}

.dealer-section {
    margin-top: -5px;
}

#playerCardsContainer,
#dealerCards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 3vw, 15px);
}

#playerCardsContainer {
    display: grid;
    width: 100%;
    justify-content: center;
    align-items: start;
    justify-items: center;
    row-gap: clamp(10px, 2.2vh, 14px);
    column-gap: clamp(8px, 2.6vw, 12px);
}

.cards {
    --card-width: clamp(52px, 15vw, 65px);
    --card-overlap: 0.7;
    --card-stack-edge-padding: clamp(4px, 1.2vw, 8px);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: clamp(72px, 14vh, 92px);
    margin-top: 4px;
}

#playerCardsContainer.hand-count-1 {
    grid-template-columns: minmax(0, 1fr);
}

#playerCardsContainer.hand-count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#playerCardsContainer.hand-count-3plus {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.player-hand-slot {
    width: min(100%, clamp(102px, 32vw, 132px));
}

#playerCardsContainer.hand-count-3plus .player-hand-slot {
    width: min(100%, clamp(90px, 28vw, 116px));
}

.card {
    position: absolute;
    width: var(--card-width);
    height: auto;
    aspect-ratio: 250 / 363;
    border-radius: 1px;
    box-shadow: 2px 6px 10px rgba(0, 0, 0, 0.32);
    transition: left 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 0;
    display: block;
    background-color: transparent;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card:hover {
    transform: scale(1.2) rotate(0deg);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.7);
    z-index: 1000000;
}

#playerCardsContainer.hand-count-2 .cards {
    --card-width: clamp(48px, 14vw, 60px);
}

#playerCardsContainer.hand-count-3plus .cards {
    --card-width: clamp(42px, 12vw, 52px);
    --card-overlap: 0.64;
    min-height: clamp(62px, 11.6vh, 76px);
}

.advice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: var(--compact-panel-gap);
    width: 100%;
}

.pro-insight-lane {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: var(--compact-panel-gap);
    width: 100%;
}

.pro-insight-lane.has-pro-insight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pro-insight-lane .bet-panel,
.pro-insight-lane .pro-insight-card {
    min-height: 0;
}

.pro-insight-lane .bet-panel {
    display: block;
}

.pro-insight-lane .bet-panel .bet-panel-meta {
    margin-top: 4px;
}

.pro-insight-card {
    position: relative;
    width: 100%;
    min-width: 0;
    margin-top: 0;
    border-radius: 11px;
    border: 1px solid rgba(229, 201, 112, 0.22);
    background: var(--game-panel-gold);
    box-shadow: var(--game-surface-shadow), var(--game-surface-highlight);
    backdrop-filter: blur(18px);
    overflow: visible;
    text-align: left;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.pro-insight-summary {
    position: relative;
    list-style: none;
    display: block;
    padding: clamp(8px, 1.8vh, 10px) clamp(10px, 3vw, 12px);
    cursor: pointer;
    flex: 1 1 auto;
    min-height: 0;
    border-radius: inherit;
}

.pro-insight-summary::-webkit-details-marker {
    display: none;
}

.pro-insight-summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.82);
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
}

.pro-insight-card[open] .pro-insight-summary::after {
    content: "-";
}

.pro-insight-summary-copy {
    min-width: 0;
    padding-right: 34px;
}

.pro-insight-eyebrow {
    color: rgba(255, 230, 163, 0.72);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.15;
}

.pro-insight-title {
    margin-top: 6px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.pro-insight-summary-text {
    max-width: 122px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    text-align: right;
    padding-right: 18px;
}

.pro-insight-summary-text:empty {
    display: none;
}

.pro-insight-body {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(229, 201, 112, 0.22);
    border-radius: 16px;
    background: var(--game-panel-gold);
    box-shadow: 0 26px 40px rgba(0, 0, 0, 0.34), var(--game-surface-highlight);
    backdrop-filter: blur(22px);
}

.pro-insight-card[open] {
    z-index: 34;
}

.pro-insight-card[open] .pro-insight-body {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1;
    width: min(500px, calc(100vw - 24px));
    max-height: min(44vh, 360px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.pro-insight-lane.has-pro-insight .pro-insight-card[open] .pro-insight-body {
    left: calc(-100% - var(--compact-panel-gap));
    right: auto;
    width: calc(200% + var(--compact-panel-gap));
    max-width: none;
}

.pro-insight-empty {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 600;
}

.pro-insight-action-rows {
    display: grid;
    gap: 8px;
}

.pro-insight-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.pro-insight-action-row.recommended {
    border-color: rgba(229, 201, 112, 0.28);
    background: rgba(255, 226, 137, 0.08);
}

.pro-insight-action-copy {
    min-width: 0;
}

.pro-insight-action-label {
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.pro-insight-action-note {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    line-height: 1.3;
}

.pro-insight-action-ev {
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
}

.pro-insight-action-ev.positive {
    color: #b8f3a8;
}

.pro-insight-action-ev.negative {
    color: #ffb9a5;
}

.pro-insight-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pro-insight-pill {
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.74);
    font-size: 11px;
    font-weight: 700;
}

.insurance-insight-card {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(124, 165, 238, 0.18);
    background: linear-gradient(180deg, rgba(19, 26, 40, 0.96), rgba(12, 16, 24, 0.98));
}

.insurance-insight-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.insurance-insight-title {
    color: #dfeaff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.insurance-insight-recommendation {
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.insurance-insight-copy {
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    line-height: 1.45;
}

.insurance-insight-evs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.insurance-insight-ev {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.insurance-insight-ev-label {
    color: rgba(255, 255, 255, 0.58);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.insurance-insight-ev-value {
    margin-top: 4px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
}

.insurance-insight-ev-value.positive {
    color: #b8f3a8;
}

.insurance-insight-ev-value.negative {
    color: #ffb9a5;
}

.bet-panel {
    width: 100%;
    margin-top: 0;
    padding: clamp(8px, 1.8vh, 10px) clamp(10px, 3vw, 12px);
    border-radius: 11px;
    background: var(--game-panel-blue);
    border: 1px solid var(--game-border-blue);
    box-shadow: var(--game-surface-shadow), var(--game-surface-highlight);
    backdrop-filter: blur(18px);
    text-align: left;
}

.bet-panel-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.bet-panel-label {
    color: #9bc3ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.15;
}

.bet-panel-amount {
    font-size: clamp(20px, 6vw, 24px);
    font-weight: 800;
    line-height: 0.92;
    color: #ffffff;
}

.bet-panel-context {
    margin-top: 6px;
    padding: 7px 8px;
    border-radius: 10px;
    border: 1px solid rgba(229, 201, 112, 0.18);
    background: rgba(255, 226, 137, 0.06);
    color: rgba(255, 248, 225, 0.84);
    font-size: clamp(10px, 2.8vw, 11px);
    line-height: 1.45;
    font-weight: 600;
}

.bet-panel-meta {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(10px, 2.8vw, 11px);
    font-weight: 600;
    line-height: 1.25;
}

.bet-panel-meta span {
    white-space: nowrap;
}

.bet-panel-meta strong {
    color: #ffffff;
}

.best-move,
.bust-percentage {
    width: 100%;
    min-width: 0;
    padding: clamp(7px, 2vw, 9px);
    background: var(--game-panel-neutral);
    border: 1px solid var(--game-border-neutral);
    border-radius: 10px;
    min-height: clamp(68px, 9.8vh, 76px);
    transition: background 0.5s ease-in-out, color 0.5s ease-in-out, border-color 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
    font-weight: 700;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: var(--game-surface-shadow), var(--game-surface-highlight);
    backdrop-filter: blur(18px);
}

.best-move {
    background: var(--game-panel-blue);
    border-color: var(--game-border-blue);
}

.bust-percentage {
    background: var(--game-panel-gold);
    border-color: var(--game-border-gold);
    cursor: default;
}

.best-move-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 0;
}

.best-move-title,
.best-move-text,
.bust-percentage-title,
.bust-percentage-text {
    position: relative;
    z-index: 2;
}

.best-move-title,
.bust-percentage-title {
    font-size: clamp(12px, 3.2vw, 14px);
    margin-bottom: 5px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.advice-box-divider {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 1px;
    margin-bottom: 8px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.03));
}

.best-move-text {
    text-align: center;
    font-size: clamp(15px, 4.5vw, 17px);
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.26);
}

.best-move.hit .best-move-background {
    opacity: 1;
    background: linear-gradient(145deg, rgba(42, 110, 81, 0.96), rgba(21, 53, 41, 0.98));
}

.best-move.stand .best-move-background {
    opacity: 1;
    background: linear-gradient(145deg, rgba(126, 54, 63, 0.96), rgba(58, 22, 30, 0.98));
}

.best-move.split .best-move-background {
    opacity: 1;
    background: linear-gradient(145deg, rgba(193, 154, 67, 0.96), rgba(109, 79, 22, 0.98));
}

.best-move.double-down .best-move-background {
    opacity: 1;
    background: linear-gradient(145deg, rgba(49, 92, 170, 0.96), rgba(25, 50, 102, 0.98));
}

.best-move .best-move-background {
    opacity: 0;
}

.best-move.hit {
    border-color: rgba(110, 215, 156, 0.28);
}

.best-move.stand {
    border-color: rgba(255, 152, 123, 0.28);
}

.best-move.split {
    border-color: rgba(229, 201, 112, 0.34);
}

.best-move.double-down {
    border-color: rgba(124, 165, 238, 0.34);
}

.bust-percentage-text {
    text-align: center;
    font-size: clamp(15px, 4.5vw, 17px);
    font-weight: 700;
    color: #ffffff;
    min-height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.26);
}

.bust-percentage-footer {
    position: relative;
    z-index: 2;
    margin-top: 6px;
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 231, 173, 0.78);
}

.bust-percentage.teaser {
    background:
        radial-gradient(circle at top right, rgba(255, 226, 137, 0.08), transparent 42%),
        linear-gradient(180deg, rgba(44, 39, 29, 0.92), rgba(33, 31, 28, 0.96));
    border-color: rgba(201, 177, 87, 0.22);
    box-shadow: var(--game-surface-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.bust-percentage.teaser .bust-percentage-title {
    margin-bottom: 8px;
    color: rgba(255, 243, 214, 0.88);
}

.bust-percentage.teaser .advice-box-divider {
    background: linear-gradient(90deg, rgba(255, 228, 164, 0.06), rgba(255, 228, 164, 0.52), rgba(255, 228, 164, 0.06));
}

.bust-percentage.teaser .bust-percentage-text {
    flex: 1;
    color: rgba(255, 250, 238, 0.92);
    font-size: clamp(13px, 3.8vw, 15px);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.bust-percentage.teaser .bust-percentage-text.masked {
    letter-spacing: 0.16em;
    filter: blur(0.35px);
    opacity: 0.95;
}

.bust-percentage.teaser.teaser-emphasis {
    border-color: rgba(229, 201, 112, 0.34);
    box-shadow:
        var(--game-surface-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 8px 16px rgba(76, 57, 18, 0.16);
}

.bust-percentage.teaser:active {
    box-shadow:
        0 10px 18px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 6px 12px rgba(56, 42, 13, 0.14);
}

.bust-chance-tooltip {
    position: absolute;
    right: 6px;
    bottom: calc(100% + 8px);
    z-index: 4;
    width: min(190px, calc(100vw - 42px));
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 10px 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(201, 177, 87, 0.18);
    background: linear-gradient(180deg, rgba(23, 26, 34, 0.98), rgba(12, 14, 20, 0.98));
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
    text-align: left;
}

.bust-chance-tooltip.hidden {
    display: none;
}

.bust-chance-tooltip-copy {
    flex: 1;
    min-width: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 11px;
    line-height: 1.35;
    font-weight: 600;
}

.bust-chance-tooltip-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.76);
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
}

.bust-percentage.locked:not(.teaser) .bust-percentage-text {
    font-size: 15px;
    color: #d0d0d0;
}

#instruction {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding: 0 4px;
    max-height: none;
    min-height: 34px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

.card-input {
    margin-top: auto;
    padding-top: clamp(6px, 1.6vh, 12px);
    width: 100%;
}

.card-input.card-grid-mode {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 0;
    padding-top: 0;
    display: flex;
    flex-direction: column;
}

.card-input.card-grid-mode #instruction {
    margin-bottom: var(--game-stack-gap);
}

#cardButtons {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
}

.card-input.card-grid-mode #cardButtons {
    flex: 1 1 auto;
    min-height: 0;
}

.card-row {
    display: flex;
    justify-content: space-between;
    gap: 3px;
}

.card-input.card-grid-mode .card-row {
    flex: 1 1 0;
}

.card-btn,
.insurance-btn {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    flex: 1;
    min-height: clamp(38px, 6vh, 46px);
    padding: 6px 8px;
    font-size: clamp(15px, 4.7vw, 19px);
    text-align: center;
    background: var(--game-panel-neutral);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    margin: 0;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    backdrop-filter: blur(12px);
}

.card-btn::before,
.insurance-btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
    transition: transform 0.5s ease;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
}

.card-btn:active,
.insurance-btn:active {
    background: linear-gradient(180deg, rgba(22, 26, 34, 0.98), rgba(11, 14, 20, 0.99));
    border-color: rgba(124, 165, 238, 0.24);
    transform: translateY(0) scale(0.985);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card-btn:active::before,
.insurance-btn:active::before {
    transform: translate(-50%, -50%) scale(1);
}

.card-btn:hover,
.insurance-btn:hover {
    border-color: rgba(124, 165, 238, 0.24);
    box-shadow: 0 14px 22px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card-btn:disabled,
.insurance-btn:disabled {
    opacity: 0.58;
    box-shadow: none;
}

#newGameBtn {
    position: fixed;
    top: var(--floating-controls-top);
    right: var(--floating-side-offset);
    padding: clamp(9px, 2vh, 10px) clamp(14px, 4.6vw, 20px);
    font-size: clamp(14px, 4vw, 16px);
    border: 1px solid rgba(255, 188, 155, 0.28);
    border-radius: 8px;
    background: linear-gradient(145deg, #b24f37, #7a2f20);
    color: white;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 16px 24px rgba(57, 20, 14, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
}

body.app-channel-web #newGameBtn {
    position: absolute;
    top: var(--web-app-chrome-top);
    right: var(--web-app-chrome-side);
    z-index: 35;
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#newGameBtn:hover {
    background: linear-gradient(145deg, #bf5a41, #8c3725);
    transform: translateY(-3px);
    box-shadow: 0 20px 30px rgba(57, 20, 14, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

#newGameBtn:active {
    background: linear-gradient(145deg, #8d3826, #652117);
    transform: translateY(0);
    box-shadow: 0 10px 16px rgba(57, 20, 14, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@media (max-width: 479px) {
    body.app-channel-web .app-site-header {
        margin-bottom: 10px;
    }

    .site-main-links {
        display: none;
    }

    .site-nav {
        min-width: 0;
        width: auto;
        flex: 1 1 auto;
        display: flex;
        gap: 7px;
    }

    .nav-actions {
        flex-wrap: nowrap;
        gap: 7px;
    }

    .nav-button,
    .header-account-link {
        min-height: 36px;
        padding: 0 12px;
        font-size: 0.78rem;
    }

    .header-account-link {
        margin-left: 0;
        max-width: min(190px, calc(100vw - 96px));
    }

    .site-menu-button {
        width: 38px;
        height: 38px;
        padding: 0;
        flex: 0 0 auto;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 1px solid rgba(127, 164, 255, 0.24);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.04);
        color: #fff;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .site-menu-button-line {
        width: 15px;
        height: 2px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.86);
    }

    .site-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1200;
        display: block;
        background: rgba(2, 5, 10, 0.66);
        opacity: 1;
        backdrop-filter: blur(8px);
    }

    .site-mobile-menu {
        position: fixed;
        inset: 0;
        z-index: 1201;
        display: block;
        pointer-events: none;
    }

    .site-mobile-menu.is-open {
        pointer-events: auto;
    }

    .site-mobile-menu-panel {
        width: min(318px, calc(100vw - 32px));
        height: 100%;
        min-height: 100dvh;
        padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
        border-radius: 26px 0 0 26px;
        transform: translateX(104%);
        transition: transform 0.34s cubic-bezier(0.22, 0.72, 0.18, 1);
        box-shadow: -24px 0 70px rgba(0, 0, 0, 0.46);
        overflow-y: auto;
    }

    .site-mobile-menu.is-open .site-mobile-menu-panel {
        transform: translateX(0);
    }

    .site-mobile-menu-link {
        min-height: 46px;
        font-size: 0.9rem;
    }

    .auth-modal {
        align-items: flex-start;
        padding: max(48px, calc(env(safe-area-inset-top) + 38px)) 10px max(18px, env(safe-area-inset-bottom));
    }

    .auth-modal-card {
        padding: 22px 16px 16px;
        border-radius: 22px;
    }

    .auth-modal-title {
        font-size: 1.42rem;
    }

    .auth-modal-body,
    .auth-alert {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .auth-input {
        min-height: 48px;
        padding: 12px 14px;
        font-size: 0.92rem;
    }

    .auth-action-button {
        min-height: 48px;
    }
}

@media (min-width: 700px) {
    body.app-channel-web .app-site-header {
        width: min(1120px, calc(100% - 48px));
        padding: 18px 22px;
    }

    body.app-channel-web .container {
        border-left: 1px solid rgba(255, 255, 255, 0.06);
        border-right: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow:
            -24px 0 60px rgba(0, 0, 0, 0.12),
            24px 0 60px rgba(0, 0, 0, 0.12);
    }
}

@media (max-width: 400px) {
    .start-menu-overlay {
        padding-inline: 12px;
    }

    .container {
        padding: var(--app-top-clearance) 12px var(--app-bottom-padding);
    }

    .start-menu-shell {
        padding: 16px 14px 14px;
        border-radius: 22px;
    }

    .get-pro-shell {
        padding: 16px 14px 14px;
        border-radius: 22px;
    }

    .start-menu-logo {
        height: 82px;
        max-width: min(170px, 68vw);
    }

    .start-mode-toggle {
        gap: 8px;
    }

    .start-mode-button {
        padding-inline: 14px;
        font-size: 11px;
    }

    .start-mode-summary,
    .tier-status-subtext,
    .start-field-helper {
        font-size: 13px;
    }

    .count-display-toggle {
        gap: 7px;
    }

    .start-toggle-group {
        gap: 7px;
    }

    .start-advanced-summary {
        padding: 13px;
    }

    .start-advanced-body {
        padding: 7px 13px 13px;
    }

    .start-advanced-subpanel {
        padding: 11px;
    }

    .count-display-button {
        min-height: 42px;
        padding: 9px 6px;
        font-size: 11px;
    }

    .tier-status-remaining {
        font-size: 22px;
    }

    .start-menu-button,
    .start-secondary-button,
    .sheet-primary-button,
    .sheet-secondary-button {
        font-size: 14px;
    }

    .sheet-modal-content {
        border-radius: 22px;
        padding: 20px 16px 16px;
        transform: translateY(-3vh);
    }

    .proof-sheet {
        max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 32px);
        transform: none;
    }

    .sheet-title {
        font-size: 22px;
    }

    .web-account-chip {
        max-width: 42px;
        padding-inline: 0;
        justify-content: center;
    }

    .web-account-chip-label {
        display: none;
    }

    .tier-banner {
        width: min(166px, calc(100vw - 144px));
        max-width: min(166px, calc(100vw - 144px));
    }

    .tier-summary-button {
        padding: 7px 9px;
    }

    .tier-detail-panel {
        padding: 0 10px 10px;
    }

    .bet-panel {
        padding: 8px 10px;
    }

    .pro-stats-strip {
        width: 62px;
        padding: 7px 4px;
    }

    .pro-stats-grid {
        gap: 5px;
    }

    .pro-stat-card {
        padding: 7px 4px;
    }

    .pro-stat-value {
        font-size: 14px;
    }

    .pro-insight-summary {
        padding: 11px 12px;
    }

    .pro-insight-summary-text {
        max-width: 102px;
        font-size: 11px;
    }

    .pro-insight-body {
        padding: 12px;
        width: min(460px, calc(100vw - 24px));
    }

    .insurance-insight-evs {
        grid-template-columns: minmax(0, 1fr);
    }

    .bet-panel-amount {
        font-size: 22px;
    }

    .bet-panel-meta {
        font-size: 10px;
    }

    .bust-percentage-footer {
        font-size: 9px;
    }

    .bust-chance-tooltip {
        width: min(172px, calc(100vw - 32px));
        padding: 9px 9px 9px 11px;
    }

    .bust-chance-tooltip-copy {
        font-size: 10px;
    }

    .card-btn,
    .insurance-btn {
        font-size: 15px;
        min-height: 38px;
        padding: 6px;
    }

    .card {
        width: var(--card-width);
        height: auto;
        font-size: 18px;
    }

    #playerCardsContainer.hand-count-2 .cards {
        --card-width: 54px;
    }

    #playerCardsContainer.hand-count-3plus .cards {
        --card-width: 46px;
    }

    #newGameBtn {
        font-size: 16px;
        padding: 12px 20px;
    }
}

@media (max-width: 360px) {
    .start-menu-overlay,
    .get-pro-screen,
    .sheet-modal {
        padding-inline: 10px;
    }

    .start-mode-toggle {
        flex-wrap: wrap;
        gap: 6px;
    }

    .start-mode-button {
        flex: 1 1 calc(50% - 3px);
        min-width: 0;
    }

    .low-free-uses-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .pro-insight-summary {
        gap: 10px;
    }

    .pro-insight-summary-text {
        max-width: 88px;
    }

    .bust-chance-tooltip {
        right: 0;
        width: min(160px, calc(100vw - 24px));
    }
}

@media (max-height: 820px) {
    .start-menu-overlay,
    .get-pro-screen,
    .sheet-modal {
        padding-top: max(calc(var(--floating-controls-top) + 6px), calc(var(--overlay-screen-top-padding) - 4px));
    }

    .container {
        padding-top: var(--app-top-clearance);
        gap: clamp(7px, 1.5vh, 10px);
    }

    .start-menu-shell,
    .get-pro-shell {
        padding: 14px 13px;
        border-radius: 22px;
    }

    .start-brand-panel {
        gap: 8px;
        margin-bottom: 10px;
    }

    .start-menu-logo {
        height: 76px;
        max-width: min(164px, 62vw);
    }

    .tier-status-card,
    .pro-benefits-card {
        margin-bottom: 12px;
        padding: 14px;
    }

    .start-config-stack {
        gap: 8px;
    }

    .start-preset-panel:not(.start-advanced-panel) {
        padding: 12px;
        border-radius: 16px;
    }

    .start-preset-header {
        gap: 10px;
        margin-bottom: 8px;
    }

    .start-menu-button {
        min-height: 52px;
        margin-top: 12px;
        padding-block: 14px;
    }

    .start-secondary-actions {
        gap: 8px;
        margin-top: 10px;
    }

    .start-secondary-button {
        min-height: 46px;
        padding: 12px 14px;
    }

    .start-cta-note,
    .start-pro-hint {
        margin-top: 6px;
    }

    .pro-benefits-list,
    .get-pro-value-list,
    .get-pro-steps,
    .proof-submission-form {
        gap: 8px;
    }

    .get-pro-title {
        font-size: clamp(22px, 6.8vw, 28px);
    }

    .get-pro-subtitle {
        margin-top: 8px;
        font-size: 14px;
    }

    .get-pro-value-card,
    .get-pro-note-card,
    .get-pro-status-card {
        margin-top: 12px;
        padding: 14px;
    }

    .get-pro-section,
    .get-pro-cta-section {
        margin-top: 14px;
    }

    .get-pro-step-card {
        gap: 10px;
        padding: 12px;
        border-radius: 18px;
    }

    .get-pro-step-number {
        width: 26px;
        height: 26px;
        flex: 0 0 26px;
        font-size: 12px;
    }

    .get-pro-step-title {
        font-size: 14px;
    }

    .get-pro-step-body,
    .get-pro-faq-answer,
    .get-pro-cta-helper,
    .get-pro-secondary-helper {
        font-size: 12px;
    }

    .get-pro-faq-card {
        margin-top: 10px;
        padding: 0 14px;
        border-radius: 18px;
    }

    .get-pro-faq-card summary {
        padding: 13px 24px 13px 0;
        font-size: 13px;
    }

    .sheet-modal {
        align-items: flex-start;
    }

    .sheet-modal-content {
        transform: none;
    }

    .cards {
        min-height: clamp(66px, 12.6vh, 82px);
    }

    #playerCardsContainer.hand-count-3plus .cards {
        min-height: clamp(58px, 10.8vh, 70px);
    }

    .best-move,
    .bust-percentage {
        min-height: 66px;
    }

    .bet-panel {
        padding: 8px 10px;
    }

    #instruction {
        min-height: 34px;
        margin-bottom: 10px;
    }
}

@media (max-height: 760px) {
    .start-menu-shell,
    .get-pro-shell {
        padding: 13px 12px;
    }

    .container {
        gap: 7px;
        padding-top: var(--app-top-clearance);
    }

    .start-brand-panel {
        gap: 6px;
        margin-bottom: 8px;
    }

    .start-menu-logo {
        height: 68px;
        max-width: min(152px, 58vw);
    }

    .start-mode-toggle {
        margin-bottom: 10px;
    }

    .start-mode-summary,
    .tier-status-subtext,
    .start-field-helper,
    .pro-benefits-copy,
    .get-pro-subtitle,
    .get-pro-step-body,
    .get-pro-status-body,
    .get-pro-note-body,
    .get-pro-faq-answer {
        font-size: 12px;
        line-height: 1.4;
    }

    .tier-status-card,
    .pro-benefits-card,
    .get-pro-value-card,
    .get-pro-note-card,
    .get-pro-status-card {
        padding: 12px;
    }

    .tier-status-remaining {
        margin-top: 10px;
        font-size: 20px;
    }

    .start-preset-panel:not(.start-advanced-panel) {
        padding: 11px;
    }

    .start-advanced-summary {
        padding: 11px;
    }

    .start-advanced-body {
        padding: 6px 11px 11px;
    }

    .start-advanced-subpanel {
        padding: 10px;
    }

    .start-menu-button,
    .sheet-primary-button,
    .sheet-secondary-button {
        min-height: 50px;
    }

    .get-pro-title {
        font-size: clamp(20px, 6.2vw, 24px);
    }

    .get-pro-section,
    .get-pro-cta-section {
        margin-top: 12px;
    }

    .get-pro-step-card {
        padding: 11px;
    }

    .get-pro-step-title {
        font-size: 13px;
    }

    .head {
        font-size: clamp(15px, 4.6vw, 17px);
    }

    .section-total-line {
        font-size: 12px;
    }

    .cards {
        min-height: clamp(62px, 11.6vh, 76px);
    }

    #playerCardsContainer.hand-count-3plus .cards {
        min-height: clamp(54px, 9.8vh, 66px);
    }

    .best-move,
    .bust-percentage {
        min-height: 62px;
    }

    .bet-panel-meta {
        gap: 4px 8px;
    }
}

@media (max-height: 720px) {
    .start-menu-overlay {
        padding-top: max(calc(var(--floating-controls-top) + 4px), calc(var(--overlay-screen-top-padding) - 8px));
    }

    .start-menu-shell,
    .get-pro-shell,
    .sheet-modal-content,
    .free-limit-modal-content {
        border-radius: 20px;
    }

    .start-menu-shell,
    .get-pro-shell {
        padding: 12px 11px;
    }

    .start-menu-logo {
        height: 60px;
        max-width: min(140px, 54vw);
    }

    .start-config-stack {
        gap: 7px;
    }

    .tier-status-label,
    .pro-benefits-topline,
    .get-pro-value-title,
    .get-pro-section-title,
    .get-pro-note-title,
    .get-pro-status-title {
        font-size: 11px;
    }

    .get-pro-title {
        font-size: 22px;
    }

    .get-pro-subtitle {
        margin-top: 6px;
    }

    .get-pro-step-number {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
    }

    .get-pro-step-body,
    .get-pro-faq-answer,
    .pro-benefits-copy {
        font-size: 11.5px;
    }

    .sheet-modal {
        align-items: flex-start;
    }

    .sheet-modal-content {
        padding: 16px 14px 14px;
        transform: none;
    }

    .container {
        padding-inline: 12px;
        padding-top: var(--app-top-clearance);
        gap: 6px;
    }

    .section {
        margin-bottom: 0;
    }

    .bet-panel {
        padding: 7px 9px;
    }

    .card-row {
        gap: 3px;
    }

    .card-btn,
    .insurance-btn {
        min-height: 36px;
        padding: 5px 6px;
    }

    .low-free-uses-actions {
        grid-template-columns: minmax(0, 1fr);
    }
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.instruction::after {
    content: '|';
    font-weight: bold;
    animation: blink 1s step-end infinite;
}

:root.ios-web.keyboard-open .start-menu-overlay {
    inset: 0 0 auto 0;
    width: 100%;
    height: var(--app-screen-height);
    min-height: var(--app-screen-height);
    padding:
        var(--overlay-screen-top-padding)
        clamp(12px, 4vw, 16px)
        var(--overlay-screen-bottom-padding);
}

:root.ios-web.keyboard-open .start-menu-content {
    min-height: min(100%, var(--overlay-shell-max-height));
}

:root.ios-web.keyboard-open .start-menu-shell {
    max-height: var(--overlay-shell-max-height);
    padding:
        clamp(14px, calc(var(--app-screen-height) * 0.028), 18px)
        clamp(14px, 4vw, 16px)
        clamp(14px, calc(var(--app-screen-height) * 0.024), 16px);
    border-radius: 24px;
}

:root.ios-web.keyboard-open .start-brand-panel {
    gap: 10px;
    margin-bottom: 12px;
}

:root.ios-web.keyboard-open .start-menu-logo {
    height: clamp(74px, calc(var(--app-screen-height) * 0.15), 92px);
    max-width: min(190px, 72vw);
}

:root.ios-web.keyboard-open .start-mode-toggle {
    gap: 10px;
    margin-bottom: 12px;
}

:root.ios-web.keyboard-open .start-config-stack {
    gap: 10px;
}

:root.ios-web.keyboard-open .start-preset-panel:not(.start-advanced-panel) {
    padding: 14px;
    border-radius: 18px;
}

:root.ios-web.keyboard-open .start-preset-header {
    gap: 12px;
    margin-bottom: 10px;
}

:root.ios-web.keyboard-open .start-menu-button {
    min-height: 56px;
    margin-top: 14px;
    padding: 15px clamp(16px, 5vw, 20px);
    font-size: clamp(16px, 4.6vw, 18px);
}

:root.ios-web.keyboard-open .start-cta-note,
:root.ios-web.keyboard-open .start-pro-hint {
    margin-top: 8px;
}
