/* View mode chooser — first visit on phone */

.cc-view-chooser {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    padding-top: calc(24px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(165deg, #0047BB 0%, #003080 45%, #001a44 100%);
    color: #fff;
    overflow-y: auto;
}

.cc-view-chooser.is-open {
    display: flex;
}

.cc-view-chooser__brand {
    text-align: center;
    margin-bottom: 28px;
    animation: ccChooserFadeUp 0.5s cubic-bezier(0.32, 0.72, 0, 1) both;
}

.cc-view-chooser__logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    margin-bottom: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    object-fit: contain;
    background: rgba(255, 255, 255, 0.08);
}

.cc-view-chooser__title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.cc-view-chooser__subtitle {
    font-size: 15px;
    opacity: 0.85;
    margin: 0;
    max-width: 280px;
}

.cc-view-chooser__cards {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cc-view-chooser__card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.32, 0.72, 0, 1), border-color 0.2s, background 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    animation: ccChooserFadeUp 0.5s cubic-bezier(0.32, 0.72, 0, 1) both;
}

.cc-view-chooser__card:nth-child(1) { animation-delay: 0.08s; }
.cc-view-chooser__card:nth-child(2) { animation-delay: 0.16s; }

.cc-view-chooser__card:active {
    transform: scale(0.97);
}

.cc-view-chooser__card:hover,
.cc-view-chooser__card:focus-visible {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.16);
    outline: none;
}

.cc-view-chooser__card-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.cc-view-chooser__card-body h3 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 800;
}

.cc-view-chooser__card-body p {
    margin: 0;
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.4;
}

.cc-view-chooser__card--featured {
    border-color: rgba(255, 210, 102, 0.55);
    background: rgba(255, 255, 255, 0.14);
}

.cc-view-chooser__card--featured .cc-view-chooser__card-icon {
    background: rgba(255, 210, 102, 0.22);
    color: #ffd166;
}

.cc-view-chooser__note {
    margin-top: 20px;
    font-size: 12px;
    opacity: 0.65;
    text-align: center;
    animation: ccChooserFadeUp 0.5s 0.24s cubic-bezier(0.32, 0.72, 0, 1) both;
}

.cc-view-chooser.is-exiting {
    animation: ccChooserExit 0.35s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

html.cc-chooser-pending #cc-translate-root,
html.cc-chooser-pending .headerDark,
html.cc-chooser-pending .nav-heading,
html.cc-chooser-pending footer,
html.cc-chooser-pending .float-sm,
html.cc-chooser-pending .cc-app-topbar,
html.cc-chooser-pending .cc-app-tabbar,
html.cc-chooser-pending .cc-app-content-skeleton {
    visibility: hidden;
}

@keyframes ccChooserFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ccChooserExit {
    to {
        opacity: 0;
        transform: translateY(-24px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cc-view-chooser__brand,
    .cc-view-chooser__card,
    .cc-view-chooser__note {
        animation: none;
    }
    .cc-view-chooser__card:active {
        transform: none;
    }
}
