/* ===== Reset ===== */
* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Press Start 2P", cursive;
  color: #1b1b1b;
  overflow: hidden;
}

/* ===== Fond ciel + nuages ===== */
.sky {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(45deg, #cfa77e, #e2c5a2, #cfa77e);
  background-size: 400% 400%;
  animation: fondAnime 12s ease infinite;
}

.clouds {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;

  background-image: url("Cloud.png");
  background-repeat: repeat-x;
  background-size: auto 260px;
  background-position: 0 60px;

  opacity: 0.65;
  animation: moveClouds 30s linear infinite;
}

.clouds.layer2 {
  opacity: 0.35;
  background-size: auto 190px;
  background-position: 0 20px;
  animation-duration: 60s;
}

@keyframes moveClouds {
  0%   { background-position: 0 60px; }
  100% { background-position: -1600px 60px; }
}

/* ===== Contenu au-dessus ===== */
.content {
  position: relative;
  z-index: 1;
  padding: 48px 32px;
  max-width: 980px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  margin: 0 0 28px 0;
  color: #000;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.35);
  letter-spacing: 1px;
}

.panel {
  position: relative;
  padding: 28px 28px 22px;
  border: 16px solid #ff2e2e;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 0 0 8px #a00000,
    0 0 0 16px #000,
    0 18px 40px rgba(0, 0, 0, 0.55);
}

p {
  margin: 0 0 18px 0;
  line-height: 1.7;
  color: #1b1b1b;
}

.btn {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 18px;
  border: 3px solid #000;
  color: #000;
  text-decoration: none;
  background: #ffd37a;
  border-radius: 10px;
  box-shadow: 0 3px 0 #000;
}

.btn:hover {
  background: #ffeea3;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #000;
}

@keyframes fondAnime {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* transition nuage retirée */

/* Bouton MENU HUD */
.hud-menu-btn {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 10000;
  padding: 10px 14px;
  border: 4px solid #000;
  border-radius: 14px;
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

/* Overlay menu */
.pause-menu {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Fenêtre menu */
.pause-panel {
  width: min(320px, 92vw);
  background: #fff;
  border: 6px solid #000;
  border-radius: 16px;
  padding: 18px;
  text-align: center;
}

.pause-panel h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

.pause-panel .btn {
  width: 100%;
  margin: 8px 0;
  padding: 12px;
  font-weight: 900;
  border: 4px solid #000;
  border-radius: 14px;
  background: #f6f6f6;
  cursor: pointer;
}

.pause-panel .btn:active {
  transform: translateY(1px);
}

.pause-panel .danger {
  background: #e10606;
  color: #fff;
}

.pause-panel .ghost {
  background: transparent;
}
