/* Centrage de l'écran DSi */
body {
  margin: 0;
  font-family: 'Arial Rounded MT Bold', Arial, sans-serif;
  background: #2baad1;
  min-height: 100vh;
  min-width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Conteneur principal responsive */
.dsi-wrapper {
  display: flex;
  flex-direction: column;
  width: 95vw;
  max-width: 420px;
  height: 80vh;
  max-height: 700px;
  border: 4px solid #b3e0ff;
  border-radius: 2vw;
  box-shadow: 0 0 30px rgba(0,0,0,0.7);
  background: #fff;
  overflow: hidden;
  min-width: 280px;
  min-height: 400px;
  transition: width 0.2s, height 0.2s;
}

/* Écran du haut */
.top-screen {
  background: url("bag.png") center/cover no-repeat, #f7fbff;
  height: 50%;
  min-height: 100px;
  position: relative;
  border-bottom: 2px solid #b3e0ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 1.5vh;
}

/* Bulles décoratives */
.bubbles {
  width: 100%;
  height: 15%;
  min-height: 40px;
  background: radial-gradient(circle at 20% 40%, #b3e0ff 10px, transparent 11px),
              radial-gradient(circle at 60% 60%, #66c2ff 8px, transparent 9px),
              radial-gradient(circle at 80% 30%, #b3e0ff 6px, transparent 7px),
              radial-gradient(circle at 40% 70%, #66c2ff 5px, transparent 6px);
  background-repeat: no-repeat;
  margin-top: 2vh;
}

/* Sac d'achat */
.shop-bag {
  width: 18%;
  min-width: 36px;
  max-width: 60px;
  aspect-ratio: 1/1;
  margin: 1vh auto 0.5vh auto;
  background: linear-gradient(135deg, #e0f7fa 60%, #b3e0ff 100%);
  border-radius: 10px 10px 12px 12px;
  border: 2px solid #b3e0ff;
  position: relative;
}
.shop-bag::before {
  content: '';
  display: block;
  position: absolute;
  left: 25%;
  top: -20%;
  width: 50%;
  height: 33%;
  border: 2px solid #b3e0ff;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
}

/* Barre des points */
.points-bar {
  text-align: center;
  font-weight: bold;
  font-size: 1.1em;
  color: #0099cc;
  margin: 1vh 0 0 0;
}

/* Icône WiFi */
.wifi-icon {
margin-left: 0.5em;
vertical-align: middle;
}

/* Écran du bas */
.bottom-screen {
  background: #fff;
  height: 60%;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Menu principal */
.main-menu {
  padding: 2vh 2vw 0 2vw;
  display: flex;
  flex-direction: column;
  gap: 0.7vh;
  margin: 3vh 0 0 0;
}

/* Bouton DSiWare */
.dsiware-btn {
  background: #fff;
  border: 2px solid #b3e0ff;
  border-radius: 1vw;
  font-size: 1.3em;
  font-weight: bold;
  color: #000;
  padding: 1em 0;
  margin-bottom: 0.5vh;
  letter-spacing: 1px;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.08);
}

/* Ligne de deux boutons */
.button-row {
  display: flex;
  justify-content: space-between;
  gap: 2vw;
  margin-bottom: 0.5vh;
}

/* Boutons secondaires */
.btn {
  flex: 1;
  padding: 1em 0;
  font-size: 1em;
  border-radius: 1vw;
  border: 2px solid #b3e0ff;
  cursor: pointer;
  font-weight: bold;
  background: #e6f7ff;
  color: #0077b3;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.10);
  transition: filter 0.15s;
  margin: 0;
}
.btn.blue {
  background: #e6f7ff;
}
.btn.green {
  background: #61c1df;
  color: #fff;
  border: 2px solid #61c1df;
}
.btn.settings-btn {
  background: #e6ffe6;
  color: #009966;
  border: 2px solid #b3e0ff;
  margin-top: 0.2vh;
  margin-bottom: 2.2vh;
  width: 100%;
  max-width: none;
  border-radius: 1vw;
  align-self: stretch;
}

/* Effet au survol */
.btn:hover {
  filter: brightness(1.08);
}

/* Styles pour les lettres P et ? */
.letter-p {
  font-weight: bold;
  color: #0099cc;
  margin-right: 0.5em;
}
.help-icon {
  font-weight: bold;
  color: #0099cc;
  margin-right: 0.5em;
}

/* Bande grise en bas */
.bottom-bar {
  height: 2.5vh;
  background: #e0e0e0;
  border-top: 2px solid #b3e0ff;
  border-radius: 0 0 2vw 2vw;
  margin-top: 0.1vh;
}

.dsiware-img {
  height: 1.5rem;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.top-bar {
  height: 2.5vh;
  background: #e0e0e0;
  border-bottom: 2PX solid #b3e0ff;
  border-radius: 2vw 2vw 0 0;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.separator-bar {
  height: 2.5vh;
  background: #e0e0e0;
  border-bottom: 2px solid #b3e0ff;
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
  font-size: 1.1em;
}

.points-bar {
  font-weight: bold;
  color: #0099cc;
  margin: 0;
  padding: 0;
}

.main-title {
position: absolute;
top: 0.1vh;
left: 1.5vw;
font-size: 1.25em;
color: #222;
font-family: Arial, sans-serif;
font-weight: normal;
z-index: 3;
text-shadow: 0 1px 0 #fff;
}

.separator-bar {
  height: 2.5vh;
  background: #e0e0e0;
  border-bottom: 2px solid #b3e0ff;
  width: 100%;
  display: flex;
  justify-content: center;   /* centre le texte */
  align-items: center;
  position: relative;        /* nécessaire pour l'absolu */
  z-index: 2;
  font-size: 1.1em;
  padding: 0 1vw;
}

.wifi-icon {
  position: absolute;
  right: 1vw;
  font-size: 1.1em;
  vertical-align: middle;
  margin-left: 0;
}

.button-row a {
  flex: 1;
  display: flex;
  margin: 0;
  padding: 0;
}

/* Pour que le bouton dans le lien prenne toute la largeur */
.button-row a .btn {
  width: 100%;
  margin: 0;
}