@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        font-size: 14px;
    }

    .topbar {
        display: block !important;
        height: auto !important;
        padding: 10px !important;
    }

    .profile {
        width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        margin-bottom: 10px !important;
    }

    .avatar {
        width: 52px !important;
        height: 52px !important;
        flex: 0 0 52px !important;
    }

    .resource-bar {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        margin: 10px 0 !important;
    }

    .resource-bar div {
        min-width: 0 !important;
        padding: 8px 4px !important;
        border: 1px solid rgba(125,239,255,.18) !important;
        border-radius: 10px !important;
        background: rgba(0,20,35,.75) !important;
        font-size: 13px !important;
    }

    .resource-bar small {
        font-size: 11px !important;
    }

    .top-actions {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
    }

    .top-actions a,
    .top-actions button,
    .icon-link {
        width: 44px !important;
        height: 44px !important;
        flex: 0 0 44px !important;
    }

    .top-actions > a:last-child {
        width: auto !important;
        flex: 1 !important;
        text-align: right !important;
        padding-top: 10px !important;
    }

    .hud {
        display: flex !important;
        flex-direction: column !important;
        padding: 10px !important;
        gap: 12px !important;
    }

    .center-stage {
        order: 1 !important;
    }

    .left-column {
        order: 2 !important;
    }

    .right-column {
        order: 3 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .panel {
        border-radius: 14px !important;
        padding: 14px !important;
        margin-bottom: 12px !important;
    }

    .city-header h1 {
        font-size: 25px !important;
    }

    .city-scene.ocean-scene {
        height: 360px !important;
        border-radius: 16px !important;
    }

    .scene-main-image {
        width: 250px !important;
        height: 170px !important;
        top: 36% !important;
    }

    .scene-main-image strong {
        margin-top: 95px !important;
        font-size: 12px !important;
    }

    .ocean-building {
        width: 105px !important;
        min-height: 48px !important;
        padding: 6px !important;
    }

    .ocean-building strong {
        font-size: 10px !important;
    }

    .ocean-building span,
    .ocean-building em {
        font-size: 9px !important;
    }

    .building-bubble {
        font-size: 17px !important;
        margin-bottom: 2px !important;
    }

    .scene-left { left: 4% !important; top: 46% !important; }
    .scene-bottom-left { left: 6% !important; top: 68% !important; }
    .scene-bottom { left: 50% !important; top: 76% !important; transform: translateX(-50%) !important; }
    .scene-right { left: 64% !important; top: 58% !important; }
    .scene-top-right { left: 62% !important; top: 20% !important; }
    .scene-far-right { left: 63% !important; top: 78% !important; }

    .tabs {
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        border-radius: 12px !important;
    }

    .tabs a {
        min-width: 120px !important;
        height: 44px !important;
        font-size: 12px !important;
    }

    .building-dock {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .building-tile {
        text-align: left !important;
        padding: 14px !important;
        min-height: auto !important;
    }

    input,
    select,
    textarea,
    button {
        width: 100% !important;
        font-size: 16px !important;
    }

    .notification-popups,
    .game-toast {
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: none !important;
    }

    .sound-toggle {
        right: 12px !important;
        bottom: 12px !important;
    }
}