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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans", sans-serif;
  background: #f0f7ff;
  color: #1a1a1a;
  overflow-x: hidden;
  height: 100vh;
}

#game {
  max-width: 600px;
  margin: 0 auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.status-bar {
  display: flex;
  justify-content: space-around;
  padding: 16px;
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
  border-bottom: 1px solid #357ABD;
  position: relative;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.label {
  font-size: 12px;
  color: #e8f2ff;
}

.value {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

#feed {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.user-card {
  background: #fff;
  border: 1px solid #d0e4f7;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5B9FED 0%, #4A90E2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 18px;
}

.user-info {
  flex: 1;
}

.username {
  font-weight: 600;
  font-size: 15px;
  color: #1a1a1a;
}

.user-stats {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.post-content {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.follow-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.follow-btn.follow {
  background: #4A90E2;
  color: #fff;
}

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

.follow-btn.following {
  background: #e8f2ff;
  color: #4A90E2;
  border: 1px solid #4A90E2;
}

.follow-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.action-buttons {
  padding: 16px;
  background: #fff;
  border-top: 1px solid #d0e4f7;
}

.action-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:active {
  transform: scale(0.98);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(74, 144, 226, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  max-width: 320px;
  margin: 16px;
  text-align: center;
  animation: popIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 2px solid #4A90E2;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-content h2 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #4A90E2;
}

.modal-content p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

.btn {
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  background: #4A90E2;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

.help-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.help-btn:active {
  transform: translateY(-50%) scale(0.95);
  background: rgba(255, 255, 255, 0.2);
}

.help-modal-content {
  max-width: 400px;
  text-align: left;
}

.help-content {
  margin-bottom: 20px;
}

.help-content p {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.help-content strong {
  color: #4A90E2;
}

@media (max-width: 600px) {
  .status-bar {
    padding: 12px;
  }
  
  .value {
    font-size: 18px;
  }
}

