:root {
  --bg: #0a0a0a;
  --bg-card: #1a1a1a;
  --text: #ffffff;
  --text-secondary: #b0b0b0;
  --border: #333333;
  --accent: #007aff;
  --success: #34c759;
  --error: #ff3b30;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  --radius: 8px;
}

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

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes numberPop {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
  }
  50% {
    transform: scale(1.1) rotate(5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes confettiFall {
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  animation: slideInUp 0.6s ease-out;
}
.form-card h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

.input-group {
  margin-bottom: 1.5rem;
}
.input-group input {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1.25rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: all 0.3s ease;
}
.input-group input:focus {
  outline: none;
  border-color: var(--accent);
  transform: scale(1.02);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}
.input-group input::-moz-placeholder {
  color: var(--text-secondary);
}
.input-group input::placeholder {
  color: var(--text-secondary);
}

button {
  width: 100%;
  padding: 1rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1.25rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}
button:hover::before {
  left: 100%;
}
button:hover {
  background: #0056cc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.results {
  display: none;
  text-align: center;
  animation: slideInUp 0.6s ease-out;
}
.results.show {
  display: block;
}

.result-label {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

#result {
  font-size: clamp(12rem, 25vw, 20rem);
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 3rem;
  line-height: 1;
  animation: numberPop 0.8s ease-out;
  text-shadow: 0 8px 16px rgba(0, 122, 255, 0.5);
  letter-spacing: -0.02em;
}

.history-label {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

#previousResult {
  display: flex;
  gap: 1rem;
  list-style: none;
  overflow-x: auto;
  padding: 1rem 0;
  margin-bottom: 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
#previousResult::-webkit-scrollbar {
  height: 8px;
}
#previousResult::-webkit-scrollbar-track {
  background: transparent;
}
#previousResult::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}
#previousResult li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  font-size: 2rem;
  font-weight: 600;
  color: var(--success);
  white-space: nowrap;
  animation: slideInRight 0.5s ease-out forwards;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.3s ease;
}
#previousResult li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.secondary-btn {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.secondary-btn:hover {
  background: var(--accent);
  color: white;
}

footer {
  text-align: center;
  padding: 1rem;
  color: var(--text-secondary);
  font-size: 1rem;
}
footer a {
  color: var(--accent);
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

.show {
  display: block !important;
}

.hide {
  display: none !important;
}

.notification {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  font-size: 1rem;
  max-width: 400px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
}
.notification.show {
  transform: translateX(0);
}
.notification.notification--error {
  border-left: 4px solid var(--error);
}
.notification.notification--info {
  border-left: 4px solid var(--success);
}

@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 1rem;
    gap: 1.5rem;
  }
  .form-card {
    padding: 1.5rem;
  }
  .form-card h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  .input-group {
    margin-bottom: 1rem;
  }
  .input-group input {
    padding: 0.875rem;
    font-size: 1.125rem;
  }
  button {
    padding: 0.875rem;
    font-size: 1.125rem;
  }
  #result {
    font-size: clamp(8rem, 20vw, 15rem);
    margin-bottom: 2rem;
  }
  .result-label {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  .history-label {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  #previousResult {
    gap: 0.75rem;
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
  }
  #previousResult li {
    font-size: 1.5rem;
    padding: 0.75rem 1rem;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0.75rem;
    gap: 1rem;
  }
  .form-card {
    padding: 1rem;
  }
  .form-card h1 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }
  .input-group {
    margin-bottom: 0.75rem;
  }
  .input-group input {
    padding: 0.75rem;
    font-size: 1rem;
  }
  button {
    padding: 0.75rem;
    font-size: 1rem;
  }
  #result {
    font-size: clamp(6rem, 18vw, 12rem);
    margin-bottom: 1.5rem;
  }
  .result-label {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  .history-label {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }
  #previousResult {
    gap: 0.5rem;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
  }
  #previousResult li {
    font-size: 1.25rem;
    padding: 0.5rem 0.75rem;
  }
  footer {
    padding: 0.75rem;
    font-size: 0.875rem;
  }
  .notification {
    max-width: 300px;
    padding: 0.75rem;
    font-size: 0.875rem;
  }
}
@media (max-width: 360px) {
  .container {
    padding: 0.5rem;
  }
  .form-card {
    padding: 0.75rem;
  }
  .form-card h1 {
    font-size: 1.25rem;
  }
  #result {
    font-size: clamp(4rem, 16vw, 10rem);
  }
  #previousResult li {
    font-size: 1rem;
    padding: 0.375rem 0.5rem;
  }
}/*# sourceMappingURL=style.css.map */