/* Tower Rush Pakistan — game page unique styles */

.game-page { min-height: 100vh; display: flex; flex-direction: column; }
.game-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 24px 15px 30px;
    position: relative;
}

.stats-bar {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 440px;
    justify-content: space-between;
    align-items: center;
}
.stat-card {
    flex: 1;
    background: var(--white);
    border: 3px solid var(--ink);
    border-radius: 14px;
    padding: 10px 12px;
    text-align: center;
    box-shadow: 0 4px 0 var(--ink);
}
.stat-label {
    font-family: 'Lilita One', cursive;
    font-size: 12px;
    color: var(--orange-deep);
    letter-spacing: 1px;
}
.stat-value {
    font-family: 'Lilita One', cursive;
    font-size: 30px;
    color: var(--navy);
    line-height: 1.05;
    margin-top: 2px;
    -webkit-text-stroke: 1px var(--ink);
}

.canvas-frame {
    position: relative;
    border: 5px solid var(--ink);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 0 var(--ink), 0 18px 40px rgba(0,0,0,0.35);
    background: linear-gradient(180deg, #FFE066 0%, #FFAB47 60%, #FF8A1E 100%);
    width: 100%;
    max-width: 440px;
    aspect-ratio: 9 / 14;
}
#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    touch-action: manipulation;
}

.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(27,42,78,0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 30px;
    text-align: center;
    z-index: 10;
    backdrop-filter: blur(4px);
}
.overlay.hidden { display: none; }
.overlay h2 {
    font-family: 'Lilita One', cursive;
    font-size: 40px;
    color: var(--yellow);
    line-height: 1.05;
    -webkit-text-stroke: 1.5px var(--ink);
    text-shadow: 0 4px 0 var(--ink);
}
.overlay p {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--white);
    max-width: 280px;
}
.overlay .big-score {
    font-family: 'Lilita One', cursive;
    font-size: 72px;
    color: var(--yellow);
    line-height: 1;
    -webkit-text-stroke: 2px var(--ink);
    text-shadow: 0 5px 0 var(--ink);
}
.overlay .score-label {
    font-family: 'Lilita One', cursive;
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--orange-light);
}

.controls-row {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 440px;
    justify-content: center;
}

.hint {
    font-size: 13px;
    font-weight: 600;
    background: var(--white);
    color: var(--navy);
    padding: 10px 18px;
    border: 3px solid var(--ink);
    border-radius: 14px;
    box-shadow: 0 4px 0 var(--ink);
    text-align: center;
    max-width: 400px;
}

.perfect-flash {
    position: absolute;
    top: 28%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Lilita One', cursive;
    font-size: 44px;
    color: var(--yellow);
    -webkit-text-stroke: 2px var(--ink);
    text-shadow: 0 5px 0 var(--ink), 0 0 30px rgba(255,204,46,0.8);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s, transform 0.6s;
    z-index: 5;
}
.perfect-flash.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-30px);
}

@media (max-width: 576px) {
    .stats-bar { gap: 8px; }
    .stat-card { padding: 8px 8px; }
    .stat-value { font-size: 24px; }
    .overlay h2 { font-size: 32px; }
    .overlay .big-score { font-size: 56px; }
}
