/* Compact icon-only game buttons. */
.game-menu { width:100%; min-width:0; }
.game-menu .extra-game-heading { flex-wrap:wrap; gap:12px; }
.game-menu .extra-game-heading h2 { font-size:clamp(22px,6vw,28px); }
.game-menu .game-icon-options {
  width:100%; grid-template-columns:repeat(4,minmax(0,68px))!important;
  grid-auto-rows:auto; gap:10px; align-items:stretch; justify-content:center;
}
.game-menu .game-icon-options>button {
  display:flex!important; flex-direction:column; justify-content:center;
  align-items:center; min-width:0; width:100%; height:auto;
  max-height:68px; aspect-ratio:1; min-height:0!important;
  padding:8px!important; gap:0; text-align:center;
}
.game-menu .game-icon-options .game-menu-symbol {
  display:flex; align-items:center; justify-content:center;
  width:100%!important; height:100%!important; flex:1 1 auto;
  font-size:clamp(26px,7vw,34px); line-height:1; min-width:0;
}
.game-menu .game-icon-options .game-menu-symbol img {
  display:block; width:100%; height:100%; max-width:46px; max-height:46px;
  object-fit:contain; border-radius:12px;
}
.game-menu .game-icon-options strong,
.game-menu .game-icon-options small { display:none; }
@media(max-width:760px) {
  .shell, main, #content { min-width:0; }
  main { padding-left:16px; padding-right:16px; padding-bottom:calc(68px + env(safe-area-inset-bottom)); }
  .mobile-nav { width:100%; max-width:100%; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; padding:0 3px env(safe-area-inset-bottom); }
  .mobile-nav button { display:flex; align-items:center; justify-content:center; gap:4px; min-width:0; min-height:54px; height:54px; padding:0 3px; font-size:13px; line-height:1; white-space:nowrap; }
  .mobile-nav span { flex:none; font-size:21px; line-height:1; margin:0; }
  .app-rating { width:100%; flex-wrap:wrap; gap:4px 8px; }
  .app-rating h2 { white-space:normal; font-size:14px; }
  .app-rating-stars { min-width:0; }
}
@media(max-width:360px) {
  .game-menu .game-icon-options { gap:8px; }
  .game-menu .game-icon-options>button { padding:6px!important; }
}
/* All front-page categories use the same compact size. */
.home-categories{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.home-categories>.photo-tile{min-height:140px;padding:12px 8px;gap:9px;align-items:center;justify-content:center;text-align:center}
.home-categories>.photo-tile img,.home-categories>.photo-tile .category-photo{height:86px;width:100%;max-width:104px;object-fit:contain}
.home-categories>.photo-tile strong{font-size:16px;line-height:1.25;margin:0;overflow-wrap:anywhere}
.home-categories>.photo-tile .games-picture{height:86px;font-size:56px;display:grid;place-items:center}
.home-categories>.photo-tile .games-picture img{height:86px;width:100%;object-fit:contain}
@media(max-width:760px){.home-categories{gap:10px}.home-categories>.photo-tile{min-height:128px;padding:10px 6px;gap:8px;border-radius:13px}.home-categories>.photo-tile img,.home-categories>.photo-tile .category-photo,.home-categories>.photo-tile .games-picture{height:76px}.home-categories>.photo-tile strong{font-size:14px}}
@media(max-width:360px){.home-categories{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Larger category illustrations and readable uppercase labels. */
.home-categories{grid-template-columns:repeat(3,minmax(0,160px));grid-auto-rows:1fr;justify-content:center;align-items:stretch}
.home-categories>.photo-tile{box-sizing:border-box;width:100%;height:auto;aspect-ratio:auto;min-height:175px;max-height:none;display:flex;flex-direction:column;padding:10px 6px;gap:8px;overflow:hidden;border-radius:13px}
.home-categories>.photo-tile img,.home-categories>.photo-tile .category-photo,.home-categories>.photo-tile .games-picture{box-sizing:border-box;flex:0 0 105px;width:100%;height:105px;min-height:0;max-width:none;object-fit:contain}
.home-categories>.photo-tile .games-picture img{width:100%;height:100%;object-fit:contain}
.home-categories>.photo-tile .games-picture{font-size:60px}
.home-categories>.photo-tile strong{flex:0 0 auto;width:100%;margin:0;font-size:clamp(12px,3.2vw,15px);line-height:1.25;overflow-wrap:normal;word-break:normal;text-transform:uppercase}
@media(max-width:760px){.home-categories>.photo-tile{min-height:155px;padding:8px 4px}.home-categories>.photo-tile img,.home-categories>.photo-tile .category-photo,.home-categories>.photo-tile .games-picture{height:90px;flex-basis:90px}}
@media(max-width:360px){.home-categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}}

.home-categories>.photo-tile[data-category="numbers"] strong{font-size:clamp(10px,2.6vw,13px);letter-spacing:0;white-space:normal;overflow-wrap:anywhere}

.home-categories>.photo-tile{overflow:visible;min-width:0}
.home-categories>.photo-tile strong{display:block;box-sizing:border-box;min-width:0;max-width:100%;height:auto;max-height:none;white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere!important;word-break:break-word!important;text-overflow:clip;line-height:1.35}

.home-categories>.photo-tile[data-category="tarot"] strong{text-transform:none}

@media(max-width:760px){
.home-categories{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;grid-auto-rows:auto;align-items:stretch}
.home-categories>.photo-tile{height:auto;min-height:0;aspect-ratio:1;max-height:none;padding:6px 3px;gap:4px;justify-content:center;overflow:visible}
.home-categories>.photo-tile img,.home-categories>.photo-tile .category-photo,.home-categories>.photo-tile .games-picture{height:clamp(52px,15vw,75px);flex:0 0 auto;min-height:0}
.home-categories>.photo-tile strong{font:700 clamp(10px,2.7vw,12px)/1.2 Arial,sans-serif;min-height:2.4em;display:flex;align-items:center;justify-content:center;margin:0;letter-spacing:0}
.home-categories>.photo-tile[data-category="numbers"] strong{font-size:clamp(9px,2.4vw,11px)}
}

/* Keep the added past-life category aligned with the other square home tiles. */
.home-categories>.past-life-tile{box-sizing:border-box;width:100%;min-width:0;min-height:0;aspect-ratio:1;max-height:none;padding:6px 3px;gap:4px;overflow:hidden;align-items:center;justify-content:center;text-align:center}
.home-categories>.past-life-tile .glyph{display:grid;place-items:center;flex:0 0 auto;width:100%;height:clamp(52px,15vw,75px);font-size:clamp(34px,9vw,48px);line-height:1}
.home-categories>.past-life-tile strong{display:flex;align-items:center;justify-content:center;box-sizing:border-box;flex:0 0 auto;width:100%;min-width:0;max-width:100%;min-height:2.4em;margin:0;padding:0 2px;font:700 clamp(10px,2.7vw,12px)/1.2 Arial,sans-serif;letter-spacing:0;white-space:normal;overflow-wrap:normal;word-break:normal;text-align:center;text-transform:uppercase}
