:root {
    --bg-night: #29274e;
    --bg-outer: #1b1936;
    --cream-card: #faf1dc;
    --peach-border: #e5ae93;
    --peach-dashed: #e2ad93;
    --brown-stroke: #8f4a45;
    --brown-text-stroke: #9a5347;
    --nav-bg: #4b4879;
    --nav-top-bevel: #59588c;
    --nav-active: #333158;
    --font-display: 'Baloo 2', 'Nunito', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    min-height: 100%;
    background-color: var(--bg-night);
    font-family: var(--font-display);
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

@media (min-width: 500px) {
    body {
        background: radial-gradient(circle at 50% 25%, #2f2c5b 0%, var(--bg-outer) 100%);
    }
}

.viewport-stage {
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.app-shell {
    position: relative;
    width: 100%;
    max-width: 440px;
    min-height: 100dvh;
    background-color: var(--bg-night);
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    box-shadow: 0 0 48px rgba(8, 7, 24, 0.55);
}

/* =========================================================
   Background Sparkles & Confetti
   ========================================================= */
.sky-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 177.73cqw;
    pointer-events: none;
    z-index: 1;
}

.sparkle-star,
.sparkle-dot,
.confetti {
    transform-box: fill-box;
    transform-origin: center;
}

.s1 { animation: twinkle 3.2s ease-in-out infinite; }
.s2 { animation: twinkle 4.1s ease-in-out 0.7s infinite; }
.s3 { animation: twinkle 3.6s ease-in-out 1.4s infinite; }
.s4 { animation: twinkle 4.5s ease-in-out 0.3s infinite; }
.c1 { animation: floatConfetti 5s ease-in-out infinite; }
.c2 { animation: floatConfetti 5.6s ease-in-out 1.1s infinite; }

@keyframes twinkle {
    0%, 100% { opacity: 0.92; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.52; transform: scale(0.84) rotate(8deg); }
}

@keyframes floatConfetti {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(6deg); }
}

/* =========================================================
   Main Content Layout (Exact proportions of 1536x2730)
   ========================================================= */
.main-content {
    position: relative;
    z-index: 2;
    flex: 1 0 auto;
    padding-bottom: 5.0cqw;
}

.tab-panel {
    display: none;
}

.tab-panel.is-active {
    display: block;
}

/* Header Logo */
.hero-header {
    padding: 7.15cqw 6.51cqw 3.7cqw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-logo {
    display: block;
    width: 87cqw;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo:hover,
.brand-logo:active {
    transform: scale(1.02);
}

.brand-logo img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
}

/* Section Headings */
.section-block {
    margin-bottom: 0;
}

.section-featured {
    margin-top: 2.3cqw;
}

.section-hot {
    margin-top: 4.3cqw;
}

.section-mini {
    margin-top: 3.3cqw;
}

.section-title {
    padding: 0 6.7cqw;
    margin-bottom: 2.05cqw;
    font-family: 'Nunito', 'Baloo 2', sans-serif;
    font-weight: 900;
    font-size: 4.35cqw;
    line-height: 1.08;
    letter-spacing: 0.015em;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 0.35cqw 0 rgba(16, 15, 42, 0.45);
}

/* =========================================================
   Cream Card Frame (Shared across Banner, Hot, Mini)
   ========================================================= */
.card-frame {
    background-color: var(--cream-card);
    border: 0.42cqw solid var(--peach-border);
    box-shadow:
        inset 0 0.22cqw 0 #fff9ea,
        0 0.72cqw 0 rgba(17, 18, 48, 0.45),
        0 1.45cqw 2.5cqw rgba(10, 10, 32, 0.35);
}

/* Featured Banner Card */
.card-frame--banner {
    margin: 0 6.51cqw;
    border-radius: 5.4cqw;
    padding: 1.38cqw;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-frame--banner:hover {
    transform: translateY(-0.35cqw);
}

.card-frame--banner:active {
    transform: scale(0.99);
}

.banner-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 1273 / 511;
    border-radius: 4.1cqw;
    overflow: hidden;
    border: 0.28cqw dashed var(--peach-dashed);
    background-color: #c2e9f0;
}

.banner-art {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
}

/* CHƠI NGAY Pink Pill Button */
.btn-play-now {
    position: absolute;
    left: 50%;
    top: 66.2%;
    transform: translateX(-50%);
    width: 37.3%;
    height: 27.1%;
    border: 0.44cqw solid #8f4a45;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffada5 0%, #fb8889 56%, #f06d76 100%);
    box-shadow:
        inset 0 -1.05cqw 0 #da5962,
        inset 0 0.55cqw 0 rgba(255, 232, 224, 0.55),
        0 0.75cqw 1.1cqw rgba(82, 66, 36, 0.28);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.16s ease;
}

/* Glossy highlight pill on top-left */
.btn-play-now::before {
    content: "";
    position: absolute;
    top: 12%;
    left: 6%;
    width: 9%;
    height: 24%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    transform: rotate(-16deg);
    pointer-events: none;
}

.btn-play-now::after {
    content: "";
    position: absolute;
    top: 14%;
    left: 16.5%;
    width: 2.3%;
    height: 16%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.68);
    pointer-events: none;
}

.card-frame--banner:hover .btn-play-now,
.btn-play-now:hover {
    transform: translateX(-50%) scale(1.035);
}

.btn-play-now:active {
    transform: translateX(-50%) translateY(0.45cqw) scale(0.98);
    box-shadow:
        inset 0 -0.45cqw 0 #da5962,
        0 0.25cqw 0.5cqw rgba(82, 66, 36, 0.28);
}

.btn-play-now__label {
    width: 78%;
    height: 74%;
    overflow: visible;
    pointer-events: none;
}

.btn-play-now__star {
    position: absolute;
    right: -3.2%;
    top: -21%;
    width: 19.5%;
    aspect-ratio: 1;
    pointer-events: none;
    filter: drop-shadow(0 0.35cqw 0.3cqw rgba(92, 54, 42, 0.25));
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-play-now:hover .btn-play-now__star {
    transform: rotate(14deg) scale(1.08);
}

/* SVG Crisp Rounded Stroke Typography for Buttons */
.svg-btn-text {
    font-family: 'Baloo 2', 'Nunito', sans-serif;
    font-weight: 800;
    fill: #ffffff;
    stroke: #9a5347;
    stroke-linejoin: round;
    stroke-linecap: round;
    paint-order: stroke fill;
}

.svg-btn-text--lg {
    font-size: 54px;
    stroke-width: 10.5px;
    letter-spacing: 0.5px;
}

.svg-btn-text--sm {
    font-size: 42px;
    stroke-width: 9.8px;
    letter-spacing: 0.4px;
}

/* =========================================================
   GAME HOT Horizontal Carousel
   ========================================================= */
.hot-carousel {
    display: flex;
    gap: 2.38cqw;
    padding: 0.2cqw 6.51cqw 1.2cqw;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    cursor: grab;
}

.hot-carousel::-webkit-scrollbar {
    display: none;
}

.hot-carousel.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.card-frame--hot {
    flex: 0 0 19.95cqw;
    border-radius: 3.95cqw;
    padding: 1.05cqw 1.05cqw 1.45cqw;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-frame--hot:hover {
    transform: translateY(-0.45cqw);
}

.hot-thumb {
    width: 100%;
    aspect-ratio: 264 / 270;
    border-radius: 2.55cqw;
    overflow: hidden;
    background-color: #e6f2ec;
}

.hot-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
}

/* Golden Yellow CHƠI Pill Button */
.btn-play-pill {
    position: relative;
    border: 0.36cqw solid #a95c50;
    border-radius: 999px;
    background: linear-gradient(180deg, #fae99c 0%, #fbd176 55%, #f0b16a 100%);
    box-shadow:
        inset 0 -0.68cqw 0 #e09961,
        inset 0 0.35cqw 0 rgba(255, 250, 224, 0.72),
        0 0.52cqw 0 #e2cdb9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.14s ease;
}

.btn-play-pill::before {
    content: "";
    position: absolute;
    top: 14%;
    left: 11%;
    width: 14%;
    height: 22%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    transform: rotate(-18deg);
    pointer-events: none;
}

.btn-play-pill--hot {
    margin-top: 1.25cqw;
    width: 82%;
    height: 5.5cqw;
}

.btn-play-pill:hover {
    transform: scale(1.04);
}

.btn-play-pill:active {
    transform: translateY(0.35cqw) scale(0.97);
    box-shadow:
        inset 0 -0.3cqw 0 #e09961,
        0 0.18cqw 0 #e2cdb9;
}

.btn-play-pill__label {
    width: 78%;
    height: 76%;
    overflow: visible;
    pointer-events: none;
}

/* =========================================================
   MINI GAME 2x2 Grid
   ========================================================= */
.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.38cqw;
    padding: 0 6.51cqw;
}

.card-frame--mini {
    border-radius: 3.95cqw;
    padding: 1.05cqw;
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-frame--mini:hover {
    transform: translateY(-0.4cqw);
}

.mini-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 606 / 267;
    border-radius: 2.65cqw;
    overflow: hidden;
    background-color: #f5e5c5;
}

.mini-inner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
}

.btn-play-pill--corner {
    position: absolute;
    right: 2.6%;
    bottom: 5.2%;
    width: 34.4%;
    height: 32.8%;
    box-shadow:
        inset 0 -0.68cqw 0 #e09961,
        inset 0 0.35cqw 0 rgba(255, 250, 224, 0.72),
        0 0.45cqw 0.55cqw rgba(76, 48, 36, 0.32);
}

.btn-play-pill--corner:active {
    box-shadow:
        inset 0 -0.3cqw 0 #e09961,
        0 0.15cqw 0.3cqw rgba(76, 48, 36, 0.25);
}

/* =========================================================
   Bottom Navigation Bar (Sticky, exact proportions)
   ========================================================= */
.bottom-nav {
    position: sticky;
    bottom: 0;
    z-index: 40;
    margin-top: auto;
    height: calc(12.2cqw + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background-color: var(--nav-bg);
    box-shadow: inset 0 0.7cqw 0 var(--nav-top-bevel);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
}

/* Sliding Active Dark Pill (#333158) */
.bottom-nav__indicator {
    position: absolute;
    top: 0.7cqw;
    bottom: 0;
    left: 0;
    width: 26.5%;
    background-color: var(--nav-active);
    border-top-right-radius: 5.2cqw;
    transition:
        left 0.28s cubic-bezier(0.34, 1.4, 0.64, 1),
        border-radius 0.25s ease;
    pointer-events: none;
    z-index: 1;
}

.bottom-nav__indicator[data-active-index="0"] {
    left: 0%;
    width: 26.6%;
    border-top-left-radius: 0;
    border-top-right-radius: 5.2cqw;
}

.bottom-nav__indicator[data-active-index="1"] {
    left: 25%;
    width: 25%;
    border-top-left-radius: 4.6cqw;
    border-top-right-radius: 4.6cqw;
}

.bottom-nav__indicator[data-active-index="2"] {
    left: 50%;
    width: 25%;
    border-top-left-radius: 4.6cqw;
    border-top-right-radius: 4.6cqw;
}

.bottom-nav__indicator[data-active-index="3"] {
    left: 73.4%;
    width: 26.6%;
    border-top-left-radius: 5.2cqw;
    border-top-right-radius: 0;
}

.bottom-nav__item {
    position: relative;
    z-index: 2;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.bottom-nav__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 9.2cqw;
    height: 8.6cqw;
    transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.24s ease;
}

.bottom-nav__icon-wrap--play {
    width: 11.4cqw;
    height: 11.4cqw;
    transform: translate(1.2cqw, -1.0cqw);
}

.bottom-nav__item.is-active .bottom-nav__icon-wrap {
    transform: translateY(-0.55cqw) scale(1.06);
    filter: drop-shadow(0 0 1.35cqw rgba(255, 240, 200, 0.48));
}

.bottom-nav__item.is-active .bottom-nav__icon-wrap--play {
    transform: translate(1.2cqw, -1.0cqw) scale(1.02);
    filter: drop-shadow(0 0 1.8cqw rgba(255, 232, 185, 0.52));
}

.bottom-nav__item:hover:not(.is-active) .bottom-nav__icon-wrap {
    transform: translateY(-0.45cqw) scale(1.06);
}

.bottom-nav__icon-wrap img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
}

/* =========================================================
   Sub-views (Ranking, Favorites, Profile)
   ========================================================= */
.subview-panel {
    padding: 6.5cqw 6.51cqw;
}

.subview-header .section-title {
    padding: 0;
    margin-bottom: 3.5cqw;
}

.subview-card {
    border-radius: 5cqw;
    padding: 1.5cqw;
}

.subview-card__body {
    border-radius: 3.6cqw;
    border: 0.26cqw dashed var(--peach-dashed);
    background: #fff9eb;
    padding: 6.5cqw 5cqw;
    text-align: center;
    color: #5e3932;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.4cqw;
}

.subview-icon {
    width: 14cqw;
    height: 14cqw;
    object-fit: contain;
    filter: drop-shadow(0 0.6cqw 0.8cqw rgba(94, 57, 50, 0.16));
}

.subview-title {
    font-size: 4.5cqw;
    font-weight: 800;
    color: #5c372f;
}

.subview-text {
    font-family: 'Nunito', sans-serif;
    font-size: 3.35cqw;
    font-weight: 700;
    line-height: 1.45;
    color: #7c564c;
    max-width: 68cqw;
}

.btn-subview-back {
    margin-top: 1cqw;
    width: 38cqw;
    height: 7.4cqw;
}

/* Profile Card (Matches reference layout 100%) */
.subview-card__body--profile {
    padding: 8.2cqw 5.5cqw 7.4cqw;
    gap: 2.3cqw;
}

.subview-icon--profile {
    width: 14.5cqw;
    height: 14.5cqw;
}

.subview-title--profile {
    margin-top: 1.2cqw;
    font-size: 5.1cqw;
    color: #5a362f;
}

.subview-text--profile {
    max-width: 66cqw;
    font-size: 3.45cqw;
    line-height: 1.5;
    color: #77534a;
}

.profile-divider {
    width: 100%;
    max-width: 70cqw;
    margin: 2.2cqw 0 1.6cqw;
    display: flex;
    align-items: center;
    gap: 3cqw;
    color: #87665c;
    font-family: 'Nunito', sans-serif;
    font-size: 3.15cqw;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.profile-divider::before,
.profile-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e3ceb7;
}

.btn-google-login {
    position: relative;
    width: 100%;
    max-width: 72cqw;
    min-height: 15.2cqw;
    padding: 2.2cqw 3.8cqw 2.4cqw 4.2cqw;
    border-radius: 999px;
    border: 0.46cqw solid #d9c4b1;
    background-color: #ffffff;
    box-shadow:
        inset 0 -0.68cqw 0 #f2ebe2,
        0 0.85cqw 2.1cqw rgba(92, 55, 47, 0.14);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 3.2cqw;
    cursor: pointer;
    transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.16s ease;
}

.btn-google-login:hover {
    transform: translateY(-0.35cqw);
    box-shadow:
        inset 0 -0.68cqw 0 #f2ebe2,
        0 1.2cqw 2.5cqw rgba(92, 55, 47, 0.18);
}

.btn-google-login:active {
    transform: translateY(0.35cqw);
    box-shadow:
        inset 0 -0.28cqw 0 #f2ebe2,
        0 0.35cqw 0.8cqw rgba(92, 55, 47, 0.14);
}

.btn-google-login__g {
    width: 8.2cqw;
    height: 8.2cqw;
    flex-shrink: 0;
}

.btn-google-login__copy {
    flex: 1;
    min-width: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.btn-google-login__title {
    font-family: var(--font-display);
    font-size: 4.35cqw;
    font-weight: 800;
    line-height: 1.15;
    color: #4e2f28;
}

.btn-google-login__sub {
    margin-top: 0.45cqw;
    font-family: 'Nunito', sans-serif;
    font-size: 2.85cqw;
    font-weight: 700;
    line-height: 1.25;
    color: #7e5d54;
}

.btn-google-login__sparkles {
    width: 9.2cqw;
    height: 8.4cqw;
    flex-shrink: 0;
}

.profile-continue-row {
    margin-top: 4.2cqw;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.4cqw;
}

.profile-continue-label {
    font-family: 'Nunito', sans-serif;
    font-size: 3.35cqw;
    font-weight: 700;
    color: #755249;
}

.btn-profile-explore {
    width: 28.8cqw;
    height: 8.6cqw;
}

.btn-profile-explore .btn-play-pill__label {
    width: 82%;
}

/* Logged-in Profile & Notices */
.profile-notice {
    width: 100%;
    padding: 2.2cqw 3.4cqw;
    border-radius: 2.6cqw;
    font-family: 'Nunito', sans-serif;
    font-size: 3.05cqw;
    font-weight: 800;
    line-height: 1.4;
}

.profile-notice--info {
    background: #fef5da;
    border: 0.3cqw solid #e8ca85;
    color: #745324;
}

.profile-notice--success {
    background: #eaf8df;
    border: 0.3cqw solid #9ed075;
    color: #3f6a24;
}

.profile-notice--error {
    background: #fde9e9;
    border: 0.3cqw solid #e79d9d;
    color: #8b3333;
}

.profile-avatar-ring {
    width: 16cqw;
    height: 16cqw;
    border-radius: 50%;
    padding: 0.8cqw;
    background: #ffffff;
    border: 0.45cqw solid var(--peach-border);
    box-shadow: 0 0.7cqw 1.4cqw rgba(92, 55, 47, 0.16);
}

.profile-avatar-img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-email {
    font-family: 'Nunito', sans-serif;
    font-size: 3.1cqw;
    font-weight: 700;
    color: #8d685c;
    margin-top: -1cqw;
}

.profile-logged-actions {
    margin-top: 2cqw;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.6cqw;
    flex-wrap: wrap;
}

.profile-logout-form {
    margin: 0;
}

.btn-logout {
    height: 8.4cqw;
    padding: 0 4.2cqw;
    border-radius: 999px;
    border: 0.36cqw solid #d49f8a;
    background: #fff3de;
    color: #7d453b;
    font-family: 'Nunito', sans-serif;
    font-size: 3.3cqw;
    font-weight: 800;
    cursor: pointer;
    box-shadow: inset 0 -0.5cqw 0 #ebd4ba;
    transition: transform 0.14s ease;
}

.btn-logout:hover {
    transform: translateY(-0.25cqw);
}

.btn-logout:active {
    transform: translateY(0.25cqw);
}

.favorites-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.38cqw;
}

.fav-card {
    border-radius: 3.95cqw;
    padding: 1.1cqw;
    text-align: center;
    cursor: pointer;
}

.fav-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 2.5cqw;
}

.fav-card__name {
    margin-top: 1.2cqw;
    font-size: 3.3cqw;
    font-weight: 800;
    color: #5e3932;
}

/* =========================================================
   Game Preview Modal
   ========================================================= */
.game-modal[hidden] {
    display: none;
}

.game-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.game-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 16, 42, 0.72);
    backdrop-filter: blur(4px);
}

.game-modal__box {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 372px;
    border-radius: 22px;
    padding: 8px;
    animation: modalPop 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.9) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.game-modal__inner {
    position: relative;
    background: #fff9eb;
    border: 2px dashed var(--peach-dashed);
    border-radius: 15px;
    padding: 16px;
    text-align: center;
    color: #5d3830;
}

.game-modal__close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #d49b81;
    background: #fae8c8;
    color: #82443c;
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
}

.game-modal__art-wrap {
    width: 100%;
    max-height: 170px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #edd2b4;
    background: #f5e5c5;
}

.game-modal__art-wrap img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.game-modal__title {
    margin-top: 12px;
    font-size: 21px;
    font-weight: 800;
    color: #5c362e;
}

.game-modal__desc {
    margin-top: 4px;
    font-family: 'Nunito', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.45;
    color: #7d5950;
}

.game-modal__actions {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-fav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 2px solid #d89c80;
    background: #fff2d6;
    color: #8a4d42;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.14s ease, background-color 0.14s ease;
}

.btn-fav-toggle[aria-pressed="true"] {
    background: #ffe08a;
    border-color: #b56c4b;
    color: #6b352a;
}

.btn-fav-toggle[aria-pressed="true"] svg {
    fill: #f59e0b;
    stroke: #8f4a45;
}

.btn-modal-launch {
    width: 136px;
    height: 38px;
    border-width: 2px;
    box-shadow:
        inset 0 -3px 0 #e09961,
        inset 0 2px 0 rgba(255, 250, 224, 0.72),
        0 3px 0 #e2cdb9;
}

.game-modal__status {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #eef8e1;
    border: 1.5px solid #a8d27d;
    color: #486f2a;
    font-family: 'Nunito', sans-serif;
    font-size: 12.5px;
    font-weight: 800;
}
