* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Vazirmatn', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #090909;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99;
}

.container {
  width: 100%;
  max-width: 420px;
  padding: 24px;
  position: relative;
  z-index: 10;
}

.step {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeIn 0.5s ease-in-out forwards;
}

.step.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

h1.glow-text, h2 {
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 79, 123, 0.6);
  margin-bottom: 12px;
}

.subtitle {
  color: #a0a0a0;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.hint {
  color: #777;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.btn-group {
  display: flex;
  gap: 16px;
  width: 100%;
  justify-content: center;
  position: relative;
  min-height: 80px;
  align-items: center;
}

.btn {
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, #b11226, #ff4f7b);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 79, 123, 0.4);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(255, 79, 123, 0.6);
}

.btn-primary:disabled {
  background: #333;
  box-shadow: none;
  color: #666;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: #141414;
  color: #fff;
  border: 1px solid #333;
}

.runaway-btn {
  position: absolute;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.input-group {
  width: 100%;
  margin-bottom: 24px;
}

.custom-input {
  width: 100%;
  padding: 16px;
  background-color: #141414;
  border: 1px solid #333;
  border-radius: 12px;
  color: #fff;
  font-size: 1.1rem;
  text-align: center;
  outline: none;
  transition: border-color 0.3s;
}

.custom-input:focus {
  border-color: #ff4f7b;
  box-shadow: 0 0 10px rgba(255, 79, 123, 0.3);
}

.grid-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-bottom: 24px;
}

.card {
  background-color: #141414;
  border: 1px solid #282828;
  padding: 18px 10px;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  user-select: none;
}

.card.selected {
  border-color: #ff4f7b;
  background-color: rgba(255, 79, 123, 0.15);
  color: #ff4f7b;
  transform: translateY(-2px);
}

.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); text-shadow: 0 0 20px rgba(255, 79, 123, 0.9); }
  100% { transform: scale(1); }
}

.final-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.final-subtitle {
  font-size: 1.3rem;
  color: #ff4f7b;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.tease-status {
  color: #ff4f7b;
  font-size: 1rem;
  font-weight: 700;
  min-height: 28px;
  margin-bottom: 16px;
  text-shadow: 0 0 8px rgba(255, 79, 123, 0.4);
  transition: all 0.3s ease;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}