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

body {
  font-family: 'Comic Sans MS', 'Trebuchet MS', 'Segoe UI', sans-serif;
  color: #1a202c;
  min-height: 100vh;
  background: linear-gradient(160deg, #a8d8ea 0%, #c9b8f0 45%, #ffb6c1 100%);
  padding: 32px;
}

#dashboard-header { text-align: center; margin-bottom: 32px; }
#dashboard-header h1 {
  font-size: 34px;
  color: #2b6cb0;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.6);
}
#dashboard-header p { font-size: 16px; color: #2d3748; margin-top: 6px; }

#game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 22px;
  max-width: 960px;
  margin: 0 auto;
}

.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 28px 18px;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.15), 0 10px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.game-card-active {
  background: linear-gradient(145deg, #ffffff, #eaf6ff);
  cursor: pointer;
}
.game-card-active:hover { transform: translateY(-4px) scale(1.03); }
.game-card-active:active {
  transform: translateY(2px) scale(0.99);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.12);
}

.game-card-icon { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; }
.game-card-icon svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.2)); }

.game-card-title { font-size: 17px; font-weight: bold; color: #2b6cb0; }
.game-card-desc { font-size: 13px; color: #4a5568; }

.game-card-locked {
  background: rgba(255, 255, 255, 0.45);
  cursor: not-allowed;
  filter: grayscale(0.6);
  opacity: 0.75;
}
.game-card-locked .game-card-icon { font-size: 40px; }
.game-card-locked .game-card-title { color: #4a5568; }

#dashboard-footer { text-align: center; margin-top: 20px; }
#dashboard-footer a { font-size: 12px; color: #4a5568; text-decoration: underline; }
#dashboard-footer a:hover { color: #2d3748; }

/* Static ad slot — never fixed/sticky, sits after the page content so it can
   never overlap or block anything the child is interacting with. */
.ad-slot {
  max-width: 728px;
  min-height: 90px;
  margin: 36px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.35);
  border: 2px dashed rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  color: rgba(45, 55, 72, 0.55);
  font-size: 13px;
  font-weight: bold;
}
