/* Tower Rush Pakistan — Sky Stack · game-only styles
   (game-page · stage · HUD · action button · controls) */

.game-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.game-section {
    flex: 1;
    padding: 24px 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.game-shell {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* HUD */
.hud-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.hud-chip {
    background: var(--teal-deep);
    border: 3px solid var(--ink);
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: 0 4px 0 var(--ink);
}
.hud-chip .label {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--sand-light);
    opacity: 0.85;
}
.hud-chip .value {
    font-family: 'Lilita One', cursive;
    font-size: 22px;
    color: var(--sand);
    letter-spacing: 0.5px;
    line-height: 1.1;
    margin-top: 2px;
}

/* Stage */
.stage-wrap {
    position: relative;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(244,221,160,0.55) 0%, transparent 55%),
        linear-gradient(180deg, #1F8AAC 0%, #0E5C70 55%, #052230 100%);
    border: 5px solid var(--ink);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 5/7;
    max-height: 62vh;
    overflow: hidden;
    user-select: none;
    touch-action: manipulation;
    cursor: pointer;
}
.stage-canvas {
    width: 100%;
    height: 100%;
    display: block;
}
.stage-tag {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--coral);
    color: var(--cream);
    border: 3px solid var(--ink);
    border-radius: 999px;
    padding: 6px 14px;
    font-family: 'Lilita One', cursive;
    font-size: 13px;
    letter-spacing: 1px;
    box-shadow: 0 3px 0 var(--ink);
}
.stage-best {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--sand);
    color: var(--ink);
    border: 3px solid var(--ink);
    border-radius: 12px;
    padding: 6px 12px;
    font-family: 'Lilita One', cursive;
    font-size: 14px;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 0 var(--ink);
}
.stage-status {
    position: absolute;
    bottom: 14px; left: 50%;
    transform: translateX(-50%);
    background: rgba(7, 56, 71, 0.92);
    color: var(--sand);
    border: 3px solid var(--ink);
    border-radius: 999px;
    padding: 8px 18px;
    font-family: 'Lilita One', cursive;
    font-size: 14px;
    letter-spacing: 1px;
    box-shadow: 0 3px 0 var(--ink);
    white-space: nowrap;
    max-width: 92%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stage-status.good { background: var(--green); color: var(--cream); }
.stage-status.perfect { background: var(--coral); color: var(--cream); animation: pulseStatus 0.6s ease-in-out 3; }
.stage-status.over { background: var(--coral-deep); color: var(--cream); }
@keyframes pulseStatus {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.06); }
}

/* Controls */
.controls-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.action-btn {
    width: 100%;
    background: var(--sand);
    color: var(--ink);
    border: 5px solid var(--ink);
    border-radius: 18px;
    padding: 18px 24px;
    font-family: 'Lilita One', cursive;
    font-size: 28px;
    letter-spacing: 3px;
    cursor: pointer;
    box-shadow: 0 8px 0 var(--ink);
    transition: transform 0.12s, box-shadow 0.12s;
}
.action-btn:hover { transform: translateY(2px); box-shadow: 0 6px 0 var(--ink); }
.action-btn:active { transform: translateY(6px); box-shadow: 0 2px 0 var(--ink); }
.action-btn.drop { background: var(--coral); color: var(--cream); }
.action-btn.play { background: var(--green-light); color: var(--cream); }

.controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.mini-btn {
    background: var(--teal-deep);
    color: var(--sand);
    border: 3px solid var(--ink);
    border-radius: 12px;
    padding: 10px 14px;
    font-family: 'Lilita One', cursive;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 0 var(--ink);
    text-align: center;
    text-decoration: none;
    display: block;
    transition: transform 0.12s;
}
.mini-btn:hover { transform: translateY(1px); }
.mini-btn.reset { color: var(--coral); }

.tip-strip {
    text-align: center;
    color: var(--sand-light);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-top: 4px;
}

/* --- Responsive --- */
@media (max-width: 576px) {
    .action-btn { font-size: 22px; padding: 16px 18px; letter-spacing: 2px; }
    .game-section { padding: 16px 0 28px; }
    .stage-wrap { max-height: 58vh; }
    .hud-chip .value { font-size: 18px; }
    .hud-chip .label { font-size: 10px; }
    .stage-tag, .stage-best { font-size: 11px; padding: 4px 10px; }
    .stage-status { font-size: 12px; padding: 6px 14px; }
}
