/* AI_TAG: FRONTEND_COMPONENT | Flappy Pigeon page styles */
/* Show games page when active and allow scrolling like other pages with header visible */
#page-games{ display:none; }
#page-games.active{ display:block; }
/* Ensure the games page can scroll vertically and accounts for the fixed header */
#page-games{ overflow:auto; min-height:calc(100dvh - 64px); padding-top:64px; }
@supports(height: 100svh){
  #page-games{ min-height:calc(100svh - 64px); }
}
/* SPA core sets main.page as a grid with place-items:center; override for natural flow */
#page-games.active{ display:block; }

.games-hero{ position:relative; min-height:calc(100vh - 64px); padding:24px; box-sizing:border-box; }
.games-hero-bg{ position:absolute; inset:0; background:radial-gradient(1200px 600px at 20% -10%, rgba(118,190,255,0.15), transparent), radial-gradient(1000px 800px at 80% 110%, rgba(77,163,255,0.10), transparent), linear-gradient(180deg, #0b1016, #141e2a); pointer-events:none; }

.games-card{ position:relative; max-width:980px; margin:0 auto; z-index:1; background:linear-gradient(135deg, rgba(17,26,38,.85), rgba(20,30,42,.85)); border:1px solid rgba(118,190,255,0.25); border-radius:16px; box-shadow:0 12px 40px rgba(0,0,0,0.45), 0 0 40px rgba(77,163,255,0.25) inset; overflow:hidden; }
.games-header{ display:flex; align-items:center; justify-content:space-between; padding:14px 18px; border-bottom:1px solid rgba(118,190,255,0.18); background:linear-gradient(180deg, rgba(118,190,255,0.08), rgba(0,0,0,0)); gap:12px; flex-wrap:wrap; }
.games-title{ font-weight:800; letter-spacing:.5px; }
.games-score{ font-weight:700; color:#e8eff8; opacity:.9; }

.games-selector{ display:flex; gap:8px; flex-wrap:wrap; }
.games-selector button{ flex:0 0 auto; }
.games-selector button{ cursor:pointer; padding:8px 12px; border-radius:10px; border:1px solid rgba(118,190,255,0.25); background:linear-gradient(180deg, rgba(118,190,255,0.12), rgba(118,190,255,0.04)); color:#e6f3ff; font-weight:800; letter-spacing:.3px; }
.games-selector button.active{ border-color:rgba(118,190,255,0.45); background:linear-gradient(180deg, rgba(118,190,255,0.28), rgba(118,190,255,0.06)); }

.games-stage-wrap{ position:relative; padding:16px; display:flex; flex-direction:column; align-items:center; }
#flappyCanvas{ display:block; background:#0b1016; border-radius:12px; border:1px solid rgba(118,190,255,0.25); box-shadow:inset 0 2px 20px rgba(77,163,255,0.08), 0 12px 40px rgba(0,0,0,0.45); }

.flappy-overlay{ position:absolute; inset:16px; display:flex; align-items:center; justify-content:center; }
.flappy-overlay-card{ background:linear-gradient(135deg, rgba(17,26,38,.95), rgba(20,30,42,.95)); border:1px solid rgba(118,190,255,0.35); box-shadow:0 14px 50px rgba(0,0,0,0.5), 0 0 60px rgba(118,190,255,0.2); border-radius:14px; padding:22px 20px; text-align:center; max-width:320px; }
.flappy-overlay-title{ font-size:22px; font-weight:900; margin-bottom:6px; color:#eef5ff; text-shadow:0 2px 8px rgba(118,190,255,0.35); }
.flappy-overlay-sub{ font-size:13px; opacity:.8; margin-bottom:14px; }
.flappy-overlay .games-btn{ margin:0 6px; }

.games-footer{ padding:10px 16px 16px; font-size:12px; opacity:.8; }

.games-btn{ cursor:pointer; padding:8px 12px; border-radius:10px; border:1px solid rgba(118,190,255,0.25); background:linear-gradient(180deg, rgba(118,190,255,0.12), rgba(118,190,255,0.04)); color:#e6f3ff; font-weight:800; letter-spacing:.3px; transition:transform .08s ease, box-shadow .2s ease; }
.games-btn:hover{ transform:translateY(-1px); box-shadow:0 6px 18px rgba(77,163,255,0.25); }
.games-btn.pri{ border-color:rgba(118,190,255,0.45); background:linear-gradient(180deg, rgba(118,190,255,0.28), rgba(118,190,255,0.06)); }

/* Games Grid - responsive 2 to 3 columns (no horizontal scroll) */
/* AI_TAG: FRONTEND_RENDER | Games grid: 2 cols on mobile, 3 on larger */
.games-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
  width:100%;
  padding:16px 8px;
}
@media (min-width: 900px){
  .games-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.game-card{ display:block; position:relative; border:1px solid rgba(118,190,255,0.22); border-radius:12px; overflow:hidden; color:#e6f3ff; text-decoration:none; background:linear-gradient(180deg, rgba(118,190,255,0.05), rgba(118,190,255,0.02)); box-shadow:0 4px 18px rgba(0,0,0,0.35); transition:transform .1s ease, box-shadow .2s ease, border-color .2s ease; }
.game-card:hover{ transform:translateY(-2px); box-shadow:0 10px 30px rgba(0,0,0,0.45); border-color:rgba(118,190,255,0.45); }
.game-card img{ display:block; width:100%; height:120px; object-fit:cover; background:#0e1622; }
.game-meta{ display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 10px; }
.game-name{ font-weight:800; letter-spacing:.3px; }
.game-tag{ font-size:12px; opacity:.8; }
@media (max-width: 720px){
  #flappyCanvas{ width:100% !important; height:auto !important; }
  .games-grid{ padding:16px 4px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Keep the top bar visible on games page (match other pages) */
/* Previously we hid it; now we explicitly do not override top bar visibility here. */
