/* MOBILE SHEET */
#mobile-sheet {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(25, 25, 25, 0.97);
  color: white;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  transition: bottom 0.3s ease;
  z-index: 9999;
  overflow: hidden;
}

/* Aktywne (otwarte) */
#mobile-sheet.active {
  bottom: 0;
}

/* Nagłówek */
.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #111;
  font-weight: bold;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sheet-header button {
  background: none;
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Zawartość */
.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

/* Tylko na mniejszych ekranach */
@media (min-width: 901px) {
  #mobile-sheet {
    display: none;
  }
}

#mobile-sheet.active { bottom:0; }
.sheet-header { padding:1rem; display:flex; justify-content:space-between; align-items:center; }
.sheet-body { padding:1rem; overflow-y:auto; flex:1; }

/* rozmiary według klasy okna */
#mobile-sheet[data-window="about"] { height: 82%; }
#mobile-sheet[data-window="projects"] { height: 90%; }
#mobile-sheet[data-window="links"] { height: 50%; }
#mobile-sheet[data-window="trash"] { height: 40%; }
#mobile-sheet[data-window="contact"] { height: 60%; }
#mobile-sheet[data-window="settings"] { height: 30%; }

.sheet-body > .window-body {
  height: auto !important;
  overflow: visible !important;
  flex: none !important;
}