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

/* Body & Container */
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.container {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  max-width: 720px;
  width: 100%;
  padding: 2rem;
}

@keyframes slideInDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page Title */
h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, #FF8A00 0%, #E52E71 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  animation: slideInDown 0.8s ease-out both;
  animation-delay: 0.3s;
}


/* Labels & Inputs */
label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
}

select,
.spin-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

select:focus,
.spin-input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Grid Layout */
#score-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
#score-form .mb-3 {
  display: flex;
  flex-direction: column;
}

/* Button */
#calculate-btn {
  margin-top: 1.5rem;
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: #4f46e5;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: background 0.3s, transform 0.2s;
}
#calculate-btn:hover {
  background: #4338ca;
  transform: translateY(-2px);
}

/* Result */
#result {
  margin-top: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: #4f46e5;
}

/* Custom Number Spinner */
.number-spinner {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  overflow: hidden;
  background: #fff;
  width: auto;
}
.spin-input {
  -moz-appearance: textfield;
  appearance: none;
  border: none;
  text-align: center;
  width: 3rem;
  padding: 0.5rem;
  font-size: 1rem;
  outline: none;
}
.spin-btn {
  background: #f3f4f6;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: background 0.2s;
}
.spin-btn:hover {
  background: #e5e7eb;
}
.spin-down {
  border-right: 1px solid #d1d5db;
}
.spin-up {
  border-left: 1px solid #d1d5db;
}

