.main-content:has(> .cq-page) {
    padding-block: 0;
}

.cq-page {
    --cq-cyan: #32dcff;
    --cq-blue: #3478ff;
    --cq-violet: #8b5cff;
    --cq-green: #3ee69b;
    --cq-red: #ff647c;
    --cq-panel: rgba(9, 17, 38, 0.88);
    --cq-border: rgba(133, 194, 255, 0.2);
    min-height: 100vh;
    padding: clamp(52px, 6vw, 76px) 20px 72px;
    color: #f7fbff;
    background:
        radial-gradient(circle at 12% 14%, rgba(50, 220, 255, 0.13), transparent 28%),
        radial-gradient(circle at 90% 20%, rgba(139, 92, 255, 0.16), transparent 30%),
        linear-gradient(180deg, #050914 0%, #080d1d 48%, #050914 100%);
}

.cq-page [hidden] {
    display: none !important;
}

.cq-hero,
.cq-shell,
.cq-rewards,
.cq-guide,
.cq-unavailable {
    width: min(1160px, 100%);
    margin-inline: auto;
}

.cq-rewards {
    margin-top: 28px;
    padding: clamp(28px, 5vw, 52px);
    border: 1px solid var(--cq-border);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(15, 28, 57, 0.94), rgba(8, 13, 31, 0.96));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.cq-guide {
    display: grid;
    grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(26px, 5vw, 58px);
    margin-top: 28px;
    padding: clamp(28px, 4vw, 42px);
    border: 1px solid var(--cq-border);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(12, 26, 53, 0.92), rgba(8, 14, 31, 0.96));
}

.cq-guide__heading h2 {
    margin: 8px 0 10px;
    color: #fff;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.cq-guide__heading p,
.cq-guide__steps p {
    margin: 0;
    color: #9fb0c9;
    line-height: 1.6;
}

.cq-guide__steps {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cq-guide__steps li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding: 15px;
    border: 1px solid rgba(128, 186, 255, 0.16);
    border-radius: 15px;
    background: rgba(14, 25, 51, 0.7);
}

.cq-guide__steps li > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    color: #06111e;
    background: linear-gradient(135deg, var(--cq-cyan), #86f3ff);
    font-weight: 900;
}

.cq-guide__steps h3 {
    margin: 1px 0 4px;
    color: #fff;
    font-size: 1rem;
}

.cq-guide__steps p {
    font-size: 0.84rem;
}

.cq-rewards__heading {
    max-width: 680px;
    margin: 0 auto 30px;
    text-align: center;
}

.cq-rewards__heading h2 {
    margin: 7px 0 10px;
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    letter-spacing: -0.03em;
}

.cq-rewards__heading p {
    margin: 0;
    color: #9fb0c9;
    line-height: 1.65;
}

.cq-rewards__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.cq-reward-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border: 1px solid rgba(128, 186, 255, 0.2);
    border-radius: 22px;
    text-align: center;
    background: rgba(14, 25, 51, 0.86);
}

.cq-reward-card::before {
    content: "";
    position: absolute;
    top: -80px;
    left: 50%;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    opacity: 0.22;
    filter: blur(30px);
    transform: translateX(-50%);
    pointer-events: none;
}

.cq-reward-card--observer::before { background: #ff9a31; }
.cq-reward-card--expert::before { background: #975cff; }
.cq-reward-card--master::before { background: #ffd447; }

.cq-reward-card__visual {
    position: relative;
    width: min(210px, 90%);
    aspect-ratio: 1;
    margin: 0 auto 2px;
}

.cq-reward-card__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.38));
}

.cq-reward-card__visual span {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 69%;
    left: 50%;
    width: 82%;
    min-height: 25px;
    box-sizing: border-box;
    overflow: hidden;
    padding: 4px 7px;
    border: 2px solid #8cecff;
    border-radius: 5px;
    color: #fff;
    background: #071235;
    box-shadow: 0 3px 0 rgba(2, 7, 24, 0.9), 0 0 10px rgba(50, 220, 255, 0.28);
    font-family: "Arial Black", Arial, sans-serif;
    font-size: clamp(0.64rem, 0.92vw, 0.78rem);
    font-weight: 900;
    letter-spacing: 0.01em;
    line-height: 1;
    text-overflow: ellipsis;
    text-shadow: 0 1px 0 #000;
    white-space: nowrap;
    transform: translate(-50%, -50%);
}

.cq-reward-card--observer .cq-reward-card__visual span { border-color: #ffb45c; }
.cq-reward-card--expert .cq-reward-card__visual span { border-color: #cbb6ff; }
.cq-reward-card--master .cq-reward-card__visual span { border-color: #ffe066; }

.cq-reward-card__range {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 10px;
    border: 1px solid rgba(50, 220, 255, 0.28);
    border-radius: 999px;
    color: var(--cq-cyan);
    background: rgba(50, 220, 255, 0.08);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.cq-reward-card h3 {
    margin: 0;
    color: #fff;
    font-size: 1.08rem;
}

.cq-reward-card p {
    margin: 9px 0 0;
    color: #9fb0c9;
    font-size: 0.86rem;
    line-height: 1.55;
}

.cq-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    align-items: center;
    gap: clamp(22px, 4vw, 42px);
    overflow: hidden;
    padding: clamp(24px, 3.5vw, 40px);
    border: 1px solid var(--cq-border);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(18, 36, 72, 0.94), rgba(10, 15, 34, 0.96)),
        var(--cq-panel);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

.cq-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(80, 200, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(80, 200, 255, 0.12) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(90deg, #000, transparent 82%);
}

.cq-hero__glow {
    position: absolute;
    z-index: -1;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    filter: blur(22px);
    pointer-events: none;
}

.cq-hero__glow--one {
    top: -170px;
    left: 22%;
    background: rgba(50, 220, 255, 0.22);
}

.cq-hero__glow--two {
    right: -120px;
    bottom: -180px;
    background: rgba(139, 92, 255, 0.32);
}

.cq-eyebrow,
.cq-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--cq-cyan);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cq-hero h1 {
    max-width: 680px;
    margin: 10px 0 12px;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.cq-hero__content > p {
    max-width: 680px;
    margin: 0;
    color: #b8c6df;
    font-size: clamp(0.96rem, 1.5vw, 1.08rem);
    line-height: 1.55;
}

.cq-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.cq-facts span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 8px 13px;
    border: 1px solid rgba(141, 198, 255, 0.17);
    border-radius: 999px;
    color: #c8d7ee;
    background: rgba(4, 10, 25, 0.4);
    font-size: 0.8rem;
}

.cq-facts i {
    color: var(--cq-cyan);
}

.cq-hero__mark {
    position: relative;
    display: grid;
    width: 120px;
    height: 120px;
    place-items: center;
    justify-self: center;
    border: 1px solid rgba(104, 226, 255, 0.35);
    border-radius: 50%;
    color: #fff;
    background: radial-gradient(circle, rgba(70, 153, 255, 0.42), rgba(76, 54, 157, 0.13) 58%, transparent 60%);
    box-shadow: inset 0 0 44px rgba(50, 220, 255, 0.1), 0 0 50px rgba(50, 220, 255, 0.12);
}

.cq-hero__mark i {
    font-size: 3rem;
    filter: drop-shadow(0 0 18px rgba(50, 220, 255, 0.45));
}

.cq-hero__mark-ring {
    position: absolute;
    inset: 10px;
    display: grid;
    place-items: center;
    border-radius: inherit;
}

.cq-hero__mark-ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px dashed rgba(180, 222, 255, 0.46);
    border-radius: inherit;
    animation: cq-spin 22s linear infinite;
}

.cq-hero__mark-ring img {
    display: block;
    width: 94%;
    height: 94%;
    object-fit: contain;
    opacity: 1;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.42));
    transform: rotate(0) scale(1);
    transition: opacity 220ms ease, transform 220ms ease;
}

.cq-hero__mark-ring.is-switching img {
    opacity: 0;
    transform: rotate(30deg) scale(0.5);
}

.cq-shell {
    margin-top: 28px;
    overflow: hidden;
    border: 1px solid var(--cq-border);
    border-radius: 28px;
    background: var(--cq-panel);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.cq-intro {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(36px, 7vw, 88px);
    min-height: 540px;
    padding: clamp(34px, 7vw, 76px);
}

.cq-preview {
    position: relative;
    width: min(430px, 100%);
    aspect-ratio: 1;
    margin-inline: auto;
}

.cq-preview__card {
    position: absolute;
    width: 58%;
    aspect-ratio: 0.82;
    overflow: hidden;
    border: 1px solid rgba(174, 217, 255, 0.22);
    border-radius: 22px;
    background: linear-gradient(145deg, #15284b, #0c1328);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.38);
}

.cq-preview__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cq-preview__card--1 {
    top: 8%;
    left: 3%;
    z-index: 1;
    transform: rotate(-10deg);
}

.cq-preview__card--2 {
    top: 0;
    left: 24%;
    z-index: 3;
}

.cq-preview__card--3 {
    top: 10%;
    right: 0;
    z-index: 2;
    transform: rotate(10deg);
}

.cq-preview__question {
    position: absolute;
    right: 2%;
    bottom: 4%;
    z-index: 5;
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border: 6px solid #0d162c;
    border-radius: 50%;
    color: #07101f;
    background: var(--cq-cyan);
    box-shadow: 0 14px 35px rgba(50, 220, 255, 0.28);
    font-size: 2rem;
}

.cq-intro__copy h2,
.cq-question-copy h2,
.cq-result__copy h2,
.cq-unavailable h2 {
    margin: 12px 0 14px;
    color: #fff;
    font-size: clamp(1.8rem, 3.4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.cq-intro__copy p,
.cq-result__summary,
.cq-unavailable p {
    margin: 0;
    color: #aebdd6;
    line-height: 1.75;
}

.cq-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 11px 19px;
    border: 1px solid transparent;
    border-radius: 13px;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.cq-button:hover:not(:disabled) {
    transform: translateY(-2px);
}

.cq-button:focus-visible,
.cq-answer:focus-visible {
    outline: 3px solid rgba(50, 220, 255, 0.42);
    outline-offset: 3px;
}

.cq-button:disabled {
    opacity: 0.46;
    cursor: not-allowed;
}

.cq-button--primary {
    color: #05101c;
    background: linear-gradient(135deg, var(--cq-cyan), #72f1ff);
    box-shadow: 0 12px 28px rgba(50, 220, 255, 0.18);
}

.cq-button--ghost {
    border-color: rgba(160, 205, 255, 0.23);
    color: #dbe9fb;
    background: rgba(16, 28, 53, 0.74);
}

.cq-button--large {
    min-height: 56px;
    margin-top: 28px;
    padding-inline: 25px;
}

.cq-game {
    min-height: 660px;
    padding: clamp(26px, 5vw, 54px);
    scroll-margin-top: 96px;
}

.cq-game__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #aebed7;
    font-size: 0.9rem;
    font-weight: 700;
}

.cq-game__topline strong {
    color: var(--cq-cyan);
}

.cq-progress {
    width: 100%;
    height: 7px;
    margin: 13px 0 38px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(143, 181, 226, 0.12);
}

.cq-progress__bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cq-cyan), var(--cq-violet));
    box-shadow: 0 0 16px rgba(50, 220, 255, 0.46);
    transition: width 280ms ease;
}

.cq-progress__bar--1 { width: 10%; }
.cq-progress__bar--2 { width: 20%; }
.cq-progress__bar--3 { width: 30%; }
.cq-progress__bar--4 { width: 40%; }
.cq-progress__bar--5 { width: 50%; }
.cq-progress__bar--6 { width: 60%; }
.cq-progress__bar--7 { width: 70%; }
.cq-progress__bar--8 { width: 80%; }
.cq-progress__bar--9 { width: 90%; }
.cq-progress__bar--10 { width: 100%; }

.cq-question-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
    align-items: center;
    gap: clamp(32px, 6vw, 74px);
}

.cq-cosmetic-card {
    position: relative;
    isolation: isolate;
    width: min(440px, 100%);
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(142, 213, 255, 0.28);
    border-radius: 26px;
    background:
        radial-gradient(circle at 50% 78%, rgba(50, 220, 255, 0.22), transparent 38%),
        linear-gradient(145deg, #17284a, #0b1225 72%);
    box-shadow: inset 0 0 70px rgba(68, 154, 255, 0.08), 0 30px 60px rgba(0, 0, 0, 0.32);
}

.cq-cosmetic-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.32;
    background-image:
        linear-gradient(rgba(121, 204, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(121, 204, 255, 0.1) 1px, transparent 1px);
    background-size: 34px 34px;
}

.cq-cosmetic-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 160ms ease, transform 240ms ease;
}

.cq-cosmetic-card.is-changing img {
    opacity: 0;
    transform: scale(0.97);
}

.cq-type {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    padding: 7px 11px;
    border: 1px solid rgba(172, 222, 255, 0.26);
    border-radius: 999px;
    color: #dcecff;
    background: rgba(4, 10, 24, 0.74);
    backdrop-filter: blur(8px);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cq-image-shine {
    position: absolute;
    inset: auto 8% 4%;
    height: 17%;
    border-radius: 50%;
    background: rgba(50, 220, 255, 0.14);
    filter: blur(22px);
    pointer-events: none;
}

.cq-question-copy {
    min-width: 0;
}

.cq-question-copy h2 {
    max-width: 520px;
}

.cq-question-copy h2:focus-visible {
    outline: 3px solid rgba(50, 220, 255, 0.42);
    outline-offset: 5px;
    border-radius: 4px;
}

.cq-answers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.cq-answer {
    display: flex;
    min-height: 72px;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid rgba(139, 187, 236, 0.2);
    border-radius: 15px;
    color: #edf6ff;
    background: rgba(14, 27, 51, 0.82);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.cq-answer:hover:not(:disabled) {
    z-index: 1;
    border-color: rgba(50, 220, 255, 0.58);
    background: rgba(21, 46, 79, 0.96);
    transform: translateY(-2px);
}

.cq-answer:disabled {
    cursor: default;
}

.cq-answer__letter {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    color: var(--cq-cyan);
    background: rgba(50, 220, 255, 0.1);
    font-size: 0.8rem;
    font-weight: 900;
}

.cq-answer__label {
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.cq-answer.is-correct {
    border-color: rgba(62, 230, 155, 0.72);
    background: rgba(27, 111, 79, 0.45);
    box-shadow: inset 0 0 0 1px rgba(62, 230, 155, 0.12);
}

.cq-answer.is-correct .cq-answer__letter {
    color: #052216;
    background: var(--cq-green);
}

.cq-answer.is-wrong {
    border-color: rgba(255, 100, 124, 0.7);
    background: rgba(116, 36, 55, 0.42);
}

.cq-answer.is-wrong .cq-answer__letter {
    color: #2a060d;
    background: var(--cq-red);
}

.cq-answer.is-muted {
    opacity: 0.48;
}

.cq-feedback {
    min-height: 48px;
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    color: #d9e8f8;
    background: rgba(126, 157, 202, 0.1);
    line-height: 1.45;
}

.cq-feedback.is-correct {
    color: #a9ffd6;
    background: rgba(62, 230, 155, 0.11);
}

.cq-feedback.is-wrong {
    color: #ffc2cd;
    background: rgba(255, 100, 124, 0.11);
}

.cq-feedback.is-checking {
    color: #bdefff;
    background: rgba(50, 220, 255, 0.1);
}

.cq-next {
    margin-top: 18px;
}

.cq-result {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: center;
    gap: clamp(34px, 7vw, 82px);
    min-height: 590px;
    padding: clamp(38px, 7vw, 78px);
    scroll-margin-top: 96px;
}

.cq-result__score {
    position: relative;
    display: grid;
    width: 220px;
    height: 220px;
    place-content: center;
    justify-items: center;
    border: 1px solid rgba(105, 224, 255, 0.48);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(50, 220, 255, 0.19), transparent 64%),
        rgba(7, 14, 30, 0.8);
    box-shadow: inset 0 0 40px rgba(50, 220, 255, 0.09), 0 0 55px rgba(50, 220, 255, 0.13);
}

.cq-result__score::after {
    content: "";
    position: absolute;
    inset: 13px;
    border: 1px dashed rgba(174, 220, 255, 0.4);
    border-radius: inherit;
}

.cq-result__score span {
    font-size: 5rem;
    font-weight: 900;
    line-height: 0.9;
}

.cq-result__score small {
    margin-top: 10px;
    color: #9fb1ca;
    font-size: 1rem;
    font-weight: 800;
}

.cq-badge-placeholder {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 16px;
    margin-top: 28px;
    padding: 19px;
    border: 1px dashed rgba(139, 196, 255, 0.3);
    border-radius: 18px;
    background: rgba(16, 29, 54, 0.68);
}

.cq-badge-placeholder__icon {
    position: relative;
    display: grid;
    width: 136px;
    height: 136px;
    place-items: center;
    border-radius: 17px;
    color: var(--cq-cyan);
    background: linear-gradient(145deg, rgba(50, 220, 255, 0.18), rgba(139, 92, 255, 0.18));
}

.cq-badge-placeholder__ribbon {
    position: absolute;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 69%;
    left: 50%;
    width: 82%;
    min-height: 20px;
    box-sizing: border-box;
    overflow: hidden;
    padding: 3px 5px;
    border: 1.5px solid #8cecff;
    border-radius: 4px;
    color: #fff;
    background: #071235;
    box-shadow: 0 2px 0 rgba(2, 7, 24, 0.9), 0 0 8px rgba(50, 220, 255, 0.25);
    font-family: "Arial Black", Arial, sans-serif;
    font-size: clamp(0.48rem, 0.78vw, 0.62rem);
    font-weight: 900;
    letter-spacing: 0.005em;
    line-height: 1;
    text-align: center;
    text-overflow: ellipsis;
    text-shadow: 0 1px 0 #000;
    text-transform: uppercase;
    white-space: nowrap;
    transform: translate(-50%, -50%);
}

.cq-badge-placeholder[data-badge-tier="observer"] .cq-badge-placeholder__ribbon { border-color: #ffb45c; }
.cq-badge-placeholder[data-badge-tier="expert"] .cq-badge-placeholder__ribbon { border-color: #cbb6ff; }
.cq-badge-placeholder[data-badge-tier="master"] .cq-badge-placeholder__ribbon { border-color: #ffe066; }

.cq-badge-placeholder__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.32));
}

.cq-badge-placeholder.is-earned {
    border-style: solid;
    border-color: rgba(50, 220, 255, 0.38);
    background: linear-gradient(135deg, rgba(23, 44, 79, 0.88), rgba(20, 24, 55, 0.82));
}

.cq-badge-placeholder.is-earned .cq-badge-placeholder__icon {
    background: transparent;
}

.cq-badge-placeholder small,
.cq-badge-placeholder strong {
    display: block;
}

.cq-badge-placeholder small {
    margin-bottom: 3px;
    color: var(--cq-cyan);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cq-badge-placeholder strong {
    color: #fff;
    font-size: 1.08rem;
}

.cq-badge-placeholder p {
    margin: 7px 0 0;
    color: #9fb0c9;
    font-size: 0.88rem;
    line-height: 1.55;
}

.cq-badge-save-status {
    margin: 12px 0 0;
    color: #b9c9df;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.5;
}

.cq-badge-save-status a {
    display: inline-flex;
    margin-left: 4px;
    color: var(--cq-cyan);
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cq-result__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.cq-unavailable {
    display: grid;
    justify-items: center;
    margin-top: 28px;
    padding: clamp(50px, 8vw, 90px) 24px;
    border: 1px solid var(--cq-border);
    border-radius: 28px;
    text-align: center;
    background: var(--cq-panel);
}

.cq-unavailable p {
    max-width: 600px;
    margin-bottom: 24px;
}

.cq-unavailable__icon {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border-radius: 22px;
    color: var(--cq-cyan);
    background: rgba(50, 220, 255, 0.1);
    font-size: 1.8rem;
}

@keyframes cq-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 850px) {
    .cq-guide {
        grid-template-columns: 1fr;
    }

    .cq-rewards__grid {
        grid-template-columns: 1fr;
    }

    .cq-reward-card {
        display: grid;
        grid-template-columns: 180px minmax(0, 1fr);
        align-items: center;
        text-align: left;
    }

    .cq-reward-card__visual {
        grid-row: span 3;
    }

    .cq-hero {
        grid-template-columns: 1fr;
    }

    .cq-hero__mark {
        display: none;
    }

    .cq-intro,
    .cq-question-layout,
    .cq-result {
        grid-template-columns: 1fr;
    }

    .cq-intro {
        min-height: 0;
    }

    .cq-preview {
        width: min(360px, 90%);
    }

    .cq-intro__copy {
        order: -1;
        text-align: center;
    }

    .cq-cosmetic-card,
    .cq-result__score {
        margin-inline: auto;
    }

    .cq-result__copy {
        text-align: center;
    }

    .cq-badge-placeholder {
        text-align: left;
    }

    .cq-result__actions {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .cq-page {
        padding-top: 42px;
        padding-inline: 12px;
        padding-bottom: 54px;
    }

    .cq-hero,
    .cq-shell,
    .cq-rewards,
    .cq-guide,
    .cq-unavailable {
        border-radius: 20px;
    }

    .cq-hero {
        padding: 22px 18px;
    }

    .cq-hero h1 {
        font-size: clamp(1.85rem, 10vw, 2.65rem);
    }

    .cq-facts {
        display: grid;
    }

    .cq-intro,
    .cq-game,
    .cq-result {
        padding: 26px 18px;
    }

    .cq-preview__question {
        width: 64px;
        height: 64px;
        border-width: 5px;
        font-size: 1.4rem;
    }

    .cq-progress {
        margin-bottom: 24px;
    }

    .cq-answers {
        grid-template-columns: 1fr;
    }

    .cq-answer {
        min-height: 62px;
    }

    .cq-result__score {
        width: 176px;
        height: 176px;
    }

    .cq-result__score span {
        font-size: 4rem;
    }

    .cq-badge-placeholder {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cq-reward-card {
        display: block;
        text-align: center;
    }

    .cq-badge-placeholder__icon {
        justify-self: center;
    }

    .cq-result__actions,
    .cq-result__actions .cq-button {
        width: 100%;
    }

    .cq-guide {
        padding: 24px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cq-hero__mark-ring::before {
        animation: none;
    }

    .cq-hero__mark-ring img {
        transition: none;
    }

    .cq-button,
    .cq-answer,
    .cq-progress__bar,
    .cq-cosmetic-card img {
        transition: none;
    }
}

/* Compact arcade layout: the landing view behaves like a game poster, not a long landing page. */
.cq-page {
    --cq-cyan: #62e6ff;
    --cq-pink: #ff2ba6;
    --cq-violet: #7847ff;
    --cq-panel: rgba(8, 8, 32, 0.92);
    --cq-border: rgba(158, 108, 255, 0.3);
    min-height: auto;
    padding: clamp(28px, 4vw, 48px) 16px 48px;
    background:
        radial-gradient(circle at 14% 6%, rgba(35, 205, 255, 0.12), transparent 25rem),
        radial-gradient(circle at 88% 18%, rgba(255, 43, 166, 0.14), transparent 30rem),
        linear-gradient(180deg, #050716 0%, #09051c 52%, #050712 100%);
}

.cq-hero,
.cq-shell,
.cq-rewards,
.cq-guide,
.cq-unavailable {
    width: min(1120px, 100%);
}

/* Requested desktop scale-up: 1.4x, while preserving the verified mobile layout. */
@media (min-width: 851px) {
    .cq-hero,
    .cq-shell,
    .cq-rewards,
    .cq-guide,
    .cq-unavailable {
        width: min(1568px, 100%);
    }

    .cq-hero {
        grid-template-columns: minmax(0, 1.03fr) minmax(476px, .76fr);
        min-height: 616px;
        padding: 59px 64px 31px;
        border-radius: 30px;
    }

    .cq-eyebrow {
        font-size: .92rem;
    }

    .cq-hero h1 {
        max-width: 780px;
        margin: 13px 0 17px;
        font-size: clamp(3.55rem, 6.4vw, 6.44rem);
    }

    .cq-hero__content > p {
        max-width: 714px;
        font-size: 1.4rem;
    }

    .cq-button--large {
        min-height: 73px;
        margin-top: 28px;
        padding: 14px 31px;
        font-size: 1.29rem;
    }

    .cq-hero__visual {
        min-height: 441px;
    }

    .cq-hero__visual .cq-preview__question {
        width: 76px;
        height: 76px;
        font-size: 1.75rem;
    }

    .cq-hero__mark {
        width: 104px;
        height: 104px;
    }

    .cq-facts {
        margin: 20px -64px -31px;
    }

    .cq-facts span {
        min-height: 81px;
        padding: 13px 21px;
        font-size: 1.06rem;
    }

    .cq-shell,
    .cq-rewards,
    .cq-guide {
        margin-top: 22px;
        border-radius: 28px;
    }

    .cq-rewards {
        padding: 31px 34px 34px;
    }

    .cq-rewards__heading h2,
    .cq-guide__heading h2 {
        font-size: clamp(1.9rem, 3vw, 2.52rem);
    }

    .cq-rewards__heading p,
    .cq-guide__heading p {
        font-size: 1.05rem;
    }

    .cq-reward-card {
        grid-template-columns: 115px minmax(0, 1fr);
        gap: 0 15px;
        padding: 17px;
    }

    .cq-reward-card__visual {
        width: 115px;
        min-height: 115px;
    }

    .cq-reward-card__visual img {
        width: 109px;
        height: 109px;
    }

    .cq-reward-card h3 {
        font-size: 1.27rem;
    }

    .cq-reward-card p {
        font-size: 1rem;
    }

    .cq-guide {
        padding: 29px 34px 34px;
    }

    .cq-guide__steps {
        gap: 14px;
    }

    .cq-guide__steps li {
        grid-template-columns: 45px minmax(0, 1fr);
        gap: 13px;
        padding: 17px;
    }

    .cq-guide__steps li > span {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .cq-guide__steps h3 {
        font-size: 1.15rem;
    }

    .cq-guide__steps p {
        font-size: .98rem;
    }
}

.cq-hero {
    grid-template-columns: minmax(0, 1.03fr) minmax(340px, 0.76fr);
    grid-template-areas:
        "copy visual"
        "facts facts";
    gap: 10px 28px;
    min-height: 440px;
    padding: 42px 46px 22px;
    border-color: rgba(183, 95, 255, 0.34);
    border-radius: 22px;
    background:
        linear-gradient(96deg, rgba(13, 8, 42, 0.98) 0%, rgba(21, 7, 48, 0.91) 56%, rgba(11, 7, 34, 0.72) 100%),
        var(--cq-panel);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35), inset 0 0 70px rgba(112, 52, 255, 0.08);
}

.cq-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, transparent 63%, rgba(255, 43, 166, 0.13)),
        radial-gradient(circle at 82% 45%, rgba(139, 70, 255, 0.36), transparent 34%);
    pointer-events: none;
}

.cq-hero::after {
    opacity: 0.13;
    background-size: 30px 30px;
    mask-image: linear-gradient(90deg, #000, transparent 68%);
}

.cq-hero__content {
    grid-area: copy;
    position: relative;
    z-index: 3;
    align-self: center;
}

.cq-eyebrow {
    color: #f2b7ff;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
}

.cq-eyebrow i {
    color: var(--cq-pink);
}

.cq-hero h1 {
    max-width: 560px;
    margin: 9px 0 12px;
    font-size: clamp(2.55rem, 5.2vw, 4.6rem);
    line-height: 0.93;
    letter-spacing: -0.065em;
    text-wrap: balance;
}

.cq-hero h1::first-line {
    text-shadow: 0 0 28px rgba(255, 43, 166, 0.16);
}

.cq-hero__content > p {
    max-width: 510px;
    color: #c8c2db;
    font-size: 1rem;
    line-height: 1.5;
}

.cq-button {
    border-radius: 9px;
}

.cq-button--primary {
    color: #fff;
    background: linear-gradient(135deg, #d9168f, #ff38b0 62%, #ff59c0);
    box-shadow: 0 10px 28px rgba(255, 43, 166, 0.3), inset 0 1px rgba(255, 255, 255, 0.22);
}

.cq-button--large {
    min-height: 52px;
    margin-top: 20px;
    padding: 10px 22px;
    font-size: 0.92rem;
    letter-spacing: 0.015em;
}

.cq-hero__visual {
    grid-area: visual;
    position: relative;
    align-self: stretch;
    min-height: 315px;
}

.cq-hero__visual .cq-preview {
    position: absolute;
    inset: 0 -8px 0 0;
    width: auto;
    aspect-ratio: auto;
    margin: 0;
}

.cq-hero__visual .cq-preview__card {
    width: 59%;
    aspect-ratio: 0.78;
    border-color: rgba(239, 156, 255, 0.28);
    border-radius: 20px 20px 9px 9px;
    background: linear-gradient(160deg, #492071, #10132e 72%);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.44);
}

.cq-hero__visual .cq-preview__card img {
    object-fit: contain;
    background: radial-gradient(circle at 50% 68%, rgba(255, 43, 166, 0.18), transparent 52%);
}

.cq-hero__visual .cq-preview__card--1 {
    top: 20%;
    left: -4%;
    transform: rotate(-10deg) scale(0.83);
}

.cq-hero__visual .cq-preview__card--2 {
    top: 2%;
    left: 24%;
}

.cq-hero__visual .cq-preview__card--3 {
    top: 18%;
    right: -5%;
    transform: rotate(10deg) scale(0.85);
}

.cq-hero__visual .cq-preview__question {
    right: 3%;
    bottom: 2%;
    width: 54px;
    height: 54px;
    border: 4px solid #100826;
    color: #fff;
    background: linear-gradient(135deg, var(--cq-pink), var(--cq-violet));
    box-shadow: 0 10px 30px rgba(255, 43, 166, 0.35);
    font-size: 1.25rem;
}

.cq-hero__mark {
    position: absolute;
    right: 45%;
    bottom: -6px;
    z-index: 6;
    width: 74px;
    height: 74px;
    border-color: rgba(255, 203, 73, 0.5);
    background: radial-gradient(circle, rgba(255, 170, 29, 0.38), rgba(90, 30, 124, 0.2) 60%, transparent 62%);
}

.cq-hero__mark-ring {
    inset: 5px;
}

.cq-facts {
    grid-area: facts;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 14px -46px -22px;
    border-top: 1px solid rgba(177, 97, 255, 0.2);
    background: rgba(5, 4, 23, 0.64);
}

.cq-facts span {
    justify-content: center;
    min-height: 58px;
    padding: 9px 15px;
    border: 0;
    border-right: 1px solid rgba(177, 97, 255, 0.16);
    border-radius: 0;
    color: #bbb4cf;
    background: transparent;
    font-size: 0.76rem;
    line-height: 1.25;
    text-align: center;
}

.cq-facts span:last-child {
    border-right: 0;
}

.cq-facts i {
    color: #c873ff;
    font-size: 0.9rem;
}

.cq-shell {
    margin-top: 16px;
    border-color: rgba(136, 91, 238, 0.3);
    border-radius: 20px;
    background: rgba(7, 8, 29, 0.95);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.cq-shell:not(:has(.cq-game:not([hidden]), .cq-result:not([hidden]))) {
    display: none;
}

.cq-game {
    min-height: 0;
    padding: clamp(22px, 4vw, 38px);
}

.cq-progress {
    margin: 10px 0 25px;
}

.cq-question-layout {
    grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(24px, 5vw, 54px);
}

.cq-cosmetic-card {
    width: min(330px, 100%);
    border-radius: 18px;
}

.cq-intro__copy h2,
.cq-question-copy h2,
.cq-result__copy h2,
.cq-unavailable h2 {
    font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.cq-answers {
    gap: 9px;
    margin-top: 18px;
}

.cq-answer {
    min-height: 58px;
    border-radius: 11px;
}

.cq-result {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: clamp(24px, 5vw, 56px);
    min-height: 0;
    padding: clamp(28px, 5vw, 52px);
}

.cq-result__score {
    width: 170px;
    height: 170px;
}

.cq-result__score span {
    font-size: 4rem;
}

.cq-badge-placeholder {
    grid-template-columns: 106px minmax(0, 1fr);
    margin-top: 20px;
    padding: 14px;
}

.cq-badge-placeholder__icon {
    width: 102px;
    height: 102px;
}

.cq-rewards {
    margin-top: 16px;
    padding: 22px 24px 24px;
    border-color: rgba(136, 91, 238, 0.28);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(13, 9, 42, 0.96), rgba(7, 7, 27, 0.98));
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
}

.cq-rewards__heading {
    max-width: none;
    margin: 0 0 16px;
    text-align: left;
}

.cq-rewards__heading h2 {
    margin: 4px 0;
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.cq-rewards__heading p {
    font-size: 0.8rem;
}

.cq-rewards__grid {
    gap: 10px;
}

.cq-reward-card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    align-items: center;
    gap: 0 11px;
    min-width: 0;
    padding: 12px;
    border-radius: 14px;
    text-align: left;
}

.cq-reward-card__visual {
    grid-row: 1 / span 3;
    width: 82px;
    min-height: 82px;
    margin: 0;
}

.cq-reward-card__visual img {
    width: 78px;
    height: 78px;
}

.cq-reward-card__visual span {
    display: none;
}

.cq-reward-card__range {
    margin: 0 0 2px;
    font-size: 0.62rem;
}

.cq-reward-card h3 {
    margin: 0 0 3px;
    font-size: 0.91rem;
}

.cq-reward-card p {
    font-size: 0.72rem;
    line-height: 1.35;
}

.cq-guide {
    display: block;
    margin-top: 16px;
    padding: 21px 24px 24px;
    border-color: rgba(136, 91, 238, 0.28);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(12, 8, 40, 0.96), rgba(7, 7, 27, 0.98));
}

.cq-guide__heading {
    margin-bottom: 15px;
}

.cq-guide__heading h2 {
    margin: 4px 0;
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.cq-guide__heading p {
    max-width: 720px;
    font-size: 0.8rem;
    line-height: 1.45;
}

.cq-guide__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.cq-guide__steps li {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 9px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(20, 13, 56, 0.66);
}

.cq-guide__steps li > span {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--cq-violet), var(--cq-pink));
    font-size: 0.78rem;
}

.cq-guide__steps h3 {
    font-size: 0.82rem;
}

.cq-guide__steps p {
    font-size: 0.7rem;
    line-height: 1.4;
}

@media (max-width: 760px) {
    .cq-hero {
        grid-template-columns: minmax(0, 1fr) 210px;
        min-height: 330px;
        padding: 26px 26px 16px;
    }

    .cq-hero h1 {
        font-size: clamp(2.1rem, 7vw, 3.2rem);
    }

    .cq-hero__visual {
        min-height: 235px;
    }

    .cq-facts {
        margin: 8px -26px -16px;
    }

    .cq-question-layout,
    .cq-result {
        grid-template-columns: 1fr;
    }

    .cq-result__score {
        margin-inline: auto;
    }

    .cq-rewards__grid,
    .cq-guide__steps {
        grid-template-columns: 1fr;
    }

    .cq-reward-card {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .cq-reward-card__visual {
        width: 72px;
        min-height: 72px;
    }

    .cq-reward-card__visual img {
        width: 68px;
        height: 68px;
    }
}

@media (max-width: 560px) {
    .cq-page {
        padding: 18px 10px 36px;
    }

    .cq-hero {
        grid-template-columns: 1fr;
        grid-template-areas:
            "copy"
            "visual"
            "facts";
        gap: 5px;
        min-height: 0;
        padding: 24px 18px 0;
    }

    .cq-hero__content {
        text-align: left;
    }

    .cq-hero h1 {
        max-width: 330px;
        font-size: clamp(2.5rem, 13vw, 3.45rem);
    }

    .cq-hero__content > p {
        max-width: 330px;
        font-size: 0.84rem;
    }

    .cq-button--large {
        width: auto;
        margin-top: 16px;
    }

    .cq-hero__visual {
        min-height: 245px;
        margin: -20px -4px 0 32%;
    }

    .cq-hero__mark {
        right: auto;
        left: -15%;
        bottom: 18px;
    }

    .cq-facts {
        grid-template-columns: 1fr;
        margin: 0 -18px;
    }

    .cq-facts span {
        justify-content: flex-start;
        min-height: 41px;
        border-right: 0;
        border-bottom: 1px solid rgba(177, 97, 255, 0.13);
        text-align: left;
    }

    .cq-facts span:last-child {
        border-bottom: 0;
    }

    .cq-game,
    .cq-result {
        padding: 20px 15px;
    }

    .cq-cosmetic-card {
        width: min(270px, 100%);
    }

    .cq-result__copy {
        text-align: left;
    }

    .cq-badge-placeholder {
        grid-template-columns: 82px minmax(0, 1fr);
        text-align: left;
    }

    .cq-badge-placeholder__icon {
        width: 78px;
        height: 78px;
    }

    .cq-rewards,
    .cq-guide {
        padding: 18px 14px;
    }

    .cq-rewards__heading,
    .cq-guide__heading {
        text-align: left;
    }

    .cq-guide__steps li {
        grid-template-columns: 30px minmax(0, 1fr);
    }
}

/* Final desktop 1.4x override; kept last so compact base rules cannot reduce it. */
@media (min-width: 851px) {
    .cq-hero,
    .cq-shell,
    .cq-rewards,
    .cq-guide,
    .cq-unavailable { width: min(1568px, 100%); }

    .cq-hero {
        grid-template-columns: minmax(0, 1.03fr) minmax(476px, .76fr);
        min-height: 616px;
        padding: 59px 64px 31px;
        border-radius: 30px;
    }

    .cq-eyebrow { font-size: .92rem; }
    .cq-hero h1 { max-width: 780px; margin: 13px 0 17px; font-size: clamp(3.55rem, 6.4vw, 6.44rem); }
    .cq-hero__content > p { max-width: 714px; font-size: 1.4rem; }
    .cq-button--large { min-height: 73px; margin-top: 28px; padding: 14px 31px; font-size: 1.29rem; }
    .cq-hero__visual { min-height: 441px; }
    .cq-hero__visual .cq-preview__question { width: 76px; height: 76px; font-size: 1.75rem; }
    .cq-hero__mark { width: 104px; height: 104px; }
    .cq-facts { margin: 20px -64px -31px; }
    .cq-facts span { min-height: 81px; padding: 13px 21px; font-size: 1.06rem; }

    .cq-shell,
    .cq-rewards,
    .cq-guide { margin-top: 22px; border-radius: 28px; }

    .cq-rewards { padding: 31px 34px 34px; }
    .cq-rewards__heading h2,
    .cq-guide__heading h2 { font-size: clamp(1.9rem, 3vw, 2.52rem); }
    .cq-rewards__heading p,
    .cq-guide__heading p { font-size: 1.05rem; }
    .cq-reward-card { grid-template-columns: 115px minmax(0, 1fr); gap: 0 15px; padding: 17px; }
    .cq-reward-card__visual { width: 115px; min-height: 115px; }
    .cq-reward-card__visual img { width: 109px; height: 109px; }
    .cq-reward-card h3 { font-size: 1.27rem; }
    .cq-reward-card p { font-size: 1rem; }

    .cq-guide { padding: 29px 34px 34px; }
    .cq-guide__steps { gap: 14px; }
    .cq-guide__steps li { grid-template-columns: 45px minmax(0, 1fr); gap: 13px; padding: 17px; }
    .cq-guide__steps li > span { width: 42px; height: 42px; font-size: 1.1rem; }
    .cq-guide__steps h3 { font-size: 1.15rem; }
    .cq-guide__steps p { font-size: .98rem; }
}
