body {
    background: #0f1117;
    color: #fff;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif
}

.navbar {
    background: #090b10
}

.logo-navbar {
    height: 55px;
    width: auto;
    display: block;
}

.brand {
    font-weight: 800;
    font-size: 1.8rem;
    color: #e10600
}

.hero {
    min-height: 90vh;
    background: linear-gradient(135deg, #181d2a, #0f1117);
    display: flex;
    align-items: center
}

.hero .row{

    min-height:75vh;

}

.btn-f1 {
    background: #e10600;
    color: #fff;
    border: none
}

.btn-f1:hover {
    background: #b10000;
    color: #fff
}

.section {
    padding: 70px 0
}

.section-header{

    margin-bottom:3rem!important;

}

.section-header h2{

    margin-bottom:1rem;

}

.section-header p{

    font-size:1.05rem;

    color:#9ca3af;

}

.landing-phone {

    max-height:700px;

    width:auto;

    border-radius:24px;

    box-shadow:0 20px 50px rgba(0,0,0,.45);

}

.feature {
    padding: 30px;
    border-radius: 16px;
    background: #171b27;
    height: 100%
}

.feature i {
    font-size: 3rem;
    color: #e10600;
    margin-bottom: 20px
}

.feature-image {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 620px;
}

.feature-image img {
    max-height: 700px;
    width: auto;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,.45);
}

#featuresCarousel{

    overflow:hidden;

}

#featuresCarousel .carousel-inner{

    overflow:hidden;

}

#featuresCarousel .carousel-item{

    min-height:650px;

}

#featuresCarousel .carousel-item.active{

    display:block;

}

#featuresCarousel .carousel-item .row{

    min-height:650px;

    align-items:center;

}

#featuresCarousel .feature-image{

    display:flex;

    justify-content:center;

    align-items:center;

}

#featuresCarousel .feature-image img{

    max-height:650px;

    width:auto;

    object-fit:contain;

}

#featuresCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: #666;
    opacity: 1;
}

#featuresCarousel .carousel-indicators .active {
    background-color: #e10600;
}

footer {
    background: #090b10
}

footer img.logo-footer {
    display: block;
    margin-left: auto;
    margin-right: auto;
    height: 55px;
    width: auto;
}

a {
    text-decoration: none
}

@media (max-width: 991px) {

    .feature-image {
        min-height: auto;
        margin-bottom: 2rem;
    }

    .feature-image img {
        max-height: 620px;
    }

}

.feature-card{

    background:#171b27;

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    padding:2rem;

    min-height:250px;

    transition:all .25s ease;

    cursor:pointer;

}

.feature-card:hover{

    transform:translateY(-6px);

    border-color:#e10600;

    box-shadow:0 15px 40px rgba(0,0,0,.35);

}

.feature-card h4{

    margin:1rem 0;

    color:#fff;

    transition:color .25s;

}

a:hover .feature-card h4{

    color:#e10600;

}

.feature-card i{

    color:#e10600;

    font-size:2rem;

    transition:transform .25s;

}

a:hover .feature-card i{

    transform:scale(1.15);

}

.feature-card p{

    color:#b8bcc7;

}

.feature-card,
.feature-card *{

    color:inherit;

}

.feature-number{

    width:42px;

    height:42px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:var(--bs-danger);

    color:white;

    font-weight:700;

    flex-shrink:0;

}

.section-header{

    max-width:900px;

    margin:0 auto;

}

.timeline{

    display:flex;

    flex-direction:column;

    gap:2rem;

}

.timeline-item{

    display:flex;

    gap:1.5rem;

    align-items:flex-start;

}

.timeline-number{

    width:52px;

    height:52px;

    border-radius:50%;

    background:var(--bs-danger);

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-weight:700;

    font-size:1.2rem;

    flex-shrink:0;

}

.timeline-item h4{

    margin-bottom:.5rem;

}

.guide-card{

    height:100%;

    display:flex;

    flex-direction:column;

    justify-content:center;

}

.guide-callout{

    padding:2.5rem;

    max-width:900px;

    margin:auto;

}

.section:nth-of-type(6) .feature-card{

    min-height:230px;

}

.btn-primary {
    box-sizing: border-box;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 100%;

    padding: 16px 24px;

    border-radius: 14px;

    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
    text-decoration: none;

    font-weight: 700;
    font-size: 1rem;

    transition: .2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(220, 38, 38, .45);
}

.btn-primary:active {
    transform: translateY(0);
}

/* =========================================================
   PUBLIC SCHEDULE
   ========================================================= */

.schedule-content {
    max-width: 1024px;
    margin: 0 auto;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.schedule-card {
    position: relative;
    background: #3A3A3A;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.schedule-card.active {
    box-shadow:
            0 0 0 2px #dc2626,
            0 20px 25px rgba(0, 0, 0, 0.25);
}

.schedule-card-content {
    position: relative;
    z-index: 10;
}

.schedule-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.schedule-card-date {
    color: #d1d5db;
    font-size: 0.875rem;
    margin: 0 0 4px;
}

.schedule-card-title {
    color: #E10600;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.schedule-card-flag {
    display: block;
    width: 40px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
}

.schedule-sessions {
    position: relative;
    margin-top: 16px;
}

.schedule-circuit {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.1;
    pointer-events: none;
}

.schedule-circuit-inner {
    width: 80%;
    height: 80%;
}

.schedule-session-grid {
    position: relative;
    z-index: 10;

    display: grid;
    grid-template-columns: 1fr 1fr;

    row-gap: 8px;

    font-size: 0.875rem;
}

.schedule-session-name {
    color: #d1d5db;
}

.schedule-session-time {
    text-align: right;
    color: #fff;
}

.schedule-card-footer {
    margin-top: 16px;
}

.schedule-cancelled {
    width: 100%;
    box-sizing: border-box;

    background: #b91c1c;
    color: #fff;

    padding: 12px;

    border-radius: 4px;

    font-weight: 700;
    text-align: center;

    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.schedule-results-link {
    width: 100%;
    min-height: 64px;
    box-sizing: border-box;

    background: #1E1E1E;
    color: #fff;

    border-radius: 4px;

    font-weight: 600;
    text-decoration: none;

    display: flex;
    align-items: center;
    justify-content: center;

    transition:
            background-color 0.2s ease,
            transform 0.2s ease;
}

.schedule-results-link:hover {
    background: #2A2A2A;
    color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 767px) {

    .schedule-content {
        width: 100%;
    }

    .schedule-card {
        padding: 16px;
    }

}

/* =========================================================
   PUBLIC RESULTS
   ========================================================= */

.public-results {
    max-width: 768px;
    margin: 0 auto;
    padding: 24px 16px;
}

.results-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.results-flag {
    width: 40px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.results-title {
    margin: 0;
    font-size: 1.875rem;
    line-height: 1.2;
    font-weight: 700;
    color: #fff;
}

.results-session-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.results-session-controls-page {
    padding-top: 16px;
}

.results-session-select {
    appearance: auto;

    padding: 8px 24px;

    border: 2px solid #374151;
    border-radius: 999px;

    background: #111827;
    color: #fff;

    font-size: .875rem;

    max-width: 100%;
}

.results-session-select:focus {
    outline: none;
    border-color: #ef4444;
}

.results-table {
    width: 100%;
    font-size: .875rem;
    border-collapse: collapse;
}

.results-table thead {
    color: #9ca3af;
    border-bottom: 1px solid #374151;
}

.results-table th {
    padding: 8px 0;
    text-align: left;
    font-weight: 600;
}

.results-table tbody tr {
    border-bottom: 1px solid #1f2937;
}

.results-table tbody td {
    padding: 12px 0;
    vertical-align: middle;
}

.results-position {
    display: flex;
    align-items: center;
    gap: 4px;
}

.results-position-number {
    min-width: 10px;
}

.results-movement {
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}

.results-movement.positive {
    color: #4ade80;
}

.results-movement.negative {
    color: #f87171;
}

.results-movement.neutral {
    color: #9ca3af;
}

.results-driver {
    display: flex;
    align-items: center;
    gap: 12px;
}

.results-driver-image {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.results-driver-name {
    font-weight: 600;
    color: #fff;
}

.results-team-name {
    color: #9ca3af;
    font-size: .75rem;
}

@media (max-width: 576px) {

    .public-results {
        padding-left: 12px;
        padding-right: 12px;
    }

    .results-title {
        font-size: 1.5rem;
    }

    .results-table {
        font-size: .8rem;
    }

    .results-driver {
        gap: 8px;
    }

    .results-driver-image {
        width: 36px;
        height: 36px;
    }

}

/* =========================================================
   PUBLIC STANDINGS
   ========================================================= */

.public-standings {
    max-width: 768px;
    margin: 0 auto;
    padding: 16px 12px;
}

.standings-tabs {
    display: flex;
    border-bottom: 1px solid #1e293b;
    font-size: 1rem;
}

.standings-tab {
    flex: 1;
    padding: 8px 0;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: #94a3b8;
    transition: color .2s ease, border-color .2s ease;
}

.standings-tab:hover {
    color: #fff;
}

.standings-tab.active {
    color: #ef4444;
    border-bottom-color: #ef4444;
}

.standings-controls {
    margin-top: 20px;
}

.standings-meeting-row {
    display: flex;
    justify-content: space-between;
}

.standings-select {
    appearance: auto;

    background: #0b1325;
    border: 1px solid #334155;
    border-radius: 999px;

    padding: 12px 20px;

    color: #fff;
    font-size: 1rem;

    max-width: 100%;
}

.standings-select:focus {
    outline: none;
    border-color: #ef4444;
}

.standings-loading {
    display: flex;
    justify-content: center;
    padding: 32px 0;
}

.standings-loading-text {
    color: #94a3b8;
}

.standings-table {
    width: 100%;
    margin-top: 32px;
    border-collapse: collapse;
    font-size: .875rem;
}

.standings-table thead {
    color: #9ca3af;
    border-bottom: 1px solid #374151;
}

.standings-table th {
    text-align: left;
    padding: 8px 0;
    font-weight: 600;
}

.standings-table tbody tr {
    border-bottom: 1px solid #1f2937;
}

.standings-table tbody td {
    padding: 12px 0;
    vertical-align: middle;
}

.standings-position {
    display: flex;
    align-items: center;
    gap: 4px;
}

.standings-delta {
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}

.standings-delta.positive {
    color: #4ade80;
}

.standings-delta.negative {
    color: #f87171;
}

.standings-delta.neutral {
    color: #9ca3af;
}

.standings-driver {
    display: flex;
    align-items: center;
    gap: 12px;
}

.standings-driver-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    flex-shrink: 0;
}

.standings-driver-name {
    font-weight: 600;
    color: #fff;
}

.standings-team-name {
    color: #9ca3af;
    font-size: .75rem;
}

.standings-team {
    font-weight: 600;
}

@media (max-width: 576px) {

    .public-standings {
        padding-left: 12px;
        padding-right: 12px;
    }

    .standings-table {
        font-size: .8rem;
    }

    .standings-driver {
        gap: 8px;
    }

    .standings-driver-image {
        width: 36px;
        height: 36px;
    }

}


/* =========================================================
   GAMES PAGE
   ========================================================= */

.games-page {

    padding: 75px 0 90px;

    min-height: calc(100vh - 80px);

    background:
            radial-gradient(
                    circle at 50% 10%,
                    rgba(225, 6, 0, .10),
                    transparent 35%
            ),
            #0f1117;
}


/* =========================================================
   HEADER
   ========================================================= */

.games-header {

    max-width: 760px;

    margin-bottom: 55px;
}


.games-header h1 {

    margin-bottom: 1rem;
}


.games-header p {

    max-width: 680px;

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   GRID
   ========================================================= */

.games-grid {

    max-width: 1000px;

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   GAME CARD LINK
   ========================================================= */

.game-card-link {

    display: block;

    height: 100%;

    color: inherit;

    text-decoration: none;
}


/* =========================================================
   GAME CARD
   ========================================================= */

.game-card {

    height: 100%;

    overflow: hidden;

    border-radius: 20px;

    background: #171b27;

    border: 1px solid
    rgba(255, 255, 255, .08);

    box-shadow:
            0 15px 40px
            rgba(0, 0, 0, .25);

    transition:
            transform .2s ease,
            border-color .2s ease,
            box-shadow .2s ease;
}


.game-card:hover {

    transform: translateY(-6px);

    border-color: #e10600;

    box-shadow:
            0 20px 50px
            rgba(0, 0, 0, .4);
}


/* =========================================================
   GAME PREVIEW
   ========================================================= */

.game-card-preview {

    position: relative;

    height: 250px;

    overflow: hidden;

    background: #090b10;

    display: flex;

    align-items: center;

    justify-content: center;
}


/* =========================================================
   PREVIEW LABEL
   ========================================================= */

.game-card-preview-label {

    position: absolute;

    bottom: 16px;

    left: 50%;

    transform:
            translateX(-50%);

    padding: 5px 10px;

    border-radius: 6px;

    background: rgba(0, 0, 0, .65);

    color: #fff;

    font-size: .72rem;

    font-weight: 700;

    letter-spacing: .08em;

    white-space: nowrap;
}


/* =========================================================
   LIGHTS OUT PREVIEW
   ========================================================= */

.lights-out-preview {

    display: flex;

    gap: 18px;

    padding: 22px 28px;

    border-radius: 18px;

    background: #171b27;

    border: 1px solid
    rgba(255, 255, 255, .06);
}


.preview-light {

    width: 48px;

    height: 48px;

    border-radius: 50%;

    background:
            radial-gradient(
                    circle at 35% 30%,
                    #ff6b64,
                    #e10600 45%,
                    #650000 100%
            );

    border: 3px solid #ff3d35;

    box-shadow:
            0 0 15px
            rgba(225, 6, 0, .65);
}


/* =========================================================
   REACTION LIGHTS PREVIEW
   ========================================================= */

.reaction-lights-preview {

    position: relative;

    width: 300px;

    height: 180px;
}


.preview-reaction-light {

    position: absolute;

    width: 38px;

    height: 38px;

    border-radius: 50%;

    background: #21171a;

    border: 3px solid #352329;

    box-shadow:
            inset 0 0 10px
            rgba(0, 0, 0, .7);
}


.preview-reaction-light.light-1 {

    left: 25%;

    top: 12%;
}


.preview-reaction-light.light-2 {

    left: 75%;

    top: 12%;
}


.preview-reaction-light.light-3 {

    left: 10%;

    top: 50%;
}


.preview-reaction-light.light-4 {

    left: 50%;

    top: 50%;
}


.preview-reaction-light.light-5 {

    left: 90%;

    top: 50%;
}


.preview-reaction-light.light-6 {

    left: 25%;

    top: 88%;
}


.preview-reaction-light.light-7 {

    left: 75%;

    top: 88%;
}


/*
 * One illuminated light gives the preview
 * a little bit of life without turning the
 * whole card green/red.
 */

.preview-reaction-light.light-4 {

    background:
            radial-gradient(
                    circle at 35% 30%,
                    #ff7770,
                    #e10600 45%,
                    #650000 100%
            );

    border-color: #ff4139;

    box-shadow:
            0 0 14px
            rgba(225, 6, 0, .7);
}


/* =========================================================
   GAME CARD BODY
   ========================================================= */

.game-card-body {

    padding: 28px 30px 26px;
}


.game-card-badge {

    margin-bottom: 10px;

    color: #e10600;

    font-size: .75rem;

    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;
}


.game-card-body h2 {

    margin-bottom: 10px;

    color: #fff;

    font-size: 1.65rem;

    font-weight: 700;
}


.game-card-body p {

    min-height: 54px;

    margin-bottom: 24px;

    color: #b8bcc7;

    line-height: 1.6;
}


/* =========================================================
   CARD FOOTER
   ========================================================= */

.game-card-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding-top: 18px;

    border-top: 1px solid
    rgba(255, 255, 255, .07);

    color: #8f96a3;

    font-size: .9rem;
}


.game-card-actions {

    display: flex;

    gap: 8px;

    flex-shrink: 0;
}


.game-card-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 8px 14px;

    border-radius: 8px;

    font-size: .82rem;

    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;

    transition:
            transform .2s ease,
            background-color .2s ease,
            border-color .2s ease;
}


.game-card-button:hover {

    transform:
            translateY(-2px);
}


.game-card-button-training {

    color: #ffffff;

    background: rgba(255, 255, 255, .06);

    border: 1px solid
    rgba(255, 255, 255, .15);
}


.game-card-button-training:hover {

    color: #ffffff;

    background: rgba(255, 255, 255, .12);

    border-color: rgba(255, 255, 255, .25);
}


.game-card-button-competition {

    color: #ffffff;

    background: #e10600;

    border: 1px solid #e10600;
}


.game-card-button-competition:hover {

    color: #ffffff;

    background: #b80500;

    border-color: #b80500;
}


/* =========================================================
   COMING SOON
   ========================================================= */

.games-coming-soon {

    margin-top: 55px;

    padding-top: 28px;

    border-top: 1px solid
    rgba(255, 255, 255, .06);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .games-page {

        padding: 50px 0 65px;
    }


    .games-header {

        margin-bottom: 35px;
    }


    .game-card-preview {

        height: 210px;
    }


    .lights-out-preview {

        gap: 11px;

        padding: 18px 20px;
    }


    .preview-light {

        width: 40px;

        height: 40px;
    }


    .reaction-lights-preview {

        transform:
                scale(.85);
    }


    .game-card-body {

        padding: 24px 22px;
    }


    .game-card-body p {

        min-height: auto;
    }

    .game-card-footer {

        align-items: flex-start;

        flex-direction: column;
    }


    .game-card-actions {

        width: 100%;
    }


    .game-card-button {

        flex: 1;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 400px) {

    .game-card-preview {

        height: 190px;
    }


    .lights-out-preview {

        gap: 8px;

        padding: 16px;
    }


    .preview-light {

        width: 34px;

        height: 34px;

        border-width: 2px;
    }


    .reaction-lights-preview {

        transform:
                scale(.72);
    }

}

/* =========================================================
   LANDING - GAMES
   ========================================================= */

.landing-games-section {

    background:
            linear-gradient(
                    180deg,
                    #0f1117 0%,
                    #11141d 100%
            );
}


.landing-game-link {

    display: block;

    height: 100%;

    color: inherit;

    text-decoration: none;
}


.landing-game-card {

    display: flex;

    align-items: flex-start;

    gap: 20px;

    height: 100%;

    padding: 28px;

    border-radius: 18px;

    background: #171b27;

    border: 1px solid
    rgba(255, 255, 255, .08);

    transition:
            transform .2s ease,
            border-color .2s ease,
            box-shadow .2s ease;
}


.landing-game-link:hover
.landing-game-card {

    transform: translateY(-5px);

    border-color: #e10600;

    box-shadow:
            0 15px 40px
            rgba(0, 0, 0, .35);
}


.landing-game-icon {

    width: 54px;

    height: 54px;

    flex: 0 0 54px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    background:
            rgba(225, 6, 0, .12);

    color: #e10600;

    font-size: 1.5rem;
}


.landing-game-label {

    display: block;

    margin-bottom: 7px;

    color: #e10600;

    font-size: .72rem;

    font-weight: 700;

    letter-spacing: .08em;
}


.landing-game-card h3 {

    margin-bottom: 8px;

    color: #fff;

    font-size: 1.35rem;
}


.landing-game-card p {

    margin-bottom: 15px;

    color: #b8bcc7;

    line-height: 1.55;
}


.landing-game-action {

    color: #e10600;

    font-size: .9rem;

    font-weight: 700;
}


@media (max-width: 575px) {

    .landing-game-card {

        padding: 22px;

        gap: 15px;
    }


    .landing-game-icon {

        width: 48px;

        height: 48px;

        flex-basis: 48px;

        font-size: 1.25rem;
    }

}

/* =========================================================
   COMPETITION MODAL
   ========================================================= */

#competitionModal .modal-content {

    background: #171b27;

    color: #fff;

    border: 1px solid
    rgba(255, 255, 255, .08);

    border-radius: 18px;

    box-shadow:
            0 20px 60px
            rgba(0, 0, 0, .5);
}


#competitionModal .modal-header {

    border-bottom: 1px solid
    rgba(255, 255, 255, .08);

    padding: 20px 24px;
}


#competitionModal .modal-title {

    color: #fff;

    font-weight: 700;
}


#competitionModal .modal-body {

    padding: 24px;

    color: #b8bcc7;

    line-height: 1.6;
}


#competitionModal .modal-footer {

    border-top: 1px solid
    rgba(255, 255, 255, .08);

    padding: 16px 24px;
}


#competitionModal .btn-close {

    filter: invert(1);

    opacity: .7;
}


#competitionModal .btn-close:hover {

    opacity: 1;
}


#competitionModal .btn-primary {

    width: auto;

    max-width: none;

    padding: 10px 24px;

    border-radius: 10px;

    background:
            linear-gradient(
                    135deg,
                    #dc2626,
                    #ef4444
            );
}


#competitionModal .btn-secondary {

    padding: 10px 20px;

    border-radius: 10px;
}

/* =========================================================
   REACTION GAME INFO
   ========================================================= */

.reaction-game-info {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.reaction-howto-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 10px;

    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 8px;

    background: transparent;

    color: #9ca3af;

    font-size: .8rem;

    cursor: pointer;

    transition:
            color .2s ease,
            border-color .2s ease,
            background .2s ease;
}

.reaction-howto-button:hover {
    color: #fff;

    border-color: rgba(255, 255, 255, .20);

    background: rgba(255, 255, 255, .04);
}

/* =========================================================
   REACTION HOW TO PLAY MODAL
   ========================================================= */

#reactionHowToModal .modal-content {
    background: #171b27;
    color: #fff;

    border: 1px solid rgba(255, 255, 255, .08);

    border-radius: 16px;

    box-shadow:
            0 20px 60px rgba(0, 0, 0, .5);
}

#reactionHowToModal .modal-header {
    padding: 18px 22px;

    border-bottom:
            1px solid rgba(255, 255, 255, .08);
}

#reactionHowToModal .modal-title {
    color: #fff;
    font-weight: 700;
}

#reactionHowToModal .modal-body {
    padding: 22px;

    color: #b8bcc7;

    line-height: 1.6;
}

#reactionHowToModal .modal-body ol {
    padding-left: 20px;
    margin-bottom: 18px;
}

#reactionHowToModal .modal-body li {
    margin-bottom: 8px;
}

#reactionHowToModal .modal-body strong {
    color: #fff;
}

#reactionHowToModal .btn-close {
    filter: invert(1);
    opacity: .7;
}

#reactionHowToModal .btn-close:hover {
    opacity: 1;
}

/* =========================================================
   GAME COMPETITION CTA
   ========================================================= */

.game-competition-section {

    margin-top: 18px;

}


.game-competition-cta {

    width: 100%;

    padding: 18px 20px;

    border-radius: 12px;

    text-align: center;

    background:
            linear-gradient(
                    135deg,
                    rgba(225, 6, 0, .16),
                    rgba(100, 0, 0, .10)
            );

    border: 1px solid
    rgba(225, 6, 0, .35);

    box-shadow:
            inset 0 0 25px
            rgba(225, 6, 0, .04);

}


.game-competition-title {

    margin-bottom: 5px;

    color: #fff;

    font-size: 1rem;

    font-weight: 700;

}


.game-competition-cta p {

    margin: 0 auto 14px;

    max-width: 600px;

    color: #c0c5cf;

    font-size: .85rem;

    line-height: 1.5;

}


.game-competition-cta
.game-card-button-competition {

    display: inline-flex;

    width: auto;

    padding: 8px 22px;

}

/* =========================================================
   GAME RANKING
   ========================================================= */

.game-ranking {

    margin-top: 0;

    padding: 18px 20px;

    border-radius: 12px;

    background: #11141c;

    border: 1px solid
    rgba(255, 255, 255, .08);

}


.game-ranking-title {

    margin-bottom: 4px;

    color: #fff;

    font-size: 1rem;

    font-weight: 700;

    text-align: center;

}


.game-ranking-league {

    margin-bottom: 16px;

    color: #e10600;

    font-size: .8rem;

    font-weight: 600;

    text-align: center;

}


.game-ranking-table-wrapper {

    width: 100%;

    overflow-x: auto;

}


.game-ranking-table {

    width: 100%;

    border-collapse: collapse;

    font-size: .85rem;

}


.game-ranking-table th {

    padding: 8px 6px;

    color: #8f96a3;

    font-size: .72rem;

    font-weight: 600;

    text-align: left;

    text-transform: uppercase;

    letter-spacing: .05em;

    border-bottom: 1px solid
    rgba(255, 255, 255, .08);

}


.game-ranking-table td {

    padding: 10px 6px;

    color: #d1d5db;

    border-bottom: 1px solid
    rgba(255, 255, 255, .05);

}


.game-ranking-table tbody tr:last-child td {

    border-bottom: none;

}


.game-ranking-table th:first-child,
.game-ranking-table td:first-child {

    width: 40px;

    color: #8f96a3;

}


.game-ranking-table th:last-child,
.game-ranking-table td:last-child {

    width: 90px;

    text-align: right;

}


.game-ranking-table td:last-child {

    color: #fff;

    font-weight: 700;

}

.game-ranking-current-user
.game-ranking-avatar {

    border-color:
            rgba(225, 6, 0, .75);

    box-shadow:
            0 0 8px
            rgba(225, 6, 0, .20);

}

.game-ranking-current-user td {
    color: #fff;
    font-weight: 600;
}

.game-ranking-current-user td:first-child {
    color: #e10600;
    font-weight: 800;
}

.game-ranking-player {

    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;

}


.game-ranking-avatar {

    width: 36px;

    height: 36px;

    flex: 0 0 36px;

    display: block;

    object-fit: cover;

    border-radius: 50%;

    border: 2px solid
    rgba(255, 255, 255, .12);

    background: #1b1f29;

}


.game-ranking-avatar-clickable {

    cursor: pointer;

    transition:
            transform .15s ease,
            border-color .15s ease,
            box-shadow .15s ease;

}


.game-ranking-avatar-clickable:hover {

    transform: scale(1.08);

    border-color:
            rgba(225, 6, 0, .75);

    box-shadow:
            0 0 10px
            rgba(225, 6, 0, .25);

}


.game-ranking-player-name {

    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}

/* =========================================================
   GAME AVATAR VIEWER
   ========================================================= */

.game-avatar-viewer {

    position: fixed;

    inset: 0;

    z-index: 2000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
            rgba(0, 0, 0, .82);

}


.game-avatar-viewer-content {

    position: relative;

    max-width: 90vw;

    max-height: 90vh;

}


.game-avatar-viewer-image {

    display: block;

    max-width: 90vw;

    max-height: 90vh;

    object-fit: contain;

    border-radius: 12px;

    box-shadow:
            0 20px 60px
            rgba(0, 0, 0, .6);

}


.game-avatar-viewer-content img {

    display: block;

    max-width: 90vw;

    max-height: 90vh;

    object-fit: contain;

    border-radius: 12px;

    box-shadow:
            0 20px 60px
            rgba(0, 0, 0, .6);

}


.game-avatar-viewer-close {

    position: absolute;

    top: -14px;

    right: -14px;

    width: 34px;

    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    border: none;

    border-radius: 50%;

    background:
            rgba(0, 0, 0, .75);

    color: #fff;

    font-size: 1rem;

    cursor: pointer;

    z-index: 1;

}


.game-avatar-viewer-close:hover {

    background: #e10600;

}

/* =========================================================
   GAMES HOW TO PLAY
   ========================================================= */

.game-card-howto-link {

    display: flex;

    justify-content: center;

    margin-top: 18px;

    margin-bottom: 24px;

}


.game-card-howto-button {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 6px 10px;

    border: 1px solid
    rgba(255, 255, 255, .10);

    border-radius: 8px;

    background: transparent;

    color: #9ca3af;

    font-size: .8rem;

    cursor: pointer;

    transition:
            color .2s ease,
            border-color .2s ease,
            background .2s ease;

}


.game-card-howto-button:hover {

    color: #fff;

    border-color:
            rgba(255, 255, 255, .20);

    background:
            rgba(255, 255, 255, .04);

}

/* =========================================================
   GAMES HOW TO PLAY MODALS
   ========================================================= */

#lightsOutHowToModal .modal-content,
#reactionLightsHowToModal .modal-content {

    background: #171b27;

    color: #fff;

    border: 1px solid
    rgba(255, 255, 255, .08);

    border-radius: 16px;

    box-shadow:
            0 20px 60px
            rgba(0, 0, 0, .5);

}


#lightsOutHowToModal .modal-header,
#reactionLightsHowToModal .modal-header {

    padding: 18px 22px;

    border-bottom:
            1px solid
            rgba(255, 255, 255, .08);

}


#lightsOutHowToModal .modal-title,
#reactionLightsHowToModal .modal-title {

    color: #fff;

    font-weight: 700;

}


#lightsOutHowToModal .modal-body,
#reactionLightsHowToModal .modal-body {

    padding: 22px;

    color: #b8bcc7;

    line-height: 1.6;

}


#lightsOutHowToModal .modal-body li,
#reactionLightsHowToModal .modal-body li {

    margin-bottom: 8px;

}


#lightsOutHowToModal .modal-body strong,
#reactionLightsHowToModal .modal-body strong {

    color: #fff;

}


#lightsOutHowToModal .btn-close,
#reactionLightsHowToModal .btn-close {

    filter: invert(1);

    opacity: .7;

}


#lightsOutHowToModal .btn-close:hover,
#reactionLightsHowToModal .btn-close:hover {

    opacity: 1;

}

/* =========================================================
   GAME SCROLL LOCK
   ========================================================= */

html.game-scroll-locked,
body.game-scroll-locked {

    overflow: hidden;

}


/*
 * Prevent touch gestures inside the game area
 * from being interpreted as page scrolling.
 */

#reactionArea,
#reactionLightsArea {

    touch-action: none;

}

.competition-attempts {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 1rem;

    margin: 1rem 0;

    padding: 0.8rem 1.1rem;

    border-radius: 0.75rem;

    background:
            linear-gradient(
                    135deg,
                    rgba(225, 6, 0, .12),
                    rgba(100, 0, 0, .08)
            );

    border: 1px solid
    rgba(225, 6, 0, .35);

    box-shadow:
            inset 0 0 20px
            rgba(225, 6, 0, .04);

}


.competition-attempts-label {

    color: #d1d5db;

    font-size: .85rem;

    font-weight: 600;

}


.competition-attempts strong {

    min-width: 45px;

    text-align: center;

    padding: 4px 9px;

    border-radius: 6px;

    background: rgba(255, 255, 255, .06);

    color: #fff;

    font-size: .9rem;

    font-weight: 700;

}