* {
  box-sizing: border-box;
}

html,
body {
  overflow: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #eff3ff;
  font-family: "Open Sans", sans-serif;
}

/* CONTENEUR */
.game-container {
  max-width: 2000px;
  margin: 0 auto;
  padding: 0 4rem;
}

/* HOME */
.home-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}

#home {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  font-family: "Futura", sans-serif;
  padding: 0.3rem 1.2rem;
  border-radius: 5px;
  background: crimson;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  position: relative;
  top: -100px;
}

/* LAYOUT */
.layout {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* SIDEBAR */
#text {
  width: 260px;
  padding-left: 2rem;
}

.draggable-elements {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

/* MAP */
.map-wrapper {
  position: relative;
  flex: none;
  width: min(60vw, 900px); /* ← ICI */
  margin-left: 8rem;
}

.map-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 5%;
}

/* LABELS */
.textArea {
  display: grid;
  place-content: center;
  min-width: 90px;
  height: 24px;
  padding: 0 8px;
  font-size: 12px;
  border-radius: 12px;
  background: #2c2f36;
  color: #fff;
}

.bigArea {
  grid-column: span 2;
}

/* DRAG */
.draggable {
  cursor: grab;
}

.draggable.dragged {
  opacity: 0.4;
  /*pointer-events: none;*/
}

/* DROP */
.droppable {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.droppable.dropped {
  background-color: #35A993;
}

/* ICEBOX */

.icebox.attacker {
  top: 85.33%;
  left: 58.89%;
}

.icebox.defender {
  top: 9.11%;
  left: 55.33%;
}

.icebox.a1 {
  top: 34.31%;
  left: 65.67%;
}

.icebox.a2 {
  top: 33.22%;
  left: 79.00%;
}

.icebox.a3 {
  top: 58.89%;
  left: 84.44%;
}

.icebox.a4 {
  top: 26.44%;
  left: 82.44%;
}

.icebox.a5 {
  top: 44.11%;
  left: 72.44%;
}

.icebox.a6 {
  top: 51.78%;
  left: 79.00%;
}

.icebox.a7 {
  top: 38.67%;
  left: 82.78%;
}

.icebox.a8 {
  top: 34.67%;
  left: 94.56%;
}

.icebox.a9 {
  top: 40.44%;
  left: 70.78%;
}

.icebox.a10 {
  top: 52.67%;
  left: 89.44%;
}

.icebox.b1 {
  top: 59.89%;
  left: 32.56%;
}

.icebox.b2 {
  top: 24.78%;
  left: 13.78%;
}

.icebox.b3 {
  top: 54.33%;
  left: 12.44%;
}

.icebox.b4 {
  top: 68.67%;
  left: 40.56%;
}

.icebox.b5 {
  top: 44.71%;
  left: 22.00%;
}

.icebox.b6 {
  top: 34.87%;
  left: 33.78%;
}

.icebox.b7 {
  top: 33.33%;
  left: 45.44%;
}

.icebox.b8 {
  top: 50.22%;
  left: 47.78%;
}

.icebox.b9 {
  top: 38.33%;
  left: 42.78%;
}

.icebox.b10 {
  top: 25.0%;
  left: 39.56%;
}

.icebox.b11 {
  top: 48.44%;
  left: 35.67%;
}

.icebox.b12 {
  top: 63.89%;
  left: 21.78%;
}

.icebox.b13 {
  top: 19.67%;
  left: 21.44%;
}

.icebox.b14 {
  top: 31.50%;
  left: 28.22%;
}

.icebox.m1 {
  top: 60.22%;
  left: 52.22%;
}

.icebox.m2 {
  top: 35.89%;
  left: 54.44%;
}

.icebox.m3 {
  top: 42.67%;
  left: 61.33%;
}


/* ERREUR */
#error-container {
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 5rem;
}

#error {
  color: crimson;
  font-size: 96px;
  font-weight: 900;
  font-family: "Futura", sans-serif;
  visibility: hidden;
}

#error1 {
  color: crimson;
  font-size: 28px;
  font-weight: 900;
  visibility: hidden;
  font-family: "Futura", sans-serif;
}
/* MOBILE */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  #text {
    width: 100%;
  }

  .draggable-elements {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* CASE FANTÔME (debug positions)*/
/*
#css-helper {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  background: #2c2f36;
  border-radius: 8px;
  z-index: 1000;
}

#css-helper select,
#css-helper button {
  height: 32px;
  font-size: 14px;
}

#css-helper button {
  background: crimson;
  color: white;
  border: none;
  padding: 0 12px;
  border-radius: 6px;
  cursor: pointer;
}

#css-helper button:hover {
  opacity: 0.9;
}

.ghost {
  position: absolute;
  width: 90px;
  height: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 12px;
  font-weight: bold;

  background: rgba(220, 38, 38, 0.25);
  border: 2px dashed crimson;
  border-radius: 12px;

  color: crimson;

  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 999;
}

.droppable {
  pointer-events: none;
}
*/
