/* ================================================================= */
/* 2D PLATFORM OYUNU (MARİO ADVENTURE) STİLLERİ */
/* ================================================================= */

.mario-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.mario-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  background: #111;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  border: 4px solid var(--rose-light);
}

#mario-canvas {
  width: 100%;
  height: auto;
  display: block;
  background: #a2d2ff;
  cursor: pointer;
}

/* MOBİL KONTROL PANELİ */
.mario-controls-overlay {
  display: none; /* Varsayılan olarak masaüstünde gizli */
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  padding: 0 20px;
  justify-content: space-between;
  pointer-events: none; /* Üst kısımlara tıklanabilsin */
  user-select: none;
}

.mario-direction-keys {
  display: flex;
  gap: 15px;
  pointer-events: auto;
}

.mario-action-keys {
  pointer-events: auto;
}

/* Mobil Buton Ortak Stili */
.mario-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.1s, background 0.1s;
}

.mario-btn:active {
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.45);
  border-color: var(--rose-pink);
}

/* Sadece mobil ve tablet cihazlarda butonları göster */
@media (max-width: 1024px) {
  .mario-controls-overlay {
    display: flex;
  }
}

.mario-instructions-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 15px 24px;
  text-align: center;
  max-width: 600px;
}

.mario-instructions-card p {
  margin: 0;
  font-size: 14px;
  color: #e6cee2;
  font-weight: 500;
  line-height: 1.6;
}

.mario-instructions-card strong {
  color: var(--rose-pink);
}
