body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    background-color: #2a2a2a;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}
*,
*::before,
*::after {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
#game-container,
#game-container canvas,
#game-loading-overlay,
.player-level-panel,
.player-settings-button,
.player-hint-button,
.fps-counter,
.victory-cta {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
}
.player-settings-overlay {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.player-settings-overlay input[type="range"],
.player-art-slider {
    touch-action: pan-x;
}
#game-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#game-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgb(20, 20, 20);
    color: #fff8ec;
    font-family: "Outfit", "Segoe UI", Tahoma, sans-serif;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none;
}
body.game-booting.game-loading-visible #game-loading-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.game-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: min(72vw, 260px);
    padding: 24px 30px;
    text-align: center;
}
.game-loading-title {
    font-size: clamp(24px, 5vw, 38px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}
.game-loading-percent {
    min-width: 4ch;
    font-size: clamp(22px, 4.5vw, 34px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    color: #ffd47b;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}
body.game-booting #level-title-label,
body.game-booting #btn-game-settings,
body.game-booting #btn-solution-hint {
    display: none !important;
    pointer-events: none !important;
}
#game-container.cursor-custom,
#game-container.cursor-custom canvas {
    cursor: url("../assets/ui/cursor.png") 18 6, auto;
}
#game-container.cursor-custom.cursor-pressed,
#game-container.cursor-custom.cursor-pressed canvas {
    cursor: url("../assets/ui/cursor_pointer.png") 18 6, auto;
}
body.ui-modal-open #game-container,
body.ui-modal-open #game-container canvas {
    pointer-events: none !important;
    cursor: default !important;
}
/* UI слой поверх игры */
#ui-layer {
    position: fixed;
    top: auto;
    left: 0;
    bottom: clamp(18px, 5vh, 54px);
    width: 100%;
    height: auto;
    isolation: isolate;
    --victory-dim-opacity: 0.18;
    --victory-blur: 2px;
    pointer-events: none; /* Пропускаем клики сквозь UI, когда он скрыт */
}
#ui-layer::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, var(--victory-dim-opacity));
    backdrop-filter: blur(var(--victory-blur));
    -webkit-backdrop-filter: blur(var(--victory-blur));
}
.pointer-events-auto {
    pointer-events: auto;
}

/* Плавное появление */
.fade-in {
    opacity: 1 !important;
    visibility: visible !important;
}

:root {
    --top-ui-outline-width: 2px;
    --top-ui-outline-color: rgba(17, 17, 17, 1);
    --top-ui-outline-filter:
        drop-shadow(0 var(--top-ui-outline-width) 0 var(--top-ui-outline-color))
        drop-shadow(0 calc(var(--top-ui-outline-width) * -1) 0 var(--top-ui-outline-color))
        drop-shadow(var(--top-ui-outline-width) 0 0 var(--top-ui-outline-color))
        drop-shadow(calc(var(--top-ui-outline-width) * -1) 0 0 var(--top-ui-outline-color));
}
#top-player-ui {
    position: fixed;
    top: 16px;
    left: 50%;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--top-player-ui-gap, clamp(8px, 1.4vw, 14px));
    pointer-events: none;
    transform: translateX(-50%) scale(var(--top-player-ui-scale, 1));
    transform-origin: 50% 0;
}
#top-player-ui > button {
    pointer-events: auto;
}
#top-player-ui > .player-level-panel {
    pointer-events: none;
}
#top-player-ui .player-level-panel {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: scale(var(--player-level-panel-scale, 1));
}
#top-player-ui .player-settings-button {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: scale(var(--player-settings-button-scale, 1));
}
#top-player-ui .player-hint-button {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: scale(var(--player-hint-button-scale, 1));
}
.top-player-ui .player-settings-button:active {
    transform: scale(calc(var(--player-settings-button-scale, 1) * 0.96));
}
.top-player-ui .player-hint-button:active {
    transform: scale(calc(var(--player-hint-button-scale, 1) * 0.96));
}
.player-level-panel {
    width: clamp(190px, 26vw, 274px);
    aspect-ratio: 548 / 157;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0 3.6%;
    background: url("../assets/ui/new_ui/panel_level.png") center / contain no-repeat;
    color: #7b3a10;
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-size: clamp(19px, 3.3vw, 34px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    text-align: center;
    text-shadow: 0 2px 0 rgba(255, 240, 204, 0.95), 0 4px 8px rgba(112, 52, 14, 0.22);
    filter: var(--top-ui-outline-filter);
    pointer-events: none;
    transform: translateX(-50%) scale(var(--player-level-panel-scale, 1));
    transform-origin: 50% 0;
}
.player-level-panel.hidden {
    display: none;
}
.player-settings-button {
    right: calc(50% + clamp(104px, 14vw, 148px));
    width: clamp(68px, 9.4vw, 98px);
    height: clamp(68px, 9.4vw, 98px);
    border: 0;
    padding: 0;
    background: transparent;
    filter: var(--top-ui-outline-filter) drop-shadow(0 8px 10px rgba(98, 45, 12, 0.24));
    transition: transform 120ms ease, filter 120ms ease;
    transform: translateX(var(--player-settings-button-offset-x, 0px)) scale(var(--player-settings-button-scale, 1));
    transform-origin: 50% 0;
    touch-action: manipulation;
}
.player-settings-button img,
.player-hint-art,
.player-settings-close img,
.player-settings-done img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}
.player-settings-button:hover {
    filter: brightness(1.04) var(--top-ui-outline-filter) drop-shadow(0 8px 10px rgba(98, 45, 12, 0.24));
}
.player-hint-button:hover {
    filter: brightness(1.04) var(--top-ui-outline-filter) drop-shadow(0 9px 12px rgba(98, 45, 12, 0.24));
}
.player-settings-close:hover {
    filter: brightness(1.04) drop-shadow(0 5px 6px rgba(95, 43, 12, 0.2));
}
.player-settings-done:hover {
    filter: brightness(1.04) drop-shadow(0 7px 8px rgba(56, 96, 19, 0.24));
}
.player-settings-button:active,
.player-settings-close:active,
.player-settings-done:active {
    transform: scale(0.96);
}
.player-settings-button:active {
    transform: translateX(var(--player-settings-button-offset-x, 0px)) scale(calc(var(--player-settings-button-scale, 1) * 0.96));
}
.player-hint-button:active {
    transform: translateX(calc(-50% + var(--player-hint-button-offset-x, 0px))) scale(calc(var(--player-hint-button-scale, 1) * 0.96));
}
.player-hint-button {
    top: 16px;
    bottom: auto;
    left: calc(50% + clamp(128px, 17vw, 176px));
    width: clamp(78px, 11vw, 102px);
    height: clamp(78px, 11vw, 102px);
    border: 0;
    padding: 0;
    background: transparent;
    filter: var(--top-ui-outline-filter) drop-shadow(0 9px 12px rgba(98, 45, 12, 0.24));
    transition: transform 120ms ease, filter 120ms ease, opacity 120ms ease;
    transform: translateX(calc(-50% + var(--player-hint-button-offset-x, 0px))) scale(var(--player-hint-button-scale, 1));
    transform-origin: 50% 0;
    touch-action: manipulation;
}
.player-hint-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.player-hint-count {
    position: absolute;
    right: -7%;
    bottom: -2%;
    width: 39%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("../assets/ui/new_ui/badge_hint_count.png") center / contain no-repeat;
    color: #fff7e8;
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-size: clamp(22px, 4.5vw, 34px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    text-shadow: 0 2px 0 #b43b20, 0 3px 5px rgba(85, 22, 10, 0.28);
    pointer-events: none;
}
.player-hint-count.digits-2 {
    font-size: clamp(17px, 3.4vw, 26px);
}
.player-hint-count.digits-3 {
    font-size: clamp(13px, 2.6vw, 20px);
    letter-spacing: -0.03em;
}
.player-hint-count.digits-4 {
    font-size: clamp(10px, 2.1vw, 16px);
    letter-spacing: -0.04em;
}
.player-hint-count.digits-5 {
    font-size: clamp(9px, 1.7vw, 13px);
    letter-spacing: -0.05em;
}
.player-hint-count.digits-6 {
    font-size: clamp(8px, 1.4vw, 11px);
    letter-spacing: -0.06em;
}
.player-hint-count.is-ad-reward {
    right: -7%;
    bottom: -2%;
    width: 39%;
    background-image: url("../assets/ui/new_ui/badge_hint_plus.png");
    color: transparent;
    text-shadow: none;
}
#fps-counter {
    min-width: 72px;
    text-align: center;
    letter-spacing: 0;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}
.player-settings-overlay {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 3vw, 28px);
    background: rgba(0, 0, 0, var(--player-settings-dim-opacity, 0.2));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 160ms ease, visibility 160ms ease;
}
.player-settings-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.hint-offer-overlay {
    position: fixed;
    inset: 0;
    z-index: 46;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 2.5vw, 24px);
    background: rgba(0, 0, 0, var(--player-settings-dim-opacity, 0.2));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 160ms ease, visibility 160ms ease;
}
.hint-offer-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.hint-offer-modal {
    position: relative;
    box-sizing: border-box;
    width: 610px;
    height: 780px;
    min-height: 0;
    padding: 46px 50px 30px;
    background: url("../assets/ui/new_ui/panel_settings_bg.png") center / 100% 100% no-repeat;
    color: #6c2e09;
    font-family: "Outfit", "Segoe UI", sans-serif;
    filter: drop-shadow(0 16px 22px rgba(91, 42, 15, 0.28));
    transform-origin: center center;
    transform: translateY(10px) scale(var(--hint-offer-responsive-scale, var(--hint-offer-scale, 1)));
    transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
    --hint-offer-title-scale: 1;
    --hint-offer-title-offset-y: 0px;
    --hint-offer-title-gap-after: 0px;
    --hint-offer-scale: 1;
    --hint-offer-fit-scale: 1;
    --hint-offer-responsive-scale: 1;
    --hint-offer-ad-reward-x: 0px;
    --hint-offer-ad-reward-scale: 1;
    --hint-offer-ad-bulb-scale: 1;
    --hint-offer-featured-glow-blur: 55px;
    --hint-offer-featured-glow-spread: 25px;
    --hint-offer-featured-glow-opacity: 0.65;
    --hint-offer-featured-glow-rgb: 255, 221, 51;
}
.hint-offer-overlay.is-open .hint-offer-modal {
    transform: translateY(0) scale(var(--hint-offer-responsive-scale, var(--hint-offer-scale, 1)));
}
.hint-offer-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    height: 100%;
    overflow: visible;
    padding: 2px 6px 8px;
    overscroll-behavior: contain;
    scrollbar-width: none;
}
.hint-offer-close {
    position: absolute;
    top: 6.6%;
    right: 6.8%;
    z-index: 3;
    width: 68px;
    height: 68px;
    border: 0;
    padding: 0;
    background: transparent;
    filter: drop-shadow(0 4px 0 rgba(95, 43, 12, 0.28));
    transition: transform 120ms ease, filter 120ms ease;
}
.hint-offer-close img,
.hint-offer-featured img,
.hint-offer-card img,
.hint-offer-ad-button img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
}
.hint-offer-ad-button .hint-offer-ad-icon {
    position: absolute;
    width: auto;
}
.hint-offer-title {
    width: min(84%, 470px);
    margin: var(--hint-offer-title-offset-y, 0px) 0 0;
    color: #693006;
    font-size: calc(28px * var(--hint-offer-title-scale, 1));
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    text-shadow: 0 2px 0 rgba(255, 238, 200, 0.95), 0 5px 9px rgba(116, 53, 12, 0.22);
}
.hint-offer-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(6px, 0.9vh, 12px);
    width: 100%;
    margin-top: var(--hint-offer-title-gap-after, 0px);
}
.hint-offer-featured {
    position: relative;
    display: block;
    isolation: isolate;
    width: min(80%, 380px);
    aspect-ratio: 470 / 279;
    margin: clamp(6px, 1vh, 12px) auto 0;
    border: 0;
    padding: 0;
    background: transparent;
    color: #5a2505;
    filter: drop-shadow(0 4px 0 rgba(126, 68, 13, 0.3));
    transform: translateY(0) scale(1);
    transform-origin: 50% 50%;
    will-change: transform;
    transition: transform 160ms ease, filter 160ms ease;
}
.hint-offer-featured::before {
    content: "";
    position: absolute;
    inset: 10px 12px 14px;
    border-radius: 42px;
    pointer-events: none;
    z-index: 0;
    box-shadow: 0 0 var(--hint-offer-featured-glow-blur, 55px) var(--hint-offer-featured-glow-spread, 25px) rgba(var(--hint-offer-featured-glow-rgb, 255, 221, 51), var(--hint-offer-featured-glow-opacity, 0.65));
    transition: box-shadow 160ms ease;
}
.hint-offer-overlay.is-open .hint-offer-featured {
    animation: hint-offer-featured-breathe 2.8s ease-in-out infinite;
}
.hint-offer-featured-bg,
.hint-offer-ribbon,
.hint-offer-card-bg {
    position: absolute;
    inset: 0;
}
.hint-offer-featured-bg,
.hint-offer-ribbon,
.hint-offer-bulb-large,
.hint-offer-featured-count,
.hint-offer-featured-price,
.hint-offer-ribbon-label {
    z-index: 1;
}
.hint-offer-ribbon {
    left: 50%;
    top: -7%;
    width: 88%;
    transform: translateX(-50%);
}
.hint-offer-featured .hint-offer-ribbon {
    width: 88%;
}
.hint-offer-ribbon-label {
    position: absolute;
    left: 50%;
    top: 0.5%;
    width: 74%;
    transform: translateX(-50%) rotate(-0.5deg);
    color: #fff8df;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 3px 0 rgba(130, 46, 14, 0.72), 0 5px 0 rgba(73, 24, 8, 0.28);
}
.hint-offer-bulb-large {
    position: absolute;
    left: 14.5%;
    top: 28%;
    width: 24%;
}
.hint-offer-featured .hint-offer-bulb-large {
    width: 24%;
}
.hint-offer-featured-count {
    position: absolute;
    left: 43%;
    top: 23%;
    color: #542002;
    font-size: 80px;
    font-weight: 900;
    line-height: 0.9;
    text-shadow: 0 2px 0 rgba(255, 230, 157, 0.82), 0 5px 0 rgba(72, 29, 5, 0.24);
}
.hint-offer-featured-price {
    position: absolute;
    left: 43%;
    bottom: 19%;
    width: 43%;
    min-height: 24%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: linear-gradient(#99ed32, #30bd1c 52%, #168e1b);
    color: #fff;
    font-size: 23px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 3px 0 #16801e, 0 5px 0 rgba(18, 83, 18, 0.28);
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.48), inset 0 -4px 0 rgba(0, 95, 8, 0.28), 0 6px 0 rgba(136, 80, 5, 0.32);
}
.hint-offer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: min(80%, 390px);
    margin: 0 auto 0;
}
.hint-offer-card {
    position: relative;
    aspect-ratio: 208 / 256;
    border: 0;
    padding: 0;
    background: transparent;
    color: #672b07;
    filter: drop-shadow(0 4px 0 rgba(123, 67, 14, 0.28));
    transition: transform 120ms ease, filter 120ms ease;
}
.hint-offer-bulb-small {
    position: absolute;
    left: 50%;
    top: 12%;
    width: 43%;
    transform: translateX(-50%);
}
.hint-offer-card .hint-offer-bulb-small {
    width: 43%;
}
.hint-offer-card-count {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    color: #6a2d08;
    font-size: 32px;
    font-weight: 900;
    line-height: 0.9;
    text-align: center;
    text-shadow: 0 2px 0 rgba(255, 238, 200, 0.92), 0 4px 0 rgba(72, 29, 5, 0.2);
}
.hint-offer-card-price {
    position: absolute;
    left: 9%;
    right: 9%;
    bottom: 8%;
    min-height: 21%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(#98ec31, #33bf1e 52%, #168d1a);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 3px 0 #16801e, 0 5px 0 rgba(18, 83, 18, 0.26);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.48), inset 0 -3px 0 rgba(0, 95, 8, 0.26), 0 5px 0 rgba(136, 80, 5, 0.3);
}
.hint-offer-free-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    width: min(78%, 430px);
    margin: 0 auto 0;
    color: #5b961f;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
}
.hint-offer-free-row span {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(202, 126, 50, 0.58));
}
.hint-offer-free-row span:last-child {
    background: linear-gradient(90deg, rgba(202, 126, 50, 0.58), transparent);
}
.hint-offer-ad-button {
    position: relative;
    display: block;
    width: min(80%, 430px);
    aspect-ratio: 653 / 125;
    margin: 4px auto 0;
    border: 0;
    padding: 0;
    background: transparent;
    color: #6b2d08;
    filter: drop-shadow(0 4px 0 rgba(93, 71, 18, 0.26));
    transition: transform 120ms ease, filter 120ms ease;
}
.hint-offer-ad-label {
    position: absolute;
    left: 30%;
    width: 40%;
    top: 50%;
    transform: translateY(-50%);
    color: #6b2d08;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 2px 0 rgba(255, 238, 200, 0.86), 0 4px 0 rgba(72, 29, 5, 0.2);
}
.hint-offer-ad-button .hint-offer-ad-icon {
    left: 8%;
    top: 50%;
    width: 14%;
    height: auto;
    transform: translateY(-50%);
}
.hint-offer-ad-reward-group {
    position: absolute;
    right: 5.8%;
    top: 50%;
    transform: translate(var(--hint-offer-ad-reward-x, 0px), -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2em;
    min-width: 16%;
    font-size: 18px;
    line-height: 1;
    white-space: nowrap;
}
.hint-offer-ad-reward {
    color: #542002;
    font-size: calc(1.35em * var(--hint-offer-ad-reward-scale, 1));
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 0 rgba(255, 230, 157, 0.82), 0 5px 0 rgba(72, 29, 5, 0.24);
}
.hint-offer-ad-reward-group .hint-offer-ad-bulb {
    display: block;
    width: calc(0.92em * var(--hint-offer-ad-bulb-scale, 1));
    max-width: none;
    height: auto;
    flex: 0 0 auto;
}
.hint-offer-featured:hover,
.hint-offer-card:hover,
.hint-offer-ad-button:hover,
.hint-offer-close:hover {
    filter: brightness(1.04) drop-shadow(0 4px 0 rgba(95, 43, 12, 0.24));
}
.hint-offer-featured:disabled,
.hint-offer-card:disabled,
.hint-offer-ad-button:disabled {
    cursor: wait;
    opacity: 0.62;
    filter: saturate(0.8);
}
.hint-offer-featured:hover {
    animation: none;
    filter: brightness(1.04) drop-shadow(0 4px 0 rgba(95, 43, 12, 0.24));
    transform: translateY(-1px) scale(1.01);
}
.hint-offer-featured:hover::before {
    box-shadow: 0 0 calc(var(--hint-offer-featured-glow-blur, 55px) + 4px) calc(var(--hint-offer-featured-glow-spread, 25px) + 2px) rgba(var(--hint-offer-featured-glow-rgb, 255, 221, 51), var(--hint-offer-featured-glow-opacity, 0.65));
}
.hint-offer-featured:active,
.hint-offer-card:active,
.hint-offer-ad-button:active,
.hint-offer-close:active {
    transform: translateY(1px) scale(0.98);
}
.hint-offer-featured:active {
    animation: none;
}
.hint-offer-status {
    min-height: 22px;
    margin-top: 8px;
    text-align: center;
    color: #2f8b58;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
}
.hint-offer-status.is-error {
    color: #c2410c;
}
.hint-offer-featured:focus,
.hint-offer-featured:focus-visible,
.hint-offer-card:focus,
.hint-offer-card:focus-visible,
.hint-offer-ad-button:focus,
.hint-offer-ad-button:focus-visible,
.hint-offer-close:focus,
.hint-offer-close:focus-visible {
    outline: none;
}
@keyframes hint-offer-featured-breathe {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-1px) scale(1.028);
    }
}
@media (prefers-reduced-motion: reduce) {
    .hint-offer-overlay.is-open .hint-offer-featured {
        animation: none;
    }
}

.hint-offer-dev-panel {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 61;
    width: min(340px, calc(100vw - 2rem));
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 24px;
    background: rgba(255, 252, 246, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 30px rgba(86, 48, 19, 0.18);
    color: #6f3410;
    font-family: "Outfit", "Segoe UI", sans-serif;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 140ms ease, visibility 140ms ease, transform 140ms ease;
}
.hint-offer-dev-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.hint-offer-dev-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(221, 178, 140, 0.28);
}
.hint-offer-dev-title {
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
}
.hint-offer-dev-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.hint-offer-dev-chip {
    border: 1px solid rgba(221, 178, 140, 0.38);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 248, 237, 0.95);
    color: #8c4515;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    transition: transform 120ms ease, background-color 120ms ease;
}
.hint-offer-dev-chip:hover {
    background: rgba(255, 240, 216, 1);
}
.hint-offer-dev-chip:active {
    transform: scale(0.96);
}
.hint-offer-dev-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px 16px;
}
.hint-offer-dev-note {
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 236, 209, 0.62);
    color: #9a5620;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}
.hint-offer-dev-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hint-offer-dev-row-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    color: #7a3c15;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}
.hint-offer-dev-row-head span:last-child {
    color: #f97316;
}
.hint-offer-dev-slider {
    width: 100%;
    accent-color: #f97316;
    cursor: pointer;
}
.hint-offer-dev-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hint-offer-dev-inline .hint-offer-dev-slider {
    flex: 1 1 auto;
}
.hint-offer-dev-color {
    width: 56px;
    min-width: 56px;
    height: 38px;
    border: 1px solid rgba(212, 143, 91, 0.5);
    border-radius: 12px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}
.hint-offer-dev-eye {
    flex: 0 0 auto;
    min-width: 88px;
    height: 38px;
    border: 1px solid rgba(212, 143, 91, 0.5);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #7a3d14;
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 800;
    transition: transform 120ms ease, background 120ms ease, opacity 120ms ease;
}
.hint-offer-dev-eye:hover {
    background: rgba(255, 248, 239, 0.98);
}
.hint-offer-dev-eye:active {
    transform: scale(0.98);
}
.hint-offer-dev-eye:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.player-settings-modal {
    position: relative;
    width: min(92vw, 560px);
    aspect-ratio: 688 / 684;
    min-height: min(88vh, 500px);
    max-height: 90vh;
    padding: clamp(44px, 7vw, 76px) clamp(42px, 7vw, 70px) clamp(34px, 5vw, 54px);
    background: url("../assets/ui/new_ui/panel_settings_bg.png") center / contain no-repeat;
    color: #783811;
    font-family: "Outfit", "Segoe UI", sans-serif;
    filter: drop-shadow(0 16px 22px rgba(91, 42, 15, 0.28));
    transform-origin: center center;
    transform: translateY(10px) scale(var(--player-settings-responsive-scale, var(--player-settings-panel-scale, 1)));
    transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.player-settings-overlay.is-open .player-settings-modal {
    transform: translateY(0) scale(var(--player-settings-responsive-scale, var(--player-settings-panel-scale, 1)));
}
.player-settings-title {
    margin: 0 0 clamp(22px, 4.2vw, 36px);
    font-size: clamp(30px, 6vw, 48px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    text-shadow: 0 2px 0 rgba(255, 238, 200, 0.95);
}
.player-settings-close {
    display: none;
    position: absolute;
    top: 8%;
    right: 8%;
    width: clamp(54px, 8.2vw, 72px);
    height: clamp(54px, 8.2vw, 72px);
    border: 0;
    padding: 0;
    background: transparent;
    filter: drop-shadow(0 5px 6px rgba(95, 43, 12, 0.2));
    transition: transform 120ms ease, filter 120ms ease;
}
.player-setting-row {
    display: grid;
    grid-template-columns: clamp(54px, 9vw, 72px) minmax(86px, 1fr) minmax(150px, 1.45fr);
    align-items: center;
    gap: clamp(10px, 2.4vw, 18px);
    margin: 0 auto clamp(18px, 3.2vw, 28px);
    width: 88%;
}
.player-setting-icon {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 5px rgba(96, 44, 13, 0.16));
}
.player-setting-label,
.player-language-title {
    font-size: clamp(23px, 4.2vw, 34px);
    font-weight: 900;
    line-height: 1;
    color: #783811;
    text-shadow: 0 2px 0 rgba(255, 238, 200, 0.95);
}
.player-art-slider {
    --player-slider-value: 100%;
    width: 100%;
    height: clamp(30px, 5.8vw, 42px);
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    cursor: pointer;
}
.player-art-slider::-webkit-slider-runnable-track {
    height: clamp(30px, 5.8vw, 42px);
    border: 0;
    background: transparent;
}
.player-art-slider::-webkit-slider-thumb {
    width: clamp(46px, 7vw, 62px);
    height: clamp(46px, 7vw, 62px);
    margin-top: clamp(-8px, -1vw, -5px);
    border: 0;
    appearance: none;
    -webkit-appearance: none;
    background: url("../assets/ui/new_ui/slider_handle_paw.png") center / contain no-repeat;
    filter: drop-shadow(0 4px 5px rgba(92, 42, 13, 0.22));
}
.player-slider-shell {
    --player-slider-value: 100%;
    --player-slider-fill-width: 100%;
    position: relative;
    width: 100%;
    min-width: 0;
    height: 64px;
    isolation: isolate;
}
.player-slider-track,
.player-slider-fill {
    position: absolute;
    left: 0;
    top: 50%;
    display: block;
    width: 100%;
    height: auto;
    transform: translateY(-50%);
    user-select: none;
    pointer-events: none;
}
.player-slider-track {
    z-index: 0;
}
.player-slider-fill-mask {
    position: absolute;
    left: 0;
    top: 50%;
    z-index: 1;
    width: var(--player-slider-fill-width);
    height: 40px;
    overflow: hidden;
    transform: translateY(-50%);
    pointer-events: none;
}
.player-slider-fill {
    top: 50%;
    width: var(--player-slider-full-width, 100%);
    max-width: none;
}
.player-slider-shell .player-art-slider {
    position: absolute;
    inset: 0;
    z-index: 2;
    height: 100%;
    min-width: 0;
}
.player-slider-shell .player-art-slider::-webkit-slider-runnable-track {
    height: 64px;
}
.player-slider-shell .player-art-slider::-webkit-slider-thumb {
    position: relative;
    z-index: 3;
}
.player-settings-divider {
    width: 84%;
    height: 2px;
    margin: clamp(14px, 3vw, 24px) auto clamp(18px, 3vw, 28px);
    background: linear-gradient(90deg, transparent, rgba(207, 135, 73, 0.68), transparent);
}
.player-language-title {
    margin-bottom: clamp(14px, 3vw, 24px);
    text-align: center;
}
.player-language-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 2.3vw, 18px);
    width: 80%;
    margin: 0 auto clamp(24px, 4vw, 36px);
}
.player-language-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2vw, 14px);
    min-height: clamp(58px, 10vw, 78px);
    border: 3px solid rgba(209, 133, 65, 0.72);
    border-radius: 24px;
    background: rgba(255, 246, 225, 0.86);
    color: #77360e;
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-size: clamp(23px, 4.6vw, 34px);
    font-weight: 900;
    box-shadow: 0 4px 0 rgba(160, 84, 31, 0.2), inset 0 2px 8px rgba(255, 255, 255, 0.72);
    transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.player-language-option img {
    width: clamp(42px, 8vw, 58px);
    aspect-ratio: 431 / 328;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(87, 38, 10, 0.18);
}
.player-language-option.is-active {
    border-color: #39c32f;
    box-shadow: 0 4px 0 rgba(23, 139, 28, 0.22), 0 0 0 3px rgba(72, 215, 53, 0.16), inset 0 2px 8px rgba(255, 255, 255, 0.72);
}
.player-language-option.is-active::after {
    content: "✓";
    position: absolute;
    top: -14px;
    right: -12px;
    width: clamp(28px, 5vw, 38px);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(#8fe947, #25b72e);
    color: #fff;
    font-size: clamp(18px, 3.4vw, 26px);
    line-height: 1;
    text-shadow: 0 1px 0 #197a1d;
    box-shadow: 0 3px 5px rgba(55, 94, 16, 0.28);
}
.player-settings-done {
    position: relative;
    display: block;
    width: min(68%, 360px);
    aspect-ratio: 460 / 120;
    margin: 0 auto;
    border: 0;
    padding: 0;
    background: transparent;
    color: #fff;
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-size: clamp(24px, 5vw, 38px);
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 3px 0 #16801e, 0 5px 9px rgba(18, 83, 18, 0.28);
    filter: drop-shadow(0 7px 8px rgba(56, 96, 19, 0.24));
    transition: transform 120ms ease, filter 120ms ease;
}
.player-settings-done span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
/* Reference-tuned settings layout */
.player-settings-modal {
    box-sizing: border-box;
    width: 688px;
    height: 760px;
    aspect-ratio: auto;
    min-height: 0;
    max-height: none;
    padding: 82px 82px 48px;
    background-size: 100% 100%;
    --player-settings-fit-scale: 1;
    --player-settings-responsive-scale: 1;
}
.player-settings-title {
    margin: 0 0 34px;
    font-size: 58px;
}
.player-settings-close {
    top: 7.5%;
    right: 7.2%;
    width: 78px;
    height: 78px;
}
.player-setting-row {
    width: min(100%, 528px);
    grid-template-columns: 76px 142px minmax(260px, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}
.player-setting-icon {
    width: 76px;
}
.player-setting-label {
    font-size: 38px;
    white-space: nowrap;
}
.player-art-slider {
    width: 100%;
    min-width: 260px;
    height: 64px;
    background: transparent;
}
.player-art-slider::-webkit-slider-runnable-track {
    height: 64px;
    background: transparent;
}
.player-art-slider::-webkit-slider-thumb {
    width: 72px;
    height: 72px;
    margin-top: -4px;
}
.player-slider-shell {
    min-width: 260px;
    height: 64px;
}
.player-slider-shell .player-art-slider {
    min-width: 0;
}
.player-settings-divider {
    width: min(100%, 528px);
    margin: 18px auto 22px;
}
.player-language-title {
    margin-bottom: 18px;
    font-size: 40px;
}
.player-language-grid {
    width: min(100%, 458px);
    gap: 14px 22px;
    margin-bottom: 18px;
}
.player-language-option {
    min-height: 68px;
    border-radius: 22px;
    font-size: 36px;
}
.player-language-option img {
    width: 54px;
}
.player-settings-done {
    width: min(70%, 330px);
    margin-top: 6px;
    font-size: 40px;
}
.player-settings-button:focus,
.player-settings-button:focus-visible,
.player-hint-button:focus,
.player-hint-button:focus-visible {
    outline: none;
}
@media (max-width: 620px) {
    #top-player-ui {
        gap: var(--top-player-ui-gap, clamp(6px, 1.2vw, 10px));
    }
    .player-level-panel {
        width: min(48vw, 206px);
    }
    .player-settings-button {
        width: min(17vw, 72px);
        height: min(17vw, 72px);
    }
    .player-hint-button {
        width: min(17vw, 72px);
        height: min(17vw, 72px);
    }
    .hint-offer-dev-panel {
        left: 1rem;
        right: 1rem;
        top: auto;
        bottom: 1rem;
        width: auto;
        z-index: 61;
    }
    .hint-offer-modal {
        width: 400px;
        height: 690px;
        padding: 56px 22px 26px;
    }
    .hint-offer-close {
        top: 4.2%;
        right: 5.4%;
        width: 46px;
        height: 46px;
    }
    .hint-offer-title {
        width: 80%;
        margin: var(--hint-offer-title-offset-y, 0px) 0 0;
        font-size: calc(26px * var(--hint-offer-title-scale, 1));
    }
    .hint-offer-main {
        width: 100%;
        margin-top: var(--hint-offer-title-gap-after, 0px);
        gap: 10px;
    }
    .hint-offer-featured {
        width: 90%;
        margin-top: 6px;
    }
    .hint-offer-ribbon-label {
        top: 1%;
        width: 80%;
        font-size: 16px;
    }
    .hint-offer-featured-count {
        left: 49%;
        top: 28%;
        font-size: 52px;
    }
    .hint-offer-featured-price {
        left: 43%;
        bottom: 19%;
        width: 43%;
        min-height: 24%;
        border-radius: 16px;
        font-size: 19px;
    }
    .hint-offer-grid {
        width: 90%;
        gap: 6px;
    }
    .hint-offer-card-count {
        top: 47%;
        font-size: 25px;
        line-height: 1;
    }
    .hint-offer-card-price {
        border-radius: 12px;
        font-size: 16px;
    }
    .hint-offer-free-row {
        width: 90%;
        gap: 8px;
        margin-top: 0;
        font-size: 18px;
    }
    .hint-offer-ad-button {
        width: 90%;
    }
    .hint-offer-ad-label {
        left: 25%;
        width: 43%;
        text-align: center;
        font-size: 13px;
    }
    .hint-offer-ad-button .hint-offer-ad-icon {
        left: 8%;
        width: 14%;
        height: auto;
    }
    .hint-offer-ad-reward-group {
        right: 4.8%;
        min-width: 14%;
        transform: translate(0, -50%);
        font-size: 12px;
    }
    .hint-offer-ad-reward {
        font-size: calc(1.2em * var(--hint-offer-ad-reward-scale, 1));
    }
    .hint-offer-ad-reward-group .hint-offer-ad-bulb {
        width: calc(0.72em * var(--hint-offer-ad-bulb-scale, 1));
    }
}

html.is-yandex-mobile-ui #top-player-ui {
    top: 20px;
}
.victory-hide-now {
    transition: none !important;
}
#win-modal {
    position: relative;
    z-index: 1;
    transform-origin: 50% 100%;
    will-change: transform, opacity, filter;
}
.victory-cta {
    width: min(96vw, 560px);
    height: clamp(220px, 34vw, 300px);
    text-align: center;
    filter: drop-shadow(0 10px 18px rgba(92, 48, 16, 0.22));
}
.victory-title {
    position: fixed;
    left: var(--victory-grid-center-x, 50vw);
    top: var(--victory-grid-center-y, 50vh);
    z-index: 2;
    width: max-content;
    max-width: calc(100vw - 24px);
    margin: 0 0 6px;
    pointer-events: none;
    text-align: center;
    white-space: nowrap;
    color: #ffffff;
    font-size: clamp(
        calc(24px * var(--victory-title-scale, 1)),
        calc(7vw * var(--victory-title-scale, 1)),
        calc(34px * var(--victory-title-scale, 1))
    );
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: 0;
    text-shadow:
        0 3px 0 #8d4e2d,
        0 1px 0 #8d4e2d,
        2px 0 0 #8d4e2d,
        -2px 0 0 #8d4e2d,
        0 6px 12px rgba(85, 36, 10, 0.24);
    transform: translate(-50%, -50%);
}
.victory-next-button {
    position: absolute;
    left: 0;
    right: 0;
    top: clamp(70px, 12vw, 104px);
    isolation: isolate;
    display: block;
    width: 100%;
    height: clamp(112px, 22vw, 156px);
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    touch-action: manipulation;
    transform-origin: 50% 55%;
    transition: transform 120ms ease, filter 120ms ease;
    animation: victoryButtonPulse 1800ms ease-in-out infinite;
    --victory-button-shift-y: var(--victory-button-y, 0px);
    --victory-button-scale-safe: var(--victory-button-scale, 1);
}
.victory-pulse-off .victory-next-button {
    animation: none;
    transform: translateY(var(--victory-button-shift-y, 0px)) scale(var(--victory-button-scale-safe));
}
.victory-next-button::before {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    top: 4%;
    bottom: 4%;
    z-index: 0;
    border-radius: 999px;
    background:
        radial-gradient(ellipse at center, rgba(255, 252, 188, 0.96) 0%, rgba(255, 218, 68, 0.62) 34%, rgba(100, 255, 95, 0.26) 58%, rgba(255, 205, 68, 0) 78%);
    filter: blur(18px);
    opacity: 0.92;
    animation: victoryButtonGlow 1800ms ease-in-out infinite;
    pointer-events: none;
}
.victory-next-button:hover {
    filter: brightness(1.04);
}
.victory-pulse-hover-pause .victory-next-button:hover {
    animation-play-state: paused;
    transform: translateY(calc(var(--victory-button-shift-y, 0px) - 1px)) scale(calc(var(--victory-button-scale-safe) * 1.04));
}
.victory-next-button:active {
    transform: translateY(calc(var(--victory-button-shift-y, 0px) + 1px)) scale(calc(var(--victory-button-scale-safe) * 0.985));
    filter: brightness(0.98);
}
.victory-next-button:focus-visible {
    outline: 3px solid rgba(255, 244, 154, 0.95);
    outline-offset: 2px;
    border-radius: 999px;
}
.victory-button-art {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    filter:
        drop-shadow(0 0 8px rgba(255, 248, 135, 0.95))
        drop-shadow(0 0 18px rgba(255, 202, 43, 0.55));
}
.victory-button-label {
    position: absolute;
    left: 24%;
    right: 24%;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: clamp(18px, 4.1vw, 24px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0;
    text-wrap: balance;
    text-shadow:
        0 2px 0 #187a25,
        1px 0 0 #187a25,
        -1px 0 0 #187a25,
        0 4px 8px rgba(8, 72, 17, 0.35);
}
@keyframes victoryButtonGlow {
    0%, 100% { opacity: 0.52; transform: scale(0.96); }
    50% { opacity: 0.9; transform: scale(1.05); }
}
@keyframes victoryButtonPulse {
    0%, 100% { transform: translateY(var(--victory-button-shift-y, 0px)) scale(var(--victory-button-scale-safe)); }
    50% { transform: translateY(var(--victory-button-shift-y, 0px)) scale(calc(var(--victory-button-scale-safe) * 1.035)); }
}
.victory-panel-appear-standard {
    animation: victoryPanelStandard 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.victory-panel-appear-fade {
    animation: victoryPanelFade 420ms ease-out both;
}
.victory-panel-appear-pop {
    animation: victoryPanelPop 460ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.victory-panel-appear-bounce {
    animation: victoryPanelBounce 600ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.victory-panel-appear-slide-up {
    animation: victoryPanelSlideUp 460ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.victory-panel-appear-soft-drop {
    animation: victoryPanelSoftDrop 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.victory-panel-appear-gentle-swing {
    animation: victoryPanelGentleSwing 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes victoryPanelStandard {
    from { opacity: 0; transform: translateY(14px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes victoryPanelFade {
    from { opacity: 0; transform: translateY(0) scale(1); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes victoryPanelPop {
    0% { opacity: 0; transform: translateY(12px) scale(0.94); }
    72% { opacity: 1; transform: translateY(0) scale(1.012); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes victoryPanelBounce {
    0% { opacity: 0; transform: translateY(22px) scale(0.97); }
    58% { opacity: 1; transform: translateY(-4px) scale(1.006); }
    78% { opacity: 1; transform: translateY(2px) scale(0.998); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes victoryPanelSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes victoryPanelSoftDrop {
    0% { opacity: 0; transform: translateY(-18px) scale(0.992); filter: blur(1px); }
    72% { opacity: 1; transform: translateY(2px) scale(1); filter: blur(0); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes victoryPanelGentleSwing {
    0% { opacity: 0; transform: translateY(14px) rotate(-0.9deg) scale(0.98); }
    56% { opacity: 1; transform: translateY(0) rotate(0.55deg) scale(1.004); }
    78% { opacity: 1; transform: translateY(0) rotate(-0.18deg) scale(1); }
    100% { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}
/* Custom scrollbar and styling for settings panel */
#zoom-control-panel::-webkit-scrollbar {
    width: 6px;
}
#zoom-control-panel::-webkit-scrollbar-track {
    background: transparent;
}
#zoom-control-panel::-webkit-scrollbar-thumb {
    background: rgba(249, 115, 22, 0.3);
    border-radius: 10px;
}
#zoom-control-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(249, 115, 22, 0.6);
}

#zoom-panel-body.hidden {
    display: none;
}
