:root {
    --bg: #0b0e14;
    --panel: #161b22;
    --neon-blue: #2563eb;
    --accent: #fbbf24;
    --danger: #ef4444;
    --text: #e6edf3;
}

body {
    background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif;
    margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center;
    overflow: hidden; touch-action: none;
}

.arcade-container {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    width: 100%; max-width: 400px; padding: 10px;
    border: 1px solid var(--neon-blue); border-radius: 12px;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.2);
}
.header { display: flex; justify-content: space-between; width: 100%; align-items: center; }
h1 { font-size: 1.2rem; color: var(--accent); text-shadow: 0 0 10px rgba(251, 191, 36, 0.4); }

.score-board { background: var(--panel); padding: 6px; border-radius: 8px; border: 1px solid #30363d; font-size: 0.75rem; color: var(--accent); min-width: 90px; text-align: center; }

.game-area { position: relative; border: 1px solid var(--neon-blue); border-radius: 12px; box-shadow: 0 0 20px rgba(37, 99, 235, 0.3); background: #000; }
#gameCanvas { display: block; background: #000; border-radius: 8px; }

.overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.9); display: flex; align-items: center; justify-content: center; z-index: 10; border-radius: 8px; text-align: center; }
.overlay.hidden { display: none; }

.action-buttons { display: flex; gap: 10px; width: 100%; }
.action-btn { flex: 1; border: none; padding: 10px; border-radius: 8px; font-weight: bold; cursor: pointer; font-family: inherit; }
.action-btn.pause { background: var(--accent); }
.action-btn.stop { background: var(--danger); color: white; }

.controls-mobile { display: none; flex-direction: column; gap: 8px; width: 100%; margin-top: 5px; }
.ctrl-row { display: flex; gap: 8px; width: 100%; }
.ctrl-btn { flex: 1; height: 55px; background: var(--panel); border: 1px solid #30363d; border-radius: 12px; color: white; font-size: 1.2rem; cursor: pointer; }
.ctrl-btn.long {
    height: 55px !important;      /* Gerokai padidinam, kad matytųsi skirtumas */
    min-height: 55px !important;  /* Neleidžiam naršyklei jo suspausti */
    flex: none !important;         /* Atjungiam automatinį dydžio skaičiavimą */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem !important;
    background: var(--accent) !important; /* Galime uždėti ryškesnę spalvą, kad matytum, ar pasikeitė */
    color: #000 !important;
}

.btn { background: var(--accent); border: none; padding: 15px 40px; font-weight: bold; border-radius: 30px; cursor: pointer; font-family: inherit; }

@media (max-width: 768px), (pointer: coarse) {
    .controls-mobile { display: flex; }
    footer { display: none; }
	
	body {
        /* Pakeičiam center į flex-start, kad viskas kiltų į viršų */
        justify-content: flex-start !important;
        align-items: flex-start !important;
        padding-top: 5px; /* Minimalus tarpelis nuo paties viršaus */
    }
    
    .arcade-container {
        transform: scale(0.85); /* 0.8 gali būti per mažai, pabandyk 0.85 */
        transform-origin: top center; /* Svarbiausias pakeitimas! */
        margin-top: -1px;           /* Pakelia žaidimą arčiau viršaus */
        margin-bottom: -120px;       /* Labai svarbu: pritraukia apatinius mygtukus */
    }
}
