/* The game is isolated from the landing page components. */
.virus-game {
    --game-blue: #0060a8;
    --game-orange: #ed7620;
    width: min(1244px, calc(100% - 48px));
    margin: 0 auto;
    padding: 42px 0 70px;
    color: #000;
    font: 22px/1.2 'Inter', Arial, sans-serif;
}

.virus-game [hidden] {
    display: none !important;
}

.virus-game.is-transitioning {
    pointer-events: none;
}

.virus-game button, .virus-game a {
    -webkit-tap-highlight-color: transparent;
}

.virus-game button {
    font: inherit;
}

.virus-game p {
    margin: 0 0 18px;
}

.virus-game__brand-ribbon {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0 0 66px;
}

.virus-game__brand-ribbon img:first-child {
    flex: 0 0 auto;
    width: 105.71%;
    max-width: none;
    height: auto;
    margin-left: -10.53%;
}

.virus-game__brand-ribbon img:last-child {
    flex: 0 0 auto;
    width: 7.31%;
    height: auto;
    margin-left: -2.49%;
}

.virus-game__intro {
    position: relative;
    min-height: 430px;
    margin-bottom: 50px;
}

.virus-game__title {
    position: relative;
    z-index: 1;
    margin: 0 0 24px;
    color: var(--game-orange);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.52;
}

.virus-game__title > span {
    display: block;
    color: var(--game-blue);
    font-size: 63px;
    line-height: .9;
    margin-bottom: 10px;
}

.virus-game__intro-copy {
    position: relative;
    z-index: 1;
    width: 60%;
    max-width: 780px;
    line-height: 26px;
}

.virus-game__intro-copy p {
    margin-bottom: 8px;
}

.virus-game .virus-game__start {
    margin-top: 22px;
}

.virus-game__hero {
    position: absolute;
    right: -2%;
    top: 34px;
    width: 48%;
    aspect-ratio: 663.377 / 373.15;
    -webkit-mask: url('assets/hero-mask.svg') -0.6% 0 / 101.3% 100.35% no-repeat;
    mask: url('assets/hero-mask.svg') -0.6% 0 / 101.3% 100.35% no-repeat;
}

.virus-game__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.virus-question {
    margin: 0 0 66px;
    scroll-margin-top: 32px;
}

.virus-question__ribbon {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 14px;
}

.virus-question__mark {
    width: 25px;
    height: 34px;
    object-fit: contain;
    flex: 0 0 25px;
}

.virus-question__stripe {
    width: min(1028px, calc(100% - 45px));
    height: auto;
}

.virus-question__title {
    color: var(--game-blue);
    margin: 0 0 24px 45px;
    font: 700 24px/1.22 'Inter', Arial, sans-serif;
    text-transform: uppercase;
}

.virus-game__title:focus, .virus-question__title:focus, .virus-question__explanation:focus, .virus-completion__title:focus {
    outline: none;
}

.virus-question__layout {
    display: grid;
    grid-template-columns: 585fr 636fr;
    gap: 22px;
    align-items: start;
}

.virus-question__image {
    width: 100%;
    height: auto;
    aspect-ratio: 585 / 327;
    object-fit: cover;
}

.virus-question__interaction {
    min-width: 0;
}

.virus-question__answers {
    display: grid;
    gap: 15px;
    padding: 26px 28px;
    background: #f5f5f4;
    border-radius: 15px;
    box-shadow: 0 8px 2px rgba(12, 12, 13, .05);
}

.virus-answer {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    font-weight: 500 !important;
    line-height: 1.22 !important;
    transition: color .18s, opacity .18s;
}

.virus-answer__marker {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 57px;
    height: 44px;
}

.virus-answer__marker > span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-right: 21px;
    border: 2px solid var(--orange);
    border-radius: 50%;
    background: #fff;
    transition: background .18s;
}

.virus-answer__marker > span::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    transform: scale(0);
    transition: transform .18s;
}

.virus-answer[aria-pressed="true"] .virus-answer__marker > span {
    background: var(--orange);
}

.virus-answer[aria-pressed="true"] .virus-answer__marker > span::after {
    transform: scale(1);
}

.virus-answer:not(:disabled):hover {
    color: var(--game-blue);
}

.virus-answer:not(:disabled):hover .virus-answer__marker > span {
    background: #fff4ec;
}

.virus-answer:disabled {
    cursor: default;
    opacity: 1;
}

.virus-answer.is-wrong {
    color: #a92727;
}

.virus-answer.is-correct {
    color: #156d3b;
}

.virus-question__wrong {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    margin-top: 20px;
    padding: 26px 28px;
    border-radius: 15px;
    background: #f5f5f4;
    overflow: hidden;
    overflow-anchor: none;
}

.virus-question__wrong strong {
    align-self: flex-start;
    font-size: 24px;
}

.virus-game .virus-game__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 323px;
    max-width: 100%;
    min-height: 54px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 13px;
    background: var(--game-orange);
    color: #fff;
    font: 500 24px/1.12 'Roboto', 'Inter', Arial, sans-serif;
    text-align: center;
    text-decoration: none;
    transition: background .18s, transform .18s;
}

.virus-game .virus-game__button:hover {
    background: #d7620f;
}

.virus-game .virus-game__button:active {
    transform: translateY(1px);
}

.virus-game button:focus-visible, .virus-game a:focus-visible {
    outline: 3px solid var(--game-blue);
    outline-offset: 5px;
}

.virus-question__explanation {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 26px;
    padding: 26px 28px;
    border-radius: 15px;
    background: #e2f1ff;
}

.virus-question__explanation p:last-of-type {
    margin-bottom: 24px;
}

.virus-question__explanation strong {
    color: var(--game-blue);
}

.virus-question__explanation .virus-game__button {
    align-self: flex-end;
}

.virus-question__wrong, .virus-question__explanation {
    animation: virus-reveal .3s ease both;
}

.virus-game__sources {
    padding-left: 30px;
    margin: 0 0 32px;
    font-size: 20px;
    line-height: 1.25;
}

.virus-game__sources li + li {
    margin-top: 8px;
}

.virus-game__notice {
    padding: 20px;
    background: #e2f1ff;
}

.virus-completion {
    width: calc(100% + 52px);
    margin-left: -26px;
    padding: 42px 25px 55px;
}

.virus-completion__ribbon {
    margin-bottom: 70px;
}

.virus-completion__body {
    position: relative;
    min-height: 375px;
}

.virus-completion__title {
    position: relative;
    z-index: 1;
    width: 50%;
    margin: 0;
    color: var(--game-blue);
    font: 700 63.45px/55.29px 'Inter', Arial, sans-serif;
    text-transform: none;
}

.virus-game .virus-completion__points {
    position: relative;
    z-index: 1;
    width: 50%;
    margin: 10px 0 0;
    color: var(--game-orange);
    font-size: 36.26px;
    font-weight: 700;
    line-height: 55.29px;
}

.virus-completion__copy {
    position: relative;
    z-index: 1;
    width: 47.6%;
    margin-top: 38px;
    font-size: 24px;
    line-height: 30px;
}

.virus-completion__copy p {
    margin-bottom: 8px;
}

.virus-completion__copy p:last-child {
    margin-bottom: 0;
}

.virus-completion__hero {
    position: absolute;
    top: .425px;
    right: 4px;
    width: 53.326%;
    aspect-ratio: 663.377 / 373.15;
    -webkit-mask: url('assets/hero-mask.svg') -0.6% 0 / 101.3% 100.35% no-repeat;
    mask: url('assets/hero-mask.svg') -0.6% 0 / 101.3% 100.35% no-repeat;
}

.virus-completion__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.virus-game .virus-completion__finish {
    display: flex;
    margin: 40px auto 0;
}

.virus-game__sources.virus-completion__sources {
    margin: 40px 0 0;
}

@media (max-width: 1399px) {
    .virus-completion {
        width: 100%;
        margin-left: 0;
        padding: 32px 24px 40px;
    }
}

@keyframes virus-reveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1199px) {
    .virus-completion__title {
        font-size: 48px;
        line-height: 1.1;
    }

    .virus-game .virus-completion__points {
        font-size: 30px;
        line-height: 1.4;
    }

    .virus-completion__copy {
        font-size: 20px;
        line-height: 1.35;
    }

    .virus-game {
        font-size: 19px;
    }

    .virus-game__title {
        font-size: 30px;
    }

    .virus-game__title > span {
        font-size: 54px;
    }

    .virus-game__intro-copy {
        width: 60%;
        line-height: 1.25;
    }

    .virus-game__hero {
        top: 72px;
    }

    .virus-question__answers {
        padding: 22px;
    }

    .virus-answer__marker {
        flex-basis: 42px;
    }

    .virus-answer__marker > span {
        margin-right: 6px;
    }
}

@media (max-width: 991px) {
    .virus-completion__ribbon {
        margin-bottom: 36px;
    }

    .virus-completion__body {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        min-height: 0;
    }

    .virus-completion__title,
    .virus-game .virus-completion__points,
    .virus-completion__copy {
        width: 100%;
        margin: 0;
    }

    .virus-completion__hero {
        position: relative;
        grid-row: 3;
        top: auto;
        right: auto;
        width: 100%;
        max-width: 664px;
        justify-self: center;
    }

    .virus-game {
        width: calc(100% - 40px);
        padding-top: 28px;
    }

    .virus-game__brand-ribbon {
        margin-bottom: 36px;
    }

    .virus-game__intro {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
        gap: 24px;
        min-height: 0;
        margin-bottom: 40px;
    }

    .virus-game__title {
        grid-column: 1 / -1;
        margin: 0;
    }

    .virus-game__intro-copy {
        width: auto;
    }

    .virus-game__hero {
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
        align-self: center;
    }

    .virus-question__layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .virus-question__image {
        max-width: 585px;
        margin: 0 auto;
    }

    .virus-question__title {
        font-size: 22px;
    }

    .virus-question__answers {
        padding: 26px;
    }

    .virus-game__sources {
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .virus-completion {
        padding: 24px 16px 30px;
    }

    .virus-completion__ribbon {
        margin-bottom: 28px;
    }

    .virus-completion__body {
        gap: 16px;
    }

    .virus-completion__title {
        font-size: 32px;
        line-height: 1.15;
    }

    .virus-game .virus-completion__points {
        font-size: 22px;
        line-height: 1.35;
    }

    .virus-completion__copy {
        font-size: 16px;
        line-height: 1.4;
    }

    .virus-game .virus-completion__finish {
        margin-top: 28px;
    }

    .virus-game__sources.virus-completion__sources {
        margin-top: 28px;
    }

    .virus-game {
        width: calc(100% - 32px);
        padding: 22px 0 40px;
        font-size: 16px;
        line-height: 1.35;
    }

    .virus-game__brand-ribbon {
        margin-bottom: 30px;
    }

    .virus-game__intro {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 32px;
    }

    .virus-game__title {
        font-size: clamp(20px, 5.4vw, 29px);
        line-height: 1.4;
    }

    .virus-game__title > span {
        font-size: 46px;
    }

    .virus-game__hero {
        grid-row: 2;
    }

    .virus-game__intro-copy {
        line-height: 1.4;
    }

    .virus-question {
        margin-bottom: 40px;
    }

    .virus-question__ribbon {
        gap: 12px;
        margin-bottom: 12px;
        align-items: center;
    }

    .virus-question__stripe {
        width: calc(100% - 37px);
    }

    .virus-question__title {
        margin-left: 0;
        margin-bottom: 18px;
        font-size: 18px;
        line-height: 1.3;
    }

    .virus-question__layout {
        gap: 18px;
    }

    .virus-question__answers {
        gap: 16px;
        padding: 20px 16px;
    }

    .virus-answer {
        min-height: 44px;
    }

    .virus-answer__marker {
        flex-basis: 38px;
    }

    .virus-answer__marker > span {
        width: 24px;
        height: 24px;
    }

    .virus-question__wrong, .virus-question__explanation {
        margin-top: 20px;
        padding: 20px 16px;
    }

    .virus-question__wrong strong {
        font-size: 20px;
    }

    .virus-game .virus-game__button {
        width: 220px;
        min-height: 44px;
        padding: 10px 16px;
        font-size: 18px;
        border-radius: 11px;
    }

    .virus-game__sources {
        padding-left: 22px;
        font-size: 14px;
        line-height: 1.4;
    }
}

@media (prefers-reduced-motion: reduce) {
    .virus-game *, .virus-game *::before, .virus-game *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
