/* Sky Hopper — Styles */
/* Placeholder until actual game art is created */

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #87CEEB; /* Sky blue placeholder */
    touch-action: none; /* Prevent zoom/scroll on iPad */
    font-family: Arial, Helvetica, sans-serif;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* HUD keeps three reserved zones on iPad/desktop and a second distance row on phones. */
.hud {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(64px, 1fr);
    align-items: start;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
    font-weight: bold;
}
.hud-stack { grid-column: 1; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
#coinsHud { color: #FFD700; font-size: 20px; }
#totalCoinsHud { color: white; font-size: 14px; overflow-wrap: anywhere; }
#livesHud { color: #d93672; font-size: 22px; text-shadow: 0 1px 2px white; }
#distanceHud { grid-column: 2; color: white; font-size: 16px; text-align: center; white-space: nowrap; margin-top: 4px; }
@media (max-width: 599px) {
    .hud { grid-template-columns: minmax(0, 1fr) 64px; }
    #distanceHud { grid-column: 1 / -1; grid-row: 2; margin-top: 6px; }
}

.pause-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    font-size: 24px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
}

.pause-btn:active {
    background: rgba(255, 255, 255, 1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.overlay-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    max-height: calc(100% - 24px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    text-align: center;
}

.overlay-content h1 {
    margin-bottom: 16px;
    color: #333;
}

.overlay-content p {
    margin-bottom: 12px;
    color: #555;
}

.overlay-content button {
    margin: 8px;
    padding: 12px 24px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    background: #4CAF50;
    color: white;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.overlay-content button:hover {
    background: #45a049;
}
