/* ---------- GLOBAL ---------- */
body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Press Start 2P", monospace; /* font retro */
  background: linear-gradient(135deg, #6dd5ed, #2193b0);
  color: #222;
}

.lvl h1 {
  text-align: center;
  font-size: 30px;
  margin: 20px 0;
  font-weight: bold;

  /* gradient subtil, dar vizibil pe alb */
  background: linear-gradient(90deg, #ffcc00, #ff6600);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* umbră discretă pentru lizibilitate */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* ---------- CONTAINER ---------- */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: calc(100vh - 80px);
  position: relative;
}

/* ---------- CONTROL PANEL ---------- */
.ms_head {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #333;
  color: #ff4747;
  font-size: 18px;
  padding: 10px 20px;
  margin-bottom: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  width: fit-content;
}

.ms_head div {
  flex: 1;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  font-family: "Courier New", monospace;
}

/* ---------- BOARD ---------- */
.ms_bord {
  display: grid;
  background-color: #444;
  padding: 5px;
  border: 3px solid #111;
  border-radius: 10px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7);
}

.ms_bord div {
  border: 2px solid #555;
  background: linear-gradient(to bottom, #bfbfbf, #9e9e9e);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  user-select: none;
  border-radius: 4px;
  transition: all 0.1s ease;
}

.ms_bord div:hover {
  filter: brightness(1.2);
}

.ms_bord div:active {
  background: #ddd;
  transform: scale(0.95);
}

/* mine/flag imagini */
.ms_bord div img {
  width: 75%;
  height: 75%;
  object-fit: contain;
}

/* ---------- LEVEL PANEL ---------- */
.lvl {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.lvl ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lvl li {
  margin: 8px 0;
}

.lvl a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #222;
  background: #eee;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.2s ease;
}

.lvl a:hover {
  background: #ffcb05;
  color: #000;
  transform: scale(1.05);
}
