/* ============================================
   SIMON SAYS — Stylesheet
   ============================================ */

body.simon-page {
    background: linear-gradient(135deg, #0f172a 0%, #111827 45%, #1f2937 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    user-select: none;
}

#simon-hud {
    width: 100%; max-width: 900px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 24px; margin-top: 8px;
    background: rgba(0,0,0,0.32);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.simon-hud-left, .simon-hud-right { display: flex; align-items: center; gap: 8px; }
.simon-title { font-size: 1.2rem; font-weight: 700; color: #22c55e; }
.simon-score-display { font-size: 1.1rem; font-weight: 700; color: #fbbf24; background: rgba(255,255,255,0.12); padding: 4px 16px; border-radius: 20px; }

#simon-game-area { width: 100%; max-width: 900px; margin-top: 16px; display: flex; justify-content: center; }
.simon-panel { width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; padding: 24px; box-shadow: 0 18px 40px rgba(0,0,0,0.25); }

.simon-status-card { text-align: center; margin-bottom: 18px; }
.simon-status-text { color: #e2e8f0; font-size: 1rem; margin-bottom: 6px; min-height: 1.4em; }
.simon-round { color: rgba(248,250,252,0.7); font-weight: 700; font-size: 0.95rem; }

/* ===== Simon Board ===== */
.simon-board {
    position: relative;
    width: min(420px, 100%);
    margin: 0 auto 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    padding: 14px;
    border-radius: 28px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.1);
}

.simon-pad {
    border: none;
    border-radius: 22px;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    position: relative;
    opacity: 0.72;
    transition: transform 0.12s ease, opacity 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
    box-shadow: inset 0 -6px 0 rgba(0,0,0,0.25);
}
.simon-pad:active { transform: scale(0.96); }
.simon-green { background: radial-gradient(circle at 30% 30%, #4ade80, #16a34a 70%); }
.simon-red   { background: radial-gradient(circle at 30% 30%, #f87171, #dc2626 70%); }
.simon-yellow{ background: radial-gradient(circle at 30% 30%, #fde047, #eab308 70%); }
.simon-blue  { background: radial-gradient(circle at 30% 30%, #60a5fa, #2563eb 70%); }

.simon-pad.simon-active {
    opacity: 1;
    filter: brightness(1.35);
    transform: scale(1.05);
    box-shadow: 0 0 34px rgba(255,255,255,0.55);
}
.simon-pad.simon-dim { opacity: 0.5; }

/* Center start button */
.simon-start-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 26px;
    border-radius: 100px;
    box-shadow: 0 8px 24px rgba(46,204,113,0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 5;
}
.simon-start-btn:hover { transform: translate(-50%, -50%) scale(1.06); }
.simon-start-btn:disabled { opacity: 0.55; cursor: default; transform: translate(-50%, -50%); }

.simon-stats-bar { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.simon-stat { background: rgba(255,255,255,0.05); padding: 16px 14px; border-radius: 16px; text-align: center; }
.simon-stat-label { display: block; color: rgba(255,255,255,0.65); font-size: 0.75rem; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.simon-stat span:last-child { color: #f8fafc; font-size: 1.05rem; font-weight: 700; }

@media (max-width: 700px) {
    #simon-hud { padding: 10px 16px; flex-wrap: wrap; gap: 8px; justify-content: center; }
    .simon-pad { border-radius: 18px; }
}
