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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Pretendard', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #121212;
}

.container {
  width: 100%;
  max-width: 420px;
}

.card {
  background: #ffffff;
  border-radius: 24px;
  padding: 48px 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(18, 18, 18, 0.08);
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 16px;
}

.admin-card {
  max-width: 520px;
  margin: 0 auto;
}

h1 {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: #121212;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 24px;
  font-weight: 700;
  color: #121212;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.subtitle {
  text-align: center;
  color: #888;
  margin-bottom: 40px;
  font-size: 15px;
  font-weight: 400;
}

.welcome-text {
  font-size: 20px;
  font-weight: 600;
  color: #121212;
  margin-bottom: 32px;
  text-align: left;
  letter-spacing: -0.3px;
}

.step {
  display: none;
}

.step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.input-group {
  margin-bottom: 24px;
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #121212;
  font-size: 14px;
  letter-spacing: -0.2px;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1.5px solid #e5e5e5;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.2s ease;
  font-family: inherit;
  background: #fafafa;
  color: #121212;
}

input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: rgb(239, 138, 173);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(239, 138, 173, 0.1);
}

input[type="text"]::placeholder,
textarea::placeholder {
  color: #aaa;
}

textarea {
  resize: vertical;
  min-height: 240px;
  line-height: 1.6;
}

.input-hint {
  margin-top: 8px;
  font-size: 13px;
  color: #888;
}

.btn-primary,
.btn-secondary,
.back-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  letter-spacing: -0.3px;
}

.btn-primary {
  background: rgb(239, 138, 173);
  color: #ffffff;
  margin-top: 8px;
}

.btn-primary:hover {
  background: rgb(229, 118, 163);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 138, 173, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #f5f5f5;
  color: #121212;
  margin-top: 16px;
}

.btn-secondary:hover {
  background: #e8e8e8;
}

.back-btn {
  width: auto;
  padding: 8px 16px;
  background: transparent;
  color: #888;
  font-size: 14px;
  text-align: left;
  margin-bottom: 24px;
}

.back-btn:hover {
  background: #f5f5f5;
  color: #121212;
}

.result-view {
  display: none;
}

.result-view.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.result-content {
  text-align: center;
  padding: 24px 0;
}

.result-label {
  font-size: 15px;
  color: #888;
  margin-bottom: 16px;
  font-weight: 500;
}

.result-name {
  font-size: 36px;
  font-weight: 700;
  color: rgb(239, 138, 173);
  margin-bottom: 32px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.error {
  margin-top: 16px;
  padding: 14px 16px;
  background: #fff5f5;
  border: 1px solid #ffd6d6;
  border-radius: 10px;
  color: #d63031;
  font-size: 14px;
  text-align: center;
}

.hidden {
  display: none;
}

.participants {
  margin-top: 40px;
}

.success-header {
  margin-bottom: 24px;
}

.info-text {
  color: #888;
  font-size: 14px;
  margin-top: 4px;
}

#participantList {
  background: #fafafa;
  border: 1.5px solid #e5e5e5;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  font-family: 'SF Mono', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.8;
  max-height: 400px;
  overflow-y: auto;
  color: #121212;
}

.participant-item {
  padding: 10px 0;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
}

.participant-item:last-child {
  border-bottom: none;
}

.participant-nickname {
  font-weight: 600;
  color: #121212;
}

.participant-pin {
  font-weight: 700;
  color: rgb(239, 138, 173);
  font-family: 'SF Mono', 'Courier New', monospace;
}

/* 스크롤바 스타일링 */
#participantList::-webkit-scrollbar {
  width: 6px;
}

#participantList::-webkit-scrollbar-track {
  background: transparent;
}

#participantList::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 3px;
}

#participantList::-webkit-scrollbar-thumb:hover {
  background: #b0b0b0;
}

/* 모바일 최적화 */
@media (max-width: 600px) {
  .card {
    padding: 40px 24px;
  }
  
  h1 {
    font-size: 28px;
  }
  
  .result-name {
    font-size: 32px;
  }
  
  input[type="text"],
  textarea {
    font-size: 16px; /* iOS zoom 방지 */
  }
}

/* 다크모드 대응 (선택사항) */
@media (prefers-color-scheme: dark) {
  body {
    background: #121212;
    color: #ffffff;
  }
  
  .card {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  h1, h2, .welcome-text, label {
    color: #ffffff;
  }
  
  .subtitle, .input-hint, .info-text {
    color: #888;
  }
  
  input[type="text"],
  textarea {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #ffffff;
  }
  
  input[type="text"]:focus,
  textarea:focus {
    background: #2a2a2a;
    border-color: rgb(239, 138, 173);
  }
  
  .btn-secondary {
    background: #2a2a2a;
    color: #ffffff;
  }
  
  .btn-secondary:hover {
    background: #3a3a3a;
  }
  
  .back-btn {
    color: #888;
  }
  
  .back-btn:hover {
    background: #2a2a2a;
    color: #ffffff;
  }
  
  #participantList {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #ffffff;
  }
  
  .participant-item {
    border-bottom-color: #3a3a3a;
  }
  
  .error {
    background: #2a1a1a;
    border-color: #4a2a2a;
  }
}
