/* css/global.css */

:root {
  --bg-dark: #04152a;
  --bg-dark-2: #061b34;
  --gold: #f5b534;
  --gold-light: #ffd76a;
  --gold-dark: #c48312;
  --text-dark: #08213a;
  --text-light: #ffffff;
  --navy: #071c33;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 20% 0, #123b63, #020712 60%);
  color: var(--text-light);
}

/* Conteneur centré */
.bod-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bod-card {
  width: 100%;
  max-width: 460px;
  padding: 24px 24px 32px;
}
@media (min-height: 750px) {
  .bod-card {
    padding-top: 32px;
  }
}

/* Pop-up de résultat toujours au-dessus */
.popup-overlay {
  position: fixed; /* normalement déjà le cas, mais au cas où */
  z-index: 9999;
}

/* Les autres overlays un cran en dessous */
#shop-overlay,
#quests-overlay,
#profile-overlay {
  z-index: 9000;
}
/* Always put the result popup above every other overlay */
#result-popup {
  position: fixed;    /* sécurité, au cas où */
  z-index: 9999;
}

/* Other overlays stay below the result popup */
#shop-overlay,
#quests-overlay,
#profile-overlay {
  position: fixed;    /* pareil : on fige en overlay */
  z-index: 9000;
}
/* === INDEX PAGE LOGO === */

.title-block {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto 10px;
}

.index-logo {
  display: block;
  width: 340px;        /* desktop */
  max-width: 90%;
  height: auto;
}

/* Mobile */
@media (max-width: 480px) {
  .index-logo {
    width: 240px;      /* plus petit pour smartphone */
    max-width: 85%;
  }

  .title-block {
    margin: 10px auto 6px;
  }
}

