:root {
    --bg: #eaf5fa;
    --white: #ffffff;
    --navy: #214f99;
    --navy-deep: #1a2a63;
    --cyan: #1fc0ec;
    --cyan-soft: #8edcf0;
    --muted: #bcc2ca;
    --text: #26447c;
    --danger: #e84a4a;
    --pink: #efc2c9;
    --slate: #c9d3e1;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "sofia-pro", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

.login-screen {
    position: relative;
    min-height: 100vh;
    padding: 32px 24px 22px;
    overflow: hidden;
    background:
        linear-gradient(rgba(4, 88, 177, 0.62), rgba(4, 88, 177, 0.68)),
        url('../images/triviaura_bg.png') center center / cover no-repeat;
}

.login-screen__layout {
    position: relative;
    z-index: 2;
    width: min(100%, 1180px);
    min-height: calc(100vh - 54px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}

.login-screen__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 26%, rgba(255,255,255,.08), transparent 24%),
        radial-gradient(circle at 18% 78%, rgba(255,255,255,.06), transparent 18%),
        linear-gradient(180deg, rgba(3, 62, 126, .08), rgba(5, 40, 93, .18));
}

.login-screen__content {
    position: relative;
    width: min(100%, 540px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 34px;
    margin: auto 0;
}

.login-footer-copy {
    width: min(1120px, 100%);
    margin: 0;
    color: rgba(255,255,255,.88);
    font-size: 0.88rem;
    line-height: 1.4;
    text-align: center;
}

.login-screen__logo {
    width: min(100%, 560px);
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18));
}

.login-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.login-field {
    width: 100%;
}

.login-field__label {
    display: block;
    margin-bottom: 10px;
    color: rgba(255,255,255,.92);
    font-size: 1.1rem;
    line-height: 1.1;
    font-weight: 400;
    text-align: left;
}

.login-field__input {
    width: 100%;
    border: 0;
    border-radius: 8px;
    padding: 18px 24px;
    font-size: 1.02rem;
    color: #5a6170;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 40px rgba(3, 32, 79, 0.2);
}

.login-field__input::placeholder {
    color: #959cb0;
}

.login-field__input:focus {
    outline: 3px solid rgba(69, 212, 255, 0.28);
}

.login-card__error {
    margin: -2px 0 0;
    color: #ffd8df;
    font-size: 0.98rem;
    text-align: center;
}

.login-consent {
    width: 100%;
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: start;
    color: rgba(255,255,255,.96);
    font-size: 0.98rem;
    line-height: 1.35;
    cursor: pointer;
}

.login-consent__checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #ff003d;
}

.login-consent__text {
    display: inline;
}

.login-consent__link {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
    text-decoration: underline;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.login-consent__link:hover {
    color: #bdefff;
}

.login-card__submit {
    margin-top: 18px;
    min-width: 208px;
    border: 0;
    border-radius: 0;
    padding: 16px 36px;
    background: linear-gradient(180deg, #ff2459 0%, #ff003d 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 900;
    box-shadow: 0 18px 32px rgba(129, 2, 37, 0.28);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.login-card__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 36px rgba(129, 2, 37, 0.34);
}

.login-screen__arc {
    position: absolute;
    background: url('../images/triviauraWheel.png') center center / contain no-repeat;
    pointer-events: none;
    opacity: .95;
    z-index: 1;
}

.login-screen__arc--left {
    width: 450px;
    height: 450px;
    left: -165px;
    bottom: -165px;
    transform: rotate(34deg);
}

.login-screen__arc--right {
    width: 525px;
    height: 525px;
    right: -238px;
    top: 170px;
    transform: rotate(16deg);
}

.page-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at left 36%, rgba(255,255,255,.18) 0 90px, transparent 90px),
        linear-gradient(180deg, #f3f8fb 0%, #e9f5f8 100%);
}

.topbar {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(4px);
    padding: 18px 0 16px;
    position: relative;
    z-index: 5;
    box-shadow: 0 1px 0 rgba(29, 60, 116, .04);
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-mark {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--navy) 0 45deg,
        var(--cyan) 45deg 90deg,
        #cfe1ee 90deg 135deg,
        #f4d5da 135deg 180deg,
        #d0d9e7 180deg 225deg,
        #9ddcf0 225deg 270deg,
        #e9e9ec 270deg 315deg,
        #ef5f5f 315deg 360deg
    );
    position: relative;
    flex: 0 0 56px;
}

.logo-mark::before,
.logo-mark::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: white;
}

.logo-mark::after {
    inset: 22px;
    background: var(--bg);
    z-index: 2;
}

.triviauraLogo {
    display: block;
    width: 100%;
    max-width: 320px;
}

.brand {
    line-height: .92;
}

.brand-main {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -1.5px;
    color: var(--navy);
}

.brand-main span { color: var(--cyan); }

.brand-sub {
    display: block;
    font-size: 19px;
    color: #283164;
    margin-left: 5px;
    font-weight: 600;
    font-style: italic;
    letter-spacing: .4px;
}

.topbar-right {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: flex-end;
}

.info-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--navy);
    display: grid;
    place-items: center;
    box-shadow: 0 6px 20px rgba(33, 79, 153, .18);
}

.info-circle__icon {
    display: block;
    width: 100%;
    max-width: 52px;
}

.score-card {
    background: white;
    border-radius: 18px;
    padding: 12px 18px;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(28, 54, 96, .08);
    color: #4a4c58;
}

.score-card strong {
    display: block;
    color: #494958;
    font-size: 1.1rem;
    font-weight: 800;
}

.score-card small {
    font-size: .95rem;
    color: #8c919d;
    font-weight: 300;
}

.main-wrap {
    position: relative;
    padding: 26px 0 0;
    z-index: 2;
}

.progress-wrap {
    position: relative;
    max-width: 840px;
    margin: 0 auto 30px;
    padding-top: 6px;
}

.mini-wheel {
    width: 58px;
    height: 58px;
    background-image: url('../images/level_00.png');
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(0);
    opacity: .8;
    transition: left .35s ease, transform .35s ease;
}

.mini-wheel__layer {
    position: absolute;
    inset: 0;
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
}

.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 18px;
    align-items: start;
    margin: 0 auto;
    max-width: 840px;
    padding-top: 78px;
}

.steps::before {
    content: "";
    position: absolute;
    top: 83px;
    left: calc(6.25% + 0px);
    right: calc(6.25% + 0px);
    height: 8px;
    border-radius: 999px;
    background: #d6d7da;
    z-index: 0;
}

.steps::after {
    content: "";
    position: absolute;
    top: 83px;
    left: calc(6.25% + 0px);
    width: var(--progress-width, 0px);
    height: 8px;
    border-radius: 999px;
    background: var(--navy);
    z-index: 1;
}

.step {
    position: relative;
    text-align: center;
    z-index: 2;
    font-size: .98rem;
    font-weight: 700;
    color: #acb0b9;
}

.step::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #cfcfd3;
    box-shadow: 0 0 0 3px rgba(234,245,250,.85);
}

.step.active { color: var(--cyan); }
.step.done { color: var(--cyan); }
.step.active::before,
.step.done::before { background: var(--cyan); }

.step {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.step.disabled {
    pointer-events: none;
    opacity: 0.45;
    cursor: default;
}

.question-card {
    max-width: 960px;
    margin: 4rem auto 4rem auto;
    background: rgba(255,255,255,.94);
    border-radius: 22px;
    padding: 66px 58px 46px;
    box-shadow: 0 18px 40px rgba(29, 60, 116, .08);
    position: relative;
}

.pill-title {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #1fc6ed 0%, #11b8e7 100%);
    color: white;
    border-radius: 999px;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: .6px;
    padding: 12px 46px;
    min-width: 290px;
    text-align: center;
    box-shadow: 0 10px 22px rgba(19, 184, 231, .2);
}

.question-card h1 {
    font-size: 1.6rem;
    line-height: 1.1;
    font-weight: 900;
    color: var(--navy);
    text-align: center;
    max-width: 760px;
    margin: 0 auto 34px;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 860px;
    margin: 0 auto;
}

.answer {
    border: 3px solid var(--cyan);
    border-radius: 999px;
    background: white;
    color: #5f6573;
    padding: 18px 42px;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.05;
    transition: .2s ease;
    text-align: left;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
}

.answer:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(28, 63, 122, .06);
    font-weight: 700;
}

.answer.active, .answer.correct {
    background: linear-gradient(180deg, #14bde9 0%, #0cb7e6 100%);
    color: white;
    box-shadow: 0 12px 26px rgba(14, 183, 230, .22);
    font-weight: 700;
}

.answer.wrong {
    background: linear-gradient(180deg, #f40606 0%, #db0000 100%);
    color: white;
    box-shadow: 0 12px 26px rgba(14, 183, 230, .22);
    font-weight: 700;
    border-color: #f40606;
    pointer-events: none;
}

.answer.disabled,
.answer:disabled {
    pointer-events: none;
    opacity: 0.3;
}

.answer strong { font-weight: 900; }

.answer-feedback {
    margin: 12px 12px 0;
    text-align: center;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--navy);
    font-weight: 300;
    white-space: pre-line;
}

.answer-feedback strong {
    font-weight: 600;
}

.is-hidden {
    display: none !important;
}

.justification {
    background: url('../images/conclusion_bg.png') no-repeat top left;
    background-size: cover;
    position: relative;
    margin-top: 74px;
    padding: 110px 0 86px;
    color: white;
    overflow: hidden;
}

.doc-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #ef5a52;
    margin: 0 auto 26px;
    display: grid;
    place-items: center;
    box-shadow: 0 14px 28px rgba(0, 26, 78, .18);
    position: relative;
    z-index: 1;
}

.justificationIcon {
    display: block;
    width: 100%;
    max-width: 100px;
}

.justification h2 {
    color: var(--cyan);
    font-size: 1.7rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.justification p {
    max-width: 840px;
    margin: 0 auto;
    font-size: 1.24rem;
    line-height: 1.23;
    text-align: center;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

.justification p strong { font-weight: 900; }

.scroll-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 20px auto 0;
    cursor: pointer;
    user-select: none;
}

.scroll-btn span {
    font-size: 0.95rem;
    color: var(--navy);
    font-weight: 500;
    text-align: right;
    line-height: 1.1;
}

.scroll-btn .arrow {
    width: 48px;
    height: 48px;
    background: #ff2a3c;
    border-radius: 6px;
    position: relative;
    flex: 0 0 48px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}

.scroll-btn .arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-left: 3px solid white;
    border-bottom: 3px solid white;
}

.scroll-btn.up .arrow::before {
    transform: translate(-50%, -40%) rotate(135deg);
}

.scroll-btn.down .arrow::before {
    transform: translate(-50%, -60%) rotate(-45deg);
}

.justification .scroll-btn span {
    color: white;
}

.scroll-btn:hover .arrow {
    transform: translateY(-2px);
}

.justification .scroll-btn {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
}

.justification p {
    margin-bottom: 22px;
}

.justification .refsTxt {
    font-size: 0.8rem;
}

.footer {
    background: #242753;
    color: white;
    padding: 54px 0 38px;
    position: relative;
    overflow: hidden;
}

.footer .logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 78px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: white;
}

.footer-brand .brand-main { color: white; }
.footer-brand .brand-main span { color: var(--cyan); }
.footer-brand .brand-sub { color: #f0f4ff; }

.takeda-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    height: 76px;
    padding: 0 28px;
    color: #e84242;
    font-size: 2rem;
}

.takedaLogo {
    display: block;
    width: 100%;
    max-width: 324px;
}

.footer-copy {
    max-width: 900px;
    margin: 0 auto 20px;
    color: rgba(255,255,255,.9);
    font-size: 0.9rem;
    line-height: 1.45;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 34px;
    color: rgba(255,255,255,.72);
    font-size: 1rem;
    font-weight: 500;
    flex-wrap: wrap;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
}

.footer-links a:hover { color: white; }

.shape-left,
.shape-right {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.shape-left {
    background: url('../images/shapeLeft.png') no-repeat top left;
    background-size: 100%;
    width: 200px;
    height: 509px;
    left: 0;
    top: 510px;
    opacity: .92;
}

.shape-right {
    background: url('../images/shapeRight.png') no-repeat top left;
    background-size: 100%;
    width: 300px;
    height: 414px;
    right: -0px;
    top: 870px;
    opacity: .98;
}

@media (max-width: 991px) {
    .brand-main { font-size: 2.2rem; }
    .brand-sub { font-size: 1rem; }
    .topbar-right { gap: 10px; }
    .score-card { min-width: 180px; }
    .question-card { padding: 58px 28px 34px; }
    .question-card h1 { font-size: 1.5rem; }
    .answer { font-size: 1rem; padding: 14px 24px; border-radius: 24px; }
    .justification p { font-size: 1rem; line-height: 1.4; }
    .steps { gap: 8px; }
    .step { font-size: .74rem; }
    .shape-right { top: 920px; }
}

@media (max-width: 767px) {
    .login-screen {
        padding: 28px 18px 40px;
    }
    .login-screen__layout {
        min-height: calc(100vh - 68px);
        gap: 22px;
    }
    .login-screen__content {
        gap: 28px;
        margin: 0;
    }
    .login-screen__logo {
        width: 100%;
    }
    .login-footer-copy {
        width: 100%;
        font-size: 0.8rem;
        line-height: 1.35;
    }
    .login-field__label {
        font-size: 1rem;
        text-align: center;
    }
    .login-field__input {
        padding: 16px 18px;
        font-size: .98rem;
    }
    .login-consent {
        font-size: .92rem;
        gap: 10px;
    }
    .login-card__submit {
        width: 100%;
        min-width: 0;
    }
    .login-screen__arc--left {
        width: 325px;
        height: 325px;
        left: -169px;
        bottom: -150px;
    }
    .login-screen__arc--right {
        width: 350px;
        height: 350px;
        right: -181px;
        top: 120px;
    }
    .topbar { padding: 14px 0; }
    .topbar .row { gap: 16px; }
    .logo { justify-content: center; }
    .topbar-right { justify-content: center; }
    .brand-main { font-size: 1.9rem; }
    .progress-wrap {
        padding-top: 0;
        margin-bottom: 24px;
    }
    .mini-wheel {
        position: relative;
        margin: 0 auto 18px;
        left: auto !important;
        transform: none !important;
    }
    .steps {
        grid-template-columns: repeat(4, 1fr);
        row-gap: 18px;
        max-width: 420px;
        padding-top: 0;
    }
    .steps::before,
    .steps::after { display: none; }
    .question-card { border-radius: 18px; }
    .pill-title { font-size: 1.25rem; min-width: 210px; padding: 10px 26px; }
    .question-card h1 { font-size: 1.18rem; }
    .answer { font-size: .95rem; line-height: 1.2; }
    .answer-feedback { font-size: .92rem; margin: 0; }
    .justification { padding: 84px 0 72px; }
    .justification h2 { font-size: 1.3rem; }
    .footer-copy, .footer-links { font-size: .88rem; }
    .shape-left { width: 220px; height: 220px; left: -110px; top: 460px; }
    .shape-right { width: 240px; height: 240px; right: -100px; top: 930px; }
}


.step {
    position: relative;
}

.step.has-warning::after {
    content: "";
    position: absolute;
    top: -58px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 34px;
    background: url('../images/iconMissing.png') center center / contain no-repeat;
    z-index: 4;
}

.step.has-warning::before {
    box-shadow: 0 0 0 3px rgba(234,245,250,.85), 0 0 0 6px rgba(33,79,153,.12);
}

@media (max-width: 767px) {
    .step.has-warning::after {
        top: -12px;
        right: -2px;
        left: auto;
        transform: none;
        width: 24px;
        height: 24px;
        font-size: 1rem;
    }
}

.rules-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
}

.rules-modal.is-hidden {
    display: none;
}

.rules-modal.is-opening .rules-modal__backdrop {
    animation: rulesFadeIn 0.28s ease forwards;
}

.rules-modal.is-opening .rules-modal__dialog {
    animation: rulesPopupIn 0.32s ease forwards;
}

.rules-modal.is-closing .rules-modal__backdrop {
    animation: rulesFadeOut 0.24s ease forwards;
}

.rules-modal.is-closing .rules-modal__dialog {
    animation: rulesPopupOut 0.24s ease forwards;
}

.rules-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 29, 66, 0.45);
    backdrop-filter: blur(2px);
}

.rules-modal__dialog {
    position: relative;
    width: min(1600px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    margin: 0;
    border-radius: 48px;
    overflow: hidden;
    background: linear-gradient(rgba(5, 78, 165, 0.9), rgba(5, 78, 165, 0.9));
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    color: white;
    display: flex;
    flex-direction: column;
    transform-origin: center center;
}

.rules-modal__dialog--legal {
    width: min(1200px, calc(100vw - 32px));
}

.rules-modal__content {
    position: relative;
    padding: 34px 64px 30px;
    overflow-y: auto;
    max-height: calc(100vh - 32px);
    -webkit-overflow-scrolling: touch;
    z-index: 2;
    background:
        linear-gradient(rgba(5, 78, 165, 0.78), rgba(5, 78, 165, 0.78)),
        url('../images/triviaura_bg.png') center center / cover no-repeat;
}

.rules-modal__content--legal {
    padding-right: 54px;
}

.rules-modal__content::before,
.rules-modal__content::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 525px;
    height: 525px;
    background: url('../images/triviauraWheel.png') center center / contain no-repeat;
    transform: translateY(-50%);
    opacity: .18;
    pointer-events: none;
    z-index: 0;
}

.rules-modal__content::before {
    left: -378px;
}

.rules-modal__content::after {
    right: -378px;
}

.rules-modal__content > * {
    position: relative;
    z-index: 1;
}

.rules-modal__close {
    position: absolute;
    top: 12px;
    right: 24px;
    z-index: 3;
    border: 0;
    background: transparent;
    color: white;
    font-size: 64px;
    line-height: 1;
    font-weight: 300;
    cursor: pointer;
}

.rules-modal__logo {
    margin-bottom: 12px;
}

.rules-modal__logo .triviauraLogo {
    max-width: 360px;
}

.rules-modal__title {
    text-align: center;
    font-size: 2.8rem;
    line-height: 1;
    font-weight: 900;
    color: var(--cyan);
    margin: 6px 0 14px;
}

.rules-modal__title--legal {
    font-size: 2.3rem;
}

.legal-copy {
    max-width: 980px;
    margin: 0 auto 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: rgba(255,255,255,.95);
    font-size: 1rem;
    line-height: 1.45;
}

.legal-copy p {
    margin: 0;
}

.legal-copy a {
    color: #bdefff;
}

.legal-copy a:hover {
    color: #ffffff;
}

.rules-modal__intro {
    max-width: 920px;
    margin: 0 auto 24px;
    text-align: center;
    font-size: 1.12rem;
    line-height: 1.2;
    font-weight: 300;
}

.rules-modal__intro strong {
    font-weight: 800;
}

.rules-modal__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 48px;
    align-items: start;
    max-width: 1120px;
    margin: 0 auto 22px;
}

.rules-modal__col h3 {
    margin: 0 0 12px;
    color: var(--cyan);
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1;
}

.rules-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.rules-list ul {
    margin: 8px 0 0;
    padding-left: 28px;
    list-style: disc;
}

.rules-list li {
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.12;
    font-weight: 300;
}

.rules-list > li {
    position: relative;
    padding-left: 28px;
}

.rules-list > li::before {
    content: "";
    position: absolute;
    top: 0.22em;
    left: 0;
    width: 14px;
    height: 14px;
    background: url('../images/bulltet.png') center center / contain no-repeat;
}

.rules-list ul > li::marker {
    color: #ffffff;
}

.rules-list strong {
    font-weight: 800;
}

.rules-modal__note {
    max-width: 980px;
    margin: 0 auto 22px;
    text-align: center;
    color: var(--cyan);
    font-size: 1.12rem;
    line-height: 1.15;
    font-weight: 700;
}

.rules-modal__actions {
    display: flex;
    justify-content: center;
}

.rules-modal__start {
    min-width: 220px;
    border: 0;
    padding: 15px 28px;
    background: linear-gradient(180deg, #ff0b47 0%, #ff003d 100%);
    color: white;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
}

.rules-modal__footer {
    max-width: 950px;
    margin: 20px auto 0px;
    text-align: center;
    font-size: 0.7rem;
    line-height: 1.15;
    font-weight: 300;
}

body.modal-open {
    overflow: hidden;
}

@keyframes rulesFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes rulesFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes rulesPopupIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes rulesPopupOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(12px) scale(0.99);
    }
}

@media (max-height: 900px) and (min-width: 992px) {
    .rules-modal__dialog {
        width: min(1440px, calc(100vw - 28px));
        max-height: calc(100vh - 20px);
        border-radius: 36px;
    }

    .rules-modal__content {
        max-height: calc(100vh - 20px);
    }
}

@media (max-width: 991px) {
    .rules-modal {
        display: block;
        padding: 0;
    }

    .rules-modal__dialog {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        margin: 10px auto;
        border-radius: 28px;
    }

    .rules-modal__content {
        padding: 36px 22px 28px;
        max-height: calc(100vh - 20px);
    }

    .rules-modal__content--legal {
        padding-right: 22px;
    }

    .rules-modal__content::before,
    .rules-modal__content::after {
        display: none;
    }

    .rules-modal__close {
        top: 10px;
        right: 14px;
        font-size: 56px;
    }

    .rules-modal__logo .triviauraLogo {
        max-width: 280px;
    }

    .rules-modal__title {
        font-size: 2.2rem;
    }

    .rules-modal__title--legal {
        font-size: 1.6rem;
    }

    .rules-modal__intro {
        font-size: 1.05rem;
        margin-bottom: 28px;
    }

    .legal-copy {
        gap: 12px;
        font-size: .94rem;
        line-height: 1.4;
    }

    .rules-modal__grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 28px;
    }

    .rules-modal__col h3 {
        font-size: 1.6rem;
    }

    .rules-list li {
        font-size: 1rem;
        line-height: 1.3;
    }

    .rules-modal__note {
        font-size: 1.05rem;
    }

    .rules-modal__start {
        min-width: 220px;
        padding: 16px 24px;
    }
}
