/* Current Affairs hub — Knowledge Quest landing (matches design mockup) */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Montserrat:wght@400;500;600;700&display=swap');

.page-current-affairs {
    /* Design tokens — Knowledge Quest mockup */
    --ca-bg: #0a0e1a;
    --ca-panel: linear-gradient(180deg, rgba(12, 18, 42, 0.96) 0%, rgba(6, 10, 26, 0.98) 100%);
    --ca-font-serif: 'Cinzel', Georgia, serif;
    --ca-font-sans: 'Montserrat', system-ui, sans-serif;
    --ca-gold: #ffd700;
    --ca-gold-deep: #e7a500;
    --ca-gold-mid: #fdb931;
    --ca-gold-light: #ffe566;
    --ca-gold-highlight: #fff8dc;
    --ca-gold-border: rgba(255, 215, 0, 0.6);
    --ca-gold-glow: rgba(255, 215, 0, 0.5);
    --ca-purple: #7c3aed;
    --ca-purple-dark: #2e1065;
    --ca-purple-glow: rgba(124, 58, 237, 0.55);
    --ca-purple-badge: #300d4f;
    --ca-orange-glow: rgba(249, 115, 22, 0.22);
    --ca-text: #ffffff;
    --ca-text-soft: rgba(255, 255, 255, 0.92);
    --ca-text-muted: #9fb0cc;
    --ca-text-dim: #8b9bb8;
    --ca-layout-width: 95%;
    background:
        radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.14), transparent),
        radial-gradient(1px 1px at 28% 72%, rgba(255, 255, 255, 0.09), transparent),
        radial-gradient(1px 1px at 68% 28%, rgba(255, 255, 255, 0.11), transparent),
        radial-gradient(1px 1px at 88% 68%, rgba(255, 255, 255, 0.08), transparent),
        radial-gradient(ellipse 90% 55% at 50% -5%, rgba(88, 28, 135, 0.22) 0%, transparent 60%),
        var(--ca-bg);
    color: var(--ca-text-soft);
    min-height: 100vh;
    font-family: var(--ca-font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
}

/* ── Gold text: gradient + bevel + inner shadow + outer glow ── */
.page-current-affairs .ca-gold-text,
.page-current-affairs .ca-kq-brand__text,
.page-current-affairs .ca-hero-full__title-line,
.page-current-affairs .ca-hero-stat__num,
.page-current-affairs .ca-feature-card__title,
.page-current-affairs .ca-hub-panel__title,
.page-current-affairs .ca-hub-progress__title,
.page-current-affairs .ca-hub-rush__title,
.page-current-affairs .ca-hub-classic__title,
.page-current-affairs .ca-hub-mode__label,
.page-current-affairs .ca-hub-lb-xp {
    font-family: var(--ca-font-serif);
    font-weight: 700;
    background: linear-gradient(
        180deg,
        var(--ca-gold-highlight) 0%,
        var(--ca-gold-light) 20%,
        var(--ca-gold) 48%,
        var(--ca-gold-deep) 78%,
        #c9920a 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter:
        drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35))
        drop-shadow(0 -1px 0 rgba(0, 0, 0, 0.55))
        drop-shadow(0 0 14px var(--ca-gold-glow))
        drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45));
}

/* ── Purple button: dark base + violet glow + gold border + gradient overlay ── */
.page-current-affairs .ca-btn-purple-fx,
.page-current-affairs .ca-feature-card--daily .ca-feature-card__btn,
.page-current-affairs .ca-hub-classic__btn,
.page-current-affairs .ca-hub-modes__all,
.page-current-affairs .ca-hub-btn-play:not(.ca-hub-btn-play--banner),
.page-current-affairs .ca-hub-btn-challenge {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        linear-gradient(180deg, #6d28d9 0%, #5b21b6 35%, var(--ca-purple-dark) 100%);
    border: 1px solid var(--ca-gold-border);
    box-shadow:
        0 0 22px var(--ca-purple-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -3px 8px rgba(0, 0, 0, 0.35);
    color: #fff;
    font-family: var(--ca-font-sans);
    font-weight: 600;
}

.page-current-affairs .ca-btn-purple-fx:hover,
.page-current-affairs .ca-feature-card--daily .ca-feature-card__btn:hover,
.page-current-affairs .ca-hub-classic__btn:hover,
.page-current-affairs .ca-hub-modes__all:hover,
.page-current-affairs .ca-hub-btn-play:not(.ca-hub-btn-play--banner):hover,
.page-current-affairs .ca-hub-btn-challenge:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, transparent 40%),
        linear-gradient(180deg, #7c3aed 0%, #6d28d9 40%, #4c1d95 100%);
    box-shadow:
        0 0 32px rgba(168, 85, 247, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -3px 8px rgba(0, 0, 0, 0.35);
    color: #fff;
}

/* ── Gold-orange button: Rush Play Now, View Rewards ── */
.page-current-affairs .ca-btn-gold-fx,
.page-current-affairs .ca-hub-btn-gold {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 38%),
        linear-gradient(180deg, #fbbf24 0%, #f97316 42%, #c2410c 100%);
    border: 1px solid var(--ca-gold-border);
    box-shadow:
        0 0 20px rgba(249, 115, 22, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -3px 8px rgba(0, 0, 0, 0.28);
    color: #fff;
    font-family: var(--ca-font-sans);
    font-weight: 600;
    -webkit-text-fill-color: #fff;
    filter: none;
}

.page-current-affairs .ca-btn-gold-fx:hover,
.page-current-affairs .ca-hub-btn-gold:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 38%),
        linear-gradient(180deg, #fcd34d 0%, #fb923c 45%, #ea580c 100%);
    box-shadow:
        0 0 28px rgba(249, 115, 22, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -3px 8px rgba(0, 0, 0, 0.28);
    color: #fff;
}

/* ── Card double border: gold stroke + soft orange glow ── */
.page-current-affairs .ca-card-gold-border,
.page-current-affairs .ca-frame {
    border: 1px solid var(--ca-gold-border);
    outline: 1px solid rgba(255, 215, 0, 0.2);
    outline-offset: 3px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 215, 0, 0.12),
        inset 0 2px 10px rgba(255, 215, 0, 0.05),
        0 0 26px var(--ca-orange-glow),
        0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Shared typography */
.page-current-affairs .ca-type-heading {
    font-family: var(--ca-font-serif);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.page-current-affairs .ca-type-body {
    font-family: var(--ca-font-sans);
    font-weight: 500;
    color: var(--ca-text-soft);
}

.page-current-affairs .ca-type-caption {
    font-family: var(--ca-font-sans);
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--ca-text-muted);
}

.page-current-affairs .ca-type-label {
    font-family: var(--ca-font-sans);
    font-weight: 600;
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.page-current-affairs .ca-type-btn {
    font-family: var(--ca-font-sans);
    font-weight: 600;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.page-current-affairs .footer-section,
.page-current-affairs .mobile-bottom-nav {
    display: none !important;
}

/* ===== Knowledge Quest header ===== */
.ca-kq-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(3, 6, 16, 0.96);
    border-bottom: 1px solid var(--ca-gold-border);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    overflow: visible;
}

/* Keep header (and its dropdown) above hero/main siblings — .page-current-affairs > * sets z-index: 1 on all children */
.page-current-affairs > .ca-kq-header {
    z-index: 200;
}

/* Shared page width */
.ca-kq-header__inner,
.ca-hero-full__inner,
.ca-hub,
.ca-hub-bottom-bar__frame {
    width: var(--ca-layout-width);
    max-width: var(--ca-layout-width);
    margin-left: auto;
    margin-right: auto;
}

.ca-kq-header__inner {
    padding: 8px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ca-kq-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.ca-kq-brand__icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--ca-gold-glow));
}

.ca-kq-brand__text {
    font-size: 0.9375rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ca-kq-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--ca-gold-border);
    border-radius: 8px;
    cursor: pointer;
}

.ca-kq-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ca-gold);
    border-radius: 2px;
}

.ca-kq-nav {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    justify-content: center;
    flex-wrap: nowrap;
}

.ca-kq-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: var(--ca-font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ca-text-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.ca-kq-nav__link i { font-size: 0.75rem; opacity: 0.85; color: var(--ca-text-dim); }
.ca-kq-nav__link:hover { color: var(--ca-text); }

.ca-kq-nav__link.active {
    color: var(--ca-gold);
    font-weight: 600;
    position: relative;
}

.ca-kq-nav__link.active::before {
    content: '✦';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.42rem;
    color: #a855f7;
    text-shadow: 0 0 10px rgba(168, 85, 247, 1);
}

.ca-kq-nav__link.active::after {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #a855f7, transparent);
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.8);
}

.ca-kq-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ca-kq-user__bell {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--ca-gold-border);
    background: rgba(10, 16, 36, 0.85);
    color: var(--ca-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.ca-kq-user .header-notifications-dropdown {
    position: relative;
}

.ca-kq-user .header-notifications-btn {
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    border: 1px solid var(--ca-gold-border) !important;
    background: rgba(10, 16, 36, 0.85) !important;
    color: var(--ca-text-muted) !important;
    box-shadow: none !important;
}

.ca-kq-user .header-notifications-btn i {
    font-size: 0.9rem !important;
    color: var(--ca-text-muted) !important;
}

.ca-kq-user .header-notifications-btn:hover,
.ca-kq-user .header-notifications-btn:focus,
.ca-kq-user .header-notifications-btn.show {
    background: rgba(20, 30, 60, 0.95) !important;
    border-color: var(--ca-gold) !important;
    color: var(--ca-text) !important;
}

.ca-kq-user .header-notifications-badge {
    top: -3px;
    right: -3px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 0.55rem;
    line-height: 16px;
    border: 1px solid #050a18;
}

.ca-kq-user__badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #050a18;
}

.ca-kq-user__profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: 999px;
    border: 1px solid var(--ca-gold-border);
    background: rgba(10, 16, 36, 0.85);
    color: var(--ca-text);
    text-decoration: none;
}

button.ca-kq-user__profile {
    cursor: pointer;
    font: inherit;
}

.ca-kq-user__profile.dropdown-toggle::after { display: none; }

.ca-kq-user-dropdown {
    position: relative;
}

.ca-kq-user-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 200px;
    margin: 0;
    z-index: 10001;
    background: #0c1228;
    border: 1px solid var(--ca-gold-border);
}

.ca-kq-user-dropdown .dropdown-menu.show {
    display: block;
}

.ca-kq-user-dropdown .dropdown-item {
    color: var(--ca-text);
    font-family: var(--ca-font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 10px 14px;
}

.ca-kq-user-dropdown .dropdown-item:hover,
.ca-kq-user-dropdown .dropdown-item:focus {
    background: rgba(201, 162, 39, 0.12);
    color: var(--ca-gold-light);
}

.ca-kq-user-dropdown .dropdown-item.text-danger {
    color: #f87171;
}

.ca-kq-user-dropdown .dropdown-item.text-danger:hover,
.ca-kq-user-dropdown .dropdown-item.text-danger:focus {
    background: rgba(248, 113, 113, 0.12);
    color: #fca5a5;
}

.ca-kq-user__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--ca-gold-border);
    background: linear-gradient(135deg, #4c1d95, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ca-font-sans);
    font-size: 0.8rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.ca-kq-user__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
    text-align: left;
}

.ca-kq-user__meta strong {
    font-family: var(--ca-font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ca-text);
}

.ca-kq-user__meta small {
    font-family: var(--ca-font-sans);
    font-size: 0.6875rem;
    color: var(--ca-text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ca-kq-sword { color: var(--ca-gold); font-size: 0.625rem; }

.ca-kq-user__caret {
    font-size: 0.55rem;
    color: var(--ca-text-dim);
    margin-left: 2px;
}

/* ===== Hub container ===== */
.ca-hub {
    padding: 0 0 24px;
}

/* ===== Hero ===== */
.ca-hero-full {
    position: relative;
    min-height: 500px;
    overflow: visible;
    background: #030610;
}

.ca-hero-full__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 0;
}

.ca-hero-full__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.ca-hero-full__overlay {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(3, 6, 16, 0.92) 0%, rgba(3, 6, 16, 0.55) 42%, rgba(3, 6, 16, 0.08) 68%, rgba(3, 6, 16, 0.35) 100%),
        linear-gradient(180deg, rgba(3, 6, 16, 0.05) 0%, rgba(3, 6, 16, 0.65) 100%);
}

/* Floating dots — full-width across the hero banner */
.ca-hero-full__particles {
    position: absolute;
    inset: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.ca-hero-dot {
    --ca-dot-left: 50%;
    --ca-dot-top: 40%;
    --ca-dot-dur: 7s;
    --ca-dot-delay: 0s;
    position: absolute;
    left: var(--ca-dot-left);
    top: var(--ca-dot-top);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0.5) 45%, transparent 72%);
    box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.35);
    animation: ca-hero-dot-float var(--ca-dot-dur) ease-in-out infinite;
    animation-delay: var(--ca-dot-delay);
    opacity: 0;
}

.ca-hero-dot--sm {
    width: 3px;
    height: 3px;
}

.ca-hero-dot--lg {
    width: 7px;
    height: 7px;
    box-shadow: 0 0 12px 3px rgba(255, 255, 255, 0.4);
}

.ca-hero-dot--purple {
    background: radial-gradient(circle, #e9d5ff 0%, rgba(168, 85, 247, 0.65) 50%, transparent 75%);
    box-shadow: 0 0 10px 2px rgba(168, 85, 247, 0.55);
}

.ca-hero-dot--gold {
    background: radial-gradient(circle, #fff8dc 0%, rgba(255, 215, 0, 0.55) 50%, transparent 75%);
    box-shadow: 0 0 10px 2px rgba(255, 215, 0, 0.45);
}

/* 24 dots — spread edge to edge, multiple vertical bands */
.ca-hero-full__particles .ca-hero-dot:nth-child(24n+1)  { --ca-dot-left: 3%;  --ca-dot-top: 22%; --ca-dot-dur: 6.2s; --ca-dot-delay: 0s; }
.ca-hero-full__particles .ca-hero-dot:nth-child(24n+2)  { --ca-dot-left: 11%; --ca-dot-top: 48%; --ca-dot-dur: 7.4s; --ca-dot-delay: 0.35s; }
.ca-hero-full__particles .ca-hero-dot:nth-child(24n+3)  { --ca-dot-left: 19%; --ca-dot-top: 30%; --ca-dot-dur: 5.8s; --ca-dot-delay: 0.8s; }
.ca-hero-full__particles .ca-hero-dot:nth-child(24n+4)  { --ca-dot-left: 27%; --ca-dot-top: 55%; --ca-dot-dur: 8.1s; --ca-dot-delay: 1.1s; }
.ca-hero-full__particles .ca-hero-dot:nth-child(24n+5)  { --ca-dot-left: 35%; --ca-dot-top: 18%; --ca-dot-dur: 6.6s; --ca-dot-delay: 0.2s; }
.ca-hero-full__particles .ca-hero-dot:nth-child(24n+6)  { --ca-dot-left: 43%; --ca-dot-top: 42%; --ca-dot-dur: 7.8s; --ca-dot-delay: 1.5s; }
.ca-hero-full__particles .ca-hero-dot:nth-child(24n+7)  { --ca-dot-left: 51%; --ca-dot-top: 26%; --ca-dot-dur: 6s;   --ca-dot-delay: 1.9s; }
.ca-hero-full__particles .ca-hero-dot:nth-child(24n+8)  { --ca-dot-left: 59%; --ca-dot-top: 50%; --ca-dot-dur: 5.5s; --ca-dot-delay: 0.65s; }
.ca-hero-full__particles .ca-hero-dot:nth-child(24n+9)  { --ca-dot-left: 67%; --ca-dot-top: 34%; --ca-dot-dur: 8.4s; --ca-dot-delay: 1s; }
.ca-hero-full__particles .ca-hero-dot:nth-child(24n+10) { --ca-dot-left: 75%; --ca-dot-top: 58%; --ca-dot-dur: 6.9s; --ca-dot-delay: 2.2s; }
.ca-hero-full__particles .ca-hero-dot:nth-child(24n+11) { --ca-dot-left: 83%; --ca-dot-top: 24%; --ca-dot-dur: 7.2s; --ca-dot-delay: 1.7s; }
.ca-hero-full__particles .ca-hero-dot:nth-child(24n+12) { --ca-dot-left: 91%; --ca-dot-top: 46%; --ca-dot-dur: 5.2s; --ca-dot-delay: 0.45s; }
.ca-hero-full__particles .ca-hero-dot:nth-child(24n+13) { --ca-dot-left: 7%;  --ca-dot-top: 62%; --ca-dot-dur: 7s;   --ca-dot-delay: 2.6s; animation-name: ca-hero-dot-float-alt; }
.ca-hero-full__particles .ca-hero-dot:nth-child(24n+14) { --ca-dot-left: 15%; --ca-dot-top: 36%; --ca-dot-dur: 6.4s; --ca-dot-delay: 3s;   animation-name: ca-hero-dot-float-alt; }
.ca-hero-full__particles .ca-hero-dot:nth-child(24n+15) { --ca-dot-left: 23%; --ca-dot-top: 14%; --ca-dot-dur: 7.6s; --ca-dot-delay: 0.55s; animation-name: ca-hero-dot-float-alt; }
.ca-hero-full__particles .ca-hero-dot:nth-child(24n+16) { --ca-dot-left: 31%; --ca-dot-top: 68%; --ca-dot-dur: 5.9s; --ca-dot-delay: 1.3s; animation-name: ca-hero-dot-float-alt; }
.ca-hero-full__particles .ca-hero-dot:nth-child(24n+17) { --ca-dot-left: 39%; --ca-dot-top: 38%; --ca-dot-dur: 8.2s; --ca-dot-delay: 2.1s; animation-name: ca-hero-dot-float-alt; }
.ca-hero-full__particles .ca-hero-dot:nth-child(24n+18) { --ca-dot-left: 47%; --ca-dot-top: 16%; --ca-dot-dur: 6.1s; --ca-dot-delay: 0.9s; animation-name: ca-hero-dot-float-alt; }
.ca-hero-full__particles .ca-hero-dot:nth-child(24n+19) { --ca-dot-left: 55%; --ca-dot-top: 64%; --ca-dot-dur: 7.3s; --ca-dot-delay: 1.4s; animation-name: ca-hero-dot-float-alt; }
.ca-hero-full__particles .ca-hero-dot:nth-child(24n+20) { --ca-dot-left: 63%; --ca-dot-top: 20%; --ca-dot-dur: 5.6s; --ca-dot-delay: 2.5s; animation-name: ca-hero-dot-float-alt; }
.ca-hero-full__particles .ca-hero-dot:nth-child(24n+21) { --ca-dot-left: 71%; --ca-dot-top: 44%; --ca-dot-dur: 6.8s; --ca-dot-delay: 0.3s; animation-name: ca-hero-dot-float-alt; }
.ca-hero-full__particles .ca-hero-dot:nth-child(24n+22) { --ca-dot-left: 79%; --ca-dot-top: 32%; --ca-dot-dur: 7.9s; --ca-dot-delay: 1.8s; animation-name: ca-hero-dot-float-alt; }
.ca-hero-full__particles .ca-hero-dot:nth-child(24n+23) { --ca-dot-left: 87%; --ca-dot-top: 56%; --ca-dot-dur: 6.3s; --ca-dot-delay: 2.9s; animation-name: ca-hero-dot-float-alt; }
.ca-hero-full__particles .ca-hero-dot:nth-child(24n)    { --ca-dot-left: 95%; --ca-dot-top: 28%; --ca-dot-dur: 5.4s; --ca-dot-delay: 1.6s; animation-name: ca-hero-dot-float-alt; }

@keyframes ca-hero-dot-float {
    0% {
        transform: translate(0, 0) scale(0.6);
        opacity: 0;
    }
    12% {
        opacity: 0.85;
    }
    50% {
        transform: translate(12px, -32px) scale(1.1);
        opacity: 1;
    }
    88% {
        opacity: 0.45;
    }
    100% {
        transform: translate(-8px, -58px) scale(0.5);
        opacity: 0;
    }
}

@keyframes ca-hero-dot-float-alt {
    0% {
        transform: translate(0, 0) scale(0.55);
        opacity: 0;
    }
    14% {
        opacity: 0.8;
    }
    50% {
        transform: translate(-14px, -30px) scale(1.05);
        opacity: 1;
    }
    86% {
        opacity: 0.4;
    }
    100% {
        transform: translate(10px, -54px) scale(0.45);
        opacity: 0;
    }
}

.ca-hero-full__character {
    position: absolute;
    right: 1%;
    top: 12px;
    bottom: 0;
    width: min(38%, 440px);
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.ca-hero-full__character img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    filter: drop-shadow(0 16px 48px rgba(124, 58, 237, 0.5));
}

.ca-hero-full__inner {
    position: relative;
    z-index: 3;
    padding: 48px 24px 80px;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.ca-hero-full__content { max-width: 520px; }

/* Banner */
.ca-hero-full__banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 9px 20px;
    background: linear-gradient(180deg, #3a0d6b 0%, var(--ca-purple-badge) 100%);
    border: 1px solid var(--ca-gold-border);
    border-radius: 2px;
    box-shadow: 0 0 16px rgba(124, 58, 237, 0.2);
    font-family: var(--ca-font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ca-gold);
    line-height: 1;
}

.ca-hero-full__banner-spark {
    font-size: 0.42rem;
    color: #a855f7;
    text-shadow: 0 0 6px rgba(168, 85, 247, 0.85);
    line-height: 1;
}

/* Title — two-line Cinzel Bold + gold effect */
.ca-hero-full__title {
    margin: 0 0 18px;
    font-size: clamp(3rem, 6.2vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ca-hero-full__title-line {
    display: block;
}

.ca-hero-full__sub {
    margin: 0 0 36px;
    font-family: var(--ca-font-sans);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--ca-text);
    line-height: 1.7;
    max-width: 480px;
}

/* Stats row */
.ca-hero-full__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 22px 40px;
}

.ca-hero-stat {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ca-hero-stat__icon {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid var(--ca-gold-border);
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ca-gold);
    font-size: 1.2rem;
    box-shadow:
        0 0 12px var(--ca-gold-glow),
        inset 0 0 8px rgba(0, 0, 0, 0.4);
}

.ca-hero-stat__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ca-hero-stat__num {
    font-size: 1.875rem;
    line-height: 1;
    letter-spacing: 0.02em;
}

.ca-hero-stat__label {
    font-family: var(--ca-font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ca-text-soft);
    line-height: 1.25;
}

/* ===== Feature cards — horizontal icon-left layout (mockup row 2) ===== */
.ca-hub-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: -48px 0 18px;
    position: relative;
    z-index: 10;
}

.ca-feature-card {
    --fc-inner: rgba(124, 58, 237, 0.35);
    --fc-outer-glow: rgba(124, 58, 237, 0.28);
    position: relative;
    text-decoration: none;
    color: inherit;
    display: grid;
    grid-template-columns: 44% 1fr;
    align-items: stretch;
    gap: 0;
    min-height: 156px;
    padding: 12px 10px 12px 8px;
    border-radius: 8px;
    border: 1px solid var(--ca-gold-border);
    outline: 1px solid rgba(255, 215, 0, 0.18);
    outline-offset: 2px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow:
        inset 0 0 0 1px var(--fc-inner),
        0 0 22px var(--fc-outer-glow),
        0 0 18px var(--ca-orange-glow),
        0 6px 24px rgba(0, 0, 0, 0.45);
}

.ca-feature-card::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--ca-gold);
    border-left: 2px solid var(--ca-gold);
    pointer-events: none;
    z-index: 3;
}

.ca-feature-card::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--ca-gold);
    border-right: 2px solid var(--ca-gold);
    pointer-events: none;
    z-index: 3;
}

.ca-feature-card__corner {
    position: absolute;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 3;
}

.ca-feature-card__corner--tr {
    top: 5px;
    right: 5px;
    border-top: 2px solid var(--ca-gold);
    border-right: 2px solid var(--ca-gold);
}

.ca-feature-card__corner--bl {
    bottom: 5px;
    left: 5px;
    border-bottom: 2px solid var(--ca-gold);
    border-left: 2px solid var(--ca-gold);
}

.ca-feature-card:hover {
    transform: translateY(-4px) scale(1.01);
    color: inherit;
}

.ca-feature-card__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.65;
    z-index: 0;
}

.ca-feature-card--games {
    --fc-inner: rgba(168, 85, 247, 0.55);
    --fc-outer-glow: rgba(124, 58, 237, 0.45);
    background: linear-gradient(135deg, rgba(76, 29, 149, 0.92) 0%, rgba(20, 10, 48, 0.98) 55%, rgba(8, 12, 28, 0.99) 100%);
    border: 2px solid rgba(255, 215, 0, 0.7);
    outline: 1px solid rgba(255, 215, 0, 0.35);
    outline-offset: 3px;
    box-shadow:
        inset 0 0 0 1px rgba(168, 85, 247, 0.55),
        0 0 32px rgba(124, 58, 237, 0.45),
        0 0 24px var(--ca-orange-glow),
        0 8px 28px rgba(0, 0, 0, 0.5);
}

.ca-feature-card--games .ca-feature-card__glow {
    background: radial-gradient(circle at 22% 50%, rgba(168, 85, 247, 0.45) 0%, transparent 58%);
}

.ca-feature-card--daily {
    --fc-inner: rgba(99, 102, 241, 0.28);
    --fc-outer-glow: rgba(67, 56, 202, 0.22);
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.95) 0%, rgba(8, 12, 28, 0.99) 100%);
}

.ca-feature-card--daily .ca-feature-card__glow {
    background: radial-gradient(circle at 22% 50%, rgba(99, 102, 241, 0.32) 0%, transparent 55%);
}

.ca-feature-card--deca {
    --fc-inner: rgba(34, 197, 94, 0.28);
    --fc-outer-glow: rgba(22, 163, 74, 0.22);
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.88) 0%, rgba(8, 12, 28, 0.99) 100%);
}

.ca-feature-card--deca .ca-feature-card__glow {
    background: radial-gradient(circle at 22% 50%, rgba(34, 197, 94, 0.28) 0%, transparent 55%);
}

.ca-feature-card__img--knockout {
    mix-blend-mode: lighten;
}

.ca-feature-card--board {
    --fc-inner: rgba(217, 119, 6, 0.28);
    --fc-outer-glow: rgba(180, 83, 9, 0.22);
    background: linear-gradient(135deg, rgba(92, 45, 10, 0.88) 0%, rgba(8, 12, 28, 0.99) 100%);
}

.ca-feature-card--board .ca-feature-card__glow {
    background: radial-gradient(circle at 22% 50%, rgba(217, 119, 6, 0.28) 0%, transparent 55%);
}

.ca-feature-card__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    position: relative;
    z-index: 1;
    min-height: 128px;
}

.ca-feature-card__img {
    width: 100%;
    max-width: 118px;
    height: auto;
    object-fit: contain;
    margin: 0;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
}

.ca-feature-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 8px 8px 8px 4px;
    position: relative;
    z-index: 1;
    min-height: 128px;
}

.ca-feature-card__title {
    margin: 0 0 8px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.3;
    text-align: left;
}

.ca-feature-card__text {
    margin: 0 0 12px;
    font-family: var(--ca-font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--ca-text-soft);
    line-height: 1.5;
    flex: 1;
    text-align: left;
}

.ca-feature-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: auto;
    padding: 9px 8px;
    border-radius: 5px;
    font-family: var(--ca-font-sans);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ca-feature-card__btn i {
    font-size: 0.55rem;
}

.ca-feature-card--games .ca-feature-card__btn {
    background: linear-gradient(180deg, #448aff 0%, #1d4ed8 100%);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.ca-feature-card--deca .ca-feature-card__btn {
    background: linear-gradient(180deg, #22c55e 0%, #166534 100%);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ca-feature-card--board .ca-feature-card__btn {
    background: linear-gradient(180deg, #d97706 0%, #78350f 100%);
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* ===== Ornate frame panels ===== */
.ca-frame {
    position: relative;
    border-radius: 12px;
    background: var(--ca-panel);
}

.ca-frame::before,
.ca-frame::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid var(--ca-gold);
    pointer-events: none;
    z-index: 2;
}

.ca-frame::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
    border-radius: 4px 0 0 0;
}

.ca-frame::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 4px 0;
}

.ca-frame .ca-frame__corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid var(--ca-gold);
    pointer-events: none;
    z-index: 2;
}

.ca-frame .ca-frame__corner--tr {
    top: -1px;
    right: -1px;
    border-left: none;
    border-bottom: none;
    border-radius: 0 4px 0 0;
}

.ca-frame .ca-frame__corner--bl {
    bottom: -1px;
    left: -1px;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 4px;
}

/* ===== 3-column stacked grid (mockup layout) ===== */
.ca-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 1fr auto;
    gap: 14px;
    align-items: stretch;
}

.ca-hub-col {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
    gap: 14px;
    min-width: 0;
}

@supports not (grid-template-rows: subgrid) {
    .ca-hub-grid {
        grid-template-rows: none;
    }

    .ca-hub-col {
        display: flex;
        flex-direction: column;
        gap: 14px;
        grid-row: auto;
    }

    .ca-hub-col > .ca-hub-panel {
        flex: 1 1 auto;
        min-height: 280px;
    }
}

.ca-hub-panel,
.ca-hub-progress__panel {
    padding: 16px 14px 14px;
}

.ca-hub-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}

.ca-hub-panel__title {
    margin: 0;
    font-size: 0.8125rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ca-hub-panel__sub {
    margin: 6px 0 0;
    font-family: var(--ca-font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ca-text-muted);
}

.ca-hub-panel__link {
    font-family: var(--ca-font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ca-gold);
    text-decoration: none;
    white-space: nowrap;
    padding-top: 2px;
    -webkit-text-fill-color: var(--ca-gold);
    filter: none;
    background: none;
}

.ca-hub-panel__link:hover { color: var(--ca-gold-light); }

.ca-hub-panel__head--center {
    justify-content: center;
    text-align: center;
}

.ca-hub-panel--daily .ca-hub-panel__sub {
    color: var(--ca-text-soft);
}

/* ===== Daily games ===== */
.ca-hub-daily-row {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 10px;
    align-items: stretch;
}

.ca-hub-rush {
    text-decoration: none;
    color: inherit;
    padding: 20px 18px;
    border-radius: 20px;
    border: 1px solid rgba(197, 157, 95, 0.55);
    outline: 1px solid rgba(197, 157, 95, 0.18);
    outline-offset: 2px;
    background:
        radial-gradient(ellipse 75% 85% at 16% 50%, rgba(249, 115, 22, 0.07) 0%, transparent 62%),
        linear-gradient(165deg, #1a0f0f 0%, #120a0a 50%, #0a0e1a 100%);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    min-height: 172px;
    box-shadow:
        inset 0 0 0 1px rgba(197, 157, 95, 0.08),
        0 0 18px rgba(249, 115, 22, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ca-hub-rush:hover {
    color: inherit;
    transform: translateY(-2px);
    box-shadow:
        inset 0 0 0 1px rgba(197, 157, 95, 0.12),
        0 0 26px rgba(249, 115, 22, 0.18);
}

.ca-hub-rush__visual {
    position: relative;
    flex-shrink: 0;
    width: 118px;
    height: 118px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ca-hub-rush__visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 96px;
    height: 96px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.28) 0%, rgba(249, 115, 22, 0.1) 42%, transparent 72%);
    pointer-events: none;
    z-index: 0;
}

/* Decorative circle behind the icon */
.ca-hub-rush__halo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 112px;
    height: 112px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(197, 157, 95, 0.28);
    background: transparent;
    pointer-events: none;
    z-index: 1;
}

.ca-hub-rush__icon-wrap {
    position: relative;
    z-index: 2;
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

.ca-hub-rush__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: none;
    outline: none;
    background: transparent;
    mix-blend-mode: lighten;
    filter: drop-shadow(0 0 14px rgba(255, 140, 0, 0.45));
}

.ca-hub-rush__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 0;
}

.ca-hub-rush__title {
    margin: 0 0 5px;
    font-size: 1.0625rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.2;
}

.ca-hub-rush__desc {
    margin: 0 0 12px;
    font-family: var(--ca-font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    color: #fff;
}

.ca-hub-stats-bar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
    font-family: var(--ca-font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--ca-gold);
    align-self: flex-start;
}

.ca-hub-stats-bar--rush {
    background: rgba(18, 10, 10, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ca-hub-stats-bar--classic {
    background: rgba(46, 16, 101, 0.65);
    border: 1px solid rgba(124, 58, 237, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    width: 100%;
    justify-content: center;
    align-self: center;
}

.ca-hub-stats-bar__item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    color: var(--ca-gold);
}

.ca-hub-stats-bar__item i {
    font-size: 0.625rem;
    color: var(--ca-gold);
}

.ca-hub-stats-bar__sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 215, 0, 0.4);
    flex-shrink: 0;
}

.ca-hub-stats-bar--classic .ca-hub-stats-bar__sep {
    background: rgba(167, 139, 250, 0.45);
}

.ca-hub-rush__btn {
    margin-top: auto;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    font-family: var(--ca-font-serif);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    display: block;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 32%),
        linear-gradient(180deg, #6b2f1a 0%, #4a1c0e 42%, #2d1208 78%, #1a0c06 100%);
    border: 1px solid rgba(255, 215, 0, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -2px 6px rgba(0, 0, 0, 0.35);
    color: #fff;
    -webkit-text-fill-color: #fff;
    filter: none;
}

.ca-hub-rush:hover .ca-hub-rush__btn {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 32%),
        linear-gradient(180deg, #7c3a1a 0%, #5c2410 42%, #351408 78%, #1f0a04 100%);
    border-color: rgba(255, 215, 0, 0.65);
}

.ca-hub-classic {
    text-decoration: none;
    color: inherit;
    padding: 14px 12px;
    border-radius: 12px;
    border: 2px solid rgba(124, 58, 237, 0.5);
    outline: 1px solid rgba(167, 139, 250, 0.22);
    outline-offset: 2px;
    background:
        radial-gradient(ellipse 90% 70% at 50% 0%, rgba(124, 58, 237, 0.18) 0%, transparent 60%),
        linear-gradient(180deg, rgba(46, 16, 101, 0.85) 0%, rgba(6, 10, 28, 0.98) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 168px;
    box-shadow:
        inset 0 0 0 1px rgba(124, 58, 237, 0.15),
        0 0 22px rgba(124, 58, 237, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ca-hub-classic:hover {
    color: inherit;
    transform: translateY(-2px);
    box-shadow:
        inset 0 0 0 1px rgba(124, 58, 237, 0.22),
        0 0 30px rgba(124, 58, 237, 0.28);
}

.ca-hub-classic__img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 18px rgba(124, 58, 237, 0.55));
}

.ca-hub-classic__body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.ca-hub-classic__title {
    margin: 0 0 6px;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.15;
}

.ca-hub-classic__desc {
    margin: 0 0 10px;
    font-family: var(--ca-font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--ca-text-soft);
    max-width: 100%;
}

.ca-hub-classic__btn {
    margin-top: auto;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    font-family: var(--ca-font-serif);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ===== Special modes — circular icon grid ===== */
.ca-hub-modes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 10px;
}

.ca-hub-mode {
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: transform 0.15s ease;
}

.ca-hub-mode:hover { color: inherit; transform: translateY(-2px); }

.ca-hub-mode__tile {
    width: 64px;
    height: 64px;
    margin: 0 auto 8px;
    border-radius: 50%;
    border: 1px solid var(--ca-gold-border);
    background: radial-gradient(circle at 35% 30%, rgba(255, 215, 0, 0.12) 0%, rgba(76, 29, 149, 0.35) 45%, rgba(6, 10, 28, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 0 14px rgba(124, 58, 237, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.35);
}

.ca-hub-mode__tile img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 8px rgba(255, 215, 0, 0.25));
}

.ca-hub-mode__label {
    font-size: 0.625rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.25;
    display: block;
}

.ca-hub-modes__all {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 11px 16px;
    text-align: center;
    text-decoration: none;
    border-radius: 999px;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ===== Leaderboard ===== */
.ca-lb-panel__head {
    position: relative;
    text-align: center;
    margin-bottom: 14px;
    padding-top: 2px;
}

.ca-lb-panel__link {
    position: absolute;
    top: 2px;
    right: 0;
    padding-top: 0;
}

.ca-lb-panel__title {
    margin: 0 0 4px;
}

.ca-lb-panel__sub {
    margin: 0;
    color: var(--ca-text-muted);
}

.ca-hub-lb-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ca-hub-lb-item {
    display: grid;
    grid-template-columns: 36px 40px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ca-hub-lb-item:last-child { border-bottom: none; }

.ca-hub-lb-rank {
    font-family: var(--ca-font-serif);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ca-gold);
    text-align: center;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-text-fill-color: var(--ca-gold);
    filter: none;
    background: none;
}

.ca-hub-lb-rank--1,
.ca-hub-lb-rank--2,
.ca-hub-lb-rank--3 {
    width: 34px;
    height: 34px;
    font-size: 0;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.35));
}

.ca-hub-lb-rank--1 {
    background: linear-gradient(180deg, #ffe566 0%, #ffd700 42%, #c9920a 100%);
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.55);
}

.ca-hub-lb-rank--2 {
    background: linear-gradient(180deg, #f8fafc 0%, #cbd5e1 45%, #64748b 100%);
    box-shadow: 0 0 12px rgba(192, 192, 192, 0.4);
}

.ca-hub-lb-rank--3 {
    background: linear-gradient(180deg, #e8a86a 0%, #cd7f32 45%, #8b4513 100%);
    box-shadow: 0 0 12px rgba(205, 127, 50, 0.45);
}

.ca-hub-lb-rank--1::before { content: '1'; font-family: var(--ca-font-serif); font-size: 0.75rem; font-weight: 700; color: #1a1200; -webkit-text-fill-color: #1a1200; filter: none; }
.ca-hub-lb-rank--2::before { content: '2'; font-family: var(--ca-font-serif); font-size: 0.7rem; font-weight: 700; color: #1a1a1a; -webkit-text-fill-color: #1a1a1a; filter: none; }
.ca-hub-lb-rank--3::before { content: '3'; font-family: var(--ca-font-serif); font-size: 0.66rem; font-weight: 700; color: #1a0f00; -webkit-text-fill-color: #1a0f00; filter: none; }

.ca-hub-lb-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--ca-gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ca-font-sans);
    font-size: 0.625rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #4c1d95 0%, #2563eb 100%);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.25);
}

.ca-hub-lb-info {
    min-width: 0;
}

.ca-hub-lb-info strong {
    display: block;
    font-family: var(--ca-font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ca-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ca-hub-lb-info small {
    display: block;
    font-family: var(--ca-font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--ca-text-muted);
    margin-top: 2px;
}

.ca-hub-lb-xp-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.ca-hub-lb-xp {
    font-family: var(--ca-font-serif);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--ca-gold);
    -webkit-text-fill-color: var(--ca-gold);
    filter: drop-shadow(0 0 8px var(--ca-gold-glow));
    background: none;
}

.ca-hub-lb-xp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 6px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: linear-gradient(180deg, #8b5cf6 0%, #5b21b6 55%, #4c1d95 100%);
    font-family: var(--ca-font-sans);
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    -webkit-text-fill-color: #fff;
    filter: none;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.35);
}

/* ===== Progress panels (in columns) ===== */
.ca-hub-progress__title {
    margin: 0 0 4px;
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ca-hub-progress__sub {
    margin: 0 0 12px;
    font-family: var(--ca-font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ca-text-muted);
}

.ca-hub-challenge-task {
    font-family: var(--ca-font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ca-text-soft);
    margin: 0 0 10px;
}

/* ===== Daily challenge panel (horizontal mockup) ===== */
.ca-challenge-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.ca-challenge-panel__header > div:first-child {
    min-width: 0;
}

.ca-challenge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-family: var(--ca-font-sans);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--ca-text-muted);
    background: rgba(0, 0, 0, 0.35);
}

.ca-challenge-status--claimed {
    color: #86efac;
    border-color: rgba(134, 239, 172, 0.35);
    background: rgba(22, 101, 52, 0.25);
}

.ca-challenge-status--completed,
.ca-challenge-status--claimable {
    color: var(--ca-gold-light);
    border-color: rgba(255, 215, 0, 0.35);
    background: rgba(124, 58, 237, 0.18);
}

.ca-challenge-status--in_progress {
    color: #93c5fd;
    border-color: rgba(147, 197, 253, 0.35);
}

.ca-challenge-panel.is-claimable {
    box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.18), 0 0 24px rgba(124, 58, 237, 0.15);
}

.ca-challenge-play-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-family: var(--ca-font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ca-gold-light);
    text-decoration: none;
}

.ca-challenge-play-link:hover {
    color: var(--ca-gold);
}

.ca-challenge-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    align-self: flex-end;
}

.ca-challenge-feedback {
    margin: 10px 0 0;
    font-family: var(--ca-font-sans);
    font-size: 0.75rem;
    font-weight: 600;
}

.ca-challenge-feedback.is-success {
    color: #86efac;
}

.ca-challenge-feedback.is-error {
    color: #fca5a5;
}

.ca-hub-reward-slot.is-earned {
    position: relative;
    border-color: rgba(134, 239, 172, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 14px rgba(34, 197, 94, 0.18);
}

.ca-hub-reward-slot.is-earned::after {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 0.625rem;
    color: #86efac;
}

.ca-hub-btn-challenge--claim {
    border: none;
    cursor: pointer;
    animation: ca-challenge-pulse 2s ease-in-out infinite;
}

.ca-hub-btn-challenge--claim.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.ca-hub-btn-challenge--secondary {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--ca-text-soft) !important;
    box-shadow: none !important;
}

@keyframes ca-challenge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(124, 58, 237, 0); }
}

/* Challenges history page */
.ca-challenges-page {
    padding-top: 24px;
    padding-bottom: 32px;
}

.ca-challenges-page__head {
    margin-bottom: 20px;
}

.ca-challenges-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ca-text-muted);
    text-decoration: none;
}

.ca-challenges-back:hover {
    color: var(--ca-gold-light);
}

.ca-challenges-page__title {
    margin: 0 0 6px;
    font-family: var(--ca-font-serif);
    font-size: 1.75rem;
    color: var(--ca-gold);
}

.ca-challenges-page__sub {
    margin: 0;
    color: var(--ca-text-muted);
    font-size: 0.875rem;
}

.ca-challenges-wallet,
.ca-challenges-today,
.ca-challenges-history {
    margin-bottom: 16px;
    padding: 18px;
}

.ca-challenges-wallet__grid {
    margin-top: 12px;
    margin-bottom: 0;
}

.ca-challenges-today__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.ca-challenges-today__bar {
    margin-bottom: 14px;
}

.ca-challenges-today__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.ca-challenges-today__reward-note {
    font-size: 0.75rem;
    color: var(--ca-text-muted);
}

.ca-challenges-history__list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.ca-challenges-history__item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8125rem;
}

.ca-challenges-history__item:last-child {
    border-bottom: none;
}

.ca-challenges-history__date {
    font-weight: 600;
    color: var(--ca-text-soft);
}

.ca-challenges-history__progress {
    color: var(--ca-text-muted);
    font-variant-numeric: tabular-nums;
}

.ca-challenges-history__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ca-text-muted);
}

.ca-challenges-history__item--claimed .ca-challenges-history__badge {
    color: #86efac;
}

.ca-challenges-history__item--completed .ca-challenges-history__badge {
    color: var(--ca-gold-light);
}

.ca-challenge-panel__body {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 14px;
    align-items: stretch;
}

.ca-challenge-panel__task {
    min-width: 0;
}

.ca-challenge-task-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    height: 100%;
    padding: 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.45);
}

.ca-challenge-task-box__content {
    flex: 1;
    min-width: 0;
}

.ca-challenge-target {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--ca-gold-border);
    background: radial-gradient(circle, rgba(124, 58, 237, 0.45) 0%, rgba(6, 10, 28, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 14px rgba(124, 58, 237, 0.35);
}

.ca-challenge-target i {
    font-size: 1.05rem;
    color: var(--ca-gold);
    filter: drop-shadow(0 0 6px var(--ca-gold-glow));
}

.ca-challenge-panel__rewards {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ca-hub-rewards-label {
    margin: 0 0 10px;
    font-family: var(--ca-font-serif);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ca-gold);
}

.ca-challenge-bar-label {
    font-family: var(--ca-font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--ca-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    -webkit-text-fill-color: var(--ca-text-muted);
    filter: none;
    background: none;
}

.ca-challenge-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ca-hub-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ca-hub-bar--challenge { margin-bottom: 0; }

.ca-hub-bar__fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7c3aed, #6366f1, #448aff);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.45);
}

.ca-hub-reward-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.ca-hub-reward-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px 8px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 215, 0, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ca-hub-reward-slot--xp {
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 12px rgba(124, 58, 237, 0.15);
}

.ca-hub-reward-slot--gold {
    border-color: rgba(255, 215, 0, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 12px rgba(255, 215, 0, 0.1);
}

.ca-hub-reward-slot--gem {
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 12px rgba(56, 189, 248, 0.12);
}

.ca-hub-reward-slot__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ca-hub-reward-slot__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    padding: 0 6px;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    background: linear-gradient(180deg, #7c3aed 0%, #4c1d95 100%);
    font-family: var(--ca-font-serif);
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ca-gold);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
}

.ca-hub-reward-slot--gold .ca-hub-reward-slot__icon i {
    font-size: 1.35rem;
    color: var(--ca-gold);
    filter: drop-shadow(0 0 8px var(--ca-gold-glow));
}

.ca-hub-reward-slot--gem .ca-hub-reward-slot__icon i {
    font-size: 1.25rem;
    color: #38bdf8;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.55));
}

.ca-hub-reward-slot__val {
    font-family: var(--ca-font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ca-text);
    line-height: 1;
}

.ca-hub-btn-challenge {
    display: inline-block;
    margin-top: auto;
    align-self: flex-end;
    padding: 9px 16px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ca-hub-streak {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.ca-hub-streak__badge {
    position: relative;
    flex-shrink: 0;
    width: 92px;
    height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 18px rgba(249, 115, 22, 0.45));
}

.ca-hub-streak__badge::before {
    content: '';
    position: absolute;
    inset: 2px 8px;
    border: 2px solid rgba(255, 180, 60, 0.55);
    border-radius: 50% 50% 42% 42%;
    clip-path: polygon(50% 0%, 88% 12%, 100% 50%, 88% 88%, 50% 100%, 12% 88%, 0% 50%, 12% 12%);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.35);
    pointer-events: none;
}

.ca-hub-streak__flame-crest {
    position: relative;
    z-index: 1;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 2px solid rgba(255, 200, 100, 0.5);
    background: radial-gradient(circle, rgba(234, 88, 12, 0.55) 0%, rgba(67, 20, 7, 0.85) 68%, rgba(20, 8, 4, 0.95) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.05;
    box-shadow:
        inset 0 0 16px rgba(255, 215, 0, 0.12),
        0 0 16px rgba(249, 115, 22, 0.35);
}

.ca-hub-streak__count {
    font-family: var(--ca-font-serif);
    font-size: 1.625rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
}

.ca-hub-streak__count-label {
    font-family: var(--ca-font-sans);
    font-size: 0.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ca-hub-streak__content {
    flex: 1;
    min-width: 0;
}

.ca-hub-streak__title {
    margin: 0 0 4px;
    font-family: var(--ca-font-serif);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ca-gold);
}

.ca-hub-streak__sub {
    margin: 0 0 12px;
    font-family: var(--ca-font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ca-text-soft);
    line-height: 1.4;
}

.ca-hub-streak__track {
    position: relative;
    padding: 0 2px;
}

.ca-hub-streak__track-line {
    position: absolute;
    top: 13px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.45) 50%, rgba(255, 215, 0, 0.15) 100%);
    z-index: 0;
    pointer-events: none;
}

.ca-hub-streak__days {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 4px;
}

.ca-hub-streak__day-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.ca-hub-streak__day {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ca-hub-streak__day.is-done {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.55);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.25);
}

.ca-hub-streak__day.is-done::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.5625rem;
    color: var(--ca-gold);
}

.ca-hub-streak__day-label {
    font-family: var(--ca-font-sans);
    font-size: 0.5625rem;
    font-weight: 600;
    color: var(--ca-text-muted);
    line-height: 1;
}

/* ===== Level progress panel ===== */
.ca-level-panel__title {
    text-align: center;
    margin-bottom: 14px;
}

.ca-hub-level-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ca-hub-level-content {
    flex: 1;
    min-width: 0;
}

.ca-hub-level-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--ca-font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ca-text-soft);
    margin-bottom: 8px;
}

.ca-hub-level-xp {
    text-align: center;
    font-family: var(--ca-font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ca-gold);
    margin: 10px 0 0;
    -webkit-text-fill-color: var(--ca-gold);
    filter: none;
    background: none;
}

.ca-hub-bar--level {
    height: 16px;
}

.ca-hub-bar--level .ca-hub-bar__fill {
    background: linear-gradient(90deg, #6d28d9 0%, #9333ea 45%, #c084fc 100%);
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.6);
}

.ca-hub-level-shield {
    width: 96px;
    height: 96px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 24px rgba(124, 58, 237, 0.55));
}

.ca-hub-btn-level {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    font-family: var(--ca-font-serif);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
}

.ca-hub-btn-gold:hover { color: #fff; }

.ca-hub-link-sm {
    font-family: var(--ca-font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ca-gold);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.ca-hub-link-sm:hover { color: var(--ca-gold-light); }

/* ===== Bottom CTA banner ===== */
.ca-hub-bottom-bar {
    padding: 0 0 24px;
    background: transparent;
}

.ca-hub-bottom-bar__frame {
    position: relative;
    padding: 18px 24px;
    border: 1px solid var(--ca-gold-border);
    outline: 1px solid rgba(255, 215, 0, 0.18);
    outline-offset: 3px;
    background:
        radial-gradient(1px 1px at 14% 22%, rgba(255, 255, 255, 0.16), transparent),
        radial-gradient(1px 1px at 72% 68%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(ellipse 80% 120% at 50% 0%, rgba(88, 28, 135, 0.16) 0%, transparent 55%),
        linear-gradient(180deg, #050a24 0%, #060812 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 215, 0, 0.1),
        0 0 28px rgba(124, 58, 237, 0.12),
        0 8px 32px rgba(0, 0, 0, 0.45);
}

.ca-bottom-bar__corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid var(--ca-gold);
    pointer-events: none;
    z-index: 2;
}

.ca-bottom-bar__corner--tl { top: -1px; left: -1px; border-right: none; border-bottom: none; border-radius: 4px 0 0 0; }
.ca-bottom-bar__corner--tr { top: -1px; right: -1px; border-left: none; border-bottom: none; border-radius: 0 4px 0 0; }
.ca-bottom-bar__corner--bl { bottom: -1px; left: -1px; border-right: none; border-top: none; border-radius: 0 0 0 4px; }
.ca-bottom-bar__corner--br { bottom: -1px; right: -1px; border-left: none; border-top: none; border-radius: 0 0 4px 0; }

.ca-hub-bottom-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ca-hub-bottom-bar__message {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1 1 320px;
}

.ca-hub-bottom-bar__icon {
    position: relative;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ca-hub-bottom-bar__icon-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(255, 215, 0, 0.45));
}

.ca-hub-bottom-bar__icon-img:not([src]),
.ca-hub-bottom-bar__icon-img[src=""] {
    display: none;
}

.ca-hub-bottom-bar__icon-fallback {
    display: none;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.14) 0%, transparent 70%);
    color: var(--ca-gold);
    font-size: 1.35rem;
    filter: drop-shadow(0 0 10px var(--ca-gold-glow));
}

.ca-hub-bottom-bar__copy {
    min-width: 0;
}

.ca-hub-bottom-bar__headline {
    margin: 0 0 4px;
    font-family: var(--ca-font-serif);
    font-size: 1.125rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ca-gold);
    text-shadow: 0 0 12px var(--ca-gold-glow);
}

.ca-hub-bottom-bar__sub {
    margin: 0;
    font-family: var(--ca-font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--ca-text-soft);
}

.page-current-affairs .ca-hub-btn-play--banner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-shrink: 0;
    padding: 13px 34px 13px 28px;
    text-decoration: none;
    font-family: var(--ca-font-serif);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--ca-gold);
    -webkit-text-fill-color: var(--ca-gold);
    clip-path: polygon(14px 0%, calc(100% - 14px) 0%, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0% 50%);
    background:
        radial-gradient(ellipse 120% 80% at 50% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 55%),
        linear-gradient(180deg, #7c3aed 0%, #5b21b6 42%, #2e1065 100%);
    border: 1px solid var(--ca-gold-border);
    box-shadow:
        0 0 24px var(--ca-purple-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -3px 8px rgba(0, 0, 0, 0.35);
    filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.35));
}

.page-current-affairs .ca-hub-btn-play--banner:hover {
    color: var(--ca-gold-light);
    -webkit-text-fill-color: var(--ca-gold-light);
    background:
        radial-gradient(ellipse 120% 80% at 50% 0%, rgba(255, 255, 255, 0.16) 0%, transparent 55%),
        linear-gradient(180deg, #8b5cf6 0%, #6d28d9 45%, #4c1d95 100%);
    box-shadow:
        0 0 32px rgba(168, 85, 247, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -3px 8px rgba(0, 0, 0, 0.35);
}

.ca-hub-btn-play__label {
    line-height: 1;
}

.ca-hub-btn-play__swords {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.45));
}

.ca-hub-btn-play__swords-fallback {
    display: none;
    font-size: 0.95rem;
    color: var(--ca-gold);
}

/* ===== Responsive ===== */
@media (max-width: 1199.98px) {
    .ca-kq-nav__link { padding: 7px 8px; font-size: 0.68rem; }
    .ca-hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }
    .ca-hub-col {
        grid-row: auto;
        grid-template-rows: none;
        display: flex;
        flex-direction: column;
    }
    .ca-hub-col:last-child {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    .ca-hub-col:last-child .ca-hub-panel,
    .ca-hub-col:last-child .ca-hub-progress__panel { margin: 0; }
}

@media (max-width: 991.98px) {
    .ca-kq-menu-toggle { display: flex; }
    .ca-kq-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px 16px;
        background: rgba(4, 8, 20, 0.98);
        border-bottom: 1px solid var(--ca-gold-border);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    }
    .ca-kq-nav.is-open { display: flex; }
    .ca-kq-nav__link { padding: 10px 12px; }
    .ca-kq-header { position: relative; }
    .ca-hero-full { min-height: 440px; }
    .ca-hero-full__inner { min-height: 440px; padding: 40px 24px 64px; }
    .ca-hero-full__content { max-width: 100%; }
    .ca-hero-full__character {
        width: min(44%, 340px);
        top: 8px;
        right: 0;
    }
    .ca-hub-features { margin-top: -24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ca-feature-card { min-height: 148px; grid-template-columns: 38% 1fr; }
    .ca-feature-card__img { max-width: 96px; }
    .ca-hub-grid { grid-template-columns: 1fr; }
    .ca-hub-col:last-child { grid-column: auto; display: flex; flex-direction: column; }
    .ca-hub-daily-row { grid-template-columns: 1fr; }
    .ca-hub-rush {
        flex-direction: column;
        text-align: center;
    }
    .ca-hub-rush__content {
        align-items: center;
        text-align: center;
    }
    .ca-hub-stats-bar--rush {
        align-self: center;
    }
    .ca-challenge-panel__body {
        grid-template-columns: 1fr;
    }
    .ca-hub-btn-challenge {
        align-self: stretch;
        width: 100%;
    }
    .ca-hub-streak {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .ca-hub-streak__content {
        width: 100%;
    }
    .ca-hub-streak__track {
        max-width: 280px;
        margin: 0 auto;
    }
    .ca-hub-rush__visual {
        width: 108px;
        height: 108px;
    }
    .ca-hub-rush__halo {
        width: 102px;
        height: 102px;
    }
    .ca-hub-rush__icon-wrap {
        width: 84px;
        height: 84px;
    }
}

@media (max-width: 575.98px) {
    .ca-kq-brand__text { display: none; }
    .ca-kq-user__meta { display: none; }
    .ca-hero-full { min-height: 320px; }
    .ca-hero-full__inner { min-height: 320px; padding: 28px 18px 48px; }
    .ca-hero-full__character { display: none; }
    .ca-hero-full__particles .ca-hero-dot {
        transform: scale(0.85);
    }
    .ca-hero-full__title { font-size: 2.5rem; }
    .ca-hero-full__sub { font-size: 0.9375rem; margin-bottom: 28px; }
    .ca-hero-stat__num { font-size: 1.5rem; }
    .ca-hero-full__stats { flex-direction: column; gap: 18px; }
    .ca-hub-features { margin-top: 0; grid-template-columns: 1fr; }
    .ca-feature-card {
        min-height: 140px;
        grid-template-columns: 36% 1fr;
    }
    .ca-feature-card__title { font-size: 0.65rem; }
    .ca-feature-card__text { font-size: 0.625rem; }
    .ca-hub-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ca-hub-bottom-bar { padding: 0 12px 16px; }
    .ca-hub-bottom-bar__frame { padding: 16px; }
    .ca-hub-bottom-bar__message { flex-direction: column; align-items: flex-start; text-align: left; }
    .ca-hub-btn-play--banner { width: 100%; justify-content: center; }
}

/* ===== Motion & animation ===== */
@keyframes ca-fade-up {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ca-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ca-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes ca-glow-pulse {
    0%, 100% {
        opacity: 0.55;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.06);
    }
}

@keyframes ca-flame-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 14px rgba(249, 115, 22, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 26px rgba(249, 115, 22, 0.65));
    }
}

@keyframes ca-shimmer {
    0% { background-position: -120% 0; }
    100% { background-position: 220% 0; }
}

@keyframes ca-bar-grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes ca-sparkle {
    0%, 100% { opacity: 0.35; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.15); }
}

@keyframes ca-icon-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes ca-border-glow {
    0%, 100% { box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.1), 0 0 22px var(--ca-orange-glow), 0 8px 32px rgba(0, 0, 0, 0.5); }
    50% { box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.18), 0 0 32px rgba(249, 115, 22, 0.28), 0 8px 32px rgba(0, 0, 0, 0.5); }
}

.page-current-affairs::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 30% 80%, rgba(255, 255, 255, 0.12), transparent),
        radial-gradient(1px 1px at 90% 60%, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0.45;
}

.page-current-affairs > * {
    position: relative;
    z-index: 1;
}

.ca-hero-full__content {
    animation: ca-fade-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.ca-hero-full__title-line:nth-child(1) {
    animation: ca-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.ca-hero-full__title-line:nth-child(2) {
    animation: ca-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.ca-hero-full__banner,
.ca-hero-full__sub,
.ca-hero-full__stats {
    animation: ca-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both;
}

.ca-hero-full__character {
    animation:
        ca-fade-in 1s ease 0.25s both,
        ca-float 5s ease-in-out 1.2s infinite;
}

.ca-hero-full__banner-spark {
    display: inline-block;
    animation: ca-sparkle 2.4s ease-in-out infinite;
}

.ca-hero-full__banner-spark:last-child {
    animation-delay: 1.2s;
}

.ca-motion {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--ca-motion-delay, 0s);
}

.ca-motion.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ca-feature-card__img {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ca-feature-card:hover .ca-feature-card__img {
    transform: scale(1.06);
}

.ca-hub-rush__visual::before {
    animation: ca-glow-pulse 3.2s ease-in-out infinite;
}

.ca-hub-rush__halo {
    animation: ca-glow-pulse 2.8s ease-in-out infinite;
}

.ca-hub-rush__img {
    animation: ca-icon-bob 3.5s ease-in-out infinite;
}

.ca-hub-classic__img {
    animation: ca-icon-bob 3.8s ease-in-out 0.5s infinite;
}

.ca-hub-mode:nth-child(1) .ca-hub-mode__tile img { animation: ca-icon-bob 3.2s ease-in-out infinite; }
.ca-hub-mode:nth-child(2) .ca-hub-mode__tile img { animation: ca-icon-bob 3.5s ease-in-out 0.3s infinite; }
.ca-hub-mode:nth-child(3) .ca-hub-mode__tile img { animation: ca-icon-bob 3.8s ease-in-out 0.6s infinite; }
.ca-hub-mode:nth-child(4) .ca-hub-mode__tile img { animation: ca-icon-bob 3.4s ease-in-out 0.2s infinite; }
.ca-hub-mode:nth-child(5) .ca-hub-mode__tile img { animation: ca-icon-bob 3.6s ease-in-out 0.5s infinite; }
.ca-hub-mode:nth-child(6) .ca-hub-mode__tile img { animation: ca-icon-bob 3.9s ease-in-out 0.8s infinite; }

.ca-hub-mode:hover .ca-hub-mode__tile {
    transform: translateY(-4px) scale(1.05);
    transition: transform 0.25s ease;
}

.ca-hub-streak__badge {
    animation: ca-flame-pulse 2.6s ease-in-out infinite;
}

.ca-hub-streak__day.is-done {
    animation: ca-sparkle 2.8s ease-in-out infinite;
}

.ca-hub-streak__day-item:nth-child(1) .ca-hub-streak__day.is-done { animation-delay: 0s; }
.ca-hub-streak__day-item:nth-child(2) .ca-hub-streak__day.is-done { animation-delay: 0.15s; }
.ca-hub-streak__day-item:nth-child(3) .ca-hub-streak__day.is-done { animation-delay: 0.3s; }
.ca-hub-streak__day-item:nth-child(4) .ca-hub-streak__day.is-done { animation-delay: 0.45s; }
.ca-hub-streak__day-item:nth-child(5) .ca-hub-streak__day.is-done { animation-delay: 0.6s; }
.ca-hub-streak__day-item:nth-child(6) .ca-hub-streak__day.is-done { animation-delay: 0.75s; }

.ca-hub-bar__fill {
    transform-origin: left center;
    animation: ca-bar-grow 1.35s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.ca-hub-lb-rank--1 {
    animation: ca-sparkle 2.5s ease-in-out infinite;
}

.ca-hub-lb-xp-badge {
    animation: ca-glow-pulse 3s ease-in-out infinite;
}

.ca-hub-level-shield {
    animation: ca-icon-bob 4s ease-in-out infinite;
}

.page-current-affairs .ca-hub-btn-gold,
.page-current-affairs .ca-hub-btn-play--banner,
.page-current-affairs .ca-hub-rush__btn {
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.page-current-affairs .ca-hub-btn-gold:hover,
.page-current-affairs .ca-hub-btn-play--banner:hover,
.page-current-affairs .ca-hub-rush__btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.ca-hub-bottom-bar__icon-img {
    animation: ca-icon-bob 4.2s ease-in-out infinite;
}

.ca-frame {
    animation: ca-border-glow 5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .page-current-affairs::before,
    .ca-hero-full__particles .ca-hero-dot,
    .ca-hero-full__content,
    .ca-hero-full__title-line,
    .ca-hero-full__banner,
    .ca-hero-full__sub,
    .ca-hero-full__stats,
    .ca-hero-full__character,
    .ca-hero-full__banner-spark,
    .ca-hub-rush__visual::before,
    .ca-hub-rush__halo,
    .ca-hub-rush__img,
    .ca-hub-classic__img,
    .ca-hub-mode__tile img,
    .ca-hub-streak__badge,
    .ca-hub-streak__day.is-done,
    .ca-hub-bar__fill,
    .ca-hub-lb-rank--1,
    .ca-hub-lb-xp-badge,
    .ca-hub-level-shield,
    .ca-hub-bottom-bar__icon-img,
    .ca-frame {
        animation: none !important;
    }

    .ca-motion {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
