.theme-selector,
#themeSelector,
.theme-menu {
    display: none !important;
}

@media (max-width: 991.98px) {
    body.has-mobile-nav,
    body:has(.mobile-bottom-nav) {
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.has-mobile-nav[data-g8-active-page="settings"],
    body:has(.mobile-bottom-nav):has(#g8-page-root[data-page="settings"]),
    body.page-settings.has-mobile-nav,
    body.page-settings:has(.mobile-bottom-nav) {
        padding-bottom: 0 !important;
    }

    body.page-home-v2.has-mobile-nav {
        padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.page-friends-hub.has-mobile-nav,
    body.page-friend-detail.has-mobile-nav,
    body.page-private-chat.has-mobile-nav,
    body:has(.g8-page-panel.is-active .pm-chat-shell) {
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.page-voice-match,
    body.page-video-match,
    body.page-text-match {
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
        overflow-x: hidden;
        overflow-y: auto !important;
        height: auto !important;
        max-height: none !important;
    }

    body.page-match,
    body[data-g8-active-page="match"],
    body:has(#g8-page-root[data-page="match"]) {
        padding-bottom: 0 !important;
        overflow-x: hidden;
        overflow-y: auto !important;
        height: auto !important;
        max-height: none !important;
    }

    body.has-mobile-nav[data-g8-active-page="match"],
    body:has(.mobile-bottom-nav):has(#g8-page-root[data-page="match"]) {
        padding-bottom: 0 !important;
    }

    body.page-settings,
    body:has(#g8-page-root[data-page="settings"]) {
        padding-bottom: 0 !important;
        overflow-x: hidden;
        overflow-y: auto !important;
        height: auto !important;
        max-height: none !important;
    }

    body.page-voice-match .dashboard-container,
    body.page-video-match .dashboard-container,
    body.page-text-match .dashboard-container {
        margin-top: 12px;
        margin-bottom: 0;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    body.has-mobile-nav .mobile-friends-toggle,
    body:has(.mobile-bottom-nav) .mobile-friends-toggle {
        display: none !important;
    }

    body.has-mobile-nav .theme-selector,
    body:has(.mobile-bottom-nav) .theme-selector {
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }

    body.has-mobile-nav .theme-menu,
    body:has(.mobile-bottom-nav) .theme-menu {
        bottom: calc(126px + env(safe-area-inset-bottom, 0px));
    }

    body.call-active-call {
        overflow: hidden !important;
        padding-bottom: 0 !important;
    }

    body.call-active-call .mobile-bottom-nav {
        display: none !important;
    }

    body.call-active-call .theme-selector,
    body.call-active-call .theme-menu {
        display: none !important;
    }
}

/* 手機版首頁優化（設置頁由 settings.css 自行處理底部間距） */
@media (max-width: 991.98px) {
    .modern-theme:not(.page-settings):not(.page-match) {
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    }
}

.mobile-top-bar {
    display: none;
}

.mobile-hero {
    display: none;
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 991.98px) {
    .modern-container {
        margin: 0;
        padding: 0 0 16px;
        max-width: 100%;
    }

    .mobile-top-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        padding-top: calc(12px + env(safe-area-inset-top, 0px));
        background: rgba(14, 11, 20, 0.92);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
        border-bottom: 1px solid rgba(245, 208, 166, 0.1);
        position: sticky;
        top: 0;
        z-index: 1020;
        backdrop-filter: blur(12px);
    }

    .mobile-top-bar .user-mini {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    .mobile-top-bar .user-mini img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--accent-color, #F5D0A6);
    }

    .mobile-top-bar .user-mini .name {
        font-weight: 700;
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-top-bar .top-actions {
        display: flex;
        gap: 8px;
        flex-shrink: 0;
    }

    .mobile-top-bar .top-actions .btn-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1.5px solid rgba(255, 255, 255, 0.12);
        background: rgba(26, 21, 36, 0.9);
        color: var(--dark-color, #F6F0EA);
        text-decoration: none;
        position: relative;
    }

    .mobile-top-bar .top-actions .btn-icon.danger {
        color: #E11D48;
    }

    .mobile-top-bar .nav-badge {
        position: absolute;
        top: -4px;
        right: -4px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 9px;
        background: #dc3545;
        color: #fff;
        font-size: 0.65rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modern-header {
        display: none;
    }

    .mobile-hero {
        display: block;
        margin: 0 16px 16px;
        border-radius: 22px;
        overflow: hidden;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
        position: relative;
    }

    .mobile-hero img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        display: block;
    }

    .mobile-hero .hero-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(14, 11, 20, 0.15) 10%, rgba(14, 11, 20, 0.88) 100%);
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 18px 18px 16px;
        color: #fff;
    }

    .mobile-hero .home-kicker {
        margin: 0 0 4px;
        font-size: 0.78rem;
        letter-spacing: 0.04em;
        color: var(--accent-color, #F5D0A6);
        font-weight: 600;
    }

    .mobile-hero .hero-overlay h2 {
        font-size: 1.4rem;
        font-weight: 700;
        margin: 0 0 6px;
    }

    .mobile-hero .hero-overlay p {
        margin: 0;
        font-size: 0.85rem;
        opacity: 0.92;
    }

    .mobile-hero .hero-cta-group {
        margin-top: 12px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .mobile-hero .hero-cta-group .btn-light {
        background: #fff;
        color: #2a1b3d !important;
        -webkit-text-fill-color: #2a1b3d !important;
        border: none;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    }

    .mobile-hero .hero-cta-group .btn-light:hover {
        background: #f5f0eb;
        color: #2a1b3d !important;
    }

    .mobile-hero .hero-cta-group .btn-outline-light {
        background: rgba(255, 255, 255, 0.14);
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
        border: 1.5px solid rgba(255, 255, 255, 0.72);
        backdrop-filter: blur(6px);
    }

    .mobile-hero .hero-cta-group .btn-outline-light:hover {
        background: rgba(255, 255, 255, 0.24);
        border-color: #fff;
        color: #fff !important;
    }

    .page-home .home-trust {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 0 0 20px;
    }

    .page-home .home-trust-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        border-radius: 16px;
        background: var(--card-bg, #1A1524);
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .page-home .home-trust-item i,
    .page-home .home-trust-item img {
        width: 44px;
        height: 44px;
        border-radius: 3px;
        object-fit: cover;
        flex-shrink: 0;
        border: 2px solid #efe6dc;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
        background: #1a1524;
    }

    .page-home .home-trust-item i {
        display: none;
    }

    .page-home .home-trust-item strong {
        display: block;
        font-size: 0.9rem;
        color: var(--dark-color, #F6F0EA);
    }

    .page-home .home-trust-item span {
        font-size: 0.75rem;
        color: rgba(246, 240, 234, 0.62);
    }

    .section-title {
        font-size: 1.15rem;
        margin-bottom: 16px;
        padding-bottom: 0;
    }

    .section-title::after {
        display: none;
    }

    .modern-container > .row > .col-lg-9 {
        padding: 0 16px;
    }

    .matching-card {
        padding: 0;
        margin-bottom: 14px;
        border-radius: 18px;
        overflow: hidden;
        text-align: left;
        background: var(--card-bg, #1A1524);
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .matching-card .card-visual-wrap {
        position: relative;
    }

    .matching-card .card-visual,
    .matching-card svg.card-visual {
        width: 100%;
        height: 140px;
        object-fit: cover;
        display: block;
    }

    .matching-card .mode-chip {
        position: absolute;
        left: 12px;
        bottom: 12px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 9px;
        border-radius: 999px;
        background: rgba(14, 11, 20, 0.75);
        color: #fff;
        font-size: 0.75rem;
        font-weight: 700;
    }

    .matching-card .card-body-mobile {
        padding: 16px;
    }

    .matching-card .card-icon {
        display: none;
    }

    .matching-card .card-title {
        font-size: 1.15rem;
        margin-bottom: 6px;
        color: var(--dark-color, #F6F0EA);
    }

    .matching-card .card-desc {
        font-size: 0.875rem;
        color: rgba(246, 240, 234, 0.7);
        margin-bottom: 12px;
    }

    .matching-card .feature-list {
        display: none;
    }

    .matching-card .btn-match {
        --btn-height: 48px;
        --btn-font: 1rem;
        margin: 0;
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        text-align: center;
    }

    .matching-card .btn-match i {
        line-height: 1;
        flex-shrink: 0;
    }

    .matching-card .card-footer-text {
        margin-top: 10px;
        font-size: 0.75rem;
    }

    .footer-note {
        margin-top: 8px;
        padding: 14px;
        font-size: 0.875rem;
        background: var(--card-bg, #1A1524);
        border: 1px solid rgba(245, 208, 166, 0.12);
        color: rgba(246, 240, 234, 0.88);
    }

    .page-home .profile-actions {
        display: none !important;
    }

    .theme-selector {
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
        right: 12px;
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .theme-menu {
        bottom: calc(126px + env(safe-area-inset-bottom, 0px));
        right: 12px;
    }

    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040;
        background: rgba(14, 11, 20, 0.96);
        border-top: 1px solid rgba(245, 208, 166, 0.12);
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.28);
        width: 100%;
        max-width: 100%;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        backdrop-filter: blur(14px);
    }

    html.display-dark .mobile-bottom-nav,
    html:not(.display-light) .mobile-bottom-nav {
        background: rgba(14, 11, 20, 0.96);
        border-top: 1px solid rgba(245, 208, 166, 0.12);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.28);
    }

    html.display-light .mobile-bottom-nav {
        background: #fff;
        border-top: 1px solid rgba(42, 27, 61, 0.1);
        box-shadow: 0 -8px 24px rgba(42, 27, 61, 0.08);
    }

    .mobile-bottom-nav a,
    .mobile-bottom-nav button {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 7px 1px;
        min-height: 56px;
        border: none;
        background: transparent;
        color: #888;
        font-size: 0.58rem;
        text-decoration: none;
        position: relative;
        -webkit-tap-highlight-color: transparent;
        min-width: 0;
    }

    html.display-light .mobile-bottom-nav a,
    html.display-light .mobile-bottom-nav button {
        color: #6b6375;
    }

    .mobile-bottom-nav a.active,
    .mobile-bottom-nav button.active,
    .mobile-bottom-nav button.is-drawer-open {
        color: var(--primary-color, #FF4B91);
    }

    .mobile-bottom-nav a.match-nav.active,
    .mobile-bottom-nav a.swipe-nav.active {
        color: var(--primary-color, #E8B4D4);
    }

    .mobile-bottom-nav i {
        font-size: 1.15rem;
    }

    .mobile-bottom-nav .nav-badge {
        position: absolute;
        top: 6px;
        left: calc(50% + 8px);
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 8px;
        background: #dc3545;
        color: #fff;
        font-size: 0.6rem;
        font-weight: 700;
        line-height: 16px;
        text-align: center;
    }

    .offcanvas-body .mobile-friends-toggle,
    .page-home .mobile-friends-toggle {
        display: none !important;
    }
}

/* 原始主題手機版 */
@media (max-width: 991.98px) {
    body:not(.modern-theme) {
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    }

    body:not(.modern-theme) .mobile-bottom-nav {
        display: flex;
    }

    body:not(.modern-theme) .container {
        margin: 0 auto;
        padding: 12px 16px 16px;
        max-width: 100%;
    }

    body:not(.modern-theme) .user-info {
        flex-direction: row !important;
        text-align: left !important;
        padding: 12px 14px;
        margin-bottom: 12px;
    }

    body:not(.modern-theme) .user-info .avatar-img {
        width: 48px;
        height: 48px;
        margin: 0 12px 0 0 !important;
    }

    body:not(.modern-theme) .user-info h3 {
        font-size: 1.1rem;
        margin-bottom: 2px !important;
    }

    body:not(.modern-theme) .user-info p {
        font-size: 0.8rem;
    }

    body:not(.modern-theme).page-home .profile-actions {
        display: none !important;
    }

    body:not(.modern-theme) .mobile-hero {
        display: block;
        margin-bottom: 16px;
    }

    body:not(.modern-theme) .mode-card .feature-list,
    body:not(.modern-theme) .mode-card ul {
        display: none;
    }

    body:not(.modern-theme) .mode-card {
        padding: 16px;
        margin-bottom: 12px;
    }

    body:not(.modern-theme) h2 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    /* 私訊等頁可用固定高度；配對設定頁必須隨內容撐開，否則年齡／開始按鈕會被裁切 */
    .chat-container {
        height: calc(100vh - 250px);
    }

    body.page-text-match .chat-container,
    body.page-voice-match .chat-container,
    body.page-video-match .chat-container,
    body.page-text-match .voice-chat-container,
    body.page-voice-match .voice-chat-container,
    body.page-video-match .voice-chat-container {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

.offcanvas.offcanvas-end,
.friends-offcanvas.offcanvas-end {
    width: min(100%, 390px);
    max-width: none;
}

.offcanvas-header,
.friends-drawer-header {
    padding: 16px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.92), rgba(124, 58, 237, 0.88));
    border-bottom: none;
    color: #fff;
}

.offcanvas-title {
    font-size: 1.12rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.offcanvas-body {
    padding: 0;
    background: var(--background-color, #0E0B14);
}

.offcanvas-body .friends-sidebar {
    display: block !important;
    box-shadow: none;
    border-radius: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    position: static;
    width: auto;
}

.offcanvas-body .friends-header {
    display: none;
}

.offcanvas-body .friends-drawer-stats {
    display: flex;
}

.offcanvas-body .friends-list {
    max-height: none;
    height: auto;
    min-height: 0;
    overflow-y: auto;
    padding-top: 0;
    flex: 1;
}

.offcanvas-body .mobile-friends-toggle {
    display: none !important;
}

@media (max-width: 575.98px) {
    .friends-offcanvas.offcanvas-end {
        width: 100%;
    }
}

.match-hub-header {
    margin-bottom: 18px;
    padding-top: 8px;
}

.match-hub-header-top {
    margin-bottom: 10px;
}

.match-hub-header-copy {
    min-width: 0;
}

.match-hub-header h1 {
    margin: 0 0 4px;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--dark-color, #F6F0EA);
}

.match-hub-header p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted-color, rgba(246, 240, 234, 0.62));
}

.match-live-callers {
    margin-bottom: 4px;
    padding: 12px 12px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(26, 21, 36, 0.82) 0%, rgba(20, 16, 30, 0.72) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.match-live-callers-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.match-live-callers-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(134, 239, 172, 0.92);
}

.match-live-callers-meta {
    font-size: 0.72rem;
    color: rgba(246, 240, 234, 0.48);
}

.match-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
    animation: matchLiveDotPulse 1.8s ease-in-out infinite;
}

@keyframes matchLiveDotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.35); }
    50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

.match-live-callers-strip {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
    align-items: center;
}

.match-live-caller {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 56px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: #1a1524;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.match-live-caller img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 420px) {
    .match-live-callers-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px 8px;
    }

    .match-live-caller {
        max-width: 64px;
    }
}

.match-logged-in-hint {
    margin: 12px 0 0;
    font-size: 0.92rem;
    color: #86efac;
}

body.page-match:not(.has-mobile-nav) .match-hub,
body.page-match:not(.has-mobile-nav) .modern-container.home-shell {
    margin-bottom: 24px;
}

.page-match .modern-container.home-shell,
.page-match .match-hub,
#g8-page-root[data-page="match"] .match-hub,
.g8-page-panel.is-active .match-hub {
    max-width: 560px;
    margin: 0 auto;
    padding: 16px 14px 12px;
    margin-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
}

.page-match .footer-note,
#g8-page-root[data-page="match"] .footer-note {
    margin-top: 8px;
    margin-bottom: 0;
}

#g8-page-root[data-page="match"] {
    min-height: 0 !important;
}

.page-match .matching-card {
    padding: 0;
    margin-bottom: 14px;
    border-radius: 18px;
    overflow: hidden;
    text-align: left;
    background: var(--card-bg, #1A1524);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.page-match .matching-card .card-visual-wrap {
    position: relative;
}

.page-match .matching-card .card-visual {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.page-match .matching-card .mode-chip {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(14, 11, 20, 0.75);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.page-match .matching-card .card-body-mobile {
    padding: 16px;
}

.page-match .matching-card .card-title {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--dark-color, #F6F0EA);
}

.page-match .matching-card .card-desc {
    font-size: 0.875rem;
    color: var(--muted-color, rgba(246, 240, 234, 0.7));
    margin-bottom: 12px;
}

.page-match .matching-card .btn-match {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-match .matching-card.is-maintenance {
    opacity: 0.88;
}

.page-match .matching-card.is-maintenance .card-visual {
    filter: grayscale(0.35) brightness(0.72);
}

.page-match .card-maint-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 8, 16, 0.52);
}

.page-match .card-maint-overlay-label {
    color: #fff;
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-indent: 0.12em;
    line-height: 1;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.page-match .card-maint-note {
    margin: 0 0 12px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #ffc107;
    background: rgba(255, 193, 7, 0.12);
}

.page-match .matching-card.is-maintenance .btn-match-maint {
    opacity: 1;
    cursor: pointer;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.match-maint-strip {
    position: relative;
    margin: 8px 0 18px;
    min-height: 104px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(232, 180, 212, 0.14);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.match-maint-strip-art {
    position: absolute;
    inset: 0;
    display: block;
}

.match-maint-strip-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 28% center;
}

.match-maint-strip-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 104px;
    padding: 14px 16px 14px 42%;
    background: linear-gradient(
        90deg,
        rgba(10, 6, 18, 0.05) 0%,
        rgba(14, 10, 22, 0.78) 36%,
        rgba(14, 10, 22, 0.94) 100%
    );
}

.match-maint-strip-title {
    margin: 0;
    font-size: clamp(0.94rem, 3.6vw, 1.06rem);
    font-weight: 700;
    line-height: 1.35;
    color: #f6f0ea;
    letter-spacing: 0.01em;
}

.match-maint-strip-hint {
    margin: 5px 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(246, 240, 234, 0.58);
}

html.display-light .match-maint-strip {
    border-color: rgba(147, 51, 234, 0.16);
    box-shadow: 0 8px 24px rgba(42, 27, 61, 0.08);
}

html.display-light .match-maint-strip-copy {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.88) 38%,
        rgba(255, 255, 255, 0.96) 100%
    );
}

html.display-light .match-maint-strip-title {
    color: #2a1b3d;
}

html.display-light .match-maint-strip-hint {
    color: #6b6078;
}

.match-hub-header .match-logged-in-hint {
    margin-top: 4px;
}

.match-maint-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    color: #fff;
    background: linear-gradient(180deg, rgba(38, 30, 52, 0.98) 0%, rgba(20, 16, 30, 0.98) 100%);
    border: 1px solid rgba(255, 193, 7, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.match-maint-banner i {
    font-size: 1.1rem;
    color: #ffc107;
    flex-shrink: 0;
}

.match-flash-alert {
    text-align: left;
    border-radius: 12px;
}

.home-go-match {
    text-align: center;
    margin: 8px 0 18px;
}

.home-go-match .btn-match {
    width: 100%;
    max-width: 360px;
}

.home-go-match p {
    margin: 10px 0 0;
    font-size: 0.85rem;
    color: var(--muted-color, rgba(246, 240, 234, 0.62));
}

.home-go-match p a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-announcements {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 14px;
    padding: 0 4px;
}

.site-announcement {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.site-announcement-icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(244, 114, 182, 0.18);
    color: #f472b6;
    font-size: 0.85rem;
}

.site-announcement-body {
    flex: 1 1 auto;
    min-width: 0;
}

.site-announcement-title {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 4px;
    color: var(--dark-color, #F6F0EA);
}

.site-announcement-text {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--muted-color, rgba(246, 240, 234, 0.78));
    word-break: break-word;
}

.site-announcement-close {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: var(--dark-color, #F6F0EA);
    opacity: 0.72;
    padding: 2px;
    line-height: 1;
}

.site-announcement-close:hover {
    opacity: 1;
}

.page-swipe .site-announcements,
.page-match .site-announcements {
    padding: 0 16px;
    margin-top: 8px;
}

html.display-light .site-announcement {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(42, 27, 61, 0.1);
    box-shadow: 0 8px 24px rgba(42, 27, 61, 0.06);
}

html.display-light .site-announcement-title {
    color: #2a1b3d;
}

html.display-light .site-announcement-text {
    color: rgba(42, 27, 61, 0.72);
}

html.display-light .site-announcement-close {
    color: rgba(42, 27, 61, 0.55);
    opacity: 1;
}

html.display-light .site-announcement-close:hover {
    color: rgba(42, 27, 61, 0.88);
}

html.display-light .site-announcement-icon {
    background: rgba(244, 114, 182, 0.14);
    color: #db2777;
}
