﻿:root {
    color-scheme: light;
    --bg-1: #2f2634;
    --bg-2: #4a3728;
    --shell: #6a4e35;
    --wood-1: #7a431f;
    --wood-2: #3f1d0b;
    --wood-3: #b06a2f;
    --gold-1: #fff36b;
    --gold-2: #ffc63a;
    --gold-3: #e08a10;
    --cream-1: #fff7e6;
    --cream-2: #ffe0ad;
    --cream-3: #f4c87c;
    --paper: #fffdf4;
    --text: #3c2310;
    --muted: #8e6d4d;
    --green: #6fde3c;
    --green-dark: #3d8b10;
    --blue: #2eb7ff;
    --pink: #f45f87;
    --red: #e84e4e;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding:
        max(8px, env(safe-area-inset-top))
        max(8px, env(safe-area-inset-right))
        max(8px, env(safe-area-inset-bottom))
        max(8px, env(safe-area-inset-left));
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 204, 112, 0.22), transparent 26%),
        radial-gradient(circle at 81% 16%, rgba(255, 188, 84, 0.28), transparent 25%),
        linear-gradient(180deg, #403142 0%, #2b2431 100%);
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.desktop-layout,
.desktop-sidebar,
.desktop-brand,
.desktop-nav,
.desktop-nav__item,
.desktop-profile,
.desktop-profile__vip,
.desktop-profile__avatar,
.desktop-profile__name,
.desktop-profile__level,
.desktop-nav__label,
.desktop-nav__badge,
.desktop-profile__settings {
    display: none;
}

.menu small {
    display: none;
}

.shell {
    width: min(640px, 100%);
}

.app-shell {
    position: relative;
    overflow: hidden;
    min-height: min(744px, calc(100dvh - 16px));
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 0;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.42);
    background:
        linear-gradient(180deg, rgba(30, 21, 14, 0.14), rgba(30, 21, 14, 0.12)),
        radial-gradient(circle at 70% 18%, rgba(255, 191, 83, 0.35), transparent 28%),
        linear-gradient(180deg, #3f3024 0%, #68513b 42%, #2d2632 100%);
}

.toast-stack {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    width: min(360px, calc(100vw - 24px));
    display: grid;
    gap: 10px;
    z-index: 1000;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(145, 112, 72, 0.18);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(87, 66, 40, 0.14);
    color: var(--text);
    animation: toast-in 160ms ease-out;
}

.toast--good {
    border-color: rgba(47, 133, 90, 0.24);
    background: rgba(240, 253, 244, 0.98);
}

.toast--warn {
    border-color: rgba(180, 83, 9, 0.24);
    background: rgba(255, 251, 235, 0.98);
}

.toast__text {
    flex: 1;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
}

.toast__close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    opacity: 0.65;
}

.toast.is-leaving {
    animation: toast-out 180ms ease-in forwards;
}

.game-scene[hidden],
.upgrade-scene[hidden] {
    display: none;
}

.game-scene {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: inherit;
    padding: 12px 14px 12px;
    background:
        linear-gradient(180deg, rgba(16, 22, 31, 0.15), rgba(20, 16, 23, 0.38)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='390' height='744' viewBox='0 0 390 744'%3E%3Crect width='390' height='744' fill='%235e4935'/%3E%3Cpath d='M0 0h390v340H0z' fill='%23714f35'/%3E%3Cg opacity='.22' stroke='%23332018' stroke-width='2'%3E%3Cpath d='M0 60h390M0 130h390M0 205h390M0 285h390'/%3E%3Cpath d='M45 0v340M125 0v340M205 0v340M295 0v340'/%3E%3C/g%3E%3Cpath d='M0 320c50-22 88-16 137-8s110 2 157-11 76 4 96 18v425H0z' fill='%233f372f'/%3E%3Cg opacity='.23'%3E%3Ccircle cx='45' cy='292' r='26' fill='%233b7b36'/%3E%3Ccircle cx='66' cy='281' r='18' fill='%2344853b'/%3E%3Ccircle cx='335' cy='286' r='30' fill='%233b7b36'/%3E%3Ccircle cx='315' cy='300' r='21' fill='%2344853b'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
}

.hud {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 10px;
    align-items: start;
    position: relative;
    z-index: 5;
    padding-top: 2px;
}

.stat-stack {
    display: grid;
    gap: 10px;
    align-content: start;
}

.coin-chip,
.income-chip,
.main-buy,
.bottom-dock {
    user-select: none;
}

.coin-chip {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 8px;
    color: #fff8d5;
    border-radius: 22px;
    border: 4px solid #9a4d1b;
    background: linear-gradient(#743815, #321407);
    box-shadow:
        0 7px 0 #180905,
        0 10px 18px rgba(0, 0, 0, 0.32),
        inset 0 3px 0 rgba(255, 255, 255, 0.12);
}

.coin-chip__icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 18px;
    background: radial-gradient(circle at 30% 24%, #fff799 0 16%, var(--gold-1) 17% 30%, var(--gold-2) 45%, var(--gold-3) 78%);
    border: 3px solid #f48b00;
    box-shadow:
        inset 0 3px 0 rgba(255, 255, 255, 0.6),
        inset 0 -4px 0 rgba(116, 55, 0, 0.32),
        0 3px 0 #7b3500;
}

.coin-chip__value {
    flex: 1;
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-shadow: 0 3px 0 rgba(39, 15, 3, 0.9);
    transition: transform 160ms ease, color 160ms ease, opacity 160ms ease;
}

.icon-pill {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
    background: linear-gradient(#ffbd45, #cf6d08);
    box-shadow: 0 4px 0 #773200, inset 0 2px 0 rgba(255, 255, 255, 0.25);
}

.menu {
    width: 58px;
    height: 58px;
    border: 4px solid #9a4d1b;
    border-radius: 20px;
    background: linear-gradient(#6b3213, #321407);
    box-shadow: 0 7px 0 #180905, 0 10px 16px rgba(0, 0, 0, 0.28);
    display: grid;
    place-items: center;
}

.menu i,
.menu i::before,
.menu i::after {
    display: block;
    width: 27px;
    height: 5px;
    background: #fff3c5;
    border-radius: 99px;
    box-shadow: 0 2px 0 #3a1708;
}

.menu i {
    position: relative;
}

.menu i::before,
.menu i::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu i::before {
    top: -10px;
}

.menu i::after {
    top: 10px;
}

.title-panel {
    position: relative;
    width: min(240px, 64vw);
    margin: -4px auto 0;
    min-height: 0;
    display: grid;
    justify-items: center;
    z-index: 4;
}

.game-logo {
    width: min(72%, 210px);
    margin: 0 auto;
    filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.28));
}

.game-logo__image {
    display: block;
    width: 100%;
    max-height: 118px;
    height: auto;
    object-fit: contain;
}

.player-progress {
    width: 100%;
    margin-top: -4px;
    padding: 8px 13px;
    border-radius: 26px;
    background: linear-gradient(#653015, #2b1208);
    border: 4px solid #9a4d1b;
    box-shadow: 0 7px 0 #160806, 0 12px 18px rgba(0, 0, 0, 0.32);
}

.progress-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-star {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(#fff56f, #ffaf1d);
    border: 2px solid #8b4c00;
    font-weight: 1000;
    color: #7a3900;
}

.progress-track {
    flex: 1;
    height: 15px;
    border-radius: 999px;
    background: #351304;
    border: 2px solid #8a430e;
    overflow: hidden;
}

.progress-fill {
    width: 34%;
    height: 100%;
    background: linear-gradient(90deg, #5ed335, #9bed4a);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3);
    transition: width 180ms ease;
}

.progress-text {
    margin-top: 2px;
    color: #fff6dd;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    text-shadow: 0 2px 0 #261006;
}

.income-chip {
    position: relative;
    z-index: 5;
    width: 100%;
    margin-top: 0;
    height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 16px;
    border-radius: 20px;
    color: #fff8dc;
    background: linear-gradient(180deg, #6e4b2c, #342013);
    border: 3px solid rgba(255, 213, 130, 0.35);
    box-shadow:
        0 5px 0 rgba(31, 14, 4, 0.8),
        0 8px 16px rgba(0, 0, 0, 0.28),
        inset 0 2px 0 rgba(255, 255, 255, 0.18);
    font-size: 19px;
    font-weight: 900;
    text-shadow: 0 2px 0 #241106;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.income-chip__icon {
    font-size: 22px;
    color: #ffd33c;
}

.hero-stage {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-height: 0;
    margin-top: 6px;
}

.business-card {
    position: relative;
    width: 100%;
    padding: 10px 14px 11px;
    border-radius: 22px;
    color: #4c2a12;
    background: linear-gradient(180deg, #fff8e6, #ffe4a5);
    border: 4px solid #fff5da;
    box-shadow:
        0 8px 0 #c57713,
        0 12px 22px rgba(0, 0, 0, 0.26),
        inset 0 2px 0 rgba(255, 255, 255, 0.7);
    z-index: 3;
}

.business-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 10px;
    margin-bottom: 9px;
}

.business-label {
    font-size: 14px;
    font-weight: 900;
    color: #a56a31;
}

.business-title {
    margin-top: 4px;
    font-size: 25px;
    line-height: 0.96;
    font-weight: 1000;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.business-percent {
    min-width: 66px;
    padding: 5px 10px;
    border-radius: 10px;
    background: rgba(255, 230, 220, 0.95);
    color: #a14d09;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
}

.business-track {
    height: 11px;
    background: #b96808;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 2px 2px rgba(92, 35, 0, 0.35);
}

.business-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffb316, #ffde46);
    transition: width 180ms ease;
}

.cat-box {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 222px;
    height: 152px;
    pointer-events: none;
    z-index: 2;
}

.startup-preloader {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 217, 126, 0.26), rgba(0, 0, 0, 0) 34%),
        linear-gradient(180deg, rgba(44, 18, 12, 0.84), rgba(25, 14, 10, 0.92));
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.startup-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.startup-preloader .cat-box {
    position: relative;
    right: auto;
    bottom: auto;
}

.box-body {
    position: absolute;
    left: 36px;
    bottom: 0;
    width: 158px;
    height: 90px;
    background: linear-gradient(180deg, #bc7133, #8c4a1d);
    border: 4px solid #e79a4b;
    border-radius: 12px 12px 18px 18px;
    transform: skewY(-2deg);
    box-shadow:
        0 12px 20px rgba(0, 0, 0, 0.35),
        inset 0 4px 0 rgba(255, 255, 255, 0.18);
}

.box-body::after {
    content: "РљРћРўРћ\AРљРћРњРџРђРќРРЇ";
    white-space: pre;
    position: absolute;
    left: 20px;
    top: 28px;
    color: #573018;
    font-size: 18px;
    line-height: 1;
    font-weight: 1000;
    transform: rotate(-6deg);
}

.box-flap {
    position: absolute;
    bottom: 86px;
    background: #cf843d;
    border: 4px solid #eaa458;
    box-shadow: 0 5px 0 rgba(54, 25, 4, 0.25);
}

.box-flap--left {
    left: 18px;
    width: 98px;
    height: 38px;
    border-radius: 12px 7px 7px 7px;
    transform: rotate(-14deg);
}

.box-flap--right {
    right: 16px;
    width: 106px;
    height: 41px;
    border-radius: 7px 14px 7px 7px;
    transform: rotate(10deg);
}

.cat-hero {
    position: absolute;
    left: 64px;
    bottom: 64px;
    width: 100px;
    height: 100px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 68px;
    background: radial-gradient(circle at 50% 45%, #ffdc83, #e88926 72%);
    border: 4px solid #8a4310;
    box-shadow: 0 6px 0 #4a1d07, 0 10px 18px rgba(0, 0, 0, 0.28);
    animation: cat-idle 2.4s ease-in-out infinite;
}

.side-actions {
    position: absolute;
    right: 0;
    top: -92px;
    display: grid;
    gap: 10px;
    justify-self: end;
    z-index: 5;
}

.menu-button {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    border: 4px solid #f0a045;
    background: linear-gradient(180deg, #5f2d13, #32160a);
    color: #fff3c7;
    font-size: 38px;
    line-height: 1;
    font-weight: 900;
    box-shadow:
        0 6px 0 #2a1207,
        0 10px 20px rgba(0, 0, 0, 0.25),
        inset 0 2px 0 rgba(255, 255, 255, 0.18);
}

.board-shell {
    position: relative;
    z-index: 4;
    margin-top: 6px;
    display: flex;
    justify-content: center;
}

.board-card {
    position: relative;
    width: min(100%, 420px);
    padding: 10px;
    border-radius: 26px;
    background: linear-gradient(180deg, #ffe1a8, #e6bb73);
    border: 4px solid #ffecc4;
    box-shadow:
        0 7px 0 #9f6431,
        0 16px 26px rgba(0, 0, 0, 0.30),
        inset 0 4px 0 rgba(255, 255, 255, 0.38);
}

.boosters {
    width: min(100%, 360px);
    margin: 8px auto 7px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.booster {
    height: 48px;
    border: 0;
    border-radius: 17px;
    color: #fff;
    font-weight: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow:
        0 6px 0 rgba(0, 0, 0, 0.28),
        0 10px 18px rgba(0, 0, 0, 0.22),
        inset 0 3px 0 rgba(255, 255, 255, 0.25);
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.28);
}

.booster__icon {
    font-size: 20px;
    line-height: 1;
}

.booster__text strong {
    display: block;
    font-size: 24px;
    line-height: 0.8;
}

.booster__text small {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    line-height: 1;
}

.booster--pink {
    background: linear-gradient(180deg, #ff5b96, #d82062);
}

.booster--blue {
    background: linear-gradient(180deg, #2bc5ff, #0678cf);
}

.board {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    contain: layout paint;
}

.board canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.main-buy {
    position: relative;
    left: auto;
    bottom: auto;
    z-index: 20;
    width: min(100%, 380px);
    height: 76px;
    transform: none;
    margin: 0 auto 10px;
    display: grid;
    grid-template-columns: 70px 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: center;
    padding: 6px 18px 7px 8px;
    text-transform: uppercase;
    color: #612f02;
    border: 4px solid #fff7d1;
    border-radius: 26px;
    background: linear-gradient(180deg, #fff56c 0%, #ffc928 52%, #f19b12 100%);
    box-shadow:
        0 6px 0 #934b00,
        0 0 22px rgba(255, 214, 48, 0.65),
        0 14px 30px rgba(0, 0, 0, 0.35),
        inset 0 4px 0 rgba(255, 255, 255, 0.45);
    animation: buy-pulse 1.9s ease-in-out infinite;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.main-buy__plus {
    grid-row: 1 / 3;
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 46px;
    line-height: 1;
    background: radial-gradient(circle at 50% 45%, #ffdd83, #ef8420);
    border: 3px solid #a44c08;
    box-shadow:
        inset 0 3px 0 rgba(255, 255, 255, 0.45),
        0 4px 0 #753100;
}

.main-buy strong {
    font-size: 22px;
    font-weight: 1000;
    line-height: 1;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.main-buy small {
    font-size: 17px;
    font-weight: 1000;
    line-height: 1;
    color: #6b3600;
}

.bottom-dock {
    position: sticky;
    left: auto;
    bottom: 0;
    z-index: 19;
    width: 100%;
    height: 92px;
    padding: 22px 28px 9px;
    padding-bottom: max(9px, env(safe-area-inset-bottom));
    display: flex;
    justify-content: space-between;
    align-items: end;
    transform: none;
    margin-top: auto;
    border-radius: 28px 28px 0 0;
    background: linear-gradient(180deg, #7a431f, #3a1b0d);
    border: 4px solid #a76832;
    border-bottom: 0;
    box-shadow:
        0 -6px 20px rgba(0, 0, 0, 0.32),
        inset 0 3px 0 rgba(255, 255, 255, 0.14);
}

.dock-item {
    position: relative;
    border: 0;
    background: transparent;
    color: #ffe8b7;
    display: grid;
    justify-items: center;
    gap: 5px;
    min-width: 72px;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
    text-shadow: 0 2px 0 #241006;
}

.dock-item span {
    width: 48px;
    height: 42px;
    display: grid;
    place-items: center;
    font-size: 28px;
    border-radius: 15px;
    background: linear-gradient(180deg, #fff0b7, #e58b20);
    box-shadow: 0 4px 0 #5d2a08, inset 0 2px 0 rgba(255, 255, 255, 0.5);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.dock-item small {
    font-size: 11px;
}

.dock-item--accent::after {
    content: "1";
    position: absolute;
    top: -6px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: #f13c31;
    border: 2px solid #fff1bd;
    font-size: 13px;
}

.button {
    border: 0;
    border-radius: 14px;
    padding: 12px 16px;
    background: #f1a340;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.button.secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid rgba(145, 112, 72, 0.18);
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.selection-panel {
    display: none;
}

.status {
    margin-top: 10px;
    color: var(--muted);
    min-height: 1.5em;
}

.status.good {
    color: #2f855a;
}

.status.warn {
    color: #b45309;
}

.status.muted {
    color: var(--muted);
}

.status-stack {
    min-height: 0;
    margin-top: 10px;
    display: grid;
    gap: 4px;
}

.selection-panel strong {
    display: block;
    font-size: 18px;
    margin-top: 4px;
}

.selection-meta {
    color: var(--muted);
    font-size: 14px;
}

.upgrade-scene {
    display: grid;
    gap: 12px;
    min-height: 100%;
    height: 100%;
    padding: 6px 2px 10px;
}

.scene-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.scene-head__title {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 1000;
    color: #ffb32c;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.scene-head__balance {
    width: auto;
    min-height: 34px;
    min-width: 92px;
    padding: 4px 10px 4px 6px;
    gap: 6px;
    border-width: 3px;
    border-radius: 16px;
    box-shadow:
        0 5px 0 #180905,
        0 8px 14px rgba(0, 0, 0, 0.22),
        inset 0 3px 0 rgba(255, 255, 255, 0.12);
}

.scene-head__balance .coin-chip__icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
    border-width: 2px;
}

.scene-head__balance .coin-chip__value {
    font-size: 18px;
}

.scene-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.scene-tab,
.scene-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #fff4c9;
    border-radius: 999px;
    padding: 10px 14px;
    min-height: 40px;
    line-height: 1;
    white-space: nowrap;
    font-weight: 900;
    background: linear-gradient(180deg, #8a4a1f 0%, #4b210d 100%);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.12),
        0 4px 0 #271107,
        0 10px 16px rgba(0, 0, 0, 0.16);
}

.scene-tab.is-active {
    background: linear-gradient(180deg, #e49a1a 0%, #b96d08 100%);
    color: #fff9da;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        0 4px 0 #7a4308,
        0 10px 16px rgba(0, 0, 0, 0.18);
}

.scene-kicker {
    font-size: 12px;
    font-weight: 900;
    color: #d88a18;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    flex: 1;
}

.scene-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.12;
    color: #b26a07;
    font-weight: 1000;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 0 rgba(255, 249, 222, 0.65);
}

.upgrade-scene > .scene-title {
    display: none;
}

.scene-card {
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 249, 244, 0.98);
    border: 1px solid rgba(145, 112, 72, 0.14);
    box-shadow: 0 12px 26px rgba(45, 23, 0, 0.08);
}

.prestige-summary {
    display: grid;
    gap: 4px;
    padding: 12px 14px 13px;
    border: 2px solid rgba(180, 102, 8, 0.38);
    background: linear-gradient(180deg, rgba(61, 30, 12, 0.92), rgba(90, 49, 20, 0.92));
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.08),
        0 7px 0 rgba(38, 18, 8, 0.38),
        0 14px 24px rgba(0, 0, 0, 0.14);
}

.scene-text {
    margin: 0;
    color: #ffe8b6;
    font-size: 14px;
    line-height: 1.38;
    font-weight: 700;
}

.scene-label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    color: #ffcc78;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.scene-value {
    font-size: 19px;
    font-weight: 1000;
    color: #fff9e4;
    line-height: 1.15;
}

.scene-actions {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 10px;
}

.scene-actions__button {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    padding-inline: 16px;
}

.upgrade-list {
    display: grid;
    gap: 8px;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-right: 4px;
}

.upgrade-item {
    width: 100%;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 80px;
    padding: 10px 10px 10px 12px;
    border-radius: 18px;
    border: 2px solid rgba(255, 235, 200, 0.88);
    background: linear-gradient(180deg, #fffaf0 0%, #f4efe6 100%);
    color: inherit;
    text-align: left;
    box-shadow:
        inset 0 -4px 0 rgba(117, 63, 7, 0.08),
        0 6px 0 rgba(54, 28, 10, 0.38),
        0 10px 20px rgba(0, 0, 0, 0.16);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

.upgrade-item.is-active {
    border-color: #c37a0b;
    background: linear-gradient(180deg, #fff2cc 0%, #f9d98e 100%);
    box-shadow:
        inset 0 -4px 0 rgba(117, 63, 7, 0.1),
        0 0 0 2px rgba(255, 194, 58, 0.2),
        0 6px 0 rgba(77, 40, 10, 0.5);
}

.upgrade-item.is-muted,
.upgrade-item:disabled {
    opacity: 0.68;
    cursor: not-allowed;
}

.upgrade-item__icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 21px;
    background: linear-gradient(180deg, #fff0d4 0%, #ffd48c 100%);
    box-shadow:
        inset 0 -3px 0 rgba(128, 68, 0, 0.13),
        0 3px 8px rgba(0, 0, 0, 0.12);
    flex: 0 0 auto;
}

.upgrade-item__main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.upgrade-item__title {
    font-weight: 800;
    color: #5b2c00;
    line-height: 1.15;
}

.upgrade-item__meta {
    font-size: 12px;
    color: #9b6a37;
    font-weight: 700;
}

.upgrade-item__action {
    min-width: 84px;
    padding: 9px 12px;
    border-radius: 999px;
    font-weight: 800;
    text-align: center;
    color: #744000;
    background: linear-gradient(180deg, #fff7dd 0%, #ffd881 100%);
    box-shadow:
        inset 0 -3px 0 rgba(139, 75, 0, 0.16),
        0 3px 0 rgba(118, 62, 0, 0.2);
    border: 0;
    justify-self: end;
}

.upgrade-item__action.is-disabled {
    color: #a36e6e;
    background: linear-gradient(180deg, rgba(255, 243, 237, 0.96) 0%, rgba(239, 222, 214, 0.96) 100%);
}

.upgrade-empty {
    text-align: center;
    color: #7a6857;
}

.upgrade-list::-webkit-scrollbar {
    width: 8px;
}

.upgrade-list::-webkit-scrollbar-track {
    background: rgba(91, 44, 0, 0.08);
    border-radius: 999px;
}

.upgrade-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d8951a, #9f5d08);
    border-radius: 999px;
    border: 2px solid rgba(255, 245, 224, 0.95);
}

.cell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    padding: 6px;
    border: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow:
        inset 0 -4px 0 rgba(0, 0, 0, 0.08),
        0 4px 3px rgba(0, 0, 0, 0.05);
    display: grid;
    place-items: center;
    text-align: center;
    transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease, border-color 120ms ease;
    touch-action: none;
    user-select: none;
    cursor: grab;
}

.cell:active {
    cursor: grabbing;
}

.cell.has-cat {
    background: linear-gradient(180deg, #fffaf6 0%, #ffe7da 100%);
    box-shadow: 0 10px 18px rgba(160, 99, 28, 0.12);
}

.cell.empty {
    opacity: 0.55;
    background: rgba(255, 255, 255, 0.84);
    color: rgba(120, 100, 80, 0.45);
    font-size: 18px;
    font-weight: 700;
}

.cell-level {
    position: absolute;
    top: 5px;
    left: 5px;
    min-width: 22px;
    height: 22px;
    padding: 0 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #8a4408 0%, #5b2907 100%);
    color: #fff7d6;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    box-shadow: 0 2px 0 #3e1b00, inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.cell-emoji {
    position: relative;
    font-size: 28px;
    line-height: 1;
    filter: drop-shadow(0 8px 5px rgba(0, 0, 0, 0.12));
    transform: translateY(4px);
}

.cell.is-dragging {
    opacity: 0.55;
    transform: scale(0.97);
}

.cell.is-drop-target {
    border-color: rgba(168, 106, 0, 0.45);
    box-shadow: 0 0 0 2px rgba(168, 106, 0, 0.16), 0 8px 14px rgba(160, 99, 28, 0.12);
}

.cell.is-animated--target {
    animation: cell-pop 220ms ease-out;
}

.cell.is-animated--source {
    animation: cell-shrink 220ms ease-out;
}

.selection-panel,
.stats,
.note {
    display: none;
}



@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

@keyframes cat-idle {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes buy-pulse {
    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.08);
    }
}

@keyframes cell-pop {
    from {
        transform: scale(0.94);
    }

    to {
        transform: scale(1);
    }
}

@keyframes cell-shrink {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(0.96);
    }
}

