/* ===== Home v2 (reference layout) ===== */
body.page-home {
    background: #f3f4f6;
}

.home-page {
    --home-gutter: 12px;
    --home-gap: 10px;
}

.home-page > .banner-section,
.home-page > .home-announce,
.home-page > .home-auth-panel,
.home-page > .home-games-block {
    box-sizing: border-box;
    width: calc(100% - var(--home-gutter) * 2);
    max-width: calc(480px - var(--home-gutter) * 2);
    margin-left: auto;
    margin-right: auto;
}

.home-page > .banner-section {
    margin-top: var(--home-gap);
}

.home-page > .home-announce,
.home-page > .home-auth-panel,
.home-page > .home-games-block {
    margin-top: var(--home-gap);
}

.header-home-v2 {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    height: var(--header-height);
    padding: 0 8px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header-home-v2 .header-home-brand {
    justify-self: center;
}

.header-home-v2 .header-title-home {
    color: var(--primary-red);
    font-size: 17px;
    text-shadow: none;
}

.header-home-menu {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
}

.header-home-menu span {
    display: block;
    width: 18px;
    height: 2px;
    background: #333;
    border-radius: 1px;
}

.header-home-cs {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.header-home-cs svg {
    width: 26px;
    height: 26px;
}

.home-menu-drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
    visibility: hidden;
    pointer-events: none;
}

.home-menu-drawer[hidden] {
    display: block;
}

.home-menu-drawer.home-menu-drawer--open {
    visibility: visible;
    pointer-events: auto;
}

.home-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.home-menu-drawer--open .home-menu-backdrop {
    opacity: 1;
}

.home-menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: min(300px, 82vw);
    height: 100%;
    background: #f8f9fb;
    padding: 16px 14px 24px;
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.12);
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-menu-drawer--open .home-menu-panel {
    transform: translateX(0);
}

.home-menu-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 2px;
}

.home-menu-panel-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
}

.home-menu-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 10px;
    background: #fff;
    color: #666;
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.home-menu-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
}

.home-menu-user--guest {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.home-menu-user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}

.home-menu-user-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-menu-user-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.home-menu-user-name {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.home-menu-vip-tag {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ffd54f 0%, #ff9800 100%);
    box-shadow: 0 1px 4px rgba(255, 152, 0, 0.35);
}

.home-menu-user-balance {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-red);
}

.home-menu-user-arrow {
    flex-shrink: 0;
    color: #bbb;
    display: flex;
    align-items: center;
}

.home-menu-user-arrow svg {
    width: 16px;
    height: 16px;
}

.home-menu-brand-logo {
    max-width: 140px;
    max-height: 44px;
    object-fit: contain;
}

.home-menu-brand-name {
    font-size: 20px;
    font-weight: 800;
    color: #222;
}

.home-menu-user-hint {
    margin: 0;
    font-size: 13px;
    color: #888;
    line-height: 1.4;
}

.home-menu-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 36px;
    padding: 0 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffd54f, #ffb300);
    color: #5d4037;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.home-menu-section + .home-menu-section {
    margin-top: 14px;
}

.home-menu-section-title {
    padding: 0 6px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    letter-spacing: 0.02em;
}

.home-menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 10px 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
    text-decoration: none;
    color: #333;
    transition: background 0.15s ease, transform 0.15s ease;
    width: 100%;
    border: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.home-menu-item:active {
    background: #fff5f5;
    transform: scale(0.99);
}

.home-menu-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.home-menu-item-icon svg {
    width: 18px;
    height: 18px;
}

.home-menu-item-icon--promo {
    background: linear-gradient(145deg, #ffb74d, #f57c00);
}

.home-menu-item-icon--share {
    background: linear-gradient(145deg, #64b5f6, #1e88e5);
}

.home-menu-item-icon--records {
    background: linear-gradient(145deg, #ba68c8, #8e24aa);
}

.home-menu-item-icon--cs {
    background: linear-gradient(145deg, #ff8a80, #e53935);
}

.home-menu-item-label {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.home-menu-item-arrow {
    flex-shrink: 0;
    color: #ccc;
    display: flex;
    align-items: center;
}

.home-menu-item-arrow svg {
    width: 16px;
    height: 16px;
}

.home-page .banner-section {
    padding: 0;
    background: transparent;
}

.home-page .banner-carousel {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.home-announce {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    padding: 8px 10px;
    background: #fff;
    border-radius: 999px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.home-announce-icon {
    flex-shrink: 0;
}

.home-announce-marquee {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.home-announce-marquee span {
    display: inline-block;
    white-space: nowrap;
    animation: home-marquee 18s linear infinite;
    font-size: 12px;
    color: #666;
}

@keyframes home-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.home-announce-badge {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--primary-red);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-auth-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0;
    padding: 12px;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.home-auth-greeting {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    padding: 0 2px;
}

.home-auth-user-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 2px;
    min-width: 0;
}

.home-auth-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
    text-decoration: none;
}

.home-auth-user-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.home-auth-user-account-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.home-auth-user-name {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.home-auth-vip-tag {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ffd54f 0%, #ff9800 100%);
    box-shadow: 0 1px 4px rgba(255, 152, 0, 0.35);
}

.home-auth-user-balance-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.home-auth-user-balance {
    font-size: 12px;
    color: var(--primary-red);
    font-weight: 700;
    min-width: 0;
}

.home-balance-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #f5f5f5;
    color: #666;
    cursor: pointer;
    flex-shrink: 0;
}

.home-balance-refresh svg {
    width: 13px;
    height: 13px;
}

.home-balance-refresh:active {
    opacity: 0.85;
}

.home-balance-refresh.is-loading svg {
    animation: home-refresh-spin 0.8s linear infinite;
}

@keyframes home-refresh-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.home-auth-row {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.home-auth-quick-group {
    display: flex;
    align-items: center;
    gap: 3px;
    flex: 0 0 auto;
    margin-left: auto;
}

.home-auth-panel.is-logged-in {
    padding: 10px 12px;
}

.home-auth-panel.is-logged-in .home-auth-row {
    gap: 10px;
    align-items: center;
}

.home-auth-panel.is-logged-in .home-auth-user-bar {
    flex: 1 1 50%;
    min-width: 0;
    max-width: 50%;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.home-auth-panel.is-logged-in .home-auth-quick-group {
    flex: 1 1 50%;
    min-width: 0;
    max-width: 50%;
    margin-left: 0;
    justify-content: space-between;
    gap: 6px;
}

.home-auth-panel.is-logged-in .home-auth-user-avatar {
    width: 42px;
    height: 42px;
}

.home-auth-panel.is-logged-in .home-auth-user-name {
    font-size: 14px;
}

.home-auth-panel.is-logged-in .home-auth-user-balance {
    font-size: 13px;
}

.home-auth-panel.is-logged-in .home-auth-action--quick {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    gap: 4px;
    padding: 2px 0;
}

.home-auth-panel.is-logged-in .home-auth-action--quick .home-auth-action-icon {
    width: 38px;
    height: 38px;
}

.home-auth-panel.is-logged-in .home-auth-action--quick .home-auth-action-label {
    font-size: 11px;
    line-height: 1.15;
}

.home-auth-btn {
    flex: 1;
    min-width: 0;
    height: 36px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: inherit;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.home-auth-btn--login {
    background: linear-gradient(180deg, #ef5350, #c62828);
    color: #fff;
}

.home-auth-btn--register {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.home-auth-btn:active {
    opacity: 0.88;
}

.home-auth-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    text-decoration: none;
    color: #333;
    border: none;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.home-auth-action--quick {
    flex: 0 0 40px;
    width: 40px;
    gap: 3px;
    padding: 0;
}

.home-auth-action:active {
    opacity: 0.85;
}

.home-auth-action--quick .home-auth-action-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.home-auth-action-icon--img {
    background: transparent;
    box-shadow: none;
}

.home-auth-quick-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.home-auth-action--quick .home-auth-action-label {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.home-cat-nav {
    margin: 0 0 10px;
    padding: 10px 8px 12px;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    box-sizing: border-box;
}

.home-cat-nav::-webkit-scrollbar {
    display: none;
}

.home-cat-track {
    display: inline-flex;
    gap: 8px;
    min-width: 100%;
    padding: 2px 2px 4px;
    box-sizing: border-box;
}

.home-cat-item {
    flex-shrink: 0;
    width: 52px;
    padding: 6px 4px 7px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #f8f8f8;
    font-family: inherit;
    cursor: pointer;
    color: #888;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 2px 0 #ddd,
        0 1px 3px rgba(0, 0, 0, 0.06);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.home-cat-item:active:not(.active) {
    transform: translateY(1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 1px 0 #ddd;
}

.home-cat-item.active {
    color: #ff5858;
    background: #fff5f5;
    border: 2px solid #ff5858;
    padding: 5px 3px 6px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 2px 0 #f0c8c8,
        0 2px 6px rgba(255, 88, 88, 0.1);
    transform: translateY(-1px);
}

.home-cat-item.active:active {
    transform: translateY(0);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 1px 0 #f0c8c8,
        0 1px 4px rgba(255, 88, 88, 0.08);
}

.home-cat-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 4px;
    border-radius: 8px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.home-cat-icon--img {
    background: transparent;
}

.home-cat-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.home-cat-item:not(.active) .home-cat-img {
    opacity: 1;
    filter: none;
}

.home-cat-item.active .home-cat-img {
    transform: scale(1.08);
    opacity: 1;
    filter: none;
}

.home-cat-label {
    display: block;
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

.home-cat-item.active .home-cat-label {
    font-weight: 700;
}

.home-games-block {
    margin-top: 0;
    padding-bottom: 8px;
}

.home-games-banners {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 6px;
    width: 100%;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.home-games-banners--single {
    grid-template-columns: 1fr;
}

.home-games-banners .home-game-tile--banner-full {
    grid-column: 1 / -1;
}

.home-games-banners[hidden] {
    display: none;
    margin-bottom: 0;
}

.home-games-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 6px;
    width: 100%;
}

.home-games-grid--fishing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 8px;
}

.home-games-grid--fishing .home-game-tile:not(.home-game-tile--banner) .home-game-cover {
    width: 100%;
}

.home-games-grid--fishing .home-game-cover--image {
    border-radius: 12px;
    overflow: hidden;
}

.home-games-grid--fishing .home-game-cover--image img {
    border-radius: 12px;
}

.home-games-grid--fishing .home-game-name {
    display: none;
}

.home-game-tile {
    border: none;
    background: transparent;
    padding: 0;
    font: inherit;
    text-align: center;
    cursor: pointer;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-game-tile:active {
    transform: scale(0.97);
}

.home-game-tile:not(.home-game-tile--banner) .home-game-cover {
    width: 90%;
    max-width: 100%;
}

.home-game-cover {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(145deg, #eceff1, #cfd8dc);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.home-game-cover--image {
    aspect-ratio: 1;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-game-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-game-cover--image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.home-game-tile--banner {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
}

.home-game-cover--banner {
    aspect-ratio: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
}

.home-game-cover--banner img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
}

.home-game-tile--banner .home-game-name {
    display: none;
}

.home-game-cover-letter {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.home-game-cover--realbet { background: linear-gradient(145deg, #ef5350, #c62828); }
.home-game-cover--sport { background: linear-gradient(145deg, #66bb6a, #2e7d32); }
.home-game-cover--concise { background: linear-gradient(145deg, #42a5f5, #1565c0); }
.home-game-cover--joker { background: linear-gradient(145deg, #ffa726, #ef6c00); }
.home-game-cover--lottery { background: linear-gradient(145deg, #ec407a, #ad1457); }
.home-game-cover--fishing { background: linear-gradient(145deg, #26c6da, #00838f); }

.home-game-name {
    display: block;
    width: 100%;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #333;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-games-empty {
    grid-column: 1 / -1;
    padding: 32px 12px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

.home-partner-banner {
    width: 100%;
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.home-partner-banner[hidden] {
    display: none;
}

.home-partner-banner__img {
    display: block;
    width: 82%;
    max-width: 300px;
    height: auto;
}

.home-k3-live-room {
    margin-bottom: 10px;
    width: 100%;
}

.home-k3-live-room[hidden] {
    display: none;
}

.home-k3-panel {
    margin-top: 10px;
    width: 100%;
}

.home-k3-panel[hidden] {
    display: none;
}

.home-k3-card {
    display: block;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.home-k3-card-play {
    display: block;
    text-decoration: none;
    color: inherit;
}

.home-k3-card-play:active {
    opacity: 0.92;
}

.home-k3-card .hl-card-top {
    padding: 14px 12px 10px;
}

.home-k3-history-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    border: none;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    font-family: inherit;
    cursor: pointer;
}

.home-k3-history-toggle:active {
    background: #f3f3f3;
}

.home-k3-history-arrow {
    font-size: 11px;
    color: #999;
    transition: transform 0.2s ease;
}

.home-k3-history-toggle.is-open .home-k3-history-arrow {
    transform: rotate(180deg);
}

.home-k3-history-collapse[hidden] {
    display: none;
}

.home-k3-history-collapse .hl-table-wrap {
    padding: 0 8px 10px;
}

.home-k3-card--live {
    margin-top: 10px;
}

/* ===== 直播间入口横幅（浅色 · 平台红橙风格） ===== */
.home-k3-live-banner {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f0;
}

.home-k3-live-banner__link {
    display: block;
    position: relative;
    text-decoration: none;
    color: var(--text-dark);
    overflow: hidden;
}

.home-k3-live-banner__link:active {
    opacity: 0.94;
}

.home-k3-live-banner__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(125deg, rgba(230, 57, 53, 0.07) 0%, transparent 45%),
        linear-gradient(300deg, rgba(255, 152, 0, 0.08) 0%, transparent 40%),
        linear-gradient(180deg, #fff 0%, #fffaf8 100%);
    pointer-events: none;
}

.home-k3-live-banner__bg::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #ef5350, var(--primary-red));
    border-radius: 14px 0 0 14px;
}

.home-k3-live-banner__glow {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 55%;
    height: 70%;
    background: radial-gradient(circle, rgba(230, 57, 53, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.home-k3-live-banner__inner {
    position: relative;
    z-index: 1;
    padding: 14px 14px 12px;
}

.home-k3-live-banner__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.home-k3-live-banner__live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px 3px 7px;
    border-radius: 999px;
    background: var(--primary-red);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(230, 57, 53, 0.28);
}

.home-k3-live-banner__live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: home-k3-live-pulse 1.4s ease-in-out infinite;
}

@keyframes home-k3-live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.85); }
}

.home-k3-live-banner__online {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #888;
    min-width: 0;
    flex: 1;
}

.home-k3-live-banner__online svg {
    flex-shrink: 0;
    color: #aaa;
}

.home-k3-live-online {
    font-weight: 700;
    color: var(--primary-red);
}

.home-k3-live-banner__timer {
    margin-left: auto;
    flex-shrink: 0;
    width: 52px;
    padding: 6px 8px 7px;
    border-radius: 10px;
    border: 1px solid rgba(230, 57, 53, 0.42);
    background: linear-gradient(180deg, #fff 0%, #fff7f7 100%);
    box-shadow: 0 1px 4px rgba(230, 57, 53, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.home-k3-live-banner__timer::before {
    content: '';
    position: static;
    inset: auto;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(90deg, var(--primary-red) calc(var(--progress, 0) * 1%), #fdecea 0);
    order: 2;
    flex-shrink: 0;
}

.home-k3-live-banner__timer .hl-timer-text {
    order: 1;
    color: var(--primary-red);
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.home-k3-live-banner__cta-row {
    display: flex;
    justify-content: center;
}

.home-k3-live-banner__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--primary-red);
    background: transparent;
    color: var(--primary-red);
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
}

.home-k3-live-banner__cta-live {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    width: 18px;
    height: 14px;
    flex-shrink: 0;
}

.home-k3-live-banner__cta-bar {
    display: block;
    width: 3px;
    border-radius: 2px;
    background: var(--primary-red);
    animation: home-k3-live-bar-bounce 0.9s ease-in-out infinite;
}

.home-k3-live-banner__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.home-k3-live-banner__room {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.home-k3-live-banner__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(230, 57, 53, 0.35);
    box-shadow: 0 2px 8px rgba(230, 57, 53, 0.12);
}

.home-k3-live-banner__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-k3-live-banner__meta {
    min-width: 0;
}

.home-k3-live-banner__name {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    color: #1a1d26;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-k3-live-banner__tagline {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.35;
    color: #999;
}

.home-k3-live-banner__draw {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.home-k3-live-banner__dice {
    display: flex;
    gap: 6px;
}

.home-k3-live-banner__dice .k3-die--home {
    --die-size: 30px;
    --pip-size: 6px;
}

.home-k3-live-banner__issue {
    font-size: 11px;
    color: #9aa3b2;
    white-space: nowrap;
}

.home-k3-live-banner__issue .home-k3-issue {
    color: #666;
    font-weight: 600;
}

.home-k3-live-banner__cta-bar:nth-child(1) {
    height: 7px;
    animation-delay: 0s;
}

.home-k3-live-banner__cta-bar:nth-child(2) {
    height: 12px;
    animation-delay: 0.15s;
}

.home-k3-live-banner__cta-bar:nth-child(3) {
    height: 9px;
    animation-delay: 0.3s;
}

@keyframes home-k3-live-bar-bounce {
    0%, 100% { transform: scaleY(0.45); opacity: 0.65; }
    50% { transform: scaleY(1); opacity: 1; }
}
