/* Gamified DECA hub — exact mockup layout (current-affairs-mcq?track=deca) */

.page-deca-games {
    background: #050818;
}

.page-deca-games .deca-subnav,
.page-deca-games .deca-mock-hub,
.page-deca-games .deca-mock-footer {
    width: var(--ca-layout-width);
    max-width: var(--ca-layout-width);
    margin-left: auto;
    margin-right: auto;
}

/* ── Ornate segmented subnav (mockup-exact) ── */
.deca-subnav--ornate {
    margin-top: -36px;
    padding: 0 24px 28px;
    position: relative;
    z-index: 6;
}

.deca-subnav__track {
    display: flex;
    align-items: stretch;
    min-height: 50px;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.55));
}

.deca-subnav--ornate .deca-subnav__tab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #c9b07a;
    text-decoration: none;
    font-family: var(--ca-font-serif);
    font-size: clamp(0.625rem, 1.05vw, 0.72rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s ease, z-index 0s;
    z-index: 1;
}

.deca-subnav--ornate .deca-subnav__tab--first {
    flex: 1.05 1 0;
    margin-right: -16px;
    padding: 16px 28px 16px 22px;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 100%, 0 100%);
    z-index: 3;
}

.deca-subnav__group {
    flex: 2.95 1 0;
    display: flex;
    align-items: stretch;
    margin-left: -2px;
    position: relative;
    min-height: 46px;
    align-self: center;
    background:
        linear-gradient(180deg, rgba(14, 18, 34, 0.96) 0%, rgba(4, 7, 16, 0.98) 100%);
    clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%);
}

.deca-subnav__group::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    border-top: 1px solid rgba(212, 175, 96, 0.58);
    border-bottom: 1px solid rgba(212, 175, 96, 0.58);
    border-right: 1px solid rgba(212, 175, 96, 0.58);
    clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%);
}

.deca-subnav__group::after {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    bottom: 3px;
    left: 21px;
    pointer-events: none;
    z-index: 4;
    border-top: 1px solid rgba(212, 175, 96, 0.18);
    border-bottom: 1px solid rgba(212, 175, 96, 0.18);
    border-right: 1px solid rgba(212, 175, 96, 0.18);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.deca-subnav--ornate .deca-subnav__group .deca-subnav__tab {
    flex: 1 1 0;
    padding: 13px 14px;
    margin-left: -14px;
    clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
    background: transparent;
}

.deca-subnav--ornate .deca-subnav__group .deca-subnav__tab:first-child {
    margin-left: 0;
    padding-left: 24px;
    clip-path: polygon(18px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

.deca-subnav--ornate .deca-subnav__group .deca-subnav__tab--last {
    padding-right: 18px;
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%);
}

.deca-subnav--ornate .deca-subnav__group .deca-subnav__tab + .deca-subnav__tab::before {
    content: '';
    position: absolute;
    top: 8%;
    bottom: 8%;
    left: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(212, 175, 96, 0.55) 18%, rgba(212, 175, 96, 0.55) 82%, transparent);
    transform: skewX(-18deg);
    pointer-events: none;
    z-index: 2;
}

.deca-subnav__text {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    position: relative;
    z-index: 6;
    white-space: nowrap;
}

.deca-subnav--ornate .deca-subnav__num,
.deca-subnav--ornate .deca-subnav__label {
    font-family: var(--ca-font-serif);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #c9b07a;
    -webkit-text-fill-color: #c9b07a;
}

.deca-subnav--ornate .deca-subnav__tab:hover .deca-subnav__num,
.deca-subnav--ornate .deca-subnav__tab:hover .deca-subnav__label {
    color: #ecd9a8;
    -webkit-text-fill-color: #ecd9a8;
}

/* Inactive first tab */
.deca-subnav--ornate .deca-subnav__tab--first:not(.is-active) {
    background: linear-gradient(180deg, rgba(12, 16, 30, 0.95) 0%, rgba(4, 7, 14, 0.98) 100%);
    box-shadow: inset 0 0 0 1px rgba(212, 175, 96, 0.35);
}

/* Active tab — purple nebula + ornate gold frame */
.deca-subnav--ornate .deca-subnav__tab.is-active {
    z-index: 5;
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E"),
        radial-gradient(ellipse 130% 100% at 38% 12%, rgba(216, 180, 254, 0.38) 0%, transparent 52%),
        radial-gradient(ellipse 80% 70% at 72% 88%, rgba(236, 72, 153, 0.16) 0%, transparent 48%),
        radial-gradient(ellipse 90% 80% at 18% 55%, rgba(109, 40, 217, 0.32) 0%, transparent 50%),
        linear-gradient(180deg, #6d28d9 0%, #5b21b6 22%, #4c1d95 48%, #2e1065 78%, #18042e 100%);
    box-shadow:
        0 0 28px rgba(249, 115, 22, 0.28),
        0 0 42px rgba(124, 58, 237, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.deca-subnav--ornate .deca-subnav__tab--first.is-active {
    align-self: stretch;
    min-height: 54px;
    margin-top: -3px;
    margin-bottom: -3px;
    padding: 18px 30px 18px 24px;
}

.deca-subnav--ornate .deca-subnav__group .deca-subnav__tab.is-active {
    align-self: stretch;
    min-height: 50px;
    margin-top: -2px;
    margin-bottom: -2px;
    z-index: 6;
}

.deca-subnav__frame {
    position: absolute;
    inset: -2px;
    pointer-events: none;
    z-index: 4;
    border: 2px solid rgba(255, 215, 0, 0.82);
    box-shadow:
        inset 0 0 0 1px rgba(255, 235, 150, 0.35),
        inset 0 2px 8px rgba(255, 215, 0, 0.12),
        0 0 16px rgba(249, 115, 22, 0.35),
        0 0 24px rgba(255, 215, 0, 0.18);
}

.deca-subnav--ornate .deca-subnav__tab--first.is-active .deca-subnav__frame {
    inset: -3px -2px -3px -3px;
    border-radius: 11px 0 0 11px;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 100%, 0 100%);
}

.deca-subnav--ornate .deca-subnav__group .deca-subnav__tab--mid.is-active .deca-subnav__frame {
    inset: -3px -2px;
    clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

.deca-subnav--ornate .deca-subnav__group .deca-subnav__tab--last.is-active .deca-subnav__frame {
    inset: -3px -3px -3px -2px;
    border-radius: 0 11px 11px 0;
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%);
}

.deca-subnav__gem {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 7px;
    height: 7px;
    background: linear-gradient(135deg, #fff8dc 0%, #ffd700 45%, #c9920a 100%);
    box-shadow:
        0 0 8px rgba(255, 215, 0, 1),
        0 0 16px rgba(255, 215, 0, 0.65);
    z-index: 7;
    pointer-events: none;
}

.deca-subnav__gem--top {
    top: -5px;
}

.deca-subnav__gem--bottom {
    bottom: -5px;
}

.deca-subnav--ornate .deca-subnav__tab.is-active .deca-subnav__num,
.deca-subnav--ornate .deca-subnav__tab.is-active .deca-subnav__label {
    background: linear-gradient(
        180deg,
        #fffef0 0%,
        #ffe566 18%,
        #ffd700 46%,
        #e7a500 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.45))
        drop-shadow(0 -1px 0 rgba(0, 0, 0, 0.55))
        drop-shadow(0 0 10px rgba(255, 215, 0, 0.55));
}

/* Legacy flat subnav fallback */
.deca-subnav:not(.deca-subnav--ornate) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 0 24px 22px;
    position: relative;
    z-index: 5;
}

.deca-subnav:not(.deca-subnav--ornate) .deca-subnav__tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 12px;
    border-radius: 8px;
    border: 1px solid var(--ca-gold-border);
    background: linear-gradient(180deg, rgba(14, 18, 38, 0.98) 0%, rgba(6, 10, 24, 0.99) 100%);
    color: var(--ca-text-muted);
    text-decoration: none;
    font-family: var(--ca-font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ── Hero: full-width DECA panoramic scene (1024×591) ── */
.page-deca-games .ca-hero-full--deca-mock {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: 280px;
    height: clamp(300px, calc(100vw * 591 / 1024), 591px);
    overflow: hidden;
    background: #030610 url('../img/current-affairs/hero-scene-deca.png') center center / cover no-repeat;
}

.page-deca-games .ca-hero-full--deca-mock .ca-hero-full__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-deca-games .ca-hero-full--deca-mock .ca-hero-full__bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

.page-deca-games .ca-hero-full--deca-mock .ca-hero-full__overlay {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(3, 6, 16, 0.88) 0%, rgba(3, 6, 16, 0.5) 34%, rgba(3, 6, 16, 0.08) 58%, rgba(3, 6, 16, 0.02) 100%),
        linear-gradient(180deg, rgba(3, 6, 16, 0.08) 0%, rgba(3, 6, 16, 0.38) 100%);
}

.page-deca-games .ca-hero-full--deca-mock .ca-hero-full__particles {
    z-index: 2;
}

.ca-hero-full--deca-mock .ca-hero-full__inner {
    position: absolute;
    inset: 0;
    z-index: 3;
    min-height: 0;
    width: var(--ca-layout-width);
    max-width: var(--ca-layout-width);
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    align-items: center;
    padding: 0 24px;
}

/* GDP chips are baked into the panoramic hero artwork */
.ca-hero-deca-floats {
    display: none;
}

@media (min-width: 1200px) {
    .ca-hero-deca-floats {
        display: flex;
        flex-direction: column;
        gap: 12px;
        position: absolute;
        left: 48.5%;
        top: 9%;
        z-index: 3;
        pointer-events: none;
    }

    .ca-hero-deca-float--infl {
        margin-left: 10px;
    }

    .ca-hero-deca-float--rate {
        margin-left: 2px;
    }

    .ca-hero-deca-float--trade {
        margin-left: 16px;
    }
}

.ca-hero-deca-float {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.35);
    background: rgba(8, 12, 28, 0.72);
    backdrop-filter: blur(6px);
    box-shadow: 0 0 18px rgba(124, 58, 237, 0.35);
    min-width: 130px;
}

.ca-hero-deca-float small {
    display: block;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ca-text-dim);
    margin-bottom: 2px;
}

.ca-hero-deca-float strong {
    font-size: 0.875rem;
    font-weight: 700;
    color: #86efac;
}

.ca-hero-deca-float--infl strong {
    color: #f87171;
}

.ca-hero-deca-float--rate strong {
    color: #e5e7eb;
}

.ca-hero-full--deca-mock .ca-hero-full__content {
    max-width: min(720px, 58%);
}

.ca-hero-full__banner--deca {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.6875rem;
}

.ca-hero-full--deca-mock .ca-hero-full__stats {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 18px 28px;
    max-width: 100%;
    margin-top: 2px;
    --deca-hero-stat-emblem: 58px;
}

.ca-hero-full--deca-mock .ca-hero-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 0;
    min-width: 0;
}

.ca-hero-full--deca-mock .ca-hero-stat__icon {
    width: var(--deca-hero-stat-emblem);
    height: var(--deca-hero-stat-emblem);
    flex-shrink: 0;
    border-radius: 50%;
    border: none;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ca-hero-full--deca-mock .ca-hero-stat__icon img.ca-hero-stat__img--emblem {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    max-height: none;
    display: block;
    object-fit: cover;
    object-position: center center;
    mix-blend-mode: lighten;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.35));
}

.ca-hero-full--deca-mock .ca-hero-stat__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ca-hero-full--deca-mock .ca-hero-stat__num {
    font-size: 1.5rem;
    line-height: 1;
}

.ca-hero-full--deca-mock .ca-hero-stat__label {
    font-family: var(--ca-font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--ca-text-soft);
    max-width: 118px;
}

@media (min-width: 992px) {
    .page-deca-games .ca-hero-full--deca-mock .ca-hero-full__bg img {
        object-position: center 40%;
    }

    .ca-hero-full--deca-mock .ca-hero-full__title {
        font-size: clamp(2.25rem, 3.8vw, 3.25rem);
        margin-bottom: 10px;
    }

    .ca-hero-full--deca-mock .ca-hero-full__sub {
        margin-bottom: 18px;
        font-size: 0.9375rem;
        line-height: 1.5;
    }

    .ca-hero-full--deca-mock .ca-hero-full__banner {
        margin-bottom: 12px;
        padding: 7px 16px;
    }

    .ca-hero-full--deca-mock .ca-hero-full__stats {
        gap: 16px 24px;
        --deca-hero-stat-emblem: 66px;
    }

    .ca-hero-full--deca-mock .ca-hero-stat__num {
        font-size: 1.625rem;
    }

    .ca-hero-full--deca-mock .ca-hero-stat__label {
        font-size: 0.6875rem;
        max-width: 128px;
    }

}

/* ── Main hub ── */
.deca-mock-hub {
    padding: 0 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.deca-mock-top {
    display: grid;
    grid-template-columns: 1.65fr 1fr 1fr 0.92fr 1.05fr;
    gap: 14px;
    align-items: stretch;
}

.deca-mock-card {
    position: relative;
    border-radius: 14px;
    padding: 14px 14px 12px;
    border: 1px solid rgba(255, 215, 0, 0.45);
    background:
        linear-gradient(180deg, rgba(22, 28, 56, 0.92) 0%, rgba(8, 12, 28, 0.98) 100%);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.deca-mock-card__tagline {
    margin: 0 0 10px;
    font-family: var(--ca-font-sans);
    font-size: 0.625rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ca-text-muted);
}

.deca-mock-card__desc--center {
    text-align: center;
}

.deca-mock-card__meta--center,
.deca-mock-card__meta--panel {
    justify-content: center;
}

.deca-mock-card__meta--panel {
    margin-bottom: 0;
}

.deca-mock-card__btn--block {
    width: 100%;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    margin-top: auto;
}

.deca-mock-card__btn--block i {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Mission inner panel */
.deca-mock-mission-panel {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 12px 12px;
    margin-bottom: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.28);
    background:
        radial-gradient(ellipse 90% 70% at 50% 0%, rgba(124, 58, 237, 0.22) 0%, transparent 55%),
        linear-gradient(180deg, rgba(18, 14, 36, 0.95) 0%, rgba(8, 10, 22, 0.98) 100%);
    box-shadow: inset 0 0 24px rgba(124, 58, 237, 0.12);
}

.deca-mock-mission-panel__icon {
    width: 96px;
    height: 96px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.45));
}

.deca-mock-mission-panel__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.deca-mock-mission-panel__title {
    margin: 0 0 6px;
    font-family: var(--ca-font-serif);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ca-gold);
}

.deca-mock-mission-panel__desc {
    margin: 0 0 10px;
    font-family: var(--ca-font-sans);
    font-size: 0.625rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--ca-text-muted);
    max-width: 220px;
}

/* MCQ shield halo */
.deca-mock-card__visual--halo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    margin: 4px 0 8px;
}

.deca-mock-card__visual-glow {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 110px;
    height: 110px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.55) 0%, rgba(124, 58, 237, 0.2) 45%, transparent 70%);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.5);
    pointer-events: none;
}

.deca-mock-card__visual--halo img {
    position: relative;
    z-index: 1;
    max-width: 88px;
    max-height: 88px;
}

.deca-mock-card__visual--editor img {
    max-width: 92px;
    max-height: 92px;
    filter: drop-shadow(0 0 16px rgba(34, 197, 94, 0.35));
}

/* Calendar mockup pills */
.deca-mock-card--calendar .deca-cal__month {
    text-align: center;
    font-family: var(--ca-font-serif);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--ca-text-soft);
    margin-bottom: 8px;
}

.deca-mock-card--calendar .deca-cal__days span {
    font-size: 0.5rem;
    letter-spacing: 0.04em;
}

.deca-mock-card--calendar .deca-cal__dates span:not(.du-cal-empty) > span,
.deca-mock-card--calendar .deca-cal__dates span:not(.du-cal-empty) > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: 0 auto;
    border-radius: 50%;
    font-size: 0.5625rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    background: rgba(30, 20, 50, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.deca-mock-card--calendar .deca-cal__dates .has-update > a {
    background: linear-gradient(180deg, #6d28d9 0%, #4c1d95 100%);
    color: #fff;
    border-color: rgba(168, 85, 247, 0.45);
}

.deca-mock-card--calendar .deca-cal__dates .is-today > span,
.deca-mock-card--calendar .deca-cal__dates .is-today > a {
    background: transparent;
    color: #fff;
    border: 2px solid var(--ca-gold);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.45);
}

.deca-mock-card--calendar .deca-cal__dates .is-weekend > span,
.deca-mock-card--calendar .deca-cal__dates .is-weekend > a {
    color: rgba(248, 113, 113, 0.75);
}

/* Leaderboard mockup */
.deca-mock-card__headrow {
    text-align: center;
    margin-bottom: 8px;
}

.deca-mock-card__headrow .deca-mock-card__title {
    margin-bottom: 2px;
}

.deca-mock-card__headrow .deca-mock-card__sub i {
    font-size: 0.5625rem;
    opacity: 0.55;
    margin-left: 2px;
}

a.deca-mock-card:hover {
    color: inherit;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.22);
}

.deca-mock-card__title {
    margin: 0 0 4px;
    font-family: var(--ca-font-serif);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.deca-mock-card__heading {
    margin: 0 0 8px;
    font-family: var(--ca-font-serif);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

.deca-mock-card__desc {
    margin: 0 0 12px;
    font-size: 0.6875rem;
    color: var(--ca-text-muted);
    line-height: 1.45;
}

.deca-mock-card__sub {
    margin: 0 0 10px;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ca-text-dim);
    line-height: 1.35;
}

.deca-mock-card--mission__body {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.deca-mock-card--mission__copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.deca-mock-card__visual--mission {
    flex-shrink: 0;
    margin-bottom: 0 !important;
}

.deca-mock-card__visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    margin-bottom: 10px;
}

.deca-mock-card__visual img {
    max-width: 88px;
    max-height: 88px;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(124, 58, 237, 0.35));
}

.deca-mock-card--mission .deca-mock-card__visual img {
    max-width: 110px;
    max-height: 110px;
}

.deca-mock-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.deca-mock-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 215, 0, 0.35);
    background: rgba(0, 0, 0, 0.35);
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--ca-text-soft);
}

.deca-mock-card__btn {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.5);
    font-family: var(--ca-font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    margin-top: auto;
    text-decoration: none;
}

.deca-mock-card__btn--sm {
    padding: 8px 10px;
    font-size: 0.625rem;
    margin-top: 10px;
}

.deca-mock-card__btn--gold {
    background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);
    border-color: #fcd34d;
    color: #1a0f03;
    width: auto;
    align-self: flex-start;
    padding: 10px 20px;
}

.deca-mock-card__btn--gold.deca-mock-card__btn--block {
    width: 100%;
    align-self: stretch;
}

.deca-mock-card__btn--green {
    background: linear-gradient(180deg, #22c55e 0%, #166534 100%) !important;
    border-color: rgba(134, 239, 172, 0.45) !important;
}

.deca-mock-card__btn--archive {
    background: linear-gradient(180deg, #6d28d9 0%, #4c1d95 100%);
    margin-top: 8px;
    font-size: 0.625rem;
}

.deca-mock-card--mission {
    min-height: 260px;
    background:
        radial-gradient(ellipse 80% 70% at 20% 50%, rgba(249, 115, 22, 0.1) 0%, transparent 60%),
        linear-gradient(165deg, #1a1020 0%, #0a0e1a 100%);
}

.deca-mock-card--mission .deca-mock-card__btn {
    background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);
    border-color: #fcd34d;
    color: #1a0f03;
}

.deca-mock-card--mcq {
    border-color: rgba(168, 85, 247, 0.5);
    background: linear-gradient(180deg, rgba(76, 29, 149, 0.35) 0%, rgba(8, 12, 28, 0.98) 100%);
    text-align: center;
}

.deca-mock-card--mcq .deca-mock-card__title {
    text-align: center;
}

.deca-mock-card--mcq .deca-mock-card__btn {
    background: linear-gradient(180deg, #8b5cf6 0%, #5b21b6 100%);
}

.deca-mock-card--editor {
    border-color: rgba(34, 197, 94, 0.45);
    background: linear-gradient(180deg, rgba(6, 78, 59, 0.4) 0%, rgba(8, 12, 28, 0.98) 100%);
    text-align: center;
}

.deca-mock-card--editor .deca-mock-card__title {
    text-align: center;
}

.deca-mock-card--editor .deca-mock-card__btn {
    background: linear-gradient(180deg, #22c55e 0%, #166534 100%);
    border-color: rgba(134, 239, 172, 0.45);
}

.deca-mock-card--calendar,
.deca-mock-card--leaderboard {
    min-height: 280px;
    cursor: default;
}

.deca-mock-card--calendar .du-calendar__title,
.deca-mock-card--leaderboard .deca-mock-card__title {
    text-align: center;
}

.deca-mock-card--calendar .du-calendar__days,
.deca-mock-card--calendar .du-calendar__dates {
    gap: 3px;
    font-size: 0.6875rem;
}

.deca-mock-card--calendar .du-calendar__dates a,
.deca-mock-card--calendar .du-calendar__dates span:not(.du-cal-empty) {
    width: auto;
    height: auto;
    font-size: inherit;
    background: transparent;
    border: none;
    box-shadow: none;
}

.deca-mock-card--calendar .du-calendar__cta {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    font-size: 0.625rem;
    text-align: center;
}

.deca-mock-lb {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.deca-mock-lb__item {
    display: grid;
    grid-template-columns: 22px 30px 1fr auto;
    align-items: center;
    gap: 6px;
    padding: 5px 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.deca-mock-lb__rank {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5625rem;
    font-weight: 800;
    color: #1a0f03;
    text-align: center;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 30%, #ffe566 0%, #f59e0b 48%, #b45309 100%);
    border: 1px solid #fcd34d;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.45);
}

.deca-mock-lb__rank--1,
.deca-mock-lb__rank--2,
.deca-mock-lb__rank--3,
.deca-mock-lb__rank--4,
.deca-mock-lb__rank--5 {
    font-size: 0.5625rem;
}

.deca-mock-lb__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5625rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4c1d95, #7c3aed);
    border: 1px solid var(--ca-gold-border);
}

.deca-mock-lb__info strong {
    display: block;
    font-size: 0.6875rem;
    color: #fff;
    line-height: 1.2;
}

.deca-mock-lb__info small {
    font-size: 0.5625rem;
    color: var(--ca-text-dim);
}

.deca-mock-lb__xp {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.5625rem;
    font-weight: 700;
    color: var(--ca-gold);
    white-space: nowrap;
    padding: 5px 10px;
    clip-path: polygon(12% 0%, 88% 0%, 100% 50%, 88% 100%, 12% 100%, 0% 50%);
    border: 1px solid rgba(255, 215, 0, 0.45);
    background: linear-gradient(180deg, rgba(76, 29, 149, 0.95) 0%, rgba(30, 10, 60, 0.98) 100%);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.35);
}

.deca-mock-lb__xp-badge {
    font-size: 0.4375rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #c4b5fd;
}

.deca-mock-card__link {
    display: block;
    margin-top: 8px;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--ca-gold);
    text-align: center;
    text-decoration: none;
}

/* ── Bottom progress strip ── */
.deca-mock-bottom {
    display: grid;
    grid-template-columns: 1.1fr 0.85fr 0.95fr 1.1fr;
    gap: 12px;
}

.deca-mock-panel {
    border-radius: 14px;
    padding: 14px 14px 12px;
    border: 1px solid rgba(255, 215, 0, 0.38);
    background: linear-gradient(180deg, rgba(16, 22, 48, 0.95) 0%, rgba(6, 10, 26, 0.98) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.deca-mock-panel__title {
    margin: 0 0 10px;
    font-family: var(--ca-font-serif);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.deca-mock-panel__sub {
    margin: -7px 0 10px;
    font-size: 0.625rem;
    color: var(--ca-text-dim);
}

.deca-mock-panel__btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--ca-gold-border);
    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%);
    box-shadow:
        0 0 18px 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-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
}

.deca-mock-panel__btn: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 26px rgba(168, 85, 247, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -3px 8px rgba(0, 0, 0, 0.35);
    color: #fff;
}

.deca-mock-missions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.deca-mock-mission {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 9px 4px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.42) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.deca-mock-mission:hover {
    border-color: rgba(255, 215, 0, 0.65);
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.18);
    transform: translateY(-1px);
    color: inherit;
}

.deca-mock-mission__tile {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deca-mock-mission__tile img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.25));
}

.deca-mock-mission__name {
    font-size: 0.5625rem;
    font-weight: 600;
    color: #e5e7eb;
    white-space: nowrap;
}

.deca-mock-mission__xp {
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ca-gold);
    white-space: nowrap;
}

.deca-mock-mission.is-done::after {
    content: '✓';
    position: absolute;
    top: -6px;
    left: -6px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 30%, #4ade80 0%, #22c55e 55%, #15803d 100%);
    color: #fff;
    font-size: 0.5625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #bbf7d0;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.55);
}

.deca-mock-mission.is-locked .deca-mock-mission__tile img {
    filter: grayscale(0.6) brightness(0.55);
}

.deca-mock-mission.is-locked .deca-mock-mission__name,
.deca-mock-mission.is-locked .deca-mock-mission__xp {
    opacity: 0.65;
}

.deca-mock-mission__lock {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ca-gold);
    font-size: 0.875rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.9);
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.45));
}

.deca-mock-rewards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.deca-mock-reward {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.deca-mock-reward img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.deca-mock-reward strong {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
}

.deca-mock-reward span {
    font-size: 0.5625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ca-text-dim);
}

.deca-mock-progress__row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.deca-mock-progress__main {
    flex: 1;
    min-width: 0;
}

.deca-mock-progress__bar {
    height: 12px;
}

.deca-mock-progress__shield {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(124, 58, 237, 0.45));
}

.deca-mock-streak {
    display: flex;
    align-items: center;
    gap: 12px;
}

.deca-mock-streak__badge {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.55);
    background: radial-gradient(circle, rgba(249, 115, 22, 0.25) 0%, rgba(8, 12, 28, 0.9) 70%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.35);
    animation: ca-flame-pulse 2.5s ease-in-out infinite;
}

.deca-mock-streak__count {
    font-family: var(--ca-font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ca-gold);
    line-height: 1;
}

.deca-mock-streak__label {
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ca-text-muted);
}

.deca-mock-streak__days {
    display: flex;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

.deca-mock-streak__day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.deca-mock-streak__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    font-weight: 800;
    color: transparent;
}

.deca-mock-streak__dot.is-done {
    background: radial-gradient(circle at 50% 30%, #ffe566 0%, #f59e0b 55%, #b45309 100%);
    border-color: #ffe082;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.55);
    color: #3b2104;
}

.deca-mock-streak__dot.is-done::after {
    content: '✓';
}

.deca-mock-streak__letter {
    font-size: 0.5625rem;
    font-weight: 600;
    color: var(--ca-text-dim);
}

.deca-mock-progress__meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--ca-text-muted);
    margin-bottom: 6px;
}

.deca-mock-progress__xp {
    margin: 6px 0 10px;
    font-size: 0.6875rem;
    color: var(--ca-text-dim);
    text-align: center;
}

.deca-mock-progress__btn {
    display: block;
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--ca-gold-border);
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.35) 0%, rgba(46, 16, 101, 0.9) 100%);
    color: var(--ca-gold);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
}

/* ── Footer strip ── */
.deca-mock-footer {
    padding: 0 0 32px;
}

.deca-mock-footer__frame {
    position: relative;
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    background: linear-gradient(90deg, rgba(12, 16, 36, 0.98) 0%, rgba(8, 12, 28, 0.99) 100%);
}

.deca-mock-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.deca-mock-footer__message {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.deca-mock-footer__book {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.35));
}

.deca-mock-footer__quote {
    margin: 0 0 4px;
    font-family: var(--ca-font-serif);
    font-size: 0.875rem;
    font-style: italic;
    color: var(--ca-gold);
}

.deca-mock-footer__tagline {
    margin: 0;
    font-size: 0.6875rem;
    color: var(--ca-text-muted);
    line-height: 1.4;
}

.deca-mock-footer__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.55);
    background: linear-gradient(180deg, #8b5cf6 0%, #5b21b6 48%, #3b0764 100%);
    color: #fff;
    font-family: var(--ca-font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 0 28px var(--ca-purple-glow);
    white-space: nowrap;
}

.deca-mock-footer__cta img {
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.4));
}

.deca-mock-footer__cta:hover {
    color: #fff;
    box-shadow: 0 0 36px rgba(168, 85, 247, 0.6);
}

.deca-mock-archive {
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.22);
    padding: 12px 16px;
    background: rgba(8, 12, 28, 0.6);
}

.deca-mock-archive summary {
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ca-gold);
    list-style: none;
    text-align: center;
}

.deca-mock-archive summary::-webkit-details-marker {
    display: none;
}

.deca-mock-archive[open] summary {
    margin-bottom: 8px;
}

.ca-feature-card__img--knockout {
    mix-blend-mode: lighten;
}

/* ── DECA Knowledge Quest typography & UI FX ── */
.page-deca-games {
    font-family: var(--ca-font-sans);
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
}

.page-deca-games .ca-kq-nav__link {
    font-family: var(--ca-font-sans);
    font-weight: 600;
}

.page-deca-games .ca-kq-user__meta strong,
.page-deca-games .deca-mock-card__btn,
.page-deca-games .deca-mock-progress__btn,
.page-deca-games .deca-mock-footer__cta,
.page-deca-games .deca-mock-badge,
.page-deca-games .deca-mock-archive summary {
    font-family: var(--ca-font-sans);
    font-weight: 600;
}

.page-deca-games .ca-hero-full__sub,
.page-deca-games .deca-mock-card__desc,
.page-deca-games .deca-mock-card__sub,
.page-deca-games .deca-mock-footer__tagline,
.page-deca-games .deca-mock-progress__xp,
.page-deca-games .deca-mock-lb__info small,
.page-deca-games .deca-mock-reward span,
.page-deca-games .deca-mock-streak__label,
.page-deca-games .deca-mock-streak__letter,
.page-deca-games .ca-hero-stat__label {
    font-family: var(--ca-font-sans);
    font-weight: 500;
}

/* Cinzel Bold + gold gradient / bevel / glow */
.page-deca-games .ca-hero-full__title-line,
.page-deca-games .ca-hero-stat__num,
.page-deca-games .deca-mock-card__title,
.page-deca-games .deca-mock-panel__title,
.page-deca-games .deca-mock-streak__count,
.page-deca-games .deca-mock-footer__quote,
.page-deca-games .deca-mock-card__link,
.page-deca-games .deca-mock-archive summary {
    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));
}

.page-deca-games .deca-mock-card__heading {
    font-family: var(--ca-font-serif);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-deca-games .deca-mock-card.ca-frame,
.page-deca-games .deca-mock-panel.ca-frame,
.page-deca-games .deca-mock-footer__frame.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);
}

.page-deca-games .deca-mock-card--mcq.ca-frame {
    border-color: var(--ca-gold-border);
}

.page-deca-games .deca-mock-card--editor.ca-frame {
    border-color: rgba(34, 197, 94, 0.55);
    outline-color: rgba(34, 197, 94, 0.25);
    box-shadow:
        inset 0 0 0 1px rgba(34, 197, 94, 0.15),
        inset 0 2px 10px rgba(34, 197, 94, 0.06),
        0 0 22px rgba(34, 197, 94, 0.28),
        0 8px 32px rgba(0, 0, 0, 0.5);
}

.page-deca-games .deca-mock-lb__rank {
    font-family: var(--ca-font-sans);
    font-weight: 800;
    -webkit-text-fill-color: #1a0f03;
    background: radial-gradient(circle at 50% 30%, #ffe566 0%, #f59e0b 48%, #b45309 100%);
    background-clip: border-box;
    -webkit-background-clip: border-box;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.4));
}

.page-deca-games .deca-mock-lb__xp {
    font-family: var(--ca-font-serif);
    font-weight: 700;
    -webkit-text-fill-color: var(--ca-gold);
    background: linear-gradient(180deg, rgba(76, 29, 149, 0.95) 0%, rgba(30, 10, 60, 0.98) 100%);
    background-clip: border-box;
    -webkit-background-clip: border-box;
    filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.35));
}

.page-deca-games .deca-mock-mission-panel__title {
    font-family: var(--ca-font-serif);
    font-weight: 700;
    color: var(--ca-gold);
    -webkit-text-fill-color: var(--ca-gold);
    background: none;
    filter: drop-shadow(0 0 10px var(--ca-gold-glow));
}

/* Purple buttons */
.page-deca-games .deca-mock-card__btn:not(.deca-mock-card__btn--gold):not(.deca-mock-card__btn--green),
.page-deca-games .deca-mock-card__btn--archive,
.page-deca-games .deca-mock-progress__btn,
.page-deca-games .deca-mock-footer__cta,
.page-deca-games .deca-mock-card--mcq .deca-mock-card__btn {
    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;
    -webkit-text-fill-color: #fff;
    filter: none;
}

.page-deca-games .deca-mock-card__btn:not(.deca-mock-card__btn--gold):not(.deca-mock-card__btn--green):hover,
.page-deca-games .deca-mock-card__btn--archive:hover,
.page-deca-games .deca-mock-progress__btn:hover,
.page-deca-games .deca-mock-footer__cta:hover,
.page-deca-games .deca-mock-card--mcq .deca-mock-card__btn: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 buttons */
.page-deca-games .deca-mock-card__btn--gold,
.page-deca-games .deca-mock-card--mission .deca-mock-card__btn {
    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;
    -webkit-text-fill-color: #fff;
    filter: none;
}

.page-deca-games .deca-mock-card__btn--gold:hover,
.page-deca-games .deca-mock-card--mission .deca-mock-card__btn: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;
}

.page-deca-games .deca-mock-progress__btn {
    color: var(--ca-gold);
    -webkit-text-fill-color: var(--ca-gold);
}

/* ── Responsive ── */
@media (max-width: 1280px) {
    .deca-mock-top {
        grid-template-columns: 1.4fr 1fr 1fr;
        grid-template-areas:
            'mission mission mission'
            'mcq editor calendar'
            'lb lb lb';
    }

    .deca-mock-card--mission { grid-area: mission; }
    .deca-mock-card--mcq { grid-area: mcq; }
    .deca-mock-card--editor { grid-area: editor; }
    .deca-mock-card--calendar { grid-area: calendar; }
    .deca-mock-card--leaderboard { grid-area: lb; }

    .deca-mock-bottom {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    /* Grow with content so the title isn't pushed up under the sticky header on
       phones (inner is position:absolute with flex-end over a fixed-height hero). */
    .page-deca-games .ca-hero-full--deca-mock {
        height: auto;
        min-height: clamp(280px, calc(100vw * 591 / 1024), 440px);
    }

    .page-deca-games .ca-hero-full--deca-mock .ca-hero-full__bg img {
        object-position: center 38%;
    }

    .ca-hero-full--deca-mock .ca-hero-full__inner {
        position: relative;
        inset: auto;
        width: 100%;
        max-width: 100%;
        padding: 24px 18px 28px;
        align-items: flex-end;
    }

    .ca-hero-full--deca-mock .ca-hero-full__content {
        max-width: 100%;
    }

    .ca-hero-full--deca-mock .ca-hero-full__stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 18px;
        max-width: 100%;
    }

    .ca-hero-full--deca-mock .ca-hero-stat {
        flex: none;
    }

    .ca-hero-full--deca-mock .ca-hero-stat__label {
        max-width: none;
    }

    .deca-mock-card--mission__body {
        flex-direction: column;
        text-align: center;
    }

    .deca-mock-card__btn--gold {
        align-self: center;
    }

    .deca-subnav--ornate {
        margin-top: -16px;
        padding: 0 12px 16px;
        overflow: visible;
        max-width: 100%;
    }

    .deca-subnav--ornate .deca-subnav__track {
        flex-direction: column;
        gap: 8px;
        min-width: 0 !important;
        width: 100%;
        filter: none;
    }

    .deca-subnav--ornate .deca-subnav__tab--first {
        clip-path: none !important;
        margin: 0 !important;
        padding: 12px 14px !important;
        min-width: 0 !important;
        flex: none !important;
        width: 100%;
        border-radius: 8px;
        border: 1px solid rgba(212, 175, 96, 0.5);
        background: linear-gradient(180deg, rgba(14, 18, 34, 0.96) 0%, rgba(4, 7, 16, 0.98) 100%);
    }

    .deca-subnav__group {
        flex-direction: column;
        gap: 8px;
        min-width: 0 !important;
        width: 100%;
        /* flex:2.95 1 0 + min-height:46px collapses this group's height in the
           vertical mobile track, overflowing its tabs over the content below. */
        flex: none !important;
        min-height: 0 !important;
        height: auto !important;
        clip-path: none !important;
        margin: 0 !important;
        background: transparent !important;
        align-self: stretch;
    }

    .deca-subnav__group::before,
    .deca-subnav__group::after {
        display: none !important;
    }

    .deca-subnav--ornate .deca-subnav__group .deca-subnav__tab {
        clip-path: none !important;
        margin: 0 !important;
        padding: 11px 14px !important;
        min-width: 0 !important;
        flex: none !important;
        width: 100%;
        border-radius: 8px;
        border: 1px solid rgba(212, 175, 96, 0.4);
        background: linear-gradient(180deg, rgba(14, 18, 34, 0.96) 0%, rgba(4, 7, 16, 0.98) 100%);
    }

    .deca-subnav--ornate .deca-subnav__group .deca-subnav__tab + .deca-subnav__tab::before {
        display: none !important;
    }

    .deca-subnav--ornate .deca-subnav__tab.is-active {
        border-color: rgba(168, 85, 247, 0.9);
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
            linear-gradient(180deg, #6d28d9 0%, #4c1d95 55%, #2e1065 100%);
        color: #fff;
    }

    .deca-subnav--ornate .deca-subnav__tab.is-active .deca-subnav__frame,
    .deca-subnav--ornate .deca-subnav__tab.is-active .deca-subnav__gem {
        display: none;
    }

    .deca-mock-hub {
        padding: 0 12px 24px;
    }

    .deca-subnav:not(.deca-subnav--ornate) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .deca-mock-top {
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }

    .deca-mock-bottom {
        grid-template-columns: 1fr;
    }

    .deca-mock-card {
        min-height: 0;
    }
}

/* Gold "View Progress & Badges" button + gold XP label (matches mockup) */
.page-deca-games .deca-mock-progress__btn,
.page-deca-games .deca-mock-progress__btn:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 38%),
        linear-gradient(180deg, #fcd34d 0%, #f0b429 45%, #b45309 100%);
    border: 1px solid #ffe082;
    color: #2a1503;
    -webkit-text-fill-color: #2a1503;
    box-shadow:
        0 0 18px rgba(240, 180, 41, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -3px 8px rgba(0, 0, 0, 0.25);
}

.page-deca-games .deca-mock-progress__btn:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.26) 0%, transparent 38%),
        linear-gradient(180deg, #fde68a 0%, #f6c842 48%, #c2660c 100%);
    box-shadow:
        0 0 26px rgba(240, 180, 41, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        inset 0 -3px 8px rgba(0, 0, 0, 0.25);
}

.page-deca-games .deca-mock-progress__xp {
    color: var(--ca-gold);
    font-weight: 600;
}

@media (max-width: 575px) {
    .deca-mock-footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .deca-mock-footer__message {
        flex-direction: column;
        text-align: center;
    }

    .deca-mock-footer__cta {
        width: 100%;
        justify-content: center;
    }

    .deca-mock-missions {
        grid-template-columns: repeat(2, 1fr);
    }
}
