/* portrait.css — Estilos exclusivos para modo Portrait (body.mode-portrait)  */

/* Modifica este archivo para ajustes portrait sin tocar style.css             */

/* ── Reglas dispersas (originalmente fuera del bloque principal) ── */

body.mode-portrait #trophy-canvas {
    display: block;
}

body.mode-portrait .ranking-label {
    display: none;
}

body.mode-portrait #shop.is-expanded.is-info .shop-btn>.lv-corner {
    color: white;
    justify-self: end;
    align-self: start;
    position: static !important;
    /* left: 50%; */
    width: auto;
    height: inherit !important;
    line-height: inherit;
    bottom: 18px;
    font-size: 8px !important;
    /* -webkit-transform-origin-x: 50%; */
    text-align: center;
}

body.mode-portrait #game-tooltip {
    display: none !important;
}

body.mode-portrait #mode-toggle-btn {
    display: flex !important;
}

body.mode-portrait .free-ad-btn {
    background: none !important;
    border: 5px solid transparent !important;
    border-image: url('pixelart_design/shop_item_green.png') 5 fill / 7px / 0 stretch !important;
    background-color: #5dca93 !important;
    /* tapa rayitas 9-slice (interior del sprite) */
    background-clip: padding-box !important;
    image-rendering: pixelated;
    color: #1a0820 !important;
}

/* ── Money counter 9-slice ── */

body.mode-portrait #money-counter .pixel-counter-wrap {
    border-width: 0 72px 0 72px !important;
    border-style: solid !important;
    border-color: transparent !important;
    border-image: url('pixelart_design/money_count.png') 0 44 0 44 fill stretch !important;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    min-width: 154px !important;
}

body.mode-portrait #money-counter .pixel-counter-val {
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-left: 8px;
}

@media (min-width: 601px) {
    body.mode-portrait #money-counter .pixel-counter-wrap {
        min-width: 320px !important;
    }
}

/* ══════════════════════════════════════════════════════════════
   MODO PORTRAIT — Mobile Android vertical (window.GAME_MARKET = 'googleplay')
   Todas las reglas están bajo body.mode-portrait → NO afectan al modo PC
   ══════════════════════════════════════════════════════════════ */

/* ── Banner de anuncios (320×50) ────────────────────────────────────────── */

/* Para mover el banner: cambia _BANNER_POSITION en shared/ads.js          */

body.mode-portrait #game-banner {
    flex-shrink: 0;
    width: 100%;
    height: 50px;
    order: -1;
    /* top: se renderiza antes que el header */
    background: #000;
    overflow: hidden;
    display: none;
    /* showBanner() activa con display: flex */
    align-items: center;
    justify-content: center;
}

body.mode-portrait #game-banner.banner-bottom {
    order: 100;
    /* bottom: se renderiza después del shop */
}

/* body y html */

body.mode-portrait {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    position: fixed;
    touch-action: none;
}

/* Contenedor principal: flex-column que ocupa toda la pantalla */

body.mode-portrait #game-container {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: #000;
    box-sizing: border-box;
    max-width: none;
}

/* Header compacto */

body.mode-portrait header {
    position: relative;
    width: 100%;
    z-index: 10;
    margin: 0;
    margin-bottom: 0;
    padding: 5px 8px;
    padding-top: calc(5px + env(safe-area-inset-top));
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    border-image: url(pixelart_design/TOP.png);
    background-color: #45293f;
    /* tapa rayitas 9-slice (interior del sprite) */
    background-clip: padding-box;
    /* background-repeat: repeat-x; */
    /* background-size: auto 100%; */
    /* background-position: center; */
    /* background-position-y: -20px; */
    border-image-slice: 40 0 0 0 fill;
    border-radius: 0;
    flex-shrink: 0;
}

body.mode-portrait header h1 {
    display: none;
}

body.mode-portrait #topbar-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    flex: 1;
    min-width: 0;
}

body.mode-portrait #stats-header {
    flex: 0 0 auto;
}

body.mode-portrait #topbar-row #money-counter {
    flex: 1;
    min-width: 0;
}

body.mode-portrait #topbar-row #money-counter .pixel-counter-wrap {
    width: 100%;
    min-width: 0;
}

body.mode-portrait .pixel-counter {
    flex: 0;
    height: auto;
    padding: 0;
    background: none;
    border: none;
    margin: 0;
}

body.mode-portrait .pixel-counter-wrap {
    height: 44px;
}

body.mode-portrait #stats-header .pixel-counter-wrap,
body.mode-portrait #money-counter .pixel-counter-wrap {
    border: none;
}

body.mode-portrait #ranking-btn,
body.mode-portrait #pause-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    flex: 0 0 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

body.mode-portrait #ranking-btn:hover:not(:disabled),
body.mode-portrait #pause-btn:hover:not(:disabled) {
    background-color: transparent !important;
    transform: translateY(-2px) !important;
    box-shadow: none !important;
}

body.mode-portrait #ranking-btn:active,
body.mode-portrait #pause-btn:active {
    background-color: transparent !important;
    transform: translate(2px, 2px) !important;
    box-shadow: none !important;
}

body.mode-portrait #ranking-btn .ranking-label {
    display: none;
}

body.mode-portrait #mute-btn,
body.mode-portrait #toggle-info-btn {
    display: none !important;
}

/* main: flex-column que llena el espacio restante */

body.mode-portrait main {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    width: 100%;
    gap: 0;
    min-height: 0;
}

/* Zona de juego: flex centrado, ocupa todo el espacio */

body.mode-portrait #farm-area {
    flex: 1;
    width: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #37213c;
    overflow: hidden;
    min-height: 0;
    position: relative;
}

/* game-viewport: llena el farm-area completo sin restricción de ratio */

body.mode-portrait #game-viewport {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: relative;
    background: #3e2723;
    overflow: hidden;
    border-left: none;
    border-right: none;
    box-sizing: border-box;
}

body.mode-portrait #game-viewport>*,
body.mode-portrait #cine-frame>* {
    width: 100%;
    flex-shrink: 0;
}

/* Extensión cielo: visible en portrait */

body.mode-portrait .sky-extension {
    display: block;
    flex: 3;
    width: 100%;
    background-image: url('pixelart_design/bg_top.png');
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: 100% auto;
    margin-bottom: -15px;
    z-index: 1;
    overflow: hidden;
    min-height: 0;
}

/* Canvas principal — ancho completo de pantalla, altura derivada de su proporción nativa.
   flex:none para que el flex-column NO lo estire: antes tenía flex:1 contra sky(flex:3) y
   earth(flex:1), así que solo recibía 1/5 de la altura y con aspect-ratio:unset se achataba.
   Ahora toma su altura por aspect-ratio y cielo/tierra rellenan el espacio sobrante (3:1). */

body.mode-portrait #gameCanvas {
    flex: none;
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: 800 / 900;
    /* = _CANVAS_SIZES.portrait (shared/responsive.js) */
    display: block;
    border: none;
    border-radius: 0;
    box-shadow: none;
    z-index: 2;
    box-sizing: border-box;
    background: transparent;
    margin: -1px 0;
    touch-action: none;
}

/* Extensión tierra: visible en portrait */

body.mode-portrait .earth-extension {
    display: block;
    flex: 1;
    width: 100%;
    background-image: url('pixelart_design/bg_bottom.png');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 100% auto;
    margin-top: -5px;
    z-index: 1;
    overflow: hidden;
    min-height: 0;
}

/* ── Portrait: gallinas del intro — contenedor sin transform para no crear stacking context ── */

/* La escala se aplica por elemento en _tick() via PORTRAIT_INTRO_CHICKEN_SCALE */

body.mode-portrait #mm-animals {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* ── Portrait: nubes del intro — escala sobre el ancho nativo de cada nube ── */

body.mode-portrait #cloud-1 {
    width: calc(204px * var(--portrait-cloud-scale, 1)) !important;
}

body.mode-portrait #cloud-2 {
    width: calc(196px * var(--portrait-cloud-scale, 1)) !important;
}

body.mode-portrait #cloud-3 {
    width: calc(116px * var(--portrait-cloud-scale, 1)) !important;
}

body.mode-portrait #cloud-4 {
    width: calc(116px * var(--portrait-cloud-scale, 1)) !important;
}

body.mode-portrait #cloud-5 {
    width: calc(156px * var(--portrait-cloud-scale, 1)) !important;
}

body.mode-portrait #cloud-6 {
    width: calc(180px * var(--portrait-cloud-scale, 1)) !important;
}

body.mode-portrait #cloud-7 {
    width: calc(160px * var(--portrait-cloud-scale, 1)) !important;
}

body.mode-portrait #cloud-8 {
    width: calc(130px * var(--portrait-cloud-scale, 1)) !important;
}

body.mode-portrait #cloud-9 {
    width: calc(140px * var(--portrait-cloud-scale, 1)) !important;
}

/* ── Portrait: main menu logo ── */

/* Scope a #mm-home: cuando el rig se mueve al scale-root, el inline style de _onLogoLand() debe tomar el control */

body.mode-portrait #mm-home #mm-hang-rig {
    width: var(--portrait-logo-w, clamp(275px, 68vw, 800px)) !important;
}

/* Sombras de suelo — desplazamiento Y y anchura */

body.mode-portrait #mm-jugar-btn::after {
    bottom: var(--portrait-jugar-shadow-after-y, -5px) !important;
}

/* Cancelar translateY de hover/active del global — portrait usa scale en su lugar */

body.mode-portrait #mm-jugar-btn:hover .mm-jugar-crate,
body.mode-portrait #mm-jugar-btn:active .mm-jugar-crate {
    transform: none !important;
}

/* Press/release: escala el contenedor inner (imagen + texto juntos) desde la base */

body.mode-portrait #mm-jugar-btn>div {
    transition: transform 0.1s ease !important;
    transform-origin: center bottom !important;
}

body.mode-portrait #mm-jugar-btn:active>div {
    transform: scale(0.88) !important;
}

/* En móvil el :hover se queda pegado tras el tap — neutralizamos su efecto en portrait */

body.mode-portrait #mm-jugar-btn:hover::after,
body.mode-portrait #mm-jugar-btn:active::after {
    opacity: 0.45 !important;
    transform: translateX(-50%) scaleX(1) !important;
}

body.mode-portrait .mm-prado-mode-btn::after {
    bottom: var(--portrait-prado-shadow-after-y, -1px) !important;
    width: min(75vw, 300px) !important;
    /* matches .prado-crate-frame width exactly */
    background: rgba(0, 0, 0, 0.52);
    filter: blur(3px);
}

/* ── Portrait: fondo de intro en proporciones correctas ── */

/* Inline style pone width:100% (=1088px contenedor), lo que estira la imagen.
   Lo sobreescribimos para que sea width:auto a la altura del contenedor (1264px). */

body.mode-portrait #intro-bg-img {
    position: absolute !important;
    left: 50% !important;
    top: 0 !important;
    width: calc(100vw / var(--portrait-correct-ds, 1)) !important;
    /* compensa la escala del scale-root */
    height: 100% !important;
    /* contenedor ahora es 2229px — cubre todo sin la 100vh extra que causaba zoom x1.44 */
    object-fit: cover !important;
    object-position: top center !important;
    transform-origin: center top !important;
    transform: translateX(-50%) scale(var(--portrait-bg-scale, 1)) !important;
}

/* ── Portrait: corrige escala del scale-root ── */

/* index.html la calcula con outerWidth; en DevTools outerWidth != innerWidth → escala exagerada.
   portrait.js expone --portrait-correct-ds con los valores correctos; !important anula el inline. */

body.mode-portrait #intro-scale-root {
    transform: scale(var(--portrait-correct-ds, 1)) !important;
    transform-origin: top center !important;
}

/* ── Portrait: botón JUGAR principal ── */

/* bottom: % gestionado por JS en coordenadas del canvas (igual que las gallinas).
   El botón vive dentro de #intro-pan-container y se mueve con la cámara.
   Visible desde frame 1 — sin opacity:0, igual que los animales. */

body.mode-portrait #mm-jugar-btn {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    --play-btn-bottom: 35%;
}

body.mode-portrait .mm-jugar-crate {
    width: clamp(155px, 43vw, 250px) !important;
}

body.mode-portrait #mm-jugar-btn span {
    font-size: clamp(20px, 5.5vw, 32px) !important;
}

body.mode-portrait .mm-jugar-crate {
    transform: none !important;
}

/* ── Portrait: panel de selección de modos (scroll vertical, pantalla completa) ── */

/* El row se mueve a #main-menu-overlay via JS. Empieza a top:110vh (off-screen).
   Al pulsar JUGAR la "cámara" (pan-container) sube 100vh y el panel baja a top:0.
   Overscroll hacia arriba invierte ambas animaciones. Transition gestionada por JS. */

body.mode-portrait #mm-prado-crates-row {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100vh;
    top: 110vh;
    bottom: auto !important;
    right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scrollbar-width: none;
    overscroll-behavior-y: none;
    gap: 0;
    padding: 1.5rem 0 3rem;
    pointer-events: none;
    z-index: 0 !important;
    box-sizing: border-box;
    background: transparent;
}

body.mode-portrait #mm-prado-crates-row::-webkit-scrollbar {
    display: none;
}

/* Cada modo ocupa el ancho completo en el scroll vertical */

body.mode-portrait .mm-prado-mode-btn {
    flex: 0 0 auto;
    width: 100%;
    scroll-snap-align: none;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

body.mode-portrait .prado-crate-inner {
    position: relative;
    display: inline-block;
    line-height: 0;
}

body.mode-portrait .prado-crate-frame {
    width: min(75vw, 300px);
    height: auto;
    image-rendering: pixelated;
    display: block;
    transition: transform 0.12s ease;
    position: relative;
    z-index: 2;
}

body.mode-portrait .prado-mode-icon {
    position: absolute;
    z-index: 1;
    top: var(--portrait-mode-icon-top, 26%);
    left: 50%;
    transform: translateX(-50%);
    width: var(--portrait-mode-icon-w, 81%);
    aspect-ratio: 72 / 28;
    background-image: url(pixelart_design/mode_icons.png);
    background-size: 500% 100%;
    image-rendering: pixelated;
}

body.mode-portrait #mm-prado-normal .prado-mode-icon {
    background-position: 0% 0%;
}

body.mode-portrait #mm-prado-adam .prado-mode-icon {
    background-position: 25% 0%;
}

body.mode-portrait #mm-prado-fourth .prado-mode-icon {
    background-position: 50% 0%;
}

body.mode-portrait #mm-prado-endless .prado-mode-icon {
    background-position: 75% 0%;
}

body.mode-portrait #mm-prado-speedrun .prado-mode-icon {
    background-position: 100% 0%;
}

body.mode-portrait .prado-mode-name {
    position: absolute;
    z-index: 3;
    top: 0;
    bottom: 74%;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    font-family: 'Press Start 2P', monospace;
    font-size: var(--prado-name-size, 10px);
    color: #fff;
    text-shadow: 1px 1px 0 #000, 2px 2px 0 #000;
    pointer-events: none;
    white-space: nowrap;
    filter: drop-shadow(1px 1px 4px #000000);
}

body.mode-portrait .prado-desc {
    position: absolute;
    z-index: 3;
    top: var(--prado-desc-top, 30%);
    bottom: calc(var(--prado-actions-bottom, 5%) + var(--prado-btn-h, 28px) + 6px);
    left: var(--prado-inner-pad, 4%);
    right: var(--prado-inner-pad, 4%);
    text-align: center;
    font-family: 'Press Start 2P', monospace;
    font-size: var(--prado-desc-size, 7px);
    color: #fff;
    line-height: 1.4;
    text-shadow: 2px 2px 0 #000;
    pointer-events: none;
    white-space: normal;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
}

body.mode-portrait .prado-actions {
    position: absolute;
    z-index: 3;
    bottom: var(--prado-actions-bottom, 5%);
    left: var(--prado-inner-pad, 4%);
    right: var(--prado-inner-pad, 4%);
    display: flex;
    gap: 4px;
}

body.mode-portrait .prado-play-btn {
    flex: 1;
    height: var(--prado-btn-h, 28px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Press Start 2P', monospace;
    font-size: var(--prado-play-size, 9px);
    padding: 0 4px;
    color: white;
    border: 2px solid #fff;
}

body.mode-portrait #mm-prado-normal .prado-play-btn {
    background: #2980b9;
    box-shadow: 0 2px 0 #1c5980;
}

body.mode-portrait #mm-prado-adam .prado-play-btn {
    background: #27ae60;
    box-shadow: 0 2px 0 #1e8449;
}

body.mode-portrait #mm-prado-fourth .prado-play-btn {
    background: #c0392b;
    box-shadow: 0 2px 0 #922b21;
}

body.mode-portrait #mm-prado-endless .prado-play-btn {
    background: #8e44ad;
    box-shadow: 0 2px 0 #6c3483;
}

body.mode-portrait #mm-prado-speedrun .prado-play-btn {
    background: #e67e22;
    box-shadow: 0 2px 0 #d35400;
}

body.mode-portrait .prado-restart-btn {
    flex: 0 0 auto;
    height: var(--prado-btn-h, 28px);
    padding: 0px 8px 4px 8px;
    font-size: var(--prado-restart-size, 8px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Portrait: footer decorativo del main menu ── */

/* Imagen pixel-art fijada al bottom del overlay, misma escala que el fondo.
   Aparece con fade-in simultáneo al bottom-bar (via JS: portrait-footer-visible). */

body.mode-portrait #mm-portrait-footer-bg {
    position: absolute;
    bottom: var(--portrait-footer-bottom, 0px);
    left: 50%;
    width: 100vw;
    height: var(--portrait-footer-natural-h, 80px);
    box-sizing: border-box;
    border-style: solid;
    border-color: transparent;
    border-width: 0 20px;
    border-image: url('pixelart_design/bg_intro_footer_wood_portrait.png') 0 20 fill / 0 20px / 0 stretch;
    background-color: #8a593d;
    /* tapa rayitas 9-slice (interior del sprite) */
    background-clip: padding-box;
    image-rendering: pixelated;
    transform-origin: center bottom;
    transform: translateX(-50%) scale(var(--portrait-footer-scale, 1)) scaleX(var(--portrait-footer-w, 1));
    opacity: 0;
    transition: none;
    pointer-events: none;
    z-index: 730;
}

body.mode-portrait #mm-portrait-footer-bg.portrait-footer-visible {
    opacity: 1 !important;
    transition: opacity 0.5s ease !important;
}

/* Bottom bar encima del footer decorativo */

body.mode-portrait #mm-bottom-bar {
    z-index: 740 !important;
    bottom: var(--portrait-bottom-bar-y, 0px) !important;
}

/* ── Shop: en flujo normal bajo el área de juego ── */

body.mode-portrait #shop {
    position: relative;
    width: 100%;
    height: 150px;
    flex: 0 0 auto;
    flex-shrink: 0;
    z-index: 50;
    background: #3e2723;
    border-top: 4px solid #4a3623;
    padding: 8px;
    margin: 0;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
    display: flex;
    flex-direction: column;
    border-radius: 0 !important;
    border-left: none;
    border-right: none;
    border-bottom: none;
    max-height: none;
    overflow: hidden;
}

body.mode-portrait #shop.is-expanded {
    height: 49vh;
    box-shadow: 0 -15px 50px rgba(0, 0, 0, 0.95);
    background: #2e1d1a;
}

body.mode-portrait #shop.has-boosts {
    height: calc(150px + 28px);
}

body.mode-portrait #shop.is-expanded.has-boosts {
    height: calc(49vh + 28px);
}

body.mode-portrait #shop-header {
    touch-action: none;
    user-select: none;
    margin-bottom: 4px;
    padding-bottom: 7px !important;
    cursor: var(--cur-finger);
    justify-content: center;
}

body.mode-portrait #shop-header h2 {
    color: #ffffff;
    font-size: 11px;
    /*text-transform: uppercase;*/
    /*text-shadow: none;*/
}

/* ── Shop scroll: horizontal en colapsado, wrap en expandido ── */

body.mode-portrait #shop-scroll {
    flex: 1;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding: 5px;
    scrollbar-width: none;
    touch-action: pan-x;
    transition: all 0.3s ease;
    max-height: none;
}

body.mode-portrait #shop-scroll::-webkit-scrollbar {
    display: none;
}

body.mode-portrait #shop.is-expanded #shop-scroll {
    flex-direction: row;
    flex-wrap: wrap;
    overflow-x: hidden;
    overflow-y: auto;
    justify-content: center;
    align-content: flex-start;
    touch-action: pan-y;
    padding-bottom: 50px;
}

body.mode-portrait .shop-group-header {
    display: none !important;
}

/* Wrapper de botones de tienda */

body.mode-portrait .shop-btn-wrapper {
    flex: 0 0 85px;
    height: 85px;
    position: relative;
}

body.mode-portrait #shop-scroll>.shop-btn {
    flex: 0 0 130px;
    height: 85px;
}

body.mode-portrait .shop-btn {
    width: 100%;
    height: 100%;
    padding: 6px;
    border-radius: 4px;
    font-size: 6.5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    margin-bottom: 0;
    min-height: unset;
}

body.mode-portrait #shop.is-expanded .shop-btn-wrapper {
    flex: 0 0 calc(33% - 10px);
    height: 90px;
    max-width: 105px;
}

body.mode-portrait #shop.is-expanded #shop-scroll>.shop-btn {
    flex: 0 0 40%;
    height: 90px;
}

body.mode-portrait #shop.is-expanded .shop-btn {
    flex: unset;
    height: 100%;
    max-width: unset;
}

body.mode-portrait .shop-btn .btn-title {
    font-size: 6.5px;
    text-align: center;
    color: #7a3045;
}

body.mode-portrait .shop-btn .btn-price {
    font-size: 6.5px;
    opacity: 0.9;
}

body.mode-portrait .shop-btn>.upg-info,
body.mode-portrait .shop-btn>.lv-corner {
    font-size: 5px;
}

/* Info triangle en esquina */

body.mode-portrait .info-graphic {
    width: 26px !important;
    height: 26px !important;
    font-size: 9px !important;
    padding-right: 3px !important;
    padding-top: 3px !important;
}

/* ══════════════════════════════════════════════════════════════
   PORTRAIT — Shop remasterizado: BOTTOM.png + 9-slice buttons
   ══════════════════════════════════════════════════════════════ */

body.mode-portrait #shop {
    background: none;
    border: none !important;
    padding: 0;
}

body.mode-portrait #shop.is-expanded {
    background: none;
}

body.mode-portrait #shop::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border: 22px solid transparent;
    border-bottom-width: 75px;
    border-image: url(pixelart_design/BOTTOM.png);
    background-color: #6b3e75;
    /* tapa rayitas 9-slice (interior del sprite) */
    background-clip: padding-box;
    border-image-slice: 15 58 26 37 fill;
    border-image-width: 28px;
    image-rendering: pixelated;
    pointer-events: none;
}

body.mode-portrait #shop>* {
    position: relative;
    z-index: 1;
}

body.mode-portrait #shop-header {
    height: 30px;
    flex-shrink: 0;
    padding: 0 6px !important;
    margin-bottom: 0 !important;
    background: transparent;
    border-bottom: none !important;
    position: relative;
}

/* Botón info — imagen 38×15 escalada ×2, centrado verticalmente en el header */

body.mode-portrait #shop-info-btn {
    position: absolute;
    right: -10px;
    width: 76px;
    top: 0;
    height: 28px;
    background: url('pixelart_design/info.png') center/contain no-repeat;
    image-rendering: pixelated;
    border: none;
    box-shadow: none;
    background-color: transparent;
    cursor: var(--cur-finger);
    padding: 0;
    z-index: 2;
}

body.mode-portrait #shop-info-btn:hover {
    opacity: 0.85;
}

body.mode-portrait #shop.is-info #shop-info-btn {
    opacity: 0.6;
}

/* ── Modo info: columna única, botones a ancho completo ── */

body.mode-portrait #shop.is-expanded.is-info #shop-scroll {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    align-items: stretch;
    gap: 6px;
    padding: 6px 8px 50px;
    touch-action: pan-y;
}

body.mode-portrait #shop.is-expanded.is-info .shop-btn-wrapper,
body.mode-portrait #shop.is-expanded.is-info #shop-scroll>.shop-btn,
body.mode-portrait #shop.is-expanded.is-info .shop-btn-row {
    flex: none;
    width: 100%;
    height: auto;
}

/* Botón: grid 2 columnas — icono | texto */

body.mode-portrait #shop.is-expanded.is-info .shop-btn {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: 74px 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas: "icon  title" "icon  desc" "level bottom";
    gap: 0;
    overflow: visible;
    padding: 6px 8px 6px 0;
    position: relative;
    min-height: 80px;
}

/* Icono: columna izquierda, centrado verticalmente */

body.mode-portrait #shop.is-expanded.is-info .shop-btn::before {
    grid-area: icon;
    grid-row: 1 / 3;
    position: absolute;
    top: 50%;
    left: 0;
    right: auto;
    transform: none;
    transform: translateY(-50%);
    width: 70px;
    height: 35px;
    background-size: 560px 132px;
    align-self: center;
    justify-self: center;
    flex-shrink: unset;
    margin: 0;
}

/* Título */

body.mode-portrait #shop.is-expanded.is-info .shop-btn .btn-title {
    grid-area: title;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    width: auto;
    height: auto;
    font-size: 8px !important;
    text-align: left;
    padding: 2px 0 0;
    display: block;
    overflow: visible;
    color: #7a3045;
    align-self: end;
}

/* Descripción via ::after en grid area "desc" */

body.mode-portrait #shop.is-expanded.is-info .shop-btn::after {
    content: attr(data-title);
    grid-area: desc;
    position: static;
    font-size: 6.5px;
    color: #7a3045;
    font-family: 'Press Start 2P', monospace;
    line-height: 1.6;
    padding: 3px 0 2px;
    text-align: left;
}

/* Fila inferior: upg-info a la izq, precio a la der */

body.mode-portrait #shop.is-expanded.is-info .shop-btn>.upg-info {
    grid-area: bottom;
    display: block !important;
    position: static;
    font-size: 5px;
    color: #5a3060;
    align-self: center;
    padding: 0;
}

body.mode-portrait #shop.is-expanded.is-info .shop-btn .btn-price {
    grid-area: bottom;
    position: static;
    bottom: auto;
    right: auto;
    left: auto;
    width: auto;
    height: auto;
    font-size: 9px !important;
    text-align: right;
    justify-self: end;
    align-self: end;
    padding: 0;
    color: #FFFFFF;
}

body.mode-portrait #shop.is-expanded.is-info .shop-btn.first-chicken {
    border-image: url('pixelart_design/shop_item_green.png') 16 fill / 24px / 0 stretch;
    background-color: #5dca93;
    /* tapa rayitas 9-slice (interior del sprite) */
    background-clip: padding-box;
}

body.mode-portrait #shop.is-expanded.is-info .shop-btn.first-chicken .btn-title,
body.mode-portrait #shop.is-expanded.is-info .shop-btn.first-chicken::after {
    color: #19633d;
}

/* lv-corner en info: columna izquierda fila 3 */

body.mode-portrait #shop.is-expanded.is-info .shop-btn>.lv-corner {
    display: block !important;
    grid-area: level;
    font-size: 8px !important;
    align-self: end;
    justify-self: center;
    color: white !important;
}

body.mode-portrait #shop-header h2 {
    display: block;
    color: #ffffff;
    font-size: 11px;
    /*text-shadow: none;*/
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
    text-shadow: 0px 2px 0px rgb(0 0 0 / 65%);
}

body.mode-portrait #shop-header span {
    color: white;
    font-size: 7px;
    text-shadow: 0px 2px 0px rgb(0 0 0 / 65%);
    margin: 0 4px;
}

body.mode-portrait #mute-btn,
body.mode-portrait #toggle-info-btn {
    width: 20px !important;
    height: 20px !important;
    font-size: 10px !important;
    border-width: 1px !important;
    opacity: 0.9;
}

/* Botones cuadrados en portrait */

body.mode-portrait .shop-btn-wrapper {
    flex: 0 0 95px;
    width: 95px;
    height: 95px;
}

body.mode-portrait .shop-btn-row {
    flex-direction: row;
    gap: 6px;
    margin-bottom: 0;
    height: 108px;
    flex-shrink: 0;
    width: auto;
    flex: none;
}

body.mode-portrait .shop-btn-row .free-ad-btn {
    flex: 0 0 95px;
    width: 95px;
    height: 108px;
}

body.mode-portrait .shop-btn-row .shop-btn {
    flex: 0 0 95px;
    width: 95px;
    height: 108px;
}

body.mode-portrait #shop-scroll>.shop-btn {
    flex: 0 0 95px;
    width: 95px;
    height: 108px;
}

body.mode-portrait #shop.is-expanded .shop-btn-wrapper {
    flex: 0 0 95px;
    width: 95px;
    height: 108px;
    max-width: 95px;
}

body.mode-portrait #shop.is-expanded #shop-scroll>.shop-btn {
    flex: 0 0 95px;
    width: 95px;
    height: 108px;
}

/* Botón verde para primera gallina */

body.mode-portrait .shop-btn.first-chicken {
    border-image: url('pixelart_design/shop_item_green.png') 5 fill / 7px / 0 stretch;
    background-color: #5dca93;
    /* tapa rayitas 9-slice (interior del sprite) */
    background-clip: padding-box;
}

body.mode-portrait .shop-btn.first-chicken::before {
    background-image: url('pixelart_design/shop_icons_green.png');
}

body.mode-portrait .shop-btn.first-chicken .btn-title {
    color: #19633d;
}

/* Botón free-ad-mode: sprites verdes */

body.mode-portrait .shop-btn.free-ad-mode {
    border-image: url('pixelart_design/shop_item_green_nodesc.png') 16 fill / 24px / 0 stretch;
    background-color: #5dca93;
    /* tapa rayitas 9-slice (interior del sprite) */
    background-clip: padding-box;
}

body.mode-portrait #shop.is-expanded.is-info .shop-btn.free-ad-mode {
    border-image: url('pixelart_design/shop_item_green.png') 16 fill / 24px / 0 stretch;
    background-color: #5dca93;
    /* tapa rayitas 9-slice (interior del sprite) */
    background-clip: padding-box;
}

body.mode-portrait .shop-btn.free-ad-mode::before {
    background-image: url('pixelart_design/shop_icons_green.png');
}

body.mode-portrait .shop-btn.free-ad-mode .btn-title,
body.mode-portrait #shop.is-expanded.is-info .shop-btn.free-ad-mode .btn-title,
body.mode-portrait #shop.is-expanded.is-info .shop-btn.free-ad-mode::after {
    color: #19633d;
}

/* Botón: 9-slice con shop_item.png (52×53, slice=5) */

body.mode-portrait .shop-btn {
    background: none;
    box-shadow: none;
    border: 5px solid transparent;
    border-image: url('pixelart_design/shop_item_nodesc.png') 16 fill / 24px / 0 stretch;
    background-color: #ed8099;
    /* tapa rayitas 9-slice (interior del sprite) */
    background-clip: padding-box;
    image-rendering: pixelated;
    padding: 0;
    display: block;
    color: #1a0820;
    text-shadow: none;
    border-radius: 0 !important;
    transition: filter 0.08s ease;
    position: relative;
    overflow: hidden;
}

body.mode-portrait #shop.is-expanded.is-info .shop-btn {
    border-image: url('pixelart_design/shop_item.png') 16 fill / 24px / 0 stretch;
    background-color: #ed8099;
    /* tapa rayitas 9-slice (interior del sprite) */
    background-clip: padding-box;
}

body.mode-portrait #shop.is-expanded.is-info #buy-retire {
    border-image: url('pixelart_design/shop_item_gold.png') 16 fill / 24px / 0 stretch;
    background-color: #ffb72b;
    /* tapa rayitas 9-slice (interior del sprite) */
    background-clip: padding-box;
}

body.mode-portrait .shop-btn:hover:not(:disabled) {
    filter: none;
    background: none !important;
    transform: none;
    box-shadow: none !important;
}

body.mode-portrait .shop-btn:active {
    filter: none;
    transform: translateY(1px);
}

body.mode-portrait .shop-btn:disabled {
    opacity: 1;
    filter: hue-rotate(300deg) saturate(0.5) brightness(0.8) contrast(0.8);
}

/* ── Precio con descuento: ocultar tachado, animación intermitente ── */

@keyframes cost-discount-pulse {
    0%,
    100% {
        color: #ffffff;
    }
    50% {
        color: #ff65a5;
    }
}

body.mode-portrait [id^="cost-"]>span {
    display: none;
}

body.mode-portrait [id^="cost-"]>br {
    display: none;
}

body.mode-portrait .has-discount {
    animation: cost-discount-pulse 1.4s ease-in-out infinite;
    text-shadow: 0px 0px 8px #ff4d9c;
}

/* ── Boosts activos: franja horizontal sobre el carrusel ── */

body.mode-portrait #eb-active {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 2px 11px;
    height: 28px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    flex-shrink: 0;
}

body.mode-portrait #eb-active::-webkit-scrollbar {
    display: none;
}

body.mode-portrait .eb-pill {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    padding: 1px 5px;
    height: 16px;
    border: 3px solid transparent;
    border-image: url('pixelart_design/btn_3.png') 5 fill / 7px / 2 stretch;
    background-color: #4d9be6;
    /* tapa rayitas 9-slice (interior del sprite) */
    background-clip: padding-box;
    image-rendering: pixelated;
    white-space: nowrap;
    flex-shrink: 0;
}

body.mode-portrait .eb-pill-name {
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    color: #ffffff;
}

body.mode-portrait .eb-pill-time {
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    color: #f1c40f;
}

/* Retire: conservar estilo naranja */

body.mode-portrait #buy-retire {
    border: 5px solid transparent;
    border-image: url('pixelart_design/shop_item_gold_nodesc.png') 16 fill / 24px / 0 stretch;
    /* El `background: none !important` resetea color Y clip: el fix va DESPUES y con !important. */
    background: none !important;
    background-color: #ffb72b !important;
    /* tapa rayitas 9-slice (interior del sprite) */
    background-clip: padding-box !important;
    box-shadow: none !important;
    color: #19633d;
}

body.mode-portrait #buy-retire::before {
    width: 88px !important;
    height: 34px !important;
    background-size: 565px 132px !important;
}

body.mode-portrait #shop.is-info #buy-retire .btn-title {
    padding-left: 12px;
}

/* Título: zona central */

body.mode-portrait .shop-btn .btn-title {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    height: 33px;
    grid-area: unset;
    font-size: 6.5px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
    overflow: hidden;
}

/* Nivel: franja oscura, encima del precio */

body.mode-portrait .shop-btn>.lv-corner {
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 5px;
    color: white;
}

body.mode-portrait .shop-btn>.lv-corner:empty {
    display: none;
}

/* Precio: zona inferior */

body.mode-portrait .shop-btn .btn-price {
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 22px;
    grid-area: unset;
    margin-top: 0;
    color: white;
    font-size: 7px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 17px;
    padding-top: 2px !important;
    font-size: 9px !important;
}

body.mode-portrait .shop-btn:has(>.lv-corner:empty) .btn-price {
    bottom: 0;
    height: 46px;
}

/* Ocultar indicadores de nivel y upg-info en portrait */

body.mode-portrait .shop-btn>.upg-info {
    display: none !important;
}

/* Ocultar los spans .shop-icon del injection JS anterior (ya no se usan) */

body.mode-portrait .shop-icon {
    display: none !important;
}

/* ── Icono via ::before — inmune a innerHTML regeneration ──
   Sprite escalado a 560×132 px, 7 cols × 4 filas → frame 80×33 px. */

/* Icono: zona superior, posición absoluta independiente */

body.mode-portrait .shop-btn::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 54%;
    transform: translateX(-50%);
    width: 80px;
    height: 33px;
    background-image: url('pixelart_design/shop_icons.png');
    background-size: 560px 132px;
    background-position: var(--si, -999px 0);
    background-repeat: no-repeat;
    image-rendering: pixelated;
}

/* Mapeado de iconos — offsets en sprite ×2 (col×92, fila×38), -16px en X */

/* Mapeado — background-size:560×132, frame 80×33, col×80, fila×33 */

/* Fila 0 */

body.mode-portrait #buy-chicken {
    --si: -4px 0px;
}

body.mode-portrait #buy-rooster {
    --si: -84px 0px;
}

body.mode-portrait #buy-growth {
    --si: -164px 0px;
}

body.mode-portrait #buy-petting {
    --si: -244px 0px;
}

body.mode-portrait #buy-diet {
    --si: -324px 0px;
}

body.mode-portrait #buy-batch {
    --si: -404px 0px;
}

body.mode-portrait #buy-music {
    --si: -484px 0px;
}

/* Fila 1 */

body.mode-portrait #buy-maxfood {
    --si: -4px -32px;
}

body.mode-portrait #buy-maxwater {
    --si: -84px -32px;
}

body.mode-portrait #buy-refill {
    --si: -164px -32px;
}

body.mode-portrait #buy-autofood {
    --si: -244px -32px;
}

body.mode-portrait #buy-autowater {
    --si: -324px -32px;
}

body.mode-portrait #buy-basevalue {
    --si: -404px -32px;
}

body.mode-portrait #buy-premium {
    --si: -484px -32px;
}

/* Fila 2 */

body.mode-portrait #buy-golden {
    --si: -4px -65px;
}

body.mode-portrait #buy-magnet {
    --si: -84px -65px;
}

body.mode-portrait #buy-autocollect {
    --si: -164px -65px;
}

body.mode-portrait #buy-autosell {
    --si: -244px -65px;
}

body.mode-portrait #buy-washer {
    --si: -324px -65px;
}

body.mode-portrait #buy-stamper {
    --si: -404px -65px;
}

body.mode-portrait #buy-packager {
    --si: -484px -65px;
}

/* Fila 3 */

body.mode-portrait #buy-ribbon {
    --si: -4px -98px;
}

body.mode-portrait #buy-tvAd {
    --si: -84px -98px;
}

body.mode-portrait #buy-megachicken {
    --si: -164px -98px;
}

body.mode-portrait #buy-gallinapro {
    --si: -244px -98px;
}

body.mode-portrait #buy-chickengold {
    --si: -324px -98px;
}

body.mode-portrait #buy-chickengreen {
    --si: -404px -98px;
}

body.mode-portrait #buy-retire {
    --si: -484px -98px;
}

/* Sin icono propio — reutilizan el más cercano */

body.mode-portrait #buy-autofood-amt {
    --si: -244px -32px;
}

body.mode-portrait #buy-autowater-amt {
    --si: -324px -32px;
}

body.mode-portrait #buy-sorter {
    --si: -164px -65px;
}

body.mode-portrait #buy-sortbonus {
    --si: -404px -32px;
}

body.mode-portrait #buy-box {
    --si: -484px -65px;
}

/* ── #eb-offer como banner horizontal en la parte superior del canvas ── */

body.mode-portrait #eb-offer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 55px;
    box-sizing: border-box;
    display: none;
    grid-template-columns: auto 1fr auto auto;
    grid-template-rows: 1fr 1fr;
    grid-template-areas: "gift title reject accept" "gift dur reject accept";
    align-items: center;
    gap: 1px 8px;
    padding: 5px 14px;
    background: #fdcbb0;
    border-bottom: 2px solid #6c3483;
    z-index: 60;
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    color: #e0c0ff;
    pointer-events: auto;
}

body.mode-portrait #eb-offer #eb-gift {
    grid-area: gift;
    grid-row: 1 / 3;
    align-self: center;
    width: 36px;
    height: 37px;
    background: url('pixelart_design/gift_icon.png') no-repeat center / contain;
    image-rendering: pixelated;
    display: block;
    flex-shrink: 0;
}

body.mode-portrait #eb-offer #eb-title {
    grid-area: title;
    color: #6b3e75;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px !important;
}

body.mode-portrait #eb-offer #eb-dur {
    grid-area: dur;
    color: white;
    white-space: nowrap;
    align-self: start;
    font-size: 9px !important;
    display: inline-block;
    border: 5px solid transparent;
    border-image: url('pixelart_design/panel_brown_small.png') 5 fill / 5px / 0 stretch;
    background-color: #cd683d;
    /* tapa rayitas 9-slice (interior del sprite) */
    background-clip: padding-box;
    padding: 1px 4px;
    width: fit-content;
}

body.mode-portrait #eb-offer #eb-reject {
    grid-area: reject;
    grid-row: 1 / 3;
    align-self: stretch;
    border: 5px solid transparent;
    border-image: url('pixelart_design/panel_brown_small.png') 5 fill / 5px / 0 stretch;
    background-color: #cd683d;
    /* tapa rayitas 9-slice (interior del sprite) */
    background-clip: padding-box;
    padding: 4px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

body.mode-portrait #eb-offer #eb-reject::before {
    content: '';
    width: 15px;
    height: 15px;
    background: url('pixelart_design/cancel.png') no-repeat center / contain;
    image-rendering: pixelated;
    display: block;
    flex-shrink: 0;
}

body.mode-portrait #eb-offer #eb-reject #eb-reject-label {
    display: none;
}

body.mode-portrait #eb-offer #eb-reject #eb-cd {
    color: white;
    font-size: 8px !important;
    opacity: 1 !important;
    white-space: nowrap;
    margin-bottom: -4px !important;
    color: #ffffffba;
}

body.mode-portrait #eb-offer #eb-accept {
    grid-area: accept;
    grid-row: 1 / 3;
    align-self: stretch;
    border: 5px solid transparent;
    border-image: url('pixelart_design/panel_green_small.png') 5 fill / 5px / 0 stretch;
    /* El `background: none` resetea color Y clip: el fix va DESPUES. */
    background: none;
    background-color: #54d183;
    /* tapa rayitas 9-slice (interior del sprite) */
    background-clip: padding-box;
    padding: 2px 6px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    text-align: center;
}

body.mode-portrait #eb-offer #eb-accept #eb-accept-label {
    display: none;
}

body.mode-portrait #eb-offer #eb-accept::before {
    content: '';
    width: 32px;
    height: 32px;
    background: url('pixelart_design/watchad.png') no-repeat center / contain;
    image-rendering: pixelated;
    display: block;
    flex-shrink: 0;
}

/* ── Cinematic layout ────────────────────────────────────────────────────────
   Bars and fade overlay live inside #game-viewport as position:absolute so
   they are anchored to the viewport edges regardless of content Y shift.
   Content Y shift is applied to #cine-frame (the inner content wrapper).
   ─────────────────────────────────────────────────────────────────────────── */

/* Portrait cinematic: game-viewport becomes a positioning context for bars/fade;
   cine-frame becomes a flex column that can be shifted independently */

body.mode-portrait.is-cinematic #game-viewport {
    position: relative;
}

body.mode-portrait.is-cinematic #cine-frame {
    display: flex;
    flex-direction: column;
    flex: 1;
    /*min-height: 1100px;*/
    overflow: hidden;
    transform: translateY(var(--cine-content-y, 0%));
}

/* Background behind the shifted frame stays black */

body.mode-portrait.is-cinematic #farm-area,
body.mode-desktop.is-cinematic #farm-area {
    background: #000;
}

body.mode-portrait.is-cinematic .earth-extension {
    margin-bottom: 0;
}

body.mode-portrait #ranking-overlay>div {
    border-width: 0 !important;
    padding: 15px 5px;
}

body.mode-portrait #ranking-panel-title {
    top: 12px !important;
    overflow: hidden !important;
}

body.mode-portrait #ranking-panel-title span,
body.mode-portrait #pause-panel-title span {
    font-size: clamp(9px, 3.8vw, 20px) !important;
    white-space: nowrap !important;
}

body.mode-portrait #ranking-list {
    font-size: clamp(5px, 1.3vh, 15px) !important;
}

body.mode-portrait #ranking-overlay #ranking-list {
    margin-top: 0 !important;
}

body.mode-portrait #ranking-status {
    margin-top: 3px !important;
}

/* ── Portrait: blur de fondo cuando se abre Ajustes / Logros / Ranking ── */

/* intro-pan-wrapper aplica blur vía .is-blurred (style.css).
   Los elementos movidos por portrait.js al overlay son siblings suyos,
   por lo que no quedan dentro del blur del wrapper. Se corrige aquí. */

body.mode-portrait #mm-prado-crates-row,
body.mode-portrait #mm-portrait-footer-bg,
body.mode-portrait #mm-bottom-bar {
    transition: filter 0.25s ease;
}

/* #mm-jugar-btn ya no es sibling del wrapper — vive dentro del canvas y se blurrea con él */

body.mode-portrait #intro-pan-wrapper.is-blurred~#mm-prado-crates-row,
body.mode-portrait #intro-pan-wrapper.is-blurred~#mm-portrait-footer-bg,
body.mode-portrait #intro-pan-wrapper.is-blurred~#mm-bottom-bar {
    filter: blur(6px);
    transition: filter 0.25s ease;
}