*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:"Inter", sans-serif;
}

body{
  background-image:url("jeuinteractiffond.jpg");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  min-height:100vh;
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  color:#1800ad;
  padding:20px;
  text-align:center;
}

.game-container{
  background:#f8f8fb;
  border:3px solid #1800ad;
  border-radius:10px;
  box-shadow:0 20px 40px rgba(0,0,0,0.25);
  max-width:700px;
  width:90%;
  margin:auto;
  padding:30px;
  padding-top:70px;
  position:relative;
  z-index:1;
}

h1{
  font-family:"Bebas Neue", sans-serif;
  font-size:52px;
  letter-spacing:2px;
  text-shadow:3px 3px 0 #efbff8;
  margin-bottom:10px;
}

h2{
  font-family:"Space Grotesk", sans-serif;
  font-weight:600;
  color:#5e17eb;
  margin-bottom:25px;
}

.progress-bar{
  width:100%;
  height:12px;
  background:#eee;
  border-radius:10px;
  margin-bottom:25px;
  overflow:hidden;
}

#progress{
  height:100%;
  width:0%;
  background:linear-gradient(90deg,#efbff8,#5e17eb);
  transition:width 0.4s;
}

.story-box{
  background:#f8f8ff;
  padding:30px;
  border-radius:15px;
  margin-bottom:25px;
  line-height:1.6;
  font-size:18px;
}

#choices{
  display:flex;
  flex-direction:column;
  gap:15px;
}

button{
  background:white;
  color:#1800ad;
  border:4px solid #1800ad;
  padding:12px;
  font-size:16px;
  cursor:pointer;
  font-weight:bold;
  transition:transform 0.15s;
  box-shadow:
    4px 4px 0 #1800ad,
    8px 8px 0 #5e17eb;
}

button:hover{
  transform:translate(-2px,-2px);
  box-shadow:
    6px 6px 0 #1800ad,
    10px 10px 0 #5e17eb;
}

button:active{
  transform:translate(4px,4px);
  box-shadow:none;
}

.profile{
  margin-top:12px;
}

.profile img{
  width:120px;
  border-radius:50%;
  margin-bottom:15px;
}

.linkedin{
  display:inline-block;
  margin-top:22px;
  color:white;
  background:#5e17eb;
  padding:10px 20px;
  border-radius:8px;
  text-decoration:none;
  font-weight:bold;
}

.linkedin:hover{
  transform:translate(-2px,-2px);
  box-shadow:
    6px 6px 0 #5e17eb,
    10px 10px 0 #1800ad;
}

.linkedin:active{
  transform:translate(4px,4px);
  box-shadow:none;
}

.window-bar{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  min-height:48px;
  background:#1800ad;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:8px 12px;
  gap:12px;
  border-top-left-radius:10px;
  border-top-right-radius:10px;
  color:white;
  font-size:14px;
  flex-wrap:wrap;
}

.window-bar-left{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  flex:1 1 220px;
}

.dot{
  width:12px;
  height:12px;
  border-radius:50%;
  flex-shrink:0;
}

.red{background:#ff5f56;}
.yellow{background:#ffbd2e;}
.green{background:#27c93f;}

.window-title{
  margin-left:10px;
  opacity:0.9;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.game-stats{
  display:flex;
  align-items:center;
  gap:6px;
  justify-content:flex-end;
  flex-wrap:wrap;
  flex:0 1 auto;
}

.stat-pill{
  display:flex;
  align-items:center;
  gap:6px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.18);
  background:rgba(255,255,255,0.1);
  font-size:12px;
  line-height:1;
  white-space:nowrap;
}

.stat-label{
  text-transform:uppercase;
  letter-spacing:0.04em;
  opacity:0.75;
}

.stat-value{
  font-weight:700;
  font-variant-numeric:tabular-nums;
}

.end-stats{
  margin:0 0 20px 0;
  padding:18px;
  background:#f3efff;
  border:2px solid #d8c8ff;
  border-radius:14px;
  text-align:left;
}

.end-stats-learning{
  background:#f5f3ff;
  border-color:#ddd6fe;
}

.end-stats-crisis{
  background:#fff1f2;
  border-color:#fecdd3;
}

.end-stats-crisis .profile-title{
  color:#b91c1c;
}

.profile-title{
  margin-bottom:8px;
}

.skills-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}

.skill-pill{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:#e9ddff;
  color:#4c1d95;
  font-size:14px;
  font-weight:600;
}

.github-link{
  margin-top:20px;
  font-size:14px;
  opacity:0.8;
}

.github-link a{
  color:#7c3aed;
  text-decoration:none;
  font-weight:500;
}

.github-link a:hover{
  text-decoration:underline;
}

.profile button{
  margin-top:10px;
}

.result-buttons{
  display:flex;
  flex-direction:column;
  gap:15px;
  margin-top:8px;
}

body.crisis-mode::before{
  content:"";
  position:fixed;
  inset:0;
  background:linear-gradient(135deg, rgba(185, 28, 28, 0.18), rgba(127, 29, 29, 0.28));
  pointer-events:none;
  z-index:0;
}

body.crisis-mode .game-container{
  border-color:#9f1239;
  box-shadow:0 20px 40px rgba(127, 29, 29, 0.35);
  animation:shake 0.35s infinite;
}

body.crisis-mode .window-bar{
  background:#b91c1c;
}

body.crisis-mode .stat-pill{
  background:rgba(255,255,255,0.14);
  border-color:rgba(255,255,255,0.24);
}

body.crisis-mode .story-box{
  background:#fff1f2;
}

body.crisis-mode #progress{
  background:linear-gradient(90deg,#fb7185,#b91c1c);
}

body.crisis-mode button{
  background:#fee2e2;
  color:#7f1d1d;
  border-color:#b91c1c;
  box-shadow:
    4px 4px 0 #b91c1c,
    8px 8px 0 #7f1d1d;
}

body.crisis-mode button:hover{
  box-shadow:
    6px 6px 0 #b91c1c,
    10px 10px 0 #7f1d1d;
}

body.crisis-mode .end-stats{
  background:#fff1f2;
  border-color:#fecdd3;
}

body.crisis-mode .end-stats-learning .profile-title{
  color:#b91c1c;
}

body.crisis-mode .skill-pill{
  background:#fecdd3;
  color:#881337;
}

body.crisis-mode .modal-content{
  border-color:#b91c1c;
}

@keyframes shake{
  0%{transform:translate(0,0);}
  25%{transform:translate(1px,-1px);}
  50%{transform:translate(-1px,1px);}
  75%{transform:translate(1px,1px);}
  100%{transform:translate(0,0);}
}

@media (max-width: 680px){
  body{
    align-items:flex-start;
  }

  .game-container{
    width:100%;
    padding:22px;
    padding-top:96px;
  }

  .window-bar{
    align-items:flex-start;
    justify-content:flex-start;
    gap:8px;
    padding:10px 12px;
  }

  .window-bar-left{
    width:100%;
    flex:1 1 100%;
  }

  .game-stats{
    width:100%;
    justify-content:flex-start;
    gap:8px;
  }

  .stat-pill{
    font-size:11px;
    padding:4px 7px;
  }
