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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  color: #333;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

h1 {
  text-align: center;
  color: #667eea;
  margin-bottom: 10px;
  font-size: 2.5em;
}

.subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-size: 1.1em;
}

.input-section {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

#playerId {
  flex: 1;
  padding: 15px 20px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 10px;
  transition: all 0.3s;
}

#playerId:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#checkBtn {
  padding: 15px 30px;
  font-size: 16px;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

#checkBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

#checkBtn:active {
  transform: translateY(0);
}

#checkBtn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.stat-item {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  border-left: 4px solid #667eea;
}

.stat-item.success {
  border-left-color: #28a745;
}

.stat-item.error {
  border-left-color: #dc3545;
}

.stat-label {
  display: block;
  font-size: 0.9em;
  color: #666;
  margin-bottom: 5px;
}

.stat-value {
  display: block;
  font-size: 1.5em;
  font-weight: bold;
  color: #333;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  width: 0%;
  transition: width 0.3s ease;
}

.log-container {
  margin-bottom: 30px;
}

.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.log-header h2 {
  color: #333;
  font-size: 1.5em;
}

.clear-btn {
  padding: 8px 16px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.3s;
}

.clear-btn:hover {
  background: #5a6268;
}

.log-output {
  background: #1e1e1e;
  border-radius: 10px;
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
  font-family: "Courier New", monospace;
  font-size: 14px;
  line-height: 1.6;
}

.log-output::-webkit-scrollbar {
  width: 8px;
}

.log-output::-webkit-scrollbar-track {
  background: #2d2d2d;
  border-radius: 10px;
}

.log-output::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 10px;
}

.log-entry {
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 5px;
  animation: slideIn 0.3s ease;
}

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

.log-entry.info {
  color: #9cdcfe;
}

.log-entry.success {
  color: #4ec9b0;
  background: rgba(78, 201, 176, 0.1);
}

.log-entry.error {
  color: #f48771;
  background: rgba(244, 135, 113, 0.1);
}

.log-entry.warning {
  color: #dcdcaa;
}

.log-time {
  color: #858585;
  margin-right: 10px;
}

.log-message {
  word-break: break-word;
}

.success-container {
  margin-top: 30px;
}

.success-container h2 {
  color: #28a745;
  margin-bottom: 15px;
  text-align: center;
}

.success-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.success-region {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
  font-size: 1.1em;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  transition: all 0.3s;
}

.success-region:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  h1 {
    font-size: 1.8em;
  }

  .input-section {
    flex-direction: column;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .success-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
