body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2vmin;
  overflow-y: auto;
}

.dash-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-mascot { width: clamp(64px, 14vmin, 120px); animation: bob 2.4s ease-in-out infinite; }
.dash-mascot svg { display: block; width: 100%; }
.dash-head h1 {
  margin: 0;
  font-size: clamp(34px, 9vmin, 72px);
  color: #6c4ad6;
  text-shadow: 0 4px 0 rgba(108, 74, 214, 0.15);
}

.tiles {
  flex: 1;
  width: 100%;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(42vw, 230px), 1fr));
  gap: 4vmin;
  align-content: center;
  justify-items: center;
  padding: 2vmin;
}

.tile {
  --accent: #ffd166;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1.1;
  border-radius: 36px;
  background: var(--accent);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.12s ease;
}
.tile:active { transform: scale(0.94) translateY(4px); }
.tile img { width: 72%; height: auto; flex: 1; min-height: 0; object-fit: contain; }
.tile-name { font-size: clamp(16px, 3.6vmin, 26px); text-align: center; line-height: 1.15; }

.sticker-btn {
  gap: 10px;
  padding: 8px 26px 8px 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: clamp(18px, 4vmin, 28px);
  margin-bottom: 8px;
}
.sticker-btn-icon { width: 58px; height: 58px; display: block; }
.sticker-btn-icon svg { width: 100%; height: 100%; }
.sticker-count {
  min-width: 36px;
  height: 36px;
  border-radius: 18px;
  background: #ff6f91;
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}
.sticker-count:empty { display: none; }

/* Short landscape phones: put the header beside the tiles. */
@media (orientation: landscape) and (max-height: 500px) {
  body { flex-direction: row; flex-wrap: wrap; justify-content: center; align-content: center; }
  .dash-head { flex-direction: column; width: 22%; }
  .dash-head h1 { font-size: clamp(24px, 7vmin, 40px); }
  .tiles { width: 70%; flex: 0 1 auto; }
  .tile { max-width: 200px; }
  .sticker-btn { position: fixed; bottom: calc(var(--safe-b) + 10px); left: calc(var(--safe-l) + 14px); }
}
