.login-container {
  background: #fff;
  border-radius: 2rem;
  box-shadow: 0 4px 24px rgba(44, 62, 80, 0.1);
  width: 340px;
  padding: 1.5rem 2.2rem 1.5rem 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.logo {
  width: 320px;
  margin-bottom: 4px;
  margin-top: 0px;
  object-fit: contain;
}
.logo-img {
  width: 400px;
  margin-bottom: 4px;
  margin-top: 0px;
  object-fit: contain;
}

.login-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.8rem;
  border: 1px solid #d8ecf7;
  font-size: 1rem;
  margin-bottom: 1.1rem;
  background: #f8fafd;
  outline: none;
  transition: border-color 0.2s;
}
.login-input:focus {
  border-color: #35d8ca;
}
.login-btn,
.register-btn,
.exit-btn {
  width: 100%;
  padding: 0.7rem;
  border: none;
  border-radius: 0.8rem;
  font-size: 1.09rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.login-btn {
  background: #26bb36;
  color: #fff;
}
.login-btn:hover {
  background: #219429;
}
.register-btn {
  background: #226cff;
  color: #fff;
}
.register-btn:hover {
  background: #1450b4;
}
.exit-btn {
  background: #ededed;
  color: #222;
}
.exit-btn:hover {
  background: #d1d1d1;
}
/* Dashboard styles */
.dashboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
  height: 100vh;
  justify-content: center;
}
.dashboard-row {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
}
.stat-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.1rem 1.5rem;
  box-shadow: 0 4px 24px rgba(44, 62, 80, 0.08);
  min-width: 160px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
}
.stat-card:hover {
  transform: scale(1.04);
}
.stat-label {
  font-size: 1.08rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
}
.stat-value {
  font-size: 1.28rem;
  font-weight: 700;
}
.stat-leaderboard {
  color: #1eb86e;
}
.stat-therapy {
  color: #eb920e;
}
.main-area {
  display: flex;
  gap: 36px;
}
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 1.2rem;
  background-color: white;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease;
  width: 100%;
  max-width: 250px;
}

.menu-btn:hover {
  transform: scale(1.04);
}
.game-stats-card {
  background: #fff;
  border-radius: 1rem;
  min-width: 270px;
  box-shadow: 0 4px 24px rgba(44, 62, 80, 0.08);
  padding: 10px 14px;
}
.game-stats-header {
  font-size: 1rem;
  color: #1d4ed8;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}
.game-stats-summary {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.gss-item {
  background: #f0f9ff;
  border-radius: 8px;
  padding: 4px 8px;
  text-align: center;
  flex: 1;
}
.gss-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.5px;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.gss-label {
  font-size: 0.58rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.game-stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.gs-chip {
  display: flex;
  align-items: center;
  gap: 3px;
  background: #f8fafc;
  border-radius: 8px;
  padding: 3px 7px;
  border: 1px solid #e2e8f0;
  font-size: 0.7rem;
  font-weight: 700;
  color: #334155;
}
.gs-chip .gs-icon { font-size: 0.85rem; }
.gs-chip .gs-count { color: #16a34a; }
.gs-chip.no-plays { opacity: 0.35; }
.dashboard-logout {
  margin-top: 30px;
  padding: 0.8rem 2.8rem;
  border-radius: 2rem;
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  font-size: 1.14rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.dashboard-logout:hover {
  background: #fff;
  color: #3ce3a4;
}

#gameCanvas {
  display: block;
  margin: 0 auto;
  background: linear-gradient(to bottom, #87ceeb, #e0f7fa);
}
.pressure-bar {
  transition: width 0.1s ease-out;
}
.rehab-icon {
  color: #3b82f6;
}
.game-container {
  position: relative;
}
.modal {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
}
.pulse {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes flap {
  0% {
    transform: rotate(-10deg);
  }
  50% {
    transform: rotate(10deg);
  }
  100% {
    transform: rotate(-10deg);
  }
}
#arduinoStatus {
  transition: all 0.3s ease;
}
.connected {
  background-color: #10b981 !important;
}

.logo-wrapper {
  background: white;
  padding: 15px;
  border-radius: 1.5rem;
  border: 4px solid white;
  margin-bottom: 24px;
  margin-top: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
}
