* { box-sizing: border-box; }

.mt-12 { margin-top: 3rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

.lock-container {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border: 2px solid rgba(59, 130, 246, 0.3);
  max-width: 380px; /* Wichtiger: Begrenzte Breite für Mobile */
  width: 100%;
  margin: 0 auto;
}

.lock-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #10b981, #f59e0b, #ef4444);
  border-radius: 24px 24px 0 0;
}

.arrows {
  display: grid;
  grid-template-areas: 
    ". up ."
    "left . right"
    ". down .";
  gap: 16px; /* Kleinerer Abstand auf Mobile */
  margin-bottom: 2rem;
  justify-content: center;
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}

.arrow-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 18px;
  width: 68px;   /* Kleiner für Mobile */
  height: 68px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.arrow-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.arrow-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.arrow-btn svg {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.arrow-btn:hover svg {
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.9));
}

.up-btn    { grid-area: up; }
.down-btn  { grid-area: down; }
.left-btn  { grid-area: left; }
.right-btn { grid-area: right; }

.sequence {
  font-family: 'Courier New', 'Consolas', monospace;
  font-size: 1.8rem;        /* Kleiner auf Mobile */
  font-weight: 700;
  letter-spacing: 0.6rem;   /* Enger */
  margin: 1.5rem 0;
  color: #f8fafc;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  background: rgba(0,0,0,0.2);
  padding: 0.8rem;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,0.2);
  word-spacing: 1rem;
}

.status {
  font-size: 1.3rem;
  font-weight: 700;
  min-height: 2.2rem;
  margin: 1rem 0;
  padding: 0.8rem;
  border-radius: 12px;
  color: #e2e8f0;
}

.status.success { background: rgba(34, 197, 94, 0.3); color: #22c55e; border: 2px solid #22c55e; }
.status.error   { background: rgba(248, 113, 113, 0.3); color: #f87171; border: 2px solid #f87171; animation: shake 0.5s; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.reset-button {
  padding: 12px 36px;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  transition: all 0.3s;
}

.reset-button:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
  transform: translateY(-2px);
}

/* Extra für sehr kleine Bildschirme */
@media (max-width: 380px) {
  .arrows { gap: 12px; max-width: 200px; }
  .arrow-btn { width: 60px; height: 60px; }
  .arrow-btn svg { width: 32px; height: 32px; }
  .sequence { font-size: 1.5rem; letter-spacing: 0.4rem; }
  .lock-container { padding: 1.5rem 1rem; }
}