/* =========================================================
   CREAMY ROCK PAPER SCISSORS
========================================================= */

:root {

    --cream: #f7f0e4;
    --cream-dark: #eee3d2;
    --paper: #fffaf2;
    --white: #fffdf9;

    --brown: #46372d;
    --brown-light: #79675a;

    --coffee: #8a6249;
    --coffee-dark: #654533;

    --gold: #b58a52;
    --gold-light: #d8b47a;

    --green: #68785b;

    --red: #a65d52;

    --border: rgba(70,55,45,.12);

    --shadow:
        0 18px 50px rgba(78,57,40,.10);

    --soft-shadow:
        0 8px 25px rgba(78,57,40,.08);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    min-height: 100vh;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(216,180,122,.18),
            transparent 25%
        ),

        radial-gradient(
            circle at 90% 80%,
            rgba(138,98,73,.10),
            transparent 30%
        ),

        var(--cream);

    color: var(--brown);

    font-family:
        'DM Sans',
        sans-serif;

    overflow-x: hidden;
}


/* ================= DECORATION ================= */

.page-decoration {

    position: fixed;

    border-radius: 50%;

    pointer-events: none;

    z-index: -1;

    filter: blur(1px);
}


.decoration-one {

    width: 300px;
    height: 300px;

    top: -170px;
    right: -100px;

    border: 1px solid rgba(181,138,82,.18);
}


.decoration-two {

    width: 240px;
    height: 240px;

    bottom: -130px;
    left: -80px;

    background: rgba(216,180,122,.09);
}


/* ================= HEADER ================= */

.topbar {

    width: min(1180px, calc(100% - 35px));

    margin: 22px auto 0;

    min-height: 76px;

    padding: 13px 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border:

        1px solid var(--border);

    border-radius: 18px;

    background:
        rgba(255,250,242,.76);

    backdrop-filter: blur(15px);

    box-shadow:
        0 8px 35px rgba(75,55,40,.06);

    animation:
        headerIn .7s ease both;
}


@keyframes headerIn {

    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.brand {

    display: flex;

    align-items: center;

    gap: 13px;
}


.brand-mark {

    width: 45px;
    height: 45px;

    display: grid;

    place-items: center;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            var(--coffee),
            var(--gold)
        );

    color: white;

    font-size: 20px;

    box-shadow:
        0 7px 18px rgba(101,69,51,.20);
}


.brand-small {

    display: block;

    color: var(--gold);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 2px;
}


.brand h1 {

    margin-top: 2px;

    font-family:
        'Playfair Display',
        serif;

    font-size: 21px;

    line-height: 1.1;

    color: var(--brown);
}


.top-status {

    padding: 8px 12px;

    border-radius: 999px;

    border:
        1px solid rgba(104,120,91,.18);

    color: var(--green);

    background:
        rgba(104,120,91,.07);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1px;

    display: flex;

    align-items: center;

    gap: 7px;
}


.status-dot {

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--green);

    animation:
        statusPulse 1.5s infinite;
}


@keyframes statusPulse {

    50% {
        opacity: .4;
        transform: scale(.7);
    }
}


/* ================= CONTAINER ================= */

.container {

    width: min(1050px, calc(100% - 30px));

    margin: auto;

    padding:
        65px 0
        70px;
}


/* ================= HERO ================= */

.hero {

    text-align: center;

    animation:
        fadeUp .8s .1s both;
}


.overline {

    color: var(--coffee);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 2.5px;
}


.hero h2 {

    margin-top: 12px;

    font-family:
        'Playfair Display',
        serif;

    font-size:
        clamp(36px, 6vw, 65px);

    line-height: 1.04;

    letter-spacing: -1.5px;

    color: var(--brown);
}


.hero h2 span {

    color: var(--coffee);

    position: relative;
}


.hero h2 span::after {

    content: "";

    position: absolute;

    left: 5%;
    right: 5%;

    bottom: -5px;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--gold),
            transparent
        );

    transform:
        scaleX(0);

    animation:
        underlineIn .8s .7s forwards;
}


@keyframes underlineIn {

    to {
        transform: scaleX(1);
    }
}


.hero p {

    margin-top: 15px;

    color: var(--brown-light);

    font-size: 13px;
}


/* ================= SCOREBOARD ================= */

.scoreboard {

    margin-top: 45px;

    padding: 25px 30px;

    display: grid;

    grid-template-columns:
        1fr
        70px
        1fr;

    align-items: center;

    border:
        1px solid var(--border);

    border-radius: 24px;

    background:
        rgba(255,250,242,.82);

    box-shadow: var(--shadow);

    animation:
        fadeUp .8s .25s both;
}


.score-side {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


.person {

    display: flex;

    align-items: center;

    gap: 10px;
}


.person-icon {

    width: 40px;
    height: 40px;

    display: grid;

    place-items: center;

    border-radius: 12px;

    background:
        var(--cream-dark);

    border:
        1px solid var(--border);

    color: var(--coffee);

    font-size: 20px;
}


.person span {

    display: block;

    color: var(--brown-light);

    font-size: 7px;

    font-weight: 800;

    letter-spacing: 1.5px;
}


.person strong {

    display: block;

    margin-top: 2px;

    font-family:
        'Playfair Display',
        serif;

    font-size: 16px;
}


.big-score {

    font-family:
        'Playfair Display',
        serif;

    font-size: 46px;

    font-weight: 800;

    line-height: 1;

    color: var(--coffee);
}


.computer-side .big-score {

    color: var(--brown);
}


.score-middle {

    display: flex;

    justify-content: center;
}


.score-middle span {

    width: 42px;
    height: 42px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        var(--brown);

    color:
        var(--cream);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1px;

    box-shadow:
        0 8px 20px rgba(70,55,45,.18);
}


/* ================= BATTLE ================= */

.battle {

    margin-top: 28px;

    display: grid;

    grid-template-columns:
        1fr
        120px
        1fr;

    align-items: center;

    gap: 20px;

    padding: 25px;

    border:
        1px solid var(--border);

    border-radius: 24px;

    background:
        rgba(255,255,255,.45);

    animation:
        fadeUp .8s .35s both;
}


.battle-player {

    text-align: center;
}


.battle-label {

    display: block;

    color: var(--brown-light);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.8px;

    margin-bottom: 12px;
}


.move-circle {

    width: 125px;
    height: 125px;

    margin: auto;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #fffdf9,
            #eee2d2
        );

    border:
        5px solid
        rgba(255,255,255,.75);

    box-shadow:
        0 12px 30px rgba(75,55,40,.12),
        inset 0 0 0 1px rgba(70,55,45,.08);

    transition: .4s;
}


.move-circle span {

    color:
        rgba(70,55,45,.25);

    font-family:
        'Playfair Display',
        serif;

    font-size: 48px;
}


.computer-move {

    background:
        linear-gradient(
            145deg,
            #fffdf9,
            #e8ded2
        );
}


.battle-player > strong {

    display: block;

    margin-top: 10px;

    color: var(--coffee);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1px;
}


.battle-center {

    text-align: center;
}


.round-number {

    color: var(--brown-light);

    font-size: 7px;

    font-weight: 800;

    letter-spacing: 1.5px;
}


.round-number span {

    color: var(--coffee);
}


.versus {

    margin-top: 8px;

    font-family:
        'Playfair Display',
        serif;

    font-size: 30px;

    color: var(--brown);
}


.round-line {

    width: 35px;
    height: 1px;

    margin: 8px auto 0;

    background: var(--gold);
}


/* ================= RESULT ================= */

.result-box {

    margin-top: 25px;

    text-align: center;

    animation:
        fadeUp .8s .45s both;
}


.result-caption {

    display: block;

    color: var(--brown-light);

    font-size: 7px;

    font-weight: 800;

    letter-spacing: 2px;
}


#msg {

    display: inline-block;

    margin-top: 8px;

    padding: 11px 20px;

    border-radius: 999px;

    border:
        1px solid var(--border);

    background:
        rgba(255,250,242,.8);

    color: var(--brown);

    font-size: 11px;

    font-weight: 600;

    box-shadow:
        0 5px 18px rgba(75,55,40,.05);

    transition: .3s;
}


#msg.win {

    color: #536448;

    background:
        rgba(104,120,91,.09);

    border-color:
        rgba(104,120,91,.2);
}


#msg.lose {

    color: var(--red);

    background:
        rgba(166,93,82,.08);

    border-color:
        rgba(166,93,82,.18);
}


#msg.draw {

    color: var(--coffee-dark);

    background:
        rgba(181,138,82,.10);

    border-color:
        rgba(181,138,82,.2);
}


/* ================= CHOICES ================= */

.choice-area {

    margin-top: 38px;

    animation:
        fadeUp .8s .55s both;
}


.choice-heading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    margin-bottom: 13px;
}


.choice-heading span {

    color: var(--coffee);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 2px;
}


.choice-heading p {

    color: var(--brown-light);

    font-size: 10px;
}


.choices {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 14px;
}


.choice {

    position: relative;

    min-height: 175px;

    padding: 17px;

    border:
        1px solid var(--border);

    border-radius: 20px;

    background:
        rgba(255,250,242,.88);

    color: var(--brown);

    cursor: pointer;

    text-align: left;

    overflow: hidden;

    box-shadow:
        0 7px 22px rgba(75,55,40,.05);

    transition:
        transform .35s,
        box-shadow .35s,
        border-color .35s;
}


.choice:hover {

    transform:
        translateY(-7px);

    border-color:
        rgba(138,98,73,.28);

    box-shadow:
        0 18px 35px rgba(75,55,40,.12);
}


.choice:active {

    transform:
        translateY(-2px)
        scale(.98);
}


.choice.selected {

    border-color:
        var(--gold);

    box-shadow:
        0 15px 35px rgba(181,138,82,.16);

    transform:
        translateY(-6px);
}


.choice-number {

    position: absolute;

    top: 13px;
    right: 15px;

    color:
        rgba(70,55,45,.22);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1px;
}


.choice-image {

    width: 92px;
    height: 92px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        #f0e6d8;

    box-shadow:
        inset 0 0 0 1px rgba(70,55,45,.05);

    transition: .4s;
}


.choice:hover .choice-image {

    transform:
        scale(1.08)
        rotate(3deg);
}


.choice-image img {

    width: 82px;
    height: 82px;

    object-fit: cover;

    border-radius: 50%;
}


.choice-text {

    margin-top: 13px;
}


.choice-text strong {

    display: block;

    font-family:
        'Playfair Display',
        serif;

    font-size: 17px;
}


.choice-text span {

    display: block;

    margin-top: 2px;

    color: var(--brown-light);

    font-size: 8px;

    font-weight: 600;
}


.choice-arrow {

    position: absolute;

    right: 15px;
    bottom: 15px;

    width: 25px;
    height: 25px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        var(--cream-dark);

    color: var(--coffee);

    font-size: 12px;

    transition: .3s;
}


.choice:hover .choice-arrow {

    background:
        var(--coffee);

    color: white;

    transform:
        rotate(45deg);
}


/* ================= STATS ================= */

.stats {

    margin-top: 25px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    border:
        1px solid var(--border);

    border-radius: 18px;

    overflow: hidden;

    background:
        rgba(255,250,242,.72);

    animation:
        fadeUp .8s .65s both;
}


.stat {

    padding: 17px;

    text-align: center;

    border-right:
        1px solid var(--border);
}


.stat:last-child {

    border-right: 0;
}


.stat span {

    display: block;

    color: var(--brown-light);

    font-size: 7px;

    font-weight: 800;

    letter-spacing: 1.4px;
}


.stat strong {

    display: block;

    margin-top: 5px;

    font-family:
        'Playfair Display',
        serif;

    font-size: 23px;
}


.stat.highlight strong {

    color: var(--gold);
}


/* ================= CONTROLS ================= */

.controls {

    margin-top: 18px;

    display: flex;

    justify-content: center;

    gap: 8px;
}


.new-game {

    padding:
        11px 17px;

    border: 0;

    border-radius: 10px;

    background:
        var(--brown);

    color:
        var(--cream);

    font-family:
        inherit;

    font-size: 10px;

    font-weight: 700;

    cursor: pointer;

    transition: .3s;
}


.new-game span {

    margin-right: 4px;

    font-size: 15px;
}


.new-game:hover {

    background:
        var(--coffee);

    transform:
        translateY(-2px);
}


.sound-toggle {

    width: 39px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background:
        var(--paper);

    cursor: pointer;

    transition: .3s;
}


.sound-toggle:hover {

    transform:
        translateY(-2px);

    background:
        var(--cream-dark);
}


/* ================= HISTORY ================= */

.history {

    margin-top: 40px;

    padding: 22px;

    border:
        1px solid var(--border);

    border-radius: 20px;

    background:
        rgba(255,250,242,.65);

    animation:
        fadeUp .8s .75s both;
}


.history-title {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;
}


.history-title span {

    color: var(--gold);

    font-size: 7px;

    font-weight: 800;

    letter-spacing: 2px;
}


.history-title h3 {

    margin-top: 3px;

    font-family:
        'Playfair Display',
        serif;

    font-size: 20px;
}


.history-title small {

    color:
        var(--brown-light);

    font-size: 9px;
}


.history-list {

    margin-top: 15px;

    display: flex;

    flex-direction: column;

    gap: 7px;
}


.empty-history {

    padding: 25px;

    text-align: center;

    border:
        1px dashed
        rgba(70,55,45,.14);

    border-radius: 13px;

    color: var(--brown-light);
}


.empty-history span {

    display: block;

    font-size: 23px;

    color: var(--gold);
}


.empty-history p {

    margin-top: 5px;

    font-size: 9px;
}


.history-item {

    display: grid;

    grid-template-columns:
        32px
        1fr
        auto;

    align-items: center;

    gap: 10px;

    padding:
        9px 11px;

    border:
        1px solid rgba(70,55,45,.07);

    border-radius: 12px;

    background:
        rgba(255,255,255,.4);

    animation:
        historyIn .35s both;
}


.history-number {

    width: 27px;
    height: 27px;

    display: grid;

    place-items: center;

    border-radius: 8px;

    background:
        var(--cream-dark);

    color:
        var(--brown-light);

    font-size: 8px;

    font-weight: 800;
}


.history-match {

    text-align: left;
}


.history-match strong {

    display: block;

    font-size: 9px;
}


.history-match small {

    color:
        var(--brown-light);

    font-size: 7px;
}


.history-result {

    padding:
        5px 9px;

    border-radius: 999px;

    font-size: 7px;

    font-weight: 900;

    letter-spacing: 1px;
}


.history-result.win {

    color: #536448;

    background:
        rgba(104,120,91,.10);
}


.history-result.lose {

    color: var(--red);

    background:
        rgba(166,93,82,.09);
}


.history-result.draw {

    color: var(--coffee);

    background:
        rgba(181,138,82,.10);
}


@keyframes historyIn {

    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ================= RULES ================= */

.rules {

    margin-top: 12px;

    border:
        1px solid var(--border);

    border-radius: 15px;

    overflow: hidden;

    background:
        rgba(255,250,242,.55);
}


#rules-toggle {

    width: 100%;

    padding: 13px 15px;

    border: 0;

    background: transparent;

    display: flex;

    align-items: center;

    gap: 8px;

    color: var(--brown);

    cursor: pointer;

    font-family:
        inherit;

    font-size: 9px;

    font-weight: 700;

    text-align: left;
}


.info-icon {

    width: 18px;
    height: 18px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        var(--cream-dark);

    color:
        var(--coffee);

    font-size: 9px;
}


.rule-arrow {

    margin-left: auto;

    transition: .3s;
}


#rules-toggle.open .rule-arrow {

    transform:
        rotate(180deg);
}


.rules-content {

    max-height: 0;

    overflow: hidden;

    display: flex;

    justify-content: center;

    gap: 25px;

    transition:
        max-height .4s ease;
}


.rules-content.open {

    max-height: 100px;

    padding:
        0 15px
        15px;
}


.rules-content div {

    display: flex;

    align-items: center;

    gap: 6px;

    color:
        var(--brown-light);

    font-size: 8px;
}


.rules-content div span {

    font-size: 15px;
}


/* ================= OVERLAY ================= */

.overlay {

    position: fixed;

    inset: 0;

    z-index: 1000;

    display: grid;

    place-items: center;

    padding: 20px;

    background:
        rgba(70,55,45,.28);

    backdrop-filter:
        blur(7px);

    opacity: 0;

    visibility: hidden;

    transition: .3s;
}


.overlay.show {

    opacity: 1;

    visibility: visible;
}


.popup {

    width:
        min(380px, 100%);

    padding: 35px 25px;

    text-align: center;

    border:
        1px solid rgba(70,55,45,.12);

    border-radius: 25px;

    background:
        var(--paper);

    box-shadow:
        0 25px 70px rgba(70,55,45,.2);

    transform:
        translateY(25px)
        scale(.9);

    transition:
        .4s cubic-bezier(.2,.8,.2,1);
}


.overlay.show .popup {

    transform:
        translateY(0)
        scale(1);
}


.popup-icon {

    width: 65px;
    height: 65px;

    margin: auto;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        var(--cream-dark);

    color:
        var(--gold);

    font-size: 30px;

    animation:
        popupIcon .5s .15s both;
}


@keyframes popupIcon {

    from {
        transform: scale(.3) rotate(-15deg);
    }

    to {
        transform: scale(1) rotate(0);
    }
}


.popup > span {

    display: block;

    margin-top: 13px;

    color:
        var(--gold);

    font-size: 7px;

    font-weight: 800;

    letter-spacing: 2px;
}


.popup h2 {

    margin-top: 5px;

    font-family:
        'Playfair Display',
        serif;

    font-size: 32px;
}


.popup p {

    margin-top: 6px;

    color:
        var(--brown-light);

    font-size: 10px;

    line-height: 1.6;
}


#continue-btn {

    margin-top: 20px;

    padding:
        11px 25px;

    border: 0;

    border-radius: 10px;

    background:
        var(--brown);

    color:
        var(--cream);

    font-family:
        inherit;

    font-size: 10px;

    font-weight: 700;

    cursor: pointer;

    transition: .3s;
}


#continue-btn:hover {

    background:
        var(--coffee);

    transform:
        translateY(-2px);
}


/* ================= TOAST ================= */

.toast {

    position: fixed;

    left: 50%;
    bottom: 22px;

    z-index: 2000;

    padding:
        10px 16px;

    border:
        1px solid var(--border);

    border-radius: 999px;

    background:
        var(--paper);

    box-shadow:
        0 10px 30px rgba(70,55,45,.15);

    color:
        var(--brown);

    font-size: 9px;

    font-weight: 700;

    transform:
        translate(-50%, 70px);

    opacity: 0;

    transition: .35s;
}


.toast.show {

    opacity: 1;

    transform:
        translate(-50%, 0);
}


/* ================= MOVE ANIMATION ================= */

.move-reveal {

    animation:
        moveReveal .55s
        cubic-bezier(.2,.8,.2,1);
}


@keyframes moveReveal {

    0% {
        opacity: .2;
        transform:
            scale(.65)
            rotate(-12deg);
    }

    60% {
        transform:
            scale(1.08)
            rotate(4deg);
    }

    100% {
        opacity: 1;
        transform:
            scale(1)
            rotate(0);
    }
}


.score-pop {

    animation:
        scorePop .45s ease;
}


@keyframes scorePop {

    50% {
        transform: scale(1.25);
    }
}


/* ================= BALLOONS ================= */

.balloon {

    position: fixed;

    bottom: -40px;

    width: 18px;
    height: 22px;

    border-radius: 50%;

    z-index: 1500;

    pointer-events: none;

    animation:
        balloonFloat 3s
        linear forwards;
}


.balloon::after {

    content: "";

    position: absolute;

    top: 20px;
    left: 50%;

    width: 1px;
    height: 35px;

    background:
        rgba(70,55,45,.25);
}


@keyframes balloonFloat {

    to {

        transform:
            translateY(-110vh)
            translateX(var(--drift))
            rotate(15deg);

        opacity: 0;
    }
}


/* ================= GENERAL ================= */

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ================= TABLET ================= */

@media (max-width: 760px) {

    .container {
        padding-top: 45px;
    }


    .scoreboard {
        padding: 20px;
    }


    .battle {
        grid-template-columns:
            1fr
            70px
            1fr;

        gap: 10px;
    }


    .move-circle {
        width: 105px;
        height: 105px;
    }


    .move-circle span {
        font-size: 40px;
    }


    .choice {
        min-height: 155px;
    }


    .choice-image {
        width: 78px;
        height: 78px;
    }


    .choice-image img {
        width: 70px;
        height: 70px;
    }

}


/* ================= MOBILE ================= */

@media (max-width: 560px) {

    .topbar {

        width:
            calc(100% - 18px);

        margin-top: 9px;

        padding:
            10px 12px;

        min-height: 65px;
    }


    .brand-mark {

        width: 38px;
        height: 38px;

        font-size: 16px;
    }


    .brand-small {

        font-size: 6px;
    }


    .brand h1 {

        font-size: 15px;
    }


    .top-status {

        display: none;
    }


    .container {

        width:
            calc(100% - 18px);

        padding-top: 35px;
    }


    .overline {

        font-size: 7px;

        letter-spacing: 1.4px;
    }


    .hero h2 {

        font-size: 33px;

        letter-spacing: -.8px;
    }


    .hero p {

        font-size: 10px;

        max-width: 290px;

        margin-left: auto;
        margin-right: auto;
    }


    .scoreboard {

        margin-top: 30px;

        padding:
            17px 12px;

        grid-template-columns:
            1fr
            40px
            1fr;

        border-radius: 18px;
    }


    .person {

        gap: 6px;
    }


    .person-icon {

        width: 31px;
        height: 31px;

        font-size: 15px;
    }


    .person span {

        font-size: 6px;
    }


    .person strong {

        font-size: 12px;
    }


    .big-score {

        font-size: 35px;
    }


    .score-middle span {

        width: 32px;
        height: 32px;

        font-size: 7px;
    }


    .battle {

        margin-top: 18px;

        padding:
            18px 8px;

        grid-template-columns:
            1fr
            42px
            1fr;

        border-radius: 18px;
    }


    .battle-label {

        font-size: 6px;

        letter-spacing: 1px;
    }


    .move-circle {

        width: 76px;
        height: 76px;

        border-width: 3px;
    }


    .move-circle span {

        font-size: 30px;
    }


    .battle-player > strong {

        font-size: 7px;
    }


    .versus {

        font-size: 22px;
    }


    .round-number {

        font-size: 6px;
    }


    #msg {

        max-width: 95%;

        font-size: 9px;

        padding:
            9px 13px;
    }


    .choice-area {

        margin-top: 28px;
    }


    .choices {

        gap: 7px;
    }


    .choice {

        min-height: 125px;

        padding: 10px;

        border-radius: 15px;
    }


    .choice-number {

        top: 9px;
        right: 9px;

        font-size: 6px;
    }


    .choice-image {

        width: 60px;
        height: 60px;
    }


    .choice-image img {

        width: 53px;
        height: 53px;
    }


    .choice-text {

        margin-top: 8px;
    }


    .choice-text strong {

        font-size: 13px;
    }


    .choice-text span {

        font-size: 6px;
    }


    .choice-arrow {

        width: 20px;
        height: 20px;

        right: 8px;
        bottom: 8px;

        font-size: 9px;
    }


    .stats {

        margin-top: 15px;

        grid-template-columns:
            repeat(4, 1fr);

        border-radius: 13px;
    }


    .stat {

        padding: 10px 3px;
    }


    .stat span {

        font-size: 5px;

        letter-spacing: .7px;
    }


    .stat strong {

        font-size: 17px;
    }


    .history {

        padding: 15px;

        margin-top: 28px;
    }


    .history-title h3 {

        font-size: 17px;
    }


    .rules-content {

        flex-direction: column;

        gap: 7px;
    }


    .rules-content.open {

        max-height: 150px;
    }

}


/* ================= EXTRA SMALL ================= */

@media (max-width: 380px) {

    .hero h2 {
        font-size: 29px;
    }


    .choice {
        min-height: 115px;
    }


    .choice-image {
        width: 52px;
        height: 52px;
    }


    .choice-image img {
        width: 46px;
        height: 46px;
    }


    .choice-text strong {
        font-size: 11px;
    }


    .move-circle {
        width: 68px;
        height: 68px;
    }


    .move-circle span {
        font-size: 27px;
    }


    .big-score {
        font-size: 31px;
    }
}


/* ================= REDUCED MOTION ================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: .01ms !important;
    }
}
