/* ── Reset & Base ── */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ── Zoom Controls (fixed top bar) ── */
.zoom-controls {
    position: fixed;
    top: 8px;
    right: 12px;
    z-index: 999;
    display: flex;
    gap: 6px;
}

.zoom-controls button {
    background: #1f4b6e;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.zoom-controls button:active {
    transform: scale(0.95);
}

/* ── Main Container ── */
.container {
    width: 95vw;
    max-width: 520px;
    margin: 50px auto 20px auto;   /* top margin leaves room for zoom bar */
    background: #ffffff;
    padding: 12px;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    transform-origin: top center;
    transition: transform 0.2s ease;
}

/* ── STOP Button ── */
.stop-btn {
    background: #1f4b6e;
    color: #ffffff;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 10px;
    user-select: none;
}

.stop-btn:active {
    transform: scale(0.95);
}

/* ── Grid ── */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

/* ── Buttons ── */
button {
    border: none;
    border-radius: 6px;
    padding: 8px 4px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

button:active {
    transform: scale(0.95);
}

/* ── Colors ── */
.green  { background: #28a745; }
.yellow { background: #ffe600; }
.orange { background: #ff8c00; }
.blue   { background: #2ecbff; }
.red    { background: #e53935; color: #ffffff; }

/* ── Responsive: small phones ── */
@media (max-width: 400px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
    button {
        font-size: 10px;
        padding: 6px 2px;
    }
}
