* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans', sans-serif;
  background: #f5f5f5;
  overflow: hidden;
  height: 100vh;
}

#game-container {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#classroom {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #e8f4f8 0%, #ffffff 100%);
  position: relative;
  display: flex;
  flex-direction: column;
}

#instructor-area {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
}

#instructor-avatar {
  width: 120px;
  height: 120px;
  animation: float 3s ease-in-out infinite;
}

#instructor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

#dialogue-box {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin: 0 20px 20px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#dialogue-text {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

#choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choice-btn {
  background: #4a90e2;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.choice-btn:active {
  transform: scale(0.98);
  background: #357abd;
}

#student-area {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  position: relative;
}

#student-avatar {
  width: 100px;
  height: 100px;
  position: relative;
}

#student-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#emotion-indicator {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#stats {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  min-width: 150px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-label {
  font-size: 12px;
  color: #666;
  font-weight: 600;
}

.stat-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  background: #4a90e2;
  transition: width 0.5s ease;
  border-radius: 4px;
}

#understanding-bar {
  background: #5cb85c;
}

#motivation-bar {
  background: #f0ad4e;
}

@media (min-width: 768px) {
  #classroom {
    max-width: 600px;
    max-height: 800px;
    margin: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  }
}