* { margin: 0; padding: 0; box-sizing: border-box; }

img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

html, body {
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.app {
    width: 390px;
    height: 740px; /* overridden by JS to match viewport */
    flex-shrink: 0;
    background: var(--bg-image) center / 100% 100% no-repeat;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 16px 28px 0 28px;
    transform-origin: center center;
    opacity: 1;
}

.bg-frame-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 9999;
    pointer-events: none;
}

.bottom-nav {
    flex-shrink: 0;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 0 6px 0;
    margin: 0 -28px;
    position: relative;
    z-index: 10000;
}

.nav-btn {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.15s, filter 0.15s;
}

.nav-btn img {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}

.nav-btn:hover,
.nav-btn.hovered { transform: scale(1.12); }

.nav-btn:hover img,
.nav-btn.hovered img {
    filter: drop-shadow(0 0 10px rgba(212,168,75,0.7)) drop-shadow(0 0 4px rgba(255,220,80,0.4));
}

.nav-btn.active {
    transform: scale(1.15);
}

.nav-btn.active img {
    filter: drop-shadow(0 0 12px rgba(212,168,75,0.9)) drop-shadow(0 0 5px rgba(255,220,80,0.6));
}

.nav-btn:active,
.nav-btn.pressing {
    transform: scale(1.18);
    transition: transform 0.08s, filter 0.08s;
}

.nav-btn:active img,
.nav-btn.pressing img {
    filter: drop-shadow(0 0 14px rgba(212,168,75,1)) drop-shadow(0 0 6px rgba(255,220,80,0.7));
}

.imafia-btn {
    position: absolute;
    right: 8px;
    bottom: 14px;
    height: 52px;
    width: 52px;
    background: transparent;
    border: none;
    box-shadow: none;
}
